Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Nov 3, 2023
1 parent c952aa3 commit 40ceb31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/ns-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3044,4 +3044,16 @@ Response example:

### list-tunnels

### list-wans

### get-defaults

### get-tunnel

### add-tunnel

### edit-tunnel

### enable-tunnel

### disable-tunnel
5 changes: 5 additions & 0 deletions packages/ns-api/files/ns.ipsectunnel
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def enable_tunnel(id):
except:
return utils.generic_error("tunnel_not_enabled")

def get_tunnel(id): #FIXME
return {}

def list_wans():
ret = {"wans": []}
ips = get_device_ips()
Expand Down Expand Up @@ -250,4 +253,6 @@ else:
ret = disable_tunnel(args["id"])
elif action == "delete-tunnel":
ret = delete_tunnel(args["id"])
elif action == "get-tunnel":
ret = get_tunnel(args["id"])
print(json.dumps(ret))

0 comments on commit 40ceb31

Please sign in to comment.