-
Notifications
You must be signed in to change notification settings - Fork 735
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
Added new template: show interface link on cisco ios #1290
Added new template: show interface link on cisco ios #1290
Conversation
This has different outputs on several platforms
^\s*${PORT}\s+${DOWNTIME}\s*${SINCE}\s*$$ -> Record | ||
^\s*${PORT}\s+${NAME}\s*${DOWNTIME}\s*$$ -> Record | ||
^\s*${PORT}\s+${NAME}\s*${DOWNTIME}\s+${SINCE}\s*$$ -> Record | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add:
^\s*$$
^. -> Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
UpTime | ||
^\s*${PORT}\s+${NAME}\s+00:00:00\s+${UPTIME}?\s*$$ -> Record | ||
^\s*${PORT}\s+${DOWNTIME}\s+${UPTIME}?\s*$$ -> Record | ||
^\s*${PORT}\s+${NAME}\s+${DOWNTIME}\s*$$ -> Record |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add:
^\s*$$
^. -> Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Port Name Down Time Down Since | ||
Gi1/1 37 weeks, 3 days, 5 hours, 52 minutes 18 secs 08:07:10 Mon Feb 14 2022 | ||
Gi1/6 15 weeks, 11 minutes 57 secs 13:47:31 Thu Jul 21 2022 | ||
Gi1/10 Fitness 10 weeks, 5 days, 20 hours, 26 minutes 38 secs 17:32:50 Fri Aug 19 2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for their to be spaces here? e.g. ICE Port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added test case and cleaned up some redundant lines.
@jversch6 thanks for including the Error line, but I think the templates are not matching all of the output, and the tests are failing. |
@jmcgill298 Sorry, apparently I hadn't committed the .raw file . It's showing green now! |
@itdependsnetworks @jmcgill298 we good here? |
Thanks @jversch6 |
This has different outputs on several platforms and often doesn't return some fields at all, hence the multitude of configurations.