aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vpp-oper/interface.hpp
blob: 6bcbbf6b7e1005f3de380bbb347faca6e2ec360c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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_