Question 20 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question 20 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question

Refer to the exhibit.

from acitoolkit.acitoolkit import (
AppProfile, BridgeDomain, Context,
EPG, Session, Subnet, Tenant

def create_tenant ():
session = Session (
"https://apic", "admin", "ciscopsdt"
)
session. login()
my_tenant = Tenant ("DevNet_Tenant")
my_vrf = Context ("DevNet_VRF", my_tenant)
my_bd = BridgeDomain("DevNet_BD", my tenant)
my_bd.add_context (my_vrf)
my_ subnet = Subnet ("DevNet_Subnet", my bd)
my_subnet.set_scope ("public")
my_subnet.set_addr("10.10.10.1/24")
my_app = AppProfile("DevNet_App", my_tenant)
my _epg = EPG("DevNet_EPG", my app)
my_epg.add_bd(my_bd)
session.push to_apic(
my_tenant.get_url(),
my_tenant.get_json())

if name "main create_':
create_tenant ()

Which two actions does this Python code perform with the Cisco ACI? (Choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CD.