From 08aacc1968777230625103dc01e5b20f3f4c63ce Mon Sep 17 00:00:00 2001 From: "davide.borsatti@unibo.it" Date: Thu, 22 Oct 2020 00:52:02 +0200 Subject: [PATCH] Bug 1248 fixed Change-Id: I4c872d365980625b0beeb6d879435c163a82863a Signed-off-by: davide.borsatti@unibo.it --- RO/osm_ro/vim_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RO/osm_ro/vim_thread.py b/RO/osm_ro/vim_thread.py index 7174fe67..23dcdb72 100644 --- a/RO/osm_ro/vim_thread.py +++ b/RO/osm_ro/vim_thread.py @@ -1462,10 +1462,10 @@ class vim_thread(threading.Thread): if '/' not in source_ip: source_ip += '/32' definition["source_ip_prefix"] = source_ip - if source_port: + if source_port and ip_proto !='icmp': definition["source_port_range_min"] = source_port definition["source_port_range_max"] = source_port - if destination_port: + if destination_port and ip_proto !='icmp': definition["destination_port_range_min"] = destination_port definition["destination_port_range_max"] = destination_port if destination_ip: -- 2.25.1