Debian Codegraph @

src/tests/keywords/xlat-concat

raw
1 #
2 # PRE: xlat-list
3 #
4 # concat xlat
5 #
6
7 update control {
8 control !* ANY
9 }
10
11 update control {
12 Tmp-IP-Address-0 := 192.0.2.1
13 Tmp-IP-Address-0 += 192.0.2.2
14 }
15
16 update request {
17 Tmp-String-0 := "%{concat:control:[*] ;}"
18 }
19
20 if (Tmp-String-0 != '192.0.2.1;192.0.2.2') {
21 update {
22 reply:Filter-Id += 'fail 1'
23 }
24 }
25
26 update request {
27 Tmp-String-0 := "%{concat:control:[*] X}"
28 }
29
30 if (Tmp-String-0 != '192.0.2.1X192.0.2.2') {
31 update {
32 reply:Filter-Id += 'fail 2'
33 }
34 }
35
36 # Boilerplate junk
37 update {
38 control:Cleartext-Password := 'hello'
39 reply:Filter-Id := 'filter'
40 }