On Apr 17, 2016, at 6:10 PM, Laurens Vets <laurens@daemon.be> wrote:
From what I can see in the unlang manual, I have to do: update control { &Pool-Name := "1_pool" }
Yes..
Do I need to do that in mods-enabled/dhcp_sqlippool?
No.
If so, will that mean I will have to write unlang if statements to match a pool to some other attribute (for instance NAS-Port-Id, Called-Station-Id or NAS-Identifier)
Yes...
What I'm thinking is that I have to do the following (in quick pseudocode) somewhere:
update control { if(Called-Station-Id eq 1.1.1.1) { pool-name = "1_pool" } elseif(Called-Station-Id eq 2.2.2.2) { pool-name = "2_pool" } }
I'm struggling with the 'somewhere' part :)
Run the server in debug mode to see how it works. Then, you'll know what file to edit, and where to edit it. Or, read raddb/sites-available/default. There is a LOT of documentation available. Alan DeKok.