FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
l2_vtr.hpp
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 #ifndef __VOM_L2_VTR_H__
16 #define __VOM_L2_VTR_H__
17 
18 #include "vom/hw.hpp"
19 #include "vom/object_base.hpp"
20 #include "vom/om.hpp"
21 
22 namespace VOM {
23 namespace l2_vtr {
24 struct option_t : public enum_base<option_t>
25 {
26  option_t(const option_t& l) = default;
27  ~option_t() = default;
28 
29  const static option_t DISABLED;
30  const static option_t PUSH_1;
31  const static option_t PUSH_2;
32  const static option_t POP_1;
33  const static option_t POP_2;
34  const static option_t TRANSLATE_1_1;
35  const static option_t TRANSLATE_1_2;
36  const static option_t TRANSLATE_2_1;
37  const static option_t TRANSLATE_2_2;
38 
39 private:
40  option_t(int v, const std::string s);
41 };
42 }; // namespace l2_vtr
43 }; // namesapce VOM
44 
45 /*
46  * fd.io coding-style-patch-verification: OFF
47  *
48  * Local Variables:
49  * eval: (c-set-style "mozilla")
50  * End:
51  */
52 #endif
VOM::l2_vtr::option_t::~option_t
~option_t()=default
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
om.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
A template base class for all enum types.
Definition: enum_base.hpp:30
VOM::l2_vtr::option_t::POP_1
const static option_t POP_1
Definition: l2_vtr.hpp:32
hw.hpp
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
object_base.hpp
string
const char *const string
Definition: cJSON.h:172