From 3d2a914762af9f9b608480c5ecf5b50e7ab36d5c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 16 Aug 2017 21:23:44 -0700 Subject: feature: exit on misconfigured features (VPP-915) Change-Id: Ifa11f356d727b69cb121a2bf4cfb9d87883f545d Signed-off-by: Florin Coras --- src/vnet/feature/feature.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/vnet/feature/feature.c') diff --git a/src/vnet/feature/feature.c b/src/vnet/feature/feature.c index f0e9004c64d..ad4047e62b3 100644 --- a/src/vnet/feature/feature.c +++ b/src/vnet/feature/feature.c @@ -65,8 +65,11 @@ vnet_feature_init (vlib_main_t * vm) vnet_feature_registration_t *next; uword *p = hash_get_mem (fm->arc_index_by_name, freg->arc_name); if (p == 0) - return clib_error_return (0, "Unknown feature arc '%s'", - freg->arc_name); + { + /* Don't start vpp with broken features arcs */ + clib_warning ("Unknown feature arc '%s'", freg->arc_name); + os_exit (1); + } areg = uword_to_pointer (p[0], vnet_feature_arc_registration_t *); arc_index = areg->feature_arc_index; @@ -95,7 +98,8 @@ vnet_feature_init (vlib_main_t * vm) fm->next_feature_by_arc[arc_index], &fm->feature_nodes[arc_index]))) { - return error; + clib_error_report (error); + os_exit (1); } fm->next_feature_by_name[arc_index] = -- cgit 1.2.3-korg