From: garciadeblas Date: Fri, 19 Jun 2020 07:00:20 +0000 (+0000) Subject: juniper_contrail:sdn_api.py fix to use valid chars in vpg and vmi names X-Git-Tag: v7.1.2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=fd16ee0e294c447e70d0c82916109e0255a3ad66;p=osm%2FRO.git juniper_contrail:sdn_api.py fix to use valid chars in vpg and vmi names Change-Id: I16b78d564ba36976f2bffdbe93758ad325ac4405 Signed-off-by: garciadeblas --- 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 2bf0b52f..55773995 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 @@ -149,10 +149,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