aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-06-25 14:55:46 +0200
committerNeale Ranns <nranns@cisco.com>2019-06-26 08:51:25 +0000
commit17da0c0d826a1764b69994873efb9d600a7fe0f5 (patch)
treea7c1301520b305f3e2c076a8c3d703c600e39d84 /extras
parentaaba610077c21537c775a633d7f64dad239783cb (diff)
vom: Add getter for interface admin state
Type: feature Change-Id: I3409bedb45f033210202c151a2267b036b8b97d6 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/vom/vom/interface.cpp6
-rw-r--r--extras/vom/vom/interface.hpp5
2 files changed, 11 insertions, 0 deletions
diff --git a/extras/vom/vom/interface.cpp b/extras/vom/vom/interface.cpp
index 1e27d42c7f4..70035648d06 100644
--- a/extras/vom/vom/interface.cpp
+++ b/extras/vom/vom/interface.cpp
@@ -160,6 +160,12 @@ interface::l2_address() const
return (m_l2_address.data());
}
+const interface::admin_state_t&
+interface::admin_state() const
+{
+ return (m_state.data());
+}
+
interface::const_iterator_t
interface::cbegin()
{
diff --git a/extras/vom/vom/interface.hpp b/extras/vom/vom/interface.hpp
index 0b2d9071e8f..a1098c11329 100644
--- a/extras/vom/vom/interface.hpp
+++ b/extras/vom/vom/interface.hpp
@@ -265,6 +265,11 @@ public:
const l2_address_t& l2_address() const;
/**
+ * Return the admin state
+ */
+ const admin_state_t& admin_state() const;
+
+ /**
* Set the admin state of the interface
*
* N.B. All set function change only the attibute of the object on whcih