diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-07-03 17:34:21 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-08 07:46:49 +0000 |
commit | 1d6d9f021c5a169dedca55b46451ab54728e3ee8 (patch) | |
tree | 6c8317499e028ff743e7fa33e3f2da1fcfcfcd90 /src/plugins/gbp/gbp_contract.c | |
parent | 94bef09213c1e47d37f8342b746de767d9669739 (diff) |
gbp: refactor policy nodes
Refactor both policy and policy-dpo nodes so they share the same code
for contract & acl lookup and for tracing.
This should help to implement new policy schemes.
Type: refactor
Change-Id: If5704bda708838eb01516dd39473d9bf248cfdf6
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_contract.c')
-rw-r--r-- | src/plugins/gbp/gbp_contract.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_contract.c b/src/plugins/gbp/gbp_contract.c index a24edb362f5..c7c23782f44 100644 --- a/src/plugins/gbp/gbp_contract.c +++ b/src/plugins/gbp/gbp_contract.c @@ -19,10 +19,17 @@ #include <plugins/gbp/gbp_bridge_domain.h> #include <plugins/gbp/gbp_route_domain.h> #include <plugins/gbp/gbp_policy_dpo.h> +#include <plugins/gbp/gbp_contract.h> #include <vnet/dpo/load_balance.h> #include <vnet/dpo/drop_dpo.h> +char *gbp_contract_error_strings[] = { +#define _(sym,string) string, + foreach_gbp_contract_error +#undef _ +}; + /** * Single contract DB instance */ |