[26-06-02 09:47:38] START switch_route3 scenario: cases/switch_route3.sh header : validate forwarding and route reachability via sw2 topology: sw1 VIP 10.251.0.11; | output; sw2 VIP 10.251.0.12; | output + static routes; sw3 reaches sw1/sw2 loopback VIPs through nexthops topology: # Topology: topology: # - Diagram: topology: # sw1 VIP 10.251.0.11 topology: # ^ topology: # | output topology: # sw2 VIP 10.251.0.12 topology: # ^ topology: # | output + static routes topology: # sw3 reaches sw1/sw2 loopback VIPs through nexthops topology: # - Docker mgmt network: 172.251.0.0/24 topology: # sw1=172.251.0.241, sw2=172.251.0.242, sw3=172.251.0.243. topology: # - OpenLAN service network "example": 192.51.0.0/24 topology: # sw1=192.51.0.1, sw2=192.51.0.2, sw3=192.51.0.3. topology: # - Loopback VIPs: topology: # sw1 lo=10.251.0.11/32, sw2 lo=10.251.0.12/32. topology: # - Forwarding and route design: topology: # sw2 -> sw1 output, sw3 -> sw2 output; topology: # sw3 routes 10.251.0.11 via 192.51.0.1 and 10.251.0.12 via 192.51.0.2. topology: # Validation: topology: # (see scenario assertions in this case) Started switch pause container: tests-sw-route1-pause Started switch frr container: tests-sw-route1-frr Started switch ipsec container: tests-sw-route1-ipsec Started switch container: tests-sw-route1 [26-06-02 09:47:39][ASSERT#0001][expect] at cases/switch_route3.sh:58 fn=setup_sw1 retry=30 cmd="docker logs -f tests-sw-route1" expect="Http.Start" 2026/06/02 09:47:40 INFO|root|Wait: ... 2026/06/02 09:47:40 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:47:40 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:47:40 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:47:40][ASSERT#0001][OK] cost=1.033s [26-06-02 09:47:40][ASSERT#0002][cmd] at cases/switch_route3.sh:60 fn=setup_sw1 cmd="docker exec tests-sw-route1 openlan network --name example add --address 192.51.0.1/24" [26-06-02 09:47:40][ASSERT#0002][OK] cost=0.243s [26-06-02 09:47:40][ASSERT#0003][cmd] at cases/switch_route3.sh:61 fn=setup_sw1 cmd="docker exec tests-sw-route1 openlan router address add --device lo --address 10.251.0.11/32" [26-06-02 09:47:40][ASSERT#0003][OK] cost=0.064s [26-06-02 09:47:41][ASSERT#0004][cmd] at cases/switch_route3.sh:62 fn=setup_sw1 cmd="docker exec tests-sw-route1 openlan user add --name edge1@example --password 123456" # total 1 username password role lease edge1@example 123456 guest 2027-06-02T09 [26-06-02 09:47:41][ASSERT#0004][OK] cost=0.062s Started switch pause container: tests-sw-route2-pause Started switch frr container: tests-sw-route2-frr Started switch ipsec container: tests-sw-route2-ipsec Started switch container: tests-sw-route2 [26-06-02 09:47:41][ASSERT#0005][expect] at cases/switch_route3.sh:80 fn=setup_sw2 retry=30 cmd="docker logs -f tests-sw-route2" expect="Http.Start" 2026/06/02 09:47:42 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:47:42 INFO|root|Wait: ... 2026/06/02 09:47:42 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:47:42 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:47:42][ASSERT#0005][OK] cost=1.031s [26-06-02 09:47:42][ASSERT#0006][cmd] at cases/switch_route3.sh:82 fn=setup_sw2 cmd="docker exec tests-sw-route2 openlan network --name example add --address 192.51.0.2/24" [26-06-02 09:47:43][ASSERT#0006][OK] cost=0.242s [26-06-02 09:47:43][ASSERT#0007][cmd] at cases/switch_route3.sh:83 fn=setup_sw2 cmd="docker exec tests-sw-route2 openlan router address add --device lo --address 10.251.0.12/32" [26-06-02 09:47:43][ASSERT#0007][OK] cost=0.062s [26-06-02 09:47:43][ASSERT#0008][cmd] at cases/switch_route3.sh:84 fn=setup_sw2 cmd="docker exec tests-sw-route2 openlan user add --name edge2@example --password 123457" # total 1 username password role lease edge2@example 123457 guest 2027-06-02T09 [26-06-02 09:47:43][ASSERT#0008][OK] cost=0.060s [26-06-02 09:47:43][ASSERT#0009][cmd] at cases/switch_route3.sh:86 fn=setup_sw2 cmd="docker exec tests-sw-route2 openlan network --name example output add --remote 172.251.0.241 --protocol tcp --secret edge1@example:123456 --crypt aes-128:ea64d5b0c96c" [26-06-02 09:47:43][ASSERT#0009][OK] cost=0.067s Started switch pause container: tests-sw-route3-pause Started switch frr container: tests-sw-route3-frr Started switch ipsec container: tests-sw-route3-ipsec Started switch container: tests-sw-route3 [26-06-02 09:47:44][ASSERT#0010][expect] at cases/switch_route3.sh:104 fn=setup_sw3 retry=30 cmd="docker logs -f tests-sw-route3" expect="Http.Start" 2026/06/02 09:47:44 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:47:44 INFO|root|Wait: ... 2026/06/02 09:47:44 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:47:44 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:47:45][ASSERT#0010][OK] cost=1.033s [26-06-02 09:47:45][ASSERT#0011][cmd] at cases/switch_route3.sh:106 fn=setup_sw3 cmd="docker exec tests-sw-route3 openlan network --name example add --address 192.51.0.3/24" [26-06-02 09:47:45][ASSERT#0011][OK] cost=0.243s [26-06-02 09:47:45][ASSERT#0012][cmd] at cases/switch_route3.sh:108 fn=setup_sw3 cmd="docker exec tests-sw-route3 openlan network --name example output add --remote 172.251.0.242 --protocol tcp --secret edge2@example:123457 --crypt aes-128:ea64d5b0c96c" [26-06-02 09:47:45][ASSERT#0012][OK] cost=0.074s [26-06-02 09:47:45][ASSERT#0013][cmd] at cases/switch_route3.sh:111 fn=setup_sw3 cmd="docker exec tests-sw-route3 openlan network --name example route add --prefix 10.251.0.11/32 --nexthop 192.51.0.1" [26-06-02 09:47:45][ASSERT#0013][OK] cost=0.055s [26-06-02 09:47:45][ASSERT#0014][cmd] at cases/switch_route3.sh:112 fn=setup_sw3 cmd="docker exec tests-sw-route3 openlan network --name example route add --prefix 10.251.0.12/32 --nexthop 192.51.0.2" [26-06-02 09:47:45][ASSERT#0014][OK] cost=0.061s [26-06-02 09:47:45][ASSERT#0015][match] at cases/switch_route3.sh:127 fn=test_route retry=60 cmd="docker exec tests-sw-route2 openlan network --name example output ls" expect="state: authenticated" protocol: tcp remote: 172.251.0.241 secret: edge1@example:123456 state: authenticated [26-06-02 09:47:45][ASSERT#0015][OK] cost=0.077s [26-06-02 09:47:45][ASSERT#0016][match] at cases/switch_route3.sh:128 fn=test_route retry=60 cmd="docker exec tests-sw-route3 openlan network --name example output ls" expect="state: authenticated" protocol: tcp remote: 172.251.0.242 secret: edge2@example:123457 state: authenticated [26-06-02 09:47:47][ASSERT#0016][OK] cost=2.203s [26-06-02 09:47:47][ASSERT#0017][match] at cases/switch_route3.sh:116 fn=test_route_once retry=1 cmd="docker exec tests-sw-route3 ip route show" expect="10.251.0.11" default via 172.251.0.1 dev eth0 10.251.0.11 via 192.51.0.1 dev hi-example metric 660 10.251.0.12 via 192.51.0.2 dev hi-example metric 660 172.251.0.0/24 dev eth0 proto kernel scope link src 172.251.0.243 192.51.0.0/24 dev hi-example proto kernel scope link src 192.51.0.3 [26-06-02 09:47:47][ASSERT#0017][OK] cost=0.057s [26-06-02 09:47:47][ASSERT#0018][match] at cases/switch_route3.sh:117 fn=test_route_once retry=1 cmd="docker exec tests-sw-route3 ip route show" expect="10.251.0.12" default via 172.251.0.1 dev eth0 10.251.0.11 via 192.51.0.1 dev hi-example metric 660 10.251.0.12 via 192.51.0.2 dev hi-example metric 660 172.251.0.0/24 dev eth0 proto kernel scope link src 172.251.0.243 192.51.0.0/24 dev hi-example proto kernel scope link src 192.51.0.3 [26-06-02 09:47:47][ASSERT#0018][OK] cost=0.056s [26-06-02 09:47:47][ASSERT#0019][cmd] at cases/switch_route3.sh:119 fn=test_route_once cmd="docker exec tests-sw-route3 ip neigh flush dev hi-example" [26-06-02 09:47:48][ASSERT#0019][OK] cost=0.057s [26-06-02 09:47:48][ASSERT#0020][match] at cases/switch_route3.sh:120 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 192.51.0.1" expect="bytes from" PING 192.51.0.1 (192.51.0.1) 56(84) bytes of data. 64 bytes from 192.51.0.1: icmp_seq=1 ttl=64 time=2084 ms 64 bytes from 192.51.0.1: icmp_seq=2 ttl=64 time=1027 ms 64 bytes from 192.51.0.1: icmp_seq=3 ttl=64 time=3.43 ms --- 192.51.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2081ms [26-06-02 09:47:50][ASSERT#0020][OK] cost=2.144s [26-06-02 09:47:50][ASSERT#0021][match] at cases/switch_route3.sh:121 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 192.51.0.2" expect="bytes from" PING 192.51.0.2 (192.51.0.2) 56(84) bytes of data. 64 bytes from 192.51.0.2: icmp_seq=1 ttl=64 time=0.845 ms 64 bytes from 192.51.0.2: icmp_seq=2 ttl=64 time=1.34 ms 64 bytes from 192.51.0.2: icmp_seq=3 ttl=64 time=1.29 ms --- 192.51.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2022ms [26-06-02 09:47:52][ASSERT#0021][OK] cost=2.083s [26-06-02 09:47:52][ASSERT#0022][match] at cases/switch_route3.sh:122 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 10.251.0.11" expect="bytes from" PING 10.251.0.11 (10.251.0.11) 56(84) bytes of data. 64 bytes from 10.251.0.11: icmp_seq=1 ttl=64 time=0.958 ms 64 bytes from 10.251.0.11: icmp_seq=2 ttl=64 time=2.25 ms 64 bytes from 10.251.0.11: icmp_seq=3 ttl=64 time=1.98 ms --- 10.251.0.11 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms [26-06-02 09:47:54][ASSERT#0022][OK] cost=2.064s [26-06-02 09:47:54][ASSERT#0023][match] at cases/switch_route3.sh:123 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 10.251.0.12" expect="bytes from" PING 10.251.0.12 (10.251.0.12) 56(84) bytes of data. 64 bytes from 10.251.0.12: icmp_seq=1 ttl=64 time=0.550 ms 64 bytes from 10.251.0.12: icmp_seq=2 ttl=64 time=1.06 ms 64 bytes from 10.251.0.12: icmp_seq=3 ttl=64 time=1.29 ms --- 10.251.0.12 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2016ms [26-06-02 09:47:56][ASSERT#0023][OK] cost=2.081s [26-06-02 09:47:56][ASSERT#0024][cmd] at cases/switch_route3.sh:132 fn=test_route cmd="docker exec tests-sw-route1 openlan reload --save" Save configuraion ... success # reloading pid:42 .... PID 42 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 # max wait 60s... # during 1s, new pid:458 ... PID 458 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:47:57][ASSERT#0024][OK] cost=1.066s [26-06-02 09:47:57][ASSERT#0025][cmd] at cases/switch_route3.sh:133 fn=test_route cmd="docker exec tests-sw-route2 openlan reload --save" Save configuraion ... success # reloading pid:42 .... PID 42 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 # max wait 60s... # during 1s, new pid:491 ... PID 491 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:47:58][ASSERT#0025][OK] cost=1.064s [26-06-02 09:47:58][ASSERT#0026][cmd] at cases/switch_route3.sh:134 fn=test_route cmd="docker exec tests-sw-route3 openlan reload --save" Save configuraion ... success # reloading pid:42 .... PID 42 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 # max wait 60s... # during 1s, new pid:554 ... PID 554 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:47:59][ASSERT#0026][OK] cost=1.074s [26-06-02 09:47:59][ASSERT#0027][match] at cases/switch_route3.sh:136 fn=test_route retry=60 cmd="docker exec tests-sw-route2 openlan network --name example output ls" expect="state: authenticated" remote: 172.251.0.241 rxBytes: 964 secret: edge1@example:123456 state: authenticated txBytes: 1359 [26-06-02 09:48:04][ASSERT#0027][OK] cost=4.342s [26-06-02 09:48:04][ASSERT#0028][match] at cases/switch_route3.sh:137 fn=test_route retry=60 cmd="docker exec tests-sw-route3 openlan network --name example output ls" expect="state: authenticated" remote: 172.251.0.242 rxBytes: 1564 secret: edge2@example:123457 state: authenticated txBytes: 2146 [26-06-02 09:48:06][ASSERT#0028][OK] cost=2.204s [26-06-02 09:48:06][ASSERT#0029][match] at cases/switch_route3.sh:116 fn=test_route_once retry=1 cmd="docker exec tests-sw-route3 ip route show" expect="10.251.0.11" default via 172.251.0.1 dev eth0 10.251.0.11 via 192.51.0.1 dev hi-example metric 660 10.251.0.12 via 192.51.0.2 dev hi-example metric 660 172.251.0.0/24 dev eth0 proto kernel scope link src 172.251.0.243 192.51.0.0/24 dev hi-example proto kernel scope link src 192.51.0.3 [26-06-02 09:48:06][ASSERT#0029][OK] cost=0.056s [26-06-02 09:48:06][ASSERT#0030][match] at cases/switch_route3.sh:117 fn=test_route_once retry=1 cmd="docker exec tests-sw-route3 ip route show" expect="10.251.0.12" default via 172.251.0.1 dev eth0 10.251.0.11 via 192.51.0.1 dev hi-example metric 660 10.251.0.12 via 192.51.0.2 dev hi-example metric 660 172.251.0.0/24 dev eth0 proto kernel scope link src 172.251.0.243 192.51.0.0/24 dev hi-example proto kernel scope link src 192.51.0.3 [26-06-02 09:48:06][ASSERT#0030][OK] cost=0.063s [26-06-02 09:48:06][ASSERT#0031][cmd] at cases/switch_route3.sh:119 fn=test_route_once cmd="docker exec tests-sw-route3 ip neigh flush dev hi-example" [26-06-02 09:48:06][ASSERT#0031][OK] cost=0.058s [26-06-02 09:48:06][ASSERT#0032][match] at cases/switch_route3.sh:120 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 192.51.0.1" expect="bytes from" PING 192.51.0.1 (192.51.0.1) 56(84) bytes of data. 64 bytes from 192.51.0.1: icmp_seq=1 ttl=64 time=2069 ms 64 bytes from 192.51.0.1: icmp_seq=2 ttl=64 time=1027 ms 64 bytes from 192.51.0.1: icmp_seq=3 ttl=64 time=3.37 ms --- 192.51.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2066ms [26-06-02 09:48:08][ASSERT#0032][OK] cost=2.132s [26-06-02 09:48:08][ASSERT#0033][match] at cases/switch_route3.sh:121 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 192.51.0.2" expect="bytes from" PING 192.51.0.2 (192.51.0.2) 56(84) bytes of data. 64 bytes from 192.51.0.2: icmp_seq=1 ttl=64 time=1.02 ms 64 bytes from 192.51.0.2: icmp_seq=2 ttl=64 time=1.37 ms 64 bytes from 192.51.0.2: icmp_seq=3 ttl=64 time=1.19 ms --- 192.51.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms [26-06-02 09:48:10][ASSERT#0033][OK] cost=2.072s [26-06-02 09:48:10][ASSERT#0034][match] at cases/switch_route3.sh:122 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 10.251.0.11" expect="bytes from" PING 10.251.0.11 (10.251.0.11) 56(84) bytes of data. 64 bytes from 10.251.0.11: icmp_seq=1 ttl=64 time=0.888 ms 64 bytes from 10.251.0.11: icmp_seq=2 ttl=64 time=2.42 ms 64 bytes from 10.251.0.11: icmp_seq=3 ttl=64 time=1.82 ms --- 10.251.0.11 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2045ms [26-06-02 09:48:12][ASSERT#0034][OK] cost=2.112s [26-06-02 09:48:12][ASSERT#0035][match] at cases/switch_route3.sh:123 fn=test_route_once retry=25 cmd="docker exec tests-sw-route3 ping -c 3 10.251.0.12" expect="bytes from" PING 10.251.0.12 (10.251.0.12) 56(84) bytes of data. 64 bytes from 10.251.0.12: icmp_seq=1 ttl=64 time=0.491 ms 64 bytes from 10.251.0.12: icmp_seq=2 ttl=64 time=0.986 ms 64 bytes from 10.251.0.12: icmp_seq=3 ttl=64 time=1.29 ms --- 10.251.0.12 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2043ms [26-06-02 09:48:14][ASSERT#0035][OK] cost=2.106s [26-06-02 09:48:15] END switch_route3 status=PASS cost=36.776s