summaryrefslogtreecommitdiffstats
path: root/ogcp/og_server.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-03 12:45:49 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-03 16:26:22 +0200
commit7613cd8017e978e771552467a4e10141e120fccb (patch)
tree172c69df30ead92bdf6b9fb2619523ad6b4f9f29 /ogcp/og_server.py
parentc1ac88e47c8562699edc9f5304649762366191e0 (diff)
ogcp: add server ip configuration
Enable server view in the main toolbar. Hide Add server and Delete server buttons. Add Update server button. Add server/update view to edit the server addresses.
Diffstat (limited to 'ogcp/og_server.py')
-rw-r--r--ogcp/og_server.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/og_server.py b/ogcp/og_server.py
index 1b7fa32..4a1b6ff 100644
--- a/ogcp/og_server.py
+++ b/ogcp/og_server.py
@@ -37,6 +37,12 @@ class OGServer:
json=payload)
return r
+ def delete(self, path, payload):
+ r = requests.delete(f'{self.URL}{path}',
+ headers=self.HEADERS,
+ json=payload)
+ return r
+
@property
def id(self):
ip = self.ip.replace('.', '-')