GBP: add allowed ethertypes to contracts
[vpp.git] / extras / vom / vom / gbp_rule.hpp
index bda0409..04301da 100644 (file)
@@ -147,6 +147,7 @@ public:
      * Constructor for next_hop_set_t
      */
     next_hop_set_t(const hash_mode_t& hm, next_hops_t& nhs);
+    next_hop_set_t(const hash_mode_t& hm = hash_mode_t::SYMMETRIC);
 
     /**
      * Destructor for next_hop_set_t
@@ -166,12 +167,12 @@ public:
     /**
      * get the hash mode
      */
-    const hash_mode_t& getHashMode(void) const;
+    const hash_mode_t& hash_mode(void) const;
 
     /**
      * get the set of next hops
      */
-    const next_hops_t& getNextHops(void) const;
+    const next_hops_t& next_hops(void) const;
 
   private:
     /**
@@ -218,6 +219,7 @@ public:
    * Construct a new object matching the desried state
    */
   gbp_rule(uint32_t priority, const next_hop_set_t& nhs, const action_t& a);
+  gbp_rule(uint32_t priority, const action_t& a);
 
   /**
    * Copy Constructor
@@ -235,8 +237,8 @@ public:
   std::string to_string() const;
 
   /**
-   * less-than operator
-   */
+  * less-than operator
+  */
   bool operator<(const gbp_rule& rule) const;
 
   /**
@@ -247,7 +249,6 @@ public:
   /**
    * Getters
    */
-  uint32_t priority() const;
   const next_hop_set_t& nhs() const;
   const action_t& action() const;