Reference Guide

Table Of Contents
RESTCONF
endpoint
/restconf/data/interfaces/interface/ethernet1/1/1
JSON content
{
"interface": [{
"name": "ethernet1/1/1",
"lldp-med-cfg": [{
"policy-id": 1
}]
}]
}
Parameters
ethernet-interface Enter the physical Ethernet interface in the format ethernetnode/
slot/port.
name string Enter ethernetnode/slot/port to configure the interface that sends LLDP-
MED policy TLVs.
policy-id int Enter the LLDP-MED network policy number, from 1 to 32.
Example
curl -X PATCH -u admin:admin
-k "https://10.11.86.113/restconf/data/interfaces/interface/
ethernet1%2F1%2F1"
-H "accept:application/json" -H "Content-Type:application/json"
-d '{"interface":[{"name":"ethernet1/1/1", "lldp-med-cfg":
[{"policy-id":1}]}]}'
Disable TLV advertisement
RESTCONF
endpoint
/restconf/data/interfaces/interface/ethernet1/1/1
JSON content
{
"interface": [{
"name": "ethernet1/1/1",
"lldp": [{
"basic-tlvs": [{
"sys-name-enable": "false"
}],
"dot3-tlvs": [{
"mac-phy-config-enable": "false",
"max-frame-size-enable": "false",
"linkagg-enable": "false"
}]
}]
}]
}
Parameters
ethernet-interface Enter the physical Ethernet interface in the format ethernetnode/
slot/port.
name string Enter ethernetnode/slot/port to identify the interface that sends LLDPDUs
with the specified TLVs.
sys-name-enable bool Enter false to disable system TLV advertisement on the interface;
enter true to re-enable system TLV advertisement.
mac-phy-config-enable bool Enter false to disable MAC/PHY configuration/status TLV
advertisement on the interface; enter true to re-enable VLAN ID TLV advertisement.
max-frame-size-enable bool Enter false to disable maximum-frame-size TLV
advertisement on the interface; enter true to re-enable maximum-frame-size TLV advertisement.
linkagg-enable bool Enter false to disable link-aggregation TLV advertisement on the
interface; enter true to re-enable link-aggregation TLV advertisement.
Example
curl -X PATCH -u admin:admin
-k "https://10.11.86.113/restconf/data/interfaces/interface/
ethernet1%2F1%2F1"
-H "accept: application/json" -H "Content-Type: application/json"
756 RESTCONF API