Parcourir la source

ffho_netfilter: Unify return types of generate_urpf_policy()

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm il y a 2 ans
Parent
commit
827bcbcba5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      _modules/ffho_netfilter.py

+ 1 - 1
_modules/ffho_netfilter.py

@@ -277,7 +277,7 @@ def generate_urpf_policy (node_config):
 	# external interface an uRPF doesn't make any sense here, so we don't even
 	# have to look at the interfaces.
 	if 'router' not in roles:
-		return {}
+		return []
 
 	urpf = {}
 	interfaces = node_config['ifaces']