Merge pull request #107127 from qzle/nixos-container-extraVeth-fix
Fix: nixos-container does not always apply extraVeth ips
This commit is contained in:
commit
86102ebe5e
@ -56,10 +56,10 @@ let
|
|||||||
ip -6 route add $HOST_ADDRESS6 dev eth0
|
ip -6 route add $HOST_ADDRESS6 dev eth0
|
||||||
ip -6 route add default via $HOST_ADDRESS6
|
ip -6 route add default via $HOST_ADDRESS6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
|
||||||
|
|
||||||
# Start the regular stage 1 script.
|
# Start the regular stage 1 script.
|
||||||
exec "$1"
|
exec "$1"
|
||||||
''
|
''
|
||||||
@ -223,8 +223,8 @@ let
|
|||||||
${ipcall cfg "ip route" "$LOCAL_ADDRESS" "localAddress"}
|
${ipcall cfg "ip route" "$LOCAL_ADDRESS" "localAddress"}
|
||||||
${ipcall cfg "ip -6 route" "$LOCAL_ADDRESS6" "localAddress6"}
|
${ipcall cfg "ip -6 route" "$LOCAL_ADDRESS6" "localAddress6"}
|
||||||
fi
|
fi
|
||||||
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
|
|
||||||
fi
|
fi
|
||||||
|
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user