This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EOS-DEVICE CONFIG | |
candidate_arista_11#show running-config | grep route | |
switchport default mode routed | |
dhcp client accept default-route | |
10 deny icmpv6 any any reject-route hop-limit eq 20 | |
ip route 3.3.3.3/32 192.168.1.3 | |
ip route vrf testvrf 120.1.1.0/24 Management1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Play for Sean Issue | |
hosts: eos | |
collections: | |
- arista.eos | |
tasks: | |
- name: Gather arista eos facts | |
arista.eos.eos_facts: | |
gather_subset: config | |
gather_network_resources: "{{ network_resource | default('!bgp_global,!bgp_address_family') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xml.data.yaml | |
================== | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rpc-reply message-id="urn:uuid:0cadb4e8-5bba-47f4-986e-72906227007f"> | |
<data> | |
<ntp> | |
<nodes> | |
<node> | |
<node>0/0/CPU0</node> | |
<associations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook [core 2.14.3] | |
config file = /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg | |
configured module search path = ['/home/rothakur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible | |
ansible collection location = /home/rothakur/ansible-collections/collections | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3) | |
jinja version = 3.0.3 | |
libyaml = False | |
Using /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg as config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook [core 2.14.3] | |
config file = /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg | |
configured module search path = ['/home/rothakur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible | |
ansible collection location = /home/rothakur/ansible-collections/collections | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3) | |
jinja version = 3.0.3 | |
libyaml = False | |
Using /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg as config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [rtr1] ********************************************************************************************************************************************************************************** | |
TASK [Network OSPF Manager] ****************************************************************************************************************************************************************** | |
TASK [network.ospf.run : Include tasks] ****************************************************************************************************************************************************** | |
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/roles/run/tasks/includes/gather.yaml for rtr1 => (item={'name': 'gather'}) | |
TASK [Invoke gather function] **************************************************************************************************************************************************************** | |
TASK [network.base.resource_manager : Run the platform specific tasks] ******************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook [core 2.14.3] | |
config file = /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg | |
configured module search path = ['/home/rothakur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible | |
ansible collection location = /home/rothakur/ansible-collections/collections | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3) | |
jinja version = 3.0.3 | |
libyaml = False | |
Using /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg as config file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rothakur@localhost ospf]$ ansible-playbook -vvv persist.yaml | |
ansible-playbook [core 2.14.3] | |
config file = /home/rothakur/ansible-collections/collections/ansible_collections/network/ospf/ansible.cfg | |
configured module search path = ['/home/rothakur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible | |
ansible collection location = /home/rothakur/ansible-collections/collections | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3) | |
jinja version = 3.0.3 | |
libyaml = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK [network.base.resource_manager : Apply provided configuration] ************ | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/edit_resource.yaml:2 | |
[WARNING]: conditional statements should not include jinja2 templating | |
delimiters such as {{ }} or {% %}. Found: {{ module_vars[resource] }} | |
changed: [192.168.122.220] => { | |
"after": { | |
"as_number": "500", | |
"bgp": { | |
"log_neighbor_changes": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
TASK [network.base.resource_manager : Show the difference in configuration] **** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml:22 | |
--- before | |
+++ after | |
@@ -15,7 +15,7 @@ | |
{ | |
"neighbor_address": "CCIE", | |
"remote_as": "500", | |
- "update_source": "Loopback0", |
NewerOlder