Tolerate missing nodes during feature arc initialisation 51/10051/2
authorNeale Ranns <nranns@cisco.com>
Wed, 10 Jan 2018 11:49:29 +0000 (03:49 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 16 Jan 2018 23:12:42 +0000 (23:12 +0000)
Change-Id: Ib0d0b663bf71ce52ead2f81140c710f31f040f89
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/feature/registration.c

index 1deeeef..b05d1dc 100644 (file)
@@ -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 */