MAC Address Table (Static and Dynamic)
Configures, modifies, and retrieves static MAC address for the VLANs with the port details. Also, retrieves the dynamic MAC address for the VLANs with the port details.
network-instances/network-instance/default-vrf/fdb/mac-table/entriesThe URI to configure data for static and dynamic MAC address table is:
/network-instances/network-instance/default-vrf/fdb
Supported HTTP Operations
POST method for static MAC address
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/fdb/mac-table/entries
Request body: {
"entry": {
"mac-address": "67:11:ab:89:33:41",
"vlan": "60",
"config": {
"mac-address": "67:11:ab:89:33:41",
"vlan": "60"
},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 1/1/7"
}
}
}
}
}
Response body: None
PUT method for static MAC address
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/fdb
Request body:
{
"fdb" : {
"mac-table" : {
"entries": {
"entry": {
"mac-address": "15:11:ab:24:aa:21",
"vlan": "44",
"config": {
"mac-address": "15:11:ab:24:aa:21",
"vlan": "44"
},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 1/1/5"
}
}
}
}
}
}
}
}
Response body: None
PATCH method for static MAC address
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/fdb
Request body: {
"fdb" : {
"mac-table" : {
"entries": {
"entry": {
"mac-address": "67:11:ab:89:33:44",
"vlan": "1023",
"config": {
"mac-address": "67:11:ab:89:33:44",
"vlan": "1023"
},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 2/1/10"
}
}
}
}
}
}
}
}
Response body: None
GET method for static and dynamic MAC address
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/fdb/mac-table/entries
Request body: None
Response body: {
"openconfig-network-instance:entries": {
"entry": [
{
"mac-address": "15:11:ab:24:aa:21",
"vlan": 44,
"config": {
"mac-address": "15:11:ab:24:aa:21",
"vlan": 44
},
"state": {},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 1/1/5"
},
"state": {}
}
}
},
{
"mac-address": "78:23:aa:bb:23:04",
"vlan": 60,
"config": {
"mac-address": "78:23:aa:bb:23:04",
"vlan": 60
},
"state": {},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 1/1/8"
},
"state": {}
}
}
}
]
}
}
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/fdb/mac-table/entries/entry/78:23:aa:bb:23:04/60
Request body: None
Response body: Deletes the entry in the device.
GET -
{
"openconfig-network-instance:entries": {
"entry": [
{
"mac-address": "15:11:ab:24:aa:21",
"vlan": 44,
"config": {
"mac-address": "15:11:ab:24:aa:21",
"vlan": 44
},
"state": {},
"interface": {
"interface-ref": {
"config": {
"interface": "ethernet 1/1/5"
},
"state": {}
}
}
}
]
}
}