Fix hostname of VPCS is not changed

Fix https://github.com/GNS3/gns3-gui/issues/1780
This commit is contained in:
Julien Duponchelle 2017-01-17 14:34:48 +01:00
parent e06be6729a
commit bfb23ce7a3
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -99,7 +99,6 @@ class VPCSHandler:
vm = vpcs_manager.get_node(request.match_info["node_id"], project_id=request.match_info["project_id"])
vm.name = request.json.get("name", vm.name)
vm.console = request.json.get("console", vm.console)
vm.startup_script = request.json.get("startup_script", vm.startup_script)
vm.updated()
response.json(vm)
@ -270,7 +269,6 @@ class VPCSHandler:
yield from vm.start_capture(port_number, pcap_file_path)
response.json({"pcap_file_path": pcap_file_path})
@Route.post(
r"/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture",
parameters={