return format (s, "test-eth%d", dev_instance);
}
-static uword dummy_interface_tx (vlib_main_t * vm,
+static uword placeholder_interface_tx (vlib_main_t * vm,
vlib_node_runtime_t * node,
vlib_frame_t * frame)
{
VNET_DEVICE_CLASS (test_interface_device_class,static) = {
.name = "Test interface",
.format_device_name = format_test_interface_name,
- .tx_function = dummy_interface_tx,
+ .tx_function = placeholder_interface_tx,
};
static u8 *hw_address;
&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(),
fib_route_path_t *paths_1_1_1_1 = NULL, *input_paths_1_1_1_1;
fib_route_path_t path_1_1_1_1 = {
.frp_addr = nh_1_1_1_1,
- .frp_bier_fib_index = bti,
.frp_sw_if_index = ~0,
};
fib_mpls_label_t fml_500 = {
};
fib_route_path_t *paths_1_1_1_2 = NULL, *input_paths_1_1_1_2, path_1_1_1_2 = {
.frp_addr = nh_1_1_1_2,
- .frp_bier_fib_index = bti,
.frp_sw_if_index = ~0,
};
fib_mpls_label_t fml_501 = {
.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);
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;
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 = {
// .frp_addr = all-zeros
.frp_proto = DPO_PROTO_BIER,
- .frp_bier_fib_index = bdti1,
.frp_sw_if_index = ~0,
};
vec_add1(paths_via_disp, path_via_disp);