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

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

snarayanaraju
Level 4
Level 4

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

0 Replies 0

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License