Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752314
D3005.id7673.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3005.id7673.diff
View Options
diff --git a/_modules/node.py b/_modules/node.py
--- a/_modules/node.py
+++ b/_modules/node.py
@@ -285,6 +285,7 @@
for node, tunnel in __pillar__.get(f"{network}_gre_tunnels", {}).items():
tunnels.append(
{
+ "network": network,
"description": f"{network}_to_{node}",
"interface": tunnel["router"]["interface"],
"src": tunnel["router"]["addr"],
@@ -320,6 +321,7 @@
gre_tunnels.append(
{
+ "network": network,
"description": f"{network}_via_{network_args['router']}",
"interface": tunnel["node"].get("interface", "gre0"),
"src": tunnel["node"]["addr"],
diff --git a/roles/core/network/gre.sls b/roles/core/network/gre.sls
--- a/roles/core/network/gre.sls
+++ b/roles/core/network/gre.sls
@@ -17,7 +17,7 @@
{% set boot_loader.gre = True %}
-{{ gre.config_path }}{{ tunnel["description"] }}:
+{{ gre.config_path }}{{ tunnel["network"] }}:
file.managed:
- source: salt://roles/core/network/files/{{ gre.source_path }}
- makedirs: True
@@ -25,7 +25,7 @@
- defaults: {{ tunnel }}
{% if grains['os_family'] == 'Debian' %}
- context:
- interface: gre-{{ description }}
+ interface: gre-{{ tunnel["network"] }}
{% endif %}
{% endfor %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 18:15 (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250917
Default Alt Text
D3005.id7673.diff (1 KB)
Attached To
Mode
D3005: Reduce the length of GRE interface name
Attached
Detach File
Event Timeline
Log In to Comment