Commit 1b782cab authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[5072] lfc-interval has been added to the example configs.

parent 039622a4
......@@ -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
......
......@@ -11,8 +11,9 @@
},
"lease-database": {
"type": "memfile",
"name": "leases4"
"type": "memfile",
"name": "leases4",
"lfc-interval": 3600
},
"valid-lifetime": 4000,
......
......@@ -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
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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
......
......@@ -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"
}
]
}
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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.
......
......@@ -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
......
......@@ -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
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment