ansible-multicast-graph icon indicating copy to clipboard operation
ansible-multicast-graph copied to clipboard

JunOS support

Open tiagoasousa opened this issue 7 years ago • 4 comments

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

tiagoasousa avatar Jan 18 '18 15:01 tiagoasousa

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.

optiz0r avatar Jan 18 '18 15:01 optiz0r

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.

tiagoasousa avatar Jan 22 '18 11:01 tiagoasousa

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.

optiz0r avatar Jan 22 '18 11:01 optiz0r