File: switch-value-error2

package info (click to toggle)
freeradius 3.0.12%2Bdfsg-5%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,144 kB
  • ctags: 11,887
  • sloc: ansic: 109,067; sh: 5,176; perl: 2,648; sql: 1,397; python: 1,161; makefile: 374; xml: 62; tcl: 35; sed: 23; ruby: 22
file content (27 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (6)
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
#
#  PRE: switch-value-error
#
#  The same as "switch-value-error", but the attribute
#  is hidden inside of an xlat expansion.  We now turn
#  simple attribute xlats into templates.
#
switch "%{Service-Type}" {	# ERROR
	case "%{expr: 1 + 2}" {
		update reply {
			Filter-Id := "3"
		}
	}

	case Login-User {
		update reply {
			Filter-Id := "Login-User"
		}
	}

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

}