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

GET method

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" : {}
            }
         ]
      }
}

PUT method

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    

PATCH method

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    

POST method

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    

DELETE

URL: https://<host>//restconf/data/system/config/default_gateway/address/<ip-address> 
Request body: None    
Response body: None