juniper_contrail, sdn_api.py: fix vmi creation to use valid chars in local_link_infor...
[osm/RO.git] / RO-SDN-juniper_contrail / osm_rosdn_juniper_contrail / sdn_api.py
index 7822cf7..151bf6c 100644 (file)
@@ -248,8 +248,8 @@ class UnderlayApi:
         profile_dict = {
             "local_link_information": [
                 {
-                    "port_id": switch_port,
-                    "switch_id": switch_port,
+                    "port_id": switch_port.replace(":", "_"),
+                    "switch_id": switch_port.replace(":", "_"),
                     "switch_info": switch_id,
                     "fabric": self.fabric
                 }