Merge pull request #94 from ifupdown-ng/bugfix/hetzner-ipv6-default-route-is-link-local
static: always associate default routes with $IFACE
This commit is contained in:
commit
cc06712611
2 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ configure_addresses() {
|
|||
configure_gateways() {
|
||||
for i in $(ifquery -p gateway -i $INTERFACES_FILE $IFACE); do
|
||||
addrfam=$(addr_family $i)
|
||||
${MOCK} ip $addrfam route $1 default via $i $VRF_TABLE $METRIC
|
||||
${MOCK} ip $addrfam route $1 default via $i $VRF_TABLE $METRIC dev $IFACE
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ up_body() {
|
|||
atf_check -s exit:0 \
|
||||
-o match:'addr add 203.0.113.2/24 dev eth0' \
|
||||
-o match:'addr add 2001:db8:1000:2::2/64 dev eth0' \
|
||||
-o match:'route add default via 203.0.113.1' \
|
||||
-o match:'route add default via 2001:db8:1000:2::1' \
|
||||
-o match:'route add default via 203.0.113.1 metric 1 dev eth0' \
|
||||
-o match:'route add default via 2001:db8:1000:2::1 metric 1 dev eth0' \
|
||||
${EXECUTOR}
|
||||
}
|
||||
|
||||
|
@ -21,8 +21,8 @@ down_body() {
|
|||
atf_check -s exit:0 \
|
||||
-o match:'addr del 203.0.113.2/24 dev eth0' \
|
||||
-o match:'addr del 2001:db8:1000:2::2/64 dev eth0' \
|
||||
-o match:'route del default via 203.0.113.1' \
|
||||
-o match:'route del default via 2001:db8:1000:2::1' \
|
||||
-o match:'route del default via 203.0.113.1 metric 1 dev eth0' \
|
||||
-o match:'route del default via 2001:db8:1000:2::1 metric 1 dev eth0' \
|
||||
${EXECUTOR}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue