User Tools

Site Tools


network_stuff:arista:api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
network_stuff:arista:api [2017/08/31 22:21] – jun jotasandokunetwork_stuff:arista:api [2023/11/02 14:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 __**JUNOS API / ANSIBLE**__\\ __**JUNOS API / ANSIBLE**__\\
 Instructions [[https://github.com/dgjnpr/ansible-template-for-junos|here]]\\ Instructions [[https://github.com/dgjnpr/ansible-template-for-junos|here]]\\
 +[[http://example.com|https://blog.codecentric.de/en/2014/08/jinja2-better-ansible-playbooks-templates/]]
  
 Command to generate config: Command to generate config:
Line 6: Line 7:
 Destination file: Destination file:
   /var/tmp/build/   /var/tmp/build/
 +  ansible-template-for-junos]$ cat  /var/tmp/build/switch1.gyron/tmp/main.conf.part  # many times is Here
 +
 +update1: Found how to format ouput of an iterated list with new lines in the output using:
 +  {{ int.iface|join('\n')}} # Check file in "/home/jaime/ansible/ansible-template-for-junos/roles/ex/templatesmain.conf.j2" !
 +
 +
  
 ---- ----
network_stuff/arista/api.1504218117.txt.gz · Last modified: (external edit)