![]() |
FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
|
A representation of DHCP client configuration on an interface. More...
Inheritance diagram for VOM::dhcp_config:
Collaboration diagram for VOM::dhcp_config:Data Structures | |
| class | event_listener |
| A class that listens to DHCP Events. More... | |
Public Types | |
| typedef interface::key_t | key_t |
| typedef for the DHCP config key type More... | |
Public Member Functions | |
| dhcp_config (const interface &itf, const std::string &hostname, bool set_broadcast_flag=true) | |
| Construct a new object matching the desried state. More... | |
| dhcp_config (const interface &itf, const std::string &hostname, const l2_address_t &client_id, bool set_broadcast_flag=true) | |
| Construct a new object matching the desried state. More... | |
| dhcp_config (const dhcp_config &o) | |
| Copy Constructor. More... | |
| ~dhcp_config () | |
| Destructor. More... | |
| bool | operator== (const dhcp_config &d) const |
| Comparison operator - for UT. More... | |
| const key_t & | key () const |
| Return the object's key. More... | |
| std::shared_ptr< dhcp_config > | singular () const |
| Return the 'singular' of the DHCP config that matches this object. More... | |
| std::string | to_string () const |
| convert to string format for debug purposes More... | |
Static Public Member Functions | |
| static void | dump (std::ostream &os) |
| Dump all DHCP configs into the stream provided. More... | |
| static std::shared_ptr< dhcp_config > | find (const key_t &k) |
| Find a DHCP config from its key. More... | |
Friends | |
| class | OM |
| class | singular_db< key_t, dhcp_config > |
| It's the singular_db class that calls replay() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from VOM::object_base | |
| object_base ()=default | |
| Constructable by derived classes only. More... | |
| virtual | ~object_base ()=default |
| Destructor. More... | |
A representation of DHCP client configuration on an interface.
Definition at line 33 of file dhcp_config.hpp.
typedef for the DHCP config key type
Definition at line 39 of file dhcp_config.hpp.
| VOM::dhcp_config::dhcp_config | ( | const interface & | itf, |
| const std::string & | hostname, | ||
| bool | set_broadcast_flag = true |
||
| ) |
Construct a new object matching the desried state.
Definition at line 28 of file dhcp_config.cpp.
| VOM::dhcp_config::dhcp_config | ( | const interface & | itf, |
| const std::string & | hostname, | ||
| const l2_address_t & | client_id, | ||
| bool | set_broadcast_flag = true |
||
| ) |
Construct a new object matching the desried state.
Definition at line 39 of file dhcp_config.cpp.
| VOM::dhcp_config::dhcp_config | ( | const dhcp_config & | o | ) |
Copy Constructor.
Definition at line 51 of file dhcp_config.cpp.
| VOM::dhcp_config::~dhcp_config | ( | ) |
Destructor.
Definition at line 60 of file dhcp_config.cpp.
|
static |
Dump all DHCP configs into the stream provided.
Definition at line 92 of file dhcp_config.cpp.
Here is the call graph for this function:
|
static |
Find a DHCP config from its key.
Definition at line 135 of file dhcp_config.cpp.
| const dhcp_config::key_t & VOM::dhcp_config::key | ( | ) | const |
Return the object's key.
Definition at line 76 of file dhcp_config.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool VOM::dhcp_config::operator== | ( | const dhcp_config & | d | ) | const |
Comparison operator - for UT.
Definition at line 69 of file dhcp_config.cpp.
Here is the call graph for this function:| std::shared_ptr< dhcp_config > VOM::dhcp_config::singular | ( | ) | const |
Return the 'singular' of the DHCP config that matches this object.
Definition at line 141 of file dhcp_config.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 107 of file dhcp_config.cpp.
Here is the call graph for this function:
|
friend |
Definition at line 174 of file dhcp_config.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 179 of file dhcp_config.hpp.