IP Address on Management Interface for Switch Image

Configures, modifies, and retrieves IP address configuration. The URI to configure data for IP address is:

/system/config/ipv4

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/system/config/ipv4   
Request body: None
Response body:     
{
   "icx-openconfig-system-aug:ipv4" : {
      "address" : [
         {
            "ip" : "xx.xx.xx.xx",
            "config" : {
               "ip" : "xx.xx.xx.xx",
               "prefix-length" : 25
            "addr_type" : "static"
         }
      ]
   }
}      

PUT method

URL: https://<host>/restconf/data/system/config/ipv4   
Request body:
 	
{
   "icx-openconfig-system-aug:ipv4" : {
      "address" : [
      {
         "ip" : "xx.xx.xx.xx",
         "config" : {
            "ip" : "xx.xx.xx.xx",
            "prefix-length" : "24"
            "addr_type" : "static"
         }
      }
   ]
   }
}
Response body: None    

PATCH method

URL: https://<host>/restconf/data/system/config/ipv4   
Request body:
 {
   "icx-openconfig-system-aug:ipv4" : {
      "address" : [
      {
         "ip" : "xx.xx.xx.xx",
         "config" : {
            "ip" : "xx.xx.xx.xx",
            "prefix-length" : "24"
            "addr_type" : "static"
         }
      }
   ]
   }
}
Response body: None    

POST method

URL: https://<host>/restconf/data/system/config/ipv4   
Request body:
 {
   "address" : [
      {
         "ip" : "xx.xx.xx.xx",
         "config" : {
            "ip" : "xx.xx.xx.xx",
            "prefix-length" : 25,

            "addr_type" : "static"

          }
      }
   ]
}
Response body: None    

DELETE

URL: https://<host>/restconf/data/system/config/ipv4   
Request body: None    
Response body: None