Revert "API: Cleanup APIs interface.api"
[vpp.git] / extras / vom / vom / interface.cpp
index f2f32b4..ec6204f 100644 (file)
@@ -394,9 +394,7 @@ 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);
+  m_l2_address = { addr, rc_t::NOOP };
 }
 
 void