aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-02-19 01:41:59 -0800
committerDamjan Marion <dmarion@me.com>2019-02-19 10:36:13 +0000
commit7752cb6f0d2e05eb2d38238cf51c2647afd4915e (patch)
treeb0773bfbcfde6e4a3c94ed2c9bfc0397a53f8600 /extras
parentcffbfc52b038ec48e62e969960a2635f2dc19b1d (diff)
VOM: no assert on interface mac set
Change-Id: I0210b18dc37e1a425c75c95a2fb98c6a48d8ea7a Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/vom/vom/interface.cpp2
-rw-r--r--extras/vom/vom/interface.hpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/extras/vom/vom/interface.cpp b/extras/vom/vom/interface.cpp
index f2f32b43a88..a94be683424 100644
--- a/extras/vom/vom/interface.cpp
+++ b/extras/vom/vom/interface.cpp
@@ -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);
}
diff --git a/extras/vom/vom/interface.hpp b/extras/vom/vom/interface.hpp
index 05642f0cdf7..0b2d9071e8f 100644
--- a/extras/vom/vom/interface.hpp
+++ b/extras/vom/vom/interface.hpp
@@ -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);