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
cisco_nxos_show_interfaces_switchport adds additional space to monitor statement #1317
Comments
Hello @Mattias3891 I'm a community member volunteering suggestions and possibly to submit a Pull Request (if needed and if you would like). It's pretty wild how Cisco is adding trailing spaces all of a sudden -- to quite a few things in your example output. What version of NXOS are you seeing this with? Conditional Logic Suggestion
Reasoning If |
@Mattias3891 Currently: My suggestion: I'm working up a fix with my suggestion as it meets your needs and should be flexible enough that it will be less likely to break in the future.
|
PR #1622 has been submitted for consideration |
ISSUE TYPE
TEMPLATE USING
latest "cisco_nxos_show_interfaces_switchport "
SAMPLE COMMAND OUTPUT
Iterating over the list of interfaces in python we get:
SUMMARY
Of unknown reason, we get an additional space in the "switchport_monitor" string.
Thus, having to match "Enabled " and not just Enabled for example.
FIX?
To fix this, I've corrected the template to only allow Enabled/Disabled on switchport statement and Enabled/Not enabled on the switchport_monitor statement.
Works well.
The text was updated successfully, but these errors were encountered: