mirror_frr/tests/topotests/bgp-evpn-overlay-index-gateway
Ameya Dharkar eb3859f2f4 tests: Topotest for BGP EVPN Overlay Index Gateway IP feature
Following functionality is covered:

         +--------+ BGP     +--------+ BGP  +--------+      +--------+
    SN1  |        | IPv4/v6 |        | EVPN |        |      |        |
   ======+ Host1  +---------+   PE1  +------+   PE2  +------+  Host2 +
         |        |         |        |      |        |      |        |
         +--------+         +--------+      +--------+      +--------+

Host1 is connected to PE1 and host2 is connected to PE2
Host1 and PE1 have IPv4/v6 BGP sessions.
PE1 and PE2 gave EVPN session.
Host1 advertises IPv4/v6 prefixes to PE1.
PE1 advertises these prefixes to PE2 as EVPN type-5 routes.
Gateway IP for these EVPN type-5 routes is host1 IP.
Host1 MAC/IP is advertised by PE1 as EVPN type-2 route

Following testcases are covered:
TC_1:
Check BGP and zebra states for above topology at PE1 and PE2.

TC_2:
Stop advertising prefixes from host1. It should withdraw type-5 routes. Check
states at PE1 and PE2
Advertise the prefixes again. Check states.

TC_3:
Shut down VxLAN interface at PE1. This should withdraw type-2 routes. Check
states at PE1 and PE2.
Enable VxLAN interface again. Check states.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
2021-06-07 17:59:45 -07:00
..
host1 tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00
host2 tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00
PE1 tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00
PE2 tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00
__init__.py tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00
test_bgp_evpn_overlay_index_gateway.py tests: Topotest for BGP EVPN Overlay Index Gateway IP feature 2021-06-07 17:59:45 -07:00