16 #ifndef __VOM_NAT_STATIC_CMDS_H__ 17 #define __VOM_NAT_STATIC_CMDS_H__ 22 #include <vapi/nat.api.vapi.hpp> 25 namespace nat_static_cmds {
31 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Nat44_add_del_static_mapping>
39 const boost::asio::ip::address_v4& inside,
40 const boost::asio::ip::address_v4& outside);
59 const boost::asio::ip::address_v4 m_inside;
60 const boost::asio::ip::address_v4 m_outside;
67 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Nat44_add_del_static_mapping>
75 const boost::asio::ip::address_v4& inside,
76 const boost::asio::ip::address_v4& outside);
95 const boost::asio::ip::address_v4 m_inside;
96 const boost::asio::ip::address_v4 m_outside;
136 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Nat66_add_del_static_mapping>
144 const boost::asio::ip::address_v6& inside,
145 const boost::asio::ip::address_v6& outside);
164 const boost::asio::ip::address_v6 m_inside;
165 const boost::asio::ip::address_v6 m_outside;
172 :
public rpc_cmd<HW::item<bool>, rc_t, vapi::Nat66_add_del_static_mapping>
180 const boost::asio::ip::address_v6& inside,
181 const boost::asio::ip::address_v6& outside);
200 const boost::asio::ip::address_v6 m_inside;
201 const boost::asio::ip::address_v6 m_outside;
A cmd class that deletes a NAT 44 static mapping.
uint32_t table_id_t
type def the table-id
A command class that creates NAT 44 static mapping.
rc_t issue(connection &con)
Issue the command to VPP/HW.
create_44_cmd(HW::item< bool > &item, route::table_id_t id, const boost::asio::ip::address_v4 &inside, const boost::asio::ip::address_v4 &outside)
Constructor.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
HW::item< bool > & item()
return the HW item the command updates
A base class for all RPC commands to VPP.
A cmd class that deletes a NAT 66 static mapping.
A cmd class that Dumps all the nat_statics.
bool operator==(const create_44_cmd &i) const
Comparison operator - only used for UT.
A cmd class that Dumps all the nat_statics.
The VPP Object Model (VOM) library.
A command class that creates NAT 66 static mapping.
A base class for VPP dump commands.