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