|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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;
dump_44_cmd()=default
Constructor.
The VPP Object Model (VOM) library.
bool operator==(const dump_44_cmd &i) const
Comparison operator - only used for UT.
delete_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.
A command class that creates NAT 66 static mapping.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that Dumps all the nat_statics.
A base class for all RPC commands to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that Dumps all the nat_statics.
A cmd class that deletes a NAT 44 static mapping.
delete_66_cmd(HW::item< bool > &item, route::table_id_t id, const boost::asio::ip::address_v6 &inside, const boost::asio::ip::address_v6 &outside)
Constructor.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A command class that creates NAT 44 static mapping.
bool operator==(const delete_66_cmd &i) const
Comparison operator - only used for UT.
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.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
bool operator==(const create_44_cmd &i) const
Comparison operator - only used for UT.
bool operator==(const delete_44_cmd &i) const
Comparison operator - only used for UT.
rc_t issue(connection &con)
Issue the command to VPP/HW.
dump_66_cmd()=default
Constructor.
HW::item< bool > & item()
return the HW item the command updates
rc_t issue(connection &con)
Issue the command to VPP/HW.
create_66_cmd(HW::item< bool > &item, route::table_id_t id, const boost::asio::ip::address_v6 &inside, const boost::asio::ip::address_v6 &outside)
Constructor.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const dump_66_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
uint32_t table_id_t
type def the table-id
A cmd class that deletes a NAT 66 static mapping.
Error codes that VPP will return during a HW write.
A base class for VPP dump commands.
std::string to_string() const
convert to string format for debug purposes
bool operator==(const create_66_cmd &i) const
Comparison operator - only used for UT.