Skip to content

Commit b6b030d

Browse files
Enric Perpinyà Pitarchmjbear
andauthored
New template for Alcatel AOS: show lldp remote-system (#1917)
Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent fded2cb commit b6b030d

6 files changed

Lines changed: 381 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Value Filldown LOCAL_INTERFACE (\S+)
2+
Value Required CHASSIS_ID (\S+)
3+
Value Required MAC_ADDRESS (\S+)
4+
# question mark in many regexes so we don't capture the optional trailing comma
5+
Value REMOTE_ID (.+?)
6+
Value CHASSIS_SUBTYPE (.+?)
7+
Value PORT_SUBTYPE (.+?)
8+
Value NEIGHBOR_INTERFACE (.+?)
9+
Value NEIGHBOR_NAME (.+?)
10+
Value NEIGHBOR_DESCRIPTION (.+?)
11+
Value CAPABILITIES_SUPPORTED (.+?)
12+
Value CAPABILITIES_ENABLED (.+?)
13+
Value MGMT_ADDRESS (.+?)
14+
Value MED_DEVICE_TYPE (.+?)
15+
Value MED_CAPABILITIES (.+?)
16+
Value MED_EXTENSION_TLVS_PRESENT (.+?)
17+
Value POWER_DEVICE_TYPE (.+?)
18+
Value POWER_SOURCE (.+?)
19+
Value POWER_PRIORITY (.+?)
20+
Value POWER_REQUESTED (.+?)
21+
Value REMOTE_PORT_MAC_PHY_AUTONEG (.+?)
22+
Value MAU_TYPE (.+?)
23+
24+
Start
25+
^\s*Remote\s+LLDP\s+nearest-bridge\s+Agents\s+on\s+Local\s+Port\s+${LOCAL_INTERFACE}:\s*$$
26+
^\s*Remote\s+LLDP\s+Agents\s+on\s+Local\s+Slot\/Port\s+${LOCAL_INTERFACE}:\s*$$
27+
^\s*$$ -> LLDP
28+
^.*$$ -> Error
29+
30+
LLDP
31+
^\s*Chassis\s+${CHASSIS_ID},\s+Port\s+${MAC_ADDRESS}:\s*$$
32+
^\s*Remote\s+ID\s+=\s+${REMOTE_ID},?\s*$$
33+
^\s*Chassis\s+Subtype\s+=\s+${CHASSIS_SUBTYPE},?\s*$$
34+
^\s*Port\s+Subtype\s+=\s+${PORT_SUBTYPE},?\s*$$
35+
^\s*Port\s+Description\s+=\s+(\(null\)|${NEIGHBOR_INTERFACE}),?\s*$$
36+
^\s*System\s+Name\s+=\s+${NEIGHBOR_NAME},?\s*$$
37+
^\s*System\s+Description\s+=\s+(\(null\)|${NEIGHBOR_DESCRIPTION}),?\s*$$
38+
^\s*Capabilities\s+Supported\s+=\s+${CAPABILITIES_SUPPORTED},?\s*$$
39+
^\s*Capabilities\s+Enabled\s+=\s+${CAPABILITIES_ENABLED},?\s*$$
40+
^\s*Management\s+IP\s+Address\s+=\s+${MGMT_ADDRESS},?\s*$$
41+
^\s*MED\s+Device\s+Type\s+=\s+${MED_DEVICE_TYPE},?\s*$$
42+
^\s*MED\s+Capabilities\s+=\s+${MED_CAPABILITIES},?\s*$$
43+
^\s*MED\s+Extension\s+TLVs\s+Present\s+=\s+${MED_EXTENSION_TLVS_PRESENT},?\s*$$
44+
^\s*MED\s+Power\s+Type\s+=\s+${POWER_DEVICE_TYPE},?\s*$$
45+
^\s*MED\s+Power\s+Source\s+=\s+${POWER_SOURCE},?\s*$$
46+
^\s*MED\s+Power\s+Priority\s+=\s+${POWER_PRIORITY},?\s*$$
47+
^\s*MED\s+Power\s+Value\s+=\s+${POWER_REQUESTED},?\s*$$
48+
^\s*Remote\s+port\s+MAC\/PHY\s+AutoNeg\s+=\s+${REMOTE_PORT_MAC_PHY_AUTONEG},?\s*$$
49+
^\s*Remote\s+port\s+default\s+vlan
50+
^\s*Mau\s+Type\s+=\s+${MAU_TYPE},?\s*$$
51+
^\s*$$ -> Record Start
52+
^.*$$ -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#
1212
Template, Hostname, Platform, Command
1313

14+
alcatel_aos_show_lldp_remote-system.textfsm, .*, alcatel_aos, sh[[ow]] lldp r[[emote-system]]
1415
alcatel_aos_show_interfaces_status.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] st[[atus]]
1516
alcatel_aos_show_mac-address-table.textfsm, .*, alcatel_aos, sh[[ow]] mac-(a[[ddress-table]]|l[[earning]])
1617
alcatel_aos_show_port-security.textfsm, .*, alcatel_aos, sh[[ow]] port-[[security]]
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
Remote LLDP Agents on Local Slot/Port 1/1:
2+
3+
Chassis aa:aa:aa:aa:aa:aa, Port bb:bb:bb:bb:bb:bb:
4+
Remote ID = 1,
5+
Chassis Subtype = 1 (MAC Address),
6+
Port Subtype = 1 (MAC address),
7+
Port Description = Alcatel-Lucent Enterprise OAW-AP1201H eth0-4094,
8+
System Name = AP,
9+
System Description = Alcatel-Lucent Enterprise OAW-AP1201H 1.0.0.10,
10+
Capabilities Supported = Bridge WLAN AP Router Station Only,
11+
Capabilities Enabled = Bridge WLAN AP Router,
12+
Management IP Address = 1.1.1.1,
13+
MED Device Type = Network Connectivity,
14+
MED Capabilities = Capabilities | Power via MDI-PD(33),
15+
MED Extension TLVs Present = Network Policy| Inventory,
16+
MED Power Type = PD Device,
17+
MED Power Source = PSE and Local,
18+
MED Power Priority = Low,
19+
MED Power Value = 25.4 W
20+
21+
Remote LLDP Agents on Local Slot/Port 1/2:
22+
23+
Chassis aa:aa:aa:aa:aa:aa, Port bb:bb:bb:bb:bb:bb:
24+
Remote ID = 1,
25+
Chassis Subtype = 1 (MAC Address),
26+
Port Subtype = 1 (MAC address),
27+
Port Description = Alcatel-Lucent Enterprise OAW-AP1321 eth1,
28+
System Name = AP,
29+
System Description = Alcatel-Lucent Enterprise OAW-AP1321 1.0.0.10,
30+
Capabilities Supported = Bridge WLAN AP Router Station Only,
31+
Capabilities Enabled = Bridge WLAN AP Router,
32+
Management IP Address = 1.1.1.1,
33+
MED Device Type = Network Connectivity,
34+
MED Capabilities = Capabilities | Power via MDI-PD(33),
35+
MED Extension TLVs Present = Network Policy| Inventory,
36+
MED Power Type = PD Device,
37+
MED Power Source = PSE and Local,
38+
MED Power Priority = Low,
39+
MED Power Value = 25.4 W,
40+
Remote port MAC/PHY AutoNeg = Supported Enabled Capability 0x8336,
41+
Mau Type = 1000BaseTFD - Four-pair Category 5 UTP full duplex mode
42+
43+
Remote LLDP Agents on Local Slot/Port 1/3:
44+
45+
Chassis aa:aa:aa:aa:aa:aa, Port bb:bb:bb:bb:bb:bb:
46+
Remote ID = 1,
47+
Chassis Subtype = 1 (MAC Address),
48+
Port Subtype = 1 (MAC address),
49+
Port Description = Alcatel-Lucent Enterprise OAW-AP1361 eth0,
50+
System Name = AP,
51+
System Description = Alcatel-Lucent Enterprise OAW-AP1361 1.0.0.10,
52+
Capabilities Supported = Bridge WLAN AP Router Station Only,
53+
Capabilities Enabled = Bridge WLAN AP Router,
54+
Management IP Address = 1.1.1.1,
55+
MED Device Type = Network Connectivity,
56+
MED Capabilities = Capabilities | Power via MDI-PD(33),
57+
MED Extension TLVs Present = Network Policy| Inventory,
58+
Remote port MAC/PHY AutoNeg = Supported Enabled Capability 0x8337,
59+
Mau Type = 1000BaseTFD - Four-pair Category 5 UTP full duplex mode
60+
61+
Remote LLDP Agents on Local Slot/Port 1/4:
62+
63+
Chassis aa:aa:aa:aa:aa:aa, Port 1001:
64+
Remote ID = 123,
65+
Chassis Subtype = 1 (MAC Address),
66+
Port Subtype = 1 (Locally assigned),
67+
Port Description = Alcatel-Lucent OS6860 GNI 1/1/1,
68+
System Name = SW,
69+
System Description = (null),
70+
Capabilities Supported = Bridge Router,
71+
Capabilities Enabled = Bridge Router,
72+
Management IP Address = 1.1.1.1
73+
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
parsed_sample:
3+
- capabilities_enabled: "Bridge WLAN AP Router"
4+
capabilities_supported: "Bridge WLAN AP Router Station Only"
5+
chassis_id: "aa:aa:aa:aa:aa:aa"
6+
chassis_subtype: "1 (MAC Address)"
7+
local_interface: "1/1"
8+
mac_address: "bb:bb:bb:bb:bb:bb"
9+
mau_type: ""
10+
med_capabilities: "Capabilities | Power via MDI-PD(33)"
11+
med_device_type: "Network Connectivity"
12+
med_extension_tlvs_present: "Network Policy| Inventory"
13+
mgmt_address: "1.1.1.1"
14+
neighbor_description: "Alcatel-Lucent Enterprise OAW-AP1201H 1.0.0.10"
15+
neighbor_interface: "Alcatel-Lucent Enterprise OAW-AP1201H eth0-4094"
16+
neighbor_name: "AP"
17+
port_subtype: "1 (MAC address)"
18+
power_device_type: "PD Device"
19+
power_priority: "Low"
20+
power_requested: "25.4 W"
21+
power_source: "PSE and Local"
22+
remote_id: "1"
23+
remote_port_mac_phy_autoneg: ""
24+
- capabilities_enabled: "Bridge WLAN AP Router"
25+
capabilities_supported: "Bridge WLAN AP Router Station Only"
26+
chassis_id: "aa:aa:aa:aa:aa:aa"
27+
chassis_subtype: "1 (MAC Address)"
28+
local_interface: "1/2"
29+
mac_address: "bb:bb:bb:bb:bb:bb"
30+
mau_type: "1000BaseTFD - Four-pair Category 5 UTP full duplex mode"
31+
med_capabilities: "Capabilities | Power via MDI-PD(33)"
32+
med_device_type: "Network Connectivity"
33+
med_extension_tlvs_present: "Network Policy| Inventory"
34+
mgmt_address: "1.1.1.1"
35+
neighbor_description: "Alcatel-Lucent Enterprise OAW-AP1321 1.0.0.10"
36+
neighbor_interface: "Alcatel-Lucent Enterprise OAW-AP1321 eth1"
37+
neighbor_name: "AP"
38+
port_subtype: "1 (MAC address)"
39+
power_device_type: "PD Device"
40+
power_priority: "Low"
41+
power_requested: "25.4 W"
42+
power_source: "PSE and Local"
43+
remote_id: "1"
44+
remote_port_mac_phy_autoneg: "Supported Enabled Capability 0x8336"
45+
- capabilities_enabled: "Bridge WLAN AP Router"
46+
capabilities_supported: "Bridge WLAN AP Router Station Only"
47+
chassis_id: "aa:aa:aa:aa:aa:aa"
48+
chassis_subtype: "1 (MAC Address)"
49+
local_interface: "1/3"
50+
mac_address: "bb:bb:bb:bb:bb:bb"
51+
mau_type: "1000BaseTFD - Four-pair Category 5 UTP full duplex mode"
52+
med_capabilities: "Capabilities | Power via MDI-PD(33)"
53+
med_device_type: "Network Connectivity"
54+
med_extension_tlvs_present: "Network Policy| Inventory"
55+
mgmt_address: "1.1.1.1"
56+
neighbor_description: "Alcatel-Lucent Enterprise OAW-AP1361 1.0.0.10"
57+
neighbor_interface: "Alcatel-Lucent Enterprise OAW-AP1361 eth0"
58+
neighbor_name: "AP"
59+
port_subtype: "1 (MAC address)"
60+
power_device_type: ""
61+
power_priority: ""
62+
power_requested: ""
63+
power_source: ""
64+
remote_id: "1"
65+
remote_port_mac_phy_autoneg: "Supported Enabled Capability 0x8337"
66+
- capabilities_enabled: "Bridge Router"
67+
capabilities_supported: "Bridge Router"
68+
chassis_id: "aa:aa:aa:aa:aa:aa"
69+
chassis_subtype: "1 (MAC Address)"
70+
local_interface: "1/4"
71+
mac_address: "1001"
72+
mau_type: ""
73+
med_capabilities: ""
74+
med_device_type: ""
75+
med_extension_tlvs_present: ""
76+
mgmt_address: "1.1.1.1"
77+
neighbor_description: ""
78+
neighbor_interface: "Alcatel-Lucent OS6860 GNI 1/1/1"
79+
neighbor_name: "SW"
80+
port_subtype: "1 (Locally assigned)"
81+
power_device_type: ""
82+
power_priority: ""
83+
power_requested: ""
84+
power_source: ""
85+
remote_id: "123"
86+
remote_port_mac_phy_autoneg: ""
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Remote LLDP nearest-bridge Agents on Local Port 1/1/1:
2+
3+
Chassis aa:aa:aa:aa:aa:aa, Port 1025:
4+
Remote ID = 1,
5+
Chassis Subtype = 2 (MAC Address),
6+
Port Subtype = 3 (Locally assigned),
7+
Port Description = Alcatel-Lucent Enterprise 1/1,
8+
System Name = SW,
9+
System Description = (null),
10+
Capabilities Supported = none supported,
11+
Capabilities Enabled = none enabled,
12+
Management IP Address = 1.1.1.1,
13+
Remote port default vlan = 1
14+
15+
Remote LLDP nearest-bridge Agents on Local Port 1/1/2:
16+
17+
Chassis aa:aa:aa:aa:aa:aa, Port 1025:
18+
Remote ID = 1,
19+
Chassis Subtype = 2 (MAC Address),
20+
Port Subtype = 3 (Locally assigned),
21+
Port Description = Alcatel-Lucent OS6360 GNI 1/1/1,
22+
System Name = SW,
23+
System Description = (null),
24+
Capabilities Supported = Bridge Router,
25+
Capabilities Enabled = Bridge Router,
26+
Management IP Address = 1.1.1.1
27+
28+
Remote LLDP nearest-bridge Agents on Local Port 1/1/3:
29+
30+
Chassis aa:aa:aa:aa:aa:aa, Port Vlan_1_things:
31+
Remote ID = 1,
32+
Chassis Subtype = 2 (MAC Address),
33+
Port Subtype = 3 (Interface name),
34+
Port Description = (null),
35+
System Name = SomeSystem_that_has_FW,
36+
System Description = Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4,
37+
Capabilities Supported = Bridge Router,
38+
Capabilities Enabled = Router,
39+
Management IP Address = 1.1.1.1
40+
41+
42+
Chassis bb:bb:bb:bb:bb:bb, Port Vlan_2_more_things:
43+
Remote ID = 1,
44+
Chassis Subtype = 2 (MAC Address),
45+
Port Subtype = 3 (Interface name),
46+
Port Description = (null),
47+
System Name = SomeSystem_that_has_FW,
48+
System Description = Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4,
49+
Capabilities Supported = Bridge Router,
50+
Capabilities Enabled = Router,
51+
Management IP Address = 1.1.1.1
52+
53+
54+
Chassis cc:cc:cc:cc:cc:cc, Port sfp-sfpplus1:
55+
Remote ID = 1,
56+
Chassis Subtype = 2 (MAC Address),
57+
Port Subtype = 3 (Interface name),
58+
Port Description = (null),
59+
System Name = SomeSystem_that_has_FW,
60+
System Description = Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4,
61+
Capabilities Supported = Bridge Router,
62+
Capabilities Enabled = Router
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
parsed_sample:
3+
- capabilities_enabled: "none enabled"
4+
capabilities_supported: "none supported"
5+
chassis_id: "aa:aa:aa:aa:aa:aa"
6+
chassis_subtype: "2 (MAC Address)"
7+
local_interface: "1/1/1"
8+
mac_address: "1025"
9+
mau_type: ""
10+
med_capabilities: ""
11+
med_device_type: ""
12+
med_extension_tlvs_present: ""
13+
mgmt_address: "1.1.1.1"
14+
neighbor_description: ""
15+
neighbor_interface: "Alcatel-Lucent Enterprise 1/1"
16+
neighbor_name: "SW"
17+
port_subtype: "3 (Locally assigned)"
18+
power_device_type: ""
19+
power_priority: ""
20+
power_requested: ""
21+
power_source: ""
22+
remote_id: "1"
23+
remote_port_mac_phy_autoneg: ""
24+
- capabilities_enabled: "Bridge Router"
25+
capabilities_supported: "Bridge Router"
26+
chassis_id: "aa:aa:aa:aa:aa:aa"
27+
chassis_subtype: "2 (MAC Address)"
28+
local_interface: "1/1/2"
29+
mac_address: "1025"
30+
mau_type: ""
31+
med_capabilities: ""
32+
med_device_type: ""
33+
med_extension_tlvs_present: ""
34+
mgmt_address: "1.1.1.1"
35+
neighbor_description: ""
36+
neighbor_interface: "Alcatel-Lucent OS6360 GNI 1/1/1"
37+
neighbor_name: "SW"
38+
port_subtype: "3 (Locally assigned)"
39+
power_device_type: ""
40+
power_priority: ""
41+
power_requested: ""
42+
power_source: ""
43+
remote_id: "1"
44+
remote_port_mac_phy_autoneg: ""
45+
- capabilities_enabled: "Router"
46+
capabilities_supported: "Bridge Router"
47+
chassis_id: "aa:aa:aa:aa:aa:aa"
48+
chassis_subtype: "2 (MAC Address)"
49+
local_interface: "1/1/3"
50+
mac_address: "Vlan_1_things"
51+
mau_type: ""
52+
med_capabilities: ""
53+
med_device_type: ""
54+
med_extension_tlvs_present: ""
55+
mgmt_address: "1.1.1.1"
56+
neighbor_description: "Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4"
57+
neighbor_interface: ""
58+
neighbor_name: "SomeSystem_that_has_FW"
59+
port_subtype: "3 (Interface name)"
60+
power_device_type: ""
61+
power_priority: ""
62+
power_requested: ""
63+
power_source: ""
64+
remote_id: "1"
65+
remote_port_mac_phy_autoneg: ""
66+
- capabilities_enabled: "Router"
67+
capabilities_supported: "Bridge Router"
68+
chassis_id: "bb:bb:bb:bb:bb:bb"
69+
chassis_subtype: "2 (MAC Address)"
70+
local_interface: "1/1/3"
71+
mac_address: "Vlan_2_more_things"
72+
mau_type: ""
73+
med_capabilities: ""
74+
med_device_type: ""
75+
med_extension_tlvs_present: ""
76+
mgmt_address: "1.1.1.1"
77+
neighbor_description: "Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4"
78+
neighbor_interface: ""
79+
neighbor_name: "SomeSystem_that_has_FW"
80+
port_subtype: "3 (Interface name)"
81+
power_device_type: ""
82+
power_priority: ""
83+
power_requested: ""
84+
power_source: ""
85+
remote_id: "1"
86+
remote_port_mac_phy_autoneg: ""
87+
- capabilities_enabled: "Router"
88+
capabilities_supported: "Bridge Router"
89+
chassis_id: "cc:cc:cc:cc:cc:cc"
90+
chassis_subtype: "2 (MAC Address)"
91+
local_interface: "1/1/3"
92+
mac_address: "sfp-sfpplus1"
93+
mau_type: ""
94+
med_capabilities: ""
95+
med_device_type: ""
96+
med_extension_tlvs_present: ""
97+
mgmt_address: ""
98+
neighbor_description: "Mikrotik RouterOS 1.1 (stable) Jan/1/2000 01:01:01 RB1100AHx4"
99+
neighbor_interface: ""
100+
neighbor_name: "SomeSystem_that_has_FW"
101+
port_subtype: "3 (Interface name)"
102+
power_device_type: ""
103+
power_priority: ""
104+
power_requested: ""
105+
power_source: ""
106+
remote_id: "1"
107+
remote_port_mac_phy_autoneg: ""

0 commit comments

Comments
 (0)