X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=extras%2Fvom%2Fvom%2Farp_proxy_config_cmds.hpp;h=d1a0a420411c2cc2a1aa068229c9f2eb145e658f;hb=refs%2Fchanges%2F13%2F16013%2F5;hp=ac0e1fd170219678cef90bd015a5d6c7031c87a5;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/arp_proxy_config_cmds.hpp b/extras/vom/vom/arp_proxy_config_cmds.hpp index ac0e1fd1702..d1a0a420411 100644 --- a/extras/vom/vom/arp_proxy_config_cmds.hpp +++ b/extras/vom/vom/arp_proxy_config_cmds.hpp @@ -27,7 +27,7 @@ namespace arp_proxy_config_cmds { /** * A command class that adds the ARP Proxy config */ -class config_cmd : public rpc_cmd, rc_t, vapi::Proxy_arp_add_del> +class config_cmd : public rpc_cmd, vapi::Proxy_arp_add_del> { public: /** @@ -62,8 +62,7 @@ private: /** * A cmd class that Unconfigs ArpProxy Config from an interface */ -class unconfig_cmd - : public rpc_cmd, rc_t, vapi::Proxy_arp_add_del> +class unconfig_cmd : public rpc_cmd, vapi::Proxy_arp_add_del> { public: /** @@ -94,8 +93,41 @@ private: const boost::asio::ip::address_v4 m_low; const boost::asio::ip::address_v4 m_high; }; + +/** + * A cmd class that Dumps all the Proxy ARP configs + */ +class dump_cmd : public VOM::dump_cmd +{ +public: + /** + * Constructor + */ + 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 dump_cmd& i) const; + +private: + /** + * HW reutrn code + */ + HW::item item; }; -}; + +}; // namespace cmds +}; // namespace VOM /* * fd.io coding-style-patch-verification: ON