network-interfaces-scripted: Add static parameter for default gateway
This commit is contained in:
parent
71d8ce6f4b
commit
5042e9d009
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
''}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue