summaryrefslogtreecommitdiffstats
path: root/doc/examples/kea6
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2022-03-30 11:46:28 +0200
committerRazvan Becheriu <razvan@isc.org>2022-03-31 10:11:37 +0200
commitd41571ce170bce6f9e87e01ebf9292f4372ce3c6 (patch)
treeb9be5bcb129cc3f16b9fe3d83019e08c928a8251 /doc/examples/kea6
parent[#2371] update version in configure.ac (diff)
downloadkea-d41571ce170bce6f9e87e01ebf9292f4372ce3c6.tar.xz
kea-d41571ce170bce6f9e87e01ebf9292f4372ce3c6.zip
[#2116] remove cql code
Diffstat (limited to 'doc/examples/kea6')
-rw-r--r--doc/examples/kea6/advanced.json2
-rw-r--r--doc/examples/kea6/all-keys-netconf.json41
-rw-r--r--doc/examples/kea6/all-keys.json41
-rw-r--r--doc/examples/kea6/backends.json16
-rw-r--r--doc/examples/kea6/cassandra.json122
-rw-r--r--doc/examples/kea6/duid.json2
-rw-r--r--doc/examples/kea6/global-reservations.json2
-rw-r--r--doc/examples/kea6/ha-hot-standby.json4
-rw-r--r--doc/examples/kea6/leases-expiration.json2
-rw-r--r--doc/examples/kea6/multiple-options.json2
-rw-r--r--doc/examples/kea6/mysql-reservations.json2
-rw-r--r--doc/examples/kea6/pgsql-reservations.json2
-rw-r--r--doc/examples/kea6/reservations.json2
-rw-r--r--doc/examples/kea6/several-subnets.json2
-rw-r--r--doc/examples/kea6/simple.json2
-rw-r--r--doc/examples/kea6/tee-times.json2
-rw-r--r--doc/examples/kea6/with-ddns.json2
17 files changed, 30 insertions, 218 deletions
diff --git a/doc/examples/kea6/advanced.json b/doc/examples/kea6/advanced.json
index c8b48c1b31..3ea1c613ad 100644
--- a/doc/examples/kea6/advanced.json
+++ b/doc/examples/kea6/advanced.json
@@ -25,7 +25,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
- // PostgreSQL, Cassandra, and the in-memory database, Memfile.
+ // PostgreSQL and the in-memory database, Memfile.
// We will use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/all-keys-netconf.json b/doc/examples/kea6/all-keys-netconf.json
index f55512cbce..4eb5d55e20 100644
--- a/doc/examples/kea6/all-keys-netconf.json
+++ b/doc/examples/kea6/all-keys-netconf.json
@@ -269,7 +269,7 @@
// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "mysql",
// User name to be used to access the database.
@@ -291,41 +291,25 @@
// Port on which the database is available.
"port": 5432,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "postgresql",
// User name to be used to access the database.
"user": "kea"
},
{
- // Name of the database to connect to.
- "keyspace": "kea",
-
- // Host on which the database resides.
- "contact-points": "127.0.0.1",
-
// Database password.
"password": "kea",
// Port on which the database is available.
"port": 9042,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
- "type": "cql",
+ // Type of the database, e.g. "mysql", "postgresql".
+ "type": "mysql",
// User name to be used to access the database.
"user": "kea",
- // Consistency level for all queries.
- // Supported values: any, one, two, three, quorum, all,
- // local-quorum, each-quorum, serial, local-serial, local-one.
- "consistency": "quorum",
-
- // Serial consistency level for all queries.
- // Supported values: any, one, two, three, quorum, all,
- // local-quorum, each-quorum, serial, local-serial, local-one.
- "serial-consistency": "serial",
-
// Connection reconnect wait time.
// This parameter governs how long Kea waits before attempting
// to reconnect. Expressed in milliseconds. The default is 2000 [ms]
@@ -341,16 +325,7 @@
"on-fail": "stop-retry-exit",
// Connection connect timeout.
- "connect-timeout": 100,
-
- // Connection request timeout.
- "request-timeout": 100,
-
- // Connection tcp keepalive.
- "tcp-keepalive": 100,
-
- // Connection tcp nodelay.
- "tcp-nodelay": true
+ "connect-timeout": 100
}
],
@@ -425,8 +400,8 @@
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql",
- // "postgresql" or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql", or
+ // "postgresql".
"type": "memfile"
},
@@ -1011,7 +986,7 @@
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "mysql"
}
],
diff --git a/doc/examples/kea6/all-keys.json b/doc/examples/kea6/all-keys.json
index f05126e346..09b750af9c 100644
--- a/doc/examples/kea6/all-keys.json
+++ b/doc/examples/kea6/all-keys.json
@@ -269,7 +269,7 @@
// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "mysql",
// User name to be used to access the database.
@@ -305,41 +305,25 @@
// Port on which the database is available.
"port": 5432,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "postgresql",
// User name to be used to access the database.
"user": "kea"
},
{
- // Name of the database to connect to.
- "keyspace": "kea",
-
- // Host on which the database resides.
- "contact-points": "127.0.0.1",
-
// Database password.
"password": "kea",
// Port on which the database is available.
"port": 9042,
- // Type of the database, e.g. "mysql", "postgresql", "cql".
- "type": "cql",
+ // Type of the database, e.g. "mysql", "postgresql".
+ "type": "mysql",
// User name to be used to access the database.
"user": "kea",
- // Consistency level for all queries.
- // Supported values: any, one, two, three, quorum, all,
- // local-quorum, each-quorum, serial, local-serial, local-one.
- "consistency": "quorum",
-
- // Serial consistency level for all queries.
- // Supported values: any, one, two, three, quorum, all,
- // local-quorum, each-quorum, serial, local-serial, local-one.
- "serial-consistency": "serial",
-
// Connection reconnect wait time.
// This parameter governs how long Kea waits before attempting
// to reconnect. Expressed in milliseconds. The default is 2000 [ms]
@@ -355,16 +339,7 @@
"on-fail": "stop-retry-exit",
// Connection connect timeout.
- "connect-timeout": 100,
-
- // Connection request timeout.
- "request-timeout": 100,
-
- // Connection tcp keepalive.
- "tcp-keepalive": 100,
-
- // Connection tcp nodelay.
- "tcp-nodelay": true
+ "connect-timeout": 100
}
],
@@ -454,8 +429,8 @@
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql",
- // "postgresql" or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql" or
+ // "postgresql".
"type": "memfile"
},
@@ -1040,7 +1015,7 @@
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "postgresql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql".
"type": "mysql"
}
],
diff --git a/doc/examples/kea6/backends.json b/doc/examples/kea6/backends.json
index 9a3b5224df..148a5834a4 100644
--- a/doc/examples/kea6/backends.json
+++ b/doc/examples/kea6/backends.json
@@ -4,7 +4,6 @@
// - memfile
// - MySQL
// - PostgreSQL
-// - CQL (Cassandra) backend
{ "Dhcp6":
@@ -66,21 +65,6 @@
// "connect-timeout": 3
// },
-// 4. CQL (Cassandra) backend. Leases will be stored in Cassandra
-// database. Make sure it is up, running and properly initialized. See
-// kea-admin documentation for details on how to initialize the
-// database. The only strictly required parameters are type, keyspace
-// and contact-points. At least one contact point must be specified, but
-// more than one is required for redundancy. Make sure you specify the
-// contact points without spaces. Kea must be compiled with --with-cql
-// option to use this backend.
-// "lease-database": {
-// "type": "cql",
-// "keyspace": "keatest",
-// "contact-points": "192.0.2.1,192.0.2.2,192.0.2.3",
-// "port": 9042
-// },
-
// Addresses will be assigned with preferred and valid lifetimes
// being 3000 and 4000, respectively. Client is told to start
// renewing after 1000 seconds. If the server does not respond
diff --git a/doc/examples/kea6/cassandra.json b/doc/examples/kea6/cassandra.json
deleted file mode 100644
index 071b16583f..0000000000
--- a/doc/examples/kea6/cassandra.json
+++ /dev/null
@@ -1,122 +0,0 @@
-// This is an example configuration file for the DHCPv6 server in Kea.
-// It is a basic scenario with one IPv6 subnet configured. It demonstrates
-// how to configure Kea to use CQL (Cassandra) backend.
-
-{ "Dhcp6":
-
-{
-// Kea is told to listen on ethX interface only.
- "interfaces-config": {
- "interfaces": [ "ethX" ]
- },
-
-// CQL (Cassandra) backend. Leases will be stored in Cassandra database. Make
-// sure it is up, running and properly initialized. See kea-admin documentation
-// for details on how to initialize the database. The only strictly required
-// parameters are type, keyspace and contact-points. At least one contact point
-// must be specified, but more than one is required for redundancy. Make sure
-// you specify the contact points without spaces. Kea must be compiled with
-// --with-cql option to use this backend.
- "lease-database": {
- "type": "cql",
- "keyspace": "keatest",
- "contact-points": "192.0.2.1,192.0.2.2,192.0.2.3",
- "port": 9042,
-
- // Cassandra supports many additonal parameters that are typically
- // not needed, but may be used to tweak your deployment.
-
- // This parameter governs how long Kea waits before attempting
- // to reconnect. Expressed in milliseconds. The default is 2000 [ms].
- "reconnect-wait-time": 2000,
-
- // This parameter sets the timeout for connecting to a node. Expressed
- // in milliseconds. The default is 5000 [ms].
- "connect-timeout": 5000,
-
- // This parameter sets the timeout for waiting for a response
- // from a node. Expressed in milliseconds. The default is 12000 [ms].
- "request-timeout": 12000,
-
- // This parameter governs the TCP keep-alive mechanism. Expressed
- // in seconds of delay. The default is disabled. In this example it is
- // set to 20 minutes.
- "tcp-keepalive": 1200,
-
- // This parameter enables/disables Nagle's algorithm on connections.
- // The default is true.
- "tcp-nodelay": true,
-
- // This parameter configures consistency level. The default is "quorum".
- // Supported values:
- // - any
- // - one
- // - two
- // - three
- // - quorum
- // - all
- // - local-quorum
- // - each-quorum
- // - serial
- // - local-serial
- // - local-one
- // See https://docs.datastax.com/en/cassandra/3.0/cassandra/dml/dmlConfigConsistency.html for more details.
- "consistency": "quorum",
-
- // This parameter configures serial consistency level which manages
- // lightweight transaction isolation. The default is "serial".
- // Supported values:
- // - any
- // - one
- // - two
- // - three
- // - quorum
- // - all
- // - local-quorum
- // - each-quorum
- // - serial
- // - local-serial
- // - local-one
- // See https://docs.datastax.com/en/cassandra/3.0/cassandra/dml/dmlConfigSerialConsistency.html for more details.
- "serial-consistency": "serial"
- },
-
-// Addresses will be assigned with preferred and valid lifetimes
-// being 3000 and 4000, respectively. 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).
- "preferred-lifetime": 3000,
- "valid-lifetime": 4000,
- "renew-timer": 1000,
- "rebind-timer": 2000,
-
-// The following list defines subnets. Each subnet consists of at
-// least subnet and pool entries.
- "subnet6": [
- {
- "pools": [ { "pool": "2001:db8:1::/80" } ],
- "subnet": "2001:db8:1::/64",
- "interface": "ethX"
- }
- ],
-
-// The following configures logging. It assumes that messages with at
-// least informational level (info, warn, error and fatal) should be
-// logged to stdout.
- "loggers": [
- {
- "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 5fb0641a51..44e8a9b009 100644
--- a/doc/examples/kea6/duid.json
+++ b/doc/examples/kea6/duid.json
@@ -32,7 +32,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/global-reservations.json b/doc/examples/kea6/global-reservations.json
index 34de838f44..986b4cb5a2 100644
--- a/doc/examples/kea6/global-reservations.json
+++ b/doc/examples/kea6/global-reservations.json
@@ -16,7 +16,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/ha-hot-standby.json b/doc/examples/kea6/ha-hot-standby.json
index a4c0207cf0..9675e6f7d5 100644
--- a/doc/examples/kea6/ha-hot-standby.json
+++ b/doc/examples/kea6/ha-hot-standby.json
@@ -26,8 +26,8 @@
// Use Memfile lease database backend to store leases in a CSV file.
// Depending on how Kea was compiled, it may also support SQL databases
- // (MySQL and/or PostgreSQL) and even Cassandra. Those database backends
- // require more parameters, like name, host and possibly user and password.
+ // (MySQL and/or PostgreSQL). Those database backends require more
+ // parameters, like name, host and possibly user and password.
// There are dedicated examples for each backend. See Section 7.2.2 "Lease
// Storage" for details.
"lease-database": {
diff --git a/doc/examples/kea6/leases-expiration.json b/doc/examples/kea6/leases-expiration.json
index 5ac98ed5d0..12f754e558 100644
--- a/doc/examples/kea6/leases-expiration.json
+++ b/doc/examples/kea6/leases-expiration.json
@@ -12,7 +12,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
// Note, we're setting the maximum number of row read errors to 100,
// (defaults to 0, meaning unlimited).
diff --git a/doc/examples/kea6/multiple-options.json b/doc/examples/kea6/multiple-options.json
index a8d42eaef6..0abeba0227 100644
--- a/doc/examples/kea6/multiple-options.json
+++ b/doc/examples/kea6/multiple-options.json
@@ -11,7 +11,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile"
diff --git a/doc/examples/kea6/mysql-reservations.json b/doc/examples/kea6/mysql-reservations.json
index f8decf2711..1b4a9d8752 100644
--- a/doc/examples/kea6/mysql-reservations.json
+++ b/doc/examples/kea6/mysql-reservations.json
@@ -12,7 +12,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/pgsql-reservations.json b/doc/examples/kea6/pgsql-reservations.json
index 0c611469a0..4656541d42 100644
--- a/doc/examples/kea6/pgsql-reservations.json
+++ b/doc/examples/kea6/pgsql-reservations.json
@@ -12,7 +12,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile"
diff --git a/doc/examples/kea6/reservations.json b/doc/examples/kea6/reservations.json
index 96f28b8b19..2460deb1a1 100644
--- a/doc/examples/kea6/reservations.json
+++ b/doc/examples/kea6/reservations.json
@@ -14,7 +14,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/several-subnets.json b/doc/examples/kea6/several-subnets.json
index 226875997f..b3f0b1ead5 100644
--- a/doc/examples/kea6/several-subnets.json
+++ b/doc/examples/kea6/several-subnets.json
@@ -12,7 +12,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile"
diff --git a/doc/examples/kea6/simple.json b/doc/examples/kea6/simple.json
index e359df5eb3..8f1b7522ad 100644
--- a/doc/examples/kea6/simple.json
+++ b/doc/examples/kea6/simple.json
@@ -13,7 +13,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",
diff --git a/doc/examples/kea6/tee-times.json b/doc/examples/kea6/tee-times.json
index 6b14649cab..d5f80f4c09 100644
--- a/doc/examples/kea6/tee-times.json
+++ b/doc/examples/kea6/tee-times.json
@@ -12,7 +12,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile"
diff --git a/doc/examples/kea6/with-ddns.json b/doc/examples/kea6/with-ddns.json
index afc823a373..3506483a08 100644
--- a/doc/examples/kea6/with-ddns.json
+++ b/doc/examples/kea6/with-ddns.json
@@ -13,7 +13,7 @@
// We need to specify the database used to store leases. As of
// September 2016, four database backends are supported: MySQL,
-// PostgreSQL, Cassandra, and the in-memory database, Memfile.
+// PostgreSQL and the in-memory database, Memfile.
// We'll use memfile because it doesn't require any prior set up.
"lease-database": {
"type": "memfile",