X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Finterface_cmds.hpp;h=b646e4ec9b850f215ba90fdfabfbe51bef04770e;hb=208c29aac523231af2420a95ba7e5d361698780b;hp=7a0040deb0ae09babeaa2a485b14bcbbfbb0fb63;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/interface_cmds.hpp b/extras/vom/vom/interface_cmds.hpp index 7a0040deb0a..b646e4ec9b8 100644 --- a/extras/vom/vom/interface_cmds.hpp +++ b/extras/vom/vom/interface_cmds.hpp @@ -86,30 +86,6 @@ public: std::string to_string() const; }; -/** -* A command class to create TAP interfaces in VPP -*/ -class tap_create_cmd : public interface::create_cmd -{ -public: - /** - * Constructor taking the HW::item to update - * and the name of the interface to create - */ - tap_create_cmd(HW::item& item, const std::string& name); - ~tap_create_cmd() = default; - - /** - * Issue the command to VPP/HW - */ - rc_t issue(connection& con); - - /** - * convert to string format for debug purposes - */ - std::string to_string() const; -}; - /** * A functor class that creates an interface */ @@ -178,27 +154,6 @@ public: std::string to_string() const; }; -/** -* A command class to delete TAP interfaces in VPP -*/ -class tap_delete_cmd : public interface::delete_cmd -{ -public: - /** - * Constructor taking the HW::item to update - */ - 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 functor class that deletes a Vhost interface */ @@ -222,7 +177,7 @@ public: * A command class to set tag on interfaces */ class set_tag - : public rpc_cmd, rc_t, vapi::Sw_interface_tag_add_del> + : public rpc_cmd, vapi::Sw_interface_tag_add_del> { public: /** @@ -256,7 +211,6 @@ private: * A cmd class that changes the admin state */ class state_change_cmd : public rpc_cmd, - rc_t, vapi::Sw_interface_set_flags> { public: @@ -291,9 +245,8 @@ private: /** * A command class that binds an interface to an L3 table */ -class set_table_cmd : public rpc_cmd, - rc_t, - vapi::Sw_interface_set_table> +class set_table_cmd + : public rpc_cmd, vapi::Sw_interface_set_table> { public: /** @@ -334,9 +287,8 @@ private: /** * A command class that changes the MAC address on an interface */ -class set_mac_cmd : public rpc_cmd, - rc_t, - vapi::Sw_interface_set_mac_address> +class set_mac_cmd + : public rpc_cmd, vapi::Sw_interface_set_mac_address> { public: /** @@ -372,7 +324,6 @@ private: */ class collect_detail_stats_change_cmd : public rpc_cmd, - rc_t, vapi::Collect_detailed_interface_stats> { public: @@ -519,9 +470,7 @@ private: * A command class represents our desire to recieve interface stats */ class stats_disable_cmd - : public rpc_cmd, - rc_t, - vapi::Want_per_interface_combined_stats> + : public rpc_cmd, vapi::Want_per_interface_combined_stats> { public: /** @@ -603,6 +552,32 @@ public: */ bool operator==(const vhost_dump_cmd& i) const; }; + +/** + * A cmd class that Dumps all the Vpp interfaces + */ +class af_packet_dump_cmd : public VOM::dump_cmd +{ +public: + /** + * Default Constructor + */ + af_packet_dump_cmd() = default; + + /** + * 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 af_packet_dump_cmd& i) const; +}; }; }; /*