summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/bridge_domain.hpp
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.hpp
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.hpp')
-rw-r--r--src/vpp-api/vom/bridge_domain.hpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/vpp-api/vom/bridge_domain.hpp b/src/vpp-api/vom/bridge_domain.hpp
index b42f53fce7b..2c134f0740b 100644
--- a/src/vpp-api/vom/bridge_domain.hpp
+++ b/src/vpp-api/vom/bridge_domain.hpp
@@ -32,6 +32,21 @@ class bridge_domain : public object_base
{
public:
/**
+ * Bridge Domain Learning mode
+ */
+ struct learning_mode_t : enum_base<learning_mode_t>
+ {
+ const static learning_mode_t ON;
+ const static learning_mode_t OFF;
+
+ private:
+ /**
+ * Private constructor taking the value and the string name
+ */
+ learning_mode_t(int v, const std::string& s);
+ };
+
+ /**
* The value of the defaultbridge domain
*/
const static uint32_t DEFAULT_TABLE = 0;
@@ -39,11 +54,14 @@ public:
/**
* Construct a new object matching the desried state
*/
- bridge_domain(uint32_t id);
+ bridge_domain(uint32_t id,
+ const learning_mode_t& lmode = learning_mode_t::ON);
+
/**
* Copy Constructor
*/
bridge_domain(const bridge_domain& o);
+
/**
* Destructor
*/
@@ -146,6 +164,11 @@ private:
HW::item<uint32_t> m_id;
/**
+ * The leanring mode of the bridge
+ */
+ learning_mode_t m_learning_mode;
+
+ /**
* A map of all interfaces key against the interface's name
*/
static singular_db<uint32_t, bridge_domain> m_db;