If statement for two different sql queries

Alan DeKok aland at deployingradius.com
Mon Oct 11 20:17:09 CEST 2021


On Oct 11, 2021, at 2:04 PM, Giedrius Baronas <g.baronas at gmail.com> wrote:
> I will try to describe it more precisely. If radius receives a packet with
> radius attribute "ADSL-Agent-Circuit-Id" then I need to use a sql1
> instance. In the else statement I need it to use sql2 instance.
> How can I set sql instances ?

  Just refer to them by name.

	if (a) {
		sql1
	}
	else {
		sql2
	}

  Alan DeKok.



More information about the Freeradius-Users mailing list