[26-06-02 09:48:15] START switch_tcp scenario: cases/switch_tcp.sh header : build two switches and verify tcp output connectivity topology: sw1 192.41.0.1; | TCP output | TCP output; sw2 192.41.0.2 sw3 192.41.0.3; then sw3 output is moved from sw1 to sw2 topology: # Topology: topology: # - Diagram: topology: # sw1 192.41.0.1 topology: # ^ ^ topology: # | TCP output | TCP output topology: # sw2 192.41.0.2 sw3 192.41.0.3 topology: # then sw3 output is moved from sw1 to sw2 topology: # - Docker mgmt network: 172.255.0.0/24 topology: # sw1=172.255.0.241, sw2=172.255.0.242, sw3=172.255.0.243. topology: # - OpenLAN service network "example": 192.41.0.0/24 topology: # sw1=192.41.0.1, sw2=192.41.0.2, sw3=192.41.0.3. topology: # - Forwarding links: topology: # sw2 -> sw1 first, sw3 -> sw1 first, then sw3 -> sw2. topology: # Validation: topology: # (see scenario assertions in this case) Started switch pause container: tests-sw1-pause Started switch frr container: tests-sw1-frr Started switch ipsec container: tests-sw1-ipsec Started switch container: tests-sw1 [26-06-02 09:48:16][ASSERT#0001][expect] at cases/switch_tcp.sh:54 fn=setup_sw1 retry=30 cmd="docker logs -f tests-sw1" expect="Http.Start" 2026/06/02 09:48:17 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:48:17 INFO|root|Wait: ... 2026/06/02 09:48:17 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:48:17 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:48:17][ASSERT#0001][OK] cost=1.033s [26-06-02 09:48:17][ASSERT#0002][cmd] at cases/switch_tcp.sh:57 fn=setup_sw1 cmd="docker exec tests-sw1 openlan network --name example add --address 192.41.0.1/24" [26-06-02 09:48:17][ASSERT#0002][OK] cost=0.239s [26-06-02 09:48:17][ASSERT#0003][match] at cases/switch_tcp.sh:58 fn=setup_sw1 retry=1 cmd="docker exec tests-sw1 openlan network ls" expect="name: example" bridge: address: 192.41.0.1/24 name: br-example name: example snat: enable subnet: netmask: 255.255.255.0 name: example openvpnStatus: disabled - config: name: ipsec [26-06-02 09:48:17][ASSERT#0003][OK] cost=0.060s [26-06-02 09:48:17][ASSERT#0004][cmd] at cases/switch_tcp.sh:60 fn=setup_sw1 cmd="docker exec tests-sw1 openlan user add --name t1@example --password 123456" # total 1 username password role lease t1@example 123456 guest 2027-06-02T09 [26-06-02 09:48:17][ASSERT#0004][OK] cost=0.069s Started switch pause container: tests-sw2-pause Started switch frr container: tests-sw2-frr Started switch ipsec container: tests-sw2-ipsec Started switch container: tests-sw2 [26-06-02 09:48:18][ASSERT#0005][expect] at cases/switch_tcp.sh:80 fn=setup_sw2 retry=30 cmd="docker logs -f tests-sw2" expect="Http.Start" 2026/06/02 09:48:19 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:48:19 INFO|root|Wait: ... 2026/06/02 09:48:19 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:48:19 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:48:19][ASSERT#0005][OK] cost=1.030s [26-06-02 09:48:19][ASSERT#0006][cmd] at cases/switch_tcp.sh:83 fn=setup_sw2 cmd="docker exec tests-sw2 openlan network --name example add --address 192.41.0.2/24" [26-06-02 09:48:20][ASSERT#0006][OK] cost=0.245s [26-06-02 09:48:20][ASSERT#0007][cmd] at cases/switch_tcp.sh:85 fn=setup_sw2 cmd="docker exec tests-sw2 openlan user add --name t1@example --password 123456" # total 1 username password role lease t1@example 123456 guest 2027-06-02T09 [26-06-02 09:48:20][ASSERT#0007][OK] cost=0.067s [26-06-02 09:48:20][ASSERT#0008][cmd] at cases/switch_tcp.sh:88 fn=setup_sw2 cmd="docker exec tests-sw2 openlan network --name example output add --remote 172.255.0.241 --protocol tcp --secret t1:123456 --crypt aes-128:password" [26-06-02 09:48:20][ASSERT#0008][OK] cost=0.066s [26-06-02 09:48:20][ASSERT#0009][cmd] at cases/switch_tcp.sh:89 fn=setup_sw2 cmd="docker exec tests-sw2 openlan network --name example output ls" - aliveTime: 0 crypt: aes-128:password device: "" network: example protocol: tcp remote: 172.255.0.241 secret: t1:123456 [26-06-02 09:48:20][ASSERT#0009][OK] cost=0.055s Started switch pause container: tests-sw3-pause Started switch frr container: tests-sw3-frr Started switch ipsec container: tests-sw3-ipsec Started switch container: tests-sw3 [26-06-02 09:48:20][ASSERT#0010][expect] at cases/switch_tcp.sh:110 fn=setup_sw3 retry=30 cmd="docker logs -f tests-sw3" expect="Http.Start" 2026/06/02 09:48:21 INFO|root|Wait: ... 2026/06/02 09:48:21 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:48:21 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:48:21 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:48:21][ASSERT#0010][OK] cost=1.023s [26-06-02 09:48:21][ASSERT#0011][cmd] at cases/switch_tcp.sh:113 fn=setup_sw3 cmd="docker exec tests-sw3 openlan network --name example add --address 192.41.0.3/24" [26-06-02 09:48:22][ASSERT#0011][OK] cost=0.251s [26-06-02 09:48:22][ASSERT#0012][cmd] at cases/switch_tcp.sh:115 fn=setup_sw3 cmd="docker exec tests-sw3 openlan network --name example output add --remote 172.255.0.241 --protocol tcp --secret t1:123456 --crypt aes-128:ea64d5b0c96c" [26-06-02 09:48:22][ASSERT#0012][OK] cost=0.065s [26-06-02 09:48:22][ASSERT#0013][cmd] at cases/switch_tcp.sh:116 fn=setup_sw3 cmd="docker exec tests-sw3 openlan network --name example output ls" - aliveTime: 0 crypt: aes-128:ea64d5b0c96c device: "" network: example protocol: tcp remote: 172.255.0.241 secret: t1:123456 [26-06-02 09:48:22][ASSERT#0013][OK] cost=0.067s [26-06-02 09:48:22][ASSERT#0014][match] at cases/switch_tcp.sh:120 fn=test_ping_before_sw3_sw2_output retry=15 cmd="docker exec tests-sw2 ping -c 3 192.41.0.1" expect="bytes from" PING 192.41.0.1 (192.41.0.1) 56(84) bytes of data. 64 bytes from 192.41.0.1: icmp_seq=1 ttl=64 time=2039 ms 64 bytes from 192.41.0.1: icmp_seq=2 ttl=64 time=1027 ms 64 bytes from 192.41.0.1: icmp_seq=3 ttl=64 time=2.54 ms --- 192.41.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2037ms [26-06-02 09:48:24][ASSERT#0014][OK] cost=2.109s [26-06-02 09:48:24][ASSERT#0015][unmatch] at cases/switch_tcp.sh:121 fn=test_ping_before_sw3_sw2_output retry=3 cmd="docker exec tests-sw3 ping -c 3 192.41.0.1" unexpected="bytes from" Last output: PING 192.41.0.1 (192.41.0.1) 56(84) bytes of data. From 192.41.0.3 icmp_seq=1 Destination Host Unreachable From 192.41.0.3 icmp_seq=2 Destination Host Unreachable From 192.41.0.3 icmp_seq=3 Destination Host Unreachable --- 192.41.0.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2073ms pipe 3 [26-06-02 09:48:36][ASSERT#0015][OK] cost=12.450s [26-06-02 09:48:36][ASSERT#0016][cmd] at cases/switch_tcp.sh:134 fn=test_ping cmd="docker exec tests-sw3 openlan network --name example output add --remote 172.255.0.242 --protocol tcp --secret t1:123456 --crypt aes-128:ea64d5b0c96c" [26-06-02 09:48:37][ASSERT#0016][OK] cost=0.076s [26-06-02 09:48:37][ASSERT#0017][match] at cases/switch_tcp.sh:135 fn=test_ping retry=15 cmd="docker exec tests-sw3 openlan network --name example output ls" expect="state: authenticated" protocol: tcp remote: 172.255.0.242 secret: t1:123456 state: authenticated [26-06-02 09:48:39][ASSERT#0017][OK] cost=2.209s [26-06-02 09:48:39][ASSERT#0018][match] at cases/switch_tcp.sh:125 fn=test_ping_after_sw3_sw2_output retry=15 cmd="docker exec tests-sw2 ping -c 3 192.41.0.2" expect="bytes from" PING 192.41.0.2 (192.41.0.2) 56(84) bytes of data. 64 bytes from 192.41.0.2: icmp_seq=1 ttl=64 time=0.075 ms 64 bytes from 192.41.0.2: icmp_seq=2 ttl=64 time=0.122 ms 64 bytes from 192.41.0.2: icmp_seq=3 ttl=64 time=0.120 ms --- 192.41.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2067ms [26-06-02 09:48:41][ASSERT#0018][OK] cost=2.132s [26-06-02 09:48:41][ASSERT#0019][match] at cases/switch_tcp.sh:126 fn=test_ping_after_sw3_sw2_output retry=15 cmd="docker exec tests-sw2 ping -c 3 192.41.0.3" expect="bytes from" PING 192.41.0.3 (192.41.0.3) 56(84) bytes of data. 64 bytes from 192.41.0.3: icmp_seq=1 ttl=64 time=0.905 ms 64 bytes from 192.41.0.3: icmp_seq=2 ttl=64 time=1.18 ms 64 bytes from 192.41.0.3: icmp_seq=3 ttl=64 time=1.34 ms --- 192.41.0.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2013ms [26-06-02 09:48:43][ASSERT#0019][OK] cost=2.083s [26-06-02 09:48:43][ASSERT#0020][cmd] at cases/switch_tcp.sh:138 fn=test_ping cmd="docker exec tests-sw1 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:475 ... PID 475 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:48:44][ASSERT#0020][OK] cost=1.067s [26-06-02 09:48:44][ASSERT#0021][cmd] at cases/switch_tcp.sh:139 fn=test_ping cmd="docker exec tests-sw2 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:514 ... PID 514 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:48:45][ASSERT#0021][OK] cost=1.067s [26-06-02 09:48:45][ASSERT#0022][cmd] at cases/switch_tcp.sh:140 fn=test_ping cmd="docker exec tests-sw3 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:558 ... PID 558 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:48:46][ASSERT#0022][OK] cost=1.072s [26-06-02 09:48:46][ASSERT#0023][cmd] at cases/switch_tcp.sh:142 fn=test_ping cmd="docker exec tests-sw2 ip neigh flush dev hi-example" [26-06-02 09:48:46][ASSERT#0023][OK] cost=0.064s [26-06-02 09:48:46][ASSERT#0024][match] at cases/switch_tcp.sh:125 fn=test_ping_after_sw3_sw2_output retry=15 cmd="docker exec tests-sw2 ping -c 3 192.41.0.2" expect="bytes from" PING 192.41.0.2 (192.41.0.2) 56(84) bytes of data. 64 bytes from 192.41.0.2: icmp_seq=1 ttl=64 time=0.081 ms 64 bytes from 192.41.0.2: icmp_seq=2 ttl=64 time=0.139 ms 64 bytes from 192.41.0.2: icmp_seq=3 ttl=64 time=0.105 ms --- 192.41.0.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2026ms [26-06-02 09:48:48][ASSERT#0024][OK] cost=2.092s [26-06-02 09:48:48][ASSERT#0025][match] at cases/switch_tcp.sh:126 fn=test_ping_after_sw3_sw2_output retry=15 cmd="docker exec tests-sw2 ping -c 3 192.41.0.3" expect="bytes from" PING 192.41.0.3 (192.41.0.3) 56(84) bytes of data. 64 bytes from 192.41.0.3: icmp_seq=1 ttl=64 time=1046 ms 64 bytes from 192.41.0.3: icmp_seq=2 ttl=64 time=1.50 ms 64 bytes from 192.41.0.3: icmp_seq=3 ttl=64 time=0.999 ms --- 192.41.0.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2045ms [26-06-02 09:48:55][ASSERT#0025][OK] cost=6.244s [26-06-02 09:48:55][ASSERT#0026][cmd] at cases/switch_tcp.sh:148 fn=test_ping cmd="docker exec tests-sw3 openlan network --name example output rm --device tcp:172.255.0.242:t1" [26-06-02 09:48:55][ASSERT#0026][OK] cost=0.072s [26-06-02 09:48:55][ASSERT#0027][unmatch] at cases/switch_tcp.sh:149 fn=test_ping retry=20 cmd="docker exec tests-sw2 ping -c 3 192.41.0.3" unexpected="bytes from" Last output: PING 192.41.0.3 (192.41.0.3) 56(84) bytes of data. From 192.41.0.2 icmp_seq=1 Destination Host Unreachable From 192.41.0.2 icmp_seq=2 Destination Host Unreachable From 192.41.0.2 icmp_seq=3 Destination Host Unreachable --- 192.41.0.3 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2067ms pipe 3 [26-06-02 09:50:45][ASSERT#0027][OK] cost=110.066s [26-06-02 09:50:45] END switch_tcp status=PASS cost=150.312s