I-Rule to force client to One site

Hi All,

I need assistance on I-Rule. My requirements is

We have two datacenters, and 100 offices accessing the datacenter. Currently we use RR loadbalacing.

My request is we want to force one of the office to Site 1 Datacenter, but we can’t change the load balancing technology to Topology based, we want to stick with RR load balacing.

I know it is feasibale to restrict one patricular office thru their IP address. Can you guys help me to write I-Rule and send me the tips to write.

I just made some IP’s up here, and assumed a lot (this is GTM, right?), but I think the framework of what you want is below.

when DNS_REQUEST {  
    if { [IP::addr [IP::client_addr]/24 equals 192.168.1.0] } {  
      if { [active_members site1_pool > 0 ] } {  
        pool site1_pool  
      } else { pool site2_pool }  
  }

Check the syntax, BTW, I am without a machine right now.