Reference Guide

Table Of Contents
Example
curl -X POST -k -u admin:admin -H "accept: application/json"
-H "Content-Type: application/json"
https://10.11.86.113/restconf/data/interfaces
-d '{"interface": [{"type":"iana-if-type:ieee8023adLag","name":"port-
channel10"}]}'
Enable port channel
RESTCONF
endpoint
/restconf/data/interfaces/interface/port-channel10
JSON content
{
"interface": [{
"type": "iana-if-type:ieee8023adLag",
"name": "port-channel10",
"enabled": "true"
}]
}
Parameters
port-channelid-number Enter port-channelid-number, where port-channel id-
number is from 1 to 128.
type string Enter iana-if-type:ieee8023adLag for a port-channel interface.
name string Enter port-channelid-number.
enabled bool Enter true (no shutdown) to enable the port channel; enter false
(shutdown) to disable the port channel.
Example
curl -X PATCH -k -u admin:admin -H "accept: application/json"
-H "Content-Type: application/json"
"https://10.11.86.113/restconf/data/interfaces/interface/port-channel10"
-d '{"interface":[{"type":"iana-if-type:ieee8023adLag", "name":"port-
channel10","enabled":"true"}]}'
Add member interface to static port channel
RESTCONF
endpoint
/restconf/data/interfaces/interface/port-channel10
JSON content
{
"interface": [{
"name": "port-channel10",
"lag-mode": "STATIC",
"member-ports": [{
"name": "ethernet1/1/2"
}]
}]
}
Parameters
port-channelid-number Enter port-channelid-number, where port-channel id-
number is from 1 to 128.
name string Enter port-channelid-number.
lag-mode bool Enter STATIC for a statically configured port channel; enter DYNAMIC for a
dynamically configured port channel.
ethernet-interface Enter the physical Ethernet interface in the format ethernetnode/
slot/port.
Example
curl -X PATCH -k -u admin:admin -H "accept: application/json"
-H "Content-Type: application/json"
"https://10.11.86.113/restconf/data/interfaces/interface/port-channel10"
-d '{"interface":[{"name":"port-channel10", "lag-mode":"STATIC",
"member-ports":[{"name":"ethernet1/1/2"}]}]}'
Add member interface to dynamic port channel
758
RESTCONF API