Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vxlan: vxlan/vxlan.api API cleanup
[vpp.git]
/
extras
/
vom
/
vom
/
l2_xconnect.hpp
diff --git
a/extras/vom/vom/l2_xconnect.hpp
b/extras/vom/vom/l2_xconnect.hpp
index
0699869
..
89acc1c
100644
(file)
--- a/
extras/vom/vom/l2_xconnect.hpp
+++ b/
extras/vom/vom/l2_xconnect.hpp
@@
-19,6
+19,7
@@
#include "vom/hw.hpp"
#include "vom/inspect.hpp"
#include "vom/interface.hpp"
#include "vom/hw.hpp"
#include "vom/inspect.hpp"
#include "vom/interface.hpp"
+#include "vom/l2_vtr.hpp"
#include "vom/object_base.hpp"
#include "vom/om.hpp"
#include "vom/singular_db.hpp"
#include "vom/object_base.hpp"
#include "vom/om.hpp"
#include "vom/singular_db.hpp"
@@
-77,6
+78,11
@@
public:
*/
static void dump(std::ostream& os);
*/
static void dump(std::ostream& os);
+ /**
+ * Set the VTR operation on the binding/interface
+ */
+ void set(const l2_vtr::option_t& op, uint16_t tag);
+
/**
* Static function to find the bridge_domain in the model
*/
/**
* Static function to find the bridge_domain in the model
*/
@@
-174,6
+180,16
@@
private:
*/
HW::item<bool> m_xconnect_west;
*/
HW::item<bool> m_xconnect_west;
+ /**
+ * HW configuration for the VTR option
+ */
+ HW::item<l2_vtr::option_t> m_vtr_op;
+
+ /**
+ * The Dot1q tag for the VTR operation
+ */
+ uint16_t m_vtr_op_tag;
+
/**
* A map of all L2 interfaces key against the interface's handle_t
*/
/**
* A map of all L2 interfaces key against the interface's handle_t
*/