Kea
1.9.9-git
|
JSON adaptor for host reservations quoting identifiers. More...
#include <adaptor_host.h>
Public Member Functions | |
AdaptorHost () | |
Constructor. More... | |
virtual | ~AdaptorHost () |
Destructor. More... | |
Static Public Member Functions | |
static void | quoteIdentifier (isc::data::ElementPtr host) |
Quote when needed a host identifier. More... | |
Static Public Attributes | |
static const std::string | STD_CHARACTERS |
The string of standard (vs special or not printable) characters (digit, letters, -, ., @, _). More... | |
JSON adaptor for host reservations quoting identifiers.
The identifier type and identifier value are used as keys in YANG host reservation lists so some constraints were put on their contents. For instance a quoted flex-id identifier raises an error (keys are between quotes in setItem commands).
Definition at line 21 of file adaptor_host.h.
isc::yang::AdaptorHost::AdaptorHost | ( | ) |
Constructor.
Definition at line 26 of file adaptor_host.cc.
|
virtual |
Destructor.
Definition at line 29 of file adaptor_host.cc.
|
static |
Quote when needed a host identifier.
Check if the flex-id identifier includes a special (including quote) or not printable character. When it is the case produce and replace by a hexadecimal identifier trying first for a quoted identifier.
host | The host. |
Definition at line 33 of file adaptor_host.cc.
References isc::util::str::quotedStringToBinary().
|
static |
The string of standard (vs special or not printable) characters (digit, letters, -, ., @, _).
Definition at line 26 of file adaptor_host.h.