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 [2016/02/05 20:45] – external edit 127.0.0.1network_stuff:arista:api [2023/11/02 14:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +__**JUNOS API / ANSIBLE**__\\
 +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:
 +  ansible-playbook -i hosts ex.p.yaml
 +Destination file:
 +  /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" !
 +
 +
 +
 +----
 +
 __**Arista API**__\\ __**Arista API**__\\
  
network_stuff/arista/api.1454705131.txt.gz · Last modified: (external edit)