10-08-2021 07:06 AM - edited 10-08-2021 07:06 AM
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
10-09-2021 05:44 AM
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
10-12-2021 07:34 AM
Hi, thanks for your suggestion. I will give it a shot and respond back with my findings.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide