summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2/l2_learn.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/l2/l2_learn.c')
-rw-r--r--vnet/vnet/l2/l2_learn.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/vnet/vnet/l2/l2_learn.c b/vnet/vnet/l2/l2_learn.c
index 96d4816e1e6..e34fe7a83c8 100644
--- a/vnet/vnet/l2/l2_learn.c
+++ b/vnet/vnet/l2/l2_learn.c
@@ -31,7 +31,7 @@
/**
* @file
- * Ethernet bridge learning.
+ * @brief Ethernet Bridge Learning.
*
* Populate the mac table with entries mapping the packet's source mac + bridge
* domain ID to the input sw_if_index.
@@ -496,6 +496,17 @@ done:
return error;
}
+/*?
+ * Layer 2 learning can be enabled and disabled on each
+ * interface and on each bridge-domain. Use this command to
+ * manage interfaces. It is enabled by default.
+ *
+ * @cliexpar
+ * Example of how to enable learning:
+ * @cliexcmd{set interface l2 learn GigabitEthernet0/8/0}
+ * Example of how to disable learning:
+ * @cliexcmd{set interface l2 learn GigabitEthernet0/8/0 disable}
+?*/
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (int_learn_cli, static) = {
.path = "set interface l2 learn",