IPSG and IPv6 Source Guard Selective Port
Supported HTTP Operations
The following HTTP operations are supported for IP source guard at selective ports in a VLAN.
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/source_guard_selective_ports
Request body: None
Response body: {
"icx-openconfig-vlan-aug:source_guard_selective_ports": {
"interfaces": [
{
"name": "ethernet 1/1/2"
},
{
"name": "ethernet 1/1/3"
},
{
"name": "ethernet 1/1/4"
}
]
}
}
PUT method (IPv4SG selective port replaces the existing configuration with new configuration at VLAN level)
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=101/config/source_guard_selective_ports
Request body:
{
"icx-openconfig-vlan-aug:source_guard_selective_ports": {
"interfaces":[
{
"name" : "ethernet 1/1/48"
}
]
}
}
Response body: None
PATCH method (IPv4SG selective port add the new configuration to existing configuration at VLAN level)
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=101/config/source_guard_selective_ports/interfaces
Request body:
{
"interfaces":[
{
"name": "ethernet 1/1/5"
},
{
"name": "ethernet 1/1/6"
},
{
"name": "ethernet 1/1/7"
}
]
}
Response body: None
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config
Request body:
{
"icx-openconfig-vlan-aug:source_guard_selective_ports": {
"interfaces":[
{
"name" : "ethernet 1/1/48"
}
]
}
}
Response body: None
DELETE method
To delete from all interfaces:
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/source_guard_selective_ports
Request body: None Response body: None
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/source_guard_selective_ports
Request body: {
"interfaces":[
{
"name" : "ethernet 1/1/48"
}
]
}
Response body: None
The following HTTP operations are supported for IPSGv6 at selective ports of a VLAN.
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/ipv6_source_guard_selective_ports
Request body: None
Response body: {
"icx-openconfig-vlan-aug:ipv6_source_guard_selective_ports": {
"interfaces": [
{
"name": "ethernet 1/1/2"
},
{
"name": "ethernet 1/1/45"
}
]
}
}
PUT method (IPv6SG selective port replaces the existing configuration with new configuration at VLAN level)
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=101/config/ipv6_source_guard_selective_ports
Request body: {
"icx-openconfig-vlan-aug:ipv6_source_guard_selective_ports": {
"interfaces": [
{
"name": "ethernet 1/1/1"},
{
"name": "ethernet 1/1/2"
},
{
"name":"ethernet 1/1/45"
}
]
}
}
Response body: None
PATCH method (IPv6SG selective port add the new configuration to existing configuration at VLAN level)
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=101/config/ipv6_source_guard_selective_ports
Request body: {
"icx-openconfig-vlan-aug:ipv6_source_guard_selective_ports": {
"interfaces": [
{
"name": "ethernet 1/1/5"},
{
"name": "ethernet 1/1/6"
},
{
"name":"ethernet 1/1/7"
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config
Request body: {
"icx-openconfig-vlan-aug:ipv6_source_guard_selective_ports": {
"interfaces": [
{
"name": "ethernet 2/1/17"
}
]
}
}
Response body: None
DELETE method
To delete from all interfaces:
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/ipv6_source_guard_selective_ports
Request body: None Response body: None
To delete a particular interface.
URL: https://<host>/restconf/data/network-instances/network-instance/default-vrf/vlans/vlan=100/config/ipv6_source_guard_selective_ports
Request body: {
"interfaces": [
{
"name": "ethernet 1/1/1"
}
]
}
Response body: None