forked from zentralwerk/network
nixos-module/container/bird: fix syntax
This commit is contained in:
parent
e4791d6da1
commit
8b2d329067
|
@ -116,14 +116,14 @@ in
|
||||||
# Enable OSPF only on networks with a secret. Others
|
# Enable OSPF only on networks with a secret. Others
|
||||||
# are treated as a stubnet whose routes to
|
# are treated as a stubnet whose routes to
|
||||||
# advertise.
|
# advertise.
|
||||||
if config.site.net ? net && config.site.net.${net}.ospf.secret != null
|
if config.site.net ? "${net}" && config.site.net.${net}.ospf.secret != null
|
||||||
then ''
|
then ''
|
||||||
interface "${net}" {
|
interface "${net}" {
|
||||||
authentication cryptographic;
|
authentication cryptographic;
|
||||||
password "${config.site.net.${net}.ospf.secret}";
|
password "${config.site.net.${net}.ospf.secret}";
|
||||||
};
|
};
|
||||||
''
|
''
|
||||||
else if config.site.net ? net && config.site.net.${net}.subnet4 != null
|
else if config.site.net ? "${net}" && config.site.net.${net}.subnet4 != null
|
||||||
then ''
|
then ''
|
||||||
# Advertise route of network ${net}
|
# Advertise route of network ${net}
|
||||||
stubnet ${config.site.net.${net}.subnet4} {};
|
stubnet ${config.site.net.${net}.subnet4} {};
|
||||||
|
|
Loading…
Reference in New Issue