Created
February 23, 2024 06:37
-
-
Save rohitthakur2590/6cf60368dffa929ecad55f883222406d to your computer and use it in GitHub Desktop.
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 | |
# PLAYBOOK | |
--- | |
- name: Gathered Operation Playbook 1 | |
hosts: eos | |
collections: | |
- arista.eos | |
tasks: | |
- name: Perform Gather Operation | |
arista.eos.eos_static_routes: | |
state: gathered | |
# OUTPUT | |
TASK [Perform Gather Operation] ************************************************************************************************************************************************************** | |
task path: /home/rothakur/ansible-collections/collections/ansible_collections/playbooks/eos/bgp_static_routes/gathered.yaml:7 | |
redirecting (type: become) ansible.builtin.enable to ansible.netcommon.enable | |
ok: [192.168.29.6] => changed=false | |
gathered: | |
- address_families: | |
- afi: ipv4 | |
routes: | |
- dest: 3.3.3.3/32 | |
next_hops: | |
- interface: 192.168.1.3 | |
- address_families: | |
- afi: ipv4 | |
routes: | |
- dest: 120.1.1.0/24 | |
next_hops: | |
- interface: Management1 | |
vrf: testvrf | |
invocation: | |
module_args: | |
config: null | |
running_config: null | |
state: gathered |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment