From 1904b96289d82315dd0ec75eb0fd49cd04c605c5 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Mon, 19 May 2014 14:31:50 -0700 Subject: [PATCH] Use the right version in the rule deletion test. Change-Id: I54e53cf7751f1fce464c72d5a0468bba553f2cfa --- tests/net_test/mark_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/net_test/mark_test.py b/tests/net_test/mark_test.py index 0954669a..3d1ca1c5 100755 --- a/tests/net_test/mark_test.py +++ b/tests/net_test/mark_test.py @@ -1646,7 +1646,7 @@ class RulesTest(net_test.NetworkTest): self.iproute.FwmarkRule(version, False, 300, 302, priority=self.RULE_PRIORITY) # Check that the rule pointing at table 301 is still around. - attributes = [a for _, a in self.iproute.DumpRules(4) + attributes = [a for _, a in self.iproute.DumpRules(version) if a.get("FRA_PRIORITY", 0) == self.RULE_PRIORITY] self.assertEquals(1, len(attributes)) self.assertEquals(301, attributes[0]["FRA_TABLE"]) -- 2.11.0