diff options
author | Neale Ranns <nranns@cisco.com> | 2019-02-22 02:48:25 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-02-22 13:45:38 +0000 |
commit | 533220058344d0dadc05ec82f7de6dbbf8b8b397 (patch) | |
tree | 828c4d26ac919f57ea70e29bf078f60bedd63943 /extras/vom/vom/l2_vtr.hpp | |
parent | fb2e07d89a95272fbf166a500566a699a5fdfd5b (diff) |
VOM: fix tests and namespacify l2_vtr
Change-Id: Ie59220a622c3a5195485cd6857b45f57d6eeaf95
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom/vom/l2_vtr.hpp')
-rw-r--r-- | extras/vom/vom/l2_vtr.hpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/extras/vom/vom/l2_vtr.hpp b/extras/vom/vom/l2_vtr.hpp index 540cc83fd07..688e87a8108 100644 --- a/extras/vom/vom/l2_vtr.hpp +++ b/extras/vom/vom/l2_vtr.hpp @@ -20,25 +20,27 @@ #include "vom/om.hpp" namespace VOM { -struct l2_vtr_op_t : public enum_base<l2_vtr_op_t> +namespace l2_vtr { +struct option_t : public enum_base<option_t> { - l2_vtr_op_t(const l2_vtr_op_t& l) = default; - ~l2_vtr_op_t() = default; + option_t(const option_t& l) = default; + ~option_t() = default; - const static l2_vtr_op_t L2_VTR_DISABLED; - const static l2_vtr_op_t L2_VTR_PUSH_1; - const static l2_vtr_op_t L2_VTR_PUSH_2; - const static l2_vtr_op_t L2_VTR_POP_1; - const static l2_vtr_op_t L2_VTR_POP_2; - const static l2_vtr_op_t L2_VTR_TRANSLATE_1_1; - const static l2_vtr_op_t L2_VTR_TRANSLATE_1_2; - const static l2_vtr_op_t L2_VTR_TRANSLATE_2_1; - const static l2_vtr_op_t L2_VTR_TRANSLATE_2_2; + const static option_t DISABLED; + const static option_t PUSH_1; + const static option_t PUSH_2; + const static option_t POP_1; + const static option_t POP_2; + const static option_t TRANSLATE_1_1; + const static option_t TRANSLATE_1_2; + const static option_t TRANSLATE_2_1; + const static option_t TRANSLATE_2_2; private: - l2_vtr_op_t(int v, const std::string s); -}; + option_t(int v, const std::string s); }; +}; // namespace l2_vtr +}; // namesapce VOM /* * fd.io coding-style-patch-verification: ON |