DHCPv4 Snooping
Supported HTTP Operations
The following HTTP operations are supported for the ip dhcp snooping
vlan command.
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/dhcpsnoop_container
Request body: None
Response body:{
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": false
}
}
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=102/config/dhcpsnoop_container
Request body:
{
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": false
}
}
Response body: None
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=78/config/dhcpsnoop_container
Request body:
{
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": true
}
}
Response body: None
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=102/config
Request body:
{
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": true
}
}
Response body: None
PATCH method for DHCP Snoop on multi VLAN
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans
{
"openconfig-network-instance:vlans": {
"vlan": [
{
"vlan-id": 11,
"config": {
"vlan-id": 11,
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": true
}
}
},
{
"vlan-id": 1,
"config": {
"vlan-id": 1,
"icx-openconfig-vlan-aug:dhcpsnoop_container": {
"dhcpsnoop": true
}
}
}
]
}
}
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/dhcpsnoop_container
Request body: None Response body: None
The following HTTP operations are supported for DHCP snooping trust.
URL: https://<host>restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/dhcpsnoop_trust_container
Request body: None
Response body:{
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/dhcpsnoop_trust_container
Request body:{
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": false
}
}
Response body: None
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/dhcpsnoop_trust_container
Request body: {
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
Response body: None
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F2/config
Request body: {
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
Response body: None
PATCH method for DHCP Snoop for multiple physical interfaces
https://<host>/restconf/data/openconfig-interfaces:interfaces
{
"openconfig-interfaces:interfaces": {
"interface": [
{
"name": "ethernet 1/1/1",
"config": {
"name": "ethernet 1/1/1",
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
},
{
"name": "ethernet 1/1/2",
"config": {
"name": "ethernet 1/1/2",
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
},
{
"name": "ethernet 1/1/3",
"config": {
"name": "ethernet 1/1/3",
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
}
]
}
}
PATCH
method for DHCP Snoop trust for multiple LAG
interfacesURL: https://<host>/restconf/data/openconfig-interfaces:interfaces
{
"openconfig-interfaces:interfaces": {
"interface": [
{
"name": "lag 1",
"config": {
"name": "lag 1",
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
},
{
"name": "lag 2",
"config": {
"name": "lag 2",
"icx-openconfig-if-dhcp-snoop-aug:dhcpsnoop_trust_container": {
"dhcpsnoop_trust": true
}
}
}
]
}
}
URL: https://<host>/restconf/data/openconfig-interfaces:interfaces/interface=ethernet%201%2F1%2F1/config/dhcpsnoop_trust_container
Request body: None Response body: None