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
subtype
: byte, Chassis ID Subtype. The value can be one of the following:CHASSIS_COMPONENT = 1
, Chassis ComponentINTERFACE_ALIAS = 2
, Interface AliasPORT_COMPONENT = 3
, Port ComponentMAC_ADDRESS = 4
, MAC AddressNETWORK_ADDRESS = 5
, Network AddressINTERFACE_NAME = 6
, Interface NameLOCAL = 7
, Locally assigned
chasid
: string, the actual identifier for the chassis. The format of the Chassis ID depends on the subtype selected.For
subtype == CHASSIS_COMPONENT
, thechasid = "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) orchasid = "backplane"
(4).For
subtype == MAC_ADDRESS
, thechasid
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
, thechasid
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
, thechasid
is the name of the interface.For
subtype == LOCAL
, thechasid
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"