< Home

Data Model

The data model file matching DHCP relay is huawei-dhcp.yang.

Table 1 DHCP relay data model

Object

Description

Value Range

Remarks

/huawei-dhcp:dhcp-config/dhcpv4-config/enable

Indicates whether to enable the DHCP function.

The value is of the Boolean type:
  • true: The DHCP function is enabled.
  • false: The DHCP function is disabled.
The default value is false.
N/A

/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/enable

Indicates whether to enable the DHCP relay function.

The value is of the Boolean type:
  • true: The DHCP relay function is enabled.
  • false: The DHCP relay function is disabled.
The default value is false.
N/A

/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/server-ip

Indicates the IP address of the DHCP server served by the DHCP relay agent.

The value is in dotted decimal notation.

N/A

/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-relay-configuration/global-configuration/server-cycle-enable

Indicates whether the DHCP server polling function is enabled on the DHCP relay agent.

The value is of the Boolean type:
  • true: The DHCP server polling function is enabled on the DHCP relay agent.
  • false: The DHCP server polling function is disabled on the DHCP relay agent.
The default value is false.
N/A
/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/relay-information/enable Indicates whether to enable the Option82 function on a DHCP relay agent.
The value is of the Boolean type:
  • true: The Option82 function is enabled on the DHCP relay agent.
  • false: The Option82 function is disabled on the DHCP relay agent.
The default value is false.
N/A
/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/anycast-gw-reroute-enable Indicates whether the re-routing function for the DHCP relay agent on a distributed gateway is enabled.
The value is of the Boolean type:
  • true: The re-routing function for the DHCP relay agent on a distributed gateway is enabled.
  • false: The re-routing function for the DHCP relay agent on a distributed gateway is disabled.
The default value is false.
N/A
/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-option82-configuration/option82-enable

Indicates whether the function of adding the Option82 field to DHCP messages is enabled.

The option insertion mode on an interface or an interface in a VLAN and in a VLAN or a BD can be set to the Insert mode (insert-enable) or Rebuild mode (rebuild-enable).

The value is of the Boolean type:
  • true: The function of adding the Option82 field to DHCP messages is enabled.
  • false: The function of adding the Option82 field to DHCP messages is disabled.
The default value is false.
N/A
/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-option82-configuration/sub-option-enable

Indicates whether the function of adding a sub-option to the Option82 field is enabled.

Sub-option 1 (circuit-id-enable), sub-option 2 (remote-id-enable), suboption 6 (subscriber-id-enable), and suboption 9 (vendor-specific-enable) can be added to the Option82 field globally, on an interface, or in a VLAN or BD.

NOTE:

The four suboptions cannot be inserted simultaneously.

The value is of the Boolean type:
  • true: The function of adding a suboption to the Option82 field is enabled.
  • false: The function of adding a suboption to the Option82 field is disabled.
The default value is false.
N/A
/huawei-dhcp:dhcp-config/dhcpv4-config/dhcp-option82-configuration/option82-format/vendor-specific-format/global/vendor-sub-option/option-format
Indicates the format of suboption 9 in the Option82 field. The value can be:
  • ip-address: IP address format
  • ascii-string: ASCII character string
  • sysname: device name
  • hex-string: hexadecimal character string
  • ip-address: The value is in dotted decimal notation.
  • ascii-string: The value is an ASCII character string and must be smaller than 129 characters.
  • sysname: –
  • hex-string: The value is a hexadecimal character string. The value can contain only digits 0 to 9, uppercase letters A to F, and lowercase letters a to f. Excluding the space, the value length must be an even number smaller than 257.
N/A
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >