Connectivity Guide

Table Of Contents
To display values for the type and name parameters in the curl command, display the XML structure of the interface vlan 20
conguration command:
OS10(config)# do debug cli netconf
OS10(config)# interface vlan 10
Request:
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<candidate/>
</target>
<default-operation>merge</default-operation>
<error-option>stop-on-error</error-option>
<test-option>set</test-option>
<config>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type" xmlns:dell-if="http://www.dellemc.com/
networking/os10/dell-interface" xmlns:dell-eth="http://www.dellemc.com/networking/os10/dell-
ethernet" xmlns:dell-lag="http://www.dellemc.com/networking/os10/dell-lag">
<interface>
<type>ianaift:l2vlan</type>
<name>vlan10</name>
</interface>
</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 L2 conguration
Some common RESTCONF API L2 operations include provisioning and displaying VLAN, port channel, VLT, LLDP, and LACP conguration.
The examples in this section use curl commands to send the HTTPS request.
LACP
Congure 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"
RESTCONF API 919