Browse Source

modules: Add vlan90x for wireless local links to SDN OSPF logic.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
f2084aa9d7
1 changed files with 8 additions and 1 deletions
  1. 8 1
      _modules/ffho_net.py

+ 8 - 1
_modules/ffho_net.py

@@ -1040,8 +1040,15 @@ def get_ospf_interface_config (node_config, grains_id):
 		if ospf_config_pillar.get ('ignore', False):
 			continue
 
+		# Wireless Local Links (WLL)
+		if re.search (r'^vlan90\d$', iface):
+			ospf_on = True
+			ospf_config['stub'] = True
+			ospf_config['cost'] = 10
+			ospf_config['desc'] = "Wireless Local Link (WLL)"
+
 		# Local Gigabit Ethernet based connections (PTP or L2 subnets), cost 10
-		if re.search (r'^(br-?|br\d+\.|vlan)10\d\d$', iface):
+		elif re.search (r'^(br-?|br\d+\.|vlan)10\d\d$', iface):
 			ospf_on = True
 			ospf_config['stub'] = False
 			ospf_config['cost'] = 10