aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vpp-oper/interface.hpp
diff options
context:
space:
mode:
authorYohanPipereau <ypiperea@cisco.com>2019-07-15 15:37:46 +0200
committerYohanPipereau <ypiperea@cisco.com>2019-07-26 15:29:05 +0200
commit18561adfde80d6665e24262d70d18f916e2662e5 (patch)
tree06683574ba18ee25012f77b18da7c0e35a5707aa /src/plugins/vpp-oper/interface.hpp
parentadc56bc5ddcdf947864d982cda809588b7ccd8bc (diff)
vom: migration from scvpp to vom
Change-Id: I79609f0bee9b8307da0d9bf704babe8ba06dba4d Signed-off-by: YohanPipereau <ypiperea@cisco.com> Co-authored-by: Pavel Kotucek <pavel.kotucek@pantheon.tech> Co-authored-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'src/plugins/vpp-oper/interface.hpp')
-rw-r--r--src/plugins/vpp-oper/interface.hpp33
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_