VOM: no assert on interface mac set

Change-Id: I0210b18dc37e1a425c75c95a2fb98c6a48d8ea7a
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2019-02-19 01:41:59 -08:00
committed by Damjan Marion
parent cffbfc52b0
commit 7752cb6f0d
2 changed files with 3 additions and 2 deletions

View File

@ -394,8 +394,6 @@ interface::set(const admin_state_t& state)
void
interface::set(const l2_address_t& addr)
{
assert(rc_t::UNSET == m_l2_address.rc());
m_l2_address.set(rc_t::NOOP);
m_l2_address.update(addr);
}

View File

@ -266,6 +266,9 @@ public:
/**
* Set the admin state of the interface
*
* N.B. All set function change only the attibute of the object on whcih
* they act, they do not make changes in VPP
*/
void set(const admin_state_t& state);