From 0e7c5f55f4f1304744e561ad7d613f39f8d2b64e Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 10 Jan 2018 03:49:29 -0800 Subject: Tolerate missing nodes during feature arc initialisation Change-Id: Ib0d0b663bf71ce52ead2f81140c710f31f040f89 Signed-off-by: Neale Ranns --- src/vnet/feature/registration.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/vnet') diff --git a/src/vnet/feature/registration.c b/src/vnet/feature/registration.c index 1deeeef904c..b05d1dc8b0d 100644 --- a/src/vnet/feature/registration.c +++ b/src/vnet/feature/registration.c @@ -201,12 +201,18 @@ vnet_feature_arc_init (vlib_main_t * vm, * Nonexistent graph nodes are tolerated. */ if (p == 0) - return clib_error_return (0, "feature node '%s' not found", a_name); + { + clib_warning ("feature node '%s' not found", a_name); + continue; + } a_index = p[0]; p = hash_get_mem (index_by_name, b_name); if (p == 0) - return clib_error_return (0, "feature node '%s' not found", b_name); + { + clib_warning ("feature node '%s' not found", b_name); + continue; + } b_index = p[0]; /* add a before b to the original set of constraints */ -- cgit 1.2.3-korg