< Home

Data Model

The data model files matching DHCPv6 relay agent and DHCPv6 server are huawei-dhcp.yang and huawei-address-management.yang.

Table 1 huawei-dhcp.yang data model

Object

Description

Value

Remarks

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

Enables DHCP.

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

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/source-interfaces/source-interface

Configures the IPv6 address of a specified interface as the source IPv6 address of DHCPv6 client-sourced packets forwarded by the DHCPv6 relay agent in the system view.

-

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/source-interface-name

Configures the IPv6 address of a specified interface as the source IPv6 address of DHCPv6 client-sourced packets forwarded by the DHCPv6 relay agent in the interface view.

-

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/server-format/server-ip/server-ip

Enables the DHCPv6 relay function and specifies the IPv6 address of the relayed DHCPv6 server.

The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/server-format/output-interface-name/output-interface-name

Enables the DHCPv6 relay function and specifies the IPv6 address of the next-hop DHCPv6 relay agent.

The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/pd-route

Indicates whether the function of forwarding routing information about DHCPv6 PD terminals through a DHCPv6 relay agent is enabled.

The value is of the Boolean type:
  • true: The function of forwarding routing information about DHCPv6 PD terminals through a DHCPv6 relay agent is enabled.
  • false: The function of forwarding routing information about DHCPv6 PD terminals through a DHCPv6 relay agent is disabled.
The default value is false.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/pd-route-autosaves/pd-route-autosave/file-name

Saves routing information forwarded through a relay agent to a specified file.

The value is a string of 1 to 51 characters without spaces. A combination of digits, letters, underscores (_), and dots (.) is allowed.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-server-configuration/global-servers/global-server/database

Enables the DHCPv6 data save function. The object includes:

  • url: file path and file name to be saved.
  • write-delay: interval for saving the data.
  • url: The value is a string of 1 to 63 case-insensitive characters without spaces.
  • write-delay: The value is an integer that ranges from 300 to 86400, in seconds. The default value is 86400 seconds.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/global-option79-enable/option79-enable/insert-enable

Indicates whether the function of inserting the Option79 field into DHCPv6 messages in the global view.

The value is of the Boolean type:
  • true: The function of inserting the Option79 field into DHCPv6 messages in the global view is enabled.
  • false: The function of inserting the Option79 field into DHCPv6 messages in the global view is disabled.
The default value is false.

N/A

/huawei-dhcp:dhcp-config/dhcpv6-config/dhcp-relay-configuration/dhcp-relays/dhcp-relay/option79-insert-enable

Indicates whether the function of inserting the Option79 field into DHCPv6 messages in the interface view.

The value is of the Boolean type:
  • true: The function of inserting the Option79 field into DHCPv6 messages in the interface view is enabled.
  • false: The function of inserting the Option79 field into DHCPv6 messages in the interface view is disabled.
The default value is false.

N/A

Table 2 huawei-address-management.yang data model

Object

Description

Value

Remarks

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool

Creates an IPv6 address pool.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value can contain digits, letters, underscores (_), and dots (.).

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/link-address

Specifies the network prefix and prefix length in an IPv6 address pool.

The DHCPv6 server determines the clients on network segments to which the server assigns network configuration parameters from an address pool based on the configured network prefixes.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

The prefix length is an integer that ranges from 16 to 128.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/information-refresh-time

Configures the time for updating configuration parameters assigned to clients in stateless DHCPv6 mode from an IPv6 address pool.

The value is an integer that ranges from 600 to 4294967295, in seconds.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/capwap-ac-ip

Configures the AC's IPv6 address configured in an IPv6 address pool.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/domain/domain-name

Configures the domain name suffix assigned to a DHCPv6 client from an IPv6 address pool.

The value is a string of 1 to 63 case-insensitive characters without spaces. The value can contain digits, letters, underscores (_), and dots (.).

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/sip-server-ip

Configures the SIP server IPv6 address assigned to a DHCPv6 client from an IPv6 address pool.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/sip-domain-name

Configures the SIP domain name suffix assigned to a DHCPv6 client from an IPv6 address pool.

The value is a string of 1 to 63 case-insensitive characters without spaces. The value can contain digits, letters, underscores (_), and dots (.).

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/nis-server-ip

Configures the NIS server IPv6 address assigned to a DHCPv6 client from an IPv6 address pool.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/nis-domain-name

Configures the NIS domain name suffix assigned to a DHCPv6 client from an IPv6 address pool.

The value is a string of 1 to 63 case-insensitive characters without spaces. The value can contain digits, letters, underscores (_), and dots (.).

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/nisp-server-ip

Configures the NISP server IPv6 address assigned to a DHCPv6 client from an IPv6 address pool.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/nisp-domain-name

Configures the NISP domain name suffix assigned to a DHCPv6 client from an IPv6 address pool.

The value is a string of 1 to 63 case-insensitive characters without spaces. The value can contain digits, letters, underscores (_), and dots (.).

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/sntp-server-ip

Configures the SNTP server IPv6 address assigned to a DHCPv6 client from an IPv6 address pool.

The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/vendor-specific-options/vendor-specific-option/vendor-id

Configures the vendor-defined option in an IPv6 address pool.

The value is an integer that ranges from 1 to 4294967295.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/vendor-specific-options/vendor-specific-option/sub-option

Configures the vendor-defined DHCPv6 sub-option in an IPv6 address pool. The object includes:
  • sub-option-code: indicates the code of the vendor-defined DHCPv6 sub-option.
  • ip-address: The vendor-defined option code is of the IPv6 address type.
  • ascii-string: The vendor-defined option code is of the ASCII character string type.
  • hex-string: The vendor-defined option code is of the hexadecimal numeral string type.
  • sub-option-code: The value is an integer that ranges from 1 to 65535.
  • ip-address: The total length of the value is 128 bits, which are divided into eight groups. Each group contains four hexadecimal digits. The value is in the format of X:X:X:X:X:X:X:X.
  • ascii-string: The value is a string of 1 to 255 characters. The value can contain digits, letters, underscores (_), and dots (.).
  • hex-string: The value is a hexadecimal numeral string with an even number of characters (such as aa or aaaa). The even number ranges from 2 to 128.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/pd-prefixes/pd-prefix

Configures a delegated prefix in an IPv6 address pool. The object includes:

  • ipv6-prefix: indicates the prefix subnet and prefix length bound to an IPv6 address pool.

  • assign-prefix-length: indicates the lifetime of the address prefix bound to an IPv6 address pool.

  • valid-lifetime: indicates the valid lifetime.

  • preferred-lifetime: indicates the preferred lifetime.

  • ipv6-prefix: The value is a 32-digit hexadecimal number, in the format X:X::X:X/M.

  • assign-prefix-length: The value is an integer that ranges from 1 to 128.

  • valid-lifetime: The value ranges from 60 to 172799999, in seconds. The default value is 172800, that is, two days.

  • preferred-lifetime: The value ranges from 60 to 172799999, in seconds. The default value is 86400, that is, one day.

N/A

/huawei-address-management:address-management/ipv6/ip-pools/ip-pool/logging/log-type

Enables the log function.

The value can be:

  • allocation-address-success

  • allocation-prefix-success

  • detect-address-conflict

  • release-address-success

  • release-prefix-success

  • renew-address-success

  • renew-prefix-success

N/A

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >