l2: BD ARP termination entry API update
[vpp.git] / extras / vom / vom / bridge_domain.hpp
index d345da2..8ece1cc 100644 (file)
@@ -66,6 +66,21 @@ public:
     arp_term_mode_t(int v, const std::string& s);
   };
 
+  /**
+   * Bridge Domain ARP Unicast Forward mode
+   */
+  struct arp_ufwd_mode_t : enum_base<arp_ufwd_mode_t>
+  {
+    const static arp_ufwd_mode_t ON;
+    const static arp_ufwd_mode_t OFF;
+
+  private:
+    /**
+     * Private constructor taking the value and the string name
+     */
+    arp_ufwd_mode_t(int v, const std::string& s);
+  };
+
   /**
    * Bridge Domain MAC aging mode
    */
@@ -82,7 +97,7 @@ public:
   };
 
   /**
-   * Bridge Domain Learning mode
+   * Bridge Domain flood mode
    */
   struct flood_mode_t : enum_base<flood_mode_t>
   {
@@ -96,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
    */
@@ -107,7 +137,9 @@ public:
   bridge_domain(uint32_t id,
                 const learning_mode_t& lmode = learning_mode_t::ON,
                 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);
 
   /**
@@ -236,11 +268,21 @@ private:
    */
   arp_term_mode_t m_arp_term_mode;
 
+  /**
+   * The ARP Unicast Forward mode of the bridge
+   */
+  arp_ufwd_mode_t m_arp_ufwd_mode;
+
   /**
    * The flood mode of the bridge
    */
   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
    */