From d60bdd09bf04c8e7add7c7bfe2cfd0d74113db40 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 19 Jun 2020 07:00:20 +0000 Subject: [PATCH] juniper_contrail:sdn_api.py fix to use valid chars in vpg and vmi names Change-Id: I16b78d564ba36976f2bffdbe93758ad325ac4405 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 c8cca228..6ef91af2 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 @@ -148,10 +148,10 @@ class UnderlayApi: # Aux methods to avoid code duplication of name conventions def get_vpg_name(self, switch_id, switch_port): - return "{}_{}".format(switch_id, switch_port) + return "{}_{}".format(switch_id, switch_port).replace(":","_") def get_vmi_name(self, switch_id, switch_port, vlan): - return "{}_{}-{}".format(switch_id, switch_port, vlan) + return "{}_{}-{}".format(switch_id, switch_port, vlan).replace(":","_") # Virtual network operations -- 2.25.1