network-interfaces-scripted: Add static parameter for default gateway

This commit is contained in:
Markus Mueller 2017-04-16 20:58:40 +00:00 committed by Robin Gloster
parent 71d8ce6f4b
commit 5042e9d009
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -120,7 +120,7 @@ let
optionalString (cfg.defaultGatewayWindowSize != null)
"window ${toString cfg.defaultGatewayWindowSize}"} ${
optionalString (cfg.defaultGateway.interface != null)
"dev ${cfg.defaultGateway.interface}"} || true
"dev ${cfg.defaultGateway.interface}"} proto static || true
''}
${optionalString (cfg.defaultGateway6 != null && cfg.defaultGateway6.address != "") ''
# FIXME: get rid of "|| true" (necessary to make it idempotent).
@ -130,7 +130,7 @@ let
optionalString (cfg.defaultGatewayWindowSize != null)
"window ${toString cfg.defaultGatewayWindowSize}"} ${
optionalString (cfg.defaultGateway6.interface != null)
"dev ${cfg.defaultGateway6.interface}"} || true
"dev ${cfg.defaultGateway6.interface}"} proto static || true
''}
'';
};