FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
l2_vtr.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "vom/l2_vtr.hpp"
17 
18 namespace VOM {
19 namespace l2_vtr {
20 
21 /*
22  * Make sure these are in sync with the smae enum in VPP
23  */
24 const option_t option_t::DISABLED(0, "disabled");
25 const option_t option_t::PUSH_1(1, "push-1");
26 const option_t option_t::PUSH_2(2, "push-2");
27 const option_t option_t::POP_1(3, "pop-1");
28 const option_t option_t::POP_2(4, "pop-2");
29 const option_t option_t::TRANSLATE_1_1(5, "translate-1-1");
30 const option_t option_t::TRANSLATE_1_2(6, "translate-1-2");
31 const option_t option_t::TRANSLATE_2_1(7, "translate-2-1");
32 const option_t option_t::TRANSLATE_2_2(5, "translate-2-2");
33 
34 option_t::option_t(int v, const std::string s)
35  : enum_base<option_t>(v, s)
36 {
37 }
38 
39 }; // namespace l2_vtr
40 }; // namespace VOM
41 
42 /*
43  * fd.io coding-style-patch-verification: OFF
44  *
45  * Local Variables:
46  * eval: (c-set-style "mozilla")
47  * End:
48  */
VOM::l2_vtr::option_t::DISABLED
const static option_t DISABLED
Definition: l2_vtr.hpp:29
VOM
The VPP Object Model (VOM) library.
Definition: acl_binding.cpp:19
l2_vtr.hpp
VOM::l2_vtr::option_t::TRANSLATE_1_1
const static option_t TRANSLATE_1_1
Definition: l2_vtr.hpp:34
VOM::l2_vtr::option_t::TRANSLATE_1_2
const static option_t TRANSLATE_1_2
Definition: l2_vtr.hpp:35
VOM::enum_base< option_t >
VOM::l2_vtr::option_t::POP_1
const static option_t POP_1
Definition: l2_vtr.hpp:32
VOM::l2_vtr::option_t::PUSH_2
const static option_t PUSH_2
Definition: l2_vtr.hpp:31
VOM::l2_vtr::option_t::option_t
option_t(const option_t &l)=default
VOM::l2_vtr::option_t::TRANSLATE_2_1
const static option_t TRANSLATE_2_1
Definition: l2_vtr.hpp:36
VOM::l2_vtr::option_t::POP_2
const static option_t POP_2
Definition: l2_vtr.hpp:33
VOM::l2_vtr::option_t::PUSH_1
const static option_t PUSH_1
Definition: l2_vtr.hpp:30
VOM::l2_vtr::option_t::TRANSLATE_2_2
const static option_t TRANSLATE_2_2
Definition: l2_vtr.hpp:37
VOM::l2_vtr::option_t
Definition: l2_vtr.hpp:24
string
const char *const string
Definition: cJSON.h:172