backup
netops@netserver:~/git/vxlan_evpn_example$ ansible-playbook cumulus-automate.yml --tags backup
PLAY [cumulus] **********************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************
ok: [leaf02]
ok: [leaf01]
ok: [spine02]
ok: [spine01]
TASK [backup-cumulus : Backup interface Configuration] ******************************************************************
changed: [leaf01]
changed: [leaf02]
changed: [spine02]
changed: [spine01]
TASK [backup-cumulus : Backup FRRouting daemon configuration] ***********************************************************
changed: [leaf01]
changed: [leaf02]
changed: [spine01]
changed: [spine02]
TASK [backup-cumulus : Backup FRRouting configuration] ******************************************************************
changed: [leaf01]
changed: [leaf02]
changed: [spine01]
changed: [spine02]
PLAY RECAP **************************************************************************************************************
leaf01 : ok=4 changed=3 unreachable=0 failed=0
leaf02 : ok=4 changed=3 unreachable=0 failed=0
spine01 : ok=4 changed=3 unreachable=0 failed=0
spine02 : ok=4 changed=3 unreachable=0 failed=0
backup dir
netops@netserver:~/git/vxlan_evpn_example$ ls backup/
leaf01 leaf02 spine01 spine02
netops@netserver:~/git/vxlan_evpn_example$ ls backup/leaf01
daemons frr.conf interfaces
netops@netserver:~/git/vxlan_evpn_example$ cat backup/leaf01/frr.conf
# default to using syslog. /etc/rsyslog.d/45-frr.conf places the log
# in /var/log/frr/frr.log
log syslog informational
apt play
netops@netserver:~/git/vxlan_evpn_example$ ansible-playbook cumulus-automate.yml --tags apt
PLAY [cumulus] *****************************************************************
TASK [Gathering Facts] *********************************************************
ok: [leaf02]
ok: [spine02]
ok: [spine01]
ok: [leaf01]
TASK [apt-cumulus : update cumulus] ********************************************
ok: [leaf02]
ok: [spine02]
ok: [spine01]
ok: [leaf01]
TASK [apt-cumulus : install packages] ******************************************
changed: [spine02]
changed: [leaf01]
changed: [spine01]
changed: [leaf02]
PLAY RECAP *********************************************************************
leaf01 : ok=3 changed=1 unreachable=0 failed=0
leaf02 : ok=3 changed=1 unreachable=0 failed=0
spine01 : ok=3 changed=1 unreachable=0 failed=0
spine02 : ok=3 changed=1 unreachable=0 failed=0
Int Playbook
netops@netserver:~/git/vxlan_evpn_example$ ansible-playbook cumulus-automate.yml --tags int
PLAY [cumulus] *****************************************************************
TASK [Gathering Facts] *********************************************************
ok: [leaf01]
ok: [spine01]
ok: [spine02]
ok: [leaf02]
TASK [interfaces-cumulus : Loopback configuration] *****************************
changed: [spine01]
changed: [leaf01]
changed: [spine02]
changed: [leaf02]
TASK [interfaces-cumulus : interfaces configuration] ***************************
changed: [spine01]
changed: [spine02]
changed: [leaf01]
changed: [leaf02]
RUNNING HANDLER [interfaces-cumulus : reload networking] ***********************
changed: [spine01]
changed: [spine02]
changed: [leaf01]
changed: [leaf02]
PLAY RECAP *********************************************************************
leaf01 : ok=3 changed=2 unreachable=0 failed=0
leaf02 : ok=3 changed=2 unreachable=0 failed=0
spine01 : ok=3 changed=2 unreachable=0 failed=0
spine02 : ok=3 changed=2 unreachable=0 failed=0
file after int
cumulus@spine01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*.intf
# The loopback network interface
auto lo
iface lo inet loopback
# BEGIN ANSIBLE MANAGED BLOCK LOOPBACKS
address 192.168.0.1/32
# END ANSIBLE MANAGED BLOCK LOOPBACKS
# The primary network interface
auto eth0
iface eth0
address 192.168.128.201/24
gateway 192.168.128.1
# BEGIN ANSIBLE MANAGED BLOCK INTERFACES
auto swp1
iface swp1
auto swp2
iface swp2
# END ANSIBLE MANAGED BLOCK INTERFACES
interface live
cumulus@spine01:~$ net show interface
State Name Spd MTU Mode LLDP Summary
----- ---- --- ----- ------------- ------------- ----------------------
UP lo N/A 65536 Loopback IP: 127.0.0.1/8
lo IP: 192.168.0.1/32
lo IP: ::1/128
UP eth0 1G 1500 Mgmt IP: 192.168.128.201/24
UP swp1 1G 1500 Unnumbered leaf01 (swp1)
UP swp2 1G 1500 Unnumbered leaf02 (swp1)
frr run
netops@netserver:~/git/vxlan_evpn_example$ ansible-playbook cumulus-automate.yml --tags frr
PLAY [cumulus] *********************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************
ok: [spine02]
ok: [leaf02]
ok: [leaf01]
ok: [spine01]
TASK [frr-cumulus : Load daemons configuration] ************************************************************************
changed: [leaf01]
changed: [leaf02]
changed: [spine02]
changed: [spine01]
TASK [frr-cumulus : bgp configuratation] *******************************************************************************
changed: [leaf01]
changed: [spine02]
changed: [spine01]
changed: [leaf02]
RUNNING HANDLER [frr-cumulus : enable frr]****************************************************************************
changed: [leaf01]
changed: [spine02]
changed: [spine01]
changed: [leaf02]
RUNNING HANDLER [frr-cumulus : restart frr] ****************************************************************************
changed: [leaf01]
changed: [spine02]
changed: [spine01]
changed: [leaf02]
PLAY RECAP *************************************************************************************************************
leaf01 : ok=5 changed=4 unreachable=0 failed=0
leaf02 : ok=5 changed=4 unreachable=0 failed=0
spine01 : ok=5 changed=4 unreachable=0 failed=0
spine02 : ok=5 changed=4 unreachable=0 failed=0
Show BGP
cumulus@spine01:~$ net show bgp summary
show bgp ipv4 unicast summary
=============================
BGP router identifier 192.168.0.1, local AS number 65000 vrf-id 0
BGP table version 2
RIB entries 3, using 456 bytes of memory
Peers 2, using 39 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
leaf01(swp1) 4 65001 11 10 0 0 0 00:00:16 1
leaf02(swp2) 4 65002 10 9 0 0 0 00:00:13 1
Total number of neighbors 2
show bgp ipv6 unicast summary
=============================
% No BGP neighbors found
show bgp l2vpn evpn summary
===========================
% No BGP neighbors found