Debian Codegraph @

raddb/mods-config/kafka/messages-json.conf

raw symbols SCIP
1 #
2 # key: An optional key for the message.
3 #
4 # headers: An optional specification for which attributes should
5 # be set as Kafka headers, with their values encoded as strings.
6 #
7 # message: The message itself.
8 #
9 # reference: Expanded to a configuration item reference that contains the
10 # message.
11 #
12 # To use the json_encode xlats in the schemas examples below, you must first
13 # enable the json module, and may probably want to set
14 # json.encode.output_mode = object_simple
15 #
16
17 authorize {
18
19 key = "%{User-Name}"
20 headers = "&Calling-Station-Id"
21 message = "%{json_encode:&request:[*]}"
22
23 }
24
25 post-auth {
26
27 key = "%{User-Name}"
28 headers = "&reply:Framed-IP-Address"
29 reference = "messages.%{%{reply:Packet-Type}:-default}"
30
31 messages {
32 Access-Accept = "%{json_encode:&User-Name &reply:[*]}"
33 Access-Reject = "%{json_encode:&User-Name &reply:[*]}"
34 Access-Challenge = ""
35
36 default = "Unknown packet type %{Packet-Type}"
37 }
38
39 }
40
41 accounting {
42
43 key = "%{Acct-Unique-Session-Id}"
44 headers = "&Acct-Status-Type &NAS-Identifier"
45
46 reference = "messages.%{%{Acct-Status-Type}:-default}"
47
48 messages {
49 Start = "%{json_encode:&request:[*]}"
50 Stop = "%{json_encode:&request:[*]}"
51 Alive = "%{json_encode:&request:[*]}"
52
53 Accounting-On = "%{json_encode:&request:[*]}"
54 Accounting-Off = "%{json_encode:&request:[*]}"
55
56 default = "Unknown Acct-Status-Type: %{Acct-Status-Type}"
57 }
58
59 }