From 6114d94a7ad6da980b1f4b595f60e4cabe05526b Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 22 Jun 2020 08:18:35 +0000 Subject: [PATCH] juniper_contrail, sdn_api.py: fix vmi creation to use valid chars in local_link_information Change-Id: I5e2b4a6f190df6016e2cc50c470e0803ac4444e6 Signed-off-by: garciadeblas --- RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py b/RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py index 7822cf73..151bf6ca 100644 --- a/RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py +++ b/RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail/sdn_api.py @@ -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 } -- 2.25.1