VOM: no assert on interface mac set 69/17669/2
authorNeale Ranns <nranns@cisco.com>
Tue, 19 Feb 2019 09:41:59 +0000 (01:41 -0800)
committerDamjan Marion <dmarion@me.com>
Tue, 19 Feb 2019 10:36:13 +0000 (10:36 +0000)
Change-Id: I0210b18dc37e1a425c75c95a2fb98c6a48d8ea7a
Signed-off-by: Neale Ranns <nranns@cisco.com>
extras/vom/vom/interface.cpp
extras/vom/vom/interface.hpp

index f2f32b4..a94be68 100644 (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);
 }
 
index 05642f0..0b2d907 100644 (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);