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

Get MAC-Address NVE peer IP via NX-API Rest query

jespir
Level 1
Level 1

Is there any way to get the NVE peer-IP for a MAC-address via NX-API Rest query?

 

I can get the MAC-address specifics via:

/api/mo/sys/mac/table.json?query-target=subtree&query-target-filter=eq(l2MacAddressEntry.macAddress,"MAC_ADDR")
 
"l2MacAddressEntry": {
"attributes": {
"age": "0",
"dn": "sys/mac/table/vlan-[vlan-3]-mac-00:xx:xx:xx:xx:xx",
"macAddress": "00:xx:xx:xx:xx:xx",
"macInfo": "nve",
"ntfy": "no",
"port": "Nve",
"routed": "no",
"secure": "no",
"static": "no",
"type": "primary",
"vlan": "vlan-3"
}
 
This, however, only returns that the port is nve (not the NVE peer IP, as in the default CLI output for mac address-table). I can get this done via cli_show API queries but I would prefer the REST way of doing this as pretty much everything else I need is working via REST queries.
 
C 3 00xx.xxxx.xxxx dynamic 0 F F nve1(1.2.3.4)

 

Thanks in advance for any tips and tricks!

0 Replies 0