Added new RH route template for RHEL6 and newer

This commit is contained in:
Jerzy Drozdz 2015-05-28 00:02:53 +02:00
parent 42d4244e3c
commit 1d30f32540
2 changed files with 12 additions and 8 deletions

14
.gitignore vendored
View file

@ -24,8 +24,9 @@ lib64
pip/
share/
tests/integration/tmp/
tests/cachedir/
tests/unit/templates/roots/
# tox - ignore any tox-created virtualenv dirs
.tox
# setuptools stuff
*.egg-info
@ -36,6 +37,7 @@ coverage.xml
htmlcov/
# IDE files
/.settings
/.project
/.pydevproject
/.idea
@ -50,8 +52,8 @@ htmlcov/
tags
# ignore Vagrant file
**/Vagrantfile
**/.vagrant
Vagrantfile
.vagrant
# Compiled translation files should not be VCS'ed
# locale/zh_CN/LC_MESSAGES/topics/virt/nic.mo
@ -63,10 +65,6 @@ _version.py
# Ignore grains file written out during tests
tests/integration/files/conf/grains
/salt/_syspaths.py
# ignore the local root
/root/**
# Ignore file cache created by jinja tests
tests/unit/templates/roots

View file

@ -0,0 +1,6 @@
{% for route in routes %}{% if route.name %}# {{route.name}}
{{route.ipaddr}}
{%- if route.netmask%}/{{route.netmask}}
{%-endif%}{% if route.gateway %} via {{route.gateway}}
{%endif%}
{% endfor %}