/**
* A command class that creates or updates the route
*/
-class update_cmd : public rpc_cmd<HW::item<bool>, rc_t, vapi::Ip_add_del_route>
+class update_cmd : public rpc_cmd<HW::item<bool>, vapi::Ip_add_del_route>
{
public:
/**
update_cmd(HW::item<bool>& item,
table_id_t id,
const prefix_t& prefix,
- const path_list_t& paths);
+ const path& path);
/**
* Issue the command to VPP/HW
private:
route::table_id_t m_id;
prefix_t m_prefix;
- const path_list_t m_paths;
+ const path m_path;
};
/**
* A cmd class that deletes a route
*/
-class delete_cmd : public rpc_cmd<HW::item<bool>, rc_t, vapi::Ip_add_del_route>
+class delete_cmd : public rpc_cmd<HW::item<bool>, vapi::Ip_add_del_route>
{
public:
/**
* Constructor
*/
- delete_cmd(HW::item<bool>& item, table_id_t id, const prefix_t& prefix);
+ delete_cmd(HW::item<bool>& item,
+ table_id_t id,
+ const prefix_t& prefix,
+ const path& path);
/**
* Issue the command to VPP/HW
private:
route::table_id_t m_id;
prefix_t m_prefix;
+ const path m_path;
};
/**