1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-20 15:28:22 +00:00

Merge branch '2.1'

# Conflicts:
#	gns3server/compute/dynamips/nodes/atm_switch.py
This commit is contained in:
grossmj 2019-09-30 16:11:26 +08:00
commit af3ae0df24
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class ATMSwitch(Device):
:param new_name: New name for this switch
"""
await self._hypervisor.send('atm rename "{name}" "{new_name}"'.format(name=self._name, new_name=new_name))
await self._hypervisor.send('atmsw rename "{name}" "{new_name}"'.format(name=self._name, new_name=new_name))
log.info('ATM switch "{name}" [{id}]: renamed to "{new_name}"'.format(name=self._name,
id=self._id,
new_name=new_name))

View File

@ -100,7 +100,7 @@ class Node:
try:
setattr(self, prop, kwargs[prop])
except AttributeError as e:
log.critical("Cannot set attribute '%s'".format(prop))
log.critical("Cannot set attribute '{}'".format(prop))
raise e
else:
if prop not in self.CONTROLLER_ONLY_PROPERTIES and kwargs[prop] is not None and kwargs[prop] != "":