mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-20 08:13:48 +00:00
Renaming things & more inline docs.
This commit is contained in:
@ -41,10 +41,6 @@ class ATMSW(object):
|
||||
:param request: JSON request
|
||||
"""
|
||||
|
||||
if request == None:
|
||||
self.send_param_error()
|
||||
return
|
||||
|
||||
#TODO: JSON schema validation for the request
|
||||
name = None
|
||||
if request and "name" in request:
|
||||
@ -137,10 +133,10 @@ class ATMSW(object):
|
||||
|
||||
Mandatory request parameters:
|
||||
- id (switch identifier)
|
||||
- port_name (port name)
|
||||
- port_id (port identifier)
|
||||
|
||||
Response parameters:
|
||||
- port_name (port name)
|
||||
- port_id (port identifier)
|
||||
- lhost (local host address)
|
||||
- lport (allocated local port)
|
||||
|
||||
@ -163,7 +159,7 @@ class ATMSW(object):
|
||||
self.send_custom_error(str(e))
|
||||
return
|
||||
|
||||
response["port_name"] = request["port_name"]
|
||||
response["port_id"] = request["port_id"]
|
||||
self.send_response(response)
|
||||
|
||||
@IModule.route("dynamips.atmsw.add_nio")
|
||||
@ -174,6 +170,7 @@ class ATMSW(object):
|
||||
Mandatory request parameters:
|
||||
- id (switch identifier)
|
||||
- port (port identifier)
|
||||
- port_id (port identifier)
|
||||
- mappings (VCs/VPs mapped to the port)
|
||||
- nio (nio type, one of the following)
|
||||
- "NIO_UDP"
|
||||
|
Reference in New Issue
Block a user