P_LLDP_NEIGHBORS
code: tbd
# get
<module-index>/<port-index> P_LLDP_NEIGHBORS ?
Description
Displays LLDP neighbors discovered by the port.
Actions
get
Parameters
neighbors: json, information of LLDP neighbors.
{
"neighbors": [
{
"chassis_id":
{
"subtype": 4,
"id": "00:11:22:33:44:55"
},
"port_id":
{
"subtype": 5,
"id": "Ethernet1/1"
},
"time_to_live": 120,
"port_description": "Uplink Port",
"system_name": "SwitchA",
"system_description": "Model X, OS v1.0"
"capabilities":
{
"capabilities": 0x0014,
"enabled": 0x0014
},
"management_address":
{
"subtype": 802,
"address": "000130f9adda0",
"interface_subtype": 2,
"interface_number": 1001,
"oid": "1.3.6.1.5.5.7.48.1"
},
"uec_link_options":
{
"ue_llr_w": 1,
"ue_llr_e": 0
},
"uec_cbfc":
{
"sender_info":
{
"error_code": 0,
"credit_size": 512,
"packet_overhead": 24,
"vc_ready_to_send": 1
},
"receiver_info":
{
"cell_size": 256,
"packet_overhead": 24,
"total_credits": 2048,
"vs_info_params":
[
{
"vc_want": 1,
"vc_rtr": 1,
"vc_id": 5,
"pkt_id_type": 1,
"pkt_id": 100,
"mask_pcp_dei": 0xFF,
"pcp_dei": 0x20,
"dscp_mask": 0x3F,
"dscp": 0x2E,
"handle": 12345,
"credit_limit": 4096
},
...
]
}
}
},
...
]
}
Cmd0109ReplySchema:
type: object
properties:
chassis_id:
type: object
properties:
subtype:
type: integer
description: |
Subtype of the chassis ID.
id:
type: string
description: |
Chassis ID of the neighbor.
port_id:
type: object
properties:
subtype:
type: integer
description: |
Subtype of the port ID.
id:
type: string
description: |
Port ID of the neighbor.
time_to_live:
type: integer
description: |
Time to live value for the LLDP information.
port_description:
type: string
description: |
Description of the port.
system_name:
type: string
description: |
System name of the neighbor.
system_description:
type: string
description: |
System description of the neighbor.
capabilities:
type: object
properties:
capabilities:
type: integer
description: |
Capabilities of the neighbor.
enabled:
type: integer
description: |
Enabled capabilities of the neighbor.
management_address:
type: object
properties:
subtype:
type: integer
description: |
Subtype of the management address.
address:
type: string
description: |
Management address of the neighbor.
interface_subtype:
type: integer
description: |
Interface subtype of the management address.
interface_number:
type: integer
description: |
Interface number of the management address.
oid:
type: string
description: |
Object identifier of the management address.
uec_link_options:
type: object
properties:
ue_llr_w:
type: integer
description: |
Indicates if UE LLR is wanted.
ue_llr_e:
type: integer
description: |
Indicates if UE LLR is enabled.
uec_cbfc:
type: object
properties:
sender_info:
type: object
properties:
error_code:
type: integer
description: |
Error code for sender information.
credit_size:
type: integer
description: |
Credit size for sender information.
packet_overhead:
type: integer
description: |
Packet overhead for sender information.
vc_ready_to_send:
type: integer
description: |
VC ready to send status for sender information.
receiver_info:
type: object
properties:
cell_size:
type: integer
description: |
Cell size for receiver information.
packet_overhead:
type: integer
description: |
Packet overhead for receiver information.
total_credits:
type: integer
description: |
Total credits for receiver information.
vs_info_params:
type: array
description: |
Virtual channel configuration parameters.
items:
type: object
properties:
vc_want:
type: integer
description: |
Indicates if VC is wanted.
vc_rtr:
type: integer
description: |
Indicates if VC is ready to receive.
vc_id:
type: integer
description: |
Virtual channel identifier.
pkt_id_type:
type: integer
description: |
The type of identifier for the VC.
pkt_id:
type: integer
description: |
Packet identifier for the VC.
mask_pcp_dei:
type: integer
description: |
L2 PCP/DEI mask for the VC.
pcp_dei:
type: integer
description: |
L2 PCP/DEI value for the VC.
dscp_mask:
type: integer
description: |
IP DSCP mask for the VC.
dscp:
type: integer
description: |
IP DSCP value for the VC.
handle:
type: integer
description: |
Handle for the VC.
credit_limit:
type: integer
description: |
Credit limit for the VC.
Example
# get
input: 0/1 P_LLDP_NEIGHBORS ?
output: 0/1 P_LLDP_NEIGHBORS