aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-02-28 00:41:26 -0800
committerNeale Ranns <nranns@cisco.com>2019-02-28 09:33:46 +0000
commit8b409635b44fd599eea37c7f259be294141a38bb (patch)
tree99526ee6135224e84dfdebd7d03667929290e583
parentb9625cbdb1bbb5c67e792bd28fbb6b0801a257b4 (diff)
VOM: child accessors on GBP route domain
Change-Id: I7b74b0b98b2c427bf29bb1d2932044d9924588cb Signed-off-by: Neale Ranns <nranns@cisco.com>
-rw-r--r--extras/vom/vom/gbp_route_domain.cpp12
-rw-r--r--extras/vom/vom/gbp_route_domain.hpp5
2 files changed, 17 insertions, 0 deletions
diff --git a/extras/vom/vom/gbp_route_domain.cpp b/extras/vom/vom/gbp_route_domain.cpp
index b2ddaaeaa9c..8f0eae3b3aa 100644
--- a/extras/vom/vom/gbp_route_domain.cpp
+++ b/extras/vom/vom/gbp_route_domain.cpp
@@ -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
{
diff --git a/extras/vom/vom/gbp_route_domain.hpp b/extras/vom/vom/gbp_route_domain.hpp
index 432f0b31afe..3d877d47e57 100644
--- a/extras/vom/vom/gbp_route_domain.hpp
+++ b/extras/vom/vom/gbp_route_domain.hpp
@@ -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:
/**