Browse Source

ffho_net: Add OPS vlans to OSPF config generator.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
51eea7d46b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      _modules/ffho_net.py

+ 6 - 0
_modules/ffho_net.py

@@ -1024,6 +1024,12 @@ def get_ospf_interface_config (node_config, grains_id):
 			ospf_config['stub'] = True
 			ospf_config['cost'] = 10
 
+		# OPS Vlans
+		elif re.search (r'^vlan39\d\d$', iface):
+			ospf_on = True
+			ospf_config['stub'] = True
+			ospf_config['cost'] = 10
+
 		# Active OSPF on OpenVPN tunnels, cost 10000
 		elif iface.startswith ('ovpn-'):
 			ospf_on = True