X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fip_unnumbered_cmds.hpp;h=fdd00520404347130bfbbc58fbcdb701fedeb949;hb=33b81da;hp=0bb70276e45091a4d36a08427e479e5903632531;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/ip_unnumbered_cmds.hpp b/extras/vom/vom/ip_unnumbered_cmds.hpp index 0bb70276e45..fdd00520404 100644 --- a/extras/vom/vom/ip_unnumbered_cmds.hpp +++ b/extras/vom/vom/ip_unnumbered_cmds.hpp @@ -16,6 +16,7 @@ #ifndef __VOM_IP_UNNUMBERED_CMDS_H__ #define __VOM_IP_UNNUMBERED_CMDS_H__ +#include "vom/dump_cmd.hpp" #include "vom/ip_unnumbered.hpp" #include "vom/rpc_cmd.hpp" @@ -28,7 +29,7 @@ namespace ip_unnumbered_cmds { *A command class that configures the IP unnumbered */ class config_cmd - : public rpc_cmd, rc_t, vapi::Sw_interface_set_unnumbered> + : public rpc_cmd, vapi::Sw_interface_set_unnumbered> { public: /** @@ -65,7 +66,7 @@ private: * A cmd class that Unconfigs L3 Config from an interface */ class unconfig_cmd - : public rpc_cmd, rc_t, vapi::Sw_interface_set_unnumbered> + : public rpc_cmd, vapi::Sw_interface_set_unnumbered> { public: /** @@ -100,6 +101,37 @@ private: const handle_t& m_l3_itf; }; +/** + * A cmd class that Dumps all the IP unnumbered interfaces + */ +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 ip_unnumbered_cmds }; // namespace VOM