From: Mohsin Kazmi Date: Tue, 25 Jun 2019 12:55:46 +0000 (+0200) Subject: vom: Add getter for interface admin state X-Git-Tag: v20.01-rc0~325 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=17da0c0d826a1764b69994873efb9d600a7fe0f5;p=vpp.git vom: Add getter for interface admin state Type: feature Change-Id: I3409bedb45f033210202c151a2267b036b8b97d6 Signed-off-by: Mohsin Kazmi --- 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 *