P_LLDP_TLV_CHASID

code: tbd

# set
<module-index>/<port-index> P_LLDP_TLV_CHASID <subtype> <chasid>

# get
<module-index>/<port-index> P_LLDP_TLV_CHASID ?

Description

TLV Type = 1

This configures the LLDPDU Chassis ID TLV for the port. The Chassis ID TLV is a mandatory TLV that identifies the chassis.

Actions

set, get

Parameters

  1. subtype: byte, Chassis ID Subtype. The value can be one of the following:

    • CHASSIS_COMPONENT = 1, Chassis Component

    • INTERFACE_ALIAS = 2, Interface Alias

    • PORT_COMPONENT = 3, Port Component

    • MAC_ADDRESS = 4, MAC Address

    • NETWORK_ADDRESS = 5, Network Address

    • INTERFACE_NAME = 6, Interface Name

    • LOCAL = 7, Locally assigned

  2. chasid: string, the actual identifier for the chassis. The format of the Chassis ID depends on the subtype selected.

    • For subtype == CHASSIS_COMPONENT, the chasid = "chassis" (3).

    • For subtype == INTERFACE_ALIAS, the chassis ID is a string representing the alias of the interface, maximum 64 characters.

    • For subtype == PORT_COMPONENT, chasid = "port" (10) or chasid = "backplane" (4).

    • For subtype == MAC_ADDRESS, the chasid is the MAC address of the port in the format “XX:XX:XX:XX:XX:XX”, where each “XX” is a two-digit hexadecimal number.

    • For subtype == NETWORK_ADDRESS, the chasid is the IPv4 address of the port in the format “XXX.XXX.XXX.XXX”, where each “XXX” is a three-digit decimal number.

    • For subtype == INTERFACE_NAME, the chasid is the name of the interface.

    • For subtype == LOCAL, the chasid is a string representing the locally assigned identifier.

Example

# set
input:  0/1 P_LLDP_TLV_CHASID MAC_ADDRESS "00:11:22:33:44:55"
output: <OK>

# get
input:  0/1 P_LLDP_TLV_CHASID ?
output: 0/1 P_LLDP_TLV_CHASID MAC_ADDRESS "00:11:22:33:44:55"