Forum Discussion

Chris_Chaloux_1's avatar
Chris_Chaloux_1
Icon for Nimbostratus rankNimbostratus
Jul 13, 2009

Multiple iRules

Does anyone know of a way of specifying a specific iRule to be disabled w/o having to "none" on the bp command? There are some instances where I need to enable an iRule on a virtual that already has one applied. When I run the bp command and specify "none" it removes both the rule I put up but also the one I had applied that I dont want to be disabled.

 

 

Thanks!!

 

Chris

1 Reply

  • Hi Chris,

    I think you need to specify each iRule you want to leave configured on the virtual server. You could potentially use sed to remove the iRule from the virtual server definition and then pipe it back to bpsh:

     
      b virtual test_vs list 
      
     virtual test_vs { 
        snat automap 
        pool test_http_pool 
        destination 1.1.1.1:80 
        ip protocol 6 
        rules 
           test_1_rule 
           test_2_rule 
           test_3_rule 
        profiles 
           http 
           stream 
           tcp 
     } 
      
      b virtual test_vs list|sed -r 's/test_2_rule//g'|bpsh 
      
      b virtual test_vs list 
     virtual test_vs { 
        snat automap 
        pool test_http_pool 
        destination 1.1.1.1:80 
        ip protocol 6 
        rules 
           test_1_rule 
           test_3_rule 
        profiles 
           http 
           stream 
           tcp 
     } 
      
      b save 
     

    Aaron