summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/bridge_domain_cmds.cpp
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2017-11-14 08:40:43 -0800
committerNeale Ranns <nranns@cisco.com>2017-11-14 19:25:54 +0000
commit10e7a9f8d8c8572be16f9b3f0395da6f8eff22ec (patch)
tree76cad881f5bd9a2c1c3ec664a880c3d0ba299961 /src/vpp-api/vom/bridge_domain_cmds.cpp
parenta161a6dedb1aa3aba00109d325d2909051a3c987 (diff)
VOM: bridge-domain learning mode and route help commands
Change-Id: I2fa219d6530f1e7a3b8ae32d35a0c60ba57c5129 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/bridge_domain_cmds.cpp')
-rw-r--r--src/vpp-api/vom/bridge_domain_cmds.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vpp-api/vom/bridge_domain_cmds.cpp b/src/vpp-api/vom/bridge_domain_cmds.cpp
index 1b9dc1cff99..498569f9fab 100644
--- a/src/vpp-api/vom/bridge_domain_cmds.cpp
+++ b/src/vpp-api/vom/bridge_domain_cmds.cpp
@@ -19,8 +19,10 @@ DEFINE_VAPI_MSG_IDS_L2_API_JSON;
namespace VOM {
namespace bridge_domain_cmds {
-create_cmd::create_cmd(HW::item<uint32_t>& item)
+create_cmd::create_cmd(HW::item<uint32_t>& item,
+ const bridge_domain::learning_mode_t& lmode)
: rpc_cmd(item)
+ , m_learning_mode(lmode)
{
}
@@ -40,7 +42,7 @@ create_cmd::issue(connection& con)
payload.flood = 1;
payload.uu_flood = 1;
payload.forward = 1;
- payload.learn = 1;
+ payload.learn = m_learning_mode.value();
payload.arp_term = 1;
payload.mac_age = 0;
payload.is_add = 1;