Connectivity Guide

Table Of Contents
description string — Enter a text string to describe the VLAN, using a maximum of 80 alphanumeric
characters.
name string — Enter vlan vlan-id, where vlan-id is from 1 to 4093.
Example
curl -X POST –u admin:admin –k "https://10.11.86.113/restconf/data/interfaces"
-H "accept: application/json" -H "Content-Type: application/json"
-d '{ "interface": [{ "type": "iana-if-type:l2vlan", "enabled": true,
"description": "vlan20", "name": "vlan20" }]}'
Congure VLAN IP address
RESTCONF
endpoint
/restconf/data/interfaces/interface/vlan20
JSON content
{
"interface": [{
"type": "iana-if-type:l2vlan",
"enabled": true,
"description": "vlan20",
"name": "vlan20",
"dell-ip:ipv4": {
"address": {
"primary-addr": "192.42.10.254/24"
}
}
}]
}
Parameters
interface vlan-id — Enter the VLAN ID, from 1 to 4093.
type string — Enter iana-if-type:l2vlan for a VLAN interface.
enabled bool — Enter true to enable the interface; enter false to disable the interface.
description string — Enter a text string to describe the VLAN, using a maximum of 80 alphanumeric
characters.
name string — Enter vlan vlan-id, where vlan-id is from 1 to 4093.
primary-addr A.B.C.D/prefix-length — Enter the VLAN IP address and mask.
Example
curl -X PATCH -u admin:admin
-k "https://10.11.86.113/restconf/data/interfaces/interface/vlan20"
-H "accept: application/json" -H "Content-Type: application/json"
-d '{"interface":[{"type":"iana-if-type:l2vlan","enabled":true,
"description":"vlan20","name":"vlan20","dell-ip:ipv4":{"address":
{"primary-addr":"192.42.10.254/24"}}}]}'
Change Ethernet port from Access to Trunk mode and enable port
RESTCONF
endpoint
/restconf/data/interfaces/interface/ethernet1/1/3
JSON content
{
"interface": [{
"name": "ethernet1/1/3",
"enabled": "true",
"dell-interface:mode": "MODE_L2HYBRID"
}]
}
930 RESTCONF API