Closed paulbauer1 closed 3 weeks ago
@paulbauer1 thanks for reporting this, are you able to put in a PR with the fix?
@jmcgill298
I believe I have determined a fix and would be happy to create a PR for that. Should I just clone the repo and create a new branch from master branch named something like ios-show-interface-link? Make the change to the template, push that change to the repo and then create a PR for ios-show-interface-link -> master?
I think only contributors can push up branches, so you would need to fork the repo and push a branch to your fork
resolved by #1855
ISSUE TYPE
TEMPLATE USING
cisco_ios_show_interface_link.textfsm
SAMPLE COMMAND OUTPUT
SUMMARY
The pattern I have been able to discern is that when the uptime value is a period of days the uptime value is placed in the downtime field and the 00:00:00 downtime value is appended to the name value.
STEPS TO REPRODUCE
EXPECTED RESULTS
[{'port': 'Gi1/0/1', 'name': ' ', 'downtime': '', 'since': '', 'uptime': '1w0d'}, {'port': 'Gi1/0/2', 'name': ' ', 'downtime': '21w2d', 'since': '', 'uptime': ''}, {'port': 'Gi1/0/3', 'name': 'PACS Computer', 'downtime': '00:00:00', 'since': '', 'uptime': '3d07h'}, {'port': 'Gi1/0/4', 'name': 'imaging equipment', 'downtime': '', 'since': '', 'uptime': '21w2d'}]
ACTUAL RESULTS
[{'port': 'Gi1/0/1', 'name': ' ', 'downtime': '', 'since': '', 'uptime': '1w0d'}, {'port': 'Gi1/0/2', 'name': ' ', 'downtime': '21w2d', 'since': '', 'uptime': ''}, {'port': 'Gi1/0/3', 'name': 'PACS Computer 00:00:00', 'downtime': '3d07h', 'since': '', 'uptime': ''}, {'port': 'Gi1/0/4', 'name': 'imaging equipment', 'downtime': '', 'since': '', 'uptime': '21w2d'}]