-
Notifications
You must be signed in to change notification settings - Fork 558
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
fixing show interfaces summary for 10/40/100 Gig Interfaces #1162
fixing show interfaces summary for 10/40/100 Gig Interfaces #1162
Conversation
@mirceaulinic I have uploaded the PR again , but I don't know how to fix the black test.... . |
Should I add some test data to |
napalm/ios/ios.py
Outdated
@@ -1,4 +1,3 @@ | |||
"""NAPALM Cisco IOS Handler.""" |
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.
Please don't remove this line.
I'd suggest adding a separate test case, e.g., under |
test/ios/mocked_data/test_get_interfaces_counters/short_if_names/expected_result.json
Outdated
Show resolved
Hide resolved
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.
Getting there @network-shark, just some small corrections then should be ready to get this in. To make sure the tests are passing before pushing new commits, simply install the dev requirements, pip install -r requirements-dev.txt
, then run tox
from your virtual environment. If that's passing locally, it should make Travis happy as well. :-)
napalm/ios/ios.py
Outdated
|
||
interface_type, interface_number = split_interface(interface) | ||
if interface_type in [ | ||
'HundredGigabitEthernet', |
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.
Okay, only Black is failing now (seems like it requires double quotes on these): just run black .
(in the environment you installed requirements-dev.txt
) and should be gtg.
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.
Thank you for beeing such a help :)
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.
🎉 Thanks @network-shark!
This PR fixes #1154