]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3684] Updated examples as a result of review.
authorMarcin Siodelski <marcin@isc.org>
Thu, 8 Sep 2016 10:58:52 +0000 (12:58 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 8 Sep 2016 10:58:52 +0000 (12:58 +0200)
19 files changed:
doc/examples/kea4/backends.json
doc/examples/kea4/leases-expiration.json
doc/examples/kea4/multiple-options.json
doc/examples/kea4/mysql-reservations.json
doc/examples/kea4/pgsql-reservations.json
doc/examples/kea4/reservations.json
doc/examples/kea4/several-subnets.json
doc/examples/kea4/single-subnet.json
doc/examples/kea6/advanced.json
doc/examples/kea6/backends.json
doc/examples/kea6/classify.json
doc/examples/kea6/duid.json
doc/examples/kea6/leases-expiration.json
doc/examples/kea6/multiple-options.json
doc/examples/kea6/mysql-reservations.json
doc/examples/kea6/pgsql-reservations.json
doc/examples/kea6/reservations.json
doc/examples/kea6/several-subnets.json
doc/examples/kea6/simple.json

index 7fdabe599c5cd559af952f4544f595c570d51290..b52b6fade8a6ac91759b2286df2dbf63039a7c67 100644 (file)
 #      "contact_points": "192.0.2.1,192.0.2.2,192.0.2.3"
 #  },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index b1397b3d180996500bd4ba140bfc3b0af6071d4c..e66f094cca3189dd31b404e0b23ffd177ebf2eb2 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
     "unwarned-reclaim-cycles": 10
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # The following list defines subnets. We have only one subnet
index 817369b28ce92779063f04d1f0163f18d502e915..ab07ff5feebd0d91ff4f7520b777d7e1889bf715 100644 (file)
@@ -9,18 +9,15 @@
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index 79e95fb0e4621945e790266694b2fdfa273ac647..8bb1ae0530730ff449f9c9a632c2893588ee1778 100644 (file)
@@ -8,20 +8,18 @@
 # Kea is told to listen on ethX interface only.
   "interfaces-config": {
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index c512c4d300cf89f18a6d5d016c133d683e90715c..3f6b91b8b795d69104aba6638a6d8707e4477f0b 100644 (file)
     "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
-# any prior set up.
+
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index 3ebfcaf002e3a6282a5ca4ed9e4f2c0f190b1b32..328a6b351156875cfd5d3e95d2ba86928e49d248 100644 (file)
@@ -9,18 +9,15 @@
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index 68f0d46afcdd34397289f5707fb21d3dc8dc68a7..f33892a3523a5353954c5cba54f36bac0d5e3975 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
        "subnet": "192.0.4.0/24"  } ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp4",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "severity": "INFO"
         }
     ]
 }
index 385a2dda6b16f013a7f7ab2a090f4254451e4165..c3793db6682413643e2451783721e73cfe41c3ac 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
-# Addresses will be assigned with valid lifetimes being 4000. Client
-# 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).
+# Addresses will be assigned with valid lifetimes being 4000.
   "valid-lifetime": 4000,
 
 # Renew and rebind timers are commented out. This implies that options
index 821db2bb2d0db4e414af641d2676f0cf7e36b275..4ecd8f32dc5d9065ac9c6134fea1ab8a47c2f3ee 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 83a98f67c411d44f4de8765cf8f0448c18e25cbe..8a7151046106b1328b3de9392304d42dc0867376 100644 (file)
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
             "debuglevel": 0,
index eac05896c7e7285df626480a503df43ddc7aa2d7..020f5ed2d8a4d3e89b59b28360b20640d94880bc 100644 (file)
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
-            ], 
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            ],
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 4bc644048218f9835a994f3183cf45029ecd9020..7d267cdae8278faf57ed5638daa447a43595b9d6 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
@@ -50,7 +51,7 @@
 
 # The following list defines subnets. Each subnet consists of at
 # least subnet and pool entries.
-  "subnet6": [ 
+  "subnet6": [
     {
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
-            ], 
+            ],
             "debuglevel": 0,
             "severity": "INFO"
         }
index 59fea3022b9736411d0bfbc235a0b990c5bfc0ea..0ec34df1095319ebafac129937e3101372e81b97 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 231a2ed306b114a16fce799a6cc0d6719467c16b..498f718a4d1a45175a47fa3bcab8dc0e99a241fd 100644 (file)
@@ -9,9 +9,10 @@
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index ec50656ee2ba6f010f770f0e1b438bd946451908..e1f791c5759e7cdd659f665686700a039adc4543 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 170c03e7d7630d26e4f95bab594d06e6a44378bd..a75d21a0573de884b4da5843665544a57a3fec38 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 79bf11557507bc89c28270e5b6475fc4f487df8f..abf73f91a20d38796b443eed5d05a55e17c57372 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
             ],
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index ca93b8b431178308b49622882c24fd14a290c270..48d0bdb5b4c7b27a51bafe6678655b2a8ead53ac 100644 (file)
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
 
 # The following list defines subnets. Each subnet consists of at
 # least subnet and pool entries.
-  "subnet6": [ 
+  "subnet6": [
   {    "pools": [ { "pool": "2001:db8:1::/80" } ],
        "subnet": "2001:db8:1::/64"  },
   {    "pools": [ { "pool": "2001:db8:2::/80" } ],
-       "subnet": "2001:db8:2::/64"  }, 
+       "subnet": "2001:db8:2::/64"  },
   {    "pools": [ { "pool": "2001:db8:3::/80" } ],
        "subnet": "2001:db8:3::/64"  },
   {    "pools": [ { "pool": "2001:db8:4::/80" } ],
        "subnet": "2001:db8:4::/64"  } ]
 },
 
-# The following configures logging. It assumes that warning messages
-# will be logged to stdout.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
@@ -52,7 +53,8 @@
                     "output": "stdout"
                 }
             ],
-            "severity": "WARN"
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }
index 7d0234683a674e8fb0b9f9a0e378619b00ed893a..f7a77008cfbcf82610189f7c18d39bc47104988b 100644 (file)
@@ -5,15 +5,16 @@
 
 { "Dhcp6":
 
-{ 
+{
 # Kea is told to listen on ethX interface only.
   "interfaces-config": {
     "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
-# any prior set up.
+# 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.
   "lease-database": {
     "type": "memfile"
   },
@@ -31,7 +32,7 @@
 
 # The following list defines subnets. Each subnet consists of at
 # least subnet and pool entries.
-  "subnet6": [ 
+  "subnet6": [
     {
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
   ]
 },
 
-# The following configures logging. Kea will log all debug messages
-# to /var/log/kea-debug.log file.
+# The following configures logging. It assumes that messages with at least
+# informational level (info, warn, error) will will be logged to stdout.
 "Logging": {
     "loggers": [
         {
             "name": "kea-dhcp6",
             "output_options": [
                 {
-                    "output": "/var/log/kea-debug.log"
+                    "output": "stdout"
                 }
-            ], 
-            "debuglevel": 99,
-            "severity": "DEBUG"
+            ],
+            "debuglevel": 0,
+            "severity": "INFO"
         }
     ]
 }