VOM: bridge-domain learning mode and route help commands
[vpp.git] / src / vpp-api / vom / bridge_domain.hpp
index b42f53f..2c134f0 100644 (file)
@@ -31,6 +31,21 @@ namespace VOM {
 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
    */
@@ -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
    */
@@ -145,6 +163,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
    */