Direktori : /opt/saltstack/salt/lib/python3.10/site-packages/salt/templates/suse_ip/ |
Current File : //opt/saltstack/salt/lib/python3.10/site-packages/salt/templates/suse_ip/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 -%}