mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Fix some port short name display issues
Fix https://github.com/GNS3/gns3-gui/issues/1940
This commit is contained in:
parent
95f864c871
commit
5409d9c3f8
@ -66,7 +66,7 @@ class Port:
|
|||||||
# If port name format has change we use the port name as the short name (1.X behavior)
|
# If port name format has change we use the port name as the short name (1.X behavior)
|
||||||
if self._short_name:
|
if self._short_name:
|
||||||
return self._short_name
|
return self._short_name
|
||||||
elif not self._name.startswith(self.long_name_type()):
|
elif not self._name.startswith("{}{}".format(self.long_name_type(), self._interface_number)):
|
||||||
return self._name
|
return self._name
|
||||||
return self.short_name_type + "{}/{}".format(self._interface_number, self._port_number)
|
return self.short_name_type + "{}/{}".format(self._interface_number, self._port_number)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user