diff options
author | Mauro Sardara <msardara@cisco.com> | 2023-01-20 14:54:19 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2023-01-20 18:13:11 +0000 |
commit | da0d60997bce1e40cc0b1c7b7f4f58df56bbead3 (patch) | |
tree | 530be0daa63f8632218d73419fa9d05d00d3b5a3 /ctrl/libhicnctrl/src/modules/hicn_plugin.c | |
parent | 3e5e7e22f80bd64b51d3182339c77eccb5109c2e (diff) |
feat: implement set strategy API for hicn-plugin
Ticket: HICN-829
Change-Id: I3dabc38e9cc2e06ebed14b9ed265d027f77b7e5f
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl/src/modules/hicn_plugin.c')
-rw-r--r-- | ctrl/libhicnctrl/src/modules/hicn_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/modules/hicn_plugin.c b/ctrl/libhicnctrl/src/modules/hicn_plugin.c index b3963b46c..b8606daf7 100644 --- a/ctrl/libhicnctrl/src/modules/hicn_plugin.c +++ b/ctrl/libhicnctrl/src/modules/hicn_plugin.c @@ -39,6 +39,7 @@ #include "hicn_plugin/base.h" // hc_sock_vpp_data_t #include "hicn_plugin/listener.h" #include "hicn_plugin/route.h" +#include "hicn_plugin/strategy.h" /****************************************************************************** * Message helper types and aliases @@ -241,7 +242,7 @@ int hc_sock_initialize_module(hc_sock_t *s) { s->ops.object_vft[OBJECT_TYPE_WLDR] = HC_MODULE_OBJECT_OPS_EMPTY; s->ops.object_vft[OBJECT_TYPE_POLICY] = HC_MODULE_OBJECT_OPS_EMPTY; s->ops.object_vft[OBJECT_TYPE_ROUTE] = vpp_route_module_ops; - s->ops.object_vft[OBJECT_TYPE_STRATEGY] = HC_MODULE_OBJECT_OPS_EMPTY; + s->ops.object_vft[OBJECT_TYPE_STRATEGY] = vpp_strategy_module_ops; s->ops.object_vft[OBJECT_TYPE_SUBSCRIPTION] = HC_MODULE_OBJECT_OPS_EMPTY; return 0; } |