X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fgbp_endpoint_cmds.hpp;h=4b9036aca0045734384c6d6ab3f12f56b2fc040e;hb=7c0eb56f4;hp=2893ef51eeca2d65c94aaaa8007d383a30954dfd;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/gbp_endpoint_cmds.hpp b/extras/vom/vom/gbp_endpoint_cmds.hpp index 2893ef51eec..4b9036aca00 100644 --- a/extras/vom/vom/gbp_endpoint_cmds.hpp +++ b/extras/vom/vom/gbp_endpoint_cmds.hpp @@ -25,20 +25,20 @@ namespace VOM { namespace gbp_endpoint_cmds { /** -* A command class that creates or updates the GBP endpoint -*/ -class create_cmd - : public rpc_cmd, rc_t, vapi::Gbp_endpoint_add_del> + * A command class that creates or updates the GBP endpoint + */ +class create_cmd : public rpc_cmd, vapi::Gbp_endpoint_add> { public: /** * Constructor */ - create_cmd(HW::item& item, + create_cmd(HW::item& item, const handle_t& itf, - const boost::asio::ip::address& ip_addr, + const std::vector& ip_addrs, const mac_address_t& mac, - epg_id_t epg_id); + sclass_t sclass, + const gbp_endpoint::flags_t& flags); /** * Issue the command to VPP/HW @@ -50,6 +50,8 @@ public: */ std::string to_string() const; + virtual vapi_error_e operator()(vapi::Gbp_endpoint_add& reply); + /** * Comparison operator - only used for UT */ @@ -57,24 +59,22 @@ public: private: const handle_t m_itf; - const boost::asio::ip::address m_ip_addr; + const std::vector m_ip_addrs; const mac_address_t m_mac; - const epg_id_t m_epg_id; + const sclass_t m_sclass; + const gbp_endpoint::flags_t m_flags; }; /** * A cmd class that deletes a GBP endpoint */ -class delete_cmd - : public rpc_cmd, rc_t, vapi::Gbp_endpoint_add_del> +class delete_cmd : public rpc_cmd, vapi::Gbp_endpoint_del> { public: /** * Constructor */ - delete_cmd(HW::item& item, - const handle_t& itf, - const boost::asio::ip::address& ip_addr); + delete_cmd(HW::item& item); /** * Issue the command to VPP/HW @@ -92,8 +92,7 @@ public: bool operator==(const delete_cmd& i) const; private: - const handle_t m_itf; - const boost::asio::ip::address m_ip_addr; + const handle_t m_hdl; }; /**