mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 04:47:54 +00:00
Fix hostname of VPCS is not changed
Fix https://github.com/GNS3/gns3-gui/issues/1780
This commit is contained in:
parent
e06be6729a
commit
bfb23ce7a3
@ -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={
|
||||
|
Loading…
Reference in New Issue
Block a user