From 9bf3a5c15ad2a06a0f3cbb3672f2f1daba34e165 Mon Sep 17 00:00:00 2001 From: Pier Carlo Chiodi Date: Sat, 20 May 2023 16:21:42 +0200 Subject: [PATCH] Update tests [skip ci] --- docs/SUPPORTED_SPEAKERS_CI.txt | 22 +- tests/last | 150 +-- tests/last.json | 2 +- tests/last_results/extres.last | 2 +- .../live_bird_hooks_example_bird1.last | 2 +- .../live_bird_hooks_example_bird2.last | 2 +- .../live_bird_hooks_example_bird3.last | 2 +- .../last_results/live_communities_bird1.last | 2 +- .../last_results/live_communities_bird2.last | 2 +- .../last_results/live_communities_bird3.last | 2 +- .../live_communities_openbgpd_portable.last | 2 +- tests/last_results/live_default_bird1.last | 2 +- tests/last_results/live_default_bird2.last | 2 +- tests/last_results/live_default_bird3.last | 2 +- .../live_default_openbgpd_portable.last | 2 +- tests/last_results/live_global_bird1.last | 2 +- tests/last_results/live_global_bird2.last | 2 +- tests/last_results/live_global_bird3.last | 2 +- .../live_global_openbgpd_portable.last | 2 +- tests/last_results/live_gshut_bird1.last | 2 +- tests/last_results/live_gshut_bird2.last | 2 +- tests/last_results/live_gshut_bird3.last | 2 +- .../live_gshut_openbgpd_portable.last | 2 +- tests/last_results/live_max_prefix_bird1.last | 2 +- tests/last_results/live_max_prefix_bird2.last | 2 +- tests/last_results/live_max_prefix_bird3.last | 2 +- .../live_max_prefix_openbgpd_portable.last | 2 +- .../last_results/live_path_hiding_bird1.last | 2 +- .../last_results/live_path_hiding_bird2.last | 2 +- .../last_results/live_path_hiding_bird3.last | 2 +- .../live_path_hiding_openbgpd_portable.last | 2 +- .../last_results/live_rich_example_bird1.last | 2 +- .../last_results/live_rich_example_bird2.last | 2 +- .../live_rich_example_openbgpd_portable.last | 2 +- tests/last_results/live_roles_bird2.last | 2 +- tests/last_results/live_roles_bird3.last | 48 +- .../live_roles_openbgpd_portable.last | 2 +- tests/last_results/live_rpki_bird1.last | 2 +- tests/last_results/live_rpki_bird2.last | 2 +- tests/last_results/live_rpki_bird3.last | 2 +- .../live_rpki_bov_comms_bird1.last | 2 +- .../live_rpki_bov_comms_bird2.last | 2 +- .../live_rpki_bov_comms_bird3.last | 2 +- .../live_rpki_rtr_example_bird2.last | 2 +- .../live_rpki_rtr_example_bird3.last | 2 +- ...ve_rpki_rtr_example_openbgpd_portable.last | 2 +- tests/last_results/live_tag_as_set_bird1.last | 2 +- tests/last_results/live_tag_as_set_bird2.last | 2 +- tests/last_results/live_tag_as_set_bird3.last | 2 +- .../live_tag_as_set_openbgpd_portable.last | 2 +- .../live_tag_reject_policy_bird1.last | 2 +- .../live_tag_reject_policy_bird2.last | 2 +- .../live_tag_reject_policy_bird3.last | 2 +- ...e_tag_reject_policy_openbgpd_portable.last | 2 +- tests/last_results/static.last | 2 +- .../openbgpd78p/AS3.txt | 8 +- .../MaxPrefixScenario_BIRD2IPv6/bird2/AS1.txt | 14 + .../MaxPrefixScenario_BIRDIPv4/bird16/AS1.txt | 14 + .../configs/RolesScenario_BIRDIPv6/bird3.conf | 992 ++++++++++++++++++ .../RolesScenario_BIRDIPv6/bird3/AS1.txt | 7 + .../RolesScenario_BIRDIPv6/bird3/AS101.txt | 0 .../RolesScenario_BIRDIPv6/bird3/AS2.txt | 7 + .../RolesScenario_BIRDIPv6/bird3/rs.txt | 7 + .../bird2.conf | 8 +- .../bird16.conf | 4 +- .../bird16.conf | 4 +- .../bird2.conf | 8 +- .../bird3.conf | 6 +- .../bird3.conf | 6 +- 69 files changed, 1241 insertions(+), 168 deletions(-) create mode 100644 tests/live_tests/scenarios/roles/configs/RolesScenario_BIRDIPv6/bird3.conf create mode 100644 tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS1.txt create mode 100644 tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS101.txt create mode 100644 tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS2.txt create mode 100644 tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/rs.txt diff --git a/docs/SUPPORTED_SPEAKERS_CI.txt b/docs/SUPPORTED_SPEAKERS_CI.txt index 657b16c1..9fe7248a 100644 --- a/docs/SUPPORTED_SPEAKERS_CI.txt +++ b/docs/SUPPORTED_SPEAKERS_CI.txt @@ -7,7 +7,7 @@ Total test cases per BGP speaker **BGP speaker** **Total** **Passed ✔** **Failed ✖** **Skipped** BIRD 830 821 0 9 BIRD v2 846 837 0 9 -BIRD v3 846 827 0 19 +BIRD v3 846 837 0 9 OpenBGPD 8.0 458 455 0 3 =============== ========= ============ ============ =========== @@ -909,11 +909,11 @@ roles, IPv4 ==================================== ======== =========== =========== ================ **Test** **BIRD** **BIRD v2** **BIRD v3** **OpenBGPD 8.0** -OTC is attached to routes without it ✔ skip ✔ -log contains errors ✔ skip ✔ -routes expected on AS2 ✔ skip ✔ -routes with OTC from AS1 ✔ skip ✔ -routes with OTC from AS2 are dropped ✔ skip ✔ +OTC is attached to routes without it ✔ ✔ ✔ +log contains errors ✔ ✔ ✔ +routes expected on AS2 ✔ ✔ ✔ +routes with OTC from AS1 ✔ ✔ ✔ +routes with OTC from AS2 are dropped ✔ ✔ ✔ ==================================== ======== =========== =========== ================ roles, IPv6 @@ -921,11 +921,11 @@ roles, IPv6 ==================================== ======== =========== =========== ================ **Test** **BIRD** **BIRD v2** **BIRD v3** **OpenBGPD 8.0** -OTC is attached to routes without it ✔ skip ✔ -log contains errors ✔ skip ✔ -routes expected on AS2 ✔ skip ✔ -routes with OTC from AS1 ✔ skip ✔ -routes with OTC from AS2 are dropped ✔ skip ✔ +OTC is attached to routes without it ✔ ✔ ✔ +log contains errors ✔ ✔ ✔ +routes expected on AS2 ✔ ✔ ✔ +routes with OTC from AS1 ✔ ✔ ✔ +routes with OTC from AS2 are dropped ✔ ✔ ✔ ==================================== ======== =========== =========== ================ tag prefix/origin empty AS-SET, IPv4 diff --git a/tests/last b/tests/last index ce78a563..13233133 100644 --- a/tests/last +++ b/tests/last @@ -259,7 +259,7 @@ RTT getter parser: empty PASSED RTT getter parser: new line only PASSED RTT getter parser: none PASSED -============================= 253 passed in 40.98s ============================= +============================= 253 passed in 39.66s ============================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -282,7 +282,7 @@ External resources: RPKI ROAs, rpki-client PASSED External resources: prefixes from AS-SET via bgpq3 PASSED External resources: prefixes from AS-SET via bgpq4 PASSED -============================= 14 passed in 35.93s ============================== +============================= 14 passed in 32.84s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -311,7 +311,7 @@ Live test, BIRD, hooks example, IPv6: dumping routes... Live test, BIRD, hooks example, IPv6: stopping instances... -============================== 4 passed in 18.31s ============================== +============================== 4 passed in 15.49s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -362,7 +362,7 @@ Live test, BIRD, BGP communities, IPv6: dumping routes... Live test, BIRD, BGP communities, IPv6: stopping instances... -======================== 26 passed in 83.20s (0:01:23) ========================= +======================== 26 passed in 74.14s (0:01:14) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -391,7 +391,7 @@ Live test, BIRD, default config, IPv6: dumping routes... Live test, BIRD, default config, IPv6: stopping instances... -============================== 4 passed in 21.95s ============================== +============================== 4 passed in 15.99s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -972,7 +972,7 @@ Live test, BIRD, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 682.21s (0:11:22) ================== +================== 518 passed, 6 skipped in 669.76s (0:11:09) ================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1007,7 +1007,7 @@ Live test, BIRD, gshut, IPv6: dumping routes... Live test, BIRD, gshut, IPv6: stopping instances... -============================= 10 passed in 49.03s ============================== +============================= 10 passed in 53.65s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1058,7 +1058,7 @@ Live test, BIRD, max-prefix, IPv6: dumping routes... Live test, BIRD, max-prefix, IPv6: stopping instances... -======================== 26 passed in 178.19s (0:02:58) ======================== +======================== 26 passed in 177.54s (0:02:57) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1137,7 +1137,7 @@ Live test, BIRD, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 184.69s (0:03:04) =================== +================== 36 passed, 2 skipped in 184.16s (0:03:04) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1166,7 +1166,7 @@ Live test, BIRD, examples, rich config, IPv6: dumping routes... Live test, BIRD, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 15.14s ============================== +============================== 4 passed in 15.40s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1219,7 +1219,7 @@ Live test, BIRD, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 81.34s (0:01:21) ========================= +======================== 28 passed in 82.72s (0:01:22) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1256,7 +1256,7 @@ Live test, BIRD, BOV custom comms, IPv6: dumping routes... Live test, BIRD, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 47.19s ============================== +============================= 12 passed in 49.88s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1463,7 +1463,7 @@ Live test, BIRD, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 173.08s (0:02:53) ======================== +======================= 166 passed in 175.03s (0:02:55) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1534,7 +1534,7 @@ Live test, BIRD, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 142.48s (0:02:22) =================== +================== 45 passed, 1 skipped in 135.69s (0:02:15) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1563,7 +1563,7 @@ Live test, BIRD v2, hooks example, IPv6: dumping routes... Live test, BIRD v2, hooks example, IPv6: stopping instances... -============================== 4 passed in 15.36s ============================== +============================== 4 passed in 15.02s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1614,7 +1614,7 @@ Live test, BIRD v2, BGP communities, IPv6: dumping routes... Live test, BIRD v2, BGP communities, IPv6: stopping instances... -======================== 26 passed in 67.24s (0:01:07) ========================= +======================== 26 passed in 66.10s (0:01:06) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -1643,7 +1643,7 @@ Live test, BIRD v2, default config, IPv6: dumping routes... Live test, BIRD v2, default config, IPv6: stopping instances... -============================== 4 passed in 15.22s ============================== +============================== 4 passed in 15.02s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2224,7 +2224,7 @@ Live test, BIRD v2, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD v2, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 622.45s (0:10:22) ================== +================== 518 passed, 6 skipped in 626.15s (0:10:26) ================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2259,7 +2259,7 @@ Live test, BIRD v2, gshut, IPv6: dumping routes... Live test, BIRD v2, gshut, IPv6: stopping instances... -============================= 10 passed in 47.11s ============================== +============================= 10 passed in 45.99s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2310,7 +2310,7 @@ Live test, BIRD v2, max-prefix, IPv6: dumping routes... Live test, BIRD v2, max-prefix, IPv6: stopping instances... -======================== 26 passed in 179.24s (0:02:59) ======================== +======================== 26 passed in 178.72s (0:02:58) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2389,7 +2389,7 @@ Live test, BIRD v2, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD v2, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 188.24s (0:03:08) =================== +================== 36 passed, 2 skipped in 180.52s (0:03:00) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2418,7 +2418,7 @@ Live test, BIRD v2, examples, rich config, IPv6: dumping routes... Live test, BIRD v2, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 15.36s ============================== +============================== 4 passed in 15.00s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2457,7 +2457,7 @@ Live test, BIRD v2, roles, IPv6: dumping routes... Live test, BIRD v2, roles, IPv6: stopping instances... -======================== 14 passed in 72.42s (0:01:12) ========================= +======================== 14 passed in 70.18s (0:01:10) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2510,7 +2510,7 @@ Live test, BIRD v2, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD v2, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 85.30s (0:01:25) ========================= +======================== 28 passed in 81.82s (0:01:21) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2547,7 +2547,7 @@ Live test, BIRD v2, BOV custom comms, IPv6: dumping routes... Live test, BIRD v2, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 53.31s ============================== +============================= 12 passed in 47.26s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2572,7 +2572,7 @@ Live test, BIRD v2, RTR protocol: dumping routes... Live test, BIRD v2, RTR protocol: stopping instances... -============================== 8 passed in 42.57s ============================== +============================== 8 passed in 42.06s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2779,7 +2779,7 @@ Live test, BIRD v2, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD v2, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 177.42s (0:02:57) ======================== +======================= 166 passed in 171.56s (0:02:51) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2850,7 +2850,7 @@ Live test, BIRD v2, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD v2, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 140.42s (0:02:20) =================== +================== 45 passed, 1 skipped in 134.48s (0:02:14) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2879,7 +2879,7 @@ Live test, BIRD v3, hooks example, IPv6: dumping routes... Live test, BIRD v3, hooks example, IPv6: stopping instances... -============================== 4 passed in 14.98s ============================== +============================== 4 passed in 14.91s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2930,7 +2930,7 @@ Live test, BIRD v3, BGP communities, IPv6: dumping routes... Live test, BIRD v3, BGP communities, IPv6: stopping instances... -======================== 26 passed in 65.57s (0:01:05) ========================= +======================== 26 passed in 66.12s (0:01:06) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -2959,7 +2959,7 @@ Live test, BIRD v3, default config, IPv6: dumping routes... Live test, BIRD v3, default config, IPv6: stopping instances... -============================== 4 passed in 14.77s ============================== +============================== 4 passed in 14.95s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3540,7 +3540,7 @@ Live test, BIRD v3, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD v3, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 624.03s (0:10:24) ================== +================== 518 passed, 6 skipped in 622.26s (0:10:22) ================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3575,7 +3575,7 @@ Live test, BIRD v3, gshut, IPv6: dumping routes... Live test, BIRD v3, gshut, IPv6: stopping instances... -============================= 10 passed in 46.91s ============================== +============================= 10 passed in 46.12s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3626,7 +3626,7 @@ Live test, BIRD v3, max-prefix, IPv6: dumping routes... Live test, BIRD v3, max-prefix, IPv6: stopping instances... -======================== 26 passed in 178.13s (0:02:58) ======================== +======================== 26 passed in 172.54s (0:02:52) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3705,7 +3705,7 @@ Live test, BIRD v3, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD v3, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 181.45s (0:03:01) =================== +================== 36 passed, 2 skipped in 179.50s (0:02:59) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3742,22 +3742,38 @@ rootdir: /Users/pchiodi/github/public/arouteserver plugins: requests-mock-1.9.3 collecting ... collected 14 items -Live test, BIRD v3, roles, IPv4: instances setup SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv4: sessions are up SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv4: OTC is attached to routes without it SKIPPED -Live test, BIRD v3, roles, IPv4: routes with OTC from AS1 SKIPPED (N...) -Live test, BIRD v3, roles, IPv4: routes with OTC from AS2 are dropped SKIPPED -Live test, BIRD v3, roles, IPv4: routes expected on AS2 SKIPPED (Not...) -Live test, BIRD v3, roles, IPv4: log contains errors SKIPPED (Not re...) -Live test, BIRD v3, roles, IPv6: instances setup SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv6: sessions are up SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv6: OTC is attached to routes without it SKIPPED -Live test, BIRD v3, roles, IPv6: routes with OTC from AS1 SKIPPED (N...) -Live test, BIRD v3, roles, IPv6: routes with OTC from AS2 are dropped SKIPPED -Live test, BIRD v3, roles, IPv6: routes expected on AS2 SKIPPED (Not...) -Live test, BIRD v3, roles, IPv6: log contains errors SKIPPED (Not re...) - -============================= 14 skipped in 0.18s ============================== +Live test, BIRD v3, roles, IPv4: instances setup +Live test, BIRD v3, roles, IPv4: setting instances up... +PASSED +Live test, BIRD v3, roles, IPv4: sessions are up PASSED +Live test, BIRD v3, roles, IPv4: OTC is attached to routes without it PASSED +Live test, BIRD v3, roles, IPv4: routes with OTC from AS1 PASSED +Live test, BIRD v3, roles, IPv4: routes with OTC from AS2 are dropped PASSED +Live test, BIRD v3, roles, IPv4: routes expected on AS2 PASSED +Live test, BIRD v3, roles, IPv4: log contains errors PASSED +Live test, BIRD v3, roles, IPv4: dumping rs config... + +Live test, BIRD v3, roles, IPv4: dumping routes... + +Live test, BIRD v3, roles, IPv4: stopping instances... + +Live test, BIRD v3, roles, IPv6: instances setup +Live test, BIRD v3, roles, IPv6: setting instances up... +PASSED +Live test, BIRD v3, roles, IPv6: sessions are up PASSED +Live test, BIRD v3, roles, IPv6: OTC is attached to routes without it PASSED +Live test, BIRD v3, roles, IPv6: routes with OTC from AS1 PASSED +Live test, BIRD v3, roles, IPv6: routes with OTC from AS2 are dropped PASSED +Live test, BIRD v3, roles, IPv6: routes expected on AS2 PASSED +Live test, BIRD v3, roles, IPv6: log contains errors PASSED +Live test, BIRD v3, roles, IPv6: dumping rs config... + +Live test, BIRD v3, roles, IPv6: dumping routes... + +Live test, BIRD v3, roles, IPv6: stopping instances... + + +======================== 14 passed in 75.69s (0:01:15) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3810,7 +3826,7 @@ Live test, BIRD v3, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD v3, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 81.25s (0:01:21) ========================= +======================== 28 passed in 81.81s (0:01:21) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3847,7 +3863,7 @@ Live test, BIRD v3, BOV custom comms, IPv6: dumping routes... Live test, BIRD v3, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 46.61s ============================== +============================= 12 passed in 48.09s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -3872,7 +3888,7 @@ Live test, BIRD v3, RTR protocol: dumping routes... Live test, BIRD v3, RTR protocol: stopping instances... -============================== 8 passed in 41.62s ============================== +============================== 8 passed in 41.70s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4079,7 +4095,7 @@ Live test, BIRD v3, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD v3, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 174.92s (0:02:54) ======================== +======================= 166 passed in 174.26s (0:02:54) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4150,7 +4166,7 @@ Live test, BIRD v3, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD v3, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 136.81s (0:02:16) =================== +================== 45 passed, 1 skipped in 136.31s (0:02:16) =================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4201,7 +4217,7 @@ Live test, OpenBGPD 8.0, BGP communities, IPv6: dumping routes... Live test, OpenBGPD 8.0, BGP communities, IPv6: stopping instances... -======================== 26 passed in 72.14s (0:01:12) ========================= +======================== 26 passed in 70.87s (0:01:10) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4230,7 +4246,7 @@ Live test, OpenBGPD 8.0, default config, IPv6: dumping routes... Live test, OpenBGPD 8.0, default config, IPv6: stopping instances... -============================== 4 passed in 13.14s ============================== +============================== 4 passed in 13.16s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4623,7 +4639,7 @@ Live test, OpenBGPD 7.8, global scenario, IPv6: dumping routes... Live test, OpenBGPD 7.8, global scenario, IPv6: stopping instances... -================== 348 passed, 4 skipped in 425.25s (0:07:05) ================== +================== 348 passed, 4 skipped in 412.65s (0:06:52) ================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4658,7 +4674,7 @@ Live test, OpenBGPD 8.0, gshut, IPv6: dumping routes... Live test, OpenBGPD 8.0, gshut, IPv6: stopping instances... -============================= 10 passed in 58.41s ============================== +============================= 10 passed in 51.78s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4693,7 +4709,7 @@ Live test, OpenBGPD 8.0, max-prefix, IPv6: dumping routes... Live test, OpenBGPD 8.0, max-prefix, IPv6: stopping instances... -======================== 10 passed in 376.36s (0:06:16) ======================== +======================== 10 passed in 372.15s (0:06:12) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4772,7 +4788,7 @@ Live test, OpenBGPD 8.0, path hiding, mitigation off, IPv6: dumping routes... Live test, OpenBGPD 8.0, path hiding, mitigation off, IPv6: stopping instances... -======================== 38 passed in 202.57s (0:03:22) ======================== +======================== 38 passed in 203.18s (0:03:23) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4801,7 +4817,7 @@ Live test, OpenBGPD 8.0, examples, rich config, IPv6: dumping routes... Live test, OpenBGPD 8.0, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 12.81s ============================== +============================== 4 passed in 13.85s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4840,7 +4856,7 @@ Live test, OpenBGPD 8.0, roles, IPv6: dumping routes... Live test, OpenBGPD 8.0, roles, IPv6: stopping instances... -======================== 14 passed in 65.02s (0:01:05) ========================= +======================== 14 passed in 60.23s (0:01:00) ========================= ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -4865,7 +4881,7 @@ Live test, OpenBGPD 8.0, RTR protocol: dumping routes... Live test, OpenBGPD 8.0, RTR protocol: stopping instances... -============================== 8 passed in 45.03s ============================== +============================== 8 passed in 45.66s ============================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -5072,7 +5088,7 @@ Live test, OpenBGPD 8.0, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, OpenBGPD 8.0, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 183.01s (0:03:03) ======================== +======================= 166 passed in 182.78s (0:03:02) ======================== ============================= test session starts ============================== platform darwin -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /Users/pchiodi/.virtualenvs/arouteserver/bin/python3.11 cachedir: .pytest_cache @@ -5143,4 +5159,4 @@ Live test, OpenBGPD 8.0, 'tag' reject policy scenario, IPv6: dumping routes... Live test, OpenBGPD 8.0, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 138.93s (0:02:18) =================== +================== 45 passed, 1 skipped in 150.87s (0:02:30) =================== diff --git a/tests/last.json b/tests/last.json index db07640a..2fcaa6d4 100644 --- a/tests/last.json +++ b/tests/last.json @@ -1 +1 @@ -{"unique_test_cases": 3480} +{"unique_test_cases": 3492} diff --git a/tests/last_results/extres.last b/tests/last_results/extres.last index 6917d8ad..2c5b177d 100644 --- a/tests/last_results/extres.last +++ b/tests/last_results/extres.last @@ -20,4 +20,4 @@ External resources: RPKI ROAs, rpki-client PASSED External resources: prefixes from AS-SET via bgpq3 PASSED External resources: prefixes from AS-SET via bgpq4 PASSED -============================= 14 passed in 35.93s ============================== +============================= 14 passed in 32.84s ============================== diff --git a/tests/last_results/live_bird_hooks_example_bird1.last b/tests/last_results/live_bird_hooks_example_bird1.last index 41241d53..a2017004 100644 --- a/tests/last_results/live_bird_hooks_example_bird1.last +++ b/tests/last_results/live_bird_hooks_example_bird1.last @@ -26,4 +26,4 @@ Live test, BIRD, hooks example, IPv6: dumping routes... Live test, BIRD, hooks example, IPv6: stopping instances... -============================== 4 passed in 18.31s ============================== +============================== 4 passed in 15.49s ============================== diff --git a/tests/last_results/live_bird_hooks_example_bird2.last b/tests/last_results/live_bird_hooks_example_bird2.last index 070e96de..e5b7884a 100644 --- a/tests/last_results/live_bird_hooks_example_bird2.last +++ b/tests/last_results/live_bird_hooks_example_bird2.last @@ -26,4 +26,4 @@ Live test, BIRD v2, hooks example, IPv6: dumping routes... Live test, BIRD v2, hooks example, IPv6: stopping instances... -============================== 4 passed in 15.36s ============================== +============================== 4 passed in 15.02s ============================== diff --git a/tests/last_results/live_bird_hooks_example_bird3.last b/tests/last_results/live_bird_hooks_example_bird3.last index f7493c70..1a8d0005 100644 --- a/tests/last_results/live_bird_hooks_example_bird3.last +++ b/tests/last_results/live_bird_hooks_example_bird3.last @@ -26,4 +26,4 @@ Live test, BIRD v3, hooks example, IPv6: dumping routes... Live test, BIRD v3, hooks example, IPv6: stopping instances... -============================== 4 passed in 14.98s ============================== +============================== 4 passed in 14.91s ============================== diff --git a/tests/last_results/live_communities_bird1.last b/tests/last_results/live_communities_bird1.last index 9836c4dd..fda0c1e7 100644 --- a/tests/last_results/live_communities_bird1.last +++ b/tests/last_results/live_communities_bird1.last @@ -48,4 +48,4 @@ Live test, BIRD, BGP communities, IPv6: dumping routes... Live test, BIRD, BGP communities, IPv6: stopping instances... -======================== 26 passed in 83.20s (0:01:23) ========================= +======================== 26 passed in 74.14s (0:01:14) ========================= diff --git a/tests/last_results/live_communities_bird2.last b/tests/last_results/live_communities_bird2.last index 98951678..231f3752 100644 --- a/tests/last_results/live_communities_bird2.last +++ b/tests/last_results/live_communities_bird2.last @@ -48,4 +48,4 @@ Live test, BIRD v2, BGP communities, IPv6: dumping routes... Live test, BIRD v2, BGP communities, IPv6: stopping instances... -======================== 26 passed in 67.24s (0:01:07) ========================= +======================== 26 passed in 66.10s (0:01:06) ========================= diff --git a/tests/last_results/live_communities_bird3.last b/tests/last_results/live_communities_bird3.last index 6202a1d8..1385cca2 100644 --- a/tests/last_results/live_communities_bird3.last +++ b/tests/last_results/live_communities_bird3.last @@ -48,4 +48,4 @@ Live test, BIRD v3, BGP communities, IPv6: dumping routes... Live test, BIRD v3, BGP communities, IPv6: stopping instances... -======================== 26 passed in 65.57s (0:01:05) ========================= +======================== 26 passed in 66.12s (0:01:06) ========================= diff --git a/tests/last_results/live_communities_openbgpd_portable.last b/tests/last_results/live_communities_openbgpd_portable.last index f72f527b..caf8e2a4 100644 --- a/tests/last_results/live_communities_openbgpd_portable.last +++ b/tests/last_results/live_communities_openbgpd_portable.last @@ -48,4 +48,4 @@ Live test, OpenBGPD 8.0, BGP communities, IPv6: dumping routes... Live test, OpenBGPD 8.0, BGP communities, IPv6: stopping instances... -======================== 26 passed in 72.14s (0:01:12) ========================= +======================== 26 passed in 70.87s (0:01:10) ========================= diff --git a/tests/last_results/live_default_bird1.last b/tests/last_results/live_default_bird1.last index a2020601..33d9b67b 100644 --- a/tests/last_results/live_default_bird1.last +++ b/tests/last_results/live_default_bird1.last @@ -26,4 +26,4 @@ Live test, BIRD, default config, IPv6: dumping routes... Live test, BIRD, default config, IPv6: stopping instances... -============================== 4 passed in 21.95s ============================== +============================== 4 passed in 15.99s ============================== diff --git a/tests/last_results/live_default_bird2.last b/tests/last_results/live_default_bird2.last index cce3f047..6ac5c715 100644 --- a/tests/last_results/live_default_bird2.last +++ b/tests/last_results/live_default_bird2.last @@ -26,4 +26,4 @@ Live test, BIRD v2, default config, IPv6: dumping routes... Live test, BIRD v2, default config, IPv6: stopping instances... -============================== 4 passed in 15.22s ============================== +============================== 4 passed in 15.02s ============================== diff --git a/tests/last_results/live_default_bird3.last b/tests/last_results/live_default_bird3.last index 461a63d4..1e38b9d5 100644 --- a/tests/last_results/live_default_bird3.last +++ b/tests/last_results/live_default_bird3.last @@ -26,4 +26,4 @@ Live test, BIRD v3, default config, IPv6: dumping routes... Live test, BIRD v3, default config, IPv6: stopping instances... -============================== 4 passed in 14.77s ============================== +============================== 4 passed in 14.95s ============================== diff --git a/tests/last_results/live_default_openbgpd_portable.last b/tests/last_results/live_default_openbgpd_portable.last index ce3eaede..fdcb3c8c 100644 --- a/tests/last_results/live_default_openbgpd_portable.last +++ b/tests/last_results/live_default_openbgpd_portable.last @@ -26,4 +26,4 @@ Live test, OpenBGPD 8.0, default config, IPv6: dumping routes... Live test, OpenBGPD 8.0, default config, IPv6: stopping instances... -============================== 4 passed in 13.14s ============================== +============================== 4 passed in 13.16s ============================== diff --git a/tests/last_results/live_global_bird1.last b/tests/last_results/live_global_bird1.last index d6a93c4d..bcc3a6d4 100644 --- a/tests/last_results/live_global_bird1.last +++ b/tests/last_results/live_global_bird1.last @@ -578,4 +578,4 @@ Live test, BIRD, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 682.21s (0:11:22) ================== +================== 518 passed, 6 skipped in 669.76s (0:11:09) ================== diff --git a/tests/last_results/live_global_bird2.last b/tests/last_results/live_global_bird2.last index 4068ee1b..8ca034dd 100644 --- a/tests/last_results/live_global_bird2.last +++ b/tests/last_results/live_global_bird2.last @@ -578,4 +578,4 @@ Live test, BIRD v2, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD v2, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 622.45s (0:10:22) ================== +================== 518 passed, 6 skipped in 626.15s (0:10:26) ================== diff --git a/tests/last_results/live_global_bird3.last b/tests/last_results/live_global_bird3.last index a6ebd2d4..cd024012 100644 --- a/tests/last_results/live_global_bird3.last +++ b/tests/last_results/live_global_bird3.last @@ -578,4 +578,4 @@ Live test, BIRD v3, global scenario, IPv6, tag&reject: dumping routes... Live test, BIRD v3, global scenario, IPv6, tag&reject: stopping instances... -================== 518 passed, 6 skipped in 624.03s (0:10:24) ================== +================== 518 passed, 6 skipped in 622.26s (0:10:22) ================== diff --git a/tests/last_results/live_global_openbgpd_portable.last b/tests/last_results/live_global_openbgpd_portable.last index fe6afb12..71b73437 100644 --- a/tests/last_results/live_global_openbgpd_portable.last +++ b/tests/last_results/live_global_openbgpd_portable.last @@ -390,4 +390,4 @@ Live test, OpenBGPD 7.8, global scenario, IPv6: dumping routes... Live test, OpenBGPD 7.8, global scenario, IPv6: stopping instances... -================== 348 passed, 4 skipped in 425.25s (0:07:05) ================== +================== 348 passed, 4 skipped in 412.65s (0:06:52) ================== diff --git a/tests/last_results/live_gshut_bird1.last b/tests/last_results/live_gshut_bird1.last index 944018d0..810c878e 100644 --- a/tests/last_results/live_gshut_bird1.last +++ b/tests/last_results/live_gshut_bird1.last @@ -32,4 +32,4 @@ Live test, BIRD, gshut, IPv6: dumping routes... Live test, BIRD, gshut, IPv6: stopping instances... -============================= 10 passed in 49.03s ============================== +============================= 10 passed in 53.65s ============================== diff --git a/tests/last_results/live_gshut_bird2.last b/tests/last_results/live_gshut_bird2.last index 639bd218..64dcaafc 100644 --- a/tests/last_results/live_gshut_bird2.last +++ b/tests/last_results/live_gshut_bird2.last @@ -32,4 +32,4 @@ Live test, BIRD v2, gshut, IPv6: dumping routes... Live test, BIRD v2, gshut, IPv6: stopping instances... -============================= 10 passed in 47.11s ============================== +============================= 10 passed in 45.99s ============================== diff --git a/tests/last_results/live_gshut_bird3.last b/tests/last_results/live_gshut_bird3.last index 0f34e816..88a9f31d 100644 --- a/tests/last_results/live_gshut_bird3.last +++ b/tests/last_results/live_gshut_bird3.last @@ -32,4 +32,4 @@ Live test, BIRD v3, gshut, IPv6: dumping routes... Live test, BIRD v3, gshut, IPv6: stopping instances... -============================= 10 passed in 46.91s ============================== +============================= 10 passed in 46.12s ============================== diff --git a/tests/last_results/live_gshut_openbgpd_portable.last b/tests/last_results/live_gshut_openbgpd_portable.last index 8cb7f910..bd986568 100644 --- a/tests/last_results/live_gshut_openbgpd_portable.last +++ b/tests/last_results/live_gshut_openbgpd_portable.last @@ -32,4 +32,4 @@ Live test, OpenBGPD 8.0, gshut, IPv6: dumping routes... Live test, OpenBGPD 8.0, gshut, IPv6: stopping instances... -============================= 10 passed in 58.41s ============================== +============================= 10 passed in 51.78s ============================== diff --git a/tests/last_results/live_max_prefix_bird1.last b/tests/last_results/live_max_prefix_bird1.last index dd6b0916..054eb349 100644 --- a/tests/last_results/live_max_prefix_bird1.last +++ b/tests/last_results/live_max_prefix_bird1.last @@ -48,4 +48,4 @@ Live test, BIRD, max-prefix, IPv6: dumping routes... Live test, BIRD, max-prefix, IPv6: stopping instances... -======================== 26 passed in 178.19s (0:02:58) ======================== +======================== 26 passed in 177.54s (0:02:57) ======================== diff --git a/tests/last_results/live_max_prefix_bird2.last b/tests/last_results/live_max_prefix_bird2.last index 73144073..82f9eb51 100644 --- a/tests/last_results/live_max_prefix_bird2.last +++ b/tests/last_results/live_max_prefix_bird2.last @@ -48,4 +48,4 @@ Live test, BIRD v2, max-prefix, IPv6: dumping routes... Live test, BIRD v2, max-prefix, IPv6: stopping instances... -======================== 26 passed in 179.24s (0:02:59) ======================== +======================== 26 passed in 178.72s (0:02:58) ======================== diff --git a/tests/last_results/live_max_prefix_bird3.last b/tests/last_results/live_max_prefix_bird3.last index c2138640..19d5b4f8 100644 --- a/tests/last_results/live_max_prefix_bird3.last +++ b/tests/last_results/live_max_prefix_bird3.last @@ -48,4 +48,4 @@ Live test, BIRD v3, max-prefix, IPv6: dumping routes... Live test, BIRD v3, max-prefix, IPv6: stopping instances... -======================== 26 passed in 178.13s (0:02:58) ======================== +======================== 26 passed in 172.54s (0:02:52) ======================== diff --git a/tests/last_results/live_max_prefix_openbgpd_portable.last b/tests/last_results/live_max_prefix_openbgpd_portable.last index 84c52473..f759e166 100644 --- a/tests/last_results/live_max_prefix_openbgpd_portable.last +++ b/tests/last_results/live_max_prefix_openbgpd_portable.last @@ -32,4 +32,4 @@ Live test, OpenBGPD 8.0, max-prefix, IPv6: dumping routes... Live test, OpenBGPD 8.0, max-prefix, IPv6: stopping instances... -======================== 10 passed in 376.36s (0:06:16) ======================== +======================== 10 passed in 372.15s (0:06:12) ======================== diff --git a/tests/last_results/live_path_hiding_bird1.last b/tests/last_results/live_path_hiding_bird1.last index 8826c756..b78ad13c 100644 --- a/tests/last_results/live_path_hiding_bird1.last +++ b/tests/last_results/live_path_hiding_bird1.last @@ -76,4 +76,4 @@ Live test, BIRD, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 184.69s (0:03:04) =================== +================== 36 passed, 2 skipped in 184.16s (0:03:04) =================== diff --git a/tests/last_results/live_path_hiding_bird2.last b/tests/last_results/live_path_hiding_bird2.last index 661cd319..5aab9e4d 100644 --- a/tests/last_results/live_path_hiding_bird2.last +++ b/tests/last_results/live_path_hiding_bird2.last @@ -76,4 +76,4 @@ Live test, BIRD v2, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD v2, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 188.24s (0:03:08) =================== +================== 36 passed, 2 skipped in 180.52s (0:03:00) =================== diff --git a/tests/last_results/live_path_hiding_bird3.last b/tests/last_results/live_path_hiding_bird3.last index 5de6b019..1cbcda7b 100644 --- a/tests/last_results/live_path_hiding_bird3.last +++ b/tests/last_results/live_path_hiding_bird3.last @@ -76,4 +76,4 @@ Live test, BIRD v3, path hiding, mitigation off, IPv6: dumping routes... Live test, BIRD v3, path hiding, mitigation off, IPv6: stopping instances... -================== 36 passed, 2 skipped in 181.45s (0:03:01) =================== +================== 36 passed, 2 skipped in 179.50s (0:02:59) =================== diff --git a/tests/last_results/live_path_hiding_openbgpd_portable.last b/tests/last_results/live_path_hiding_openbgpd_portable.last index f8ffb1d0..d86c269b 100644 --- a/tests/last_results/live_path_hiding_openbgpd_portable.last +++ b/tests/last_results/live_path_hiding_openbgpd_portable.last @@ -76,4 +76,4 @@ Live test, OpenBGPD 8.0, path hiding, mitigation off, IPv6: dumping routes... Live test, OpenBGPD 8.0, path hiding, mitigation off, IPv6: stopping instances... -======================== 38 passed in 202.57s (0:03:22) ======================== +======================== 38 passed in 203.18s (0:03:23) ======================== diff --git a/tests/last_results/live_rich_example_bird1.last b/tests/last_results/live_rich_example_bird1.last index dc08ed57..788a8419 100644 --- a/tests/last_results/live_rich_example_bird1.last +++ b/tests/last_results/live_rich_example_bird1.last @@ -26,4 +26,4 @@ Live test, BIRD, examples, rich config, IPv6: dumping routes... Live test, BIRD, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 15.14s ============================== +============================== 4 passed in 15.40s ============================== diff --git a/tests/last_results/live_rich_example_bird2.last b/tests/last_results/live_rich_example_bird2.last index 5fc12b71..5c6bb884 100644 --- a/tests/last_results/live_rich_example_bird2.last +++ b/tests/last_results/live_rich_example_bird2.last @@ -26,4 +26,4 @@ Live test, BIRD v2, examples, rich config, IPv6: dumping routes... Live test, BIRD v2, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 15.36s ============================== +============================== 4 passed in 15.00s ============================== diff --git a/tests/last_results/live_rich_example_openbgpd_portable.last b/tests/last_results/live_rich_example_openbgpd_portable.last index 5aa2e326..472dcabb 100644 --- a/tests/last_results/live_rich_example_openbgpd_portable.last +++ b/tests/last_results/live_rich_example_openbgpd_portable.last @@ -26,4 +26,4 @@ Live test, OpenBGPD 8.0, examples, rich config, IPv6: dumping routes... Live test, OpenBGPD 8.0, examples, rich config, IPv6: stopping instances... -============================== 4 passed in 12.81s ============================== +============================== 4 passed in 13.85s ============================== diff --git a/tests/last_results/live_roles_bird2.last b/tests/last_results/live_roles_bird2.last index ef27ea1b..1bbb0336 100644 --- a/tests/last_results/live_roles_bird2.last +++ b/tests/last_results/live_roles_bird2.last @@ -36,4 +36,4 @@ Live test, BIRD v2, roles, IPv6: dumping routes... Live test, BIRD v2, roles, IPv6: stopping instances... -======================== 14 passed in 72.42s (0:01:12) ========================= +======================== 14 passed in 70.18s (0:01:10) ========================= diff --git a/tests/last_results/live_roles_bird3.last b/tests/last_results/live_roles_bird3.last index 7382195a..d3e76ab0 100644 --- a/tests/last_results/live_roles_bird3.last +++ b/tests/last_results/live_roles_bird3.last @@ -5,19 +5,35 @@ rootdir: /Users/pchiodi/github/public/arouteserver plugins: requests-mock-1.9.3 collecting ... collected 14 items -Live test, BIRD v3, roles, IPv4: instances setup SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv4: sessions are up SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv4: OTC is attached to routes without it SKIPPED -Live test, BIRD v3, roles, IPv4: routes with OTC from AS1 SKIPPED (N...) -Live test, BIRD v3, roles, IPv4: routes with OTC from AS2 are dropped SKIPPED -Live test, BIRD v3, roles, IPv4: routes expected on AS2 SKIPPED (Not...) -Live test, BIRD v3, roles, IPv4: log contains errors SKIPPED (Not re...) -Live test, BIRD v3, roles, IPv6: instances setup SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv6: sessions are up SKIPPED (Not ready ...) -Live test, BIRD v3, roles, IPv6: OTC is attached to routes without it SKIPPED -Live test, BIRD v3, roles, IPv6: routes with OTC from AS1 SKIPPED (N...) -Live test, BIRD v3, roles, IPv6: routes with OTC from AS2 are dropped SKIPPED -Live test, BIRD v3, roles, IPv6: routes expected on AS2 SKIPPED (Not...) -Live test, BIRD v3, roles, IPv6: log contains errors SKIPPED (Not re...) - -============================= 14 skipped in 0.18s ============================== +Live test, BIRD v3, roles, IPv4: instances setup +Live test, BIRD v3, roles, IPv4: setting instances up... +PASSED +Live test, BIRD v3, roles, IPv4: sessions are up PASSED +Live test, BIRD v3, roles, IPv4: OTC is attached to routes without it PASSED +Live test, BIRD v3, roles, IPv4: routes with OTC from AS1 PASSED +Live test, BIRD v3, roles, IPv4: routes with OTC from AS2 are dropped PASSED +Live test, BIRD v3, roles, IPv4: routes expected on AS2 PASSED +Live test, BIRD v3, roles, IPv4: log contains errors PASSED +Live test, BIRD v3, roles, IPv4: dumping rs config... + +Live test, BIRD v3, roles, IPv4: dumping routes... + +Live test, BIRD v3, roles, IPv4: stopping instances... + +Live test, BIRD v3, roles, IPv6: instances setup +Live test, BIRD v3, roles, IPv6: setting instances up... +PASSED +Live test, BIRD v3, roles, IPv6: sessions are up PASSED +Live test, BIRD v3, roles, IPv6: OTC is attached to routes without it PASSED +Live test, BIRD v3, roles, IPv6: routes with OTC from AS1 PASSED +Live test, BIRD v3, roles, IPv6: routes with OTC from AS2 are dropped PASSED +Live test, BIRD v3, roles, IPv6: routes expected on AS2 PASSED +Live test, BIRD v3, roles, IPv6: log contains errors PASSED +Live test, BIRD v3, roles, IPv6: dumping rs config... + +Live test, BIRD v3, roles, IPv6: dumping routes... + +Live test, BIRD v3, roles, IPv6: stopping instances... + + +======================== 14 passed in 75.69s (0:01:15) ========================= diff --git a/tests/last_results/live_roles_openbgpd_portable.last b/tests/last_results/live_roles_openbgpd_portable.last index 9c020cfe..e2108181 100644 --- a/tests/last_results/live_roles_openbgpd_portable.last +++ b/tests/last_results/live_roles_openbgpd_portable.last @@ -36,4 +36,4 @@ Live test, OpenBGPD 8.0, roles, IPv6: dumping routes... Live test, OpenBGPD 8.0, roles, IPv6: stopping instances... -======================== 14 passed in 65.02s (0:01:05) ========================= +======================== 14 passed in 60.23s (0:01:00) ========================= diff --git a/tests/last_results/live_rpki_bird1.last b/tests/last_results/live_rpki_bird1.last index 9804788d..b1eefcb3 100644 --- a/tests/last_results/live_rpki_bird1.last +++ b/tests/last_results/live_rpki_bird1.last @@ -50,4 +50,4 @@ Live test, BIRD, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 81.34s (0:01:21) ========================= +======================== 28 passed in 82.72s (0:01:22) ========================= diff --git a/tests/last_results/live_rpki_bird2.last b/tests/last_results/live_rpki_bird2.last index 008909a0..edf69f88 100644 --- a/tests/last_results/live_rpki_bird2.last +++ b/tests/last_results/live_rpki_bird2.last @@ -50,4 +50,4 @@ Live test, BIRD v2, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD v2, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 85.30s (0:01:25) ========================= +======================== 28 passed in 81.82s (0:01:21) ========================= diff --git a/tests/last_results/live_rpki_bird3.last b/tests/last_results/live_rpki_bird3.last index 07b5f178..164792f5 100644 --- a/tests/last_results/live_rpki_bird3.last +++ b/tests/last_results/live_rpki_bird3.last @@ -50,4 +50,4 @@ Live test, BIRD v3, RPKI INVALID tagging, IPv6: dumping routes... Live test, BIRD v3, RPKI INVALID tagging, IPv6: stopping instances... -======================== 28 passed in 81.25s (0:01:21) ========================= +======================== 28 passed in 81.81s (0:01:21) ========================= diff --git a/tests/last_results/live_rpki_bov_comms_bird1.last b/tests/last_results/live_rpki_bov_comms_bird1.last index 35bd5551..6f82856d 100644 --- a/tests/last_results/live_rpki_bov_comms_bird1.last +++ b/tests/last_results/live_rpki_bov_comms_bird1.last @@ -34,4 +34,4 @@ Live test, BIRD, BOV custom comms, IPv6: dumping routes... Live test, BIRD, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 47.19s ============================== +============================= 12 passed in 49.88s ============================== diff --git a/tests/last_results/live_rpki_bov_comms_bird2.last b/tests/last_results/live_rpki_bov_comms_bird2.last index afd40366..fb79c0cc 100644 --- a/tests/last_results/live_rpki_bov_comms_bird2.last +++ b/tests/last_results/live_rpki_bov_comms_bird2.last @@ -34,4 +34,4 @@ Live test, BIRD v2, BOV custom comms, IPv6: dumping routes... Live test, BIRD v2, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 53.31s ============================== +============================= 12 passed in 47.26s ============================== diff --git a/tests/last_results/live_rpki_bov_comms_bird3.last b/tests/last_results/live_rpki_bov_comms_bird3.last index e3490530..d7312351 100644 --- a/tests/last_results/live_rpki_bov_comms_bird3.last +++ b/tests/last_results/live_rpki_bov_comms_bird3.last @@ -34,4 +34,4 @@ Live test, BIRD v3, BOV custom comms, IPv6: dumping routes... Live test, BIRD v3, BOV custom comms, IPv6: stopping instances... -============================= 12 passed in 46.61s ============================== +============================= 12 passed in 48.09s ============================== diff --git a/tests/last_results/live_rpki_rtr_example_bird2.last b/tests/last_results/live_rpki_rtr_example_bird2.last index ff2929d9..9f4a4fe7 100644 --- a/tests/last_results/live_rpki_rtr_example_bird2.last +++ b/tests/last_results/live_rpki_rtr_example_bird2.last @@ -22,4 +22,4 @@ Live test, BIRD v2, RTR protocol: dumping routes... Live test, BIRD v2, RTR protocol: stopping instances... -============================== 8 passed in 42.57s ============================== +============================== 8 passed in 42.06s ============================== diff --git a/tests/last_results/live_rpki_rtr_example_bird3.last b/tests/last_results/live_rpki_rtr_example_bird3.last index 022723a8..aa105e3d 100644 --- a/tests/last_results/live_rpki_rtr_example_bird3.last +++ b/tests/last_results/live_rpki_rtr_example_bird3.last @@ -22,4 +22,4 @@ Live test, BIRD v3, RTR protocol: dumping routes... Live test, BIRD v3, RTR protocol: stopping instances... -============================== 8 passed in 41.62s ============================== +============================== 8 passed in 41.70s ============================== diff --git a/tests/last_results/live_rpki_rtr_example_openbgpd_portable.last b/tests/last_results/live_rpki_rtr_example_openbgpd_portable.last index 6eaab308..c7f8c93c 100644 --- a/tests/last_results/live_rpki_rtr_example_openbgpd_portable.last +++ b/tests/last_results/live_rpki_rtr_example_openbgpd_portable.last @@ -22,4 +22,4 @@ Live test, OpenBGPD 8.0, RTR protocol: dumping routes... Live test, OpenBGPD 8.0, RTR protocol: stopping instances... -============================== 8 passed in 45.03s ============================== +============================== 8 passed in 45.66s ============================== diff --git a/tests/last_results/live_tag_as_set_bird1.last b/tests/last_results/live_tag_as_set_bird1.last index 445c9f8e..f8e05f1f 100644 --- a/tests/last_results/live_tag_as_set_bird1.last +++ b/tests/last_results/live_tag_as_set_bird1.last @@ -204,4 +204,4 @@ Live test, BIRD, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 173.08s (0:02:53) ======================== +======================= 166 passed in 175.03s (0:02:55) ======================== diff --git a/tests/last_results/live_tag_as_set_bird2.last b/tests/last_results/live_tag_as_set_bird2.last index f22e1149..693c1de1 100644 --- a/tests/last_results/live_tag_as_set_bird2.last +++ b/tests/last_results/live_tag_as_set_bird2.last @@ -204,4 +204,4 @@ Live test, BIRD v2, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD v2, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 177.42s (0:02:57) ======================== +======================= 166 passed in 171.56s (0:02:51) ======================== diff --git a/tests/last_results/live_tag_as_set_bird3.last b/tests/last_results/live_tag_as_set_bird3.last index acd71f85..1c0ba027 100644 --- a/tests/last_results/live_tag_as_set_bird3.last +++ b/tests/last_results/live_tag_as_set_bird3.last @@ -204,4 +204,4 @@ Live test, BIRD v3, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, BIRD v3, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 174.92s (0:02:54) ======================== +======================= 166 passed in 174.26s (0:02:54) ======================== diff --git a/tests/last_results/live_tag_as_set_openbgpd_portable.last b/tests/last_results/live_tag_as_set_openbgpd_portable.last index 5dcc4450..fea54d5f 100644 --- a/tests/last_results/live_tag_as_set_openbgpd_portable.last +++ b/tests/last_results/live_tag_as_set_openbgpd_portable.last @@ -204,4 +204,4 @@ Live test, OpenBGPD 8.0, tag prefix/origin empty AS-SET, IPv6: dumping routes... Live test, OpenBGPD 8.0, tag prefix/origin empty AS-SET, IPv6: stopping instances... -======================= 166 passed in 183.01s (0:03:03) ======================== +======================= 166 passed in 182.78s (0:03:02) ======================== diff --git a/tests/last_results/live_tag_reject_policy_bird1.last b/tests/last_results/live_tag_reject_policy_bird1.last index 821e13a8..b91fe80b 100644 --- a/tests/last_results/live_tag_reject_policy_bird1.last +++ b/tests/last_results/live_tag_reject_policy_bird1.last @@ -68,4 +68,4 @@ Live test, BIRD, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 142.48s (0:02:22) =================== +================== 45 passed, 1 skipped in 135.69s (0:02:15) =================== diff --git a/tests/last_results/live_tag_reject_policy_bird2.last b/tests/last_results/live_tag_reject_policy_bird2.last index d25b906c..105b5065 100644 --- a/tests/last_results/live_tag_reject_policy_bird2.last +++ b/tests/last_results/live_tag_reject_policy_bird2.last @@ -68,4 +68,4 @@ Live test, BIRD v2, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD v2, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 140.42s (0:02:20) =================== +================== 45 passed, 1 skipped in 134.48s (0:02:14) =================== diff --git a/tests/last_results/live_tag_reject_policy_bird3.last b/tests/last_results/live_tag_reject_policy_bird3.last index 5efbc6f6..5a33c9ab 100644 --- a/tests/last_results/live_tag_reject_policy_bird3.last +++ b/tests/last_results/live_tag_reject_policy_bird3.last @@ -68,4 +68,4 @@ Live test, BIRD v3, 'tag' reject policy scenario, IPv6: dumping routes... Live test, BIRD v3, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 136.81s (0:02:16) =================== +================== 45 passed, 1 skipped in 136.31s (0:02:16) =================== diff --git a/tests/last_results/live_tag_reject_policy_openbgpd_portable.last b/tests/last_results/live_tag_reject_policy_openbgpd_portable.last index 84baa602..42f382cf 100644 --- a/tests/last_results/live_tag_reject_policy_openbgpd_portable.last +++ b/tests/last_results/live_tag_reject_policy_openbgpd_portable.last @@ -68,4 +68,4 @@ Live test, OpenBGPD 8.0, 'tag' reject policy scenario, IPv6: dumping routes... Live test, OpenBGPD 8.0, 'tag' reject policy scenario, IPv6: stopping instances... -================== 45 passed, 1 skipped in 138.93s (0:02:18) =================== +================== 45 passed, 1 skipped in 150.87s (0:02:30) =================== diff --git a/tests/last_results/static.last b/tests/last_results/static.last index 9cdee0cf..69750172 100644 --- a/tests/last_results/static.last +++ b/tests/last_results/static.last @@ -259,4 +259,4 @@ RTT getter parser: empty PASSED RTT getter parser: new line only PASSED RTT getter parser: none PASSED -============================= 253 passed in 40.98s ============================= +============================= 253 passed in 39.66s ============================= diff --git a/tests/live_tests/scenarios/global/routes/BasicScenario_OpenBGPDIPv6/openbgpd78p/AS3.txt b/tests/live_tests/scenarios/global/routes/BasicScenario_OpenBGPDIPv6/openbgpd78p/AS3.txt index 9696674d..86ea2ff0 100644 --- a/tests/live_tests/scenarios/global/routes/BasicScenario_OpenBGPDIPv6/openbgpd78p/AS3.txt +++ b/tests/live_tests/scenarios/global/routes/BasicScenario_OpenBGPDIPv6/openbgpd78p/AS3.txt @@ -2,28 +2,28 @@ std comms: ext comms: lrg comms: - best: False, LOCAL_PREF: 101 + best: True, LOCAL_PREF: 101 filtered: False () 2a01:0:1::/48, AS_PATH: 999 1, NEXT_HOP: 2001:db8:1:1::12, via 2001:db8:1:1::2 std comms: ext comms: lrg comms: - best: True, LOCAL_PREF: 101 + best: False, LOCAL_PREF: 101 filtered: False () 2a01:0:2::/48, AS_PATH: 999 1, NEXT_HOP: 2001:db8:1:1::11, via 2001:db8:1:1::2 std comms: ext comms: lrg comms: - best: False, LOCAL_PREF: 101 + best: True, LOCAL_PREF: 101 filtered: False () 2a01:0:2::/48, AS_PATH: 999 1, NEXT_HOP: 2001:db8:1:1::12, via 2001:db8:1:1::2 std comms: ext comms: lrg comms: - best: True, LOCAL_PREF: 101 + best: False, LOCAL_PREF: 101 filtered: False () 2a01:0:3::/48, AS_PATH: 999 1, NEXT_HOP: 2001:db8:1:1::11, via 2001:db8:1:1::2 diff --git a/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRD2IPv6/bird2/AS1.txt b/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRD2IPv6/bird2/AS1.txt index 3bf882aa..d26d5640 100644 --- a/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRD2IPv6/bird2/AS1.txt +++ b/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRD2IPv6/bird2/AS1.txt @@ -75,6 +75,20 @@ best: True, LOCAL_PREF: 100 filtered: False () +2a05:0:1::/48, AS_PATH: 5, NEXT_HOP: 2001:db8:1:1::51, via 2001:db8:1:1::2 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100 + filtered: False () + +2a05:0:2::/48, AS_PATH: 5, NEXT_HOP: 2001:db8:1:1::51, via 2001:db8:1:1::2 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100 + filtered: False () + 2a06:0:1::/48, AS_PATH: 6, NEXT_HOP: 2001:db8:1:1::61, via 2001:db8:1:1::2 std comms: ext comms: diff --git a/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRDIPv4/bird16/AS1.txt b/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRDIPv4/bird16/AS1.txt index fb88dac2..e3af88ab 100644 --- a/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRDIPv4/bird16/AS1.txt +++ b/tests/live_tests/scenarios/max_prefix/routes/MaxPrefixScenario_BIRDIPv4/bird16/AS1.txt @@ -75,6 +75,20 @@ best: True, LOCAL_PREF: 100 filtered: False () +5.0.1.0/24, AS_PATH: 5, NEXT_HOP: 192.0.2.51, via 192.0.2.2 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100 + filtered: False () + +5.0.2.0/24, AS_PATH: 5, NEXT_HOP: 192.0.2.51, via 192.0.2.2 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100 + filtered: False () + 6.0.1.0/24, AS_PATH: 6, NEXT_HOP: 192.0.2.61, via 192.0.2.2 std comms: ext comms: diff --git a/tests/live_tests/scenarios/roles/configs/RolesScenario_BIRDIPv6/bird3.conf b/tests/live_tests/scenarios/roles/configs/RolesScenario_BIRDIPv6/bird3.conf new file mode 100644 index 00000000..7a24220b --- /dev/null +++ b/tests/live_tests/scenarios/roles/configs/RolesScenario_BIRDIPv6/bird3.conf @@ -0,0 +1,992 @@ + +router id 192.0.2.2; +define rs_as = 999; + +log "/var/log/bird.log" all; +log syslog all; +debug protocols { states, routes, filters, interfaces, events }; + +timeformat base iso long; +timeformat log iso long; +timeformat protocol iso long; +timeformat route iso long; + +protocol device {}; + +ipv4 table master4 sorted; +ipv6 table master6 sorted; + + + + +# --------------------------------------------------------- +# RPKI + +# RPKI not used. + + + +# --------------------------------------------------------- +# IRRDB + +# AS2, used_by client AS2_1, client AS2_2 +# no origin ASNs found for AS2 + +# no IPv4 prefixes found for AS2 +# no IPv6 prefixes found for AS2 + +# AS1, used_by client AS1_1, client AS1_2 +# no origin ASNs found for AS1 + +# no IPv4 prefixes found for AS1 +# no IPv6 prefixes found for AS1 + + + + + +# --------------------------------------------------------- +# COMMON + + +# This function returns True if 'net' is a bogon prefix +# or falls within a bogon prefix. +function prefix_is_bogon() +prefix set bogons_4; +prefix set bogons_6; +{ + bogons_4 = [ + # Default route + 0.0.0.0/0, + + # IANA - Local Identification + 0.0.0.0/8{8,32}, + + # RFC 1918 - Private Use + 10.0.0.0/8{8,32}, + + # IANA - Loopback + 127.0.0.0/8{8,32}, + + # RFC 3927 - Link Local + 169.254.0.0/16{16,32}, + + # RFC 1918 - Private Use + 172.16.0.0/12{12,32}, + + # RFC 5737 - TEST-NET-1 + 192.0.2.0/24{24,32}, + + # RFC 3068 - 6to4 prefix + 192.88.99.0/24{24,32}, + + # RFC 1918 - Private Use + 192.168.0.0/16{16,32}, + + # RFC 2544 - Network Interconnect Device Benchmark Testing + 198.18.0.0/15{15,32}, + + # RFC 5737 - TEST-NET-2 + 198.51.100.0/24{24,32}, + + # RFC 5737 - TEST-NET-3 + 203.0.113.0/24{24,32}, + + # RFC 5771 - Multcast (formerly Class D) + 224.0.0.0/3{3,32}, + + # RFC 6598 - Shared Address Space + 100.64.0.0/10{10,32} + ]; + bogons_6 = [ + # Default route + ::/0, + + # loopback, unspecified, v4-mapped + ::/8{8,128}, + + # RFC 6052 - IPv4-IPv6 Translation + 64:ff9b::/96{96,128}, + + # RFC 6666 - reserved for Discard-Only Address Block + 100::/8{8,128}, + + # RFC 4048 - Reserved by IETF + 200::/7{7,128}, + + # RFC 4291 - Reserved by IETF + 400::/6{6,128}, + + # RFC 4291 - Reserved by IETF + 800::/5{5,128}, + + # RFC 4291 - Reserved by IETF + 1000::/4{4,128}, + + # RFC 4380 - Teredo prefix + 2001::/33{33,128}, + + # RFC 4380 - Teredo prefix + 2001:0:8000::/33{33,128}, + + # RFC 5180 - Benchmarking + 2001:2::/48{48,128}, + + # RFC 7450 - Automatic Multicast Tunneling + 2001:3::/32{32,128}, + + # RFC 4843 - Deprecated ORCHID + 2001:10::/28{28,128}, + + # RFC 7343 - ORCHIDv2 + 2001:20::/28{28,128}, + + # RFC 3849 - NON-ROUTABLE range to be used for documentation purpose + 2001:db8::/32{32,128}, + + # RFC 3068 - 6to4 prefix + 2002::/16{16,128}, + + # RFC 5156 - used for the 6bone but was returned + 3ffe::/16{16,128}, + + # RFC 4291 - Reserved by IETF + 4000::/3{3,128}, + + # RFC 5156 - used for the 6bone but was returned + 5f00::/8{8,128}, + + # RFC 4291 - Reserved by IETF + 6000::/3{3,128}, + + # RFC 4291 - Reserved by IETF + 8000::/3{3,128}, + + # RFC 4291 - Reserved by IETF + a000::/3{3,128}, + + # RFC 4291 - Reserved by IETF + c000::/3{3,128}, + + # RFC 4291 - Reserved by IETF + e000::/4{4,128}, + + # RFC 4291 - Reserved by IETF + f000::/5{5,128}, + + # RFC 4291 - Reserved by IETF + f800::/6{6,128}, + + # RFC 4193 - Unique Local Unicast + fc00::/7{7,128}, + + # RFC 4291 - Link Local Unicast + fe80::/10{10,128}, + + # RFC 4291 - Reserved by IETF + fec0::/10{10,128}, + + # RFC 4291 - Multicast + ff00::/8{8,128} + ]; + + if net.type = NET_IP4 then + if net ~ bogons_4 then return true; + if net.type = NET_IP6 then + if net ~ bogons_6 then return true; + return false; +} + +# This function returns True if 'net' falls within a +# prefix contained in the global blacklist (for example, +# local networks) +function prefix_is_in_global_blacklist() +{ + # No IPv4 prefixes configured under the cfg.filtering.global_black_list_pref section. + # No IPv6 prefixes configured under the cfg.filtering.global_black_list_pref section. + return false; +} + +# This function returns True if the length of 'net' prefix +# falls within the range 'min'-'max' (included). +function prefix_len_is_valid (int pref_len_min; int pref_len_max) { + if net.len < pref_len_min then return false; + if net.len > pref_len_max then return false; + return true; +} + +# This function returns True if the AS_PATH contains one or +# more private/reserved ASN. +function as_path_contains_invalid_asn() +int set invalid_asns; +{ + # http://www.iana.org/assignments/as-numbers/as-numbers.xhtml + invalid_asns = [ + # 16-bit + 0, # Reserved. RFC7607 + 23456, # AS_TRANS. RFC6793 + 64496..64511, # Reserved for use in documentation and sample code. RFC5398 + 64512..65534, # Reserved for Private Use. RFC6996 + 65535, # Reserved. RFC7300 + + # 32-bit + 65536..65551, # Reserved for use in documentation and sample code. RFC5398 + 65552..131071, # Reserved. + 4200000000..4294967294, # Reserved for Private Use. [RFC6996] + 4294967295 # Reserved. RFC7300 + ]; + return bgp_path ~ invalid_asns; +} + + +# This function scrubs BGP communities used by the route server +# for signaling purpose toward its clients. (RFC7454, Section 11) +# It must be applied on routes entering the route server. +function scrub_communities_in() +{ + # reject_cause + bgp_community.delete([(65520, *)]); + +} + +# This function scrubs BGP communities used by clients to instruct +# the route server to perform some actions. +# It must be applied on routes leaving the route server. +function scrub_communities_out() +{ + # reject_cause + bgp_community.delete([(65520, *)]); + +} + +# This function verifies if the route is tagged with one of +# the blackhole filtering communities. +function is_blackhole_filtering_request() +{ + if net.type = NET_IP4 then { + } + if net.type = NET_IP6 then { + } + return false; +} + +# This function must be applied to outgoing routes. +# It applies the blackhole filtering policy to the current route. +function apply_blackhole_filtering_policy() { + if net.type = NET_IP4 then { + + reject "blackhole filtering requested but no IPv4 policy given - REJECTING ", net; + + } + if net.type = NET_IP6 then { + + reject "blackhole filtering requested but no IPv6 policy given - REJECTING ", net; + + } +} + +# This function verifies if the current route can be announced to +# the given client on the basis of the attached control BGP +# communities. +function route_can_be_announced_to(int peer_as; ip client_ip; string client_id) +int client_rtt; +{ + return true; +} + +# This function prepends the left-most ASN times. +function do_prepend(int times) { + case times { + 1: bgp_path.prepend(bgp_path.first); + 2: bgp_path.prepend(bgp_path.first); bgp_path.prepend(bgp_path.first); + 3: bgp_path.prepend(bgp_path.first); bgp_path.prepend(bgp_path.first); bgp_path.prepend(bgp_path.first); + } +} + +# This function verifies if the current route matches one of the +# control communities in charge of prepending client's ASN. +function apply_prepend(int peer_as; ip client_ip) +int client_rtt; +{ + + + + return true; +} + + +# This function adds NO_EXPORT and/or NO_ADVERTISE +# well-known communities. +function add_noexport_noadvertise(int peer_as) +{ +} + +function tag_and_reject(int cause; int announcing_asn) +int dyn_val; +{ + # 0: the route must be treated as discarded + dyn_val = 0; + bgp_community.add((65520, dyn_val)); + + + # cause: the reject cause + dyn_val = cause; + + # add the generic community from reject_cause + bgp_community.add((65520, dyn_val)); + + + + + bgp_local_pref = 1; +} + + + + + + + +# --------------------------------------------------------- +# MEMBERS + + +# AS-SET for AS1_1 +function origin_as_is_in_AS1_1_as_set() { + # AS-SET AS1 referenced but empty. + return false; +} + +# R-SET for AS1_1 +function prefix_is_in_AS1_1_as_set() { + # AS-SET AS1 referenced but empty. + return false; +} + +function next_hop_is_valid_for_AS1_1() +{ + # Checks if NEXT_HOP is one of those allowed for routes announced by AS1_1 + if bgp_next_hop = 192.0.2.11 then return true; + return false; +} + + +function verify_AS1_1_irrdb() +bool origin_ok; +bool prefix_ok; +bool validated; +{ + origin_ok = false; + prefix_ok = false; + validated = false; + + origin_ok = origin_as_is_in_AS1_1_as_set(); + prefix_ok = prefix_is_in_AS1_1_as_set(); + + + + + + +} + +filter receive_from_AS1_1 { + if !(source = RTS_BGP ) then + { tag_and_reject(65535, 1); print "source != RTS_BGP - REJECTING ", net; accept; } + + if !(net.type = NET_IP4) then + { tag_and_reject(65535, 1); print "AFI not enabled for this peer - REJECTING ", net; accept; } + + + scrub_communities_in(); + + + # NEXT_HOP + if !next_hop_is_valid_for_AS1_1() then + { tag_and_reject(5, 1); print "NEXT_HOP [", bgp_next_hop, "] not allowed - REJECTING ", net; accept; } + + # AS_PATH: length + if bgp_path.len > 32 then + { tag_and_reject(1, 1); print "AS_PATH len [", bgp_path.len ,"] longer than 32 - REJECTING ", net; accept; } + + # AS_PATH: left-most ASN + if bgp_path.first != 1 then + { tag_and_reject(6, 1); print "invalid left-most ASN [", bgp_path.first, "] - REJECTING ", net; accept; } + + # AS_PATH: invalid ASNs + if as_path_contains_invalid_asn() then + { tag_and_reject(7, 1); print "AS_PATH [", bgp_path ,"] contains invalid ASN - REJECTING ", net; accept; } + + + + + # Prefix: global blacklist + if prefix_is_in_global_blacklist() then + { tag_and_reject(3, 1); print "prefix is in global blacklist - REJECTING ", net; accept; } + + + # Prefix: bogon + if prefix_is_bogon() then + { tag_and_reject(2, 1); print "prefix is bogon - REJECTING ", net; accept; } + + # IRRdb checks + verify_AS1_1_irrdb(); + + # Blackhole request? + if is_blackhole_filtering_request() then { + accept "blackhole filtering request from AS1_1 - ACCEPTING ", net; + } else { + + # Prefix: length + if !prefix_len_is_valid(8, 24) then + { tag_and_reject(13, 1); print "prefix len [", net.len, "] not in 8-24 - REJECTING ", net; accept; } + + } + + + accept; +} + +filter announce_to_AS1_1 +{ + + + if (65520, 0) ~ bgp_community then + reject; + + + # Blackhole request? + if is_blackhole_filtering_request() then { + apply_blackhole_filtering_policy(); + } + + # BGP control communities + if !route_can_be_announced_to(1, 192.0.2.11, "AS1_1") then + reject "route didn't pass control communities checks - NOT ANNOUNCING ", net, " TO AS1_1"; + + apply_prepend(1, 192.0.2.11); + + + add_noexport_noadvertise(1); + + scrub_communities_out(); + + + + accept; +} + +protocol bgp AS1_1 { + + local as 999; + neighbor 192.0.2.11 as 1; + rs client; + + local role rs_server; + + passive on; + ttl security off; + + interpret communities off; + + # --------------------------------------- + ipv4 { + table master4; + + + secondary; + + + import table on; + + import keep filtered on; + + import filter receive_from_AS1_1; + export filter announce_to_AS1_1; + # --------------------------------------- + }; + + } + + +# AS-SET for AS1_2 +function origin_as_is_in_AS1_2_as_set() { + # AS-SET AS1 referenced but empty. + return false; +} + +# R-SET for AS1_2 +function prefix_is_in_AS1_2_as_set() { + # AS-SET AS1 referenced but empty. + return false; +} + +function next_hop_is_valid_for_AS1_2() +{ + # Checks if NEXT_HOP is one of those allowed for routes announced by AS1_2 + if bgp_next_hop = 2001:db8:1:1::11 then return true; + return false; +} + + +function verify_AS1_2_irrdb() +bool origin_ok; +bool prefix_ok; +bool validated; +{ + origin_ok = false; + prefix_ok = false; + validated = false; + + origin_ok = origin_as_is_in_AS1_2_as_set(); + prefix_ok = prefix_is_in_AS1_2_as_set(); + + + + + + +} + +filter receive_from_AS1_2 { + if !(source = RTS_BGP ) then + { tag_and_reject(65535, 1); print "source != RTS_BGP - REJECTING ", net; accept; } + + if !(net.type = NET_IP6) then + { tag_and_reject(65535, 1); print "AFI not enabled for this peer - REJECTING ", net; accept; } + + + scrub_communities_in(); + + + # NEXT_HOP + if !next_hop_is_valid_for_AS1_2() then + { tag_and_reject(5, 1); print "NEXT_HOP [", bgp_next_hop, "] not allowed - REJECTING ", net; accept; } + + # AS_PATH: length + if bgp_path.len > 32 then + { tag_and_reject(1, 1); print "AS_PATH len [", bgp_path.len ,"] longer than 32 - REJECTING ", net; accept; } + + # AS_PATH: left-most ASN + if bgp_path.first != 1 then + { tag_and_reject(6, 1); print "invalid left-most ASN [", bgp_path.first, "] - REJECTING ", net; accept; } + + # AS_PATH: invalid ASNs + if as_path_contains_invalid_asn() then + { tag_and_reject(7, 1); print "AS_PATH [", bgp_path ,"] contains invalid ASN - REJECTING ", net; accept; } + + + + # Prefix: only IPv6 Global Unicast space allowed + if !(net ~ [2000::/3+]) then + { tag_and_reject(10, 1); print "prefix is not in IPv6 Global Unicast space - REJECTING ", net; accept; } + + # Prefix: global blacklist + if prefix_is_in_global_blacklist() then + { tag_and_reject(3, 1); print "prefix is in global blacklist - REJECTING ", net; accept; } + + + # Prefix: bogon + if prefix_is_bogon() then + { tag_and_reject(2, 1); print "prefix is bogon - REJECTING ", net; accept; } + + # IRRdb checks + verify_AS1_2_irrdb(); + + # Blackhole request? + if is_blackhole_filtering_request() then { + accept "blackhole filtering request from AS1_2 - ACCEPTING ", net; + } else { + + # Prefix: length + if !prefix_len_is_valid(12, 48) then + { tag_and_reject(13, 1); print "prefix len [", net.len, "] not in 12-48 - REJECTING ", net; accept; } + + } + + + accept; +} + +filter announce_to_AS1_2 +{ + + + if (65520, 0) ~ bgp_community then + reject; + + + # Blackhole request? + if is_blackhole_filtering_request() then { + apply_blackhole_filtering_policy(); + } + + # BGP control communities + if !route_can_be_announced_to(1, 2001:db8:1:1::11, "AS1_2") then + reject "route didn't pass control communities checks - NOT ANNOUNCING ", net, " TO AS1_2"; + + apply_prepend(1, 2001:db8:1:1::11); + + + add_noexport_noadvertise(1); + + scrub_communities_out(); + + + + accept; +} + +protocol bgp AS1_2 { + + local as 999; + neighbor 2001:db8:1:1::11 as 1; + rs client; + + local role rs_server; + + passive on; + ttl security off; + + interpret communities off; + + # --------------------------------------- + ipv6 { + table master6; + + + secondary; + + + import table on; + + import keep filtered on; + + import filter receive_from_AS1_2; + export filter announce_to_AS1_2; + # --------------------------------------- + }; + + } + + +# AS-SET for AS2_1 +function origin_as_is_in_AS2_1_as_set() { + # AS-SET AS2 referenced but empty. + return false; +} + +# R-SET for AS2_1 +function prefix_is_in_AS2_1_as_set() { + # AS-SET AS2 referenced but empty. + return false; +} + +function next_hop_is_valid_for_AS2_1() +{ + # Checks if NEXT_HOP is one of those allowed for routes announced by AS2_1 + if bgp_next_hop = 192.0.2.22 then return true; + return false; +} + + +function verify_AS2_1_irrdb() +bool origin_ok; +bool prefix_ok; +bool validated; +{ + origin_ok = false; + prefix_ok = false; + validated = false; + + origin_ok = origin_as_is_in_AS2_1_as_set(); + prefix_ok = prefix_is_in_AS2_1_as_set(); + + + + + + +} + +filter receive_from_AS2_1 { + if !(source = RTS_BGP ) then + { tag_and_reject(65535, 2); print "source != RTS_BGP - REJECTING ", net; accept; } + + if !(net.type = NET_IP4) then + { tag_and_reject(65535, 2); print "AFI not enabled for this peer - REJECTING ", net; accept; } + + + scrub_communities_in(); + + + # NEXT_HOP + if !next_hop_is_valid_for_AS2_1() then + { tag_and_reject(5, 2); print "NEXT_HOP [", bgp_next_hop, "] not allowed - REJECTING ", net; accept; } + + # AS_PATH: length + if bgp_path.len > 32 then + { tag_and_reject(1, 2); print "AS_PATH len [", bgp_path.len ,"] longer than 32 - REJECTING ", net; accept; } + + # AS_PATH: left-most ASN + if bgp_path.first != 2 then + { tag_and_reject(6, 2); print "invalid left-most ASN [", bgp_path.first, "] - REJECTING ", net; accept; } + + # AS_PATH: invalid ASNs + if as_path_contains_invalid_asn() then + { tag_and_reject(7, 2); print "AS_PATH [", bgp_path ,"] contains invalid ASN - REJECTING ", net; accept; } + + + + + # Prefix: global blacklist + if prefix_is_in_global_blacklist() then + { tag_and_reject(3, 2); print "prefix is in global blacklist - REJECTING ", net; accept; } + + + # Prefix: bogon + if prefix_is_bogon() then + { tag_and_reject(2, 2); print "prefix is bogon - REJECTING ", net; accept; } + + # IRRdb checks + verify_AS2_1_irrdb(); + + # Blackhole request? + if is_blackhole_filtering_request() then { + accept "blackhole filtering request from AS2_1 - ACCEPTING ", net; + } else { + + # Prefix: length + if !prefix_len_is_valid(8, 24) then + { tag_and_reject(13, 2); print "prefix len [", net.len, "] not in 8-24 - REJECTING ", net; accept; } + + } + + + accept; +} + +filter announce_to_AS2_1 +{ + + + if (65520, 0) ~ bgp_community then + reject; + + + # Blackhole request? + if is_blackhole_filtering_request() then { + apply_blackhole_filtering_policy(); + } + + # BGP control communities + if !route_can_be_announced_to(2, 192.0.2.22, "AS2_1") then + reject "route didn't pass control communities checks - NOT ANNOUNCING ", net, " TO AS2_1"; + + apply_prepend(2, 192.0.2.22); + + + add_noexport_noadvertise(2); + + scrub_communities_out(); + + + + accept; +} + +protocol bgp AS2_1 { + + local as 999; + neighbor 192.0.2.22 as 2; + rs client; + + local role rs_server; + + passive on; + ttl security off; + + interpret communities off; + + # --------------------------------------- + ipv4 { + table master4; + + + secondary; + + + import table on; + + import keep filtered on; + + import filter receive_from_AS2_1; + export filter announce_to_AS2_1; + # --------------------------------------- + }; + + } + + +# AS-SET for AS2_2 +function origin_as_is_in_AS2_2_as_set() { + # AS-SET AS2 referenced but empty. + return false; +} + +# R-SET for AS2_2 +function prefix_is_in_AS2_2_as_set() { + # AS-SET AS2 referenced but empty. + return false; +} + +function next_hop_is_valid_for_AS2_2() +{ + # Checks if NEXT_HOP is one of those allowed for routes announced by AS2_2 + if bgp_next_hop = 2001:db8:1:1::22 then return true; + return false; +} + + +function verify_AS2_2_irrdb() +bool origin_ok; +bool prefix_ok; +bool validated; +{ + origin_ok = false; + prefix_ok = false; + validated = false; + + origin_ok = origin_as_is_in_AS2_2_as_set(); + prefix_ok = prefix_is_in_AS2_2_as_set(); + + + + + + +} + +filter receive_from_AS2_2 { + if !(source = RTS_BGP ) then + { tag_and_reject(65535, 2); print "source != RTS_BGP - REJECTING ", net; accept; } + + if !(net.type = NET_IP6) then + { tag_and_reject(65535, 2); print "AFI not enabled for this peer - REJECTING ", net; accept; } + + + scrub_communities_in(); + + + # NEXT_HOP + if !next_hop_is_valid_for_AS2_2() then + { tag_and_reject(5, 2); print "NEXT_HOP [", bgp_next_hop, "] not allowed - REJECTING ", net; accept; } + + # AS_PATH: length + if bgp_path.len > 32 then + { tag_and_reject(1, 2); print "AS_PATH len [", bgp_path.len ,"] longer than 32 - REJECTING ", net; accept; } + + # AS_PATH: left-most ASN + if bgp_path.first != 2 then + { tag_and_reject(6, 2); print "invalid left-most ASN [", bgp_path.first, "] - REJECTING ", net; accept; } + + # AS_PATH: invalid ASNs + if as_path_contains_invalid_asn() then + { tag_and_reject(7, 2); print "AS_PATH [", bgp_path ,"] contains invalid ASN - REJECTING ", net; accept; } + + + + # Prefix: only IPv6 Global Unicast space allowed + if !(net ~ [2000::/3+]) then + { tag_and_reject(10, 2); print "prefix is not in IPv6 Global Unicast space - REJECTING ", net; accept; } + + # Prefix: global blacklist + if prefix_is_in_global_blacklist() then + { tag_and_reject(3, 2); print "prefix is in global blacklist - REJECTING ", net; accept; } + + + # Prefix: bogon + if prefix_is_bogon() then + { tag_and_reject(2, 2); print "prefix is bogon - REJECTING ", net; accept; } + + # IRRdb checks + verify_AS2_2_irrdb(); + + # Blackhole request? + if is_blackhole_filtering_request() then { + accept "blackhole filtering request from AS2_2 - ACCEPTING ", net; + } else { + + # Prefix: length + if !prefix_len_is_valid(12, 48) then + { tag_and_reject(13, 2); print "prefix len [", net.len, "] not in 12-48 - REJECTING ", net; accept; } + + } + + + accept; +} + +filter announce_to_AS2_2 +{ + + + if (65520, 0) ~ bgp_community then + reject; + + + # Blackhole request? + if is_blackhole_filtering_request() then { + apply_blackhole_filtering_policy(); + } + + # BGP control communities + if !route_can_be_announced_to(2, 2001:db8:1:1::22, "AS2_2") then + reject "route didn't pass control communities checks - NOT ANNOUNCING ", net, " TO AS2_2"; + + apply_prepend(2, 2001:db8:1:1::22); + + + add_noexport_noadvertise(2); + + scrub_communities_out(); + + + + accept; +} + +protocol bgp AS2_2 { + + local as 999; + neighbor 2001:db8:1:1::22 as 2; + rs client; + + local role rs_server; + + passive on; + ttl security off; + + interpret communities off; + + # --------------------------------------- + ipv6 { + table master6; + + + secondary; + + + import table on; + + import keep filtered on; + + import filter receive_from_AS2_2; + export filter announce_to_AS2_2; + # --------------------------------------- + }; + + } + + + diff --git a/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS1.txt b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS1.txt new file mode 100644 index 00000000..eae46f44 --- /dev/null +++ b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS1.txt @@ -0,0 +1,7 @@ +3101::/48, AS_PATH: 101, NEXT_HOP: 2001:db8:1:1::101, via 2001:db8:1:1::101 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100, OTC: 101 + filtered: False () + diff --git a/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS101.txt b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS101.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS2.txt b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS2.txt new file mode 100644 index 00000000..409e12b9 --- /dev/null +++ b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/AS2.txt @@ -0,0 +1,7 @@ +3001::/48, AS_PATH: 1, NEXT_HOP: 2001:db8:1:1::11, via 2001:db8:1:1::2 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100, OTC: 999 + filtered: False () + diff --git a/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/rs.txt b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/rs.txt new file mode 100644 index 00000000..60294524 --- /dev/null +++ b/tests/live_tests/scenarios/roles/routes/RolesScenario_BIRDIPv6/bird3/rs.txt @@ -0,0 +1,7 @@ +3001::/48, AS_PATH: 1, NEXT_HOP: 2001:db8:1:1::11, via 2001:db8:1:1::11 + std comms: + ext comms: + lrg comms: + best: True, LOCAL_PREF: 100 + filtered: False () + diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRD2IPv6/bird2.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRD2IPv6/bird2.conf index 8d09e532..4790597e 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRD2IPv6/bird2.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRD2IPv6/bird2.conf @@ -193,16 +193,16 @@ define AS_SET_AS_AS2_prefixes_6 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_4 = [ - 2.7.0.0/16{16,32}, 2.0.5.0/24{24,32}, 2.6.0.0/16{16,32} + 2.0.5.0/24{24,32}, 2.7.0.0/16{16,32}, 2.6.0.0/16{16,32} ]; define ARIN_Whois_db_AS2_6 = [ - 2a02:7::/32{32,128}, 2a02:6::/32{32,128}, 2a02:0:5::/48{48,128} + 2a02:0:5::/48{48,128}, 2a02:6::/32{32,128}, 2a02:7::/32{32,128} ]; define ARIN_Whois_db_AS3_4 = [ - 3.3.0.0/16{16,32}, 3.2.0.0/16{16,32} + 3.2.0.0/16{16,32}, 3.3.0.0/16{16,32} ]; define ARIN_Whois_db_AS3_6 = [ - 2a03:2::/32{32,128}, 2a03:3::/32{32,128} + 2a03:3::/32{32,128}, 2a03:2::/32{32,128} ]; define ARIN_Whois_db_AS6_4 = [ 6.0.1.0/24{24,32} diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv4/bird16.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv4/bird16.conf index 5686bbde..1c6b3a21 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv4/bird16.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv4/bird16.conf @@ -126,10 +126,10 @@ define AS_SET_AS_AS2_prefixes_4 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_4 = [ - 2.0.5.0/24{24,32}, 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32} + 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32}, 2.0.5.0/24{24,32} ]; define ARIN_Whois_db_AS3_4 = [ - 3.3.0.0/16{16,32}, 3.2.0.0/16{16,32} + 3.2.0.0/16{16,32}, 3.3.0.0/16{16,32} ]; define ARIN_Whois_db_AS6_4 = [ 6.0.1.0/24{24,32} diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv6/bird16.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv6/bird16.conf index 9c79968d..09d8e3a1 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv6/bird16.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDIPv6/bird16.conf @@ -126,10 +126,10 @@ define AS_SET_AS_AS2_prefixes_6 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_6 = [ - 2a02:7::/32{32,128}, 2a02:6::/32{32,128}, 2a02:0:5::/48{48,128} + 2a02:6::/32{32,128}, 2a02:7::/32{32,128}, 2a02:0:5::/48{48,128} ]; define ARIN_Whois_db_AS3_6 = [ - 2a03:3::/32{32,128}, 2a03:2::/32{32,128} + 2a03:2::/32{32,128}, 2a03:3::/32{32,128} ]; define ARIN_Whois_db_AS6_6 = [ 2a06:0:1::/48{48,128} diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird2.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird2.conf index fd0b2acb..0af75aca 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird2.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird2.conf @@ -193,16 +193,16 @@ define AS_SET_AS_AS2_prefixes_4 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_4 = [ - 2.7.0.0/16{16,32}, 2.0.5.0/24{24,32}, 2.6.0.0/16{16,32} + 2.0.5.0/24{24,32}, 2.7.0.0/16{16,32}, 2.6.0.0/16{16,32} ]; define ARIN_Whois_db_AS2_6 = [ - 2a02:7::/32{32,128}, 2a02:6::/32{32,128}, 2a02:0:5::/48{48,128} + 2a02:0:5::/48{48,128}, 2a02:6::/32{32,128}, 2a02:7::/32{32,128} ]; define ARIN_Whois_db_AS3_4 = [ - 3.3.0.0/16{16,32}, 3.2.0.0/16{16,32} + 3.2.0.0/16{16,32}, 3.3.0.0/16{16,32} ]; define ARIN_Whois_db_AS3_6 = [ - 2a03:2::/32{32,128}, 2a03:3::/32{32,128} + 2a03:3::/32{32,128}, 2a03:2::/32{32,128} ]; define ARIN_Whois_db_AS6_4 = [ 6.0.1.0/24{24,32} diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird3.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird3.conf index 9c92807b..d1946ab3 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird3.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv4/bird3.conf @@ -193,16 +193,16 @@ define AS_SET_AS_AS2_prefixes_4 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_4 = [ - 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32}, 2.0.5.0/24{24,32} + 2.0.5.0/24{24,32}, 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32} ]; define ARIN_Whois_db_AS2_6 = [ - 2a02:0:5::/48{48,128}, 2a02:6::/32{32,128}, 2a02:7::/32{32,128} + 2a02:0:5::/48{48,128}, 2a02:7::/32{32,128}, 2a02:6::/32{32,128} ]; define ARIN_Whois_db_AS3_4 = [ 3.3.0.0/16{16,32}, 3.2.0.0/16{16,32} ]; define ARIN_Whois_db_AS3_6 = [ - 2a03:3::/32{32,128}, 2a03:2::/32{32,128} + 2a03:2::/32{32,128}, 2a03:3::/32{32,128} ]; define ARIN_Whois_db_AS6_4 = [ 6.0.1.0/24{24,32} diff --git a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv6/bird3.conf b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv6/bird3.conf index be569b65..e3c2e391 100644 --- a/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv6/bird3.conf +++ b/tests/live_tests/scenarios/tag_as_set/configs/TagASSetScenario_WithAS_SETs_BIRDsIPv6/bird3.conf @@ -193,16 +193,16 @@ define AS_SET_AS_AS2_prefixes_6 = [ # ARIN Whois database records define ARIN_Whois_db_AS2_4 = [ - 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32}, 2.0.5.0/24{24,32} + 2.0.5.0/24{24,32}, 2.6.0.0/16{16,32}, 2.7.0.0/16{16,32} ]; define ARIN_Whois_db_AS2_6 = [ - 2a02:0:5::/48{48,128}, 2a02:6::/32{32,128}, 2a02:7::/32{32,128} + 2a02:0:5::/48{48,128}, 2a02:7::/32{32,128}, 2a02:6::/32{32,128} ]; define ARIN_Whois_db_AS3_4 = [ 3.3.0.0/16{16,32}, 3.2.0.0/16{16,32} ]; define ARIN_Whois_db_AS3_6 = [ - 2a03:3::/32{32,128}, 2a03:2::/32{32,128} + 2a03:2::/32{32,128}, 2a03:3::/32{32,128} ]; define ARIN_Whois_db_AS6_4 = [ 6.0.1.0/24{24,32}