One of my sentences below does not make sense - what I was trying to say
is that if the gateway has an IP that is not on the same subnet, but is
on the same physical network then this is possible.
On 01/05/2013 07:11 PM, Gary Kotton wrote:
Hi,
One issues that keeps on coming up is should the defined gateway be on
the subnet CIDR. Sadly I do not recall why we did not enforce this. Is
this something we should enforce?
The the default gateway is not on the same subnet but is on the same
physical network. This can be done in conjunction with a proxy ARP.
I have added a patch:-
@@ -1014,6 +1015,10 @@ class
QuantumDbPluginV2(quantum_plugin_base_v2.QuantumPluginBaseV2):
s['gateway_ip'] and
s['gateway_ip'] != attributes.ATTR_NOT_SPECIFIED):
self._validate_ip_version(ip_ver, s['gateway_ip'],
'gateway_ip')
+ if not QuantumDbPluginV2._check_subnet_ip(s['cidr'],
+ s['gateway_ip']):
+ error_message = _("Gateway %s is not valid on
subnet") % s['gateway_ip']
+ raise q_exc.InvalidInput(error_message=error_message)
Prior to pushing this (need to update some tests)
One option that has arisen is to have a flag indication that the
gateway can be on a different network.
What is our stand on this?
Thanks
Gary
--
Mailing list: https://launchpad.net/~quantum-core
Post to : [email protected]
Unsubscribe : https://launchpad.net/~quantum-core
More help : https://help.launchpad.net/ListHelp