fib: fib api updates
[vpp.git] / src / plugins / unittest / bier_test.c
index d15ee59..8a609e5 100644 (file)
@@ -127,6 +127,9 @@ bier_test_mk_intf (u32 ninterfaces)
                                             &tm->hw_if_indicies[i],
                                             /* flag change */ 0);
 
+        error = vnet_hw_interface_set_flags(vnet_get_main(),
+                                            tm->hw_if_indicies[i],
+                                            VNET_HW_INTERFACE_FLAG_LINK_UP);
         BIER_TEST((NULL == error), "ADD interface %d", i);
 
         tm->hw[i] = vnet_get_hw_interface(vnet_get_main(),
@@ -767,12 +770,12 @@ bier_test_mpls_imp (void)
         .frp_bier_imp = bii,
         .frp_weight = 0,
         .frp_flags = FIB_ROUTE_PATH_BIER_IMP,
+        .frp_mitf_flags = MFIB_ITF_FLAG_FORWARD,
     };
     mfib_table_entry_path_update(0, // default table
                                  &pfx_1_1_1_1_c_239_1_1_1 ,
                                  MFIB_SOURCE_API,
-                                 &path_via_bier_imp_1,
-                                 MFIB_ITF_FLAG_FORWARD);
+                                 &path_via_bier_imp_1);
     mfib_table_entry_delete(0,
                             &pfx_1_1_1_1_c_239_1_1_1 ,
                             MFIB_SOURCE_API);
@@ -808,7 +811,7 @@ bier_test_mpls_disp (void)
     bti = bier_table_add_or_lock(&bt_0_0_0_256, 1600);
 
     /*
-     * Add a BIER dispoition table
+     * Add a BIER disposition table
      */
     const u32 bier_disp_tbl_id = 1;
     index_t bdti1;
@@ -816,7 +819,7 @@ bier_test_mpls_disp (void)
     bdti1 = bier_disp_table_add_or_lock(bier_disp_tbl_id);
 
     /*
-     * add a bit-poistion in the table that resolves via
+     * add a bit-position in the table that resolves via
      * DISP table, i.e. a for-us bit-position
      */
     fib_route_path_t *paths_via_disp = NULL, path_via_disp = {