test_pim_basic2.py::PIMTopo2Test

Sequence of checks exercising PIM and BFD neighbor establishing.

::startup
::pim_neigh_up:#106:r1/pimd/vtysh[show ip pim neighbor json]
::pim_neigh_up:#106:r2/pimd/vtysh[show ip pim neighbor json]
::pim_neigh_up:#106:r3/pimd/vtysh[show ip pim neighbor json]
::pim_neigh_up:#106:r4/pimd/vtysh[show ip pim neighbor json]
::bfd_neigh_up:#125:r1/bfdd/vtysh[enable; show bfd peers json]
::bfd_neigh_up:#125:r2/bfdd/vtysh[enable; show bfd peers json]
::bfd_neigh_up:#125:r3/bfdd/vtysh[enable; show bfd peers json]
::bfd_neigh_up:#125:r4/bfdd/vtysh[enable; show bfd peers json]
::reconverge_after_linkflap:#134:r4/link[r4-sw3 (sw3) -> DOWN]
::reconverge_after_linkflap:#136:r4/pimd/vtysh[show ip pim neighbor json]
::reconverge_after_linkflap:#142:r2/pimd/vtysh[show ip pim neighbor json]
::reconverge_after_linkflap:#146:r4/link[r4-sw3 (sw3) -> UP]
::reconverge_after_linkflap:#153:r4/pimd/vtysh[show ip pim neighbor json]
::reconverge_after_linkflap:#162:r2/pimd/vtysh[show ip pim neighbor json]
::verify_bfd_profile:#179:r1/bfdd/vtysh[enable; show bfd peers json]
::verify_bfd_profile:#184:r2/bfdd/vtysh[enable; show bfd peers json]
::shutdown

::startup

passed after 1.94s
('test_pim_basic2.py', -inf, 'startup')

::pim_neigh_up

All pimd processes should see all of each other.

::pim_neigh_up:#106:r1/pimd/vtysh[show ip pim neighbor json]

passed after 0.70s, CLI command: show ip pim neighbor json
Expected output:
{'r1-sw1': {'10.101.0.2': {}}}
('test_pim_basic2.py', 106, '#106:r1/pimd/vtysh[show ip pim neighbor json]')

::pim_neigh_up:#106:r2/pimd/vtysh[show ip pim neighbor json]

passed after 0.01s, CLI command: show ip pim neighbor json
Expected output:
{'r2-sw1': {'10.101.0.1': {}}, 'r2-sw3': {'10.103.0.4': {}}, 'r2-sw2': {'10.102.0.3': {}}}
('test_pim_basic2.py', 106, '#106:r2/pimd/vtysh[show ip pim neighbor json]')

::pim_neigh_up:#106:r3/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
Expected output:
{'r3-sw2': {'10.102.0.2': {}}}
('test_pim_basic2.py', 106, '#106:r3/pimd/vtysh[show ip pim neighbor json]')

::pim_neigh_up:#106:r4/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
Expected output:
{'r4-sw3': {'10.103.0.2': {}}}
('test_pim_basic2.py', 106, '#106:r4/pimd/vtysh[show ip pim neighbor json]')

::bfd_neigh_up

All bfdd processes should see all of each other.

::bfd_neigh_up:#125:r1/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.101.0.2', 'status': 'up'}]
('test_pim_basic2.py', 125, '#125:r1/bfdd/vtysh[enable; show bfd peers json]')

::bfd_neigh_up:#125:r2/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.101.0.1', 'status': 'up'}, {'peer': '10.103.0.4', 'status': 'up'}, {'peer': '10.102.0.3', 'status': 'up'}]
('test_pim_basic2.py', 125, '#125:r2/bfdd/vtysh[enable; show bfd peers json]')

::bfd_neigh_up:#125:r3/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.102.0.2', 'status': 'up'}]
('test_pim_basic2.py', 125, '#125:r3/bfdd/vtysh[enable; show bfd peers json]')

::bfd_neigh_up:#125:r4/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.103.0.2', 'status': 'up'}]
('test_pim_basic2.py', 125, '#125:r4/bfdd/vtysh[enable; show bfd peers json]')

::reconverge_after_linkflap

Check neighbors while flapping r2--r4 link down and back up again.

::reconverge_after_linkflap:#134:r4/link[r4-sw3 (sw3) -> DOWN]

passed after 0.02s
('test_pim_basic2.py', 134, '#134:r4/link[r4-sw3 (sw3) -> DOWN]')

::reconverge_after_linkflap:#136:r4/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
('test_pim_basic2.py', 136, '#136:r4/pimd/vtysh[show ip pim neighbor json]')

::reconverge_after_linkflap:#142:r2/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
Expected output:
{'r2-sw3': {}}
('test_pim_basic2.py', 142, '#142:r2/pimd/vtysh[show ip pim neighbor json]')

::reconverge_after_linkflap:#146:r4/link[r4-sw3 (sw3) -> UP]

passed after 0.02s
('test_pim_basic2.py', 146, '#146:r4/link[r4-sw3 (sw3) -> UP]')

::reconverge_after_linkflap:#153:r4/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
Expected output:
{'r4-sw3': {'10.103.0.2': {}}}
('test_pim_basic2.py', 153, '#153:r4/pimd/vtysh[show ip pim neighbor json]')

::reconverge_after_linkflap:#162:r2/pimd/vtysh[show ip pim neighbor json]

passed after 0.00s, CLI command: show ip pim neighbor json
Expected output:
{'r2-sw3': {'10.103.0.4': {}}}
('test_pim_basic2.py', 162, '#162:r2/pimd/vtysh[show ip pim neighbor json]')

::verify_bfd_profile

Check proper BFD profile propagates from PIM to BFD.

::verify_bfd_profile:#179:r1/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.101.0.1', 'receive-interval': 250, 'transmit-interval': 250}]
('test_pim_basic2.py', 179, '#179:r1/bfdd/vtysh[enable; show bfd peers json]')

::verify_bfd_profile:#184:r2/bfdd/vtysh[enable; show bfd peers json]

passed after 0.00s, CLI command: enable show bfd peers json
Expected output:
[{}, {'peer': '10.101.0.1', 'receive-interval': 250, 'transmit-interval': 250}]
('test_pim_basic2.py', 184, '#184:r2/bfdd/vtysh[enable; show bfd peers json]')

::shutdown

passed after 1.25s
('test_pim_basic2.py', inf, 'shutdown')
net router-r1 r1 10.255.0.1/32 fd00::1/128 r1-sw1 fe:01:00:bc:01:00 10.101.0.1/16 fdbc:1::fc01:ff:febc:100/64 lan-sw1 sw1 10.101.0.0/16 fdbc:1::/64 router-r1:r1-sw1--lan-sw1 router-r2 r2 10.255.0.2/32 fd00::2/128 r2-sw1 fe:02:00:bc:01:00 10.101.0.2/16 fdbc:1::fc02:ff:febc:100/64 r2-sw3 fe:02:00:bc:03:00 10.103.0.2/16 fdbc:3::fc02:ff:febc:300/64 r2-sw2 fe:02:00:bc:02:00 10.102.0.2/16 fdbc:2::fc02:ff:febc:200/64 router-r2:r2-sw1--lan-sw1 lan-sw3 sw3 10.103.0.0/16 fdbc:3::/64 router-r2:r2-sw3--lan-sw3 lan-sw2 sw2 10.102.0.0/16 fdbc:2::/64 router-r2:r2-sw2--lan-sw2 router-r4 r4 10.255.0.4/32 fd00::4/128 r4-sw3 fe:04:00:bc:03:00 10.103.0.4/16 fdbc:3::fc04:ff:febc:300/64 router-r4:r4-sw3--lan-sw3 router-r3 r3 10.255.0.3/32 fd00::3/128 r3-sw2 fe:03:00:bc:02:00 10.102.0.3/16 fdbc:2::fc03:ff:febc:200/64 router-r3:r3-sw2--lan-sw2