2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 15:35:17 +00:00

[5132] Reservation examples updated.

This commit is contained in:
Tomek
2017-03-29 10:40:23 -05:00
parent b35c56666d
commit db7d3965ba
2 changed files with 74 additions and 49 deletions

View File

@@ -113,12 +113,25 @@
# set. Three supported fields are next-server, server-hostname and
# boot-file-name
{
"client-id": "01:0a:0b:0c:0d:0e:of",
"client-id": "01:0a:0b:0c:0d:0e:0f",
"ip-address": "192.0.2.205",
"next-server": "192.0.2.1",
"server-hostname": "hal9000",
"boot-file-name": "/dev/null"
},
// This reservation is using flexible identifier. Instead of relying on specific
// field, sysadmin can define an expression similar to what is used for client
// classification, e.g. substring(relay[0].option[17],0,6). Then, based on the
// value of that expression for incoming packet, the reservation is matched.
// Expression can be specified either as hex or plain text using single
// quotes.
// Note: flexible identifier requires flex_id hook library to be loaded to work.
{
"flex-id": "s0mEVaLue",
"ip-address": "192.0.2.206"
}
]
}
]

View File

@@ -108,7 +108,19 @@
"data": "3000:1::234"
} ]
},
// This reservation is using flexible identifier. Instead of relying on specific
// field, sysadmin can define an expression similar to what is used for client
// classification, e.g. substring(relay[0].option[17],0,6). Then, based on the
// value of that expression for incoming packet, the reservation is matched.
// Expression can be specified either as hex or plain text using single
// quotes.
// Note: flexible identifier requires flex_id hook library to be loaded to work.
{
"flex-id": "'somevalue'",
"ip-addresses": [ "2001:db8:1:cafe::2" ]
}
]
}
]