From f2f72e8245204b206169e42681942e5845bc0a3e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 15 Mar 2019 09:02:52 +0100 Subject: [PATCH] platform/tests: workaround FIB_RULE_INVERT of rules for kernel issue rh#1686075 Fixes: b8398b9e7948 ('platform: add NMPRulesManager for syncing routing rules') --- src/platform/tests/test-route.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c index c164ef120e..6e01b0b067 100644 --- a/src/platform/tests/test-route.c +++ b/src/platform/tests/test-route.c @@ -1300,6 +1300,10 @@ _rule_fuzzy_equal (const NMPObject *obj, rr_co.flow = 0; if (rr->tos == 0) rr_co.tos = 0; + if (!NM_FLAGS_HAS (rr->flags, FIB_RULE_INVERT)) + rr_co.flags &= ~((guint32) FIB_RULE_INVERT); + else + rr_co.flags |= ((guint32) FIB_RULE_INVERT); break; case RTM_DELRULE: /* when deleting a rule with RTM_DELRULE, kernel tries to find the