X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO-SDN-juniper_contrail%2Fosm_rosdn_juniper_contrail%2Fsdn_api.py;h=151bf6ca13259db87387458d22ad18a3f961655d;hb=92afe3c1b80b3df35e9883a04ea03ed8dfe5a6a1;hp=6ef91af2709409b20729908065f0edd62003a60c;hpb=d60bdd09bf04c8e7add7c7bfe2cfd0d74113db40;p=osm%2FRO.git 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 6ef91af2..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 @@ -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).replace(":","_") + return "{}_{}".format(switch_id, switch_port).replace(":", "_") def get_vmi_name(self, switch_id, switch_port, vlan): - return "{}_{}-{}".format(switch_id, switch_port, vlan).replace(":","_") + return "{}_{}-{}".format(switch_id, switch_port, vlan).replace(":", "_") # Virtual network operations @@ -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 }