[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] ok: [x2] TASK [Find device readiness script] ******************************************** ok: [dut] ok: [x1] ok: [x2] TASK [Wait for device to become ready] ***************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for normalize] ******************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Find configuration deployment deploy_script for normalize] *************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Deploy normalize configuration] ****************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- initial configuration for dut ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <<SCRIPT >/root/.bash_profile #!/bin/bash # export PS1="\h(bash)# " echo echo "Use vtysh to connect to FRR daemon" echo SCRIPT # # Get the current next hop for the default route # def_nh=$(ip route list default|awk '{ print $3 }') # # Create the management VRF and add eth0 to it # if [ ! -e /sys/devices/virtual/net/mgmt ]; then ip link add mgmt type vrf table 42 fi ip link set mgmt up sysctl -qw net.ipv6.conf.eth0.keep_addr_on_down=1 ip link set eth0 master mgmt # # Reinstall the default route if we had it before # if [[ -n "$def_nh" ]]; then ip route add 0.0.0.0/0 vrf mgmt via $def_nh fi # # Enable FRR modules (if not using containerlab bind-mounted /etc/frr/daemons) # # # Create loopbacks, stub and lag/bond devices # if [ ! -e /sys/class/net/lo ]; then if [ ! -e /sys/devices/virtual/net/lo ]; then ip link add lo type dummy ip link set dev lo up fi fi # Disable IPv6 (for IPv4-only interfaces) or SLAAC (if the device is a router) # sysctl -qw net.ipv6.conf.eth1.autoconf=0 sysctl -qw net.ipv6.conf.eth1.accept_ra=0 ip link set eth1 down ip link set eth1 up ip link set dev eth1 mtu 1500 sysctl -qw net.ipv6.conf.eth2.autoconf=0 sysctl -qw net.ipv6.conf.eth2.accept_ra=0 ip link set eth2 down ip link set eth2 up ip link set dev eth2 mtu 1500 # # Add vtysh.conf file echo "service integrated-vtysh-config" >/etc/frr/vtysh.conf # # Rest of initial configuration done through VTYSH # cat >/tmp/config <<CONFIG hostname dut ! vrf mgmt exit-vrf ! ipv6 forwarding frr defaults datacenter ! interface lo no shutdown ! no ip address ipv6 address 2001:db8:1:1::1/64 ! interface eth1 no shutdown description dut -> x1 ! no ip address ipv6 address 2001:db8:3::1/64 ipv6 nd ra-interval 5 no ipv6 nd suppress-ra ! interface eth2 no shutdown description dut -> x2 ! no ip address ipv6 address 2001:db8:3:1::1/64 ipv6 nd ra-interval 5 no ipv6 nd suppress-ra ! do write CONFIG vtysh -f /tmp/config exit 0 ok: [x1] => msg: |- initial configuration for x1 ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <<SCRIPT >/root/.bash_profile #!/bin/bash # export PS1="\h(bash)# " echo echo "Use vtysh to connect to FRR daemon" echo SCRIPT # # Get the current next hop for the default route # def_nh=$(ip route list default|awk '{ print $3 }') # # Create the management VRF and add eth0 to it # if [ ! -e /sys/devices/virtual/net/mgmt ]; then ip link add mgmt type vrf table 42 fi ip link set mgmt up sysctl -qw net.ipv6.conf.eth0.keep_addr_on_down=1 ip link set eth0 master mgmt # # Reinstall the default route if we had it before # if [[ -n "$def_nh" ]]; then ip route add 0.0.0.0/0 vrf mgmt via $def_nh fi # # Enable FRR modules (if not using containerlab bind-mounted /etc/frr/daemons) # # # Create loopbacks, stub and lag/bond devices # if [ ! -e /sys/class/net/lo ]; then if [ ! -e /sys/devices/virtual/net/lo ]; then ip link add lo type dummy ip link set dev lo up fi fi # Disable IPv6 (for IPv4-only interfaces) or SLAAC (if the device is a router) # sysctl -qw net.ipv6.conf.eth1.autoconf=0 sysctl -qw net.ipv6.conf.eth1.accept_ra=0 ip link set eth1 down ip link set eth1 up ip link set dev eth1 mtu 1500 # # Add vtysh.conf file echo "service integrated-vtysh-config" >/etc/frr/vtysh.conf # # Rest of initial configuration done through VTYSH # cat >/tmp/config <<CONFIG hostname x1 ! vrf mgmt exit-vrf ! ipv6 forwarding frr defaults datacenter ! interface lo no shutdown ! no ip address ipv6 address 2001:db8:1:2::1/64 ! interface eth1 no shutdown description x1 -> dut ! no ip address ipv6 address 2001:db8:3::2/64 ipv6 nd ra-interval 5 no ipv6 nd suppress-ra ! do write CONFIG vtysh -f /tmp/config exit 0 ok: [x2] => msg: |- initial configuration for x2 ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <<SCRIPT >/root/.bash_profile #!/bin/bash # export PS1="\h(bash)# " echo echo "Use vtysh to connect to FRR daemon" echo SCRIPT # # Get the current next hop for the default route # def_nh=$(ip route list default|awk '{ print $3 }') # # Create the management VRF and add eth0 to it # if [ ! -e /sys/devices/virtual/net/mgmt ]; then ip link add mgmt type vrf table 42 fi ip link set mgmt up sysctl -qw net.ipv6.conf.eth0.keep_addr_on_down=1 ip link set eth0 master mgmt # # Reinstall the default route if we had it before # if [[ -n "$def_nh" ]]; then ip route add 0.0.0.0/0 vrf mgmt via $def_nh fi # # Enable FRR modules (if not using containerlab bind-mounted /etc/frr/daemons) # # # Create loopbacks, stub and lag/bond devices # if [ ! -e /sys/class/net/lo ]; then if [ ! -e /sys/devices/virtual/net/lo ]; then ip link add lo type dummy ip link set dev lo up fi fi # Disable IPv6 (for IPv4-only interfaces) or SLAAC (if the device is a router) # sysctl -qw net.ipv6.conf.eth1.autoconf=0 sysctl -qw net.ipv6.conf.eth1.accept_ra=0 ip link set eth1 down ip link set eth1 up ip link set dev eth1 mtu 1500 # # Add vtysh.conf file echo "service integrated-vtysh-config" >/etc/frr/vtysh.conf # # Rest of initial configuration done through VTYSH # cat >/tmp/config <<CONFIG hostname x2 ! vrf mgmt exit-vrf ! ipv6 forwarding frr defaults datacenter ! interface lo no shutdown ! no ip address ipv6 address 2001:db8:1:3::1/64 ! interface eth1 no shutdown description x2 -> dut ! no ip address ipv6 address 2001:db8:3:1::2/64 ipv6 nd ra-interval 5 no ipv6 nd suppress-ra ! do write CONFIG vtysh -f /tmp/config exit 0 TASK [Find configuration deployment deploy_script for initial] ***************** ok: [dut] ok: [x1] ok: [x2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/frr/initial-clab.yml for dut, x1, x2 TASK [Attempt to load VRF kernel module] *************************************** changed: [dut -> localhost] TASK [Disable FRR management VRF when modprobe fails] ************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [include_tasks] *********************************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/frr/deploy-config.yml for dut, x1, x2 TASK [template] **************************************************************** changed: [x1] changed: [x2] changed: [dut] TASK [set_fact] **************************************************************** ok: [dut] ok: [x1] ok: [x2] TASK [run /tmp/config.sh to deploy initial config from /home/pipi/net101/tools/netsim/ansible/templates/initial/frr.j2] *** changed: [x2] changed: [x1] changed: [dut] TASK [run vtysh to import initial config from /home/pipi/net101/tools/netsim/ansible/templates/initial/frr.j2] *** skipping: [dut] skipping: [x1] skipping: [x2] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] ok: [x2] TASK [Deploy individual configuration modules] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 => (item=ospf) included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 => (item=vrf) TASK [Figure out whether to deploy the module ospf on current device] ********** ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for ospf] ************************************ ok: [dut] ok: [x1] ok: [x2] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- ospf configuration for dut ========================================= ! ! OSPFv3 FRR configuration ! interface lo ! ipv6 ospf6 area 0.0.0.0 ! interface eth1 ! dut -> x1 ipv6 ospf6 area 0.0.0.0 ipv6 ospf6 network broadcast ipv6 ospf6 priority 200 ! ! router ospf6 ospf6 router-id 10.0.0.1 timers lsa min-arrival 100 timers throttle spf 10 50 500 exit ! do write ok: [x1] => msg: |- ospf configuration for x1 ========================================= ! ! OSPFv3 FRR configuration ! interface lo ! ipv6 ospf6 area 0.0.0.0 ! interface eth1 ! x1 -> dut ipv6 ospf6 area 0.0.0.0 ipv6 ospf6 network broadcast ! ! router ospf6 ospf6 router-id 10.0.0.2 timers lsa min-arrival 100 timers throttle spf 10 50 500 exit ! do write ok: [x2] => msg: |- ospf configuration for x2 ========================================= ! ! OSPFv3 FRR configuration ! interface lo ! ipv6 ospf6 area 0.0.0.0 ! interface eth1 ! x2 -> dut ipv6 ospf6 area 0.0.0.0 ipv6 ospf6 network broadcast ! ! router ospf6 ospf6 router-id 10.0.0.3 timers lsa min-arrival 100 timers throttle spf 10 50 500 exit ! do write TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [dut] ok: [x1] ok: [x2] TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/frr.yml for dut, x1, x2 TASK [template] **************************************************************** changed: [dut] changed: [x2] changed: [x1] TASK [set_fact] **************************************************************** ok: [dut] ok: [x1] ok: [x2] TASK [run /tmp/config.sh to deploy ospf config from /home/pipi/net101/tools/netsim/ansible/templates/ospf/frr.j2] *** skipping: [dut] skipping: [x1] skipping: [x2] TASK [run vtysh to import ospf config from /home/pipi/net101/tools/netsim/ansible/templates/ospf/frr.j2] *** changed: [dut] changed: [x1] changed: [x2] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for vrf] ************************************* skipping: [x1] skipping: [x2] ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [x1] skipping: [x2] ok: [dut] => msg: |- vrf configuration for dut ========================================= #!/bin/bash # set -e # Exit immediately when any command fails # # Create VRF tables if [ ! -e /sys/devices/virtual/net/customer ]; then ip link add customer type vrf table 100 fi ip link set customer up # Move interfaces and loopbacks to vrfs sysctl -qw net.ipv6.conf.eth2.keep_addr_on_down=1 ip link set eth2 master customer cat >/tmp/vrf_config <<CONFIG vrf customer exit-vrf ! router bgp 65000 ! ! ! ! OSPFv3 FRR configuration ! interface eth2 ! dut -> x2 ipv6 ospf6 area 0.0.0.0 ipv6 ospf6 network broadcast ipv6 ospf6 priority 0 ! ! router ospf6 vrf customer ospf6 router-id 10.0.0.200 timers lsa min-arrival 100 timers throttle spf 10 50 500 redistribute connected exit ! do write ! CONFIG vtysh -f /tmp/vrf_config exit $? TASK [Find configuration deployment deploy_script for vrf] ********************* skipping: [x1] skipping: [x2] ok: [dut] TASK [Deploy vrf configuration] ************************************************ skipping: [x1] skipping: [x2] included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/frr.yml for dut TASK [template] **************************************************************** changed: [dut] TASK [set_fact] **************************************************************** ok: [dut] TASK [run /tmp/config.sh to deploy vrf config from /home/pipi/net101/tools/netsim/ansible/templates/vrf/frr.j2] *** changed: [dut] TASK [run vtysh to import vrf config from /home/pipi/net101/tools/netsim/ansible/templates/vrf/frr.j2] *** skipping: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=35 changed=7 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 x1 : ok=27 changed=4 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 x2 : ok=27 changed=4 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 This lab tests the OSPF interface timers. The device under test must establish an OSPF adjacency with the probe having custom OSPF hello/dead timers. The test assumes the device under test supports OSPFv2 in VRFs and configurable OSPF router ID.