[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [x1] ok: [x2] ok: [dut] TASK [Find device readiness script] ******************************************** ok: [x1] ok: [x2] ok: [dut] TASK [Wait for device to become ready] ***************************************** skipping: [x1] skipping: [x2] skipping: [dut] TASK [Normalize config on bridge-like devices] ********************************* included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for x1, x2, dut TASK [Figure out whether to deploy the module normalize on current device] ***** ok: [x1] ok: [x2] ok: [dut] TASK [Find configuration template for normalize] ******************************* ok: [x1] ok: [x2] ok: [dut] TASK [fail] ******************************************************************** skipping: [x1] skipping: [x2] skipping: [dut] TASK [Print deployed configuration when running in verbose mode] *************** skipping: [x1] skipping: [x2] ok: [dut] => msg: |- normalize configuration for dut ========================================= ! interface GigabitEthernet0/1 no switchport mac-address 52dc.cafe.0101 ! interface GigabitEthernet0/2 no switchport mac-address 52dc.cafe.0102 TASK [Find configuration deployment deploy_script for normalize] *************** skipping: [x1] skipping: [x2] ok: [dut] TASK [Deploy normalize configuration] ****************************************** skipping: [x1] skipping: [x2] included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/ios.yml for dut TASK [ios_config: deploying normalize from /home/pipi/net101/tools/netsim/ansible/templates/normalize/iosvl2.j2] *** [WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the running configuration on device including the indentation changed: [dut] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for x1, x2, dut TASK [Figure out whether to deploy the module initial on current device] ******* ok: [x1] ok: [x2] ok: [dut] TASK [Find configuration template for initial] ********************************* ok: [x1] ok: [x2] ok: [dut] TASK [fail] ******************************************************************** skipping: [x1] skipping: [x2] skipping: [dut] TASK [Print deployed configuration when running in verbose mode] *************** 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 # # Add vtysh.conf file echo "service integrated-vtysh-config" >/etc/frr/vtysh.conf # # Set Ethernet interface MTU ip link set dev eth1 mtu 1500 # # 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 # # Add vtysh.conf file echo "service integrated-vtysh-config" >/etc/frr/vtysh.conf # # Set Ethernet interface MTU ip link set dev eth1 mtu 1500 # # 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::3/64 ipv6 nd ra-interval 5 no ipv6 nd suppress-ra ! do write CONFIG vtysh -f /tmp/config exit 0 ok: [dut] => msg: |- initial configuration for dut ========================================= hostname dut ! no ip domain lookup ! lldp run ! ! ipv6 unicast-routing ! vrf definition customer rd 65000:1 route-target import 65000:1 route-target export 65000:1 ! address-family ipv6 exit-address-family ! ! ! interface Loopback0 ipv6 address 2001:DB8:1:1::1/64 ! interface GigabitEthernet0/0 no lldp transmit no lldp receive ! interface GigabitEthernet0/1 no switchport description dut -> x1 mtu 1500 ipv6 address 2001:DB8:3::1/64 no shutdown ! interface GigabitEthernet0/2 no switchport vrf forwarding customer description dut -> x2 mtu 1500 ipv6 address 2001:DB8:3:1::1/64 no shutdown ! ! line vty 0 4 exec-timeout 0 0 ! no banner exec no banner login no banner incoming TASK [Find configuration deployment deploy_script for initial] ***************** ok: [x1] ok: [x2] ok: [dut] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/frr/initial-clab.yml for x1, x2 included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/ios.yml for dut TASK [Attempt to load VRF kernel module] *************************************** changed: [x1 -> localhost] TASK [Disable FRR management VRF when modprobe fails] ************************** skipping: [x1] skipping: [x2] TASK [include_tasks] *********************************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/frr/deploy-config.yml for x1, x2 TASK [template] **************************************************************** changed: [x1] changed: [x2] TASK [set_fact] **************************************************************** 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] TASK [run vtysh to import initial config from /home/pipi/net101/tools/netsim/ansible/templates/initial/frr.j2] *** skipping: [x1] skipping: [x2] TASK [ios_config: deploying initial from /home/pipi/net101/tools/netsim/ansible/templates/initial/ios.j2] *** changed: [dut] PLAY [Deploy module-specific configurations] *********************************** TASK [Set variables that cannot be set with VARS] ****************************** ok: [x1] ok: [x2] ok: [dut] 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: [x1] ok: [x2] ok: [dut] TASK [Find configuration template for ospf] ************************************ ok: [x1] ok: [x2] ok: [dut] TASK [fail] ******************************************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Print deployed configuration when running in verbose mode] *************** 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 ok: [dut] => msg: |- ospf configuration for dut ========================================= router ospfv3 1 router-id 10.0.0.1 address-family ipv6 unicast ! interface Loopback0 ! ospfv3 1 ipv6 area 0.0.0.0 ! interface GigabitEthernet0/1 ! dut -> x1 ospfv3 1 ipv6 area 0.0.0.0 ospfv3 network broadcast ospfv3 priority 200 ! TASK [Find configuration deployment deploy_script for ospf] ******************** ok: [x1] ok: [x2] ok: [dut] TASK [Deploy ospf configuration] *********************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/ios.yml for dut included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-config/frr.yml for x1, x2 TASK [ios_config: deploying ospf from /home/pipi/net101/tools/netsim/ansible/templates/ospf/ios.j2] *** changed: [dut] TASK [template] **************************************************************** changed: [x2] changed: [x1] TASK [set_fact] **************************************************************** 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: [x1] skipping: [x2] TASK [run vtysh to import ospf config from /home/pipi/net101/tools/netsim/ansible/templates/ospf/frr.j2] *** changed: [x2] changed: [x1] TASK [Figure out whether to deploy the module vrf on current device] *********** ok: [x1] ok: [x2] ok: [dut] 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 ========================================= router ospfv3 100 router-id 10.0.0.200 address-family ipv6 unicast vrf customer redistribute connected ! interface GigabitEthernet0/2 ! dut -> x2 ospfv3 100 ipv6 area 0.0.0.0 ospfv3 network broadcast ospfv3 priority 0 ! 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/ios.yml for dut TASK [ios_config: deploying vrf from /home/pipi/net101/tools/netsim/ansible/templates/vrf/ios.j2] *** changed: [dut] PLAY [Deploy custom deployment templates] ************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* dut : ok=31 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 x1 : ok=28 changed=5 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.