cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1654
Views
10
Helpful
1
Replies

list of epgs assigned to bd

Mary
Level 1
Level 1

how can we get the list of epgs assigned to a given bd using cli? thanks

1 Reply 1

Marcel Zehnder
Spotlight
Spotlight

Hi 

 

From one of your APICs you can query the fvRsBd object:

moquery -c fvRsBd -f 'fv.RsBd.tDn=="<DN OF BD>"' | grep dn

 

For example you want to print all EPGs which are assigned to BD XYZ in tenant TEST (thats uni/tn-TEST/BD-XYZ):

 

moquery -c fvRsBd -f 'fv.RsBd.tDn=="uni/tn-TEST/BD-XYZ"' | grep dn

dn : uni/tn-TEST/ap-APP1/epg-A/rsbd
dn : uni/tn-TEST/ap-APP1/epg-B/rsbd

dn : uni/tn-TEST/ap-APP1/epg-C/rsbd

dn : uni/tn-TEST/ap-APP1/epg-D/rsbd

 

HTH

Marcel

Review Cisco Networking for a $25 gift card

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