cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
190
Views
0
Helpful
0
Replies
Enthusiast

Python Cobra script for "Deploy Static EPG on VPC Interface"

Hello - I need help to get a script for Deploying Static EPG in VPC interface. The equivalent CLI configuration is below

 

vpc context leaf 2471 2481

  interface vpc VPC-TO-APPSERVER

  switchport trunk allowed vlan 200 tenant PROD application AP_SERVER epg EPG_DMZ_VLAN200_SERVER

  switchport trunk allowed vlan 201 tenant PROD application AP_SERVER epg EPG_DMZ_VLAN201_SERVER

  exit

 

This is my learning, but I am not able to get the right script for deploying the EPG in VPC. I have around 200 lines of CLI commands to achieve this.

1) I tried to download the xml file (configuration only) in the path Tenant--> PROD--> Application Profiles-->AP_SERVER->EPG_DMZ_VLAN200_SERVER. The output has only a line of XML header.

2) arya.py -f <filename>.xml -i 10.100.206.1 -u <credentials> to get the cobra scripts

 

regards,Sairam

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards