juniper_contrail, sdn_api.py: fix vmi creation to use valid chars in local_link_infor... 33/9133/1 v7.0 v7.1.2 v7.1.3 v7.1.4 v7.1.5
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jun 2020 08:18:35 +0000 (08:18 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jun 2020 08:18:35 +0000 (08:18 +0000)
Change-Id: I5e2b4a6f190df6016e2cc50c470e0803ac4444e6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py

index 5577399..4feda95 100644 (file)
@@ -250,8 +250,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
                 }