Skip to content

Rename Arista interface_up_time to last_link_flapped #2126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ntc_templates/templates/arista_eos_show_interfaces.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Value DESCRIPTION ([^\"]*)
Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+\/\d+)
Value MTU (\d+)
Value BANDWIDTH (\d+\s+\w+)
Value INTERFACE_UP_TIME (.*)
Value LAST_LINK_FLAPPED (.*)
Value LINK_STATUS_CHANGE (\d+)

Start
Expand All @@ -17,7 +17,7 @@ Start
^\s+Hardware\s+is\s+${HARDWARE_TYPE}(.*address\s+is\s+${MAC_ADDRESS})*(.*bia\s+${BIA})*
^\s+Description:\s+"?${DESCRIPTION}"?$$
^\s+Internet\s+address\s+is\s+${IP_ADDRESS}
^\s+(Up|Down)\s+${INTERFACE_UP_TIME}
^\s+(Up|Down)\s+${LAST_LINK_FLAPPED}
^\s+${LINK_STATUS_CHANGE}\s+link\s+status\s+changes.*
^.*MTU\s+${MTU}(.*BW\s+${BANDWIDTH})*
^\s+Broadcast\s+address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet1"
interface_up_time: "14 minutes, 2 seconds"
ip_address: "172.16.1.1/24"
last_link_flapped: "14 minutes, 2 seconds"
link_status: "up"
link_status_change: "1"
mac_address: "0800.27dc.5443"
Expand All @@ -17,8 +17,8 @@ parsed_sample:
description: "Connects to Ethernet1 on localhost"
hardware_type: "Ethernet"
interface: "Ethernet2"
interface_up_time: "14 minutes, 2 seconds"
ip_address: "172.16.2.1/24"
last_link_flapped: "14 minutes, 2 seconds"
link_status: "up"
link_status_change: "1"
mac_address: "0800.27dc.5443"
Expand All @@ -29,8 +29,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet49/1"
interface_up_time: "6 days, 11 hours, 16 minutes, 54 seconds"
ip_address: ""
last_link_flapped: "6 days, 11 hours, 16 minutes, 54 seconds"
link_status: "administratively down"
link_status_change: "1"
mac_address: "fcbd.67e2.b922"
Expand All @@ -41,8 +41,8 @@ parsed_sample:
description: ""
hardware_type: "Loopback"
interface: "Loopback0"
interface_up_time: "7 seconds"
ip_address: "1.1.1.1/32"
last_link_flapped: "7 seconds"
link_status: "up"
link_status_change: ""
mac_address: ""
Expand All @@ -53,8 +53,8 @@ parsed_sample:
description: ""
hardware_type: "Port-Channel"
interface: "Port-Channel1"
interface_up_time: "10 minutes, 21 seconds"
ip_address: ""
last_link_flapped: "10 minutes, 21 seconds"
link_status: "down"
link_status_change: "1"
mac_address: "0000.0000.0000"
Expand All @@ -65,8 +65,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Management1"
interface_up_time: "14 minutes, 4 seconds"
ip_address: ""
last_link_flapped: "14 minutes, 4 seconds"
link_status: "up"
link_status_change: "3"
mac_address: "0800.27a5.02b7"
Expand All @@ -77,8 +77,8 @@ parsed_sample:
description: ""
hardware_type: "Vlan"
interface: "Vlan10"
interface_up_time: "35 seconds"
ip_address: "10.0.0.1/24"
last_link_flapped: "35 seconds"
link_status: "down"
link_status_change: ""
mac_address: "0800.27dc.5443"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ parsed_sample:
description: "Test interface Et1"
hardware_type: "Ethernet"
interface: "Ethernet1"
interface_up_time: "21 minutes, 40 seconds"
ip_address: "10.0.0.1/30"
last_link_flapped: "21 minutes, 40 seconds"
link_status: "up"
link_status_change: "2"
mac_address: "aac1.ab3b.1c7a"
Expand All @@ -17,8 +17,8 @@ parsed_sample:
description: "Test int Et2"
hardware_type: "Ethernet"
interface: "Ethernet2"
interface_up_time: "21 minutes, 40 seconds"
ip_address: "192.168.1.1/30"
last_link_flapped: "21 minutes, 40 seconds"
link_status: "up"
link_status_change: "2"
mac_address: "aac1.ab31.e593"
Expand All @@ -29,8 +29,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet3"
interface_up_time: "21 minutes, 40 seconds"
ip_address: ""
last_link_flapped: "21 minutes, 40 seconds"
link_status: "up"
link_status_change: "2"
mac_address: "aac1.ab23.bb13"
Expand All @@ -41,8 +41,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet4"
interface_up_time: "21 minutes, 40 seconds"
ip_address: ""
last_link_flapped: "21 minutes, 40 seconds"
link_status: "up"
link_status_change: "2"
mac_address: "aac1.abb1.4f2c"
Expand All @@ -53,8 +53,8 @@ parsed_sample:
description: ""
hardware_type: "Loopback"
interface: "Loopback0"
interface_up_time: "21 minutes, 51 seconds"
ip_address: "1.1.1.1/32"
last_link_flapped: "21 minutes, 51 seconds"
link_status: "up"
link_status_change: ""
mac_address: ""
Expand All @@ -65,8 +65,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Management0"
interface_up_time: "21 minutes, 53 seconds"
ip_address: "172.20.20.2/24"
last_link_flapped: "21 minutes, 53 seconds"
link_status: "up"
link_status_change: "3"
mac_address: "001c.7338.71c6"
Expand All @@ -77,8 +77,8 @@ parsed_sample:
description: "VLAN100"
hardware_type: "Vlan"
interface: "Vlan100"
interface_up_time: "21 minutes, 56 seconds"
ip_address: "10.100.0.1/24"
last_link_flapped: "21 minutes, 56 seconds"
link_status: "up"
link_status_change: ""
mac_address: "001c.7338.71c7"
Expand All @@ -89,8 +89,8 @@ parsed_sample:
description: "VLAN500"
hardware_type: "Vlan"
interface: "Vlan500"
interface_up_time: "21 minutes, 56 seconds"
ip_address: "192.168.5.1/24"
last_link_flapped: "21 minutes, 56 seconds"
link_status: "up"
link_status_change: ""
mac_address: "001c.7338.71c7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet47"
interface_up_time: "5 hours, 8 minutes, 50 seconds"
ip_address: ""
last_link_flapped: "5 hours, 8 minutes, 50 seconds"
link_status: "up"
link_status_change: "4"
mac_address: "985d.82b8.fb24"
Expand All @@ -17,8 +17,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet48"
interface_up_time: "5 hours, 8 minutes, 50 seconds"
ip_address: ""
last_link_flapped: "5 hours, 8 minutes, 50 seconds"
link_status: "up"
link_status_change: "4"
mac_address: "985d.82b8.fb25"
Expand All @@ -29,8 +29,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet49"
interface_up_time: "5 hours, 12 minutes, 19 seconds"
ip_address: ""
last_link_flapped: "5 hours, 12 minutes, 19 seconds"
link_status: "down"
link_status_change: "3"
mac_address: "985d.82b8.fb26"
Expand All @@ -41,8 +41,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet50"
interface_up_time: "5 hours, 12 minutes, 19 seconds"
ip_address: ""
last_link_flapped: "5 hours, 12 minutes, 19 seconds"
link_status: "down"
link_status_change: "3"
mac_address: "985d.82b8.fb27"
Expand All @@ -53,8 +53,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet51"
interface_up_time: "5 hours, 12 minutes, 19 seconds"
ip_address: "172.16.1.2/24"
last_link_flapped: "5 hours, 12 minutes, 19 seconds"
link_status: "down"
link_status_change: "3"
mac_address: "985d.82b8.faf5"
Expand All @@ -65,8 +65,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Ethernet52"
interface_up_time: "5 hours, 12 minutes, 19 seconds"
ip_address: "172.16.2.2/24"
last_link_flapped: "5 hours, 12 minutes, 19 seconds"
link_status: "down"
link_status_change: "1"
mac_address: "985d.82b8.faf5"
Expand All @@ -77,8 +77,8 @@ parsed_sample:
description: ""
hardware_type: "Loopback"
interface: "Loopback0"
interface_up_time: "5 hours, 14 minutes, 2 seconds"
ip_address: "44.44.44.44/32"
last_link_flapped: "5 hours, 14 minutes, 2 seconds"
link_status: "up"
link_status_change: ""
mac_address: ""
Expand All @@ -89,8 +89,8 @@ parsed_sample:
description: ""
hardware_type: "Loopback"
interface: "Loopback2"
interface_up_time: "5 hours, 14 minutes, 2 seconds"
ip_address: "22.22.22.22/32"
last_link_flapped: "5 hours, 14 minutes, 2 seconds"
link_status: "up"
link_status_change: ""
mac_address: ""
Expand All @@ -101,8 +101,8 @@ parsed_sample:
description: ""
hardware_type: "Ethernet"
interface: "Management1"
interface_up_time: "5 hours, 13 minutes, 52 seconds"
ip_address: "10.16.100.5/24"
last_link_flapped: "5 hours, 13 minutes, 52 seconds"
link_status: "up"
link_status_change: "4"
mac_address: "985d.82b8.faf4"
Expand All @@ -113,8 +113,8 @@ parsed_sample:
description: ""
hardware_type: "Port-Channel"
interface: "Port-Channel1"
interface_up_time: "5 hours, 13 minutes, 30 seconds"
ip_address: ""
last_link_flapped: "5 hours, 13 minutes, 30 seconds"
link_status: "down"
link_status_change: "1"
mac_address: "985d.82b8.fb26"
Expand All @@ -125,8 +125,8 @@ parsed_sample:
description: ""
hardware_type: "Port-Channel"
interface: "Port-Channel2"
interface_up_time: "5 hours, 8 minutes, 45 seconds"
ip_address: ""
last_link_flapped: "5 hours, 8 minutes, 45 seconds"
link_status: "up"
link_status_change: "2"
mac_address: "985d.82b8.fb24"
Expand All @@ -137,8 +137,8 @@ parsed_sample:
description: ""
hardware_type: "Vlan"
interface: "Vlan16"
interface_up_time: "5 hours, 8 minutes, 45 seconds"
ip_address: "10.16.100.7/24"
last_link_flapped: "5 hours, 8 minutes, 45 seconds"
link_status: "up"
link_status_change: ""
mac_address: "985d.82b8.faf5"
Expand All @@ -149,8 +149,8 @@ parsed_sample:
description: ""
hardware_type: "Vlan"
interface: "Vlan4094"
interface_up_time: "5 hours, 13 minutes, 49 seconds"
ip_address: "1.1.1.2/30"
last_link_flapped: "5 hours, 13 minutes, 49 seconds"
link_status: "down"
link_status_change: ""
mac_address: "985d.82b8.faf5"
Expand Down
Loading