Forum Discussion
Ignat_Vassilev1
Nimbostratus
Sep 01, 2010Need a help migrating iRule from v9.4.8 to v 10.2.0
Hi All
I need a help to migrate iRule from v9.4.8 to 10.2.0. Current iRule is:
when RULE_INIT {
array set ::ARRAY_100 { }
each time Data Group List is updated with new products
this irule must be updated to load the new array
so change this timestamp below to update array in memory...
TIMESTAMP: 25/09/2008:10:00am
foreach item $::hurl_list_100 {
set index [findstr $item "" 0 ":"]
set data [findstr $item ":" 1 "\n"]
set LIST "$index $data"
log $LIST
set ::ARRAY_100($index) $data
}
}
when HTTP_REQUEST {
log "request "
set pool $::ARRAY_100([TCP::local_port])
log "Pool selected from array: $pool" use pool $pool
}
}
And is not initiated after upgrade to v10.2.0. I’m not very good it using array so I tried to change it to but still have a problems
when RULE_INIT {
array set ARRAY_100 { }
each time Data Group List is updated with new products
this irule must be updated to load the new array
so change this timestamp below to update array in memory...
TIMESTAMP: 02/09/2010:10:00am
foreach item hurl_list_100 {
set index [findstr $item "" 0 ":"]
set data [findstr $item ":" 1 "\n"]
set LIST "$index $data"
log $LIST set ARRAY_100($index) $data
}
}
when HTTP_REQUEST {
log "request "
set pool ARRAY_100([TCP::local_port])
log "Pool selected from array: $pool" use pool $pool
}
}
Any help is much appreciated
Thanks
- George_Watkins_Historic F5 AccountHi Ignat,
- Ignat_Vassilev1
Nimbostratus
Thanks George - Ignat_Vassilev1
Nimbostratus
Hi Guys,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects