Forum Discussion
- hooleylistCirrostratusHi Opher,
- hooleylistCirrostratusHi Opher,
when RULE_INIT { set vsnames [list "/dir1/dir2/myvs" \ "/Common/myvs" \ "myvs" \ ] foreach vsname $vsnames { log local0. "$vsname parsed as [string range $vsname [expr {[string last "/" $vsname]+1}] end]" } } Logs: : /dir1/dir2/myvs parsed as myvs : /Common/myvs parsed as myvs : myvs parsed as myvs
- Opher_Shachar_6Nimbostratus
Thanks Aaron,
As DevCentral notification mail was hitting my "Spam mail", I've not seen your former post (from 02/29/2012) and just now seen your last post. I've actually came up with a terser form:
Don't know how fast (or slow) this is ... but it's more pleasant to the eye of my iRule unversed colleague who also supports the ltm. Regards, Opher.set vname [URI::basename [virtual name]]