GBP: fixes for l3-out routing
[vpp.git] / extras / vom / vom / gbp_route_domain.hpp
index 6dc37d1..3d877d4 100644 (file)
@@ -42,6 +42,9 @@ public:
   gbp_route_domain(const route_domain& rd,
                    const interface& ip4_uu_fwd,
                    const interface& ip6_uu_fwd);
+  gbp_route_domain(const route_domain& rd,
+                   const std::shared_ptr<interface> ip4_uu_fwd,
+                   const std::shared_ptr<interface> ip6_uu_fwd);
 
   /**
    * Copy Construct
@@ -61,7 +64,7 @@ public:
   /**
    * Return the route domain's VPP ID
    */
-  uint32_t id() const;
+  route::table_id_t id() const;
 
   /**
    * comparison operator
@@ -93,6 +96,13 @@ public:
    */
   std::string to_string() const;
 
+  /**
+   * Accessors for children
+   */
+  const std::shared_ptr<route_domain> get_route_domain() const;
+  const std::shared_ptr<interface> get_ip4_uu_fwd() const;
+  const std::shared_ptr<interface> get_ip6_uu_fwd() const;
+
 private:
   /**
    * Class definition for listeners to OM events