X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fl2_xconnect.hpp;h=89acc1c32e61cb46774656bc607670da5a6ad6a9;hb=3c0d84c989e9928d5ca9ffe3aceb826864bd525a;hp=0699869bcdb5bc7dc57f3f2772b0b632995f005a;hpb=6b1cdd3a2050ed9eb79817a01ca311915edf5d9e;p=vpp.git diff --git a/extras/vom/vom/l2_xconnect.hpp b/extras/vom/vom/l2_xconnect.hpp index 0699869bcdb..89acc1c32e6 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" @@ -77,6 +78,11 @@ public: */ 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 */ @@ -174,6 +180,16 @@ private: */ HW::item m_xconnect_west; + /** + * HW configuration for the VTR option + */ + HW::item 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 */