diff options
author | 2018-11-28 09:51:40 -0800 | |
---|---|---|
committer | 2018-11-29 13:44:12 +0000 | |
commit | 8e1cc46b2bba1ade546d611cdf7b6e48c97d90a1 (patch) | |
tree | 3edcb77ee3af52f7a5b4c15d80bb352cbaa43766 /extras/vom/vom/tap_interface_cmds.hpp | |
parent | b6a47953973f7c94239c394b649100e91bdb2152 (diff) |
VOM: deprecate TAP add ip-punt redirect dump
Change-Id: I675e04d9f8bb2a18293cf6dd01581a9dc62882fe
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom/vom/tap_interface_cmds.hpp')
-rw-r--r-- | extras/vom/vom/tap_interface_cmds.hpp | 77 |
1 files changed, 4 insertions, 73 deletions
diff --git a/extras/vom/vom/tap_interface_cmds.hpp b/extras/vom/vom/tap_interface_cmds.hpp index 5651b7cf193..84720fa3f8e 100644 --- a/extras/vom/vom/tap_interface_cmds.hpp +++ b/extras/vom/vom/tap_interface_cmds.hpp @@ -31,82 +31,13 @@ namespace tap_interface_cmds { /** * A functor class that creates an interface */ -class tap_create_cmd : public interface::create_cmd<vapi::Tap_connect> -{ -public: - tap_create_cmd(HW::item<handle_t>& 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<vapi::Tap_delete> -{ -public: - tap_delete_cmd(HW::item<handle_t>& 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<vapi::Sw_interface_tap_dump> -{ -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 - */ class tapv2_create_cmd : public interface::create_cmd<vapi::Tap_create_v2> { public: tapv2_create_cmd(HW::item<handle_t>& 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 +49,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; }; |