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;
98 const key_t
key()
const;
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;
~nat_binding()
Destructor.
static const zone_t OUTSIDE
Deny Zone.
~zone_t()=default
Destructor.
A template base class for all enum types.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route...
A Class representing the binding of an L2 interface to a bridge-domain and the properties of that bin...
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 enum_base &e) const
Comparison operator.
const key_t key() const
Return the binding's key.
static const zone_t INSIDE
Permit Zone.
A Database to store the unique 'singular' instances of a single object type.
zone_t(int v, const std::string s)
Constructor.
static void dump(std::ostream &os)
Dump all nat_bindings into the stream provided.
A representation of an interface in VPP.
Class definition for listeners to OM events.
inspect command handler Handler
const std::string & to_string() const
convert to string format for debug purposes
void event_handler(void *tls_async)
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.
A base class for all object_base in the VPP object_base-Model.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
The VPP Object Model (VOM) library.
static std::shared_ptr< nat_binding > find(const key_t &key)
Static function to find the bridge_domain in the model.
std::shared_ptr< nat_binding > singular() const
Return the 'singular instance' of the L2 config that matches this object.
std::tuple< interface::key_t, direction_t, l3_proto_t > key_t
The key for a NAT Binding.
static const zone_t & from_vpp(u8 is_inside)