< Home

Data Model

The data model file matching DHCP snooping is huawei-savi.yang.

Table 1 DHCP snooping

Object

Description

Value Range

Remarks

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

Indicates whether the DHCP function is enabled.

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-savi/savi/dhcp-snooping/snooping-global-enable/ipv4-enable

Indicates whether DHCP snooping is enabled globally.

The device processes only DHCPv4 messages.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping-global-enable/ipv6-enable

Indicates whether DHCP snooping is enabled globally.

The device processes only DHCPv6 messages.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping-global-enable/arp-detect-enable

Indicates whether association between ARP and DHCP snooping is enabled.

The value is of the Boolean type:
  • true: Association between ARP and DHCP snooping is enabled.
  • false: Association between ARP and DHCP snooping is disabled.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping-global-enable/server-detect-enable

Indicates whether DHCP server detection is enabled.

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

N/A

/huawei-savi/savi/dhcp-snooping/global-config/alarm-threshold

Indicates the alarm threshold for the number of discarded DHCP snooping messages.

The value is an integer in the range from 1 to 1000.

N/A

/huawei-savi/savi/dhcp-snooping/global-config/max-user-number

Indicates the maximum number of DHCP snooping binding entries to be learned on an interface.

The configured value is the total number of DHCP snooping binding entries to be learned on all interfaces on the device.

The value is an integer that varies depending on product models.

N/A

/huawei-savi:savi/dhcp-snooping/snooping-global-enable/packet-flow-log-enable

Indicates whether the function of recording logs when DHCP messages are exchanged is enabled.

The value is of the Boolean type:
  • true: The function of recording logs when DHCP messages are exchanged is enabled.
  • false: The function of recording logs when DHCP messages are exchanged is disabled.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/interface-name

Indicates the interface name.

The interface type and number must exist.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/bridge-domain/snooping-enable

Indicates whether DHCP snooping is enabled on BD.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping/bridge-domain/snooping-trust-enable

Indicates whether an interface is a trusted BD.

The value is of the Boolean type:
  • true: The BD is a trusted interface.
  • false: The BD is an untrusted interface.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/snooping-enable

Indicates whether DHCP snooping is enabled on an interface.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/snooping-trust-enable

Indicates whether an interface is a trusted interface.

The value is of the Boolean type:
  • true: The interface is a trusted interface.
  • false: The interface is an untrusted interface.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/disable

Indicates whether DHCP snooping is disabled on an interface.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/check-dhcp-request

Indicates whether the device is enabled to check DHCP messages against the DHCP snooping binding table.

The value is of the Boolean type:
  • true: The device is enabled to check DHCP messages against the DHCP snooping binding table.
  • false: The device is disabled from checking DHCP messages against the DHCP snooping binding table.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/alarms/alarm/type

Indicates the DHCP snooping alarm type in the interface.

The value is dhcp-request, dhcp-chaddr, dhcp-reply, or dhcpv6-request.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/alarms/alarm/enable

Indicates whether the DHCP snooping alarm function is enabled in the interface.

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

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/alarms/alarm/threshold

Indicates the alarm threshold in the interface.

The value is an integer in the range from 1 to 1000.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/max-user-number

Indicates the maximum number of DHCP snooping binding entries to be learned on an interface.

The value is the smallest of the values configured in the system view, VLAN view, and interface view.

The value is an integer that varies depending on product models.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/interface/check-dhcp-chaddr

Indicates whether the function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is enabled.

The value is of the Boolean type:
  • true: The function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is enabled.
  • false: The function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is disabled.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/start-vlan-id

Indicates the start VLAN ID.

The value must be the ID of an existing VLAN.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/end-vlan-id

Indicates the end VLAN ID.

The value must be the ID of an existing VLAN.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/snooping-enable

Indicates whether DHCP snooping is enabled.

The value is of the Boolean type:

  • true: DHCP snooping is enabled.
  • false: DHCP snooping is disabled.

The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/check-dhcp-request

Indicates whether the device is enabled to check DHCP messages against the DHCP snooping binding table.

In the VLAN view, the device checks all the DHCP messages in the specified VLAN received by all the interfaces on the device.

The value is of the Boolean type:
  • true: The device is enabled to check DHCP messages against the DHCP snooping binding table.
  • false: The device is disabled from checking DHCP messages against the DHCP snooping binding table.
The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/max-user-number

Indicates the maximum number of DHCP snooping binding entries to be learned on an interface.

The configured value is the largest of the values on all the interfaces added to the specified VLAN.

The value is an integer that varies depending on product models.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan/check-dhcp-chaddr

Indicates whether the function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is enabled.

This function takes effect for the DHCP messages in the specified VLAN received by all the interfaces on the device in the vlan.

The value is of the Boolean type:

  • true: The function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is enabled.
  • false: The function of checking whether the source MAC address in a DHCP Request packet header is the same as the CHADDR field is disabled.

The default value is false.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan-and-interface/vlan-id

Indicates the VLAN ID.

The VLAN ID must exist.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan-and-interface/interface-name

Indicates the interface name.

The value must be the type and number of an interface added into the VLAN.

N/A

/huawei-savi/savi/dhcp-snooping/snooping/vlan-and-interface/snooping-trust-enable

Indicates whether an interface is a trusted interface.

The value is of the Boolean type:
  • true: The interface is a trusted interface.
  • false: The interface is an untrusted interface.
The default value is false.

N/A

/huawei-savi/savi/savi-config/enable

Indicates whether the SAVI function is enabled.

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

N/A

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