From: Tomek Mrugalski Date: Thu, 15 Dec 2016 14:05:56 +0000 (+0100) Subject: [5072] lfc-interval has been added to the example configs. X-Git-Tag: fd_json_bench_base~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b782cabfc9debaf630d4955ea357bf43d7dcc76;p=thirdparty%2Fkea.git [5072] lfc-interval has been added to the example configs. --- diff --git a/doc/examples/kea4/backends.json b/doc/examples/kea4/backends.json index 6f1d19cff6..5e89680c36 100644 --- a/doc/examples/kea4/backends.json +++ b/doc/examples/kea4/backends.json @@ -21,7 +21,8 @@ # This is the easiest backend to use as it does not require any extra # dependencies or services running. # "lease-database": { -# "type": "memfile" +# "type": "memfile", +# "lfc-interval": 3600 # }, # 2. MySQL backend. Leases will be stored in MySQL database. Make sure it diff --git a/doc/examples/kea4/dhcpv4-over-dhcpv6.json b/doc/examples/kea4/dhcpv4-over-dhcpv6.json index 1b4d7ed30d..7fb09008b2 100644 --- a/doc/examples/kea4/dhcpv4-over-dhcpv6.json +++ b/doc/examples/kea4/dhcpv4-over-dhcpv6.json @@ -11,8 +11,9 @@ }, "lease-database": { - "type": "memfile", - "name": "leases4" + "type": "memfile", + "name": "leases4", + "lfc-interval": 3600 }, "valid-lifetime": 4000, diff --git a/doc/examples/kea4/leases-expiration.json b/doc/examples/kea4/leases-expiration.json index d5f0188860..973d478c1a 100644 --- a/doc/examples/kea4/leases-expiration.json +++ b/doc/examples/kea4/leases-expiration.json @@ -15,7 +15,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # The following parameters control processing expired leases. Expired leases diff --git a/doc/examples/kea4/mysql-reservations.json b/doc/examples/kea4/mysql-reservations.json index e1722073a9..b72e5e43b6 100644 --- a/doc/examples/kea4/mysql-reservations.json +++ b/doc/examples/kea4/mysql-reservations.json @@ -16,7 +16,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Addresses will be assigned with a lifetime of 4000 seconds. diff --git a/doc/examples/kea4/reservations.json b/doc/examples/kea4/reservations.json index 17c8ceb5e0..aad043f276 100644 --- a/doc/examples/kea4/reservations.json +++ b/doc/examples/kea4/reservations.json @@ -14,7 +14,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Addresses will be assigned with a lifetime of 4000 seconds. diff --git a/doc/examples/kea4/single-subnet.json b/doc/examples/kea4/single-subnet.json index 7ffa8b9495..8c11875443 100644 --- a/doc/examples/kea4/single-subnet.json +++ b/doc/examples/kea4/single-subnet.json @@ -15,7 +15,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Addresses will be assigned with a lifetime of 4000 seconds. diff --git a/doc/examples/kea6/advanced.json b/doc/examples/kea6/advanced.json index b82d6016eb..b68877517b 100644 --- a/doc/examples/kea6/advanced.json +++ b/doc/examples/kea6/advanced.json @@ -18,9 +18,10 @@ # We need to specify the the database used to store leases. As of # September 2016, four database backends are supported: MySQL, # PostgreSQL, Cassandra, and the in-memory database, Memfile. -# We'll use memfile because it doesn't require any prior set up. +# We will use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Kea 0.9.1 introduced MAC/hardware addresses support in DHCPv6. There is diff --git a/doc/examples/kea6/classify.json b/doc/examples/kea6/classify.json index 5fd66cb356..1f018cf3e7 100644 --- a/doc/examples/kea6/classify.json +++ b/doc/examples/kea6/classify.json @@ -11,7 +11,10 @@ # Let's use the simplest backend: memfile and use some reasonable values # for timers. They are of no concern for the classification demonstration. - "lease-database": { "type": "memfile" }, + "lease-database": { + "type": "memfile", + "lfc-interval": 3600 + }, "renew-timer": 1000, "rebind-timer": 2000, "preferred-lifetime": 3000, @@ -26,8 +29,8 @@ "name": "lab", "test": "pkt.iface == 'ethX'", "option-data": [{ - "name": "dns-servers", - "data": "2001:db8::1" + "name": "dns-servers", + "data": "2001:db8::1" }] }, @@ -53,23 +56,23 @@ # least subnet and pool entries. "subnet6": [ { - "pools": [ { "pool": "2001:db8:1::/80" } ], - "subnet": "2001:db8:1::/64", - "client-class": "cable-modems", - "interface": "ethX" + "pools": [ { "pool": "2001:db8:1::/80" } ], + "subnet": "2001:db8:1::/64", + "client-class": "cable-modems", + "interface": "ethX" }, # The following subnet contains a class reservation for a client using # DUID 01:02:03:04:05:0A:0B:0C:0D:0E. This client will always be assigned # to this class. { - "pools": [ { "pool": "2001:db8:2::/80" } ], - "subnet": "2001:db8:2::/64", - "reservations": [ - { - "duid": "01:02:03:04:05:0A:0B:0C:0D:0E", - "client-classes": [ "cable-modems" ] - } ], - "interface": "ethX" + "pools": [ { "pool": "2001:db8:2::/80" } ], + "subnet": "2001:db8:2::/64", + "reservations": [ + { + "duid": "01:02:03:04:05:0A:0B:0C:0D:0E", + "client-classes": [ "cable-modems" ] + } ], + "interface": "ethX" } ] }, @@ -78,16 +81,16 @@ # informational level (info, warn, error and fatal) should be logged to stdout. "Logging": { "loggers": [ - { - "name": "kea-dhcp6", - "output_options": [ - { - "output": "stdout" - } - ], - "debuglevel": 0, - "severity": "INFO" - } + { + "name": "kea-dhcp6", + "output_options": [ + { + "output": "stdout" + } + ], + "debuglevel": 0, + "severity": "INFO" + } ] } diff --git a/doc/examples/kea6/duid.json b/doc/examples/kea6/duid.json index 7d267cdae8..23776bf729 100644 --- a/doc/examples/kea6/duid.json +++ b/doc/examples/kea6/duid.json @@ -35,7 +35,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Addresses will be assigned with preferred and valid lifetimes diff --git a/doc/examples/kea6/leases-expiration.json b/doc/examples/kea6/leases-expiration.json index 03b3d6b71b..5e1e46c271 100644 --- a/doc/examples/kea6/leases-expiration.json +++ b/doc/examples/kea6/leases-expiration.json @@ -15,7 +15,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # The following parameters control processing expired leases. Expired leases diff --git a/doc/examples/kea6/mysql-reservations.json b/doc/examples/kea6/mysql-reservations.json index fe9780dac5..e1a57266b7 100644 --- a/doc/examples/kea6/mysql-reservations.json +++ b/doc/examples/kea6/mysql-reservations.json @@ -15,7 +15,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # This is pretty basic stuff, it has nothing to do with reservations. diff --git a/doc/examples/kea6/reservations.json b/doc/examples/kea6/reservations.json index 8fab75b503..5f90a5a2d3 100644 --- a/doc/examples/kea6/reservations.json +++ b/doc/examples/kea6/reservations.json @@ -17,7 +17,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # This is pretty basic stuff, it has nothing to do with reservations. diff --git a/doc/examples/kea6/simple.json b/doc/examples/kea6/simple.json index 5c7da6310b..d633da22aa 100644 --- a/doc/examples/kea6/simple.json +++ b/doc/examples/kea6/simple.json @@ -16,7 +16,8 @@ # PostgreSQL, Cassandra, and the in-memory database, Memfile. # We'll use memfile because it doesn't require any prior set up. "lease-database": { - "type": "memfile" + "type": "memfile", + "lfc-interval": 3600 }, # Addresses will be assigned with preferred and valid lifetimes diff --git a/doc/examples/kea6/stateless.json b/doc/examples/kea6/stateless.json index b16d018c4a..6c276c931b 100644 --- a/doc/examples/kea6/stateless.json +++ b/doc/examples/kea6/stateless.json @@ -20,6 +20,9 @@ # Kea 0.9.1 requires lease-database to be specified, even it is not used. # In stateless mode, only options are granted, not addresses or prefixes, so # there will be no leases (unless stateless and stateful mode is used together). - "lease-database": { "type": "memfile" } + "lease-database": { + "type": "memfile", + "lfc-interval": 3600 + } } }