Anthony_Epron
Dec 08, 2016Nimbostratus
How use Datagroup in iRule ?
Hello Guys,
I need to write an iRule for extract the radius attribute 81 and check if this attribute is present on my datagroup.
For the moment i write this iRule :
when CLIENT_DATA {
log "Irule OK"
set attr81 [RADIUS::avp 81]
log "The vlan is $attr81"
if { [class match [RADIUS::avp 81] contains vlancheck] } {
log "Vlan OK"
} else {
log "Vlan not OK"
}
}
And I create a datagroup with the String vlan=IDVlan.
But my iRule don't match the string on the Datagroup.
Could you please help me ? 🙂
Thanks.