From 17237fbdbbbd9d64988f9c608d02deab09782a94 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 5 Jul 2019 11:29:39 +0200 Subject: gbp: use bd index at ext-itf creation instead of bd id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Fixes: cfc7a107e6cb8be6e7c53a08e23a146c431c8e90 Change-Id: I341cbc94271ab89c3c643756a9c04b790cef8591 Signed-off-by: Benoît Ganne --- src/plugins/gbp/gbp_ext_itf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/gbp/gbp_ext_itf.c b/src/plugins/gbp/gbp_ext_itf.c index 6462eca9eaf..f3c54fcf470 100644 --- a/src/plugins/gbp/gbp_ext_itf.c +++ b/src/plugins/gbp/gbp_ext_itf.c @@ -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 | -- cgit 1.2.3-korg