Closed itdependsnetworks closed 7 years ago
@itdependsnetworks We also should add to our unit tests here to make sure this is properly flagged by the unit tests (i.e. they fail if we don't handle it properly):
napalm-ios/test/unit/mocked_data/test_get_lldp_neighbors_detail
You can see what I did in the napalm-ios/test/unit/mocked_data/test_get_mac_address_table to handle a bunch of different output formats.
If you have questions on this, just let me know.
@ktbyers You caught me :)
I will add the tests, but will take me a bit.
On a side note, we have similar issues for ntc-templates. Was thinking that perhaps we should come up with list of commands and a mechanism (pb/script) and ask the slack community to contribute test data.
@itdependsnetworks Yes, I agree the gathering of test data is the big problem (i.e. having too narrow a view on the possible outputs).
It would be good to have a way to share this and have people contribute to it (if we could do it in an effective way).
Port description can have ' -' as delimiter instead of ':' The findall between IP and other should happen in one check, otherwise it doesn't return both at the same time, when you have a mix.
Test Data