Kea 2.7.5
|
JSON adaptor for host reservations quoting identifiers. More...
#include <adaptor_host.h>
Public Member Functions | |
virtual | ~AdaptorHost ()=default |
Destructor. | |
Static Public Member Functions | |
static void | quoteIdentifier (isc::data::ElementPtr host) |
Quote when needed a host identifier. | |
Static Public Attributes | |
static const std::string | STD_CHARACTERS |
The string of standard (vs special or not printable) characters (digit, letters, -, ., @, _). | |
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.
|
virtualdefault |
Destructor.
|
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 29 of file adaptor_host.cc.
References isc::data::Element::create(), isc::util::str::quotedStringToBinary(), and STD_CHARACTERS.
Referenced by isc::yang::AdaptorConfig::sanitizeHostList().
|
static |
The string of standard (vs special or not printable) characters (digit, letters, -, ., @, _).
Definition at line 26 of file adaptor_host.h.
Referenced by quoteIdentifier().