From fd16ee0e294c447e70d0c82916109e0255a3ad66 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 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 -- 2.25.1