summaryrefslogtreecommitdiff
path: root/keama/tests/hostidentifier4.outL
diff options
context:
space:
mode:
Diffstat (limited to 'keama/tests/hostidentifier4.outL')
-rw-r--r--keama/tests/hostidentifier4.outL78
1 files changed, 78 insertions, 0 deletions
diff --git a/keama/tests/hostidentifier4.outL b/keama/tests/hostidentifier4.outL
new file mode 100644
index 00000000..c56ef414
--- /dev/null
+++ b/keama/tests/hostidentifier4.outL
@@ -0,0 +1,78 @@
+{
+ # host declaration with flexible identifiers config
+ # authoritative is mandatory
+ /// This configuration declares some subnets but has no interfaces-config
+ /// Reference Kea #5256
+ "Dhcp4": {
+ "subnet4": [
+ # subnet4 declaration
+ {
+ "subnet": "10.5.5.0/27",
+ "pools": [
+ {
+ "pool": "10.5.5.5 - 10.5.5.10"
+ }
+ ],
+ "reservations": [
+ # host declarations
+ {
+ "hostname": "test1",
+ "flex-id": "'test1'",
+ "option-data": [
+ {
+ "space": "dhcp4",
+ "name": "domain-search",
+ "code": 119,
+// "original-data": "\"example.com\", \"example.org\"",
+ "data": "example.com, example.org"
+ }
+ ],
+// /// valid-lifetime in unsupported scope
+// "valid-lifetime": 1800,
+ "ip-address": "10.5.5.1"
+// "extra-ip-addresses": [
+// "10.10.10.10"
+// ]
+ },
+ {
+ "hostname": "test2",
+ "hw-address": "00:07:0e:36:48:19",
+ "ip-address": "10.5.5.2"
+ }
+ ]
+ },
+ {
+ "subnet": "10.10.10.0/27",
+ "reservations": [
+// {
+// "hostname": "test3",
+// "hw-address": "fddi 00:07:0e:36:48:19",
+// "ip-address": "10.10.10.1"
+// }
+ ]
+ }
+ ],
+ "option-def": [
+ # option definition
+ {
+ "space": "dhcp4",
+ "name": "my-id",
+ "code": 250,
+ "type": "string"
+ }
+ ],
+ "host-reservation-identifiers": [
+ "flex-id",
+ "hw-address"
+ ],
+ /// The flexible host identifier is a premium feature
+ "hooks-libraries": [
+ {
+ "library": "/path/libdhcp_flex_id.so",
+ "parameters": {
+ "identifier-expression": "option[250].hex"
+ }
+ }
+ ]
+ }
+}