]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3414] Added CSV lease formats
authorFrancis Dupont <fdupont@isc.org>
Thu, 5 Dec 2024 15:54:53 +0000 (16:54 +0100)
committerThomas Markwalder <tmark@isc.org>
Fri, 6 Dec 2024 16:39:12 +0000 (16:39 +0000)
src/lib/dhcpsrv/database_backends.dox
src/lib/dhcpsrv/parsers/base_network_parser.h

index 6ef66cb9d7f94e76e12fece9e611a051f8276a16..995181887c9dbd17cdd0bcbf8327b26aa56776d7 100644 (file)
         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
index 6a5760c240114a4f140767b32cc501f3d894ad12..73af4b9a12fb698ef4b91665ed1d2cc7f1ba69f1 100644 (file)
@@ -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);