I'm trying to use the ACI Toolkit to create a bunch of EPGs and to extend them out a L2Out. I have most of it working but I'm having issues with the add_context module. I want to be able to add a context from the common tenant to the BD but I can't seem to be able to. I have:
Common_Tenant = aci.Tenant('common')
context = aci.Context('common/vrfName',Common_Tenant)
bd.add_context(context)
and
context = aci.Context('common/vrfName')
bd.add_context(context)
but those result in an error about 'rsctx failed validation for value'
I have also tried:
Common_Tenant = aci.Tenant('common')
context = aci.Context('vrfName', Common_Tenant)
bd.add_context(context)
But this results in the BD being added to vrfName but it fails to resolve
and
context = aci.Context('vrfName')
bd.add_context(context)
But this results in the BD being added to vrfName in a newly created vrf in the same tenant.