|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_NAT_BINDING_H__
17 #define __VOM_NAT_BINDING_H__
66 typedef std::tuple<interface::key_t, direction_t, l3_proto_t>
key_t;
104 std::shared_ptr<nat_binding>
singular()
const;
114 static std::shared_ptr<nat_binding>
find(
const key_t&
key);
119 static void dump(std::ostream& os);
139 void handle_replay();
144 void show(std::ostream& os);
165 static std::shared_ptr<nat_binding> find_or_add(
const nat_binding& temp);
198 const std::shared_ptr<interface> m_itf;
static void dump(std::ostream &os)
Dump all nat_bindings into the stream provided.
The VPP Object Model (VOM) library.
const static zone_t OUTSIDE
Deny Zone.
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
inspect command handler Handler
const static zone_t INSIDE
Permit Zone.
Class definition for listeners to OM events.
static std::shared_ptr< nat_binding > find(const key_t &key)
Static function to find the bridge_domain in the model.
std::tuple< interface::key_t, direction_t, l3_proto_t > key_t
The key for a NAT Binding.
A Class representing the binding of an L2 interface to a bridge-domain and the properties of that bin...
std::string to_string() const
convert to string format for debug purposes
std::shared_ptr< nat_binding > singular() const
Return the 'singular instance' of the L2 config that matches this object.
const static zone_t & from_vpp(u8 is_inside)
A template base class for all enum types.
~nat_binding()
Destructor.
A representation of an interface in VPP.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
~zone_t()=default
Destructor.
zone_t(int v, const std::string s)
Constructor.
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route.
nat_binding(const interface &itf, const direction_t &dir, const l3_proto_t &proto, const zone_t &zone)
Construct a new object matching the desried state.
bool operator==(const nat_binding &n) const
Comparison operator - for UT.
const key_t key() const
Return the binding's key.
A Database to store the unique 'singular' instances of a single object type.
void event_handler(void *tls_async)
A base class for all object_base in the VPP object_base-Model.