mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-11 13:56:46 +00:00
[master] Merge branch 'github70' (missing CQL backend features)
- host delete - user-contexts - DHCPv4 fixed fields - also PostgreSQL now stores hwaddr type and hwaddr source # Conflicts: # src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
This commit is contained in:
@@ -35,7 +35,6 @@ CREATE TABLE lease4 (
|
||||
hostname VARCHAR(255) -- The FQDN of the client
|
||||
);
|
||||
|
||||
|
||||
-- Create search indexes for lease4 table
|
||||
-- index by hwaddr and subnet_id
|
||||
CREATE INDEX lease4_by_hwaddr_subnet_id ON lease4 (hwaddr, subnet_id);
|
||||
@@ -62,7 +61,7 @@ CREATE TABLE lease6 (
|
||||
hostname VARCHAR(255) -- The FQDN of the client
|
||||
);
|
||||
|
||||
-- Create search indexes for lease4 table
|
||||
-- Create search indexes for lease6 table
|
||||
-- index by iaid, subnet_id, and duid
|
||||
CREATE INDEX lease6_by_iaid_subnet_id_duid ON lease6 (iaid, subnet_id, duid);
|
||||
|
||||
@@ -352,6 +351,10 @@ CREATE TABLE lease_hwaddr_source (
|
||||
name VARCHAR(40) DEFAULT NULL
|
||||
);
|
||||
|
||||
-- In the event hardware address cannot be determined, we need to satisfy
|
||||
-- foreign key constraint between lease6 and lease_hardware_source.
|
||||
INSERT INTO lease_hwaddr_source VALUES (0, 'HWADDR_SOURCE_UNKNOWN');
|
||||
|
||||
-- Hardware address obtained from raw sockets.
|
||||
INSERT INTO lease_hwaddr_source VALUES (1, 'HWADDR_SOURCE_RAW');
|
||||
|
||||
@@ -375,10 +378,6 @@ INSERT INTO lease_hwaddr_source VALUES (64, 'HWADDR_SOURCE_DOCSIS_CMTS');
|
||||
|
||||
INSERT INTO lease_hwaddr_source VALUES (128, 'HWADDR_SOURCE_DOCSIS_MODEM');
|
||||
|
||||
-- In the event hardware address cannot be determined, we need to satisfy
|
||||
-- foreign key constraint between lease6 and lease_hardware_source.
|
||||
INSERT INTO lease_hwaddr_source VALUES (0, 'HWADDR_SOURCE_UNKNOWN');
|
||||
|
||||
-- Adding ORDER BY clause to sort by lease address.
|
||||
--
|
||||
-- FUNCTION that returns a result set containing the data for lease4 dumps.
|
||||
|
Reference in New Issue
Block a user