From 126be77edca778ef07eb88758035ef497af4d722 Mon Sep 17 00:00:00 2001 From: David Schmitz <schmitz@lrz.de> Date: Wed, 29 Aug 2018 16:28:42 +0000 Subject: [PATCH] fix bug with (src=dst) port specification and new netconf handling --- flowspec/junos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flowspec/junos.py b/flowspec/junos.py index a0e9f3e3..3d50e98a 100644 --- a/flowspec/junos.py +++ b/flowspec/junos.py @@ -195,7 +195,8 @@ def get_ports(rule): os.write(2, "rule.port="+str(rule.port)) os.write(2, str(type(rule.port))) if rule.port: - result = 'port'+translate_ports(rule.port.all()) + #result = 'port'+translate_ports(rule.port.all()) + result = 'port'+translate_ports(rule.port) else: result = '' if rule.destinationport: -- GitLab