This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:arista:api [2015/08/05 20:59] – jotasan | network_stuff:arista:api [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | __**JUNOS API / ANSIBLE**__\\ | ||
| + | Instructions [[https:// | ||
| + | [[http:// | ||
| + | |||
| + | Command to generate config: | ||
| + | ansible-playbook -i hosts ex.p.yaml | ||
| + | Destination file: | ||
| + | / | ||
| + | ansible-template-for-junos]$ cat / | ||
| + | |||
| + | update1: Found how to format ouput of an iterated list with new lines in the output using: | ||
| + | {{ int.iface|join(' | ||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| __**Arista API**__\\ | __**Arista API**__\\ | ||
| + | |||
| + | [[https:// | ||
| + | [[http:// | ||
| + | |||
| + | First of all we need > | ||
| + | To compile it Python 2.7:\\ | ||
| + | tar -xvf Python-2.7.5.tgz | ||
| + | cd Python-2.7.5 | ||
| + | ./configure | ||
| + | make | ||
| + | sudo checkinstall | ||
| + | |||
| + | Download ansible-devel from github | ||
| + | Compile it with | ||
| + | source ./ | ||
| + | Newer python versions include pip: [[http:// | ||
| [[https:// | [[https:// | ||
| This is a basic, simple [[https:// | This is a basic, simple [[https:// | ||
| Line 14: | Line 47: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | [[https:// | + | [[https:// |
| + | [[http:// | ||
| + | - Roles: | ||
| + | |||
| + | - Playbooks | ||