fib: Decouple source from priority and behaviour
[vpp.git] / src / vnet / fib / fib_entry_src_api.c
index f895886..69102a1 100644 (file)
@@ -131,7 +131,7 @@ static void
 fib_entry_src_api_add (fib_entry_src_t *src,
                       const fib_entry_t *entry,
                       fib_entry_flag_t flags,
-                      fib_protocol_t proto,
+                      dpo_proto_t proto,
                       const dpo_id_t *dpo)
 {
     if (FIB_ENTRY_FLAG_NONE != flags)
@@ -162,10 +162,5 @@ const static fib_entry_src_vft_t api_src_vft = {
 void
 fib_entry_src_api_register (void)
 {
-    fib_entry_src_register(FIB_SOURCE_PLUGIN_HI, &api_src_vft);
-    fib_entry_src_register(FIB_SOURCE_API, &api_src_vft);
-    fib_entry_src_register(FIB_SOURCE_CLI, &api_src_vft);
-    fib_entry_src_register(FIB_SOURCE_DHCP, &api_src_vft);
-    fib_entry_src_register(FIB_SOURCE_IP6_ND_PROXY, &api_src_vft);
-    fib_entry_src_register(FIB_SOURCE_SR, &api_src_vft);
+    fib_entry_src_behaviour_register(FIB_SOURCE_BH_API, &api_src_vft);
 }