X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Farp_proxy_binding_cmds.hpp;h=cafc1420f87672e09c1b4fb1e8606fe21687c7ed;hb=208c29aa;hp=c73bb13aee3711c83a9a8cdea1a23cedb684e220;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/arp_proxy_binding_cmds.hpp b/extras/vom/vom/arp_proxy_binding_cmds.hpp index c73bb13aee3..cafc1420f87 100644 --- a/extras/vom/vom/arp_proxy_binding_cmds.hpp +++ b/extras/vom/vom/arp_proxy_binding_cmds.hpp @@ -17,6 +17,7 @@ #define __VOM_ARP_PROXY_BINDING_CMDS_H__ #include "vom/arp_proxy_binding.hpp" +#include "vom/dump_cmd.hpp" #include @@ -26,7 +27,7 @@ namespace arp_proxy_binding_cmds { * A command class that binds the LLDP config to the interface */ class bind_cmd - : public rpc_cmd, rc_t, vapi::Proxy_arp_intfc_enable_disable> + : public rpc_cmd, vapi::Proxy_arp_intfc_enable_disable> { public: /** @@ -59,7 +60,7 @@ private: * A cmd class that Unbinds ArpProxy Config from an interface */ class unbind_cmd - : public rpc_cmd, rc_t, vapi::Proxy_arp_intfc_enable_disable> + : public rpc_cmd, vapi::Proxy_arp_intfc_enable_disable> { public: /** @@ -87,8 +88,41 @@ private: */ const handle_t& m_itf; }; + +/** + * 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