IP Default-Gateway Address on Switch Image
Configures, modifies, and retrieves IP default-gateway address on a switch. The URI to configure data for IP default-gateway address is:
restconf/data/system/config/default_gateway
Supported HTTP Operations
URL: https://<host>/restconf/data/system/config/default_gateway
Request body: None
Response body:
{
"icx-openconfig-system-aug:default_gateway" : {
"address" : [
{
"ip" : "10.177.112.129",
"config" : {
"ip" : "10.177.112.129",
"addr_type" : "static"
},
"state" : {}
}
]
}
}
URL: https://<host>/restconf/data/system/config/default_gateway
Request body:
{
"icx-openconfig-system-aug:default_gateway" : {
"address" : [
{
"ip" : "10.177.112.129",
"config" : {
"ip" : "10.177.112.129",
"addr_type" : "static"
}
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/system/config/default_gateway
Request body:
{
"icx-openconfig-system-aug:default_gateway" : {
"address" : [
{
"ip" : "10.177.112.129",
"config" : {
"ip" : "10.177.112.129",
"addr_type" : "static"
}
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/system/config/default_gateway
Request body:
{
"address" : [
{
"ip" : "10.177.112.147",
"config" : {
"ip" : "10.177.112.147",
"addr_type" : "static"
}
}
]
}
Response body: None
URL: https://<host>//restconf/data/system/config/default_gateway/address/<ip-address>
Request body: None Response body: None