Browse Source

ffho_net: Active OSPF on VLL Vlans 15xy with cost 20.

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

+ 7 - 0
_modules/ffho_net.py

@@ -1042,6 +1042,13 @@ def get_ospf_interface_config (node_config, grains_id):
 			ospf_config['cost'] = 10
 			ospf_config['desc'] = "Wired Gigabit connection"
 
+		# VLL connection
+		elif re.search (r'^vlan15\d\d$', iface):
+			ospf_on = True
+			ospf_config['stub'] = False
+			ospf_config['cost'] = 20
+			ospf_config['desc'] = "VLL connection"
+
 		# WBBL connection
 		elif re.search (r'^vlan20\d\d$', iface):
 			ospf_on = True