DHCP: Relay-Agent IP Helper Address

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

/openconfig-relay-agent:relay-agent/dhcp/interfaces

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/openconfig-relay-agent:relay-agent/dhcp/interfaces
Request body: None
Response body:     
{
   "openconfig-relay-agent:interface" : [
      {
         "agent-information-option" : {
            "state" : {}
         },
         "interface-ref" : {
            "state" : {}
         },
         "config" : {
            "helper-address" : [
               "29.2.2.2"
            ],
            "id" : "ve 100"
         },
         "id" : "ve 100",
         "state" : {
            "counters" : {}
         }
      }
   ]
}      

PUT method

URL: https://<host>/restconf/data/openconfig-relay-agent:relay-agent/dhcp/interfaces
Request body:
 {
        "interface": {
            "id" : "ve 100",
                "config" : {
                    "helper-address": "18.2.2.2",
                    "id" : "ve 100"
                }

        }
}
Response body: None    

PATCH method

URL: https://<host>/restconf/data/openconfig-relay-agent:relay-agent/dhcp/interfaces   
Request body:
 {
    "openconfig-relay-agent:interfaces": {
        "interface" : {
            "id" : "ve 100",
                "config" : {
                    "helper-address": "29.2.2.2",
                    "id" : "ve 100"
                }

        }
    }
}
Response body: None    

DELETE

URL: https://<host>/restconf/data/openconfig-relay-agent:relay-agent/dhcp/interfaces/interface/ve%20100/config/helper-address/29.2.2.2    
Request body: None    
Response body: Unconfigures the CLI