Closed jorgenbl closed 7 years ago
Hi @jorgenbl - thanks for this PR!
The tests are not passing (https://travis-ci.org/napalm-automation/napalm-ios/jobs/206914373) as you need to add a new mock file called show_interface_summary.txt
under test/unit/mocked_data/test_get_interfaces_counters/normal
having the output of show interface summary
. Then you should be ready to go!
Hi,
I was testing on gns3 on a 7200 series router, but It seems like you guys are testing on a csr1000v built with vagrant. Will I have to create the same device with vagrant and run the commands to produce the mock file? Can I use the device I have or how does this work? :)
Sorry for the noob questions, but I'm a bit new to this testing procedure.
@jorgenbl mocked data can come from anywhere as long as it's from a modern IOS-XE device, they don't really have to come from the same source.
I added one additional improvement that needs made (documenting the regex) and I had a question that I included in the review.
Hi @ktbyers - I think the comments are not visible until the review is finished with explicit Approve/Request Changes/Just comment. I've also missed that many times and posted the comments only few weeks after...
@mirceaulinic Okay, that comment aspect is annoying...
I will try to merge this in later today.
The proposed fix will allow for the second match group to be correct (rx_octets and tx_octets) I also added support for discarded/dropped packets with the "show interface status" command.