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;
A cmd class that deletes a NAT 44 static mapping.
uint32_t table_id_t
type def the table-id
sll srl srl sll sra u16x4 i
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.
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 base class for VPP dump commands.