vom: Add bridge domain unknown unicast flooding flag
[vpp.git] / extras / vom / vom / bridge_domain.hpp
index ecaae04..8ece1cc 100644 (file)
@@ -97,7 +97,7 @@ public:
   };
 
   /**
-   * Bridge Domain Learning mode
+   * Bridge Domain flood mode
    */
   struct flood_mode_t : enum_base<flood_mode_t>
   {
@@ -111,6 +111,21 @@ public:
     flood_mode_t(int v, const std::string& s);
   };
 
+  /**
+   * Bridge Domain Unknown Unicast Flood mode
+   */
+  struct uu_flood_mode_t : enum_base<uu_flood_mode_t>
+  {
+    const static uu_flood_mode_t ON;
+    const static uu_flood_mode_t OFF;
+
+  private:
+    /**
+     * Private constructor taking the value and the string name
+     */
+    uu_flood_mode_t(int v, const std::string& s);
+  };
+
   /**
    * The value of the defaultbridge domain
    */
@@ -124,6 +139,7 @@ public:
                 const arp_term_mode_t& amode = arp_term_mode_t::ON,
                 const arp_ufwd_mode_t& aumode = arp_ufwd_mode_t::OFF,
                 const flood_mode_t& fmode = flood_mode_t::ON,
+                const uu_flood_mode_t& uufmode = uu_flood_mode_t::ON,
                 const mac_age_mode_t& mmode = mac_age_mode_t::OFF);
 
   /**
@@ -262,6 +278,11 @@ private:
    */
   flood_mode_t m_flood_mode;
 
+  /**
+   * The unknown unicast flood mode of the bridge
+   */
+  uu_flood_mode_t m_uu_flood_mode;
+
   /**
    * The MAC aging mode of the bridge
    */