diff options
Diffstat (limited to 'src/plugins/vpp-oper/interface.hpp')
-rw-r--r-- | src/plugins/vpp-oper/interface.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/plugins/vpp-oper/interface.hpp b/src/plugins/vpp-oper/interface.hpp new file mode 100644 index 0000000..6bcbbf6 --- /dev/null +++ b/src/plugins/vpp-oper/interface.hpp @@ -0,0 +1,33 @@ +#ifndef __OPER_INTERFACE_H_ +#define __OPER_INTERFACE_H_ + +#include <vom/dump_cmd.hpp> +#include <vapi/interface.api.vapi.hpp> + +class interface_dump : public VOM::dump_cmd<vapi::Sw_interface_dump> +{ +public: + /** + * Default Constructor - dump everything + */ + interface_dump(); + + /* + * Constructor to dump one interface only + */ + interface_dump(std::string interface_name); + + /** + * Issue the command to VPP/HW + */ + VOM::rc_t issue(VOM::connection& con); + /** + * convert to string format for debug purposes + */ + std::string to_string() const; + +private: + std::string m_name; //interface name +}; + +#endif //__OPER_INTERFACE_H_ |