diff options
author | Neale Ranns <nranns@cisco.com> | 2018-01-10 03:49:29 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-01-16 23:12:42 +0000 |
commit | 0e7c5f55f4f1304744e561ad7d613f39f8d2b64e (patch) | |
tree | b6c20f81ff76db1528ac95963d3af2fba6558668 | |
parent | fb3bd5967d9442acfb4bdbf0fa91b6316d57091c (diff) |
Tolerate missing nodes during feature arc initialisation
Change-Id: Ib0d0b663bf71ce52ead2f81140c710f31f040f89
Signed-off-by: Neale Ranns <nranns@cisco.com>
-rw-r--r-- | src/vnet/feature/registration.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 */ |