X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fgbp_endpoint_cmds.hpp;h=e90fb66f04ade5241d1a696b35b793c4e14bbfa9;hb=8c8acc0;hp=dea4c2c560519345455e45e8f283a6eea15c7b24;hpb=208c29aac523231af2420a95ba7e5d361698780b;p=vpp.git diff --git a/extras/vom/vom/gbp_endpoint_cmds.hpp b/extras/vom/vom/gbp_endpoint_cmds.hpp index dea4c2c5605..e90fb66f04a 100644 --- a/extras/vom/vom/gbp_endpoint_cmds.hpp +++ b/extras/vom/vom/gbp_endpoint_cmds.hpp @@ -27,15 +27,15 @@ namespace gbp_endpoint_cmds { /** * A command class that creates or updates the GBP endpoint */ -class create_cmd : public rpc_cmd, vapi::Gbp_endpoint_add_del> +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); @@ -49,6 +49,8 @@ public: */ std::string to_string() const; + virtual vapi_error_e operator()(vapi::Gbp_endpoint_add& reply); + /** * Comparison operator - only used for UT */ @@ -56,7 +58,7 @@ 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; }; @@ -64,15 +66,13 @@ private: /** * A cmd class that deletes a GBP endpoint */ -class delete_cmd : public rpc_cmd, 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 @@ -90,8 +90,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; }; /**