X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=extras%2Fvom%2Fvom%2Ftap_interface_cmds.hpp;h=84720fa3f8e2434c57df959d95d0d90ebe7a9c5f;hb=8c8acc0;hp=1c1a3468c9b8a1638fc10b48f103b68f0f922edb;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/tap_interface_cmds.hpp b/extras/vom/vom/tap_interface_cmds.hpp index 1c1a3468c9b..84720fa3f8e 100644 --- a/extras/vom/vom/tap_interface_cmds.hpp +++ b/extras/vom/vom/tap_interface_cmds.hpp @@ -23,6 +23,7 @@ #include #include +#include namespace VOM { namespace tap_interface_cmds { @@ -30,13 +31,13 @@ namespace tap_interface_cmds { /** * A functor class that creates an interface */ -class create_cmd : public interface::create_cmd +class tapv2_create_cmd : public interface::create_cmd { public: - create_cmd(HW::item& item, - const std::string& name, - route::prefix_t& prefix, - const l2_address_t& l2_address); + tapv2_create_cmd(HW::item& item, + const std::string& name, + const route::prefix_t& prefix, + const l2_address_t& l2_address); /** * Issue the command to VPP/HW @@ -48,17 +49,17 @@ public: std::string to_string() const; private: - route::prefix_t& m_prefix; + const route::prefix_t& m_prefix; const l2_address_t& m_l2_address; }; /** * A functor class that deletes a Tap interface */ -class delete_cmd : public interface::delete_cmd +class tapv2_delete_cmd : public interface::delete_cmd { public: - delete_cmd(HW::item& item); + tapv2_delete_cmd(HW::item& item); /** * Issue the command to VPP/HW @@ -73,13 +74,13 @@ public: /** * A cmd class that Dumps all the Vpp Interfaces */ -class dump_cmd : public VOM::dump_cmd +class tapv2_dump_cmd : public VOM::dump_cmd { public: /** * Default Constructor */ - dump_cmd(); + tapv2_dump_cmd(); /** * Issue the command to VPP/HW @@ -93,7 +94,7 @@ public: /** * Comparison operator - only used for UT */ - bool operator==(const dump_cmd& i) const; + bool operator==(const tapv2_dump_cmd& i) const; }; }; // namespace tap_interface_cmds