Browse Source

SDN: Do not enable OSPF on interfaces without IPs configured

  Starting now there will be (VLAN) interfaces without any IPs configured
  besides IPv6 Link-Local Addresses.  Those interfaces/VLANs will be used
  as underlays for Data Center Interconnectes (DCI) for B.A.T.M.A.N. adv.
  meshes for example.  As IP connectivity already is present on DCI links
  there is a need for interconnects solely for B.A.T.M.A.N. adv. which do
  not require any assigned prefixes.  On the underlay interfaces only LLA
  addresses will be used for VXLAN VTEP termination.

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

+ 4 - 0
_modules/ffho_net.py

@@ -1190,6 +1190,10 @@ def get_ospf_interface_config (node_config, grains_id):
 		if ospf_config_pillar.get ('ignore', False):
 			continue
 
+		# Ignore interfaces without any IPs configured
+		if not iface_config.get ('prefixes'):
+			continue
+
 		# Wireless Local Links (WLL)
 		if re.search (r'^vlan90\d$', iface):
 			ospf_on = True