GBP: fixes for l3-out routing
[vpp.git] / extras / vom / vom / route_cmds.hpp
index f2c10ff..6db7b58 100644 (file)
@@ -29,7 +29,7 @@ namespace ip_route_cmds {
 /**
  * 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:
   /**
@@ -38,7 +38,7 @@ 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
@@ -58,19 +58,22 @@ public:
 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
@@ -90,6 +93,7 @@ public:
 private:
   route::table_id_t m_id;
   prefix_t m_prefix;
+  const path m_path;
 };
 
 /**