Browse Source

SDN: Only enable OSPf in interface in main VRF

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

+ 4 - 0
_modules/ffho_net.py

@@ -1281,6 +1281,10 @@ def get_ospf_config (node_config, grains_id):
 		if not iface_config.get ('prefixes'):
 			continue
 
+		# If this interface is within a (non-default) VRF, don't OSPF here
+		if iface_config.get ('vrf'):
+			continue
+
 		# Wireless Local Links (WLL)
 		if re.search (r'^vlan90\d$', iface):
 			ospf_on = True