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

Fix 1376 juniper junos show interfaces #1392

Merged

Conversation

diepes
Copy link
Contributor

@diepes diepes commented Jun 29, 2023

Fix #1376 , Fixs_1376, Fix_1376

tasks.py add alias test to tests

juniper junos_show_interfaces

  • tests/juniper_junos/show_interfaces/juniper_junos_show_interfaces.yml
    Sort current test yaml and verify it did not change.

  • tests/juniper_junos/show_interfaces/juniper_junos_show_interfaces2.raw
    add new test file

  • ntc_templates/templates/juniper_junos_show_interfaces.textfsm
    Update template.
    match all values in 2 tests and end on "-> Error"

It seems a bit brittle as Juniper has so many settings that seem to be uniq to each interface type.
Suggest we comment the last line ? (" ^. -> Error")
Probably need more test examples.

the records are generated on blank lines, couldn't see a better way ?

Pieter Smit added 3 commits June 29, 2023 21:12
…ll end on error

tests/juniper_junos/show_interfaces/juniper_junos_show_interfaces2 add new raw and yml test
tasks.py Show resolved Hide resolved
@jmcgill298 jmcgill298 merged commit 9351320 into networktocode:master Jul 20, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

juniper junos_show_interfaces not parsing correctly
3 participants