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: If2ab88b392f3935306d73e3c2de0a35548567464
Closes-Bug: #1520775
(cherry picked from commit f9d0dd39e6b3b14244e0a185c4a1f7f35f48f3e7)
Reviewed: https:/ /review. openstack. org/413746 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=a66af420914 aa4c45b7c61daf3 6e36cff28d75b2
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit a66af420914aa4c 45b7c61daf36e36 cff28d75b2
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 244e0a185c4a1f7 f35f48f3e7)
Closes-Bug: #1520775
(cherry picked from commit f9d0dd39e6b3b14