mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-07 17:35:18 +00:00
[3599] Changes after review
- mysql/upgrade_1.0_to_2.0.sh renamed to .in - header added to admin-utils.sh, revoked exec bit - kea-admin clarified (db => lease db) - kea-admin manpage corrected - lease6_hwaddr_source renamed to lease_hwaddr_source - mysql_tests are now working without installation
This commit is contained in:
@@ -99,7 +99,7 @@ INSERT INTO lease6_types VALUES (1, "IA_TA"); # Temporary v6 addresses
|
||||
INSERT INTO lease6_types VALUES (2, "IA_PD"); # Prefix delegations
|
||||
COMMIT;
|
||||
|
||||
# Finally, the version of the schema. We start at 0.1 during development.
|
||||
# Finally, the version of the schema. We start at 1.0 during development.
|
||||
# This table is only modified during schema upgrades. For historical reasons
|
||||
# (related to the names of the columns in the BIND 10 DNS database file), the
|
||||
# first column is called "version" and not "major".
|
||||
@@ -125,7 +125,7 @@ ALTER TABLE lease6
|
||||
# Infiniband) use up to 20.
|
||||
ADD COLUMN hwtype smallint unsigned, # hardware type (16 bits)
|
||||
ADD COLUMN hwaddr_source int unsigned; # Hardware source. See description
|
||||
# of lease6_hwaddr_source below.
|
||||
# of lease_hwaddr_source below.
|
||||
|
||||
# Kea keeps track of the hardware/MAC address source, i.e. how the address
|
||||
# was obtained. Depending on the technique and your network topology, it may
|
||||
@@ -133,31 +133,31 @@ ALTER TABLE lease6
|
||||
# users of the database - if they want to view the lease table and use the
|
||||
# type names, they can join this table with the lease6 table. For details,
|
||||
# see constants defined in src/lib/dhcp/dhcp/pkt.h for detailed explanation.
|
||||
CREATE TABLE lease6_hwaddr_source (
|
||||
CREATE TABLE lease_hwaddr_source (
|
||||
hwaddr_source INT PRIMARY KEY NOT NULL,
|
||||
name VARCHAR(40)
|
||||
);
|
||||
|
||||
# Hardware address obtained from raw sockets
|
||||
INSERT INTO lease6_hwaddr_source VALUES (1, "HWADDR_SOURCE_RAW");
|
||||
INSERT INTO lease_hwaddr_source VALUES (1, "HWADDR_SOURCE_RAW");
|
||||
|
||||
# Hardware address converted from IPv6 link-local address with EUI-64
|
||||
INSERT INTO lease6_hwaddr_source VALUES (2, "HWADDR_SOURCE_IPV6_LINK_LOCAL");
|
||||
INSERT INTO lease_hwaddr_source VALUES (2, "HWADDR_SOURCE_IPV6_LINK_LOCAL");
|
||||
|
||||
# Hardware address extracted from client-id (duid)
|
||||
INSERT INTO lease6_hwaddr_source VALUES (4, "HWADDR_SOURCE_DUID");
|
||||
INSERT INTO lease_hwaddr_source VALUES (4, "HWADDR_SOURCE_DUID");
|
||||
|
||||
# Hardware address extracted from client address relay option (RFC6939)
|
||||
INSERT INTO lease6_hwaddr_source VALUES (8, "HWADDR_SOURCE_CLIENT_ADDR_RELAY_OPTION");
|
||||
INSERT INTO lease_hwaddr_source VALUES (8, "HWADDR_SOURCE_CLIENT_ADDR_RELAY_OPTION");
|
||||
|
||||
# Hardware address extracted from remote-id option (RFC4649)
|
||||
INSERT INTO lease6_hwaddr_source VALUES (16, "HWADDR_SOURCE_REMOTE_ID");
|
||||
INSERT INTO lease_hwaddr_source VALUES (16, "HWADDR_SOURCE_REMOTE_ID");
|
||||
|
||||
# Hardware address extracted from subscriber-id option (RFC4580)
|
||||
INSERT INTO lease6_hwaddr_source VALUES (32, "HWADDR_SOURCE_SUBSCRIBER_ID");
|
||||
INSERT INTO lease_hwaddr_source VALUES (32, "HWADDR_SOURCE_SUBSCRIBER_ID");
|
||||
|
||||
# Hardware address extracted from docsis options
|
||||
INSERT INTO lease6_hwaddr_source VALUES (64, "HWADDR_SOURCE_DOCSIS");
|
||||
INSERT INTO lease_hwaddr_source VALUES (64, "HWADDR_SOURCE_DOCSIS");
|
||||
|
||||
UPDATE schema_version SET version="2", minor="0";
|
||||
|
||||
|
Reference in New Issue
Block a user