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')
net router-r1 r1 r1-stub1 fe:01:00:bc:05:00 10.105.0.1/16 r1-stub2 fe:01:00:bc:06:00 10.106.0.1/16 r1-stub3 fe:01:00:bc:07:00 10.107.0.1/16 r1-lan1 fe:01:00:bc:01:00 193.1.1.1/26 lan-stub1 stub1 10.105.0.0/16 router-r1:r1-stub1--lan-stub1 lan-stub2 stub2 10.106.0.0/16 router-r1:r1-stub2--lan-stub2 lan-stub3 stub3 10.107.0.0/16 router-r1:r1-stub3--lan-stub3 lan-lan1 lan1 193.1.1.0/26 router-r1:r1-lan1--lan-lan1 router-r2 r2 r2-lan1 fe:02:00:bc:01:00 193.1.1.2/26 r2-lan2 fe:02:00:bc:02:00 193.1.2.2/26 router-r2:r2-lan1--lan-lan1 lan-lan2 lan2 193.1.2.0/26 router-r2:r2-lan2--lan-lan2 router-r3 r3 r3-lan2 fe:03:00:bc:02:00 193.1.2.3/26 r3-lan3 fe:03:00:bc:03:00 10.103.0.3/16 router-r3:r3-lan2--lan-lan2 lan-lan3 lan3 10.103.0.0/16 router-r3:r3-lan3--lan-lan3 router-rtsta rtsta rtsta-lansta fe:04:00:bc:04:00 10.104.0.4/16 rtsta-lan3 fe:04:00:bc:03:00 10.103.0.4/16 router-rtsta:rtsta-lan3--lan-lan3 lan-lansta lansta 10.104.0.0/16 router-rtsta:rtsta-lansta--lan-lansta