Forum Discussion

RJ_77679's avatar
RJ_77679
Icon for Nimbostratus rankNimbostratus
Jun 26, 2012

Route to pool in another Route Domain

Hi all,

 

 

I'm new to F5 and trying to create an iRule that will route to a pool which resides in another Route Domain. WIll I have issues in doing this? Here is the iRule I'm starting with:

 

 

when HTTP_REQUEST {

 

switch -glob [HTTP::path] {

 

/arcgis/rest/services/Aerials2008/ImageServer* { pool ext_pool }

 

 

default { pool int_pool }

 

}

 

 

 

 

Thanks,

 

 

RJS

 

 

 

 

 

 

 

10 Replies

  • I'm receiving this error when trying to apply the iRule. Do I need to specifiy the Rote Domain?

     

     

     

     

    01070151:3: Rule [/Common/egistest_test] error: Unable to find pool (egistest_ext_pool) referenced at line 3: [pool egistest_ext_pool]01070151:3: Rule [/Common/egistest_test] error: Unable to find pool (egistest_ext_pool) referenced at line 3: [pool egistest_ext_pool]
  • Hi RJ,

     

     

    Seems you have the wrong pool name in the irule or you haven't created the pool.

     

     

    Regards,

     

    Pandiarajan .K
  • I've verified it's correct. It is in a different route domain which I think is where the issue is.
  • this is mine.

    root@ve1110(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.19.252:80
        ip-protocol tcp
        mask 255.255.255.255
        profiles {
            http { }
            tcp { }
        }
        rules {
            myrule
        }
        snat automap
        vlans-disabled
    }
    root@ve1110(Active)(/Common)(tmos) list ltm rule myrule
    ltm rule myrule {
        when HTTP_REQUEST {
       pool foo
    }
    }
    root@ve1110(Active)(/Common)(tmos) list ltm pool foo
    ltm pool foo {
        members {
            200.200.200.101%10:80 {
                address 200.200.200.101%10
            }
        }
    }
    root@ve1110(Active)(/Common)(tmos) list net route-domain
    net route-domain 0 {
        description "Default Route Domain"
        id 0
        vlans {
            external
        }
    }
    net route-domain 10 {
        id 10
        parent 0
        vlans {
            internal
        }
    }
    
    [root@ve1110:Active] config  curl -I http://172.28.19.252/
    HTTP/1.1 200 OK
    Date: Wed, 27 Jun 2012 18:04:27 GMT
    Server: Apache/2.2.3 (CentOS)
    Last-Modified: Fri, 11 Nov 2011 14:48:14 GMT
    ETag: "4183e4-3e-9c564780"
    Accept-Ranges: bytes
    Content-Length: 62
    Content-Type: text/html; charset=UTF-8
    
    
  • Is the pool in a different Route Domain, or Admin Partition? I would guess that the pool exists in a different Admin Partition and that is why you are getting the error. You cannot reference a pool that is created in a different Admin Partition from the Common partition. What is your goal? To route traffic from one Route Domain to another, without leaving the appliance?
  • as Eric said, can you check if object is in different partition?
  • Only have one partition - Common.would you mind listing configuration such as route domain, pool, irule here?