FIB: do debug before remvoing last source 35/18535/2
authorNeale Ranns <nranns@cisco.com>
Tue, 26 Mar 2019 14:25:11 +0000 (07:25 -0700)
committerNeale Ranns <nranns@cisco.com>
Tue, 26 Mar 2019 17:05:56 +0000 (17:05 +0000)
Change-Id: I4e1cde754eb4d6406cd6cd51f37d89552bdb6a53
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/fib/fib_entry.c

index 32e45f2..a2e2a1e 100644 (file)
@@ -1111,10 +1111,10 @@ fib_entry_special_remove (fib_node_index_t fib_entry_index,
     best_source = fib_entry_src_get_source(bsrc);
     bflags = fib_entry_src_get_flags(bsrc);
 
-    sflag = fib_entry_src_action_remove_or_update_inherit(fib_entry, source);
-
     FIB_ENTRY_DBG(fib_entry, "special remove:%U", format_fib_source, source);
 
+    sflag = fib_entry_src_action_remove_or_update_inherit(fib_entry, source);
+
     /*
      * if the path list for the source passed is invalid,
      * then we need to create a new one. else we are updating