diff options
author | Francis Dupont <fdupont@isc.org> | 2024-12-05 16:54:53 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2024-12-06 17:39:12 +0100 |
commit | 0b4ac6eabeb7901bd164f21afc2545f0fe1b8aae (patch) | |
tree | bfa71b1237de0e767233b9e2146cb7ac83b9c600 | |
parent | [#3677] Removed duplicate function (diff) | |
download | kea-0b4ac6eabeb7901bd164f21afc2545f0fe1b8aae.tar.xz kea-0b4ac6eabeb7901bd164f21afc2545f0fe1b8aae.zip |
[#3414] Added CSV lease formats
-rw-r--r-- | src/lib/dhcpsrv/database_backends.dox | 40 | ||||
-rw-r--r-- | src/lib/dhcpsrv/parsers/base_network_parser.h | 1 |
2 files changed, 40 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/database_backends.dox b/src/lib/dhcpsrv/database_backends.dox index 6ef66cb9d7..995181887c 100644 --- a/src/lib/dhcpsrv/database_backends.dox +++ b/src/lib/dhcpsrv/database_backends.dox @@ -110,6 +110,46 @@ expire = cltt if valid_lifetime == 0xffffffff @endcode + @subsection lease4-csv DHCPv4 lease entry format in CSV files + + - <b>address</b> - IPv4 address + - <b>hwaddr</b> - hardware address (without the hardware type) + - <b>client_id</b> - client identifier + - <b>valid_lifetime</b> - valid lifetime + - <b>expire</b> - expiration date (cltt + valid lifetime) + - <b>subnet_id</b> - DHCPv4 suvbet identifier + - <b>fqdn_fwd</b> - FQDN forward DNS RR update flag + - <b>fqdn_rev</b> - FQDN reverse DNS RR update flag + - <b>hostname</b> - hostname + - <b>state</b> - lease state + - <b>user_context</b> - user context (separators are escaped) + - <b>pool_id</b> - pool identifier + + Examples can be found in unit tests. + + @subsection lease6-csv DHCPv6 lease entry format in CSV files + + - <b>address</b> - IPv6 address + - <b>DUID</b> - client DUID + - <b>valid_lifetime</b> - valid lifetime + - <b>expire</b> - expiration date (cltt + valid lifetime) + - <b>subnet_id</b> - DHCPv6 suvbet identifier + - <b>pref_lifetime</b> - preferred lifetime + - <b>lease_type</b> - lease type (0 for NA, 2 for PD) + - <b>iaid</b> - IA identifier + - <b>prefix_len</b> - prefix length + - <b>fqdn_fwd</b> - FQDN forward DNS RR update flag + - <b>fqdn_rev</b> - FQDN reverse DNS RR update flag + - <b>hostname</b> - hostname + - <b>hwaddr</b> - hardware address + - <b>state</b> - lease state + - <b>user_context</b> - user context (separators are escaped) + - <b>hwtype</b> - hardware type + - <b>hwaddr_source</b> - source of hardeare address and type + - <b>pool_id</b> - pool identifier + + Examples can be found in unit tests. + @section dhcpdb-host Host Backends Host backends (known also as host data sources) are similar to lease diff --git a/src/lib/dhcpsrv/parsers/base_network_parser.h b/src/lib/dhcpsrv/parsers/base_network_parser.h index 6a5760c240..73af4b9a12 100644 --- a/src/lib/dhcpsrv/parsers/base_network_parser.h +++ b/src/lib/dhcpsrv/parsers/base_network_parser.h @@ -134,7 +134,6 @@ public: /// /// @param params configuration element tree to search. /// @param adder_func function to add class names to an object's additional class list. - /// @return Element referred to or an empty pointer. /// @throw DhcpConfigError if both entries are present. static void getAdditionalClassesElem(data::ConstElementPtr params, ClassAdderFunc adder_func); |