API Guide

Interface
Configure a loopback interface
RESTCONF
endpoint
/restconf/data/interfaces
JSON content
{
"interface": [{
"type": "iana-if-type:softwareLoopback",
"enabled": true,
"description":"loopback interface",
"name":"loopback1"}]
}
Parameters
type string Enter iana-if-type:softwareLoopback for a loopback interface.
enabled bool Enter true to enable the interface; enter false to disable.
description string Enter a text string to describe the interface. A maximum of 80
alphanumeric characters.
name string Enter loopback loopback-id of the interface, loopback-id is from 0 to
16383.
Example
curl -X POST -k -u admin:admin "https://10.11.86.113/restconf/data/
interfaces"
-H "accept: application/json" -H "Content-Type: application/json"
-d '{"interface": [{"type": "iana-if-type:softwareLoopback", "enabled":
true,
"description":"loopback interface", "name":"loopback1"}]}'
Configure a loopback interface IP address
RESTCONF
endpoint
/restconf/data/interfaces/interface/loopback1
JSON content
{
"dell-ip:ipv4":{
"address": {
"primary-addr":"6.6.6.6/24"
}
}
}
Parameters
primary-addr ip-address/prefix-length Enter the loopback IP address in dotted-
decimal A.B.C.D/x format.
Example
curl -X POST -k -u admin:admin "https://10.11.86.113/restconf/data/
interfaces/interface/loopback1"
-H "accept: application/json" -H "Content-Type: application/json"
-d '{"dell-ip:ipv4":{"address": {"primary-addr":"6.6.6.6/24"}}}'
RESTCONF API 1391