Browse Source

pppoe: Add trivial phone home and remove unused special case

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 2 years ago
parent
commit
b7df00fe49
1 changed files with 2 additions and 15 deletions
  1. 2 15
      pppoe/ip-up.local

+ 2 - 15
pppoe/ip-up.local

@@ -33,21 +33,8 @@ ip link set ${1} master vrf_external
 ip link set ${1} up
 ip route add default via ${5} table 1023
 
-{%- if grains['id'] == 'bbr-kt.in.ffho.net' %}
-# Reload backbone GRE tunnels to rebind them to VRF master device
-for pop in ber dus fra; do
-	for x in a b; do
-		ifdown gre_ffrl_\${pop}_\${x}
-		ifup gre_ffrl_\${pop}_\${x}
-	done
-done
-{%- endif %}
-
-{%- if grains['id'] == 'bbr-wagsh.in.ffho.net' %}
-# Reload OpenVPN tunnels
-systemctl restart openvpn.service
-#systemctl restart fastd@hx-sued_intergw.service
-{%- endif %}
+# ET... Phone... Home.
+ip vrf exec vrf_external wget --max-redirect=0 --header="Host: noc.ffho.net" http://80.70.180.55/et-phone-home/$(hostname -f)
 EOF
 
 chmod 755 /usr/local/sbin/fix_ppp_vrf.gen