From 17da0c0d826a1764b69994873efb9d600a7fe0f5 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Tue, 25 Jun 2019 14:55:46 +0200 Subject: vom: Add getter for interface admin state Type: feature Change-Id: I3409bedb45f033210202c151a2267b036b8b97d6 Signed-off-by: Mohsin Kazmi --- extras/vom/vom/interface.cpp | 6 ++++++ extras/vom/vom/interface.hpp | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'extras') 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 @@ -264,6 +264,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 * -- cgit 1.2.3-korg