X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fneighbour_cmds.hpp;h=024a021ce8d58bc78871e8779fca88f3387361d7;hb=cbe25aab3be72154f2c706c39eeba6a77f34450f;hp=fe6dd155cd92d35ae75ba83d4fd91cca86ff7272;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/neighbour_cmds.hpp b/extras/vom/vom/neighbour_cmds.hpp index fe6dd155cd9..024a021ce8d 100644 --- a/extras/vom/vom/neighbour_cmds.hpp +++ b/extras/vom/vom/neighbour_cmds.hpp @@ -17,9 +17,10 @@ #define __VOM_NEIGHBOUR_CMDS_H__ #include "vom/dump_cmd.hpp" +#include "vom/srpc_cmd.hpp" #include "neighbour.hpp" -#include +#include namespace VOM { namespace neighbour_cmds { @@ -27,17 +28,17 @@ namespace neighbour_cmds { /** * A command class that creates or updates the bridge domain ARP Entry */ -class create_cmd - : public rpc_cmd, rc_t, vapi::Ip_neighbor_add_del> +class create_cmd : public srpc_cmd { public: /** * Constructor */ - create_cmd(HW::item& item, + create_cmd(HW::item& item, handle_t itf, const mac_address_t& mac, - const boost::asio::ip::address& ip_addr); + const boost::asio::ip::address& ip_addr, + const neighbour::flags_t &flags); /** * Issue the command to VPP/HW @@ -58,22 +59,23 @@ private: handle_t m_itf; mac_address_t m_mac; boost::asio::ip::address m_ip_addr; + const neighbour::flags_t &m_flags; }; /** * A cmd class that deletes a bridge domain ARP entry */ -class delete_cmd - : public rpc_cmd, rc_t, vapi::Ip_neighbor_add_del> +class delete_cmd : public srpc_cmd { public: /** * Constructor */ - delete_cmd(HW::item& item, + delete_cmd(HW::item& item, handle_t itf, const mac_address_t& mac, - const boost::asio::ip::address& ip_addr); + const boost::asio::ip::address& ip_addr, + const neighbour::flags_t &flags); /** * Issue the command to VPP/HW @@ -94,6 +96,7 @@ private: handle_t m_itf; mac_address_t m_mac; boost::asio::ip::address m_ip_addr; + const neighbour::flags_t &m_flags; }; /**