unlang substring with nas-port-id

Łukasz Kopiszka lukasz at alfa-system.pl
Wed Mar 20 10:57:17 CET 2013


Hi,

I'm receiving from SE100:
NAS-Port-Id = "2/2 vlan-id 1001 clips 132019"

How to extract number 1001 which will be used in code:

switch "extracted vlan-id" {
         case 1000 {
                 ...
     }
         case 1001 {
                 ...
     }
         case 1002 {
                 ...
     }
...
}

-- 
Pozdrawiam,
Łukasz Kopiszka
www.alfa-system.pl



More information about the Freeradius-Users mailing list