From: Tomek Mrugalski Date: Tue, 1 May 2018 22:40:28 +0000 (+0100) Subject: [5605a] Resolved cherry-pick conflicts X-Git-Tag: trac5536_base~4^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=587c4ca1acb4cc92a9b39151e0260700055a7d95;p=thirdparty%2Fkea.git [5605a] Resolved cherry-pick conflicts --- diff --git a/doc/examples/kea4/hooks-radius.json b/doc/examples/kea4/hooks-radius.json index 9396ae9b2b..12bb8660e4 100644 --- a/doc/examples/kea4/hooks-radius.json +++ b/doc/examples/kea4/hooks-radius.json @@ -11,7 +11,7 @@ // Expensive brands have a host entry, i.e. a reserved address. // // Names -// +// // brouilly (red) // chablis (white) // chambertin (red, expensive) @@ -102,7 +102,7 @@ "id": 14, "subnet": "192.0.2.0/24", "interface": "en0", - "pools": [ + "pools": [ { // Red pool (10-19 are for reservations) "pool": "192.0.2.20-192.0.2.99", @@ -160,42 +160,59 @@ // Configure an access (aka authentication/authorization) server. "access": { - "servers" : [ { - "name": "127.0.0.1", - "port": 1812, - "secret": "testing123" - } ], - "attributes": [ { - "name": "Password", - "data": "French-wine" - } ] - }, - - // Configure an accounting server. + + // This starts the list of access servers + "servers": [ + { + // These are parameters for the first (and only) access server + "name": "127.0.0.1", + "server": "127.0.0.1", + "secret": "secret", + "port": 1812 + } + // Additional access servers could be specified here + ], + + // This define a list of additional attributes Kea will send to each + // access server in Access-Request. + "attributes": [ + { + // This attribute is identified by name (must be present in the + // dictionary) and has static value (i.e. the same value will be + // sent to every server for every packet) + "name": "Password", + "data": "mysecretpassword" + }, + { + // It's also possible to specify an attribute using its type, + // rather than a name. 77 is Connect-Token. The value is specified + // using hex. Again, this is a static value. It will be sent the + // same for every packet and to every server. + "type": 77, + "raw": "65666a6a71" + }, + { + // This example shows how an expression can be used to send dynamic + // value. The expression (see Section 13) may take any value from + // the incoming packet or even its metadata (e.g. the interface + // it was received over from) + "name": "Configuration-Info", + "expr": "pkt.iface" + } + ] // End of attributes + }, "accounting": { - "servers" : [ { - "name": "127.0.0.1", - "port": 1813, - "secret": "testing123" - } ] + "servers": [ { + "name": "127.0.0.1", + "server": "127.0.0.1", + "secret": "secret", + "port": 1813 + } + ] } } - } ] -}, - "Logging": { - "loggers": [ - { - "name": "kea-dhcp4", - "output_options": [ - { - // Change to stderr for debug - "output": "stdout" - } - ], - // Change to DEBUG for debug - "severity": "INFO" - } - ] - } + } + ] +} } diff --git a/premium b/premium index 24cdc41d8d..c07c6a3f9e 160000 --- a/premium +++ b/premium @@ -1 +1 @@ -Subproject commit 24cdc41d8dde0dd60b14d77a5c8a284e0d5ad1e6 +Subproject commit c07c6a3f9ec84b4fdcd55a59e024a88765698aac