multiple route options for IP and IPMultiNICA/B resources
when an IP is up as a resource type IP, IPMultiNICA/B, there are times we want to set multiple static routes to it.
currently there is a RouteOptions(solaris), IPRouteOptions(linux) not sure about other OSs
why would i need this? for example, you have a VIP a service group which is configured in the firewall allowing outgoing connections to other external hosts.
you want make os to use a certain source IP to make connections to these target hosts.
thus you would want multiple route options. not just 1 single static route.
In additions, although the goal is to remove the route before unconfiguring the IP when the IPMultiNICB resource goes offline.
some type of routes are a bit tricky.
for example on solaris, to setup a static route to tell os whenever it tries to make an outgoing connection to $ext_host it should use $ip instead of the default one.
route add -host $ext_host $gateway -netmask 255.255.255.0 -setsrc $ip
to remoev the route, the command becomes
route delete -host $ext_host $gateway -netmask 255.255.255.0
because of the missing "-setsrc $ip" in the remove command, hares -offline fails to remove the static route when offlining the IPMultiNICB resource. This issue would occurs in other OSs as well. maybe have a RemoveRouteOptions argment as well would resolve the issue.