Skip to content
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

Merged
merged 17 commits into from
Apr 17, 2020
Merged

fixing show interfaces summary for 10/40/100 Gig Interfaces #1162

merged 17 commits into from
Apr 17, 2020

Conversation

network-shark
Copy link
Contributor

This PR fixes #1154

@coveralls
Copy link

coveralls commented Apr 3, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 10c7726 on network-shark:develop into 2eaf132 on napalm-automation:develop.

@network-shark
Copy link
Contributor Author

@mirceaulinic I have uploaded the PR again , but I don't know how to fix the black test.... .

napalm/1 Outdated Show resolved Hide resolved
napalm/ios/ios.py Outdated Show resolved Hide resolved
@network-shark
Copy link
Contributor Author

network-shark commented Apr 6, 2020

Should I add some test data to
test/ios/mocked_data/test_get_interfaces_counters/normal/show_interface_summary.txt ?

@@ -1,4 +1,3 @@
"""NAPALM Cisco IOS Handler."""
Copy link
Member

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.

@mirceaulinic
Copy link
Member

Should I add some test data to
test/ios/mocked_data/test_get_interfaces_counters/normal/show_interface_summary.txt ?

I'd suggest adding a separate test case, e.g., under test/ios/mocked_data/test_get_interfaces_counters/<test case name>/show_interface_summary.txt (you'll also need to provide test/ios/mocked_data/test_get_interfaces_counters/<test case name>/expected_result.json. Cheers.

napalm/1 Outdated Show resolved Hide resolved
Copy link
Member

@mirceaulinic mirceaulinic left a 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. :-)

@mirceaulinic mirceaulinic added this to the 3.0.0 milestone Apr 13, 2020

interface_type, interface_number = split_interface(interface)
if interface_type in [
'HundredGigabitEthernet',
Copy link
Member

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.

Copy link
Contributor Author

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 :)

Copy link
Member

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thanks @network-shark!

@mirceaulinic mirceaulinic merged commit 1099b9d into napalm-automation:develop Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cisco IOS Interface Counter TenGig and beyond not parsed correctly
3 participants