test_rip.py::RIPBasic
- ::startup
- ::test:#113:r1/ripd/vtysh[show ip rip status]
- ::test:#138:r2/ripd/vtysh[show ip rip status]
- ::test:#160:r3/ripd/vtysh[show ip rip status]
- ::test:#178:r1/ripd/vtysh[show ip rip]
- ::test:#194:r2/ripd/vtysh[show ip rip]
- ::test:#210:r3/ripd/vtysh[show ip rip]
- ::shutdown
::startup
passed after 1.83s
('test_rip.py', -inf, 'startup')
::test
::test:#113:r1/ripd/vtysh[show ip rip status]
passed after 0.60s, CLI command: show ip rip status
Expected output:
Routing Protocol is "rip" Sending updates every 5 seconds with +/-50%, next due in $$\d+$$ seconds Timeout after 180 seconds, garbage collect after 5 seconds Outgoing update filter list for all interface is not set Incoming update filter list for all interface is not set Default redistribution metric is 1 Redistributing: Default version control: send version 2, receive version 2 Interface Send Recv Key-chain r1-lan1 2 2 r1-stub2 2 2 r1-stub3 2 2 Routing for Networks: 193.1.1.0/26 r1-stub2 r1-stub3 Passive Interface(s): r1-stub3 Routing Information Sources: Gateway BadPackets BadRoutes Distance Last Update 193.1.1.2 0 0 120 $$[0-9:]+$$ Distance: (default is 120)('test_rip.py', 113, '#113:r1/ripd/vtysh[show ip rip status]')
::test:#138:r2/ripd/vtysh[show ip rip status]
passed after 0.00s, CLI command: show ip rip status
Expected output:
Routing Protocol is "rip" Sending updates every 5 seconds with +/-50%, next due in $$\d+$$ seconds Timeout after 180 seconds, garbage collect after 5 seconds Outgoing update filter list for all interface is not set Incoming update filter list for all interface is not set Default redistribution metric is 1 Redistributing: Default version control: send version 2, receive version 2 Interface Send Recv Key-chain r2-lan1 2 2 r2-lan2 2 2 Routing for Networks: 193.1.1.0/26 193.1.2.0/24 Routing Information Sources: Gateway BadPackets BadRoutes Distance Last Update 193.1.1.1 0 0 120 $$[0-9:]+$$ 193.1.2.3 0 0 120 $$[0-9:]+$$ Distance: (default is 120)('test_rip.py', 138, '#138:r2/ripd/vtysh[show ip rip status]')
::test:#160:r3/ripd/vtysh[show ip rip status]
passed after 0.00s, CLI command: show ip rip status
Expected output:
Routing Protocol is "rip" Sending updates every 5 seconds with +/-50%, next due in $$\d+$$ seconds Timeout after 180 seconds, garbage collect after 5 seconds Outgoing update filter list for all interface is not set Incoming update filter list for all interface is not set Default redistribution metric is 1 Redistributing: connected static Default version control: send version 2, receive version 2 Interface Send Recv Key-chain r3-lan2 2 2 Routing for Networks: 193.1.2.0/24 Routing Information Sources: Gateway BadPackets BadRoutes Distance Last Update 193.1.2.2 0 0 120 $$[0-9:]+$$ Distance: (default is 120)('test_rip.py', 160, '#160:r3/ripd/vtysh[show ip rip status]')
::test:#178:r1/ripd/vtysh[show ip rip]
passed after 3.59s, CLI command: show ip rip
Expected output:
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface Network Next Hop Metric From Tag Time R(n) 10.103.0.0/16 193.1.1.2 3 193.1.1.2 0 $$[0-9:]+$$ R(n) 10.104.0.0/16 193.1.1.2 3 193.1.1.2 0 $$[0-9:]+$$ C(i) 10.106.0.0/16 0.0.0.0 1 self 0 C(i) 10.107.0.0/16 0.0.0.0 1 self 0 C(i) 193.1.1.0/26 0.0.0.0 1 self 0 R(n) 193.1.2.0/26 193.1.1.2 2 193.1.1.2 0 $$[0-9:]+$$('test_rip.py', 178, '#178:r1/ripd/vtysh[show ip rip]')
::test:#194:r2/ripd/vtysh[show ip rip]
passed after 0.00s, CLI command: show ip rip
Expected output:
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface Network Next Hop Metric From Tag Time R(n) 10.103.0.0/16 193.1.2.3 2 193.1.2.3 0 $$[0-9:]+$$ R(n) 10.104.0.0/16 193.1.2.3 2 193.1.2.3 0 $$[0-9:]+$$ R(n) 10.106.0.0/16 193.1.1.1 2 193.1.1.1 0 $$[0-9:]+$$ R(n) 10.107.0.0/16 193.1.1.1 2 193.1.1.1 0 $$[0-9:]+$$ C(i) 193.1.1.0/26 0.0.0.0 1 self 0 C(i) 193.1.2.0/26 0.0.0.0 1 self 0('test_rip.py', 194, '#194:r2/ripd/vtysh[show ip rip]')
::test:#210:r3/ripd/vtysh[show ip rip]
passed after 0.00s, CLI command: show ip rip
Expected output:
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface Network Next Hop Metric From Tag Time C(r) 10.103.0.0/16 0.0.0.0 1 self 0 S(r) 10.104.0.0/16 10.103.0.4 1 self 0 R(n) 10.106.0.0/16 193.1.2.2 3 193.1.2.2 0 $$[0-9:]+$$ R(n) 10.107.0.0/16 193.1.2.2 3 193.1.2.2 0 $$[0-9:]+$$ R(n) 193.1.1.0/26 193.1.2.2 2 193.1.2.2 0 $$[0-9:]+$$ C(i) 193.1.2.0/26 0.0.0.0 1 self 0('test_rip.py', 210, '#210:r3/ripd/vtysh[show ip rip]')
::shutdown
passed after 1.25s
('test_rip.py', inf, 'shutdown')