ltm rule command RADIUS codeΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



RADIUS::code
       RADIUS::code

SYNOPSIS
       RADIUS::code

DESCRIPTION
       This command returns the RADIUS message code

RETURN VALUE
       returns radius message code.

VALID DURING
       CLIENT_ACCEPTED CLIENT_CLOSED CLIENT_DATA SERVER_CLOSED
       SERVER_CONNECTED SERVER_DATA

EXAMPLES
	when CLIENT_ACCEPTED {
	    if { [RADIUS::code] == 4 } {
		set rd 0
		# Extract the APN information from the AVP
		set called_station_id [RADIUS::avp 30 "string"]
		if {$called_station_id == "station1"} {
		    set rd 1
		} elseif {$called_station_id == "station2"} {
		    set rd 2
		}
		# Overwrite the default route domain value with the new value.
		RADIUS::rtdom $rd
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-10.1.0
	   --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)