Bug 1248 fixed
[osm/RO.git] / RO / osm_ro / vim_thread.py
index b8f6a37..23dcdb7 100644 (file)
@@ -811,10 +811,9 @@ class vim_thread(threading.Thread):
                 return False
 
     def run(self):
-        self.logger.debug("Starting")
+        self.logger.info("Starting")
         while True:
             self.get_vim_sdn_connector()
-            self.logger.debug("Vimconnector loaded")
             reload_thread = False
 
             while True:
@@ -1463,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: