Hi,
Detach host's interface that holds the Default Gateway would be very
dangerous. there for Engine must start monitor who holds the default
gateway.
It is true, a static IP interface can never add gateway (other than
mgmt) due to CanDoAction but what about DHCP?
If a non-mgmt interface with DHCP got the gateway, Engine must know
about it in order to protect connectivity to the host.
BTW, VDSM send these details in getCapabilities.
Bottom line, we should not limit other interfaces from holding gateway,
not by statically or dhcp configuration. there is a reason why someone
would like to have his gateway on a different interface than the mgmt.
But non-mgmt interface that holds the gateway should be treated as mgmt
interface when trying to remove or edit it.
Thanks