diff options
author | Neale Ranns <nranns@cisco.com> | 2019-03-04 14:08:11 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-06 10:31:38 +0000 |
commit | 8da9fc659badc016e409f772673002f021c0cc4a (patch) | |
tree | 0223180b7344b652ab8c45bb38f47f335bbed7c5 /src/plugins/gbp/gbp_bridge_domain.c | |
parent | dc8d93b02949f508d5eed312a51aa91102224b39 (diff) |
GBP: learn from ARP and L2 packets
Change-Id: I8af7bca566ec7c9bd2b72529d49e04c6e649b44a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_bridge_domain.c')
-rw-r--r-- | src/plugins/gbp/gbp_bridge_domain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/gbp/gbp_bridge_domain.c b/src/plugins/gbp/gbp_bridge_domain.c index 261b5683903..24bfb254ad4 100644 --- a/src/plugins/gbp/gbp_bridge_domain.c +++ b/src/plugins/gbp/gbp_bridge_domain.c @@ -16,6 +16,7 @@ #include <plugins/gbp/gbp_bridge_domain.h> #include <plugins/gbp/gbp_endpoint.h> #include <plugins/gbp/gbp_sclass.h> +#include <plugins/gbp/gbp_learn.h> #include <vnet/dpo/dvr_dpo.h> #include <vnet/fib/fib_table.h> @@ -125,7 +126,7 @@ format_gbp_bridge_domain_flags (u8 * s, va_list * args) } else { - s = format (s, "noe"); + s = format (s, "none"); } return (s); } @@ -218,6 +219,7 @@ gbp_bridge_domain_add_and_lock (u32 bd_id, MODE_L2_BRIDGE, gb->gb_bm_flood_sw_if_index, bd_index, L2_BD_PORT_TYPE_NORMAL, 0, 0); gbp_sclass_enable_l2 (gb->gb_bm_flood_sw_if_index); + gbp_learn_enable (gb->gb_bm_flood_sw_if_index, GBP_LEARN_MODE_L2); } /* @@ -275,6 +277,7 @@ gbp_bridge_domain_unlock (index_t index) MODE_L3, gb->gb_bm_flood_sw_if_index, gb->gb_bd_index, L2_BD_PORT_TYPE_NORMAL, 0, 0); gbp_sclass_disable_l2 (gb->gb_bm_flood_sw_if_index); + gbp_learn_enable (gb->gb_bm_flood_sw_if_index, GBP_LEARN_MODE_L2); } gbp_bridge_domain_db_remove (gb); |