Explorar el Código

ffho_netfilter: Unify return types of generate_urpf_policy()

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm hace 2 años
padre
commit
827bcbcba5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']