Debian Codegraph @

src/tests/keywords/expand

raw
1 #
2 # PRE: update switch
3 #
4
5 #
6 # This is a virtual attribute.
7 # It is NOT optimized to
8 #
9 # switch &Request-Processing-Stage
10 #
11 # because it doesn't really exist.
12 # The xlat expansion code will take care of
13 # returning the string value of the "attribute"
14 #
15 switch "%{Request-Processing-Stage}" {
16 case authorize {
17 update reply {
18 Filter-Id := "filter"
19 }
20 }
21
22 case authenticate {
23 update reply {
24 Filter-Id := "authenticate"
25 }
26 }
27
28 case bob {
29 update reply {
30 Filter-Id := "bob"
31 }
32 }
33
34 case {
35 update reply {
36 Filter-Id := "default"
37 }
38 }
39 }