GBP: fixes for l3-out routing
[vpp.git] / extras / vom / vom / neighbour_cmds.hpp
index fe6dd15..d43a6fe 100644 (file)
@@ -27,8 +27,8 @@ namespace neighbour_cmds {
 /**
  * A command class that creates or updates the bridge domain ARP Entry
  */
-class create_cmd
-  : public rpc_cmd<HW::item<bool>, rc_t, vapi::Ip_neighbor_add_del>
+class create_cmd : public rpc_cmd<HW::item<bool>,
+                                  vapi::Ip_neighbor_add_del>
 {
 public:
   /**
@@ -37,7 +37,8 @@ public:
   create_cmd(HW::item<bool>& 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,13 +59,14 @@ 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<HW::item<bool>, rc_t, vapi::Ip_neighbor_add_del>
+class delete_cmd : public rpc_cmd<HW::item<bool>,
+                                  vapi::Ip_neighbor_add_del>
 {
 public:
   /**
@@ -73,7 +75,8 @@ public:
   delete_cmd(HW::item<bool>& 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 +97,7 @@ private:
   handle_t m_itf;
   mac_address_t m_mac;
   boost::asio::ip::address m_ip_addr;
+  const neighbour::flags_t &m_flags;
 };
 
 /**