diff options
author | Neale Ranns <nranns@cisco.com> | 2018-05-22 08:40:52 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-25 11:45:48 +0000 |
commit | 0053de63ec4bf8b9bce7817f1b61c9791baf6c26 (patch) | |
tree | 17fe95628d3b9f5c3d226c3ff79fb2b3027a2b80 /extras/vom/vom/arp_proxy_binding_cmds.hpp | |
parent | 096e6be4bda3b409aa6fc400d0ce507ea415f26b (diff) |
ARP proxy dumps
Change-Id: I8335ebf266becf2f42bb3f28a17dfed8d9b08f97
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom/vom/arp_proxy_binding_cmds.hpp')
-rw-r--r-- | extras/vom/vom/arp_proxy_binding_cmds.hpp | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/extras/vom/vom/arp_proxy_binding_cmds.hpp b/extras/vom/vom/arp_proxy_binding_cmds.hpp index c73bb13aee3..fcf0a4a2530 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 <vapi/vpe.api.vapi.hpp> @@ -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<vapi::Proxy_arp_intfc_dump> +{ +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<bool> item; }; -}; + +}; // namespace cmds +}; // namespace VOM /* * fd.io coding-style-patch-verification: ON |