From 1d6d9f021c5a169dedca55b46451ab54728e3ee8 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Wed, 3 Jul 2019 17:34:21 +0200 Subject: gbp: refactor policy nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/plugins/gbp/gbp_contract.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/gbp/gbp_contract.c') 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 #include #include +#include #include #include +char *gbp_contract_error_strings[] = { +#define _(sym,string) string, + foreach_gbp_contract_error +#undef _ +}; + /** * Single contract DB instance */ -- cgit 1.2.3-korg