Delete default route if no gateway in external net
Currently, when the default route is added to device, there is no
way to delete it. Even if user clear the gateway ip of external
net, there is still a default route present in router namespace.
This patch will check the default route in namespace first. If its
gateway ip is not one of the gateway ips in external net. This
default route will be deleted.
Reviewed: https:/ /review. openstack. org/254750 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=f9d0dd39e6b 3b14244e0a185c4 a1f7f35f48f3e7
Committed: https:/
Submitter: Jenkins
Branch: master
commit f9d0dd39e6b3b14 244e0a185c4a1f7 f35f48f3e7
Author: root <email address hidden>
Date: Thu Jul 7 13:32:44 2016 +0000
Delete default route if no gateway in external net
Currently, when the default route is added to device, there is no
way to delete it. Even if user clear the gateway ip of external
net, there is still a default route present in router namespace.
This patch will check the default route in namespace first. If its
gateway ip is not one of the gateway ips in external net. This
default route will be deleted.
Change-Id: If2ab88b392f393 5306d73e3c2de0a 35548567464
Closes-Bug: #1520775