gbp: fix contracts dpo ACL match 80/20680/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 15 Jul 2019 14:29:19 +0000 (16:29 +0200)
committerNeale Ranns <nranns@cisco.com>
Tue, 16 Jul 2019 15:46:16 +0000 (15:46 +0000)
Type: fix
Fixes: 1d6d9f021c5a169dedca55b46451ab54728e3ee8

Change-Id: I3912c8bb78d678170bdd86821d2ead3ae0396841
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/gbp/gbp_contract.h

index c87af52..139de1c 100644 (file)
@@ -310,9 +310,9 @@ gbp_contract_apply (vlib_main_t * vm, gbp_main_t * gm,
   action = 0;
   acl_plugin_fill_5tuple_inline (gm->acl_plugin.p_acl_main,
                                 contract->gc_lc_index, b, ip6,
-                                0 /* is_input */ ,
-                                GBP_CONTRACT_APPLY_L2 ==
-                                type /* is_l2_path */ , &fa_5tuple);
+                                GBP_CONTRACT_APPLY_L2 != type /* input */ ,
+                                GBP_CONTRACT_APPLY_L2 == type /* l2_path */ ,
+                                &fa_5tuple);
   acl_plugin_match_5tuple_inline (gm->acl_plugin.p_acl_main,
                                  contract->gc_lc_index, &fa_5tuple, ip6,
                                  &action, &acl_pos, &acl_match, &rule_match,