Forum Discussion

235's avatar
235
Icon for Nimbostratus rankNimbostratus
Jul 15, 2016

add irules in vs

how to use tmsh command to add a irules and not change existing irules in some vs.not all or someone.

 

1 Reply

  • Unlike many properties where you can use 'add/remove/replace-all-with', this syntax is not available in tmsh for editing the list of irules attached to a virtual server.

    You will need to set the entire list every time

    So if your current server has

    rules {
        rule1
        rule2
    }
    

    and you want to add rule3, you'll need to set all three rules in one command:

    tmsh modify ltm virtual server vs1 rules { rule1 rule2 rule3 }