mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
parent
c90df05e8c
commit
b7bd73e8c9
@ -140,7 +140,7 @@ class Cloud(BaseNode):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
port_info = None
|
port_info = None
|
||||||
for port in self._ports:
|
for port in self._ports_mapping:
|
||||||
if port["port_number"] == port_number:
|
if port["port_number"] == port_number:
|
||||||
port_info = port
|
port_info = port
|
||||||
break
|
break
|
||||||
@ -278,7 +278,7 @@ class Cloud(BaseNode):
|
|||||||
:param data_link_type: PCAP data link type (DLT_*), default is DLT_EN10MB
|
:param data_link_type: PCAP data link type (DLT_*), default is DLT_EN10MB
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not [port["port_number"] for port in self._ports if port_number == port["port_number"]]:
|
if not [port["port_number"] for port in self._ports_mapping if port_number == port["port_number"]]:
|
||||||
raise NodeError("Port {port_number} doesn't exist on cloud '{name}'".format(name=self.name,
|
raise NodeError("Port {port_number} doesn't exist on cloud '{name}'".format(name=self.name,
|
||||||
port_number=port_number))
|
port_number=port_number))
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ class Cloud(BaseNode):
|
|||||||
:param port_number: allocated port number
|
:param port_number: allocated port number
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not [port["port_number"] for port in self._ports if port_number == port["port_number"]]:
|
if not [port["port_number"] for port in self._ports_mapping if port_number == port["port_number"]]:
|
||||||
raise NodeError("Port {port_number} doesn't exist on cloud '{name}'".format(name=self.name,
|
raise NodeError("Port {port_number} doesn't exist on cloud '{name}'".format(name=self.name,
|
||||||
port_number=port_number))
|
port_number=port_number))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user