From 9a75228916cdcbf2be445a0a3cef2119bc310aec Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Wed, 29 Aug 2018 15:48:37 +0000 Subject: [PATCH] bgp_rfapi_basic_sanity_config2: added rfapi test with partial table download This is identical to bgp_rfapi_basic_sanity with the exception of non-default config Signed-off-by: Lou Berger --- .../__init__.py | 0 .../customize.py | 1 + .../r1/bgpd.conf | 50 ++++++++++++++++++ .../r1/ospfd.conf | 1 + .../r1/zebra.conf | 1 + .../r2/bgpd.conf | 33 ++++++++++++ .../r2/ospfd.conf | 1 + .../r2/zebra.conf | 1 + .../r3/bgpd.conf | 51 ++++++++++++++++++ .../r3/ospfd.conf | 1 + .../r3/zebra.conf | 1 + .../r4/bgpd.conf | 52 +++++++++++++++++++ .../r4/ospfd.conf | 1 + .../r4/zebra.conf | 1 + .../bgp_rfapi_basic_sanity_config2/scripts | 1 + .../test_bgp_rfapi_basic_sanity_config2.py | 1 + 16 files changed, 197 insertions(+) create mode 100755 tests/topotests/bgp_rfapi_basic_sanity_config2/__init__.py create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/customize.py create mode 100644 tests/topotests/bgp_rfapi_basic_sanity_config2/r1/bgpd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r1/ospfd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r1/zebra.conf create mode 100644 tests/topotests/bgp_rfapi_basic_sanity_config2/r2/bgpd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r2/ospfd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r2/zebra.conf create mode 100644 tests/topotests/bgp_rfapi_basic_sanity_config2/r3/bgpd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r3/ospfd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r3/zebra.conf create mode 100644 tests/topotests/bgp_rfapi_basic_sanity_config2/r4/bgpd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r4/ospfd.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/r4/zebra.conf create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/scripts create mode 120000 tests/topotests/bgp_rfapi_basic_sanity_config2/test_bgp_rfapi_basic_sanity_config2.py diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/__init__.py b/tests/topotests/bgp_rfapi_basic_sanity_config2/__init__.py new file mode 100755 index 0000000000..e69de29bb2 diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/customize.py b/tests/topotests/bgp_rfapi_basic_sanity_config2/customize.py new file mode 120000 index 0000000000..a6b653acab --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/customize.py @@ -0,0 +1 @@ +../bgp_rfapi_basic_sanity/customize.py \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/bgpd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/bgpd.conf new file mode 100644 index 0000000000..eb8d703a35 --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/bgpd.conf @@ -0,0 +1,50 @@ +frr defaults traditional +! +hostname r1 +password zebra +log stdout notifications +log monitor notifications +log commands +router bgp 5226 + bgp router-id 1.1.1.1 + bgp cluster-id 1.1.1.1 + neighbor 2.2.2.2 remote-as 5226 + neighbor 2.2.2.2 update-source 1.1.1.1 +! + address-family ipv4 unicast + redistribute vnc-direct + no neighbor 2.2.2.2 activate + exit-address-family +! + address-family ipv4 vpn + neighbor 2.2.2.2 activate + exit-address-family +! + rfp holddown-factor 100 + rfp full-table-download off +! + vnc defaults + rd auto:vn:123 + response-lifetime 45 + rt both 1000:1 1000:2 + exit-vnc +! + vnc nve-group red + prefix vn 10.0.0.0/8 + rd auto:vn:10 + rt both 1000:10 + exit-vnc +! + vnc nve-group blue + prefix vn 20.0.0.0/8 + rd auto:vn:20 + rt both 1000:20 + exit-vnc +! + vnc nve-group green + prefix vn 30.0.0.0/8 + rd auto:vn:20 + rt both 1000:30 + exit-vnc +! +end diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/ospfd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/ospfd.conf new file mode 120000 index 0000000000..d09b09eef4 --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/ospfd.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r1/ospfd.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/zebra.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/zebra.conf new file mode 120000 index 0000000000..728b1b9a3a --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r1/zebra.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r1/zebra.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/bgpd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/bgpd.conf new file mode 100644 index 0000000000..241c2ac0ae --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/bgpd.conf @@ -0,0 +1,33 @@ +frr defaults traditional +! +hostname r2 +password zebra +log stdout notifications +log monitor notifications +log commands +router bgp 5226 + bgp router-id 2.2.2.2 + bgp cluster-id 2.2.2.2 + neighbor 1.1.1.1 remote-as 5226 + neighbor 1.1.1.1 update-source 2.2.2.2 + neighbor 3.3.3.3 remote-as 5226 + neighbor 3.3.3.3 update-source 2.2.2.2 + neighbor 4.4.4.4 remote-as 5226 + neighbor 4.4.4.4 update-source 2.2.2.2 + address-family ipv4 unicast + no neighbor 1.1.1.1 activate + no neighbor 3.3.3.3 activate + no neighbor 4.4.4.4 activate + exit-address-family + address-family ipv4 vpn + neighbor 1.1.1.1 activate + neighbor 1.1.1.1 route-reflector-client + neighbor 3.3.3.3 activate + neighbor 3.3.3.3 route-reflector-client + neighbor 4.4.4.4 activate + neighbor 4.4.4.4 route-reflector-client + exit-address-family +end + + + diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/ospfd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/ospfd.conf new file mode 120000 index 0000000000..834554e5e7 --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/ospfd.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r2/ospfd.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/zebra.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/zebra.conf new file mode 120000 index 0000000000..2fefda556c --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r2/zebra.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r2/zebra.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/bgpd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/bgpd.conf new file mode 100644 index 0000000000..61164c6948 --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/bgpd.conf @@ -0,0 +1,51 @@ +frr defaults traditional +! +hostname r3 +password zebra +log stdout notifications +log monitor notifications +log commands +router bgp 5226 + bgp router-id 3.3.3.3 + bgp cluster-id 3.3.3.3 + neighbor 2.2.2.2 remote-as 5226 + neighbor 2.2.2.2 update-source 3.3.3.3 +! + address-family ipv4 unicast + no neighbor 2.2.2.2 activate + exit-address-family + address-family ipv4 vpn + neighbor 2.2.2.2 activate + exit-address-family +! + rfp holddown-factor 100 + rfp full-table-download off +! + vnc defaults + rd auto:vn:123 + response-lifetime 45 + rt both 1000:1 1000:2 + exit-vnc +! + vnc nve-group red + prefix vn 10.0.0.0/8 + rd auto:vn:10 + rt both 1000:10 + exit-vnc +! + vnc nve-group blue + prefix vn 20.0.0.0/8 + rd auto:vn:20 + rt both 1000:20 + exit-vnc +! + vnc nve-group green + prefix vn 30.0.0.0/8 + rd auto:vn:20 + rt both 1000:30 + exit-vnc +! +end + + + diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/ospfd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/ospfd.conf new file mode 120000 index 0000000000..353b9adb55 --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/ospfd.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r3/ospfd.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/zebra.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/zebra.conf new file mode 120000 index 0000000000..44a63cfdac --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r3/zebra.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r3/zebra.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/bgpd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/bgpd.conf new file mode 100644 index 0000000000..4294274d3d --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/bgpd.conf @@ -0,0 +1,52 @@ +frr defaults traditional +! +hostname r4 +password zebra +log stdout notifications +log monitor notifications +log commands +router bgp 5226 + bgp router-id 4.4.4.4 + bgp cluster-id 4.4.4.4 + neighbor 2.2.2.2 remote-as 5226 + neighbor 2.2.2.2 update-source 4.4.4.4 +! + address-family ipv4 unicast + no neighbor 2.2.2.2 activate + exit-address-family +! + address-family ipv4 vpn + neighbor 2.2.2.2 activate + exit-address-family +! + rfp holddown-factor 100 + rfp full-table-download off +! + vnc defaults + rd auto:vn:123 + response-lifetime 45 + rt both 1000:1 1000:2 + exit-vnc +! + vnc nve-group red + prefix vn 10.0.0.0/8 + rd auto:vn:10 + rt both 1000:10 + exit-vnc +! + vnc nve-group blue + prefix vn 20.0.0.0/8 + rd auto:vn:20 + rt both 1000:20 + exit-vnc +! + vnc nve-group green + prefix vn 30.0.0.0/8 + rd auto:vn:20 + rt both 1000:30 + exit-vnc +! +end + + + diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/ospfd.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/ospfd.conf new file mode 120000 index 0000000000..3d7a0aafee --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/ospfd.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r4/ospfd.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/zebra.conf b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/zebra.conf new file mode 120000 index 0000000000..c2fcd197bd --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/r4/zebra.conf @@ -0,0 +1 @@ +../../bgp_rfapi_basic_sanity/r4/zebra.conf \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/scripts b/tests/topotests/bgp_rfapi_basic_sanity_config2/scripts new file mode 120000 index 0000000000..8ac974dfad --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/scripts @@ -0,0 +1 @@ +../bgp_rfapi_basic_sanity/scripts/ \ No newline at end of file diff --git a/tests/topotests/bgp_rfapi_basic_sanity_config2/test_bgp_rfapi_basic_sanity_config2.py b/tests/topotests/bgp_rfapi_basic_sanity_config2/test_bgp_rfapi_basic_sanity_config2.py new file mode 120000 index 0000000000..54a67a86ba --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity_config2/test_bgp_rfapi_basic_sanity_config2.py @@ -0,0 +1 @@ +../bgp_rfapi_basic_sanity/test_bgp_rfapi_basic_sanity.py \ No newline at end of file -- 2.39.5