X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO%2Fosm_ro%2Fvim_thread.py;h=23dcdb724ba6d176947b25611c427a94a8b10f26;hp=7174fe67beae74bb63430108ec3ead7eed21f323;hb=08aacc1968777230625103dc01e5b20f3f4c63ce;hpb=7a1f525e6e76418766f5aed3874ec7f54333091f 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: