vom: Add getter for interface admin state

Type: feature

Change-Id: I3409bedb45f033210202c151a2267b036b8b97d6
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
Mohsin Kazmi
2019-06-25 14:55:46 +02:00
committed by Neale Ranns
parent aaba610077
commit 17da0c0d82
2 changed files with 11 additions and 0 deletions

View 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()
{

View 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
*