Already solved.
```
{% for interface, routes in pillar["routes"].items() %}
network_route-{{ interface }}:
file.managed:
- name: /etc/sysconfig/network-scripts/route-{{ interface }}
- user: root
- group: root
- mode: '0644'
- source: salt://linux/network/files/routes.jinja
- template: jinja
- context:
interface: {{ interface }}
routes: {{ routes | tojson }}
{% endfor %}
```
```
{%- for route in routes -%}
ADDRESS{{ loop.index0 }}={{ route.address }}
NETMASK{{ loop.index0 }}={{ route.netmask }}
GATEWAY{{ loop.index0 }}={{ route.gateway }}
{% endfor %}
```