-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new templates for Alcatel AOS:
show interfaces ethernet
(#1946)
- Loading branch information
1 parent
5235423
commit da70dba
Showing
9 changed files
with
357 additions
and
4 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
ntc_templates/templates/alcatel_aos_show_interfaces_ethernet.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
Value PORT (\S+) | ||
Value STATUS (\S+) | ||
Value ADMIN_STATUS (\S+) | ||
Value PORT_DOWN_VIOLATION_REASON (\S.+\S) | ||
Value LAST_TIME_LINK_CHANGED (\S.+\S) | ||
Value NUMBER_OF_STATUS_CHANGE (\d+) | ||
Value PORT_TYPE (\S.+\S) | ||
Value SFP_XFP (\S.+\S) | ||
Value INTERFACE_TYPE (\S.+\S) | ||
Value ETHERNET_POWER_POLICY (\S.+\S) | ||
Value LINK_QUALITY (\S.+\S) | ||
Value MAC_ADDRESS (\S.+\S) | ||
Value BANDWIDTH (\d+) | ||
Value DUPLEX (\S+) | ||
Value AUTONEGOTIATION (\S.+\S) | ||
Value LONG_FRAME_SIZE (\d+) | ||
Value INTER_FRAME_GAP (\d+) | ||
Value LOOPBACK_MODE (\S.+\S) | ||
Value RX_BYTES_RECEIVED (\d+) | ||
Value RX_BROADCAST_FRAMES (\d+) | ||
Value RX_UNDERSIZE_FRAMES (\d+) | ||
Value RX_LOST_FRAMES (\d+) | ||
Value RX_CRC_ERROR_FRAMES (\d+) | ||
Value RX_UNICAST_FRAMES (\d+) | ||
Value RX_MULTICAST_FRAMES (\d+) | ||
Value RX_OVERSIZE_FRAMES (\d+) | ||
Value RX_ERROR_FRAMES (\d+) | ||
Value RX_ALIGNMENT_ERRORS (\d+) | ||
Value TX_BYTES_TRANSMITTED (\d+) | ||
Value TX_BROADCAST_FRAMES (\d+) | ||
Value TX_UNDERSIZE_FRAMES (\d+) | ||
Value TX_LOST_FRAMES (\d+) | ||
Value TX_ERROR_FRAMES (\d+) | ||
Value TX_UNICAST_FRAMES (\d+) | ||
Value TX_MULTICAST_FRAMES (\d+) | ||
Value TX_OVERSIZE_FRAMES (\d+) | ||
Value TX_COLLIDED_FRAMES (\d+) | ||
Value TX_COLLISIONS (\d+) | ||
Value TX_LATE_COLLISIONS (\d+) | ||
Value TX_EXCESSIVE_COLLISIONS (\d+) | ||
|
||
|
||
Start | ||
# R6 | ||
^\s*Slot\/Port\s*${PORT}\s*:\s*$$ | ||
# R8 | ||
^\s*Chassis\/Slot\/Port\s*:\s*${PORT}\s*$$ | ||
^\s*Operational\s*Status\s*:\s*${STATUS},\s*(?:"(?:${ADMIN_STATUS})?"\s*)?$$ | ||
^\s*Port-Down\/Violation\s*Reason\s*:\s*${PORT_DOWN_VIOLATION_REASON},\s*$$ | ||
^\s*Last\s*Time\s*Link\s*Changed\s*:\s*${LAST_TIME_LINK_CHANGED}\s*,\s*$$ | ||
^\s*Number\s*of\s*Status\s*Change\s*:\s*${NUMBER_OF_STATUS_CHANGE},\s*$$ | ||
^\s*Type\s*:\s*${PORT_TYPE},\s*$$ | ||
^\s*SFP\/(?:SFP\+\/)?XFP\s*:\s*${SFP_XFP},\s*$$ | ||
^\s*Interface\s*Type\s*:\s*${INTERFACE_TYPE},\s*$$ | ||
^\s*EPP\s*:\s*${ETHERNET_POWER_POLICY},\s*$$ | ||
^\s*Link-Quality\s*:\s*${LINK_QUALITY},\s*$$ | ||
^\s*MAC\s*address\s*:\s*${MAC_ADDRESS},\s*$$ | ||
^\s*BandWidth\s*\(Megabits\)\s*:\s*(-|${BANDWIDTH})\s*,\s*Duplex\s*:\s*(-|${DUPLEX})\s*,\s*$$ | ||
^\s*Autonegotiation\s*:\s*\d+\s*\[(\s*|\s*${AUTONEGOTIATION}\s*)\],\s*$$ | ||
^\s*Long\s*Frame\s*Size\(Bytes\)\s*:\s*${LONG_FRAME_SIZE},\s*$$ | ||
^\s*Inter\s*Frame\s*Gap\(Bytes\)\s*:\s*${INTER_FRAME_GAP},\s*$$ | ||
^\s*loopback\s*mode\s*:\s*${LOOPBACK_MODE},\s*$$ | ||
^\s*Rx\s*:\s*$$ -> RX_Table | ||
^\s*Tx\s*:\s*$$ -> TX_Table | ||
^\s*$$ | ||
^.+ -> Error | ||
|
||
RX_Table | ||
^\s*Bytes\s*Received\s*:\s*${RX_BYTES_RECEIVED},\s*Unicast\s*Frames\s*:\s*${RX_UNICAST_FRAMES},\s*$$ | ||
^\s*Broadcast\s*Frames\s*:\s*${RX_BROADCAST_FRAMES},\s*M-cast\s*Frames\s*:\s*${RX_MULTICAST_FRAMES},\s*$$ | ||
^\s*UnderSize\s*Frames\s*:\s*${RX_UNDERSIZE_FRAMES},\s*OverSize\s*Frames\s*:\s*${RX_OVERSIZE_FRAMES},\s*$$ | ||
^\s*Lost\s*Frames\s*:\s*${RX_LOST_FRAMES},\s*Error\s*Frames\s*:\s*${RX_ERROR_FRAMES},\s*$$ | ||
^\s*CRC\s*Error\s*Frames\s*:\s*${RX_CRC_ERROR_FRAMES},\s*Alignments\s*Err\s*:\s*${RX_ALIGNMENT_ERRORS},\s*$$ -> Start | ||
^\s*$$ | ||
^. -> Error | ||
|
||
TX_Table | ||
^\s*Bytes\s*Xmitted\s*:\s*${TX_BYTES_TRANSMITTED},\s*Unicast\s*Frames\s*:\s*${TX_UNICAST_FRAMES},\s*$$ | ||
^\s*Broadcast\s*Frames\s*:\s*${TX_BROADCAST_FRAMES},\s*M-cast\s*Frames\s*:\s*${TX_MULTICAST_FRAMES},\s*$$ | ||
^\s*UnderSize\s*Frames\s*:\s*${TX_UNDERSIZE_FRAMES},\s*OverSize\s*Frames\s*:\s*${TX_OVERSIZE_FRAMES},\s*$$ | ||
^\s*Lost\s*Frames\s*:\s*${TX_LOST_FRAMES},\s*Collided\s*Frames\s*:\s*${TX_COLLIDED_FRAMES},\s*$$ | ||
^\s*Error\s*Frames\s*:\s*${TX_ERROR_FRAMES}\s*$$ -> Record Start | ||
^\s*Error\s*Frames\s*:\s*${TX_ERROR_FRAMES}(?:,\s*Collisions\s*:\s*${TX_COLLISIONS},)?\s*$$ | ||
^\s*Late\s*collisions\s*:\s*${TX_LATE_COLLISIONS},\s*Exc-Collisions\s*:\s*${TX_EXCESSIVE_COLLISIONS}\s*$$ -> Record Start | ||
^\s*$$ | ||
^. -> Error |
2 changes: 1 addition & 1 deletion
2
ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
tests/alcatel_aos/show_interfaces_ethernet/alcatel_aos_show_interfaces_R8.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Chassis/Slot/Port : 1/1/30 | ||
Operational Status : up, | ||
Port-Down/Violation Reason: None, | ||
Last Time Link Changed : Sun Jan 08 01:14:25 2024, | ||
Number of Status Change : 1, | ||
Type : Ethernet, | ||
SFP/XFP : GBIC_LX, | ||
Interface Type : Fiber, | ||
EPP : Disabled, | ||
Link-Quality : N/A, | ||
MAC address : aa:bb:cc:dd:ee:ff, | ||
BandWidth (Megabits) : 1000, Duplex : Full, | ||
Autonegotiation : 1 [ 1000-F ], | ||
Long Frame Size(Bytes) : 9216, | ||
Inter Frame Gap(Bytes) : 12, | ||
loopback mode : N/A, | ||
Rx : | ||
Bytes Received : 9419904, Unicast Frames : 0, | ||
Broadcast Frames: 0, M-cast Frames : 73593, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Error Frames : 0, | ||
CRC Error Frames: 0, Alignments Err : 0, | ||
Tx : | ||
Bytes Xmitted : 155215209608, Unicast Frames : 3121178, | ||
Broadcast Frames: 1616888391, M-cast Frames : 80210193, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Collided Frames: 0, | ||
Error Frames : 0, Collisions : 0, | ||
Late collisions : 0, Exc-Collisions : 0 | ||
Chassis/Slot/Port : 1/1/31 | ||
Operational Status : up, | ||
Port-Down/Violation Reason: None, | ||
Last Time Link Changed : Sun Jan 22 01:14:25 2024, | ||
Number of Status Change : 1, | ||
Type : Ethernet, | ||
SFP/XFP : GBIC_LX, | ||
Interface Type : Fiber, | ||
EPP : Disabled, | ||
Link-Quality : N/A, | ||
MAC address : ab:cd:ef:12:34:56, | ||
BandWidth (Megabits) : 1000, Duplex : Full, | ||
Autonegotiation : 0 [ ], | ||
Long Frame Size(Bytes) : 9216, | ||
Inter Frame Gap(Bytes) : 12, | ||
loopback mode : N/A, | ||
Rx : | ||
Bytes Received : 542857246503, Unicast Frames : 631292769, | ||
Broadcast Frames: 366413, M-cast Frames : 777995, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Error Frames : 0, | ||
CRC Error Frames: 0, Alignments Err : 0, | ||
Tx : | ||
Bytes Xmitted : 361668198206, Unicast Frames : 488416804, | ||
Broadcast Frames: 1618263684, M-cast Frames : 79968048, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Collided Frames: 0, | ||
Error Frames : 0 |
82 changes: 82 additions & 0 deletions
82
tests/alcatel_aos/show_interfaces_ethernet/alcatel_aos_show_interfaces_R8.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "" | ||
autonegotiation: "1000-F" | ||
bandwidth: "1000" | ||
duplex: "Full" | ||
ethernet_power_policy: "Disabled" | ||
inter_frame_gap: "12" | ||
interface_type: "Fiber" | ||
last_time_link_changed: "Sun Jan 08 01:14:25 2024" | ||
link_quality: "N/A" | ||
long_frame_size: "9216" | ||
loopback_mode: "N/A" | ||
mac_address: "aa:bb:cc:dd:ee:ff" | ||
number_of_status_change: "1" | ||
port: "1/1/30" | ||
port_down_violation_reason: "None" | ||
port_type: "Ethernet" | ||
rx_alignment_errors: "0" | ||
rx_broadcast_frames: "0" | ||
rx_bytes_received: "9419904" | ||
rx_crc_error_frames: "0" | ||
rx_error_frames: "0" | ||
rx_lost_frames: "0" | ||
rx_multicast_frames: "73593" | ||
rx_oversize_frames: "0" | ||
rx_undersize_frames: "0" | ||
rx_unicast_frames: "0" | ||
sfp_xfp: "GBIC_LX" | ||
status: "up" | ||
tx_broadcast_frames: "1616888391" | ||
tx_bytes_transmitted: "155215209608" | ||
tx_collided_frames: "0" | ||
tx_collisions: "0" | ||
tx_error_frames: "0" | ||
tx_excessive_collisions: "0" | ||
tx_late_collisions: "0" | ||
tx_lost_frames: "0" | ||
tx_multicast_frames: "80210193" | ||
tx_oversize_frames: "0" | ||
tx_undersize_frames: "0" | ||
tx_unicast_frames: "3121178" | ||
- admin_status: "" | ||
autonegotiation: "" | ||
bandwidth: "1000" | ||
duplex: "Full" | ||
ethernet_power_policy: "Disabled" | ||
inter_frame_gap: "12" | ||
interface_type: "Fiber" | ||
last_time_link_changed: "Sun Jan 22 01:14:25 2024" | ||
link_quality: "N/A" | ||
long_frame_size: "9216" | ||
loopback_mode: "N/A" | ||
mac_address: "ab:cd:ef:12:34:56" | ||
number_of_status_change: "1" | ||
port: "1/1/31" | ||
port_down_violation_reason: "None" | ||
port_type: "Ethernet" | ||
rx_alignment_errors: "0" | ||
rx_broadcast_frames: "366413" | ||
rx_bytes_received: "542857246503" | ||
rx_crc_error_frames: "0" | ||
rx_error_frames: "0" | ||
rx_lost_frames: "0" | ||
rx_multicast_frames: "777995" | ||
rx_oversize_frames: "0" | ||
rx_undersize_frames: "0" | ||
rx_unicast_frames: "631292769" | ||
sfp_xfp: "GBIC_LX" | ||
status: "up" | ||
tx_broadcast_frames: "1618263684" | ||
tx_bytes_transmitted: "361668198206" | ||
tx_collided_frames: "0" | ||
tx_collisions: "" | ||
tx_error_frames: "0" | ||
tx_excessive_collisions: "" | ||
tx_late_collisions: "" | ||
tx_lost_frames: "0" | ||
tx_multicast_frames: "79968048" | ||
tx_oversize_frames: "0" | ||
tx_undersize_frames: "0" | ||
tx_unicast_frames: "488416804" |
44 changes: 44 additions & 0 deletions
44
tests/alcatel_aos/show_interfaces_ethernet/alcatel_aos_show_interfaces_ethernet_R6.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Slot/Port 1/1 : | ||
Operational Status : up, "" | ||
Last Time Link Changed : MON JAN 08 20:38:47 , | ||
Number of Status Change: 2, | ||
Type : Ethernet, | ||
SFP/SFP+/XFP : Not Present, | ||
MAC address : aa:aa:aa:aa:aa:aa, | ||
BandWidth (Megabits) : 1000, Duplex : Full, | ||
Autonegotiation : 1 [ 1000-F 100-F 100-H 10-F 10-H ], | ||
Long Frame Size(Bytes) : 9216, | ||
Rx : | ||
Bytes Received : 28902644070, Unicast Frames : 62119123, | ||
Broadcast Frames: 123797, M-cast Frames : 358499, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Error Frames : 0, | ||
CRC Error Frames: 0, Alignments Err : 0, | ||
Tx : | ||
Bytes Xmitted : 274375376582, Unicast Frames : 97599952, | ||
Broadcast Frames: 1746630116, M-cast Frames : 87217616, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Collided Frames: 0, | ||
Error Frames : 0 | ||
Slot/Port 1/2 : | ||
Operational Status : down, "Admin-Down" | ||
Last Time Link Changed : WED JAN 10 10:00:26 , | ||
Number of Status Change: 2, | ||
Type : Ethernet, | ||
SFP/SFP+/XFP : GBIC_LX, | ||
MAC address : bb:bb:bb:bb:bb:bb, | ||
BandWidth (Megabits) : - , Duplex : -, | ||
Autonegotiation : 1 [ 1000-F ], | ||
Long Frame Size(Bytes) : 9216, | ||
Rx : | ||
Bytes Received : 1602614019301, Unicast Frames : 1423093884, | ||
Broadcast Frames: 131096783, M-cast Frames : 9298965, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Error Frames : 0, | ||
CRC Error Frames: 0, Alignments Err : 0, | ||
Tx : | ||
Bytes Xmitted : 313945899784, Unicast Frames : 702405038, | ||
Broadcast Frames: 94040, M-cast Frames : 3193107, | ||
UnderSize Frames: 0, OverSize Frames: 0, | ||
Lost Frames : 0, Collided Frames: 0, | ||
Error Frames : 0 |
82 changes: 82 additions & 0 deletions
82
tests/alcatel_aos/show_interfaces_ethernet/alcatel_aos_show_interfaces_ethernet_R6.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "" | ||
autonegotiation: "1000-F 100-F 100-H 10-F 10-H" | ||
bandwidth: "1000" | ||
duplex: "Full" | ||
ethernet_power_policy: "" | ||
inter_frame_gap: "" | ||
interface_type: "" | ||
last_time_link_changed: "MON JAN 08 20:38:47" | ||
link_quality: "" | ||
long_frame_size: "9216" | ||
loopback_mode: "" | ||
mac_address: "aa:aa:aa:aa:aa:aa" | ||
number_of_status_change: "2" | ||
port: "1/1" | ||
port_down_violation_reason: "" | ||
port_type: "Ethernet" | ||
rx_alignment_errors: "0" | ||
rx_broadcast_frames: "123797" | ||
rx_bytes_received: "28902644070" | ||
rx_crc_error_frames: "0" | ||
rx_error_frames: "0" | ||
rx_lost_frames: "0" | ||
rx_multicast_frames: "358499" | ||
rx_oversize_frames: "0" | ||
rx_undersize_frames: "0" | ||
rx_unicast_frames: "62119123" | ||
sfp_xfp: "Not Present" | ||
status: "up" | ||
tx_broadcast_frames: "1746630116" | ||
tx_bytes_transmitted: "274375376582" | ||
tx_collided_frames: "0" | ||
tx_collisions: "" | ||
tx_error_frames: "0" | ||
tx_excessive_collisions: "" | ||
tx_late_collisions: "" | ||
tx_lost_frames: "0" | ||
tx_multicast_frames: "87217616" | ||
tx_oversize_frames: "0" | ||
tx_undersize_frames: "0" | ||
tx_unicast_frames: "97599952" | ||
- admin_status: "Admin-Down" | ||
autonegotiation: "1000-F" | ||
bandwidth: "" | ||
duplex: "" | ||
ethernet_power_policy: "" | ||
inter_frame_gap: "" | ||
interface_type: "" | ||
last_time_link_changed: "WED JAN 10 10:00:26" | ||
link_quality: "" | ||
long_frame_size: "9216" | ||
loopback_mode: "" | ||
mac_address: "bb:bb:bb:bb:bb:bb" | ||
number_of_status_change: "2" | ||
port: "1/2" | ||
port_down_violation_reason: "" | ||
port_type: "Ethernet" | ||
rx_alignment_errors: "0" | ||
rx_broadcast_frames: "131096783" | ||
rx_bytes_received: "1602614019301" | ||
rx_crc_error_frames: "0" | ||
rx_error_frames: "0" | ||
rx_lost_frames: "0" | ||
rx_multicast_frames: "9298965" | ||
rx_oversize_frames: "0" | ||
rx_undersize_frames: "0" | ||
rx_unicast_frames: "1423093884" | ||
sfp_xfp: "GBIC_LX" | ||
status: "down" | ||
tx_broadcast_frames: "94040" | ||
tx_bytes_transmitted: "313945899784" | ||
tx_collided_frames: "0" | ||
tx_collisions: "" | ||
tx_error_frames: "0" | ||
tx_excessive_collisions: "" | ||
tx_late_collisions: "" | ||
tx_lost_frames: "0" | ||
tx_multicast_frames: "3193107" | ||
tx_oversize_frames: "0" | ||
tx_undersize_frames: "0" | ||
tx_unicast_frames: "702405038" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters