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

JunOS support #1

Open
tiagoasousa opened this issue Jan 18, 2018 · 3 comments
Open

JunOS support #1

tiagoasousa opened this issue Jan 18, 2018 · 3 comments

Comments

@tiagoasousa
Copy link

What are the tasks/vars required for JunOS support? thanks

@optiz0r
Copy link
Owner

optiz0r commented Jan 18, 2018

At the very minimum, adding a "junos" entry to the hosts type map in vars/ntc.yml.
If you're very lucky, ntc-templates would support all the textfsm commands called by the tasks\*.yml ansible tasks for junos and would return all the same data.

If ntc-templates is missing a command for junos, or the command doesn't return the right output and needs to be modified, then add an override task into tasks\junos\*.yml which points at the local textfsm template in ntc-templates folder, and update the ntc-templates\index file to reference it.

I don't currently have any junos switches to test with, but that might change over the next few months.

@tiagoasousa
Copy link
Author

Thanks for the reply!
If ntc does not have the templates, what data (command outputs) do you require to build the graph? just to accelerate my search/tests.

@optiz0r
Copy link
Owner

optiz0r commented Jan 22, 2018

So apologies, this isn't doc'd anywhere, the answers lie only in the code. The short answer is look at the files in ntc-templates/ and make sure any new TextFSM templates you write expose the same variables as you see in the nxos/eos templates there. The slightly longer answer is that I don't use all variables from all commands; it's filter_plugins/report.py that reads the data so if some of the variables aren't exposed by the junos commands and you want to know if you can skip them, you'd have to read this code to be sure.

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

No branches or pull requests

2 participants