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: release-v8.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F9122%2F1;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 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