Use netvm_gw_ip instead of netvm_ip

They are usually identical, but this is not guaranteed.
This commit is contained in:
Demi Marie Obenour 2020-11-22 17:52:54 -05:00
parent 9d10ecc08f
commit 0580fe545b
No known key found for this signature in database
GPG Key ID: 28A45C93B0B5B6E0

View File

@ -95,7 +95,7 @@ if test "$command" == online; then
fi fi
netns ip neighbour add to "$appvm_ip" dev "$netns_appvm_if" lladdr "$mac" nud permanent netns ip neighbour add to "$appvm_ip" dev "$netns_appvm_if" lladdr "$mac" nud permanent
netns ip neighbour add to "$netvm_ip" dev "$netns_netvm_if" lladdr "$netvm_mac" nud permanent netns ip neighbour add to "$netvm_gw_ip" dev "$netns_netvm_if" lladdr "$netvm_mac" nud permanent
netns ip addr add "$netvm_ip" dev "$netns_netvm_if" netns ip addr add "$netvm_ip" dev "$netns_netvm_if"
netns ip addr add "$appvm_gw_ip" dev "$netns_appvm_if" netns ip addr add "$appvm_gw_ip" dev "$netns_appvm_if"