< Home

Data Model

The configuration model files matching LLDP are ietf-interfaces.yang, huawei-lldp.yang, and huawei-device.yang.

Table 1 Configuration objects of LLDP

Object

Description

Value

Remarks

/huawei-lldp:lldp/enabled

Indicates whether the global LLDP function is enabled on the switch.

The value is of the Boolean type:

  • true: This function is enabled.
  • false: The function is disabled.

By default, the global LLDP function is enabled on the switch.

Operations can be performed on other objects only when the global LLDP function is enabled on the switch.

/huawei-lldp:lldp/sensor-ap-vlanid

Configures the switch to identify Huawei Fit APs using LLDP and adds the interfaces receiving LLDP packets from the APs to the specified VLAN in untagged mode.

The value is an integer ranging from 1 to 4094. By default, this function is disabled.

The VLAN specified in the object can be an existing VLAN or created after this object is executed, but cannot be the control VLAN of ring protocols such as SEP, RRPP, and ERPS.

/huawei-lldp:lldp/sensor-ap-trunk-vlanid

Configures a switch to automatically identify Huawei Fit APs through the LLDPDUs sent from the Fit APs and add the receiving interfaces to the specified VLAN in tagged mode.

The value of this object can be either of the following:

  • An integer in the range from 1 to 4094.
  • A string of characters in the format of x..y, which represents VLAN x to VLAN y. The value of x and y is an integer in the range from 1 to 4094, and the value of y must be greater than or equal to that of x.

Multiple VLAN configurations are supported. The value of this object cannot contain the VLAN IDs configured by /huawei-lldp:lldp/sensor-ap-vlanid object.

/huawei-lldp:lldp/management-address

Configures the LLDP management IP address.

The value is in dotted decimal notation.

N/A

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/admin-status

Indicates whether the LLDP function is enabled on the interface.

The value is of the enumerated type:

  • tx-rx: The LLDP function is enabled on the interface.
  • disabled: The LLDP function is disabled on the interface.

By default, the LLDP function status on an interface is the same as the global LLDP function status.

N/A

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/compliance-cdp-status

Refer to the value.

The value is of the enumerated type:

  • rx-only: CDP-compatible LLDP is enabled on the interface.
  • tx-rx: The interface is enabled to exchange information with CDP-capable voice devices.
  • disabled: The above functions are disabled.

By default, the two functions are disabled.

N/A

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/type

Specifies the MED TLVs advertised on the interface.

The value is tlv-med-network-policy, indicating that the Network Policy TLV is advertised on the interface. Network Policy TLV is used to exchange VLAN configurations between network devices and terminal devices. A switch uses this TLV to advertise Voice VLAN ID and voice stream priority to an IP phone. Then the IP phone forwards packets according to the received Voice VLAN ID and priority, ensuring the voice quality.

This object and /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/enable must be configured simultaneously.

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/enable

Indicates whether the MED TLV is advertised on the interface.

The value is of the Boolean type:

  • true: The MED TLV is advertised.
  • false: The MED TLV is not advertised.

By default, the MED TLV is not advertised on the interface.

This object and /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/type must be configured simultaneously.

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/vlan-type

Specifies the VLAN type in the Network Policy TLV advertised on the interface.

The value is of the enumerated type:

  • network-policy-vlan-vlanid: The Voice VLAN ID is encapsulated when Network Policy TLV is advertised.
  • network-policy-vlan-8021: The VLAN ID of the Voice VLAN is set to 0.
  • network-policy-vlan-untagged: Terminals are configured to send untagged voice packets.

If this object is configured as network-policy-vlan-vlanid, you must configure the /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/parameters/vlanid object simultaneously.

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/parameters/vlanid

Specifies the Voice VLAN ID.

The value is an integer ranging from 1 to 4094.

This object can be and must be configured only when the value of /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/vlan-type is network-policy-vlan-vlanid.

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/parameters/cos

Specifies the 802.1p priority of the voice packets.

The value is an integer ranging from 0 to 7, and the default value is 5. A larger value indicates a higher priority.

This object can be configured only when the value of /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/vlan-type is network-policy-vlan-vlanid or network-policy-vlan-8021.

/ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/parameters/dscp

Specifies the DSCP priority of the voice packets.

The value is an integer ranging from 0 to 63, and the default value is 46. A larger value indicates a higher priority.

This object can be configured only when the value of /ietf-interfaces:interfaces/interface/huawei-lldp:lldp/tlv/med/tlvs/parameters/network-policy/vlan-type is network-policy-vlan-vlanid or network-policy-vlan-8021.

/huawei-device:device/domain-name

Adds a suffix to a device name.

The value is a string of 1 to 255 characters without spaces. Letters, digits, hyphen (-), underscores (_), and dots (.) are allowed.

Only the S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5720S-SI, S5720I-SI, S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI support this object.

/huawei-device:device-state/domain-name

Queries the suffix of a device name.

The value is a character string.

This object only supports the get operation.

Only the S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5720S-SI, S5720I-SI, S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI support this object.

Table 2 Information about LLDP neighbors returned/reported by switches

Object

Description

/huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/event-type

Indicates the type of neighbor change:

  • add: adding a neighbor
  • del: deleting a neighbor
  • update: updating the neighbor information
  • /ietf-interfaces:interfaces-state/interface/name
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/local-port

Indicates the local interface name.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/index
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/remote-index

Indicates the index of a neighbor.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/chassic-id-sub-type
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/chassis-id-sub-type

Indicates the ID type of a neighboring device:

  • 1. chassis alias
  • 2: interface alias
  • 3. interface or backplane alias
  • 4: MAC address
  • 5: IP address
  • 6: interface name
  • 7: name of the local device
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/chassis-id
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/chassis-id

Indicates the ID of a neighboring device.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/port-id-sub-type
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/port-id-sub-type

Indicates the ID type of a neighboring interface:

  • 1: interface alias
  • 2. interface or backplane alias
  • 3: MAC address
  • 4: IP address
  • 5: interface name
  • 6: circuit ID of the DHCP agent
  • 7: name of the local device
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/port-id
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/port-id

Indicates the ID of a neighboring interface.

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/port-description

Indicates the description of a neighboring interface.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/system-name
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/system-name

Indicates the name of a neighboring device.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/system-description
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/system-description

Indicates the description of a neighboring device.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/system-cap-supported
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/system-cap-supported

Indicates capabilities supported by a neighboring device:

  • cap-repeater: repeater
  • cap-bridge: bridge device
  • cap-wlanAccessPoint: wireless access point
  • cap-router: router
  • cap-telephone: wireless device
  • cap-docsisCableDevice: management station
  • cap-stationOnly: base station
  • cap-other: other capabilities
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/system-cap-enabled
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/system-cap-enabled

Indicates capabilities enabled on a neighboring device:

  • cap-repeater: repeater
  • cap-bridge: bridge device
  • cap-wlanAccessPoint: wireless access point
  • cap-router: router
  • cap-telephone: wireless device
  • cap-docsisCableDevice: management station
  • cap-stationOnly: base station
  • cap-other: other capabilities

Multiple capabilities can be enabled on a neighboring device simultaneously.

  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/manufacturer-name
  • /huawei-lldp:lldp-neighbor-change-event/lldp-neighbor/peer-device/manufacturer-name

Name of the manufacturer.

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/remote-management/subtype

Indicates the management address type of a neighboring device:

  • 1: IPv4 address
  • 2: IPv6 address
  • 3: NSAP
  • 4: HDLC
  • 5: BBN 1822
  • 6: MAC address
  • 7: E.163
  • 8: E.164
  • 9: F.69
  • 10: X.121
  • 11: IPX
  • 12: AppleTalk
  • 13: DECnet IV
  • 14: Banyan Vines
  • 15: E.164 with NSAP subaddress
  • 16: DNS
  • 17: Distinguished Name
  • 18: AS number
  • 19: XTP over IPv4
  • 20: XTP over IPv6

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/remote-management/address

Indicates the management address of a neighboring device.

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/remote-management/if-subtype

Indicates the interface index type for the management address of a neighboring device:

  • 1: Unknown
  • 2: interface index

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/remote-management/if-id

Indicates the interface index for the management address of a neighboring device.

/ietf-interfaces:interfaces-state/interface/huawei-lldp:lldp/remote-port/remote-management/oid

Indicates the OID for the management address of a neighboring device.

Table 3 Information about CDP neighbors returned/reported by switches

Object

Description

/huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/event-type

Indicates the type of neighbor change:

  • add: adding a neighbor
  • del: deleting a neighbor
  • update: updating the neighbor information

/huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/local-port

Indicates the local interface name.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/remote-index
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/index

Indicates the index of a neighbor.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/device-id
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/device-id

Indicates the ID of a neighboring device.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/port-id
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/port-id

Indicates the ID of a neighboring interface.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/system-capabilities
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/system-capabilities

Indicates capabilities enabled on a neighboring device:

  • router
  • trans-bridge: bridge device
  • source-route-bridge: source routing bridge
  • switch
  • host
  • igmp: IGMP-capable device
  • repeater
  • phone: IP phone
  • other: other capabilities

Multiple capabilities can be enabled on a neighboring device simultaneously.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/system-platform
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/system-platform

Indicates the software platform of a neighboring device.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/system-version
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/system-version

Indicates the software version of a neighboring device.

  • /huawei-lldp:cdp-neighbor-change-event/cdp-neighbor/peer-device/system-mac-address
  • /ietf-interfaces:interfaces-state/interface/huawei-lldp:cdp/remote-port/system-mac-address

Indicates the MAC address of a neighboring device.

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