Skip to content

Commit 23f7d80

Browse files
author
Razvan Becheriu
committed
[#2959] removed deprecated parameter reservation-mode
1 parent 47d6f71 commit 23f7d80

35 files changed

+118
-682
lines changed

doc/examples/kea4/all-keys-netconf.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -801,13 +801,6 @@
801801
// lease is returned as it was "cached".
802802
"cache-max-age": 1000,
803803

804-
// Enumeration specifying the server's mode of operation when it
805-
// fetches host reservations.
806-
// "reservation-mode": "all",
807-
// It is replaced by the "reservations-global",
808-
// "reservations-in-subnet", and "reservations-out-of-pool"
809-
// parameters.
810-
811804
// Specify whether the server should look up global reservations.
812805
"reservations-global": false,
813806

@@ -1001,13 +994,6 @@
1001994
// Subnet-level value of the renew timer.
1002995
"renew-timer": 30,
1003996

1004-
// Enumeration specifying the server's mode of operation when it
1005-
// fetches host reservations.
1006-
// "reservation-mode": "all",
1007-
// It is replaced by the "reservations-global",
1008-
// "reservations-in-subnet", and
1009-
// "reservations-out-of-pool" parameters.
1010-
1011997
// Specify whether the server should look up global reservations.
1012998
"reservations-global": false,
1013999

@@ -1144,11 +1130,6 @@
11441130
"capacity": 64
11451131
},
11461132

1147-
// Fetches host reservations.
1148-
// "reservation-mode": "all",
1149-
// It is replaced by the "reservations-global",
1150-
// "reservations-in-subnet", and "reservations-out-of-pool" parameters.
1151-
11521133
// Specify whether the server should look up global reservations.
11531134
"reservations-global": false,
11541135

doc/examples/kea4/all-keys.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -828,13 +828,6 @@
828828
// lease is returned as it was "cached".
829829
"cache-max-age": 1000,
830830

831-
// Enumeration specifying the server's mode of operation when it
832-
// fetches host reservations.
833-
// "reservation-mode": "all",
834-
// It is replaced by the "reservations-global",
835-
// "reservations-in-subnet", and "reservations-out-of-pool"
836-
// parameters.
837-
838831
// Specify whether the server should look up global reservations.
839832
"reservations-global": false,
840833

@@ -1033,13 +1026,6 @@
10331026
// Subnet-level value of the renew timer.
10341027
"renew-timer": 30,
10351028

1036-
// Enumeration specifying the server's mode of operation when it
1037-
// fetches host reservations.
1038-
// "reservation-mode": "all",
1039-
// It is replaced by the "reservations-global",
1040-
// "reservations-in-subnet", and
1041-
// "reservations-out-of-pool" parameters.
1042-
10431029
// Specify whether the server should look up global reservations.
10441030
"reservations-global": false,
10451031

@@ -1180,11 +1166,6 @@
11801166
"capacity": 64
11811167
},
11821168

1183-
// Fetches host reservations.
1184-
// "reservation-mode": "all",
1185-
// It is replaced by the "reservations-global",
1186-
// "reservations-in-subnet", and "reservations-out-of-pool" parameters.
1187-
11881169
// Specify whether the server should look up global reservations.
11891170
"reservations-global": false,
11901171

doc/examples/kea4/global-reservations.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151

5252
// This directive tells Kea that reservations are global. Note that this
5353
// can also be specified at shared network and/or subnet level.
54-
// "reservation-mode": "global",
55-
// It is replaced by the "reservations-global", "reservations-in-subnet", and
56-
// "reservations-out-of-pool" parameters.
5754

5855
// Specify whether the server should look up global reservations.
5956
"reservations-global": true,

doc/examples/kea4/reservations.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@
4848
// to the dynamic pool. Kea is able to handle this case, but it is not
4949
// recommended from a performance perspective, as Kea would not only need to
5050
// check if a given address is free, but also whether it is reserved.
51-
// To avoid this check, one can change reservation-mode to out-of-pool, rather
52-
// than 'all'. If a subnet does not have reservations at all, the reservation
53-
// lookup can be skipped altogether (reservation-mode is set to 'disabled').
54-
// The reservation-mode has been replaced by reservations-global,
55-
// reservations-in-subnet and reservations-out-of-pool.
51+
// To avoid this check, one can set "reservations-out-of-pool", beside
52+
// the "reservations-in-subnet". If a subnet does not have reservations at all,
53+
// the reservation lookup can be skipped altogether by disabling
54+
// "reservations-in-subnet".
5655

5756
// Note that the second reservation is for an address which is within the
5857
// range of the pool of the dynamically allocated address. The server will
@@ -66,12 +65,9 @@
6665
"interface": "eth0",
6766
// This directive tells Kea that reservations may be made both in-pool
6867
// and out-of-pool. For improved performance, you may move all reservations
69-
// out of the dynamic pool and change reservation-mode to "out-of-pool".
68+
// out of the dynamic pool and set "reservations-out-of-pool".
7069
// Kea will then be able to skip querying for host reservations when
7170
// assigning leases from dynamic pool.
72-
// "reservation-mode": "all",
73-
// It is replaced by the "reservations-global", "reservations-in-subnet"
74-
// and "reservations-out-of-pool" parameters.
7571

7672
// Specify whether the server should look up global reservations.
7773
"reservations-global": false,

doc/examples/kea4/shared-network.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@
6565
// Timer values can be overridden here.
6666
"renew-timer": 100,
6767

68-
// "reservation-mode": "all",
69-
// It is replaced by the "reservations-global",
70-
// "reservations-in-subnet", and "reservations-out-of-pool"
71-
// parameters.
72-
7368
// Specify whether the server should look up global reservations.
7469
"reservations-global": false,
7570

@@ -102,10 +97,6 @@
10297
"ip-addresses": [ "0.0.0.0" ]
10398
},
10499
"renew-timer": 10,
105-
// "reservation-mode": "all",
106-
// It is replaced by the "reservations-global",
107-
// "reservations-in-subnet", and "reservations-out-of-pool"
108-
// parameters.
109100
// Specify whether the server should look up global reservations.
110101
"reservations-global": false,
111102
// Specify whether the server should look up in-subnet reservations.
@@ -127,10 +118,6 @@
127118
"pools": [ ],
128119
"rebind-timer": 20,
129120
"renew-timer": 10,
130-
// "reservation-mode": "all",
131-
// It is replaced by the "reservations-global",
132-
// "reservations-in-subnet", and "reservations-out-of-pool"
133-
// parameters.
134121
// Specify whether the server should look up global reservations.
135122
"reservations-global": false,
136123
// Specify whether the server should look up in-subnet reservations.

doc/examples/kea6/all-keys-netconf.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -751,13 +751,6 @@
751751
// lease is returned as it was "cached".
752752
"cache-max-age": 1000,
753753

754-
// Enumeration specifying the server's mode of operation when it
755-
// fetches host reservations.
756-
// "reservation-mode": "all",
757-
// It is replaced by the "reservations-global",
758-
// "reservations-in-subnet", and "reservations-out-of-pool"
759-
// parameters.
760-
761754
// Specify whether the server should look up global reservations.
762755
"reservations-global": false,
763756

@@ -975,13 +968,6 @@
975968
// Subnet-level renew timer.
976969
"renew-timer": 30,
977970

978-
// Enumeration specifying the server's mode of operation when it
979-
// fetches host reservations.
980-
// "reservation-mode": "all",
981-
// It is replaced by the "reservations-global",
982-
// "reservations-in-subnet", and
983-
// "reservations-out-of-pool" parameters.
984-
985971
// Specify whether the server should look up global reservations.
986972
"reservations-global": false,
987973

@@ -1115,11 +1101,6 @@
11151101
"capacity": 64
11161102
},
11171103

1118-
// Fetches host reservations.
1119-
// "reservation-mode": "all",
1120-
// It is replaced by the "reservations-global",
1121-
// "reservations-in-subnet", and "reservations-out-of-pool" parameters.
1122-
11231104
// Specify whether the server should look up global reservations.
11241105
"reservations-global": false,
11251106

doc/examples/kea6/all-keys.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,6 @@
778778
// lease is returned as it was "cached".
779779
"cache-max-age": 1000,
780780

781-
// Enumeration specifying the server's mode of operation when it
782-
// fetches host reservations.
783-
// "reservation-mode": "all",
784-
// It is replaced by the "reservations-global",
785-
// "reservations-in-subnet", and "reservations-out-of-pool"
786-
// parameters.
787-
788781
// Specify whether the server should look up global reservations.
789782
"reservations-global": false,
790783

@@ -1007,13 +1000,6 @@
10071000
// Subnet-level renew timer.
10081001
"renew-timer": 30,
10091002

1010-
// Enumeration specifying the server's mode of operation when it
1011-
// fetches host reservations.
1012-
// "reservation-mode": "all",
1013-
// It is replaced by the "reservations-global",
1014-
// "reservations-in-subnet", and
1015-
// "reservations-out-of-pool" parameters.
1016-
10171003
// Specify whether the server should look up global reservations.
10181004
"reservations-global": false,
10191005

@@ -1147,11 +1133,6 @@
11471133
"capacity": 64
11481134
},
11491135

1150-
// Fetches host reservations.
1151-
// "reservation-mode": "all",
1152-
// It is replaced by the "reservations-global",
1153-
// "reservations-in-subnet", and "reservations-out-of-pool" parameters.
1154-
11551136
// Specify whether the server should look up global reservations.
11561137
"reservations-global": false,
11571138

doc/examples/kea6/global-reservations.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040

4141
// This directive tells Kea that reservations are global. Note that this
4242
// can also be specified at shared network and/or subnet level.
43-
// "reservation-mode": "global",
44-
// It is replaced by the "reservations-global", "reservations-in-subnet", and
45-
// "reservations-out-of-pool" parameters.
4643

4744
// Specify whether the server should look up global reservations.
4845
"reservations-global": true,

doc/examples/kea6/reservations.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,9 @@
4747

4848
// This directive tells Kea that reservations may be made both in-pool
4949
// and out-of-pool. For improved performance, you may move all reservations
50-
// out of the dynamic pool and change reservation-mode to "out-of-pool".
50+
// out of the dynamic pool and set "reservations-out-of-pool".
5151
// Kea will then be able to skip querying for host reservations when
5252
// assigning leases from dynamic pool.
53-
// "reservation-mode": "all",
54-
// It is replaced by the "reservations-global", "reservations-in-subnet"
55-
// and "reservations-out-of-pool" parameters.
5653

5754
// Specify whether the server should look up global reservations.
5855
"reservations-global": false,

doc/examples/kea6/shared-network.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@
7171
},
7272
"renew-timer": 100,
7373

74-
// "reservation-mode": "all",
75-
// It is replaced by the "reservations-global",
76-
// "reservations-in-subnet", and "reservations-out-of-pool"
77-
// parameters.
78-
7974
// Specify whether the server should look up global reservations.
8075
"reservations-global": false,
8176

@@ -102,10 +97,6 @@
10297
"ip-addresses": [ "2001:db8:1::123" ]
10398
},
10499
"renew-timer": 10,
105-
// "reservation-mode": "all",
106-
// It is replaced by the "reservations-global",
107-
// "reservations-in-subnet", and "reservations-out-of-pool"
108-
// parameters.
109100
// Specify whether the server should look up global reservations.
110101
"reservations-global": false,
111102
// Specify whether the server should look up in-subnet reservations.
@@ -130,10 +121,6 @@
130121
"ip-addresses": [ "3000::1" ]
131122
},
132123
"renew-timer": 10,
133-
// "reservation-mode": "all",
134-
// It is replaced by the "reservations-global",
135-
// "reservations-in-subnet", and "reservations-out-of-pool"
136-
// parameters.
137124
// Specify whether the server should look up global reservations.
138125
"reservations-global": false,
139126
// Specify whether the server should look up in-subnet reservations.

0 commit comments

Comments
 (0)