Skip to content

Instantly share code, notes, and snippets.

View rohitthakur2590's full-sized avatar

Rohit Thakur rohitthakur2590

View GitHub Profile
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
@rohitthakur2590
rohitthakur2590 / eos_facts.txt
Created February 23, 2024 06:19
EOS FACTS OUTPUT
---
- 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') }}"
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>
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
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
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] ********************
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
[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
@rohitthakur2590
rohitthakur2590 / network_bgp_remediate_out.txt
Created March 29, 2023 08:40
Network BGP Remediate Action
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
},
@rohitthakur2590
rohitthakur2590 / network_bgp_detect_output.txt
Created March 29, 2023 06:37
Network BGP detect Action
...
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",