Configuring a Static MAC Entry
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "l2Macs": { "children": [ { "l2Static": { "children": [ { "l2StaticEntry": { "attributes": { "dropAction": "no", "interface": "eth1/2", "staticMacAddress": "00:01:00:02:00:03", "vlan": "vlan-123" } } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <mac-items> <static-items> <vlan-items> <StaticEntry-list> <vlan>vlan-123</vlan> <staticMacAddress>00:01:00:02:00:03</staticMacAddress> <dropAction>false</dropAction> <interface>eth1/2</interface> </StaticEntry-list> </vlan-items> </static-items> </mac-items> </System>