cancel
Showing results for 
Search instead for 
Did you mean: 

iRule to extract Radius Vendor Specific Attribute

Daud
Nimbostratus
Nimbostratus

Hello Guys,

 

I am trying to set up an iRule that extract VSA within RADIUS:avp 26 field.

 

Within the avp 26, I have this : VSA: l=33 t=Cisco-AVPair(1): dc-device-name=cisco C9130AXI-A

 

I would like to extract this field "cisco C9130AXI-A" and put in a variable.

 

Would anyone know how to tacke this?

 

Any help would be much appreciated.

 

thanks!

2 REPLIES 2

PeteWhite
F5 Employee
F5 Employee

Take a look at https://clouddocs.f5.com/api/irules/RADIUS__avp.html

an example irule would be:

when CLIENT_DATA { set deviceName [RADIUS::avp 26 'string' index 0 vendor-id 9 vendor-type 128] }

In the case above, I am not sure about the vendor ID and vendor-type but you can find that from tcpdump

Daud
Nimbostratus
Nimbostratus

thank you Pete.. i will try that