Skip to content

Commit

Permalink
Move routes before IP deletion
Browse files Browse the repository at this point in the history
Deletion of IP is lead to route to disappear
before route is moved.

Change-Id: I019f36f981dddb48cfecb761b2774837fee2bf18
Closes-Bug: #1786839
  • Loading branch information
alexey-mr committed Aug 14, 2018
1 parent 69eea45 commit f9ce35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/vrouter/base/agent-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ function init_vhost0() {
else
echo "INFO: there is no ifcfg-$phys_int and ifcfg-vhost0, so initialize vhost0 manually"
# TODO: switch off dhcp on phys_int
change_route_dev $phys_int vhost0
echo "INFO: Changing physical interface to vhost in ip table"
echo "$addrs" | while IFS= read -r line ; do
if ! is_dpdk ; then
Expand All @@ -553,7 +554,6 @@ function init_vhost0() {
echo "INFO: set mtu"
ip link set dev vhost0 mtu $mtu
fi
change_route_dev $phys_int vhost0
fi
return $ret
}
Expand Down

0 comments on commit f9ce35b

Please sign in to comment.