golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/templates/suse_ip
⬆️ Go Up
Upload
File/Folder
Size
Actions
ifcfg.jinja
1.44 KB
Del
OK
ifroute.jinja
425 B
Del
OK
network.jinja
2.23 KB
Del
OK
Edit: ifroute.jinja
{%- for route in routes -%} {% if route.name %}# {{route.name}} {%- endif %} {{ route.ipaddr }} {%- if route.gateway %} {{route.gateway}}{% else %} -{% endif %} {%- if route.netmask %} {{route.netmask}}{% else %} -{% endif %} {%- if route.dev %} {{route.dev}}{% else %}{%- if iface and iface != "routes" %} {{iface}}{% else %} -{% endif %}{% endif %} {%- if route.metric %} metric {{route.metric}} {%- endif %} {% endfor -%}
Save