summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2018-09-07 02:23:12 +0300
committerAlexander Shpilkin <ashpilkin@gmail.com>2018-09-07 02:23:12 +0300
commitecf73103abf1897a3121de2c7e87490b437266aa (patch)
treee8f7eb52a41cc4cb28f94c1cd2a1831e8017811e /nixos/modules/system/boot/networkd.nix
parent8fdb6fba30a22c15bd86fb756a49559b9e5d590c (diff)
downloadnixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar.gz
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar.bz2
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar.lz
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar.xz
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.tar.zst
nixlib-ecf73103abf1897a3121de2c7e87490b437266aa.zip
nixos/networkd: do not require gateway for routes
A route via a tunnel interface does not require a gateway to be
specified, so do not check for the Gateway= field on routes at all.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix1
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 5f1de572e5b1..63a6f7fbe099 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -208,7 +208,6 @@ let
       "InitialCongestionWindow" "InitialAdvertisedReceiveWindow" "QuickAck"
       "MTUBytes"
     ])
-    (assertHasField "Gateway")
   ];
 
   checkDhcp = checkUnitConfig "DHCP" [