VOM: child accessors on GBP route domain 23/17923/2
authorNeale Ranns <nranns@cisco.com>
Thu, 28 Feb 2019 08:41:26 +0000 (00:41 -0800)
committerNeale Ranns <nranns@cisco.com>
Thu, 28 Feb 2019 09:33:46 +0000 (09:33 +0000)
Change-Id: I7b74b0b98b2c427bf29bb1d2932044d9924588cb
Signed-off-by: Neale Ranns <nranns@cisco.com>
extras/vom/vom/gbp_route_domain.cpp
extras/vom/vom/gbp_route_domain.hpp

index b2ddaae..8f0eae3 100644 (file)
@@ -89,6 +89,18 @@ gbp_route_domain::get_route_domain() const
   return m_rd;
 }
 
+const std::shared_ptr<interface>
+gbp_route_domain::get_ip4_uu_fwd() const
+{
+  return m_ip4_uu_fwd;
+}
+
+const std::shared_ptr<interface>
+gbp_route_domain::get_ip6_uu_fwd() const
+{
+  return m_ip6_uu_fwd;
+}
+
 bool
 gbp_route_domain::operator==(const gbp_route_domain& b) const
 {
index 432f0b3..3d877d4 100644 (file)
@@ -96,7 +96,12 @@ 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:
   /**