X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Ftap_interface_cmds.hpp;h=386dafaa6482fa19eb40af91e948c7961a68e3be;hb=1aaf0e343;hp=5651b7cf193ab64c89996d0e41d2fc5980248c47;hpb=9aca7b5ee915b8035fb5b690b7520ab155fcb36e;p=vpp.git diff --git a/extras/vom/vom/tap_interface_cmds.hpp b/extras/vom/vom/tap_interface_cmds.hpp index 5651b7cf193..386dafaa648 100644 --- a/extras/vom/vom/tap_interface_cmds.hpp +++ b/extras/vom/vom/tap_interface_cmds.hpp @@ -22,81 +22,11 @@ #include "vom/rpc_cmd.hpp" #include -#include #include namespace VOM { namespace tap_interface_cmds { -/** - * A functor class that creates an interface - */ -class tap_create_cmd : public interface::create_cmd -{ -public: - tap_create_cmd(HW::item& item, - const std::string& name, - route::prefix_t& prefix, - const l2_address_t& l2_address); - - /** - * Issue the command to VPP/HW - */ - rc_t issue(connection& con); - /** - * convert to string format for debug purposes - */ - std::string to_string() const; - -private: - route::prefix_t& m_prefix; - const l2_address_t& m_l2_address; -}; - -/** - * A functor class that deletes a Tap interface - */ -class tap_delete_cmd : public interface::delete_cmd -{ -public: - tap_delete_cmd(HW::item& item); - - /** - * Issue the command to VPP/HW - */ - rc_t issue(connection& con); - /** - * convert to string format for debug purposes - */ - std::string to_string() const; -}; - -/** - * A cmd class that Dumps all the Vpp Interfaces - */ -class tap_dump_cmd : public VOM::dump_cmd -{ -public: - /** - * Default Constructor - */ - tap_dump_cmd(); - - /** - * Issue the command to VPP/HW - */ - rc_t issue(connection& con); - /** - * convert to string format for debug purposes - */ - std::string to_string() const; - - /** - * Comparison operator - only used for UT - */ - bool operator==(const tap_dump_cmd& i) const; -}; - /** * A functor class that creates an interface */ @@ -104,9 +34,9 @@ class tapv2_create_cmd : public interface::create_cmd { public: tapv2_create_cmd(HW::item& item, - const std::string& name, - route::prefix_t& prefix, - const l2_address_t& l2_address); + const std::string& name, + const route::prefix_t& prefix, + const l2_address_t& l2_address); /** * Issue the command to VPP/HW @@ -118,7 +48,7 @@ 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; };