16 #ifndef __VOM_NAT_STATIC_CMDS_H__ 17 #define __VOM_NAT_STATIC_CMDS_H__ 22 #include <vapi/nat.api.vapi.hpp> 23 #include <vapi/nat66.api.vapi.hpp> 26 namespace nat_static_cmds {
32 :
public rpc_cmd<HW::item<bool>, vapi::Nat44_add_del_static_mapping>
40 const boost::asio::ip::address_v4& inside,
41 const boost::asio::ip::address_v4& outside);
60 const boost::asio::ip::address_v4 m_inside;
61 const boost::asio::ip::address_v4 m_outside;
68 :
public rpc_cmd<HW::item<bool>, vapi::Nat44_add_del_static_mapping>
76 const boost::asio::ip::address_v4& inside,
77 const boost::asio::ip::address_v4& outside);
96 const boost::asio::ip::address_v4 m_inside;
97 const boost::asio::ip::address_v4 m_outside;
137 :
public rpc_cmd<HW::item<bool>, vapi::Nat66_add_del_static_mapping>
145 const boost::asio::ip::address_v6& inside,
146 const boost::asio::ip::address_v6& outside);
165 const boost::asio::ip::address_v6 m_inside;
166 const boost::asio::ip::address_v6 m_outside;
173 :
public rpc_cmd<HW::item<bool>, vapi::Nat66_add_del_static_mapping>
181 const boost::asio::ip::address_v6& inside,
182 const boost::asio::ip::address_v6& outside);
201 const boost::asio::ip::address_v6 m_inside;
202 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
bool operator==(const create_44_cmd &i) const
Comparison operator - only used for UT.
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.
A representation of the connection to VPP.
A base class for all RPC commands to VPP.
sll srl srl sll sra u16x4 i
A cmd class that deletes a NAT 66 static mapping.
std::string to_string() const
convert to string format for debug purposes
A cmd class that Dumps all the nat_statics.
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.
HW::item< bool > & item()
return the HW item the command updates