summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/expand
blob: ada0ee9675693f14436b2abad92c3dbbb9a84748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
#  PRE: update switch
#

#
#  This is a virtual attribute.
#  It is NOT optimized to
#
#	switch &Request-Processing-Stage
#
#  because it doesn't really exist.
#  The xlat expansion code will take care of
#  returning the string value of the "attribute"
#
switch "%{Request-Processing-Stage}" {
	case authorize {
		update reply {
			Filter-Id := "filter"
		}
	}

	case authenticate {
		update reply {
			Filter-Id := "authenticate"
		}
	}

	case bob {
		update reply {
			Filter-Id := "bob"
		}
	}

	case {
		update reply {
			Filter-Id := "default"
		}
	}
}