summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-01-26 12:46:16 +0100
committerThomas Haller <thaller@redhat.com>2023-01-27 18:03:50 +0100
commit86799840131a0e78a7544aa3d332a65d9847fb0e (patch)
tree503c2af3763371b80c5d57d5269b104d71c75425
parent4b324df7495a936b93e11d90f4bf5aa8fc6cf045 (diff)
downloadNetworkManager-86799840131a0e78a7544aa3d332a65d9847fb0e.tar.gz
platform/tests: avoid recent route protocols in "/route/test_cache_consistency_routes" tests
Ubuntu 18.04 comes with iproute2-4.15.0-2ubuntu1.3. The "/etc/iproute2/rt_protos" file from that version does not yet support the "bgp" entry. Also the "babel" entry is only from 2014. Just choose other entries. The point is that NetworkManager would ignore those, and that applies to "zebra" and "bird" alike.
-rw-r--r--src/core/platform/tests/test-route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/platform/tests/test-route.c b/src/core/platform/tests/test-route.c
index 64f9ffd778..bae38f265c 100644
--- a/src/core/platform/tests/test-route.c
+++ b/src/core/platform/tests/test-route.c
@@ -2262,7 +2262,7 @@ test_cache_consistency_routes(gconstpointer test_data)
if (s) {
if (nmtst_get_rand_bool()) {
s = nm_streq(s, "kernel") ? nmtst_rand_select_str("boot", "static", "ra")
- : nmtst_rand_select_str("babel", "bgp");
+ : nmtst_rand_select_str("zebra", "bird");
}
extra_options[n_extra_options++] = "proto";
extra_options[n_extra_options++] = s;