Reference Guide

Table Of Contents
JSON content
{
"interface": [{
"name": "vlan20",
"type": "iana-if-type:l2vlan",
"enabled": true,
"description": "vlan20",
"dell-interface:untagged-ports": ["ethernet1/1/3"],
"dell-ip:ipv4": {
"address": {
"primary-addr": "192.42.10.254/24"
}
}
}]
}
Parameters
type string Enter iana-if-type:l2vlan for a VLAN interface.
enabled bool Enter true to enable the VLAN; enter false to disable the VLAN.
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.
untagged-ports string Enter the untagged port interface in the format ethernetnode/
slot/port.
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":[{"name":"vlan20","type":"iana-if-type:l2vlan",
"enabled":true,"description":"vlan20","dell-interface:untagged-ports":
["ethernet1/1/3"],"dell-ip:ipv4":
{"address":{"primary-addr":"192.42.10.254/24"}}}]}'
Display VLAN configuration
RESTCONF
endpoint
/restconf/data/interfaces/interface/vlan20
JSON content None
Parameters
interface vlan-id Enter the VLAN ID, from 1 to 4093.
Example
curl -X GET -u admin:admin
-k "https://10.11.86.113/restconf/data/interfaces/interface/vlan20"
-H "accept: application/json"
Delete a VLAN configuration
RESTCONF
endpoint
/restconf/data/interfaces/interface/vlan10
JSON content None
Parameters
interface vlan-id Enter the VLAN ID, from 1 to 4093.
Example
curl -X DELETE -u admin:admin
-k "https://10.11.86.113/restconf/data/interfaces/interface/vlan10"
-H "accept: application/json"
VLT
Create VLT domain on each peer
RESTCONF API
763