Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for IPv6 address and route configuration
Changes: 1. New template file for route6 in rhel oses 2. Additional checks in filters 3. Additional lines in ethernet template files 4. Additional tasks for rhel oses
- Loading branch information
Avadhani Jonnavithula
committed
Jun 4, 2018
1 parent
80eb1a1
commit ae6b1bf
Showing
6 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
*.iml | ||
*.iml | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# {{ansible_managed}} | ||
|
||
{% if item.ip6 is defined %} | ||
{% if item.ip6.route is defined %} | ||
{% for i in item.ip6.route %} | ||
{% set route = i.network %} | ||
{% if 'gateway' in i %} | ||
{% set route = route ~ ' via ' ~ i.gateway %} | ||
{% else %} | ||
{% set route = route ~ ' dev ' ~ item.device %} | ||
{% endif %} | ||
{% if 'table' in i %} | ||
{% set route = route ~ ' table ' ~ i.table %} | ||
{% endif %} | ||
{{ route }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} |