Support gateway which is not in subnet CIDR in ha_router
There is case that gateway is not in subnet CIDR.
We can set 2 routes as follows to support this:
ip route add 172.16.0.1/32 dev eth0
ip route add default via 172.16.0.1 dev eth0
Conflicts: neutron/agent/l3/ha_router.py
Closes-bug: #1861674
Change-Id: I69356e926b15de7f1f99540e7cb98671c634e8a9
(cherry picked from commit 554b5c226750ec75e99ebce241df8b7a700ff016)
Reviewed: https:/ /review. opendev. org/757048 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=8d39f02d463 7ca6409b8cfce4f cab8c91267fe19
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 8d39f02d4637ca6 409b8cfce4fcab8 c91267fe19
Author: jufeng <email address hidden>
Date: Mon Feb 3 14:54:12 2020 +0800
Support gateway which is not in subnet CIDR in ha_router
There is case that gateway is not in subnet CIDR.
We can set 2 routes as follows to support this:
ip route add 172.16.0.1/32 dev eth0
ip route add default via 172.16.0.1 dev eth0
Conflicts:
neutron/ agent/l3/ ha_router. py
Closes-bug: #1861674 7f1f99540e7cb98 671c634e8a9 5e99ebce241df8b 7a700ff016)
Change-Id: I69356e926b15de
(cherry picked from commit 554b5c226750ec7