| Index | Scenario | Time Stamp | Pass/Fail |
|---|---|---|---|
| 1 | Print Topology Image | 23:54:35 | 1 / 0 |
| 2 | Session Check | 23:54:35 | 5 / 0 |
| 3 | Assign IP Address | 23:54:36 | 32 / 0 |
| 4 | Set Default Network | 23:58:16 | 9 / 0 |
| 5 | Set Router Level | 23:59:39 | 17 / 0 |
| 6 | Set Circuit Level | 00:01:13 | 6 / 0 |
| 7 | Set Circuit Metric | 00:01:45 | 10 / 0 |
| 8 | Set Circuit Authentication - Text | 00:02:56 | 10 / 0 |
| 9 | Delete Circuit Authentication - Text | 00:04:22 | 5 / 0 |
| 10 | Set Circuit Authentication - MD5 | 00:04:50 | 10 / 0 |
| 11 | Delete Circuit Authentication - MD5 | 00:23:35 | 6 / 0 |
| 12 | Set Circuit Priority | 00:24:08 | 7 / 0 |
| 13 | Delete Circuit Priority | 00:24:47 | 3 / 0 |
| 14 | Set Dynamic Hostname | 00:25:03 | 2 / 0 |
| Name | Connection Type | Host Address | Port | Login User |
|---|---|---|---|---|
| R-1 | ssh | 10.250.0.51 | 22 | admin |
| R-2 | ssh | 10.250.0.52 | 22 | admin |
| R-3 | ssh | 10.250.0.53 | 22 | admin |
| R-4 | ssh | 10.250.0.54 | 22 | admin |
| R-5 | ssh | 10.250.0.55 | 22 | admin |
| Index | Action | Session | Time Stamp | Pass/Fail |
|---|---|---|---|---|
| 1 | print topo img | caller | 23:54:35 | Pass |
| Parameter | topo-L2-L3.jpg | |||
| Response | ||||
| 2 | session check R-1 | R-1 | 23:54:35 | 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: Mon Oct 26 23:11:19 2026 from 10.250.0.1 admin@R-1:~$ |
|||
| 3 | session check R-2 | R-2 | 23:54:35 | 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: Mon Oct 26 23:11:22 2026 from 10.250.0.1 admin@R-2:~$ |
|||
| 4 | session check R-3 | R-3 | 23:54:35 | 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: Mon Oct 26 23:11:22 2026 from 10.250.0.1 admin@R-3:~$ |
|||
| 5 | session check R-4 | R-4 | 23:54:35 | 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: Mon Oct 26 23:11:25 2026 from 10.250.0.1 admin@R-4:~$ |
|||
| 6 | session check R-5 | R-5 | 23:54:35 | 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1 admin@R-5:~$ |
|||
| 7 | Assign IP Address | R-1 | 23:54:36 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &" | |||
| Response | 2026/10/26 23:54:35 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 |
|||
| 8 | Assign IP Address | R-1 | 23:54:43 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &" | |||
| Response | 2026/10/26 23:54:43 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 |
|||
| 9 | Assign IP Address | R-1 | 23:54:50 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &" | |||
| Response | 2026/10/26 23:54:50 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 |
|||
| 10 | Assign IP Address | R-1 | 23:54:58 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet0 21.1.1.2/24 | |||
| Response | Success | |||
| 11 | Assign IP Address | R-1 | 23:55:03 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet4 30.1.1.2/24 | |||
| Response | Success | |||
| 12 | Assign IP Address | R-1 | 23:55:09 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet8 20.1.1.2/24 | |||
| Response | Success | |||
| 13 | Assign IP Address | R-2 | 23:55:15 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &" | |||
| Response | 2026/10/26 23:55:15 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 |
|||
| 14 | Assign IP Address | R-2 | 23:55:22 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &" | |||
| Response | 2026/10/26 23:55:22 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 |
|||
| 15 | Assign IP Address | R-2 | 23:55:29 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &" | |||
| Response | 2026/10/26 23:55:29 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 |
|||
| 16 | Assign IP Address | R-2 | 23:55:37 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet0 22.1.1.4/24 | |||
| Response | Success | |||
| 17 | Assign IP Address | R-2 | 23:55:43 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet4 30.1.1.4/24 | |||
| Response | Success | |||
| 18 | Assign IP Address | R-3 | 23:55:48 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &" | |||
| Response | 2026/10/26 23:55:47 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 |
|||
| 19 | Assign IP Address | R-3 | 23:55:57 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &" | |||
| Response | 2026/10/26 23:55:56 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 |
|||
| 20 | Assign IP Address | R-3 | 23:56:05 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &" | |||
| Response | 2026/10/26 23:56:03 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 |
|||
| 21 | Assign IP Address | R-3 | 23:56:12 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet0 20.1.1.3/24 | |||
| Response | Success | |||
| 22 | Assign IP Address | R-3 | 23:56:18 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet4 10.0.100.1/24 | |||
| Response | Success | |||
| 23 | Assign IP Address | R-4 | 23:56:24 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &" | |||
| Response | 2026/10/26 23:56:23 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 |
|||
| 24 | Assign IP Address | R-4 | 23:56:31 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &" | |||
| Response | 2026/10/26 23:56:30 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 |
|||
| 25 | Assign IP Address | R-4 | 23:56:39 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &" | |||
| Response | 2026/10/26 23:56:38 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 |
|||
| 26 | Assign IP Address | R-4 | 23:56:46 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet0 22.1.1.11/24 | |||
| Response | Success | |||
| 27 | Assign IP Address | R-4 | 23:56:52 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet4 50.1.1.2/24 | |||
| Response | Success | |||
| 28 | Assign IP Address | R-5 | 23:56:57 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ripd &" | |||
| Response | 2026/10/26 23:56: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 |
|||
| 29 | Assign IP Address | R-5 | 23:57:05 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/isisd &" | |||
| Response | 2026/10/26 23:57: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 |
|||
| 30 | Assign IP Address | R-5 | 23:57:12 | Pass |
| Parameter | ~$ docker exec -i bgp bash -c "/usr/lib/frr/ospfd &" | |||
| Response | 2026/10/26 23:57: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 |
|||
| 31 | Assign IP Address | R-5 | 23:57:20 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet0 50.1.1.3/24 | |||
| Response | Success | |||
| 32 | Assign IP Address | R-5 | 23:57:25 | Pass |
| Parameter | ~$ sudo config interface ip add Ethernet4 40.0.100.1/24 | |||
| Response | Success | |||
| 33 | ping test | R-1 | 23:57:31 | Pass |
| Parameter | ~$ ping 30.1.1.4 -c 3 | |||
| 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=64 time=1.78 ms 64 bytes from 30.1.1.4: icmp_seq=2 ttl=64 time=1.02 ms 64 bytes from 30.1.1.4: icmp_seq=3 ttl=64 time=0.822 ms --- 30.1.1.4 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.822/1.204/1.777/0.412 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 30.1.1.4 |
|||
| 34 | ping test | R-1 | 23:57:39 | Pass |
| Parameter | ~$ ping 20.1.1.3 -c 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=64 time=1.81 ms 64 bytes from 20.1.1.3: icmp_seq=2 ttl=64 time=0.978 ms 64 bytes from 20.1.1.3: icmp_seq=3 ttl=64 time=0.934 ms --- 20.1.1.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.934/1.240/1.809/0.402 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 20.1.1.3 |
|||
| 35 | ping test | R-2 | 23:57:46 | Pass |
| Parameter | ~$ ping 30.1.1.2 -c 3 | |||
| Response | PING 30.1.1.2 (30.1.1.2) 56(84) bytes of data. 64 bytes from 30.1.1.2: icmp_seq=1 ttl=64 time=0.692 ms 64 bytes from 30.1.1.2: icmp_seq=2 ttl=64 time=0.801 ms 64 bytes from 30.1.1.2: icmp_seq=3 ttl=64 time=0.934 ms --- 30.1.1.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2014ms rtt min/avg/max/mdev = 0.692/0.809/0.934/0.098 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 30.1.1.2 |
|||
| 36 | ping test | R-3 | 23:57:54 | Pass |
| Parameter | ~$ ping 20.1.1.2 -c 3 | |||
| Response | PING 20.1.1.2 (20.1.1.2) 56(84) bytes of data. 64 bytes from 20.1.1.2: icmp_seq=1 ttl=64 time=0.671 ms 64 bytes from 20.1.1.2: icmp_seq=2 ttl=64 time=1.11 ms 64 bytes from 20.1.1.2: icmp_seq=3 ttl=64 time=1.04 ms --- 20.1.1.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2028ms rtt min/avg/max/mdev = 0.671/0.941/1.111/0.193 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 20.1.1.2 |
|||
| 37 | ping test | R-4 | 23:58:01 | Pass |
| Parameter | ~$ ping 22.1.1.4 -c 3 | |||
| Response | PING 22.1.1.4 (22.1.1.4) 56(84) bytes of data. 64 bytes from 22.1.1.4: icmp_seq=1 ttl=64 time=1.38 ms 64 bytes from 22.1.1.4: icmp_seq=2 ttl=64 time=1.22 ms 64 bytes from 22.1.1.4: icmp_seq=3 ttl=64 time=0.972 ms --- 22.1.1.4 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.972/1.188/1.376/0.166 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 22.1.1.4 |
|||
| 38 | ping test | R-4 | 23:58:08 | Pass |
| Parameter | ~$ ping 50.1.1.3 -c 3 | |||
| Response | PING 50.1.1.3 (50.1.1.3) 56(84) bytes of data. 64 bytes from 50.1.1.3: icmp_seq=1 ttl=64 time=1.86 ms 64 bytes from 50.1.1.3: icmp_seq=2 ttl=64 time=1.06 ms 64 bytes from 50.1.1.3: icmp_seq=3 ttl=64 time=0.897 ms --- 50.1.1.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.897/1.271/1.860/0.421 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: bytes from 50.1.1.3 |
|||
| 39 | Set default network | R-1 | 23:58:16 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-1" \ -c "net 49.0001.1000.0000.0001.00" \ -c "exit" \ -c "interface Ethernet4" \ -c "ip router isis AREA-1" \ -c "no isis hello padding" \ -c "exit" \ -c "interface Ethernet8" \ -c "ip router isis AREA-1" \ -c "no isis hello padding" \ -c "end" \ -c "show running-config" |
|||
| Response | Building configuration... Current configuration: ! frr version 10.3 frr defaults traditional hostname R-1 log syslog informational log facility local4 zebra nexthop-group keep 1 no zebra nexthop kernel enable fpm address 127.0.0.1 no fpm use-next-hop-groups agentx no service integrated-vtysh-config ! password zebra enable password zebra ! interface Ethernet4 ip router isis AREA-1 no isis hello padding exit ! interface Ethernet8 ip router isis AREA-1 no isis hello padding exit ! router isis AREA-1 net 49.0001.1000.0000.0001.00 exit ! ip nht resolve-via-default ! ipv6 nht resolve-via-default ! end |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 40 | Set default network | R-3 | 23:58:21 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-1" \ -c "net 49.0001.1000.0000.0002.00" \ -c "exit" \ -c "interface Ethernet4" \ -c "ip router isis AREA-1" \ -c "no isis hello padding" \ -c "exit" \ -c "interface Ethernet0" \ -c "ip router isis AREA-1" \ -c "no isis hello padding" \ -c "end" \ -c "show running-config" |
|||
| Response | Building configuration... Current configuration: ! frr version 10.3 frr defaults traditional hostname R-3 log syslog informational log facility local4 zebra nexthop-group keep 1 no zebra nexthop kernel enable fpm address 127.0.0.1 no fpm use-next-hop-groups agentx no service integrated-vtysh-config ! password zebra enable password zebra ! interface Ethernet0 ip router isis AREA-1 no isis hello padding exit ! interface Ethernet4 ip router isis AREA-1 no isis hello padding exit ! router isis AREA-1 net 49.0001.1000.0000.0002.00 exit ! ip nht resolve-via-default ! ipv6 nht resolve-via-default ! end |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 41 | Set default network | R-2 | 23:58:27 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-2" \ -c "net 49.0002.2000.0000.0001.00" \ -c "exit" \ -c "interface Ethernet0" \ -c "ip router isis AREA-2" \ -c "no isis hello padding" \ -c "exit" \ -c "interface Ethernet4" \ -c "ip router isis AREA-2" \ -c "no isis hello padding" \ -c "end" \ -c "show running-config" |
|||
| Response | Building configuration... Current configuration: ! frr version 10.3 frr defaults traditional hostname R-2 log syslog informational log facility local4 zebra nexthop-group keep 1 no zebra nexthop kernel enable fpm address 127.0.0.1 no fpm use-next-hop-groups agentx no service integrated-vtysh-config ! password zebra enable password zebra ! interface Ethernet0 ip router isis AREA-2 no isis hello padding exit ! interface Ethernet4 ip router isis AREA-2 no isis hello padding exit ! router isis AREA-2 net 49.0002.2000.0000.0001.00 exit ! ip nht resolve-via-default ! ipv6 nht resolve-via-default ! end |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 42 | Set default network | R-4 | 23:58:32 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-2" \ -c "net 49.0002.2000.0000.0002.00" \ -c "exit" \ -c "interface Ethernet0" \ -c "ip router isis AREA-2" \ -c "no isis hello padding" \ -c "exit" \ -c "interface Ethernet4" \ -c "ip router isis AREA-2" \ -c "no isis hello padding" \ -c "end" \ -c "show running-config" |
|||
| Response | Building configuration... Current configuration: ! frr version 10.3 frr defaults traditional hostname R-4 log syslog informational log facility local4 zebra nexthop-group keep 1 no zebra nexthop kernel enable fpm address 127.0.0.1 no fpm use-next-hop-groups agentx no service integrated-vtysh-config ! password zebra enable password zebra ! interface Ethernet0 ip router isis AREA-2 no isis hello padding exit ! interface Ethernet4 ip router isis AREA-2 no isis hello padding exit ! router isis AREA-2 net 49.0002.2000.0000.0002.00 exit ! ip nht resolve-via-default ! ipv6 nht resolve-via-default ! end |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 43 | Check IP ROUTE | R-1 | 23:58:38 | 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 I>*10.0.100.0/24 [115/20] via 20.1.1.3, Ethernet8, 00:00:08 C>*10.250.0.0/24 is directly connected, eth0, 00:14:43 I 20.1.1.0/24 [115/20] via 20.1.1.3, Ethernet8, inactive 00:00:08 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:04:00 K *20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:04:00 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:04:12 I>*22.1.1.0/24 [115/20] via 30.1.1.4, Ethernet4, 00:00:13 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:04:06 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:04:06 I>*50.1.1.0/24 [115/30] via 30.1.1.4, Ethernet4, 00:00:08 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:14:43 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 contain string: I>*22.1.1.0/24 contain string: I>*50.1.1.0/24 |
|||
| 44 | Check IP ROUTE | R-2 | 23:59:15 | 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 I>*10.0.100.0/24 [115/30] via 30.1.1.2, Ethernet4, 00:00:19 C>*10.250.0.0/24 is directly connected, eth0, 00:12:58 I>*20.1.1.0/24 [115/20] via 30.1.1.2, Ethernet4, 00:00:19 I 22.1.1.0/24 [115/20] via 22.1.1.11, Ethernet0, inactive 00:00:13 C>*22.1.1.0/24 is directly connected, Ethernet0, 00:03:38 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:03:33 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:03:33 I>*50.1.1.0/24 [115/20] via 22.1.1.11, Ethernet0, 00:00:13 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:12:58 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 contain string: I>*20.1.1.0/24 contain string: I>*50.1.1.0/24 |
|||
| 45 | Check IP ROUTE | R-3 | 23:59:21 | 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:03 K 10.0.100.0/24 [0/0] is directly connected, Ethernet4, 00:03:03 C>*10.250.0.0/24 is directly connected, eth0, 00:11:13 I 20.1.1.0/24 [115/20] via 20.1.1.2, Ethernet0, inactive 00:00:19 C>*20.1.1.0/24 is directly connected, Ethernet0, 00:03:09 I>*22.1.1.0/24 [115/30] via 20.1.1.2, Ethernet0, 00:00:25 I>*30.1.1.0/24 [115/20] via 20.1.1.2, Ethernet0, 00:00:19 I>*50.1.1.0/24 [115/40] via 20.1.1.2, Ethernet0, 00:00:19 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:11:13 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*22.1.1.0/24 contain string: I>*30.1.1.0/24 contain string: I>*50.1.1.0/24 |
|||
| 46 | Check IP ROUTE | R-4 | 23:59:26 | 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 I>*10.0.100.0/24 [115/40] via 22.1.1.4, Ethernet0, 00:00:24 C>*10.250.0.0/24 is directly connected, eth0, 00:09:29 I>*20.1.1.0/24 [115/30] via 22.1.1.4, Ethernet0, 00:00:24 I 22.1.1.0/24 [115/20] via 22.1.1.4, Ethernet0, inactive 00:00:24 C>*22.1.1.0/24 is directly connected, Ethernet0, 00:02:40 I>*30.1.1.0/24 [115/20] via 22.1.1.4, Ethernet0, 00:00:24 C>*50.1.1.0/24 is directly connected, Ethernet4, 00:02:35 K 50.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:02:35 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:09:29 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 contain string: I>*20.1.1.0/24 contain string: I>*30.1.1.0/24 |
|||
| 47 | Send ping for network connection test | R-4 | 23:59:32 | Pass |
| Parameter | ~$ ping 10.0.100.1 -c 3 | |||
| Response | PING 10.0.100.1 (10.0.100.1) 56(84) bytes of data. 64 bytes from 10.0.100.1: icmp_seq=1 ttl=62 time=2.60 ms 64 bytes from 10.0.100.1: icmp_seq=2 ttl=62 time=2.66 ms 64 bytes from 10.0.100.1: icmp_seq=3 ttl=62 time=2.48 ms --- 10.0.100.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 2.484/2.580/2.661/0.073 ms |
|||
| Judgement | Success inter-conditional operator : and contain string: 64 bytes from 10.0.100.1 |
|||
| 48 | set router level | R-3 | 23:59:39 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-1" \ -c "is-type level-1" \ -c "end" |
|||
| Response | Success | |||
| 49 | set router level | R-4 | 23:59:45 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "router isis AREA-2" \ -c "is-type level-1" \ -c "end" |
|||
| Response | Success | |||
| 50 | Check isis database | R-4 | 23:59:50 | Pass |
| Parameter | ~$ vtysh -c "show isis database" | |||
| Response | Area AREA-2: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL 2000.0000.0001.00-00 91 0x00000002 0xff65 1086 1/0/0 2000.0000.0001.b3-00 51 0x00000001 0x7738 1067 1/0/0 R-4.00-00 * 91 0x00000003 0x0d14 1174 0/0/0 3 LSPs |
|||
| Judgement | Success inter-conditional operator : and not contain string: IS-IS Level-2 link-state database |
|||
| 51 | Check isis interface | R-4 | 23:59:56 | Pass |
| Parameter | ~$ vtysh -c "show isis interface" | |||
| Response | Area AREA-2: Interface CircId State Type Level Ethernet0 0xb2 Up lan L1 Ethernet4 0xb3 Up lan L1 |
|||
| Judgement | Success inter-conditional operator : and contain string: Up lan L1 |
|||
| 52 | Check isis neighbor | R-4 | 00:00:01 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-2: System Id Interface L State Holdtime SNPA 2000.0000.0001 Ethernet0 1 Up 30 2250.f292.84b6 |
|||
| Judgement | Success inter-conditional operator : and contain string: 2000.0000.0001 Ethernet0 1 Up not contain string: 2000.0000.0001 Ethernet0 2 up |
|||
| 53 | Check isis summary | R-4 | 00:00:07 | Pass |
| Parameter | ~$ vtysh -c "show isis summary" | |||
| Response | vrf : default Process Id : 170 System Id : 2000.0000.0002 Up time : 00:01:35 ago Number of areas : 1 Area AREA-2: Net: 49.0002.2000.0000.0002.00 TX counters per PDU type: L1 IIH: 69 L2 IIH: 53 L1 LSP: 3 L2 LSP: 2 L1 PSNP: 1 L2 PSNP: 1 LSP RXMT: 0 RX counters per PDU type: L1 IIH: 35 L2 IIH: 34 L1 LSP: 3 L2 LSP: 9 L1 CSNP: 10 L2 CSNP: 10 Drop counters per PDU type: L2 IIH: 7 Advertise high metrics: Disabled Level-1: LSP0 regenerated: 3 LSPs purged: 0 SPF: minimum interval : 1 IPv4 route computation: last run elapsed : 00:00:22 ago last run duration : 49 usec run count : 6 |
|||
| Judgement | Success inter-conditional operator : and not contain string: Level-2: |
|||
| 54 | Check isis topology | R-4 | 00:00:12 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-2: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ------------------------------------------------------------------------------------ R-4 22.1.1.0/24 IP internal 0 R-4(4) 50.1.1.0/24 IP internal 0 R-4(4) 2000.0000.0001 TE-IS 10 2000.0000.0001 Ethernet0 R-4(4) 0.0.0.0/0 IP internal 10 2000.0000.0001 Ethernet0 R-4(4) 2000.0000.0001(4) 2000.0000.0001 pseudo_TE-IS 20 2000.0000.0001 Ethernet0 2000.0000.0001(4) 22.1.1.0/24 IP TE 20 2000.0000.0001 Ethernet0 2000.0000.0001(4) 30.1.1.0/24 IP TE 20 2000.0000.0001 Ethernet0 2000.0000.0001(4) |
|||
| Judgement | Success inter-conditional operator : and not contain string: IS-IS paths to level-2 routers that speak IP |
|||
| 55 | Check ip route | R-4 | 00:00:18 | 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 I>*0.0.0.0/0 [115/10] via 22.1.1.4, Ethernet0, 00:00:33 C>*10.250.0.0/24 is directly connected, eth0, 00:10:20 I 22.1.1.0/24 [115/20] via 22.1.1.4, Ethernet0, inactive 00:00:33 C>*22.1.1.0/24 is directly connected, Ethernet0, 00:03:31 I>*30.1.1.0/24 [115/20] via 22.1.1.4, Ethernet0, 00:00:33 C>*50.1.1.0/24 is directly connected, Ethernet4, 00:03:26 K 50.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:03:26 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:10:20 |
|||
| Judgement | Success inter-conditional operator : and not contain string: I>*20.1.1.0/24 not contain string: I>*10.0.100.0/24 |
|||
| 56 | Check isis database | R-3 | 00:00:23 | Pass |
| Parameter | ~$ vtysh -c "show isis database" | |||
| Response | Area AREA-1: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 91 0x00000003 0x8efd 1178 1/0/0 R-1.b5-00 51 0x00000001 0x09d4 1037 1/0/0 R-3.00-00 * 91 0x00000004 0x2837 1179 0/0/0 3 LSPs |
|||
| Judgement | Success inter-conditional operator : and not contain string: IS-IS Level-2 link-state database |
|||
| 57 | Check isis interface | R-3 | 00:00:29 | Pass |
| Parameter | ~$ vtysh -c "show isis interface" | |||
| Response | Area AREA-1: Interface CircId State Type Level Ethernet4 0xb3 Up lan L1 Ethernet0 0xb2 Up lan L1 |
|||
| Judgement | Success inter-conditional operator : and contain string: Up lan L1 |
|||
| 58 | Check isis neighbor | R-3 | 00:00:34 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-1 Ethernet0 1 Up 28 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-1 Ethernet4 2 up |
|||
| 59 | Check isis summary | R-3 | 00:00:40 | Pass |
| Parameter | ~$ vtysh -c "show isis summary" | |||
| Response | vrf : default Process Id : 169 System Id : 1000.0000.0002 Up time : 00:02:18 ago Number of areas : 1 Area AREA-1: Net: 49.0001.1000.0000.0002.00 TX counters per PDU type: L1 IIH: 99 L2 IIH: 57 L1 LSP: 4 L2 LSP: 2 L1 PSNP: 1 L2 PSNP: 1 LSP RXMT: 0 RX counters per PDU type: L1 IIH: 50 L2 IIH: 51 L1 LSP: 4 L2 LSP: 9 L1 CSNP: 15 L2 CSNP: 11 Drop counters per PDU type: L2 IIH: 22 Advertise high metrics: Disabled Level-1: LSP0 regenerated: 4 LSPs purged: 0 SPF: minimum interval : 1 IPv4 route computation: last run elapsed : 00:00:30 ago last run duration : 403 usec run count : 8 |
|||
| Judgement | Success inter-conditional operator : and not contain string: Level-2: |
|||
| 60 | Check isis topology | R-3 | 00:00:45 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ------------------------------------------------------------------ R-3 10.0.100.0/24 IP internal 0 R-3(4) 20.1.1.0/24 IP internal 0 R-3(4) R-1 TE-IS 10 R-1 Ethernet0 R-3(4) 0.0.0.0/0 IP internal 10 R-1 Ethernet0 R-3(4) R-1(4) R-1 pseudo_TE-IS 20 R-1 Ethernet0 R-1(4) 30.1.1.0/24 IP TE 20 R-1 Ethernet0 R-1(4) 20.1.1.0/24 IP TE 20 R-1 Ethernet0 R-1(4) |
|||
| Judgement | Success inter-conditional operator : and not contain string: IS-IS paths to level-2 routers that speak IP |
|||
| 61 | Check ip route | R-3 | 00:00:51 | 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 I>*0.0.0.0/0 [115/10] via 20.1.1.2, Ethernet0, 00:01:12 C>*10.0.100.0/24 is directly connected, Ethernet4, 00:04:33 K 10.0.100.0/24 [0/0] is directly connected, Ethernet4, 00:04:33 C>*10.250.0.0/24 is directly connected, eth0, 00:12:43 I 20.1.1.0/24 [115/20] via 20.1.1.2, Ethernet0, inactive 00:01:12 C>*20.1.1.0/24 is directly connected, Ethernet0, 00:04:39 I>*30.1.1.0/24 [115/20] via 20.1.1.2, Ethernet0, 00:01:12 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:12:43 |
|||
| Judgement | Success inter-conditional operator : and not contain string: I>*22.1.1.0/24 not contain string: I>*50.1.1.0/24 |
|||
| 62 | Check isis database | R-1 | 00:00:56 | Pass |
| Parameter | ~$ vtysh -c "show isis database" | |||
| Response | Area AREA-1: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 * 91 0x00000003 0x8efd 1146 1/0/0 R-1.b5-00 * 51 0x00000001 0x09d4 1005 1/0/0 R-3.00-00 91 0x00000004 0x2837 1146 0/0/0 3 LSPs IS-IS Level-2 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 * 91 0x00000003 0x5332 1102 0/0/0 R-1.b5-00 * 27 0x00000001 0x3005 (1152) 0/0/0 R-3.00-00 91 0x00000002 0x2e31 1026 0/0/0 R-2.00-00 91 0x00000003 0x1b50 1149 0/0/0 R-2.b3-00 27 0x00000001 0x6db9 (17) 0/0/0 R-2.b4-00 51 0x00000001 0x6364 1026 0/0/0 R-4.00-00 91 0x00000002 0x110f 1028 0/0/0 7 LSPs |
|||
| Judgement | Success inter-conditional operator : and not contain string: ROUTER-D |
|||
| 63 | Check isis neighbor | R-1 | 00:01:02 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 29 2250.f292.84b6 R-3 Ethernet8 1 Up 29 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-3 Ethernet8 2 Up |
|||
| 64 | Check isis neighbor | R-2 | 00:01:07 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-2: System Id Interface L State Holdtime SNPA R-4 Ethernet0 1 Up 29 2228.73c6.21d2 R-1 Ethernet4 2 Up 29 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-4 Ethernet0 2 Up |
|||
| 65 | set circuit level | R-1 | 00:01:13 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "isis circuit-type level-2-only" \ -c "exit" \ -c "interface Ethernet8" \ -c "isis circuit-type level-1" \ -c "end" |
|||
| Response | Success | |||
| 66 | set circuit level | R-2 | 00:01:18 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet0" \ -c "isis circuit-type level-1" \ -c "exit" \ -c "interface Ethernet4" \ -c "isis circuit-type level-2-only" \ -c "end" |
|||
| Response | Success | |||
| 67 | Check isis interface Ethernet0 | R-2 | 00:01:24 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet0" | |||
| Response | Area AREA-2: Interface: Ethernet0, State: Up, Active, Circuit Id: 0xb3 Type: lan, Level: L1, SNPA: 2250.f292.84b6 Level-1 Information: Metric: 10, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is DIS IP Prefix(es): 22.1.1.4/24 IPv6 Link-Locals: fe80::2050:f2ff:fe92:84b6/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Level: L1 |
|||
| 68 | Check isis interface Ethernet4 | R-2 | 00:01:29 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet4" | |||
| Response | Area AREA-2: Interface: Ethernet4, State: Up, Active, Circuit Id: 0xb4 Type: lan, Level: L2, SNPA: 2250.f292.84b6 Level-2 Information: Metric: 10, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is DIS IP Prefix(es): 30.1.1.4/24 IPv6 Link-Locals: fe80::2050:f2ff:fe92:84b6/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Level: L2 |
|||
| 69 | Check isis interface Ethernet4 | R-1 | 00:01:34 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet4" | |||
| Response | Area AREA-1: Interface: Ethernet4, State: Up, Active, Circuit Id: 0xb4 Type: lan, Level: L2, SNPA: 223f.2c8b.31ee Level-2 Information: Metric: 10, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is not DIS IP Prefix(es): 30.1.1.2/24 IPv6 Link-Locals: fe80::203f:2cff:fe8b:31ee/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Level: L2 |
|||
| 70 | Check isis interface Ethernet8 | R-1 | 00:01:40 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet8" | |||
| Response | Area AREA-1: Interface: Ethernet8, State: Up, Active, Circuit Id: 0xb5 Type: lan, Level: L1, SNPA: 223f.2c8b.31ee Level-1 Information: Metric: 10, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is DIS IP Prefix(es): 20.1.1.2/24 IPv6 Link-Locals: fe80::203f:2cff:fe8b:31ee/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Level: L1 |
|||
| 71 | set circuit metric | R-1 | 00:01:45 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "isis metric 222" \ -c "exit" \ -c "interface Ethernet8" \ -c "isis metric 111" \ -c "end" \ -c "clear isis neighbor" \ -c "end" |
|||
| Response | Success | |||
| 72 | Check isis interface Ethernet4 | R-1 | 00:01:51 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet4" | |||
| Response | Area AREA-1: Interface: Ethernet4, State: Up, Active, Circuit Id: 0xb4 Type: lan, Level: L2, SNPA: 223f.2c8b.31ee Level-2 Information: Metric: 222, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is not DIS IP Prefix(es): 30.1.1.2/24 IPv6 Link-Locals: fe80::203f:2cff:fe8b:31ee/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Metric: 222 |
|||
| 73 | Check isis interface Ethernet8 | R-1 | 00:01:56 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet8" | |||
| Response | Area AREA-1: Interface: Ethernet8, State: Up, Active, Circuit Id: 0xb5 Type: lan, Level: L1, SNPA: 223f.2c8b.31ee Level-1 Information: Metric: 111, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 64, is DIS IP Prefix(es): 20.1.1.2/24 IPv6 Link-Locals: fe80::203f:2cff:fe8b:31ee/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: Metric: 111 |
|||
| 74 | Check isis topology | R-1 | 00:02:02 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-3 TE-IS 111 R-3 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 R-3 Ethernet8 R-3(4) 20.1.1.0/24 IP TE 121 R-3 Ethernet8 R-3(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent --------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: 20.1.1.0/24 IP internal 0 R-1 contain string: R-3 TE-IS 111 R-3 Ethernet8 R-1 contain string: 10.0.100.0/24 IP TE 121 R-3 Ethernet8 R-3 contain string: 20.1.1.0/24 IP TE 121 R-3 Ethernet8 R-3 contain string: 30.1.1.0/24 IP internal 0 R-1 contain string: R-2 TE-IS 222 R-2 Ethernet4 R-1 contain string: 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2 contain string: 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2 |
|||
| 75 | Check ip route | R-1 | 00:02:22 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:00:08 C>*10.250.0.0/24 is directly connected, eth0, 00:17:56 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:05 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:07:13 K 20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:07:13 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:07:25 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:00:08 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:07:19 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:07:19 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:17:56 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8 contain string: I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4 |
|||
| 76 | Check isis database detail | R-2 | 00:02:28 | Pass |
| Parameter | ~$ vtysh -c "show isis database detail" | |||
| Response | Area AREA-2: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-2.00-00 * 91 0x00000006 0xf769 1131 1/0/0 Protocols Supported: IPv4 Area Address: 49.0002 Hostname: R-2 TE Router ID: 30.1.1.4 Router Capability: 30.1.1.4 , D:0, S:0 SR Algorithm: 0: SPF Extended Reachability: 2000.0000.0001.b3 (Metric: 10) IPv4 Interface Address: 30.1.1.4 Extended IP Reachability: 22.1.1.0/24 (Metric: 10) Extended IP Reachability: 30.1.1.0/24 (Metric: 10) R-2.b3-00 * 51 0x00000001 0x7738 909 1/0/0 Extended Reachability: 2000.0000.0001.00 (Metric: 0) Extended Reachability: 2000.0000.0002.00 (Metric: 0) R-4.00-00 91 0x00000004 0x0b15 1021 0/0/0 Protocols Supported: IPv4 Area Address: 49.0002 Hostname: R-4 TE Router ID: 50.1.1.2 Router Capability: 50.1.1.2 , D:0, S:0 Extended Reachability: 2000.0000.0001.b3 (Metric: 10) IPv4 Interface Address: 50.1.1.2 Extended IP Reachability: 22.1.1.0/24 (Metric: 10) Extended IP Reachability: 50.1.1.0/24 (Metric: 10) 3 LSPs IS-IS Level-2 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 91 0x00000006 0xc7ab 1128 0/0/0 Protocols Supported: IPv4 Area Address: 49.0001 Hostname: R-1 TE Router ID: 30.1.1.2 Router Capability: 30.1.1.2 , D:0, S:0 Extended Reachability: 2000.0000.0001.b4 (Metric: 222) IPv4 Interface Address: 30.1.1.2 Extended IP Reachability: 30.1.1.0/24 (Metric: 222) Extended IP Reachability: 20.1.1.0/24 (Metric: 111) R-3.00-00 91 0x00000002 0x2e31 934 0/0/0 Protocols Supported: IPv4 Area Address: 49.0001 Hostname: R-3 TE Router ID: 20.1.1.3 Router Capability: 20.1.1.3 , D:0, S:0 Extended Reachability: 1000.0000.0001.b5 (Metric: 10) IPv4 Interface Address: 20.1.1.3 Extended IP Reachability: 10.0.100.0/24 (Metric: 10) Extended IP Reachability: 20.1.1.0/24 (Metric: 10) R-2.00-00 * 91 0x00000006 0x1553 1175 0/0/0 Protocols Supported: IPv4 Area Address: 49.0002 Hostname: R-2 TE Router ID: 30.1.1.4 Router Capability: 30.1.1.4 , D:0, S:0 SR Algorithm: 0: SPF Extended Reachability: 2000.0000.0001.b4 (Metric: 10) IPv4 Interface Address: 30.1.1.4 Extended IP Reachability: 22.1.1.0/24 (Metric: 10) Extended IP Reachability: 30.1.1.0/24 (Metric: 10) R-2.b3-00 * 27 0x00000001 0x6db9 (1065) 0/0/0 R-2.b4-00 * 51 0x00000002 0x6165 1154 0/0/0 Extended Reachability: 2000.0000.0001.00 (Metric: 0) Extended Reachability: 1000.0000.0001.00 (Metric: 0) R-4.00-00 91 0x00000002 0x110f 936 0/0/0 Protocols Supported: IPv4 Area Address: 49.0002 Hostname: R-4 TE Router ID: 50.1.1.2 Router Capability: 50.1.1.2 , D:0, S:0 Extended Reachability: 2000.0000.0001.b3 (Metric: 10) IPv4 Interface Address: 50.1.1.2 Extended IP Reachability: 22.1.1.0/24 (Metric: 10) Extended IP Reachability: 50.1.1.0/24 (Metric: 10) 6 LSPs |
|||
| Judgement | Success inter-conditional operator : and contain string: Extended IP Reachability: 30.1.1.0/24 (Metric: 222) contain string: Extended IP Reachability: 20.1.1.0/24 (Metric: 111) |
|||
| 77 | Check isis topology | R-2 | 00:02:34 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-2: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent --------------------------------------------------------------- R-2 22.1.1.0/24 IP internal 0 R-2(4) 30.1.1.0/24 IP internal 0 R-2(4) R-4 TE-IS 10 R-4 Ethernet0 R-2(4) R-2 22.1.1.0/24 IP TE 20 R-4 Ethernet0 R-4(4) 50.1.1.0/24 IP TE 20 R-4 Ethernet0 R-4(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent --------------------------------------------------------------- R-2 22.1.1.0/24 IP internal 0 R-2(4) 30.1.1.0/24 IP internal 0 R-2(4) R-1 TE-IS 10 R-1 Ethernet4 R-2(4) 20.1.1.0/24 IP TE 121 R-1 Ethernet4 R-1(4) R-2 30.1.1.0/24 IP TE 232 R-1 Ethernet4 R-1(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: 30.1.1.0/24 IP internal 0 R-2 contain string: 20.1.1.0/24 IP TE 121 R-1 Ethernet4 R-1 contain string: 30.1.1.0/24 IP TE 232 R-1 Ethernet4 R-1 |
|||
| 78 | Check isis database detail | R-3 | 00:02:39 | Pass |
| Parameter | ~$ vtysh -c "show isis database detail" | |||
| Response | Area AREA-1: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 91 0x00000006 0x9950 1128 1/0/0 Protocols Supported: IPv4 Area Address: 49.0001 Hostname: R-1 TE Router ID: 30.1.1.2 Router Capability: 30.1.1.2 , D:0, S:0 Extended Reachability: 1000.0000.0001.b5 (Metric: 111) IPv4 Interface Address: 30.1.1.2 Extended IP Reachability: 30.1.1.0/24 (Metric: 222) Extended IP Reachability: 20.1.1.0/24 (Metric: 111) R-1.b5-00 51 0x00000002 0x07d5 1134 1/0/0 Extended Reachability: 1000.0000.0001.00 (Metric: 0) Extended Reachability: 1000.0000.0002.00 (Metric: 0) R-3.00-00 * 91 0x00000006 0x2439 1130 0/0/0 Protocols Supported: IPv4 Area Address: 49.0001 Hostname: R-3 TE Router ID: 20.1.1.3 Router Capability: 20.1.1.3 , D:0, S:0 SR Algorithm: 0: SPF Extended Reachability: 1000.0000.0001.b5 (Metric: 10) IPv4 Interface Address: 20.1.1.3 Extended IP Reachability: 10.0.100.0/24 (Metric: 10) Extended IP Reachability: 20.1.1.0/24 (Metric: 10) 3 LSPs |
|||
| Judgement | Success inter-conditional operator : and contain string: Extended IP Reachability: 30.1.1.0/24 (Metric: 222) contain string: Extended IP Reachability: 20.1.1.0/24 (Metric: 111) |
|||
| 79 | Check isis topology | R-3 | 00:02:45 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ------------------------------------------------------------------ R-3 10.0.100.0/24 IP internal 0 R-3(4) 20.1.1.0/24 IP internal 0 R-3(4) R-1 TE-IS 10 R-1 Ethernet0 R-3(4) 0.0.0.0/0 IP internal 10 R-1 Ethernet0 R-3(4) R-1(4) R-1 pseudo_TE-IS 121 R-1 Ethernet0 R-1(4) 20.1.1.0/24 IP TE 121 R-1 Ethernet0 R-1(4) 30.1.1.0/24 IP TE 232 R-1 Ethernet0 R-1(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: 10.0.100.0/24 IP internal 0 R-3 contain string: 20.1.1.0/24 IP internal 0 R-3 contain string: 20.1.1.0/24 IP TE 121 R-1 Ethernet0 R-1 contain string: 30.1.1.0/24 IP TE 232 R-1 Ethernet0 R-1 |
|||
| 80 | Check ip route | R-3 | 00:02:50 | 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 I>*0.0.0.0/0 [115/10] via 20.1.1.2, Ethernet0, 00:00:34 C>*10.0.100.0/24 is directly connected, Ethernet4, 00:06:32 K 10.0.100.0/24 [0/0] is directly connected, Ethernet4, 00:06:32 C>*10.250.0.0/24 is directly connected, eth0, 00:14:42 I 20.1.1.0/24 [115/121] via 20.1.1.2, Ethernet0, inactive 00:00:34 C>*20.1.1.0/24 is directly connected, Ethernet0, 00:06:38 I>*30.1.1.0/24 [115/232] via 20.1.1.2, Ethernet0, 00:00:34 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:14:42 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*30.1.1.0/24 [115/232] via 20.1.1.2, Ethernet0 |
|||
| 81 | set circuit authentication - text | R-1 | 00:02:56 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet8" \ -c "isis password clear sonicText" \ -c "end" |
|||
| Response | Success | |||
| 82 | Check isis neighbor | R-1 | 00:03:01 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 29 2250.f292.84b6 |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-3 Ethernet8 1 Up |
|||
| 83 | Check isis topology | R-1 | 00:03:37 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent --------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ---------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) R-2 pseudo_TE-IS 232 R-2 Ethernet4 R-2(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-3 |
|||
| 84 | Check ip route | R-1 | 00:03:43 | 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:19:17 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:20 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:08:34 K 20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:08:34 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:08:46 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:01:29 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:08:40 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:08:40 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:19:17 |
|||
| Judgement | Success inter-conditional operator : and not contain string: I>*10.0.100.0/24 |
|||
| 85 | Check isis neighbor | R-3 | 00:03:49 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-1 Ethernet0 1 Initializing 28 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : or contain string: 1000.0000.0001 Ethernet0 1 Initializing contain string: R-1 Ethernet0 1 Initializing |
|||
| 86 | set circuit authentication - text | R-3 | 00:03:54 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet0" \ -c "isis password clear sonicText" \ -c "end" |
|||
| Response | Success | |||
| 87 | Check isis neighbor | R-3 | 00:04:00 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-1 Ethernet0 1 Up 28 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : or contain string: R-1 Ethernet0 1 Up contain string: 1000.0000.0001 Ethernet0 1 Up |
|||
| 88 | Check isis neighbor | R-1 | 00:04:05 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 28 2250.f292.84b6 R-3 Ethernet8 1 Up 28 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and contain string: R-3 Ethernet8 1 Up |
|||
| 89 | Check isis topology | R-1 | 00:04:11 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-3 TE-IS 111 R-3 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 R-3 Ethernet8 R-3(4) 20.1.1.0/24 IP TE 121 R-3 Ethernet8 R-3(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ---------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) R-2 pseudo_TE-IS 232 R-2 Ethernet4 R-2(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: R-3 |
|||
| 90 | Check ip route | R-1 | 00:04:16 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:00:21 C>*10.250.0.0/24 is directly connected, eth0, 00:19:50 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:21 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:09:07 K 20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:09:07 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:09:19 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:02:02 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:09:13 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:09:13 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:19:50 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 |
|||
| 91 | delete circuit authentication - text | R-1 | 00:04:22 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet8" \ -c "no isis password" \ -c "end" |
|||
| Response | Success | |||
| 92 | delete circuit authentication - text | R-3 | 00:04:27 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet0" \ -c "no isis password" \ -c "end" |
|||
| Response | Success | |||
| 93 | Check isis neighbor | R-1 | 00:04:33 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 28 2250.f292.84b6 R-3 Ethernet8 1 Up 28 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and contain string: R-3 Ethernet8 1 Up |
|||
| 94 | Check isis topology | R-1 | 00:04:38 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-3 TE-IS 111 R-3 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 R-3 Ethernet8 R-3(4) 20.1.1.0/24 IP TE 121 R-3 Ethernet8 R-3(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ---------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) R-2 pseudo_TE-IS 232 R-2 Ethernet4 R-2(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: R-3 |
|||
| 95 | Check ip route | R-1 | 00:04:44 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:00:48 C>*10.250.0.0/24 is directly connected, eth0, 00:20:17 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:48 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:09:34 K 20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:09:34 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:09:46 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:02:29 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:09:40 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:09:40 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:20:17 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*10.0.100.0/24 |
|||
| 96 | set circuit authentication - md5 | R-1 | 00:04:50 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "isis password md5 sonicMd5" \ -c "end" |
|||
| Response | Success | |||
| 97 | Check ip route | R-1 | 00:04:55 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:02:05 C>*10.250.0.0/24 is directly connected, eth0, 00:21:34 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:42 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:10:51 K 20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:10:51 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:11:03 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:10:57 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:10:57 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:21:34 |
|||
| Judgement | Success inter-conditional operator : and not contain string: I>*22.1.1.0/24 |
|||
| 98 | Check isis neighbor | R-1 | 00:06:07 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-3 Ethernet8 1 Up 29 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-2 Ethernet4 2 Up |
|||
| 99 | Check isis topology | R-1 | 00:06:12 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) 1000.0000.0002 TE-IS 111 1000.0000.0002 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) 20.1.1.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent --------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) |
|||
| Judgement | Success inter-conditional operator : and not contain string: R-2 |
|||
| 100 | Check isis neighbor | R-2 | 00:23:02 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-2: System Id Interface L State Holdtime SNPA 2000.0000.0002 Ethernet0 1 Up 27 2228.73c6.21d2 R-1 Ethernet4 2 Initializing 29 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : and contain string: R-1 Ethernet4 2 Initializing |
|||
| 101 | set circuit authentication - md5 | R-2 | 00:23:08 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "isis password md5 sonicMd5" \ -c "end" |
|||
| Response | Success | |||
| 102 | Check isis neighbor | R-2 | 00:23:13 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-2: System Id Interface L State Holdtime SNPA 2000.0000.0002 Ethernet0 1 Up 29 2228.73c6.21d2 R-1 Ethernet4 2 Up 28 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : and contain string: R-1 Ethernet4 2 Up |
|||
| 103 | Check isis neighbor | R-1 | 00:23:19 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 27 2250.f292.84b6 1000.0000.0002 Ethernet8 1 Up 27 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and contain string: R-2 Ethernet4 2 Up |
|||
| 104 | Check isis topology | R-1 | 00:23:24 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) 1000.0000.0002 TE-IS 111 1000.0000.0002 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) 20.1.1.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ---------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) R-2 pseudo_TE-IS 232 R-2 Ethernet4 R-2(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: R-2 |
|||
| 105 | Check ip route | R-1 | 00:23:30 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:19:34 C>*10.250.0.0/24 is directly connected, eth0, 00:39:03 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:20 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:28:20 K *20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:28:20 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:28:32 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:00:20 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:28:26 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:28:26 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:39:03 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*22.1.1.0/24 |
|||
| 106 | delete circuit authentication - md5 | R-1 | 00:23:35 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "no isis password" \ -c "end" |
|||
| Response | Success | |||
| 107 | delete circuit authentication - md5 | R-2 | 00:23:41 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "no isis password" \ -c "end" |
|||
| Response | Success | |||
| 108 | Check isis neighbor | R-2 | 00:23:46 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-2: System Id Interface L State Holdtime SNPA 2000.0000.0002 Ethernet0 1 Up 28 2228.73c6.21d2 R-1 Ethernet4 2 Up 29 223f.2c8b.31ee |
|||
| Judgement | Success inter-conditional operator : and contain string: R-1 Ethernet4 2 Up |
|||
| 109 | Check isis neighbor | R-1 | 00:23:52 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor" | |||
| Response | Area AREA-1: System Id Interface L State Holdtime SNPA R-2 Ethernet4 2 Up 30 2250.f292.84b6 1000.0000.0002 Ethernet8 1 Up 30 222d.fa2d.1f4a |
|||
| Judgement | Success inter-conditional operator : and contain string: R-2 Ethernet4 2 Up |
|||
| 110 | Check isis topology | R-1 | 00:23:57 | Pass |
| Parameter | ~$ vtysh -c "show isis topology" | |||
| Response | Area AREA-1: IS-IS paths to level-1 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ----------------------------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) 1000.0000.0002 TE-IS 111 1000.0000.0002 Ethernet8 R-1(4) R-1 10.0.100.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) 20.1.1.0/24 IP TE 121 1000.0000.0002 Ethernet8 1000.0000.0002(4) IS-IS paths to level-2 routers that speak IP Vertex Type Metric Next-Hop Interface Parent ---------------------------------------------------------------- R-1 30.1.1.0/24 IP internal 0 R-1(4) 20.1.1.0/24 IP internal 0 R-1(4) R-2 TE-IS 222 R-2 Ethernet4 R-1(4) R-2 pseudo_TE-IS 232 R-2 Ethernet4 R-2(4) 22.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) 30.1.1.0/24 IP TE 232 R-2 Ethernet4 R-2(4) |
|||
| Judgement | Success inter-conditional operator : and contain string: R-2 |
|||
| 111 | Check ip route | R-1 | 00:24:03 | 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 I>*10.0.100.0/24 [115/121] via 20.1.1.3, Ethernet8, 00:20:07 C>*10.250.0.0/24 is directly connected, eth0, 00:39:36 I 20.1.1.0/24 [115/121] via 20.1.1.3, Ethernet8, inactive 00:00:53 C>*20.1.1.0/24 is directly connected, Ethernet8, 00:28:53 K *20.1.1.0/24 [0/0] is directly connected, Ethernet8, 00:28:53 C>*21.1.1.0/24 is directly connected, Ethernet0, 00:29:05 I>*22.1.1.0/24 [115/232] via 30.1.1.4, Ethernet4, 00:00:53 C>*30.1.1.0/24 is directly connected, Ethernet4, 00:28:59 K 30.1.1.0/24 [0/0] is directly connected, Ethernet4, 00:28:59 K 240.127.1.0/24 [0/0] is directly connected, docker0, inactive 00:39:36 |
|||
| Judgement | Success inter-conditional operator : and contain string: I>*22.1.1.0/24 |
|||
| 112 | Set Interface Priority of R-1 Ethernet4 | R-1 | 00:24:08 | Pass |
| Parameter | ~$ vtysh -c "config" -c "interface Ethernet4" -c "isis priority 100" -c "end" | |||
| Response | Success | |||
| 113 | Check interface priority of R-1 | R-1 | 00:24:14 | Pass |
| Parameter | ~$ vtysh -c "show isis interface Ethernet4" | |||
| Response | Area AREA-1: Interface: Ethernet4, State: Up, Active, Circuit Id: 0xb4 Type: lan, Level: L2, SNPA: 223f.2c8b.31ee Level-2 Information: Metric: 222, Active neighbors: 1 Hello interval: 3, Holddown count: 10, Padding: no CNSP interval: 10, PSNP interval: 2 LAN Priority: 100, is DIS IP Prefix(es): 30.1.1.2/24 IPv6 Link-Locals: fe80::203f:2cff:fe8b:31ee/64 |
|||
| Judgement | Success inter-conditional operator : and contain string: LAN Priority: 100, is DIS |
|||
| 114 | Check isis neighbor R-1 | R-2 | 00:24:19 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-1" | |||
| Response | Area AREA-2: R-1 Interface: Ethernet4, Level: 2, State: Up, Expires in 28s Adjacency flaps: 3, Last: 1m11s ago Circuit type: L2, Speaks: IPv4 SNPA: 223f.2c8b.31ee, LAN id: R-1.b4 LAN Priority: 100, is DIS, DIS flaps: 2, Last: 5s ago Area Address(es): 49.0001 IPv4 Address(es): 30.1.1.2 |
|||
| Judgement | Success inter-conditional operator : and contain string: LAN Priority: 100, is DIS |
|||
| 115 | Check circuit priority | R-1 | 00:24:25 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-2" | |||
| Response | Area AREA-1: R-2 Interface: Ethernet4, Level: 2, State: Up, Expires in 27s Adjacency flaps: 1, Last: 1m17s ago Circuit type: L2, Speaks: IPv4 SNPA: 2250.f292.84b6, LAN id: 1000.0000.0001.b4 LAN Priority: 64, is not DIS, DIS flaps: 2, Last: 14s ago Area Address(es): 49.0002 IPv4 Address(es): 30.1.1.4 |
|||
| Judgement | Success inter-conditional operator : and contain string: LAN Priority: 64, is not DIS |
|||
| 116 | Set circuit priority | R-1 | 00:24:30 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "isis priority 60" \ -c "end" |
|||
| Response | Success | |||
| 117 | Check isis neighbor R-1 | R-2 | 00:24:36 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-1" | |||
| Response | Area AREA-2: R-1 Interface: Ethernet4, Level: 2, State: Up, Expires in 28s Adjacency flaps: 3, Last: 1m28s ago Circuit type: L2, Speaks: IPv4 SNPA: 223f.2c8b.31ee, LAN id: 2000.0000.0001.b4 LAN Priority: 60, is not DIS, DIS flaps: 3, Last: 2s ago Area Address(es): 49.0001 IPv4 Address(es): 30.1.1.2 |
|||
| Judgement | Success inter-conditional operator : and contain string: LAN Priority: 60, is not DIS |
|||
| 118 | Check circuit priority | R-1 | 00:24:41 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-2" | |||
| Response | Area AREA-1: R-2 Interface: Ethernet4, Level: 2, State: Up, Expires in 28s Adjacency flaps: 1, Last: 1m33s ago Circuit type: L2, Speaks: IPv4 SNPA: 2250.f292.84b6, LAN id: R-2.b4 LAN Priority: 64, is DIS, DIS flaps: 3, Last: 10s ago Area Address(es): 49.0002 IPv4 Address(es): 30.1.1.4 |
|||
| Judgement | Success inter-conditional operator : and contain string: LAN Priority: 64, is DIS |
|||
| 119 | Delete circuit priority | R-1 | 00:24:47 | Pass |
| Parameter | ~$ vtysh -c "config" \ -c "interface Ethernet4" \ -c "no isis priority" \ -c "end" |
|||
| Response | Success | |||
| 120 | Check isis neighbor R-1 | R-2 | 00:24:52 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-1" | |||
| Response | Area AREA-2: R-1 Interface: Ethernet4, Level: 2, State: Up, Expires in 29s Adjacency flaps: 3, Last: 1m44s ago Circuit type: L2, Speaks: IPv4 SNPA: 223f.2c8b.31ee, LAN id: 2000.0000.0001.b4 LAN Priority: 64, is not DIS, DIS flaps: 3, Last: 18s ago Area Address(es): 49.0001 IPv4 Address(es): 30.1.1.2 |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 121 | Check circuit priority | R-1 | 00:24:57 | Pass |
| Parameter | ~$ vtysh -c "show isis neighbor R-2" | |||
| Response | Area AREA-1: R-2 Interface: Ethernet4, Level: 2, State: Up, Expires in 29s Adjacency flaps: 1, Last: 1m49s ago Circuit type: L2, Speaks: IPv4 SNPA: 2250.f292.84b6, LAN id: R-2.b4 LAN Priority: 64, is DIS, DIS flaps: 3, Last: 26s ago Area Address(es): 49.0002 IPv4 Address(es): 30.1.1.4 |
|||
| Judgement | Success inter-conditional operator : and |
|||
| 122 | Check isis database | R-2 | 00:25:03 | Pass |
| Parameter | ~$ vtysh -c "show isis database" | |||
| Response | Area AREA-2: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-2.00-00 * 91 0x0000000b 0xed6e 1168 1/0/0 R-2.b3-00 * 51 0x00000002 0x6d49 398 0/0/0 2000.0000.0002.00-00 91 0x00000005 0x0916 525 0/0/0 3 LSPs IS-IS Level-2 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 91 0x0000000d 0xb9b2 1122 0/0/0 R-1.b4-00 27 0x00000001 0x37fe (29) 0/0/0 R-2.00-00 * 91 0x0000000b 0x0b58 1124 0/0/0 R-2.b4-00 * 51 0x00000005 0x5b68 1115 0/0/0 4 LSPs |
|||
| Judgement | Success inter-conditional operator : and contain string: R-1 |
|||
| 123 | Check isis database | R-3 | 00:25:08 | Pass |
| Parameter | ~$ vtysh -c "show isis database" | |||
| Response | Area AREA-1: IS-IS Level-1 link-state database: LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL R-1.00-00 91 0x0000000d 0x8b57 1157 1/0/0 R-1.b5-00 51 0x00000004 0xfae7 802 0/0/0 R-3.00-00 * 91 0x00000009 0x1e3c 745 0/0/0 3 LSPs |
|||
| Judgement | Success inter-conditional operator : and contain string: R-1 |
|||
| Parameter | AssertionError: Test failed after 10 retries for command: vtysh -c "show isis database" | |||
| Cause | duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>] ubuntus = [] vmhost = <tests.common.devices.vmhost.VMHost object at 0x7abd504753d0> parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7abd500ff9d0> record_property = <function record_property.<locals>.append_property at 0x7abd43c5bd30> 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ ']) ubuntu_paramiko_ssh = ([], []) 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 0x7abd500ff9d0> record_property = <function record_property.<locals>.append_property at 0x7abd43c5bd30> 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... https://sonic-net.github.io/SONiC/\r\n\r\nLast login: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ '] ubuntuHostname = [] ubuntu_paramiko_ssh = ([], []) ubuntu_ssh_prompt = [] ubuntus = [] vmhost = <tests.common.devices.vmhost.VMHost object at 0x7abd504753d0> test_sonic/test_sonic.py:413: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ duthosts = [<MultiAsicSonicHost R-1>, <MultiAsicSonicHost R-2>, <MultiAsicSonicHost R-3>, <MultiAsicSonicHost R-4>, <MultiAsicSonicHost R-5>] ubuntus = [] vmhost = <tests.common.devices.vmhost.VMHost object at 0x7abd504753d0> parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7abd500ff9d0> record_property = <function record_property.<locals>.append_property at 0x7abd43c5bd30> 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ '] ubuntuHostname = [], ubuntu_ssh_prompt = [] 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 isis database" Template = <class 'jinja2.environment.Template'> act_command = {'command': 'vtysh -c "show isis database"'} 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...spfd &"', '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: R-1\ncontain string: R-2\ncontain string: R-3' dev = 'R-5' device = ['R-1', 'R-2', 'R-3', 'R-4', 'R-5'] dut = <MultiAsicSonicHost R-1> 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 isis database"' execute_cmd = {'changed': True, 'stdout': 'Area AREA-1:\nIS-IS Level-1 link-state database:\nLSP ID PduLen SeqNumb...51 0x00000005 0x5b68 965 0/0/0', ' 4 LSPs'], 'stderr_lines': [], '_ansible_no_log': None, 'failed': False} expect_ok = False expect_values = ['R-1', 'R-2', 'R-3'] 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',...0.0.100.1/24'}], 'R-4': [{'intf': 'Ethernet0', 'ip': '22.1.1.11/24'}, {'intf': 'Ethernet4', 'ip': '50.1.1.2/24'}], ...} ip_profile = 'common_ip' keys = {'scenario_name': 'Set Dynamic Hostname', 'steps': [{'actions': [{'command': 'vtysh -c "show isis database"'}], 'delay...'}], 'delay': 10, 'expect': {'mode': 'and', 'values': [['1000.0000.0001']]}, 'name': 'Check isis database', ...}, ...]} node_name = 'R-1' nomalized_lines = ['Area AREA-1:', 'IS-IS Level-1 link-state database:', 'LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL', 'R-1.00-00 ... 1013 1/0/0', 'R-1.b5-00 * 51 0x00000004 0xfae7 657 0/0/0', '1000.0000.0002.00-00 91 0x00000009 0x1e3c 600 0/0/0', ...] not_contain_str = '' not_expect_ok = True not_expect_values = [] output = 'Area AREA-1:\nIS-IS Level-1 link-state database:\nLSP ID PduLen SeqNumber Chksum Holdtime ATT/P...0x0000000b 0x0b58 974 0/0/0\nR-2.b4-00 51 0x00000005 0x5b68 965 0/0/0\n 4 LSPs\n' parse_scenario = <tests.common.parse_scenario.ParseScenario object at 0x7abd500ff9d0> re = <module 're' from '/usr/lib/python3.8/re.py'> record_property = <function record_property.<locals>.append_property at 0x7abd43c5bd30> reload_config = None rendered = '\n# Start daemons\ndocker exec -i bgp bash -c "/usr/lib/frr/ripd &"\ndocker exec -i bgp bash -c "/usr/lib/frr/isisd &...et IPs\n\nsudo config interface ip add Ethernet0 50.1.1.3/24\n\nsudo config interface ip add Ethernet4 40.0.100.1/24\n' scenario = <tests.common.parse_scenario.ParseScenario object at 0x7abd500ff9d0> scenario_name = 'Set Dynamic Hostname' scenario_path = 'test_sonic/integration_scen/scenario_isis.yaml' server = <tests.common.devices.vmhost.VMHost object at 0x7abd504753d0> session_node_name = 'R-5' single_command = 'vtysh -c "show isis database"' 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ '] ssh = 'Linux R-5 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ ' 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: Mon Oct 26 23:11:28 2026 from 10.250.0.1\r\r\nadmin@R-5:~$ '] start_daemons = True start_time = '23:54:35' stderr = '' stdout = 'Area AREA-1:\nIS-IS Level-1 link-state database:\nLSP ID PduLen SeqNumber Chksum Holdtime ATT/P... 0x0000000b 0x0b58 974 0/0/0\nR-2.b4-00 51 0x00000005 0x5b68 965 0/0/0\n 4 LSPs' sub_sce_exp_mode = 'and' sub_sce_exp_values = [['R-1', 'R-2', 'R-3']] sub_sce_not_exp_values = [[]] sub_scenario_actions = [{'command': 'vtysh -c "show isis database"'}] sub_scenario_delay = 10 sub_scenario_expect = {'mode': 'and', 'values': [['R-1', 'R-2', 'R-3']]} sub_scenario_name = 'Check isis database' sub_scenario_not_expect = {'values': [[]]} sub_scenario_retries = 10 sum_img_path = '/data/NetAutoTestFW/tests/converter_report/topology_img/topo-L2-L3.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 isis database"'}], 'delay': 10, 'expect': {'mode': 'and', 'values': [['R-1', 'R-2', 'R-3']]}, 'name': 'Check isis database', ...} template_content = '{% if start_daemons %}\n# Start daemons\ndocker exec -i bgp bash -c "/usr/lib/frr/ripd &"\ndocker exec -i bgp bash -c...%}\n\n# Set IPs\n{% for item in ip_list %}\nsudo config interface ip add {{ item.intf }} {{ item.ip }}\n{% endfor %}\n' template_path = 'tests/common/templates/common_setup.j2' timestamps = '00:25:14' topo_img_name = 'topo-L2-L3.jpg' topo_img_path = '/data/NetAutoTestFW/tests/converter_report/topology_img' trace_success = False ubuntu = [] ubuntuHostname = [] ubuntu_ssh_prompt = [] ubuntus = [] vmhost = <tests.common.devices.vmhost.VMHost object at 0x7abd504753d0> vtb = {'all': {'children': {'TGS': {'hosts': {'TG-1': {'ansible_host': '10.250.0.108', 'ansible_password': 'password', 'ansi...': [...], 'R-4': [...], ...}, 'common_ip': {'R-1': [...], 'R-2': [...], 'R-3': [...], 'R-4': [...], ...}, ...}}, ...}}} yaml = <module 'yaml' from '/usr/local/lib/python3.8/dist-packages/yaml/__init__.py'> test_sonic/test_sonic.py:294: AssertionError |
|||