Reference Guide

Table Of Contents
</interfaces>
</config>
</edit-config>
</rpc>
Reply:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10">
<ok/>
</rpc-reply>
OS10(config)# do no debug cli netconf
RESTCONF API layer 2 configuration
Some common RESTCONF API L2 operations include provisioning and displaying VLAN, port channel, VLT, LLDP, and LACP
configuration. The examples in this section use curl commands to send the HTTPS request.
LACP
Configure system priority
RESTCONF
endpoint
/restconf/data/sys-config/system-priority
JSON content
{
"system-priority": 65535
}
Parameters
system-priority int Enter the LACP system priority used during negotiation with other
devices, from 1 to 65535; the higher the number, the lower the priority. The default is 32768.
Example
curl -X PATCH -k -u admin:admin -H "accept:application/json"
-H "Content-Type:application/json"
"https://10.11.86.113/restconf/data/sys-config/system-priority"
-d '{"system-priority":65535}'
Configure port priority
RESTCONF
endpoint
/restconf/data/interfaces/interface/ethernet1/1/1
JSON content
{
"interface": [{
"name": "ethernet1/1/1",
"lacp-config": {
"actor-port-priority": 4096
}
}]
}
Parameters
ethernet-interface Enter the physical Ethernet interface in the format ethernetnode/
slot/port.
name string Enter ethernetnode/slot/port to configure the port interface for LACP.
Specify the same node/slot/port value in the name string and ethernet-interface
parameters.
actor-port-priority int Enter the priority for the port interface, from 0 to 65535; the
higher the number, the lower the priority. The default is 32768.
Example
curl -X PATCH -k -u admin:admin -H "accept:application/json"
-H "Content-Type:application/json"
752 RESTCONF API