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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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
@@ -162,7 +162,7 @@ def cli(context):
context.run(f"{dev}", pty=True)


@task(help={"local": "Run locally or within the Docker container"})
@task(help={"local": "Run locally or within the Docker container"}, aliases=["test"])
Copy link
Contributor

Choose a reason for hiding this comment

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

@jmcgill298 an eye on this.

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
2 participants