TEST REPORT

SUMMARY

Description               "scenario_ospf_redistribute_rip" result report

Start Time                   2026-10-03T09:14:03.133680

Index Scenario Time Stamp Pass/Fail
1 Print Topology Image 09:15:13 1 / 0
2 Session Check 09:15:13 6 / 0
3 Assign IP Address 09:15:13 26 / 0
4 Running OSPFD through BGP Container 09:18:06 5 / 0
5 Setup OSPF router for Backbone Area Set 09:18:34 16 / 0
6 Setup OSPF router for Non Backbone Area Set 09:20:42 17 / 0

SESSIONS

Name Connection Type Host Address Port Login User
H-1ssh10.250.0.10122ubuntu
R-1ssh10.250.0.5122admin
R-2ssh10.250.0.5222admin
R-3ssh10.250.0.5322admin
R-4ssh10.250.0.5422admin
R-5ssh10.250.0.5522admin

RESULT

Index Action Session Time Stamp Pass/Fail
1 print topo img caller 09:15:13 Pass
Parameter topo-L3-ospf.jpg
Response /data/NetAutoTestFW/tests/converter_report/topology_img/topo-L3-ospf.jpg
 
2 session check R-1 R-1 09:15:13 Pass
Parameter None
Response Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
You are on
____ ___ _ _ _ ____
/ ___| / _ \| \ | (_)/ ___|
\___ \| | | | \| | | |
___) | |_| | |\ | | |___
|____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help: https://sonic-net.github.io/SONiC/

Last login: Sat Oct 3 08:54:21 2026 from 10.250.0.1

admin@R-1:~$
3 session check R-2 R-2 09:15:13 Pass
Parameter None
Response Linux R-2 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
You are on
____ ___ _ _ _ ____
/ ___| / _ \| \ | (_)/ ___|
\___ \| | | | \| | | |
___) | |_| | |\ | | |___
|____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help: https://sonic-net.github.io/SONiC/

Last login: Sat Oct 3 08:54:25 2026 from 10.250.0.1

admin@R-2:~$
4 session check R-3 R-3 09:15:13 Pass
Parameter None
Response Linux R-3 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
You are on
____ ___ _ _ _ ____
/ ___| / _ \| \ | (_)/ ___|
\___ \| | | | \| | | |
___) | |_| | |\ | | |___
|____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help: https://sonic-net.github.io/SONiC/

Last login: Sat Oct 3 08:54:27 2026 from 10.250.0.1

admin@R-3:~$
5 session check R-4 R-4 09:15:13 Pass
Parameter None
Response Linux R-4 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
You are on
____ ___ _ _ _ ____
/ ___| / _ \| \ | (_)/ ___|
\___ \| | | | \| | | |
___) | |_| | |\ | | |___
|____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help: https://sonic-net.github.io/SONiC/

Last login: Sat Oct 3 08:54:28 2026 from 10.250.0.1

admin@R-4:~$
6 session check R-5 R-5 09:15:13 Pass
Parameter None
Response Linux R-5 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
You are on
____ ___ _ _ _ ____
/ ___| / _ \| \ | (_)/ ___|
\___ \| | | | \| | | |
___) | |_| | |\ | | |___
|____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help: https://sonic-net.github.io/SONiC/

Last login: Sat Oct 3 08:54:31 2026 from 10.250.0.1

admin@R-5:~$
7 session check H-1 H-1 09:15:13 Pass
Parameter None
Response Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro

System information as of Sat Oct 3 00:15:04 UTC 2026

System load: 0.0 Processes: 143
Usage of /: 10.2% of 19.20GB Users logged in: 0
Memory usage: 7% IPv4 address for mgmt: 10.250.0.101
Swap usage: 0%

* Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support
on 31 May 2025.

For more details see:
https://ubuntu.com/20-04

Expanded Security Maintenance for Infrastructure is not enabled.

40 updates can be applied immediately.
30 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

175 additional security updates can be applied with ESM Infra.
Learn more about enabling ESM Infra service for Ubuntu 20.04 at
https://ubuntu.com/20-04

New release '22.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


*** System restart required ***
Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1

ubuntu@H-1:~$
 
8 Assign IP Address R-1 09:15:13 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &"
Response
2026/10/03 09:15:10 RIP: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

9 Assign IP Address R-1 09:15:20 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &"
Response
2026/10/03 09:15:18 ISIS: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

10 Assign IP Address R-1 09:15:28 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"
Response
2026/10/03 09:15:25 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

11 Assign IP Address R-1 09:15:35 Pass
Parameter ~$ sudo config interface ip add Ethernet0 21.1.1.2/24
Response Success
12 Assign IP Address R-1 09:15:41 Pass
Parameter ~$ sudo config interface ip add Ethernet4 30.1.1.2/24
Response Success
13 Assign IP Address R-1 09:15:46 Pass
Parameter ~$ sudo config interface ip add Ethernet8 20.1.1.2/24
Response Success
14 Assign IP Address R-2 09:15:52 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &"
Response
2026/10/03 09:15:51 RIP: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

15 Assign IP Address R-2 09:16:00 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &"
Response
2026/10/03 09:15:58 ISIS: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

16 Assign IP Address R-2 09:16:07 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"
Response
2026/10/03 09:16:05 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

17 Assign IP Address R-2 09:16:14 Pass
Parameter ~$ sudo config interface ip add Ethernet0 22.1.1.4/24
Response Success
18 Assign IP Address R-2 09:16:20 Pass
Parameter ~$ sudo config interface ip add Ethernet4 30.1.1.4/24
Response Success
19 Assign IP Address R-3 09:16:26 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &"
Response
2026/10/03 09:16:24 RIP: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

20 Assign IP Address R-3 09:16:33 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &"
Response
2026/10/03 09:16:32 ISIS: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

21 Assign IP Address R-3 09:16:41 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"
Response
2026/10/03 09:16:39 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

22 Assign IP Address R-3 09:16:48 Pass
Parameter ~$ sudo config interface ip add Ethernet0 20.1.1.3/24
Response Success
23 Assign IP Address R-3 09:16:54 Pass
Parameter ~$ sudo config interface ip add Ethernet4 10.0.100.1/24
Response Success
24 Assign IP Address R-4 09:16:59 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &"
Response
2026/10/03 09:16:57 RIP: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

25 Assign IP Address R-4 09:17:07 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &"
Response
2026/10/03 09:17:05 ISIS: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

26 Assign IP Address R-4 09:17:14 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"
Response
2026/10/03 09:17:12 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

27 Assign IP Address R-4 09:17:22 Pass
Parameter ~$ sudo config interface ip add Ethernet0 22.1.1.11/24
Response Success
28 Assign IP Address R-4 09:17:27 Pass
Parameter ~$ sudo config interface ip add Ethernet4 50.1.1.2/24
Response Success
29 Assign IP Address R-5 09:17:33 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &"
Response
2026/10/03 09:17:32 RIP: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

30 Assign IP Address R-5 09:17:40 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &"
Response
2026/10/03 09:17:39 ISIS: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

31 Assign IP Address R-5 09:17:48 Pass
Parameter ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"
Response
2026/10/03 09:17:47 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
Judgement Success

inter-conditional operator : and

32 Assign IP Address R-5 09:17:55 Pass
Parameter ~$ sudo config interface ip add Ethernet0 50.1.1.3/24
Response Success
33 Assign IP Address R-5 09:18:01 Pass
Parameter ~$ sudo config interface ip add Ethernet4 40.0.100.1/24
Response Success
 
34 Running OSPFD through BGP Container R-1 09:18:06 Pass
Parameter ~$ docker exec -i bgp bash -c "cd /usr/lib/frr && ./ospfd &"
Response
2026/10/03 09:18:04 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
2026/10/03 09:18:04 OSPF: [NTCMZ-C8X80][EC 100663303] Could not lock pid_file /var/run/frr/ospfd.pid (Resource temporarily unavailable), exiting. Please ensure that the daemon is not already running
Judgement Success

inter-conditional operator : and
contain string: OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.
35 Running OSPFD through BGP Container R-2 09:18:12 Pass
Parameter ~$ docker exec -i bgp bash -c "cd /usr/lib/frr && ./ospfd &"
Response
2026/10/03 09:18:11 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
2026/10/03 09:18:11 OSPF: [NTCMZ-C8X80][EC 100663303] Could not lock pid_file /var/run/frr/ospfd.pid (Resource temporarily unavailable), exiting. Please ensure that the daemon is not already running
Judgement Success

inter-conditional operator : and
contain string: OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.
36 Running OSPFD through BGP Container R-3 09:18:18 Pass
Parameter ~$ docker exec -i bgp bash -c "cd /usr/lib/frr && ./ospfd &"
Response
2026/10/03 09:18:16 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
2026/10/03 09:18:16 OSPF: [NTCMZ-C8X80][EC 100663303] Could not lock pid_file /var/run/frr/ospfd.pid (Resource temporarily unavailable), exiting. Please ensure that the daemon is not already running
Judgement Success

inter-conditional operator : and
contain string: OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.
37 Running OSPFD through BGP Container R-4 09:18:23 Pass
Parameter ~$ docker exec -i bgp bash -c "cd /usr/lib/frr && ./ospfd &"
Response
2026/10/03 09:18:21 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
2026/10/03 09:18:21 OSPF: [NTCMZ-C8X80][EC 100663303] Could not lock pid_file /var/run/frr/ospfd.pid (Resource temporarily unavailable), exiting. Please ensure that the daemon is not already running
Judgement Success

inter-conditional operator : and
contain string: OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.
38 Running OSPFD through BGP Container R-5 09:18:29 Pass
Parameter ~$ docker exec -i bgp bash -c "cd /usr/lib/frr && ./ospfd &"
Response
2026/10/03 09:18:28 OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large. Is this what you intended? Consider using --limit-fds also limiting size to 100000
2026/10/03 09:18:28 OSPF: [NTCMZ-C8X80][EC 100663303] Could not lock pid_file /var/run/frr/ospfd.pid (Resource temporarily unavailable), exiting. Please ensure that the daemon is not already running
Judgement Success

inter-conditional operator : and
contain string: OSPF: [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.
 
39 Setup ospf router for Backbone Area Set R-1 09:18:34 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "ospf router-id 30.1.1.2" -c "network 20.1.1.0/24 area 0" -c "network 30.1.1.0/24 area 0" -c "end"
Response Success
40 Setup ospf router for Backbone Area Set R-2 09:18:40 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "ospf router-id 30.1.1.4" -c "network 30.1.1.0/24 area 0" -c "end"
Response Success
41 Setup ospf router for Backbone Area Set R-3 09:18:45 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "ospf router-id 20.1.1.3" -c "network 20.1.1.0/24 area 0" -c "end"
Response Success
42 Check Settings for Backbone Area Set R-1 09:18:50 Pass
Parameter ~$ vtysh -c "show ip ospf neighbor"
Response
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
20.1.1.3 1 Init/DROther 5.420s 34.579s 20.1.1.3 Ethernet8:20.1.1.2 0 0 0
30.1.1.4 1 2-Way/DROther 0.832s 39.166s 30.1.1.4 Ethernet4:30.1.1.2 0 0 0
Judgement Success

inter-conditional operator : and
contain string: 20.1.1.3 1
contain string: 30.1.1.4 1
43 Check Settings for Backbone Area Set R-1 09:18:56 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N 20.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet8
N 30.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet4

============ OSPF router routing table =============

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N 20.1.1.0/24
contain string: N 30.1.1.0/24
44 Check Settings for Backbone Area Set R-1 09:19:01 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (30.1.1.2)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 6 0x80000003 0x3483 1
30.1.1.2 30.1.1.2 6 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 15 0x80000003 0x1e6c 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 6 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 16 0x80000001 0x19b2
Judgement Success

inter-conditional operator : and
contain string: 20.1.1.3 20.1.1.3
contain string: 30.1.1.2 30.1.1.2
contain string: 30.1.1.4 30.1.1.4
45 Check Settings for Backbone Area Set R-2 09:19:41 Pass
Parameter ~$ vtysh -c "show ip ospf neighbor"
Response
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
30.1.1.2 1 Full/Backup 21.371s 33.171s 30.1.1.2 Ethernet4:30.1.1.4 0 0 0
Judgement Success

inter-conditional operator : and
contain string: 30.1.1.2 1
46 Check Settings for Backbone Area Set R-2 09:19:46 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N 20.1.1.0/24 [20000] area: 0.0.0.0
via 30.1.1.2, Ethernet4
N 30.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet4

============ OSPF router routing table =============

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N 20.1.1.0/24
47 Check Settings for Backbone Area Set R-2 09:19:52 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (30.1.1.4)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 23 0x80000003 0x3483 1
30.1.1.2 30.1.1.2 23 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 32 0x80000003 0x1e6c 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 23 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 32 0x80000001 0x19b2
Judgement Success

inter-conditional operator : and
contain string: 20.1.1.3 20.1.1.3
contain string: 30.1.1.2 30.1.1.2
contain string: 30.1.1.4 30.1.1.4
48 Check Settings for Backbone Area Set R-2 09:19:57 Pass
Parameter ~$ show ip route
Response Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route

C>*10.250.0.0/24 is directly connected, eth0, 00:12:36
O>*20.1.1.0/24 [110/20000] via 30.1.1.2, Ethernet4, 00:00:33
C>*22.1.1.0/24 is directly connected, Ethernet0, 00:03:43
K 22.1.1.0/24 [0/0] is directly connected, Ethernet0, 00:03:43
O 30.1.1.0/24 [110/10000] is directly connected, Ethernet4, 00:01:18
C>*30.1.1.0/24 is directly connected, Ethernet4, 00:03:37
K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:12:36
Judgement Success

inter-conditional operator : and
contain string: O>*20.1.1.0/24
49 Check Settings for Backbone Area Set R-2 09:20:03 Pass
Parameter ~$ ping -c 4 20.1.1.3
Response PING 20.1.1.3 (20.1.1.3) 56(84) bytes of data.
64 bytes from 20.1.1.3: icmp_seq=1 ttl=63 time=2.22 ms
64 bytes from 20.1.1.3: icmp_seq=2 ttl=63 time=1.77 ms
64 bytes from 20.1.1.3: icmp_seq=3 ttl=63 time=1.71 ms
64 bytes from 20.1.1.3: icmp_seq=4 ttl=63 time=1.57 ms

--- 20.1.1.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 1.567/1.816/2.218/0.243 ms
Judgement Success

inter-conditional operator : and
contain string: bytes from 20.1.1.3
50 Check Settings for Backbone Area Set R-3 09:20:11 Pass
Parameter ~$ vtysh -c "show ip ospf neighbor"
Response
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
30.1.1.2 1 Full/DR 42.146s 32.855s 20.1.1.2 Ethernet0:20.1.1.3 0 0 0
Judgement Success

inter-conditional operator : and
contain string: 30.1.1.2 1
51 Check Settings for Backbone Area Set R-3 09:20:17 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N 20.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet0
N 30.1.1.0/24 [20000] area: 0.0.0.0
via 20.1.1.2, Ethernet0

============ OSPF router routing table =============

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N 20.1.1.0/24
contain string: 30.1.1.0/24
52 Check Settings for Backbone Area Set R-3 09:20:22 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (20.1.1.3)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 52 0x80000003 0x3483 1
30.1.1.2 30.1.1.2 52 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 62 0x80000003 0x1e6c 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 53 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 63 0x80000001 0x19b2
Judgement Success

inter-conditional operator : and
contain string: 20.1.1.3 20.1.1.3
contain string: 30.1.1.2 30.1.1.2
contain string: 30.1.1.4 30.1.1.4
53 Check Settings for Backbone Area Set R-3 09:20:28 Pass
Parameter ~$ show ip route
Response Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route

C>*10.0.100.0/24 is directly connected, Ethernet4, 00:03:34
C>*10.250.0.0/24 is directly connected, eth0, 00:11:15
O 20.1.1.0/24 [110/10000] is directly connected, Ethernet0, 00:00:59
C>*20.1.1.0/24 is directly connected, Ethernet0, 00:03:40
K 20.1.1.0/24 [0/0] is directly connected, Ethernet0, 00:03:40
O>*30.1.1.0/24 [110/20000] via 20.1.1.2, Ethernet0, 00:00:54
K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:11:15
Judgement Success

inter-conditional operator : and
contain string: O>*30.1.1.0/24
54 Check Settings for Backbone Area Set R-3 09:20:33 Pass
Parameter ~$ ping -c 4 30.1.1.4
Response PING 30.1.1.4 (30.1.1.4) 56(84) bytes of data.
64 bytes from 30.1.1.4: icmp_seq=1 ttl=63 time=1.85 ms
64 bytes from 30.1.1.4: icmp_seq=2 ttl=63 time=2.31 ms
64 bytes from 30.1.1.4: icmp_seq=3 ttl=63 time=2.28 ms
64 bytes from 30.1.1.4: icmp_seq=4 ttl=63 time=2.24 ms

--- 30.1.1.4 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 1.854/2.170/2.309/0.184 ms
Judgement Success

inter-conditional operator : and
contain string: bytes from 30.1.1.4
 
55 Setup ospf router for Non Backbone Area Set R-2 09:20:42 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "network 22.1.1.0/24 area 3000" -c "end"
Response Success
56 Setup ospf router for Non Backbone Area Set R-3 09:20:47 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "network 10.0.100.0/24 area 2000" -c "end"
Response Success
57 Setup ospf router for Non Backbone Area Set R-4 09:20:52 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "ospf router-id 50.1.1.2" -c "network 22.1.1.0/24 area 3000" -c "network 50.1.1.0/24 area 5000" -c "end"
Response Success
58 Setup ospf router for Non Backbone Area Set R-5 09:20:58 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "ospf router-id 50.1.1.3" -c "network 50.1.1.0/24 area 5000" -c "end"
Response Success
59 Setup virtual link R-2 R-2 09:21:04 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "area 3000 virtual-link 50.1.1.2" -c "end"
Response Success
60 Setup virtual link R-4 R-4 09:21:09 Pass
Parameter ~$ vtysh -c "configure" -c "router ospf" -c "area 3000 virtual-link 30.1.1.4" -c "end"
Response Success
61 Check Settings for Non Backbone Area Set R-1 09:21:15 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N IA 10.0.100.0/24 [20000] area: 0.0.0.0
via 20.1.1.3, Ethernet8
N 20.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet8
N IA 22.1.1.0/24 [20000] area: 0.0.0.0
via 30.1.1.4, Ethernet4
N 30.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet4

============ OSPF router routing table =============
R 20.1.1.3 [10000] area: 0.0.0.0, ABR
via 20.1.1.3, Ethernet8
R 30.1.1.4 [10000] area: 0.0.0.0, ABR
via 30.1.1.4, Ethernet4

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N IA 10.0.100.0/24
contain string: N IA 22.1.1.0/24
62 Check Settings for Non Backbone Area Set R-1 09:21:20 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (30.1.1.2)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 34 0x80000004 0x3580 1
30.1.1.2 30.1.1.2 110 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 39 0x80000004 0x1f69 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 110 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 121 0x80000001 0x19b2

Summary Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Route
10.0.100.0 20.1.1.3 34 0x80000001 0xc3da 10.0.100.0/24
22.1.1.0 30.1.1.4 39 0x80000001 0xffe9 22.1.1.0/24
Judgement Success

inter-conditional operator : and
contain string: 10.0.100.0 20.1.1.3
contain string: 22.1.1.0 30.1.1.4
63 Check Settings for Non Backbone Area Set R-1 09:21:25 Pass
Parameter ~$ show ip route
Response Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route

O>*10.0.100.0/24 [110/20000] via 20.1.1.3, Ethernet8, 00:00:39
C>*10.250.0.0/24 is directly connected, eth0, 00:15:55
O 20.1.1.0/24 [110/10000] is directly connected, Ethernet8, 00:02:52
C>*20.1.1.0/24 is directly connected, Ethernet8, 00:05:40
C>*21.1.1.0/24 is directly connected, Ethernet0, 00:05:51
O>*22.1.1.0/24 [110/20000] via 30.1.1.4, Ethernet4, 00:00:45
O 30.1.1.0/24 [110/10000] is directly connected, Ethernet4, 00:02:52
C>*30.1.1.0/24 is directly connected, Ethernet4, 00:05:45
K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:15:55
Judgement Success

inter-conditional operator : and
contain string: O>*10.0.100.0/24
contain string: O>*22.1.1.0/24
64 Check Settings for Non Backbone Area Set R-2 09:21:31 Pass
Parameter ~$ vtysh -c "show ip ospf neighbor"
Response
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
30.1.1.2 1 Full/Backup 2m11s 32.924s 30.1.1.2 Ethernet4:30.1.1.4 0 0 0
50.1.1.2 1 ExStart/DR 9.631s 31.390s 22.1.1.11 Ethernet0:22.1.1.4 0 0 0
Judgement Success

inter-conditional operator : and
contain string: 50.1.1.2 1
65 Check Settings for Non Backbone Area Set R-2 09:21:37 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N IA 10.0.100.0/24 [30000] area: 0.0.0.0
via 30.1.1.2, Ethernet4
N 20.1.1.0/24 [20000] area: 0.0.0.0
via 30.1.1.2, Ethernet4
N 22.1.1.0/24 [10000] area: 0.0.11.184
directly attached to Ethernet0
N 30.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet4

============ OSPF router routing table =============
R 20.1.1.3 [20000] area: 0.0.0.0, ABR
via 30.1.1.2, Ethernet4

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N IA 10.0.100.0/24
contain string: N 22.1.1.0/24
66 Check Settings for Non Backbone Area Set R-2 09:21:42 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (30.1.1.4)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 57 0x80000004 0x3580 1
30.1.1.2 30.1.1.2 133 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 4 0x80000006 0x1b6b 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 133 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 142 0x80000001 0x19b2

Summary Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Route
10.0.100.0 20.1.1.3 57 0x80000001 0xc3da 10.0.100.0/24
22.1.1.0 30.1.1.4 60 0x80000001 0xffe9 22.1.1.0/24

Router Link States (Area 0.0.11.184)

Link ID ADV Router Age Seq# CkSum Link count
30.1.1.4 30.1.1.4 9 0x80000005 0xd2bd 1
50.1.1.2 50.1.1.2 9 0x80000003 0x9ccb 1

Net Link States (Area 0.0.11.184)

Link ID ADV Router Age Seq# CkSum
22.1.1.11 50.1.1.2 10 0x80000001 0x673f

Summary Link States (Area 0.0.11.184)

Link ID ADV Router Age Seq# CkSum Route
10.0.100.0 30.1.1.4 55 0x80000001 0x65bf 10.0.100.0/24
20.1.1.0 30.1.1.4 60 0x80000001 0x1b99 20.1.1.0/24
30.1.1.0 30.1.1.4 60 0x80000001 0x974a 30.1.1.0/24
50.1.1.0 50.1.1.2 5 0x80000001 0xe9d1 50.1.1.0/24
Judgement Success

inter-conditional operator : and
contain string: 10.0.100.0 20.1.1.3
contain string: 22.1.1.0 30.1.1.4
67 Check Settings for Non Backbone Area Set R-2 09:21:48 Pass
Parameter ~$ show ip route
Response Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route

O>*10.0.100.0/24 [110/30000] via 30.1.1.2, Ethernet4, 00:01:00
C>*10.250.0.0/24 is directly connected, eth0, 00:14:26
O>*20.1.1.0/24 [110/20000] via 30.1.1.2, Ethernet4, 00:02:23
O 22.1.1.0/24 [110/10000] is directly connected, Ethernet0, 00:01:06
C>*22.1.1.0/24 is directly connected, Ethernet0, 00:05:33
K 22.1.1.0/24 [0/0] is directly connected, Ethernet0, 00:05:33
O 30.1.1.0/24 [110/10000] is directly connected, Ethernet4, 00:03:08
C>*30.1.1.0/24 is directly connected, Ethernet4, 00:05:27
K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:14:26
Judgement Success

inter-conditional operator : and
contain string: O>*10.0.100.0/24
68 Check Settings for Non Backbone Area Set R-3 09:21:53 Pass
Parameter ~$ vtysh -c "show ip ospf route"
Response ============ OSPF network routing table ============
N 10.0.100.0/24 [10000] area: 0.0.7.208
directly attached to Ethernet4
N 20.1.1.0/24 [10000] area: 0.0.0.0
directly attached to Ethernet0
N IA 22.1.1.0/24 [30000] area: 0.0.0.0
via 20.1.1.2, Ethernet0
N 30.1.1.0/24 [20000] area: 0.0.0.0
via 20.1.1.2, Ethernet0
N IA 50.1.1.0/24 [40000] area: 0.0.0.0
via 20.1.1.2, Ethernet0

============ OSPF router routing table =============
R 30.1.1.4 [20000] area: 0.0.0.0, ABR
via 20.1.1.2, Ethernet0
R 50.1.1.2 [30000] area: 0.0.0.0, ABR
via 20.1.1.2, Ethernet0

============ OSPF external routing table ===========
Judgement Success

inter-conditional operator : and
contain string: N 10.0.100.0/24
contain string: N IA 22.1.1.0/24
69 Check Settings for Non Backbone Area Set R-3 09:21:59 Pass
Parameter ~$ vtysh -c "show ip ospf database"
Response
OSPF Router with ID (20.1.1.3)

Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 71 0x80000004 0x3580 1
30.1.1.2 30.1.1.2 149 0x80000007 0xce47 2
30.1.1.4 30.1.1.4 13 0x80000007 0x9951 2
50.1.1.2 50.1.1.2 13 0x80000004 0xadb5 1

Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum
20.1.1.2 30.1.1.2 150 0x80000001 0x3fa5
30.1.1.4 30.1.1.4 160 0x80000001 0x19b2

Summary Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Route
10.0.100.0 20.1.1.3 71 0x80000001 0xc3da 10.0.100.0/24
22.1.1.0 30.1.1.4 79 0x80000001 0xffe9 22.1.1.0/24
22.1.1.0 50.1.1.2 24 0x80000001 0x5780 22.1.1.0/24
50.1.1.0 50.1.1.2 24 0x80000001 0xe9d1 50.1.1.0/24

Router Link States (Area 0.0.7.208)

Link ID ADV Router Age Seq# CkSum Link count
20.1.1.3 20.1.1.3 31 0x80000003 0x4236 1

Summary Link States (Area 0.0.7.208)

Link ID ADV Router Age Seq# CkSum Route
20.1.1.0 20.1.1.3 71 0x80000001 0x7a7c 20.1.1.0/24
22.1.1.0 20.1.1.3 71 0x80000001 0x6224 22.1.1.0/24
30.1.1.0 20.1.1.3 71 0x80000001 0xf8bc 30.1.1.0/24
50.1.1.0 20.1.1.3 6 0x80000001 0xf53d 50.1.1.0/24
Judgement Success

inter-conditional operator : and
contain string: 10.0.100.0 20.1.1.3
contain string: 22.1.1.0 30.1.1.4
70 Check Settings for Non Backbone Area Set R-3 09:22:04 Pass
Parameter ~$ show ip route
Response Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route

O 10.0.100.0/24 [110/10000] is directly connected, Ethernet4, 00:01:17
C>*10.0.100.0/24 is directly connected, Ethernet4, 00:05:10
C>*10.250.0.0/24 is directly connected, eth0, 00:12:51
O 20.1.1.0/24 [110/10000] is directly connected, Ethernet0, 00:02:35
C>*20.1.1.0/24 is directly connected, Ethernet0, 00:05:16
K 20.1.1.0/24 [0/0] is directly connected, Ethernet0, 00:05:16
O>*22.1.1.0/24 [110/30000] via 20.1.1.2, Ethernet0, 00:01:23
O>*30.1.1.0/24 [110/20000] via 20.1.1.2, Ethernet0, 00:02:30
O>*50.1.1.0/24 [110/40000] via 20.1.1.2, Ethernet0, 00:00:12
K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:12:51
Judgement Success

inter-conditional operator : and
contain string: O>*22.1.1.0/24
71 Check Settings for Non Backbone Area Set R-4 09:22:10 Pass
Parameter ~$ vtysh -c "show ip ospf neighbor"
Response
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL
30.1.1.4 1 Full/Backup 37.154s 31.827s 22.1.1.4 Ethernet0:22.1.1.11 0 0 0
50.1.1.3 1 Full/DR 31.451s 38.552s 50.1.1.3 Ethernet4:50.1.1.2 0 0 0
30.1.1.4 1 Full/DROther 22.150s 37.849s 22.1.1.4 VLINK0 0 0 0
Judgement Success

inter-conditional operator : and
contain string: 30.1.1.4 1
contain string: 50.1.1.3 1
 
Parameter AssertionError: Test failed after 10 retries for command: vtysh -c "show ip ospf route"
Cause duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>]
ubuntus = [<tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>]
vmhost = <tests.common.devices.vmhost.VMHost object at 0x7354f10b5460>
parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7354f1220fd0>
record_property = <function record_property.<locals>.append_property at 0x7354f12b0ee0>
reload_config = None
sonic_paramiko_ssh = (['R-1', 'R-2', 'R-3', 'R-4', 'R-5'], ['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02... https://sonic-net.github.io/SONiC/\r\n\r\nLast login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ '])
ubuntu_paramiko_ssh = (['H-1'], ['Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n\r\n * Documentation: https://help....n\r\n\r\n*** System restart required ***\r\nLast login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r\r\nubuntu@H-1:~$ '])

def test_scenario(duthosts, ubuntus, vmhost, parse_scenario, record_property, reload_config, sonic_paramiko_ssh, ubuntu_paramiko_ssh):
sonicHostname, sonic_ssh_prompt = sonic_paramiko_ssh
ubuntuHostname, ubuntu_ssh_prompt = ubuntu_paramiko_ssh
> run_scenario(duthosts, ubuntus, vmhost, parse_scenario, record_property, reload_config, sonicHostname, sonic_ssh_prompt, ubuntuHostname, ubuntu_ssh_prompt)

duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>]
parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7354f1220fd0>
record_property = <function record_property.<locals>.append_property at 0x7354f12b0ee0>
reload_config = None
sonicHostname = ['R-1', 'R-2', 'R-3', 'R-4', 'R-5']
sonic_paramiko_ssh = (['R-1', 'R-2', 'R-3', 'R-4', 'R-5'],
['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:21 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-1:~$ ',
'Linux R-2 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:25 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-2:~$ ',
'Linux R-3 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:27 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-3:~$ ',
'Linux R-4 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:28 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-4:~$ ',
'Linux R-5 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-5:~$ '])
sonic_ssh_prompt = ['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:21 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-1:~$ ',
'Linux R-2 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:25 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-2:~$ ',
'Linux R-3 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:27 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-3:~$ ',
'Linux R-4 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:28 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-4:~$ ',
'Linux R-5 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-5:~$ ']
ubuntuHostname = ['H-1']
ubuntu_paramiko_ssh = (['H-1'],
['Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n'
'\r\n'
' * Documentation: https://help.ubuntu.com\r\n'
' * Management: https://landscape.canonical.com\r\n'
' * Support: https://ubuntu.com/pro\r\n'
'\r\n'
' System information as of Sat Oct 3 00:15:04 UTC 2026\r\n'
'\r\n'
' System load: 0.0 Processes: 143\r\n'
' Usage of /: 10.2% of 19.20GB Users logged in: 0\r\n'
' Memory usage: 7% IPv4 address for mgmt: 10.250.0.101\r\n'
' Swap usage: 0%\r\n'
'\r\n'
' * Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support\r\n'
' on 31 May 2025.\r\n'
'\r\n'
' For more details see:\r\n'
' https://ubuntu.com/20-04\r\n'
'\r\n'
'Expanded Security Maintenance for Infrastructure is not enabled.\r\n'
'\r\n'
'40 updates can be applied immediately.\r\n'
'30 of these updates are standard security updates.\r\n'
'To see these additional updates run: apt list --upgradable\r\n'
'\r\n'
'175 additional security updates can be applied with ESM Infra.\r\n'
'Learn more about enabling ESM Infra service for Ubuntu 20.04 at\r\n'
'https://ubuntu.com/20-04\r\n'
'\r\n'
"New release '22.04.5 LTS' available.\r\n"
"Run 'do-release-upgrade' to upgrade to it.\r\n"
'\r\n'
'\r\n'
'*** System restart required ***\r\n'
'Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r'
'\r\n'
'ubuntu@H-1:~$ '])
ubuntu_ssh_prompt = ['Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n'
'\r\n'
' * Documentation: https://help.ubuntu.com\r\n'
' * Management: https://landscape.canonical.com\r\n'
' * Support: https://ubuntu.com/pro\r\n'
'\r\n'
' System information as of Sat Oct 3 00:15:04 UTC 2026\r\n'
'\r\n'
' System load: 0.0 Processes: 143\r\n'
' Usage of /: 10.2% of 19.20GB Users logged in: 0\r\n'
' Memory usage: 7% IPv4 address for mgmt: 10.250.0.101\r\n'
' Swap usage: 0%\r\n'
'\r\n'
' * Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support\r\n'
' on 31 May 2025.\r\n'
'\r\n'
' For more details see:\r\n'
' https://ubuntu.com/20-04\r\n'
'\r\n'
'Expanded Security Maintenance for Infrastructure is not enabled.\r\n'
'\r\n'
'40 updates can be applied immediately.\r\n'
'30 of these updates are standard security updates.\r\n'
'To see these additional updates run: apt list --upgradable\r\n'
'\r\n'
'175 additional security updates can be applied with ESM Infra.\r\n'
'Learn more about enabling ESM Infra service for Ubuntu 20.04 at\r\n'
'https://ubuntu.com/20-04\r\n'
'\r\n'
"New release '22.04.5 LTS' available.\r\n"
"Run 'do-release-upgrade' to upgrade to it.\r\n"
'\r\n'
'\r\n'
'*** System restart required ***\r\n'
'Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r'
'\r\n'
'ubuntu@H-1:~$ ']
ubuntus = [<tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>]
vmhost = <tests.common.devices.vmhost.VMHost object at 0x7354f10b5460>

test_sonic/test_sonic.py:413:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>]
ubuntus = [<tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>]
vmhost = <tests.common.devices.vmhost.VMHost object at 0x7354f10b5460>
parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7354f1220fd0>
record_property = <function record_property.<locals>.append_property at 0x7354f12b0ee0>
reload_config = None, sonicHostname = ['R-1', 'R-2', 'R-3', 'R-4', 'R-5']
sonic_ssh_prompt = ['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64\r\nYou are on\r\n ____ ___... https://sonic-net.github.io/SONiC/\r\n\r\nLast login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ ']
ubuntuHostname = ['H-1']
ubuntu_ssh_prompt = ['Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n\r\n * Documentation: https://help.ubuntu.com...\n\r\n\r\n*** System restart required ***\r\nLast login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r\r\nubuntu@H-1:~$ ']

def run_scenario(duthosts, ubuntus, vmhost, parse_scenario, record_property, reload_config, sonicHostname, sonic_ssh_prompt, ubuntuHostname, ubuntu_ssh_prompt):
duthost = duthosts
ubuntu = ubuntus
server = vmhost

logger.info('test device hostname: {}'.format(duthost.hostname))
logger.info('server hostname: {}'.format(server.hostname))

# Parsing Scenario data
scenario = parse_scenario
logger.info('step 0) scenario_data:\n{}'.format(scenario))

# This Section, parsed data save to variable for test
for keys in scenario:
scenario_name = keys['scenario_name']
logger.info('\nstep 1) scenario name:{}'.format(scenario_name))
record_property("Scenario_name","{}".format(scenario_name))
for tasks in keys['steps']:
sub_scenario_name = tasks['name']
if scenario_name == "Print Topology Image":
topo_img_path = tasks['img_path']
topo_img_name = tasks['img_name']
sum_img_path = topo_img_path + '/' + topo_img_name

start_time = datetime.now().strftime('%H:%M:%S')

assert sum_img_path, record_property("Fail", "Fail")

record_property('Action', sub_scenario_name)
record_property('Session','caller')
record_property('Time Stamp',start_time)
record_property('Pass/Fail','Pass')
record_property('Parameter',topo_img_name)
record_property('Response',sum_img_path)

elif scenario_name == "Session Check":
session_node_name = tasks['node']
logger.info('nodes: {}'.format(session_node_name))


device = sonicHostname + ubuntuHostname
ssh_prompt = sonic_ssh_prompt + ubuntu_ssh_prompt

for dev, ssh in zip(device, ssh_prompt):
if dev == session_node_name:
logger.info('step 1)\nHostname:\n{}\nnode name:\n{}'.format(dev, session_node_name))
logger.info('step 2)\nssh_prompt:\n{}'.format(ssh))

start_time = datetime.now().strftime('%H:%M:%S')

assert dev == session_node_name, record_property("Fail", "Fail")
logger.info('step 3)\n pass')
record_property("Action", sub_scenario_name)
record_property("Session","{}".format(dev))
record_property("Time Stamp",start_time)
record_property("Pass/Fail","Pass")
record_property("Parameter","None")
record_property("Response","{}".format(ssh))

elif 'source' in tasks and 'packet' in tasks:
# Duck-typing: If a step has 'source' and 'packet', it is a Traffic Generation test
logger.info('\nstep 1) Traffic Generation test detected: {}'.format(sub_scenario_name))
start_time = datetime.now().strftime('%H:%M:%S')
execute_traffic_step(tasks, duthost, ubuntu)

# If it successfully returns without assertion failure, we record PASS
record_property("Action", sub_scenario_name)
record_property("Session", tasks['source']['node'])
record_property("Time Stamp", start_time)
record_property("Pass/Fail", "Pass")
record_property("Parameter", "Snappi TRex Traffic ({} pkts)".format(tasks['packet']['tx_packets']))
record_property("Response", "Traffic validation succeeded")
record_property("Judgement", "Success")

else:
node_name = tasks['node']
logger.info('\nstep 1-1) sub scenario name: {}\nnode name: {}'.format(sub_scenario_name, node_name))

if 'template' in tasks:
import yaml
from jinja2 import Template

scenario_path = getattr(parse_scenario, 'scenario_filename', '')
if "bgp/" in scenario_path or "bgp_policy/" in scenario_path:
ip_profile = "bgp_ip"
elif "ospf_routemap_redistribute/" in scenario_path:
ip_profile = "ospf_redist_ip"
else:
ip_profile = "common_ip"

if "vlan/" in scenario_path or "lacp/" in scenario_path or "ip/" in scenario_path:
start_daemons = False
else:
start_daemons = True

try:
with open("/data/NetAutoTestFW/ansible/vsonic_vtb", "r") as f:
vtb = yaml.safe_load(f)
ip_map = vtb['all']['children']['sonic_r']['vars'].get(ip_profile, {})
target_ips = ip_map.get(node_name, [])
except Exception as e:
logger.error(f"Failed to load IP profile from vsonic_vtb: {e}")
target_ips = []

template_path = tasks['template']
with open(f"/data/NetAutoTestFW/{template_path}", "r") as f:
template_content = f.read()

rendered = Template(template_content).render(ip_list=target_ips, start_daemons=start_daemons)
cmds = [cmd.strip() for cmd in rendered.strip().split('\n') if cmd.strip() and not cmd.strip().startswith('#')]

tasks['actions'] = [{'command': cmd} for cmd in cmds]
tasks['expect'] = {'mode': 'and', 'values': [[] for _ in cmds]}
tasks['not_expect'] = {'mode': 'and', 'values': [[] for _ in cmds]}

sub_scenario_actions = tasks['actions']
sub_scenario_expect = tasks.get('expect', {'mode': 'and', 'values': []})
sub_scenario_not_expect = tasks.get('not_expect', {'mode': 'and', 'values': []})
sub_scenario_retries = tasks.get('retries', 5)
sub_scenario_delay = tasks.get('delay', 1)

sub_sce_exp_mode = sub_scenario_expect.get('mode', 'and')
sub_sce_exp_values = sub_scenario_expect.get('values', [])
sub_sce_not_exp_values = sub_scenario_not_expect.get('values', [])

logger.info('\nstep 1-2) sub scenario actions: {}\nsub scenario expect mode: {}\nsub scenario expect values: {}\nsub scenario not expect values: {}\nsub scenario retries: {}\nsub scenario delay: {}'.format(sub_scenario_actions, sub_sce_exp_mode, sub_sce_exp_values, sub_sce_not_exp_values, sub_scenario_retries, sub_scenario_delay))

# This Section, command execute to SONiC Test Device
for dut in duthost:
if node_name == dut.hostname:
for act_command, expect_values, not_expect_values in zip(sub_scenario_actions, sub_sce_exp_values, sub_sce_not_exp_values):
logger.info('\nstep 1-3) act command: {}\nexpect values: {}\nnot expect values: {}'.format(act_command, expect_values, not_expect_values))

single_command = act_command.get('command')
timestamps = datetime.now().strftime('%H:%M:%S')
contain_str = '\n'.join("contain string: {}".format(v) for v in expect_values)
not_contain_str = '\n'.join("not contain string: {}".format(n) for n in not_expect_values)

# trace success function
trace_success = False
output = ""

# This Section, repeat until the output contains the intended value.
for attempt in range(sub_scenario_retries):
execute_cmd = dut.shell(single_command, module_ignore_errors=True)
time.sleep(5)
stdout = execute_cmd.get('stdout', '')
stderr = execute_cmd.get('stderr', '')
output = stdout + '\n' + stderr
nomalized_lines = [' '.join(line.split()) for line in output.splitlines()]

logger.info('\nexecute command result:\n{}'.format(output))
logger.info('\nexpect value in result:\n{}'.format(expect_values))

import re
if 'neighbor' in single_command and 'remote-as' in single_command:
match = re.search(r'neighbor\s+([0-9\.]+)\s+remote-as', single_command)
if match:
neighbor_ip = match.group(1)
logger.info(f"[{node_name}] Auto Ping Verification to neighbor: {neighbor_ip}")
ping_result = dut.shell(f"ping {neighbor_ip} -c 3", module_ignore_errors=True)
logger.info(f"[{node_name}] Ping result:\n{ping_result.get('stdout', '')}")
if ping_result.get('rc', -1) != 0:
logger.warning(f"[{node_name}] Ping failed to {neighbor_ip}")

expect_ok = False

if not expect_values:
expect_ok = True
elif sub_sce_exp_mode == "and":
expect_ok = all(any(val in line for line in nomalized_lines) for val in expect_values)
elif sub_sce_exp_mode == "or":
expect_ok = any(any(val in line for line in nomalized_lines) for val in expect_values)

not_expect_ok = not not_expect_values or all(all(val not in line for line in nomalized_lines) for val in not_expect_values)

condition_met = expect_ok and not_expect_ok

if condition_met:
logger.info('The expected value is included in the printed result.\noutput:\n{}'.format(output))

trace_success = True

if isinstance(output, str) and output.strip():
if not_expect_values == "":
exist_only_expect_values(sub_scenario_name, node_name, timestamps, single_command, output, sub_sce_exp_mode, contain_str, record_property)
elif not_expect_values != "" and expect_values == "":
exist_only_not_expect_values(sub_scenario_name, node_name, timestamps, single_command, output, sub_sce_exp_mode, not_contain_str, record_property)
elif not_expect_values != "" and expect_values != "":
exist_not_expect_and_expect_values(sub_scenario_name, node_name, timestamps, single_command, output, sub_sce_exp_mode, contain_str, not_contain_str, record_property)
else:
empty_expect_and_not_expect_values(sub_scenario_name, node_name, timestamps, single_command, record_property)
break
else:
logger.info('Contidion not met. Retrying in {} seconds...(({}/{} attempts)'.format(sub_scenario_delay, attempt + 1, sub_scenario_retries))
time.sleep(sub_scenario_delay)
if not trace_success:
# If generated AssertionError when test failed
error_message = "Test failed after {} retries for command: {}".format(sub_scenario_retries, single_command)
logger.error(error_message)
logger.error("Final output was:\n{}".format(output))
> assert False, error_message
E AssertionError: Test failed after 10 retries for command: vtysh -c "show ip ospf route"

Template = <class 'jinja2.environment.Template'>
act_command = {'command': 'vtysh -c "show ip ospf route"'}
attempt = 9
cmds = ['docker exec -i bgp bash -c "/usr/lib/frr/ripd &"',
'docker exec -i bgp bash -c "/usr/lib/frr/isisd &"',
'docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"',
'sudo config interface ip add Ethernet0 50.1.1.3/24',
'sudo config interface ip add Ethernet4 40.0.100.1/24']
condition_met = False
contain_str = ('contain string: N IA 10.0.100.0/24\n'
'contain string: N IA 20.1.1.0/24\n'
'contain string: N 22.1.1.0/24\n'
'contain string: N IA 30.1.1.0/24\n'
'contain string: N 50.1.1.0/24')
dev = 'H-1'
device = ['R-1', 'R-2', 'R-3', 'R-4', 'R-5', 'H-1']
dut = <MultiAsicSonicHost R-4>
duthost = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>]
duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>]
error_message = 'Test failed after 10 retries for command: vtysh -c "show ip ospf route"'
execute_cmd = {'_ansible_no_log': None,
'changed': True,
'cmd': 'vtysh -c "show ip ospf route"',
'delta': '0:00:00.114208',
'end': '2026-10-03 09:24:32.686600',
'failed': False,
'invocation': {'module_args': {'_raw_params': 'vtysh -c "show ip ospf route"',
'_uses_shell': True,
'argv': None,
'chdir': None,
'creates': None,
'executable': None,
'removes': None,
'stdin': None,
'stdin_add_newline': True,
'strip_empty_ends': True,
'warn': False}},
'msg': '',
'rc': 0,
'start': '2026-10-03 09:24:32.572392',
'stderr': '',
'stderr_lines': [],
'stdout': '============ OSPF network routing table ============\n'
'N IA 10.0.100.0/24 [40000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 20.1.1.0/24 [30000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 22.1.1.0/24 [10000] area: 0.0.11.184\n'
' directly attached to Ethernet0\n'
'N 30.1.1.0/24 [20000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 50.1.1.0/24 [10000] area: 0.0.19.136\n'
' directly attached to Ethernet4\n'
'\n'
'============ OSPF router routing table =============\n'
'R 20.1.1.3 [30000] area: 0.0.0.0, ABR\n'
'R 30.1.1.4 [10000] area: 0.0.11.184, ABR\n'
' via 22.1.1.4, Ethernet0\n'
' [10000] area: 0.0.0.0, ABR\n'
'\n'
'============ OSPF external routing table ===========',
'stdout_lines': ['============ OSPF network routing table ============',
'N IA 10.0.100.0/24 [40000] area: 0.0.0.0',
' via 22.1.1.4, Ethernet0',
'N 20.1.1.0/24 [30000] area: 0.0.0.0',
' via 22.1.1.4, Ethernet0',
'N 22.1.1.0/24 [10000] area: 0.0.11.184',
' directly attached to Ethernet0',
'N 30.1.1.0/24 [20000] area: 0.0.0.0',
' via 22.1.1.4, Ethernet0',
'N 50.1.1.0/24 [10000] area: 0.0.19.136',
' directly attached to Ethernet4',
'',
'============ OSPF router routing table =============',
'R 20.1.1.3 [30000] area: 0.0.0.0, ABR',
'R 30.1.1.4 [10000] area: 0.0.11.184, ABR',
' via 22.1.1.4, Ethernet0',
' [10000] area: 0.0.0.0, ABR',
'',
'============ OSPF external routing table ===========']}
expect_ok = False
expect_values = ['N IA 10.0.100.0/24',
'N IA 20.1.1.0/24',
'N 22.1.1.0/24',
'N IA 30.1.1.0/24',
'N 50.1.1.0/24']
f = <_io.TextIOWrapper name='/data/NetAutoTestFW/tests/common/templates/common_setup.j2' mode='r' encoding='UTF-8'>
ip_map = {'R-1': [{'intf': 'Ethernet0', 'ip': '21.1.1.2/24'},
{'intf': 'Ethernet4', 'ip': '30.1.1.2/24'},
{'intf': 'Ethernet8', 'ip': '20.1.1.2/24'}],
'R-2': [{'intf': 'Ethernet0', 'ip': '22.1.1.4/24'},
{'intf': 'Ethernet4', 'ip': '30.1.1.4/24'}],
'R-3': [{'intf': 'Ethernet0', 'ip': '20.1.1.3/24'},
{'intf': 'Ethernet4', 'ip': '10.0.100.1/24'}],
'R-4': [{'intf': 'Ethernet0', 'ip': '22.1.1.11/24'},
{'intf': 'Ethernet4', 'ip': '50.1.1.2/24'}],
'R-5': [{'intf': 'Ethernet0', 'ip': '50.1.1.3/24'},
{'intf': 'Ethernet4', 'ip': '40.0.100.1/24'}],
'R-6': [{'intf': 'Ethernet0', 'ip': '21.1.1.3/24'},
{'intf': 'Ethernet4', 'ip': '10.0.100.3/24'}]}
ip_profile = 'common_ip'
keys = {'scenario_name': 'Setup OSPF router for Non Backbone Area Set',
'steps': [{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"network 22.1.1.0/24 area 3000" -c '
'"end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup ospf router for Non Backbone Area Set',
'node': 'R-2',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"network 10.0.100.0/24 area 2000" -c '
'"end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup ospf router for Non Backbone Area Set',
'node': 'R-3',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"ospf router-id 50.1.1.2" -c "network '
'22.1.1.0/24 area 3000" -c "network '
'50.1.1.0/24 area 5000" -c "end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup ospf router for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"ospf router-id 50.1.1.3" -c "network '
'50.1.1.0/24 area 5000" -c "end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup ospf router for Non Backbone Area Set',
'node': 'R-5',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"area 3000 virtual-link 50.1.1.2" -c '
'"end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup virtual link R-2',
'node': 'R-2',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "configure" -c "router ospf" -c '
'"area 3000 virtual-link 30.1.1.4" -c '
'"end"'}],
'expect': {'mode': 'and', 'values': [[]]},
'name': 'Setup virtual link R-4',
'node': 'R-4',
'not_expect': {'values': [[]]}},
{'actions': [{'command': 'vtysh -c "show ip ospf route"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['N IA 10.0.100.0/24', 'N IA 22.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-1',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf database"'}],
'delay': 6,
'expect': {'mode': 'and',
'values': [['10.0.100.0 20.1.1.3',
'22.1.1.0 30.1.1.4']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-1',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'show ip route'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['O>*10.0.100.0/24', 'O>*22.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-1',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf neighbor"'}],
'delay': 10,
'expect': {'mode': 'and', 'values': [['50.1.1.2 1']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-2',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf route"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['N IA 10.0.100.0/24', 'N 22.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-2',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf database"'}],
'delay': 6,
'expect': {'mode': 'and',
'values': [['10.0.100.0 20.1.1.3',
'22.1.1.0 30.1.1.4']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-2',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'show ip route'}],
'delay': 10,
'expect': {'mode': 'and', 'values': [['O>*10.0.100.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-2',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf route"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['N 10.0.100.0/24', 'N IA 22.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-3',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf database"'}],
'delay': 6,
'expect': {'mode': 'and',
'values': [['10.0.100.0 20.1.1.3',
'22.1.1.0 30.1.1.4']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-3',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'show ip route'}],
'delay': 10,
'expect': {'mode': 'and', 'values': [['O>*22.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-3',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf neighbor"'}],
'delay': 10,
'expect': {'mode': 'and', 'values': [['30.1.1.4 1', '50.1.1.3 1']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf route"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['N IA 10.0.100.0/24',
'N IA 20.1.1.0/24',
'N 22.1.1.0/24',
'N IA 30.1.1.0/24',
'N 50.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'vtysh -c "show ip ospf database"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['10.0.100.0 30.1.1.4',
'20.1.1.0 30.1.1.4',
'30.1.1.0 30.1.1.4']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]},
'retries': 10},
{'actions': [{'command': 'show ip route'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['O>*10.0.100.0/24',
'O>*20.1.1.0/24',
'O>*30.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]},
'retries': 10}]}
node_name = 'R-4'
nomalized_lines = ['============ OSPF network routing table ============',
'N IA 10.0.100.0/24 [40000] area: 0.0.0.0',
'via 22.1.1.4, Ethernet0',
'N 20.1.1.0/24 [30000] area: 0.0.0.0',
'via 22.1.1.4, Ethernet0',
'N 22.1.1.0/24 [10000] area: 0.0.11.184',
'directly attached to Ethernet0',
'N 30.1.1.0/24 [20000] area: 0.0.0.0',
'via 22.1.1.4, Ethernet0',
'N 50.1.1.0/24 [10000] area: 0.0.19.136',
'directly attached to Ethernet4',
'',
'============ OSPF router routing table =============',
'R 20.1.1.3 [30000] area: 0.0.0.0, ABR',
'R 30.1.1.4 [10000] area: 0.0.11.184, ABR',
'via 22.1.1.4, Ethernet0',
'[10000] area: 0.0.0.0, ABR',
'',
'============ OSPF external routing table ===========']
not_contain_str = ''
not_expect_ok = True
not_expect_values = []
output = ('============ OSPF network routing table ============\n'
'N IA 10.0.100.0/24 [40000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 20.1.1.0/24 [30000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 22.1.1.0/24 [10000] area: 0.0.11.184\n'
' directly attached to Ethernet0\n'
'N 30.1.1.0/24 [20000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 50.1.1.0/24 [10000] area: 0.0.19.136\n'
' directly attached to Ethernet4\n'
'\n'
'============ OSPF router routing table =============\n'
'R 20.1.1.3 [30000] area: 0.0.0.0, ABR\n'
'R 30.1.1.4 [10000] area: 0.0.11.184, ABR\n'
' via 22.1.1.4, Ethernet0\n'
' [10000] area: 0.0.0.0, ABR\n'
'\n'
'============ OSPF external routing table ===========\n')
parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7354f1220fd0>
re = <module 're' from '/usr/lib/python3.8/re.py'>
record_property = <function record_property.<locals>.append_property at 0x7354f12b0ee0>
reload_config = None
rendered = ('\n'
'# Start daemons\n'
'docker exec -i bgp bash -c "/usr/lib/frr/ripd &"\n'
'docker exec -i bgp bash -c "/usr/lib/frr/isisd &"\n'
'docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"\n'
'\n'
'\n'
'# Set IPs\n'
'\n'
'sudo config interface ip add Ethernet0 50.1.1.3/24\n'
'\n'
'sudo config interface ip add Ethernet4 40.0.100.1/24\n')
scenario = <tests.common.parse_scenario.ParseScenario object at 0x7354f1220fd0>
scenario_name = 'Setup OSPF router for Non Backbone Area Set'
scenario_path = 'test_sonic/ospf/scenario_ospf_redistribute_rip.yaml'
server = <tests.common.devices.vmhost.VMHost object at 0x7354f10b5460>
session_node_name = 'H-1'
single_command = 'vtysh -c "show ip ospf route"'
sonicHostname = ['R-1', 'R-2', 'R-3', 'R-4', 'R-5']
sonic_ssh_prompt = ['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:21 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-1:~$ ',
'Linux R-2 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:25 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-2:~$ ',
'Linux R-3 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:27 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-3:~$ ',
'Linux R-4 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:28 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-4:~$ ',
'Linux R-5 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-5:~$ ']
ssh = ('Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n'
'\r\n'
' * Documentation: https://help.ubuntu.com\r\n'
' * Management: https://landscape.canonical.com\r\n'
' * Support: https://ubuntu.com/pro\r\n'
'\r\n'
' System information as of Sat Oct 3 00:15:04 UTC 2026\r\n'
'\r\n'
' System load: 0.0 Processes: 143\r\n'
' Usage of /: 10.2% of 19.20GB Users logged in: 0\r\n'
' Memory usage: 7% IPv4 address for mgmt: 10.250.0.101\r\n'
' Swap usage: 0%\r\n'
'\r\n'
' * Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support\r\n'
' on 31 May 2025.\r\n'
'\r\n'
' For more details see:\r\n'
' https://ubuntu.com/20-04\r\n'
'\r\n'
'Expanded Security Maintenance for Infrastructure is not enabled.\r\n'
'\r\n'
'40 updates can be applied immediately.\r\n'
'30 of these updates are standard security updates.\r\n'
'To see these additional updates run: apt list --upgradable\r\n'
'\r\n'
'175 additional security updates can be applied with ESM Infra.\r\n'
'Learn more about enabling ESM Infra service for Ubuntu 20.04 at\r\n'
'https://ubuntu.com/20-04\r\n'
'\r\n'
"New release '22.04.5 LTS' available.\r\n"
"Run 'do-release-upgrade' to upgrade to it.\r\n"
'\r\n'
'\r\n'
'*** System restart required ***\r\n'
'Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r'
'\r\n'
'ubuntu@H-1:~$ ')
ssh_prompt = ['Linux R-1 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:21 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-1:~$ ',
'Linux R-2 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:25 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-2:~$ ',
'Linux R-3 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:27 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-3:~$ ',
'Linux R-4 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:28 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-4:~$ ',
'Linux R-5 6.1.0-29-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 '
'(2025-01-02) x86_64\r\n'
'You are on\r\n'
' ____ ___ _ _ _ ____\r\n'
' / ___| / _ \\| \\ | (_)/ ___|\r\n'
' \\___ \\| | | | \\| | | |\r\n'
' ___) | |_| | |\\ | | |___\r\n'
' |____/ \\___/|_| \\_|_|\\____|\r\n'
'\r\n'
'-- Software for Open Networking in the Cloud --\r\n'
'\r\n'
'Unauthorized access and/or use are prohibited.\r\n'
'All access and/or use are subject to monitoring.\r\n'
'\r\n'
'Help: https://sonic-net.github.io/SONiC/\r\n'
'\r\n'
'Last login: Sat Oct 3 08:54:31 2026 from 10.250.0.1\r'
'\r\n'
'admin@R-5:~$ ',
'Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n'
'\r\n'
' * Documentation: https://help.ubuntu.com\r\n'
' * Management: https://landscape.canonical.com\r\n'
' * Support: https://ubuntu.com/pro\r\n'
'\r\n'
' System information as of Sat Oct 3 00:15:04 UTC 2026\r\n'
'\r\n'
' System load: 0.0 Processes: 143\r\n'
' Usage of /: 10.2% of 19.20GB Users logged in: 0\r\n'
' Memory usage: 7% IPv4 address for mgmt: 10.250.0.101\r\n'
' Swap usage: 0%\r\n'
'\r\n'
' * Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support\r\n'
' on 31 May 2025.\r\n'
'\r\n'
' For more details see:\r\n'
' https://ubuntu.com/20-04\r\n'
'\r\n'
'Expanded Security Maintenance for Infrastructure is not enabled.\r\n'
'\r\n'
'40 updates can be applied immediately.\r\n'
'30 of these updates are standard security updates.\r\n'
'To see these additional updates run: apt list --upgradable\r\n'
'\r\n'
'175 additional security updates can be applied with ESM Infra.\r\n'
'Learn more about enabling ESM Infra service for Ubuntu 20.04 at\r\n'
'https://ubuntu.com/20-04\r\n'
'\r\n'
"New release '22.04.5 LTS' available.\r\n"
"Run 'do-release-upgrade' to upgrade to it.\r\n"
'\r\n'
'\r\n'
'*** System restart required ***\r\n'
'Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r'
'\r\n'
'ubuntu@H-1:~$ ']
start_daemons = True
start_time = '09:15:13'
stderr = ''
stdout = ('============ OSPF network routing table ============\n'
'N IA 10.0.100.0/24 [40000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 20.1.1.0/24 [30000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 22.1.1.0/24 [10000] area: 0.0.11.184\n'
' directly attached to Ethernet0\n'
'N 30.1.1.0/24 [20000] area: 0.0.0.0\n'
' via 22.1.1.4, Ethernet0\n'
'N 50.1.1.0/24 [10000] area: 0.0.19.136\n'
' directly attached to Ethernet4\n'
'\n'
'============ OSPF router routing table =============\n'
'R 20.1.1.3 [30000] area: 0.0.0.0, ABR\n'
'R 30.1.1.4 [10000] area: 0.0.11.184, ABR\n'
' via 22.1.1.4, Ethernet0\n'
' [10000] area: 0.0.0.0, ABR\n'
'\n'
'============ OSPF external routing table ===========')
sub_sce_exp_mode = 'and'
sub_sce_exp_values = [['N IA 10.0.100.0/24',
'N IA 20.1.1.0/24',
'N 22.1.1.0/24',
'N IA 30.1.1.0/24',
'N 50.1.1.0/24']]
sub_sce_not_exp_values = [[]]
sub_scenario_actions = [{'command': 'vtysh -c "show ip ospf route"'}]
sub_scenario_delay = 10
sub_scenario_expect = {'mode': 'and',
'values': [['N IA 10.0.100.0/24',
'N IA 20.1.1.0/24',
'N 22.1.1.0/24',
'N IA 30.1.1.0/24',
'N 50.1.1.0/24']]}
sub_scenario_name = 'Check Settings for Non Backbone Area Set'
sub_scenario_not_expect = {'values': [[]]}
sub_scenario_retries = 10
sum_img_path = '/data/NetAutoTestFW/tests/converter_report/topology_img/topo-L3-ospf.jpg'
target_ips = [{'intf': 'Ethernet0', 'ip': '50.1.1.3/24'},
{'intf': 'Ethernet4', 'ip': '40.0.100.1/24'}]
tasks = {'actions': [{'command': 'vtysh -c "show ip ospf route"'}],
'delay': 10,
'expect': {'mode': 'and',
'values': [['N IA 10.0.100.0/24',
'N IA 20.1.1.0/24',
'N 22.1.1.0/24',
'N IA 30.1.1.0/24',
'N 50.1.1.0/24']]},
'name': 'Check Settings for Non Backbone Area Set',
'node': 'R-4',
'not_expect': {'values': [[]]},
'retries': 10}
template_content = ('{% if start_daemons %}\n'
'# Start daemons\n'
'docker exec -i bgp bash -c "/usr/lib/frr/ripd &"\n'
'docker exec -i bgp bash -c "/usr/lib/frr/isisd &"\n'
'docker exec -i bgp bash -c "/usr/lib/frr/ospfd &"\n'
'{% endif %}\n'
'\n'
'# Set IPs\n'
'{% for item in ip_list %}\n'
'sudo config interface ip add {{ item.intf }} {{ item.ip }}\n'
'{% endfor %}\n')
template_path = 'tests/common/templates/common_setup.j2'
timestamps = '09:22:15'
topo_img_name = 'topo-L3-ospf.jpg'
topo_img_path = '/data/NetAutoTestFW/tests/converter_report/topology_img'
trace_success = False
u_host = <tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>
ubuntu = [<tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>]
ubuntuHostname = ['H-1']
ubuntu_ssh_prompt = ['Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-215-generic x86_64)\r\n'
'\r\n'
' * Documentation: https://help.ubuntu.com\r\n'
' * Management: https://landscape.canonical.com\r\n'
' * Support: https://ubuntu.com/pro\r\n'
'\r\n'
' System information as of Sat Oct 3 00:15:04 UTC 2026\r\n'
'\r\n'
' System load: 0.0 Processes: 143\r\n'
' Usage of /: 10.2% of 19.20GB Users logged in: 0\r\n'
' Memory usage: 7% IPv4 address for mgmt: 10.250.0.101\r\n'
' Swap usage: 0%\r\n'
'\r\n'
' * Ubuntu 20.04 LTS Focal Fossa has reached its end of standard support\r\n'
' on 31 May 2025.\r\n'
'\r\n'
' For more details see:\r\n'
' https://ubuntu.com/20-04\r\n'
'\r\n'
'Expanded Security Maintenance for Infrastructure is not enabled.\r\n'
'\r\n'
'40 updates can be applied immediately.\r\n'
'30 of these updates are standard security updates.\r\n'
'To see these additional updates run: apt list --upgradable\r\n'
'\r\n'
'175 additional security updates can be applied with ESM Infra.\r\n'
'Learn more about enabling ESM Infra service for Ubuntu 20.04 at\r\n'
'https://ubuntu.com/20-04\r\n'
'\r\n'
"New release '22.04.5 LTS' available.\r\n"
"Run 'do-release-upgrade' to upgrade to it.\r\n"
'\r\n'
'\r\n'
'*** System restart required ***\r\n'
'Last login: Fri Oct 2 23:54:35 2026 from 10.250.0.1\r'
'\r\n'
'ubuntu@H-1:~$ ']
ubuntus = [<tests.common.devices.ubuntu.UbuntuHost object at 0x7354f0fe20d0>]
vmhost = <tests.common.devices.vmhost.VMHost object at 0x7354f10b5460>
vtb = {'all': {'children': {'TGS': {'hosts': {'TG-1': {'ansible_host': '10.250.0.108',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'first_mac': '52:54:00:20:01:02',
'mac_addr': '52:54:00:20:01:01',
'second_mac': '52:54:00:20:01:03',
'type': 'kvm'}},
'vars': {'ansible_altpassword': 'YourPaSsWoRd',
'ansible_connection': 'multi_passwd_ssh',
'mgmt_subnet_mask_length': 24,
'mgmt_subnet_v6_mask_length': 64}},
'onie': {'hosts': {'dhcp-server': {'ansible_host': '10.250.0.2',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'type': 'kvm'},
'http-server': {'ansible_host': '10.250.0.3',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'type': 'kvm'}},
'vars': {'ansible_altpassword': 'YourPaSsWoRd',
'ansible_connection': 'multi_passwd_ssh',
'mgmt_subnet_mask_length': 24,
'mgmt_subnet_v6_mask_length': 64}},
'servers': {'children': {'server_1': {'children': {'TGS': None,
'onie': None,
'sonic_r': None,
'sonic_sw': None,
'ubuntu': None,
'vm_host_1': None},
'vars': {'host_var_file': 'host_vars/STR-ACS-VSERV-01.yml'}}},
'vars': {'topologies': ['etri',
'etri_bgp',
'etri_l2']}},
'sonic_r': {'hosts': {'R-1': {'ansible_host': '10.250.0.51',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:01',
'os_name': 'sonic-vs.bin',
'serial_port': 7001,
'symbolic_link': 'onie-installer-vs-1',
'type': 'kvm'},
'R-2': {'ansible_host': '10.250.0.52',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:02',
'os_name': 'sonic-vs.bin',
'serial_port': 7002,
'symbolic_link': 'onie-installer-vs-2',
'type': 'kvm'},
'R-3': {'ansible_host': '10.250.0.53',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:03',
'os_name': 'sonic-vs.bin',
'serial_port': 7003,
'symbolic_link': 'onie-installer-vs-3',
'type': 'kvm'},
'R-4': {'ansible_host': '10.250.0.54',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:04',
'os_name': 'sonic-vs.bin',
'serial_port': 7004,
'symbolic_link': 'onie-installer-vs-4',
'type': 'kvm'},
'R-5': {'ansible_host': '10.250.0.55',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:05',
'os_name': 'sonic-vs.bin',
'serial_port': 7005,
'symbolic_link': 'onie-installer-vs-5',
'type': 'kvm'},
'R-6': {'ansible_host': '10.250.0.56',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:06',
'os_name': 'sonic-vs.bin',
'serial_port': 7006,
'symbolic_link': 'onie-installer-vs-6',
'type': 'kvm'}},
'vars': {'ansible_altpassword': 'YourPaSsWoRd',
'ansible_connection': 'multi_passwd_ssh',
'bgp_ip': {'R-1': [{'intf': 'Ethernet4',
'ip': '10.1.1.1/30'},
{'intf': 'Ethernet8',
'ip': '10.1.1.9/30'},
{'intf': 'Ethernet12',
'ip': '10.1.1.5/30'},
{'intf': 'Ethernet16',
'ip': '10.10.1.1/24'},
{'intf': 'Ethernet20',
'ip': '10.10.2.1/24'}],
'R-2': [{'intf': 'Ethernet4',
'ip': '10.1.1.2/30'},
{'intf': 'Ethernet8',
'ip': '10.1.1.6/30'},
{'intf': 'Ethernet12',
'ip': '10.1.3.1/24'},
{'intf': 'Ethernet16',
'ip': '10.20.0.1/24'},
{'intf': 'Ethernet20',
'ip': '10.20.1.1/24'}],
'R-3': [{'intf': 'Ethernet0',
'ip': '10.1.1.10/30'},
{'intf': 'Ethernet8',
'ip': '10.1.3.2/24'},
{'intf': 'Ethernet12',
'ip': '10.30.0.1/24'},
{'intf': 'Ethernet16',
'ip': '10.30.1.1/24'}],
'R-4': [{'intf': 'Ethernet4',
'ip': '10.1.4.1/24'},
{'intf': 'Ethernet8',
'ip': '10.1.3.3/24'},
{'intf': 'Ethernet12',
'ip': '10.40.0.1/24'},
{'intf': 'Ethernet16',
'ip': '10.40.1.1/24'}],
'R-5': [{'intf': 'Ethernet0',
'ip': '10.1.4.2/24'},
{'intf': 'Ethernet8',
'ip': '10.50.0.1/24'},
{'intf': 'Ethernet12',
'ip': '10.50.1.1/24'}]},
'common_ip': {'R-1': [{'intf': 'Ethernet0',
'ip': '21.1.1.2/24'},
{'intf': 'Ethernet4',
'ip': '30.1.1.2/24'},
{'intf': 'Ethernet8',
'ip': '20.1.1.2/24'}],
'R-2': [{'intf': 'Ethernet0',
'ip': '22.1.1.4/24'},
{'intf': 'Ethernet4',
'ip': '30.1.1.4/24'}],
'R-3': [{'intf': 'Ethernet0',
'ip': '20.1.1.3/24'},
{'intf': 'Ethernet4',
'ip': '10.0.100.1/24'}],
'R-4': [{'intf': 'Ethernet0',
'ip': '22.1.1.11/24'},
{'intf': 'Ethernet4',
'ip': '50.1.1.2/24'}],
'R-5': [{'intf': 'Ethernet0',
'ip': '50.1.1.3/24'},
{'intf': 'Ethernet4',
'ip': '40.0.100.1/24'}],
'R-6': [{'intf': 'Ethernet0',
'ip': '21.1.1.3/24'},
{'intf': 'Ethernet4',
'ip': '10.0.100.3/24'}]},
'mgmt_subnet_mask_length': 24,
'mgmt_subnet_v6_mask_length': 64,
'ospf_redist_ip': {'R-1': [{'intf': 'Ethernet4',
'ip': '30.1.1.2/24'},
{'intf': 'Ethernet8',
'ip': '20.1.1.2/24'}],
'R-2': [{'intf': 'Ethernet4',
'ip': '30.1.1.4/24'}],
'R-3': [{'intf': 'Ethernet0',
'ip': '20.1.1.3/24'},
{'intf': 'Ethernet4',
'ip': '10.0.100.1/24'},
{'intf': 'Ethernet8',
'ip': '10.1.100.1/24'},
{'intf': 'Ethernet12',
'ip': '10.2.100.1/24'},
{'intf': 'Ethernet16',
'ip': '10.3.100.1/24'}]}}},
'sonic_sw': {'hosts': {'SW-1': {'ansible_host': '10.250.0.10',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:07',
'os_name': 'sonic-vs.bin',
'serial_port': 8001,
'symbolic_link': 'onie-installer-vs-7',
'type': 'kvm'},
'SW-2': {'ansible_host': '10.250.0.11',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:08',
'os_name': 'sonic-vs.bin',
'serial_port': 8002,
'symbolic_link': 'onie-installer-vs-8',
'type': 'kvm'},
'SW-3': {'ansible_host': '10.250.0.12',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:09',
'os_name': 'sonic-vs.bin',
'serial_port': 8003,
'symbolic_link': 'onie-installer-vs-9',
'type': 'kvm'},
'SW-4': {'ansible_host': '10.250.0.13',
'ansible_password': 'password',
'ansible_user': 'admin',
'hwsku': 'Force10-S6000',
'mgmt_mac': '52:54:00:00:00:10',
'os_name': 'sonic-vs.bin',
'serial_port': 8004,
'symbolic_link': 'onie-installer-vs-10',
'type': 'kvm'}},
'vars': {'ansible_altpassword': 'YourPaSsWoRd',
'ansible_connection': 'multi_passwd_ssh',
'mgmt_subnet_mask_length': 24,
'mgmt_subnet_v6_mask_length': 64}},
'ubuntu': {'hosts': {'H-1': {'ansible_host': '10.250.0.101',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.10/24',
'first_mac': '52:54:00:10:02:01',
'mac_addr': '52:54:00:10:01:01',
'src_ip': '10.0.100.1',
'type': 'kvm'},
'H-2': {'ansible_host': '10.250.0.102',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.11/24',
'first_mac': '52:54:00:10:02:02',
'mac_addr': '52:54:00:10:01:02',
'src_ip': '10.0.100.1',
'type': 'kvm'},
'H-3': {'ansible_host': '10.250.0.103',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.12/24',
'first_mac': '52:54:00:10:02:03',
'mac_addr': '52:54:00:10:01:03',
'src_ip': '10.0.100.1',
'type': 'kvm'},
'H-4': {'ansible_host': '10.250.0.104',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.13/24',
'first_mac': '52:54:00:10:02:04',
'mac_addr': '52:54:00:10:01:04',
'src_ip': '10.0.100.1',
'type': 'kvm'},
'H-5': {'ansible_host': '10.250.0.105',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '10.0.100.0/24',
'dp_ip': '40.0.100.105/24',
'first_mac': '52:54:00:10:02:05',
'mac_addr': '52:54:00:10:01:05',
'src_ip': '40.0.100.1',
'type': 'kvm'},
'H-6': {'ansible_host': '10.250.0.106',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.14/24',
'first_mac': '52:54:00:10:02:06',
'mac_addr': '52:54:00:10:01:06',
'src_ip': '10.0.100.1',
'type': 'kvm'},
'H-7': {'ansible_host': '10.250.0.107',
'ansible_password': 'password',
'ansible_user': 'ubuntu',
'dest_ip': '40.0.100.0/24',
'dp_ip': '10.0.100.15/24',
'first_mac': '52:54:00:10:02:07',
'mac_addr': '52:54:00:10:01:07',
'src_ip': '10.0.100.1',
'type': 'kvm'}},
'vars': {'ansible_altpassword': 'YourPaSsWoRd',
'ansible_connection': 'multi_passwd_ssh',
'mgmt_subnet_mask_length': 24,
'mgmt_subnet_v6_mask_length': 64}},
'vm_host': {'children': {'vm_host_1': {'hosts': {'STR-ACS-VSERV-01': {'ansible_host': '172.17.0.1',
'ansible_user': 'jenkins',
'vm_host_user': 'jenkins'}}}}}}}}
yaml = <module 'yaml' from '/usr/local/lib/python3.8/dist-packages/yaml/__init__.py'>

test_sonic/test_sonic.py:294: AssertionError