gbp: missing contract hash-mode setting 28/22928/2
authorNeale Ranns <nranns@cisco.com>
Tue, 22 Oct 2019 12:32:49 +0000 (12:32 +0000)
committerOle Trøan <otroan@employees.org>
Tue, 22 Oct 2019 13:52:31 +0000 (13:52 +0000)
Type: fix

Change-Id: Ia0f1e88b43e861d3f6965076c73cc48fb9574da3
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/plugins/gbp/test/test_gbp.py

index 09362e4..c7cdab8 100644 (file)
@@ -4950,10 +4950,12 @@ class TestGBP(VppTestCase):
             self, 44, 4220, 4221, acl_index,
             [VppGbpContractRule(
                 VppEnum.vl_api_gbp_rule_action_t.GBP_API_RULE_PERMIT,
+                VppEnum.vl_api_gbp_hash_mode_t.GBP_API_HASH_MODE_SRC_IP,
                 []),
-                VppGbpContractRule(
-                    VppEnum.vl_api_gbp_rule_action_t.GBP_API_RULE_PERMIT,
-                    [])],
+             VppGbpContractRule(
+                 VppEnum.vl_api_gbp_rule_action_t.GBP_API_RULE_PERMIT,
+                 VppEnum.vl_api_gbp_hash_mode_t.GBP_API_HASH_MODE_SRC_IP,
+                 [])],
             [ETH_P_IP, ETH_P_IPV6])
         c_44.add_vpp_config()
         self.send_and_assert_no_replies(self.pg0, p * 1)