gbp: use bd index at ext-itf creation instead of bd id

Type: fix
Fixes: cfc7a107e6

Change-Id: I341cbc94271ab89c3c643756a9c04b790cef8591
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:
Benoît Ganne
2019-07-05 11:29:39 +02:00
committed by Neale Ranns
parent ca2831a80c
commit 17237fbdbb

View File

@@ -96,7 +96,9 @@ gbp_ext_itf_add (u32 sw_if_index, u32 bd_id, u32 rd_id, u32 flags)
if (flags & GBP_EXT_ITF_F_ANON)
{
/* add interface to the BD */
index_t itf = gbp_itf_add_and_lock (sw_if_index, bd_id);
index_t itf = gbp_itf_add_and_lock (sw_if_index,
gbp_bridge_domain_get
(gbi)->gb_bd_index);
/* setup GBP L2 features on this interface */
gbp_itf_set_l2_input_feature (itf, 0,
L2INPUT_FEAT_GBP_LPM_ANON_CLASSIFY |