Hi All, I'm trying to configure a bridge and a corresponding bvi by function calls from inside linux-cp plugin.
Following are the function calls that I make: *For creating bridge_domain:* l2_bridge_domain_add_del_args_t _a, *a = &_a; clib_memset (a, 0, sizeof (*a)); a->is_add = op_flag;//for add or delete a->bd_id = bd_id;// 100 //default values a->flood = 1; a->uu_flood = 1; a->forward = 1; a->learn = 1; a->arp_term = 0; a->arp_ufwd = 0; a->mac_age = 0; a->bd_tag = 0x0; bd_add_del(a); *For creating bvi:* l2_bvi_create (bd_id, &mac, &bvi_sw_if_index);//bd_id is the bridge_domain id //mac is a custom map *For moving bvi to the bridge_domain:* set_int_l2_mode (vm, vnm, MODE_L2_BRIDGE, bvi_sw_if_index, bd_id/*bd_index*/, L2_BD_PORT_TYPE_BVI, 0/*shg*/, 0) After above step following is the l2fib output: vpp# show l2fib verbose Mac-Address BD-Idx If-Idx BSN-ISN Age(min) static filter bvi Interface-Name 00:00:00:00:00:00 1 39 0/0 no * - * bvi100 L2FIB total/learned entries: 1/0 Last scan time: 0.0000e0sec Learn limit: 4194304 Any particular reason or step that I'm missing because of which above behaviour occurs. Thank You Pragya Nand
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22389): https://lists.fd.io/g/vpp-dev/message/22389 Mute This Topic: https://lists.fd.io/mt/95899048/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-