[RADIATOR] Framed-Route maniuplation

Ian Mordey ian.mordey at griffin.com
Tue Oct 26 08:05:18 CDT 2010


Hi there

I'm trying to replicate a response from one radiator server to another
with a different SQL backend and schema. I'm struggling to get the
Framed-Route attribute formatted properly. 

 

Our client expects a framed route including the gateway like this:

                Framed-Route = "1.2.3.4/29 1.2.3.5"

 

The new server sends a framed route

                Framed-Route = "1.2.3.4/29"

 

So I need to rewrite the Framed-Route with "1.2.3.4/29" followed by the
Framed-IP-Address.  This is also conditional because the Framed-Route in
the reply attributes doesn't always exist.  

 

The problem I'm struggling with is that the reply attributes on the SQL
backend are all in one column ReplyAttr for example:

 

mysql> select ReplyAttr from UserProfiles where ReplyAttr like '%Route%'
limit 1;

+-----------------------------------------------------------------------
-------------------------------------------------+

| ReplyAttr
|

+-----------------------------------------------------------------------
-------------------------------------------------+

| Service-Type = Framed-User, Framed-Protocol = PPP, Framed-IP-Address =
1.2.3.5, Framed-Route = 1.2.3.4/29  |

 

How can I manipulate the Framed-Route attribute when it is all in the
same column? 

 

Cheers

Ian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20101026/dec9a335/attachment.html 


More information about the radiator mailing list