MPLS: cannot delete a path from the CLI
@@ -428,7 +428,7 @@ vnet_mpls_local_label (vlib_main_t * vm,
}
else
{
- fib_node_index_t lfe, fib_index;
+ fib_node_index_t fib_index;
u32 fi;
if (NULL == rpaths)
@@ -469,6 +469,17 @@ vnet_mpls_local_label (vlib_main_t * vm,
goto done;
}
+ if (is_del)
+ {
+ fib_table_entry_path_remove2(fib_index,
+ &pfx,
+ FIB_SOURCE_CLI,
+ rpaths);
+ }
+ else
+ {
+ fib_node_index_t lfe;
+
lfe = fib_table_entry_path_add2(fib_index,
&pfx,
FIB_SOURCE_CLI,
@@ -484,6 +495,7 @@ vnet_mpls_local_label (vlib_main_t * vm,
goto done;
}
}
+ }
done:
unformat_free (line_input);
