interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers

Configures DHCP relay servers.

Resource URIs

URI Description
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay Configures DHCP relay severs. Valid interface types: Ethernet, Ve.
GET URIs Description
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay Retrieves DHCP relay configurations. Valid interface types: Ethernet, Ve.
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers Retrieves DHCP relay server information. Valid interface types: Ethernet, Ve.
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers/address Retrieves DHCP relay server address. Valid interface types: Ethernet, Ve.
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers/address/{ip-address}/use-vrf Retrieves DHCP relay server address and VRF information. Valid interface types: Ethernet, Ve.
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers/address/{ip-address}/use-vrf/{vrf-name} Retrieves DHCP relay server address and VRF information. Valid interface types: Ethernet, Ve.
POST URIs Payload Description
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay <servers><address>(ip-address_</address><use-vrf>(vrf-name)</use-vrf></servers> Configures DHCP relay server. Valid interface types: Ethernet, Ve.
DELETE URIs
<base_URI>/config/running/interface/{interface-type}/{interface-name}/ip/dhcp/relay/servers/address/{ip-address}

Parameters

address
IP address of the server.
use-vrf
Specifies the VRF name.

Usage Guidelines

GET, POST, DELETE, OPTIONS, and HEAD operations are supported.

Examples

URI

The following example uses the GET option to retrieve the configuration details.

http://host:80/rest/config/running/interface/ve/11/ip/dhcp/relay/servers

None

<servers xmlns="urn:brocade.com:mgmt:brocade-dhcp" xmlns:y="http://brocade.com/ns/rest" 
y:self="/rest/config/running/interface/Ve/11/ip/dhcp/relay/servers/21.1.1.10%2C.">
  <address>21.1.1.10</address>
  <use-vrf>.</use-vrf>
</servers>
<servers xmlns="urn:brocade.com:mgmt:brocade-dhcp" xmlns:y="http://brocade.com/ns/rest" 
y:self="/rest/config/running/interface/Ve/11/ip/dhcp/relay/servers/31.1.1.10%2CRED">
  <address>31.1.1.10</address>
  <use-vrf>RED</use-vrf>
</servers>

URI

The following example uses the POST option to configure DHCP relay server.

http://host:80/rest/config/running/interface/ethernet/%221/10%22/ip/dhcp/relay

<servers>
  <address>10.10.10.10</address>
  <use-vrf>vrf1</use-vrf>
</servers>

None

URI

The following example uses the DELETE option to remove DHCP relay server.

http://host:80/rest/config/running/interface/ethernet/%221/10%22/ip/dhcp/relay/servers/address/10.10.10.10

None

None