napalm-automation / napalm-junos

Apache License 2.0
22 stars 42 forks source link

get_lldp_neighbors_detail rpc fix #168

Closed bugdealer closed 7 years ago

bugdealer commented 7 years ago
pull request for #166
mirceaulinic commented 7 years ago

The tests are failing as we need to do some more work on the test cases. Currently we have a test case called "normal" (https://github.com/napalm-automation/napalm-junos/tree/develop/test/unit/mocked_data/test_get_lldp_neighbors_detail/normal), but I would suggest having two different cases:

(or anything that makes sense)

Inside each test case, you'd need a simple YAML file having the content:

personality: SWITCH

and

personality: MX

& the mock data suitably provided. Would you be able to do that? Cheers!

bugdealer commented 7 years ago

I'll have a try.

bugdealer commented 7 years ago

Not sure how to deal with J series for there's no 'personality' for J series.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.1%) to 83.612% when pulling 0a8c9561c6addc85b62c41387ad3017421d4d626 on bugdealer:develop into fe2fb86c047c23c10b7c689b5cad8d805a805b89 on napalm-automation:develop.

mirceaulinic commented 7 years ago

Looks good @bugdealer, thank you!

Not sure how to deal with J series for there's no 'personality' for J series.

I would suggest submitting a PR to https://github.com/Juniper/py-junos-eznc to add it - it's actually surprising it's not covered yet.

bugdealer commented 7 years ago

God...it's time to use autopep8. Python newbie and first pull request, sorry for all these commits.

mirceaulinic commented 7 years ago

No worries @bugdealer - you did great so far.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.09%) to 83.594% when pulling e91a4d3754eda80e39a0e86e059c123b78921485 on bugdealer:develop into fe2fb86c047c23c10b7c689b5cad8d805a805b89 on napalm-automation:develop.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.09%) to 83.594% when pulling e91a4d3754eda80e39a0e86e059c123b78921485 on bugdealer:develop into fe2fb86c047c23c10b7c689b5cad8d805a805b89 on napalm-automation:develop.

mirceaulinic commented 7 years ago

Thanks @bugdealer. This will be included in the next release, 0.10.2.