From 8b409635b44fd599eea37c7f259be294141a38bb Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 28 Feb 2019 00:41:26 -0800 Subject: [PATCH] VOM: child accessors on GBP route domain Change-Id: I7b74b0b98b2c427bf29bb1d2932044d9924588cb Signed-off-by: Neale Ranns --- extras/vom/vom/gbp_route_domain.cpp | 12 ++++++++++++ extras/vom/vom/gbp_route_domain.hpp | 5 +++++ 2 files changed, 17 insertions(+) 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 +gbp_route_domain::get_ip4_uu_fwd() const +{ + return m_ip4_uu_fwd; +} + +const std::shared_ptr +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 get_route_domain() const; + const std::shared_ptr get_ip4_uu_fwd() const; + const std::shared_ptr get_ip6_uu_fwd() const; private: /** -- 2.16.6