summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-11-14 14:13:21 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-14 15:44:14 +0100
commit739ac075dcd000ffb59003e223787ad62174d643 (patch)
tree92466508dd4ae40e934f74a8c14b272441b2bcfd /ogcp/views.py
parent0b210404d8befe2deb21e5156d823edcc0724c96 (diff)
views: add field 'gateway' in add-room form
Add the possibility to configure a gateway in a room.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 56910d3..2d5e6d0 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1344,7 +1344,8 @@ def action_room_add():
server = get_server_from_ip_port(form.server.data)
payload = {"center": int(form.center.data),
"name": form.name.data,
- "netmask": form.netmask.data}
+ "netmask": form.netmask.data,
+ "gateway": form.gateway.data}
r = server.post('/room/add', payload)
if r.status_code != requests.codes.ok:
flash(_('Server replied with error code when adding the room'), category='error')