diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-06-08 16:57:33 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-06-11 23:34:18 +0000 |
commit | 0af529c4c50bfa52e83cd4190e7d8baa5b20022f (patch) | |
tree | 17b5917b54a12ddca6acf49ec14d51779b81bef7 /extras/vom/vom/interface_cmds.hpp | |
parent | 25579b4acd449e1bae30d2a20a44b77741c8e1fd (diff) |
vom: Add support for af-packet dump
Change-Id: I0a1fc36ac29f6da70334ea3b5a5cf0e841faef76
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'extras/vom/vom/interface_cmds.hpp')
-rw-r--r-- | extras/vom/vom/interface_cmds.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extras/vom/vom/interface_cmds.hpp b/extras/vom/vom/interface_cmds.hpp index 7a0040deb0a..d5c161dd113 100644 --- a/extras/vom/vom/interface_cmds.hpp +++ b/extras/vom/vom/interface_cmds.hpp @@ -603,6 +603,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<vapi::Af_packet_dump> +{ +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; +}; }; }; /* |