Commit 05072326 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3684] Updated examples as a result of review.

parent 0aeb76d8
...@@ -68,11 +68,7 @@ ...@@ -68,11 +68,7 @@
# "contact_points": "192.0.2.1,192.0.2.2,192.0.2.3" # "contact_points": "192.0.2.1,192.0.2.2,192.0.2.3"
# }, # },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -34,11 +35,7 @@ ...@@ -34,11 +35,7 @@
"unwarned-reclaim-cycles": 10 "unwarned-reclaim-cycles": 10
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# The following list defines subnets. We have only one subnet # The following list defines subnets. We have only one subnet
......
...@@ -9,18 +9,15 @@ ...@@ -9,18 +9,15 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -8,20 +8,18 @@ ...@@ -8,20 +8,18 @@
# Kea is told to listen on ethX interface only. # Kea is told to listen on ethX interface only.
"interfaces-config": { "interfaces-config": {
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -10,18 +10,16 @@ ...@@ -10,18 +10,16 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported:
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # We need to specify the the database used to store leases. As of
# any prior set up. # 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.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -9,18 +9,15 @@ ...@@ -9,18 +9,15 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -37,19 +38,18 @@ ...@@ -37,19 +38,18 @@
"subnet": "192.0.4.0/24" } ] "subnet": "192.0.4.0/24" } ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp4", "name": "kea-dhcp4",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 99, "severity": "INFO"
"severity": "DEBUG"
} }
] ]
} }
......
...@@ -10,18 +10,15 @@ ...@@ -10,18 +10,15 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
# Addresses will be assigned with valid lifetimes being 4000. Client # Addresses will be assigned with valid lifetimes being 4000.
# is told to start renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).
"valid-lifetime": 4000, "valid-lifetime": 4000,
# Renew and rebind timers are commented out. This implies that options # Renew and rebind timers are commented out. This implies that options
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -71,19 +72,19 @@ ...@@ -71,19 +72,19 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 99, "debuglevel": 0,
"severity": "DEBUG" "severity": "INFO"
} }
] ]
} }
......
...@@ -90,15 +90,15 @@ ...@@ -90,15 +90,15 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 0, "debuglevel": 0,
......
...@@ -66,19 +66,19 @@ ...@@ -66,19 +66,19 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 99, "debuglevel": 0,
"severity": "DEBUG" "severity": "INFO"
} }
] ]
} }
......
...@@ -30,9 +30,10 @@ ...@@ -30,9 +30,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
# The following list defines subnets. Each subnet consists of at # The following list defines subnets. Each subnet consists of at
# least subnet and pool entries. # least subnet and pool entries.
"subnet6": [ "subnet6": [
{ {
"pools": [ { "pool": "2001:db8:1::/80" } ], "pools": [ { "pool": "2001:db8:1::/80" } ],
"subnet": "2001:db8:1::/64", "subnet": "2001:db8:1::/64",
...@@ -59,17 +60,17 @@ ...@@ -59,17 +60,17 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 0, "debuglevel": 0,
"severity": "INFO" "severity": "INFO"
} }
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -56,19 +57,19 @@ ...@@ -56,19 +57,19 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 99, "debuglevel": 0,
"severity": "DEBUG" "severity": "INFO"
} }
] ]
} }
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
"interfaces": [ "ethX" ] "interfaces": [ "ethX" ]
}, },
# We need to specify lease type. As of May 2014, three backends are supported: # We need to specify the the database used to store leases. As of
# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require # September 2016, four database backends are supported: MySQL,
# any prior set up. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
# We'll use memfile because it doesn't require any prior set up.
"lease-database": { "lease-database": {
"type": "memfile" "type": "memfile"
}, },
...@@ -49,19 +50,19 @@ ...@@ -49,19 +50,19 @@
] ]
}, },
# The following configures logging. Kea will log all debug messages # The following configures logging. It assumes that messages with at least
# to /var/log/kea-debug.log file. # informational level (info, warn, error) will will be logged to stdout.
"Logging": { "Logging": {
"loggers": [ "loggers": [
{ {
"name": "kea-dhcp6", "name": "kea-dhcp6",
"output_options": [ "output_options": [
{ {
"output": "/var/log/kea-debug.log" "output": "stdout"
} }
], ],
"debuglevel": 99, "debuglevel": 0,
"severity": "DEBUG" "severity": "INFO"
} }