cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1148
Views
20
Helpful
2
Replies

nexus 9000 NXAPI REST. How To Clear MAC Table

sebastianpotok
Level 1
Level 1

Looking to see if there is a way to clear mac table, mac learned on interface via REST API. According to the docs, we should be able to clear statistics for ports, ipv4 stats but i don't see an option to clear mac table. 

developer.cisco.com/docs/cisco-nexus-3000-and-9000-series-nx-api-rest-sdk-user-guide-and-api-reference-release-9-3x/#!managing-the-infrastructure

 

Thanks

2 Replies 2

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi @sebastianpotok 

I do not have a N9K to test this but if you have a testing env, try this:

POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": { "children": [ { "l2Macs": { "attributes": { "status": "deleted", } } } ] } }

Cheers,

Sergiu

Hi, thanks for your suggestion. I will give it a shot and respond back with my findings. 

Review Cisco Networking for a $25 gift card