summaryrefslogtreecommitdiffstats
path: root/nixos/modules/tasks/network-interfaces-scripted.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2018-05-22 03:15:22 +0200
committerRobin Gloster <mail@glob.in>2018-05-22 14:30:53 +0200
commita32b6d5c9a5c6aaa6bf05939043f2a771b43e763 (patch)
tree1df928bff684b2ff9bf1c1b9952decb2535799cf /nixos/modules/tasks/network-interfaces-scripted.nix
parent852fa6b86fbe9e2ac6434b6b8c0111d4bd9dfad3 (diff)
networking.routes: static routes are proto static
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces-scripted.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix
index e754a1e8718d..c4a2bd1f75fd 100644
--- a/nixos/modules/tasks/network-interfaces-scripted.nix
+++ b/nixos/modules/tasks/network-interfaces-scripted.nix
@@ -209,7 +209,7 @@ let
''
echo "${cidr}" >> $state
echo -n "adding route ${cidr}... "
- if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" 2>&1); then
+ if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" proto static 2>&1); then
echo "done"
elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
echo "'ip route add "${cidr}" ${options} ${via} dev "${i.name}"' failed: $out"