This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ExternalMirrors
/
network-formula
mirror of
https://github.com/bechtoldt/saltstack-network-formula
Watch
1
Star
0
Fork
1
Code
Issues
0
Releases
1
Wiki
Activity
Browse Source
routes: pass gateway param only if defined , it fix interface routes without defined gateway
pull/11/head
Krzysztof Pawłowski
9 years ago
parent
a78bcfdd6e
commit
099949e0a7
1 changed files
with
2 additions
and
0 deletions
Split View
Show Diff Stats
+2
-0
network/routes.sls
+ 2
- 0
network/routes.sls
View File
@@ -16,6 +16,8 @@ routes_{{ v.name|default(k) }}:
- name: {{ net.name }}
ipaddr: {{ net.ipaddr }}
netmask: {{ net.netmask }}
{% if net.gateway is defined %}
gateway: {{ net.gateway }}
{% endif %}
{% endfor %}
{% endfor %}
Write
Preview
Loading…
Cancel
Save