vom: Add getter for interface admin state 28/20328/2
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 25 Jun 2019 12:55:46 +0000 (14:55 +0200)
committerNeale Ranns <nranns@cisco.com>
Wed, 26 Jun 2019 08:51:25 +0000 (08:51 +0000)
Type: feature

Change-Id: I3409bedb45f033210202c151a2267b036b8b97d6
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
extras/vom/vom/interface.cpp
extras/vom/vom/interface.hpp

index 1e27d42..7003564 100644 (file)
@@ -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()
 {
index 0b2d907..a1098c1 100644 (file)
@@ -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
    *