mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-18 06:18:08 +00:00
Fix a merge error
This commit is contained in:
parent
7b8e4c1a60
commit
873418dbbe
@ -368,7 +368,7 @@ class Link:
|
|||||||
if node["node"].node_type in ('vpcs',
|
if node["node"].node_type in ('vpcs',
|
||||||
'dynamips',
|
'dynamips',
|
||||||
'qemu',
|
'qemu',
|
||||||
'iou'):
|
'iou',
|
||||||
'cloud',
|
'cloud',
|
||||||
'nat',
|
'nat',
|
||||||
'docker'):
|
'docker'):
|
||||||
@ -383,11 +383,11 @@ class Link:
|
|||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self._id)
|
return hash(self._id)
|
||||||
|
|
||||||
def __json__(self, topology_dump = False):
|
def __json__(self, topology_dump=False):
|
||||||
"""
|
"""
|
||||||
:param topology_dump: Filter to keep only properties require for saving on disk
|
:param topology_dump: Filter to keep only properties require for saving on disk
|
||||||
"""
|
"""
|
||||||
res=[]
|
res = []
|
||||||
for side in self._nodes:
|
for side in self._nodes:
|
||||||
res.append({
|
res.append({
|
||||||
"node_id": side["node"].id,
|
"node_id": side["node"].id,
|
||||||
|
Loading…
Reference in New Issue
Block a user