Open
Description
This "Value INTERFACE_UP_TIME (.*)" matches on up or down port status.
It works as expected but the variable should be named something else. Perhaps: INTERFACE_STATE_DURATION? I realize this will break stuff by changing it for people using it but it was confusing to see this name. Thoughts?
Ethernet1 is down, line protocol is down (notconnect)
Hardware is Ethernet, address is 985d.82b8.faf6 (bia 985d.82b8.faf6)
Ethernet MTU 9214 bytes
Auto-duplex, Auto-speed, auto negotiation: on, uni-link: n/a
Down 21 days, 20 hours, 36 minutes, 28 seconds
Ethernet47 is up, line protocol is up (connected)
Hardware is Ethernet, address is 985d.82b8.fb24 (bia 985d.82b8.fb24)
Member of Port-Channel2
Ethernet MTU 9214 bytes, BW 1000000 kbit
Full-duplex, 1Gb/s, auto negotiation: on, uni-link: n/a
Up 21 days, 20 hours, 33 minutes, 1 second
Yields this:
"interface_up_time": "21 days, 20 hours, 36 minutes, 28 seconds",
"interface_up_time": "21 days, 20 hours, 33 minutes, 1 second",
Metadata
Metadata
Assignees
Labels
No labels