vxlan: vxlan/vxlan.api API cleanup
[vpp.git] / extras / vom / vom / l2_vtr.cpp
index 707a223..61505f6 100644 (file)
 #include "vom/l2_vtr.hpp"
 
 namespace VOM {
+namespace l2_vtr {
 
 /*
  * Make sure these are in sync with the smae enum in VPP
  */
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_DISABLED(0, "disabled");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_PUSH_1(1, "push-1");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_PUSH_2(2, "push-2");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_POP_1(3, "pop-1");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_POP_2(4, "pop-2");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_TRANSLATE_1_1(5, "translate-1-1");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_TRANSLATE_1_2(6, "translate-1-2");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_TRANSLATE_2_1(7, "translate-2-1");
-const l2_vtr_op_t l2_vtr_op_t::L2_VTR_TRANSLATE_2_2(5, "translate-2-2");
+const option_t option_t::DISABLED(0, "disabled");
+const option_t option_t::PUSH_1(1, "push-1");
+const option_t option_t::PUSH_2(2, "push-2");
+const option_t option_t::POP_1(3, "pop-1");
+const option_t option_t::POP_2(4, "pop-2");
+const option_t option_t::TRANSLATE_1_1(5, "translate-1-1");
+const option_t option_t::TRANSLATE_1_2(6, "translate-1-2");
+const option_t option_t::TRANSLATE_2_1(7, "translate-2-1");
+const option_t option_t::TRANSLATE_2_2(5, "translate-2-2");
 
-l2_vtr_op_t::l2_vtr_op_t(int v, const std::string s)
-  : enum_base<l2_vtr_op_t>(v, s)
+option_t::option_t(int v, const std::string s)
+  : enum_base<option_t>(v, s)
 {
 }
-}
+
+}; // namespace l2_vtr
+}; // namespace VOM
 
 /*
  * fd.io coding-style-patch-verification: ON