diff options
Diffstat (limited to 'extras/vom/vom/l2_xconnect.hpp')
-rw-r--r-- | extras/vom/vom/l2_xconnect.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extras/vom/vom/l2_xconnect.hpp b/extras/vom/vom/l2_xconnect.hpp index 0699869bcdb..32acd61dd8e 100644 --- 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/l2_vtr.hpp" #include "vom/object_base.hpp" #include "vom/om.hpp" #include "vom/singular_db.hpp" @@ -78,6 +79,11 @@ public: static void dump(std::ostream& os); /** + * Set the VTR operation on the binding/interface + */ + void set(const l2_vtr_op_t& op, uint16_t tag); + + /** * Static function to find the bridge_domain in the model */ static std::shared_ptr<l2_xconnect> find(const key_t& key); @@ -175,6 +181,16 @@ private: HW::item<bool> m_xconnect_west; /** + * HW configuration for the VTR option + */ + HW::item<l2_vtr_op_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 */ static singular_db<key_t, l2_xconnect> m_db; |