summaryrefslogtreecommitdiff
path: root/dan/ele-calypso.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-02-22 01:08:51 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-02-22 01:08:51 +0100
commit10798b5b7a76c7a4f6b3e85af5318a8d210669de (patch)
tree9cfaabedadf16ca43c465add9f409027e9d1b8a6 /dan/ele-calypso.yml
parentmove ele-dione and ele-telesto to emc vlan (diff)
make sure ele-calypso uses emc vlan for streamfeed from ele-thetys
Diffstat (limited to 'dan/ele-calypso.yml')
-rw-r--r--dan/ele-calypso.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/dan/ele-calypso.yml b/dan/ele-calypso.yml
index b0c143c1..62f65836 100644
--- a/dan/ele-calypso.yml
+++ b/dan/ele-calypso.yml
@@ -44,6 +44,12 @@
{% if vlan_iface %}
iface {{ vlan_ifname }} inet static
address {{ (vlan_iface | first).address }}
+ {% for route in vlan_iface[0].static_routes | default([]) %}
+ up /bin/ip route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
+ {% endfor %}
+ {% for route in vlan_iface[0].static_routes | default([]) | reverse %}
+ down /bin/ip route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
+ {% endfor %}
{% else %}
iface {{ vlan_ifname }} inet manual
{% endif %}