mirror of
https://github.com/GNS3/gns3-server
synced 2025-08-03 04:18:14 +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 = 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.name = request.json.get("name", vm.name)
|
||||||
vm.console = request.json.get("console", vm.console)
|
vm.console = request.json.get("console", vm.console)
|
||||||
vm.startup_script = request.json.get("startup_script", vm.startup_script)
|
|
||||||
vm.updated()
|
vm.updated()
|
||||||
response.json(vm)
|
response.json(vm)
|
||||||
|
|
||||||
@ -270,7 +269,6 @@ class VPCSHandler:
|
|||||||
yield from vm.start_capture(port_number, pcap_file_path)
|
yield from vm.start_capture(port_number, pcap_file_path)
|
||||||
response.json({"pcap_file_path": pcap_file_path})
|
response.json({"pcap_file_path": pcap_file_path})
|
||||||
|
|
||||||
|
|
||||||
@Route.post(
|
@Route.post(
|
||||||
r"/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture",
|
r"/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture",
|
||||||
parameters={
|
parameters={
|
||||||
|
Loading…
Reference in New Issue
Block a user