IP Address on Management Interface for Router Image

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

/interfaces/interface/management%201

Supported HTTP Operations

GET method

/interfaces/interface/management%201/subinterfaces/subinterface/0/ipv4/addresses/address 
Request body: {
   "openconfig-if-ip:address" : [
      {
         "ip" : "xx.xx.xx.xx",
         "config" : {
            "ip" : "xx.xx.xx.xx",
            "prefix-length" : 25
         }
      }
   ]
}

Response body: None

PUT method

/interfaces/interface/management%201/subinterfaces/subinterface/0/ipv4/addresses/address/xx.xx.xx.xx  
Request body:
{
    "openconfig-if-ip:address": [
        {
            "ip": "xx.xx.xx.xx",
            "config": {
                "ip": "xx.xx.xx.xx",
                "prefix-length": 24
            }
        }

    ]
}
Response body: None    

PATCH method

/restconf/data/interfaces/interface/management%201/subinterfaces 
Request body:
 {

    "openconfig-interfaces:subinterfaces": {
        "subinterface": [
        {
            "index": 0,
                "config": {
                    "index": 0
                },
                "openconfig-if-ip:ipv4": {
                    "addresses": {
                        "address": [
                        {
                            "ip": "xx.xx.xx.xx",
                            "config": {
                                "ip": "xx.xx.xx.xx",
                                "prefix-length": 25
                            }
                        }
                        ]
                    }
                }
        }
        ]
    }
}
Response body: None    

POST method

/interfaces/interface/management%201/subinterfaces/subinterface/0/ipv4/addresses
Request body:
 {
    "openconfig-if-ip:address": [
                        {
        "ip": "xx.xx.xx.xx",
            "config": {
                "ip": "xx.xx.xx.xx",
                "prefix-length": 24
            }
        }
    ]
}
Response body: Configures management 1 interface with the IP address

DELETE

/interfaces/interface/management%201/subinterfaces/subinterface/0/ipv4/addresses/address/xx.xx.xx.xx  
Request body: None    
Response body: None