blob: 6233973b33b7a03a18161d471c7e10465e7fb977 [file] [log] [blame]
Biser Milanov0dbc8b62025-01-24 17:38:42 +02001From 5f5a8f7563e7ee1f6fc9d8b828a360d5c7c0c1b3 Mon Sep 17 00:00:00 2001
2From: Biser Milanov <biser.milanov@storpool.com>
3Date: Wed, 22 Jan 2025 11:45:05 +0200
4Subject: [PATCH] StorPool: Add the iSCSI configuration API
5
6Change-Id: Idfe59f024232c0ba1f4e41611c975eb5ce0d03bb
7---
8 os_brick/initiator/storpool_utils.py | 6 ++++++
9 releasenotes/notes/notice-37378e268b52ed89.yaml | 9 +++++++++
10 2 files changed, 15 insertions(+)
11 create mode 100644 releasenotes/notes/notice-37378e268b52ed89.yaml
12
13diff --git a/os_brick/initiator/storpool_utils.py b/os_brick/initiator/storpool_utils.py
14index eec4bd5..a492d39 100644
15--- a/os_brick/initiator/storpool_utils.py
16+++ b/os_brick/initiator/storpool_utils.py
17@@ -211,3 +211,9 @@ class StorPoolAPI:
18 def snapshot_delete(self, snapshot):
19 self._api_call(
20 'POST', f'/ctrl/1.0/MultiCluster/SnapshotDelete/{snapshot}')
21+
22+ def get_iscsi_config(self):
23+ return self._api_call('GET', '/ctrl/1.0/iSCSIConfig')
24+
25+ def post_iscsi_config(self, data):
26+ return self._api_call('POST', '/ctrl/1.0/iSCSIConfig', data)
27diff --git a/releasenotes/notes/notice-37378e268b52ed89.yaml b/releasenotes/notes/notice-37378e268b52ed89.yaml
28new file mode 100644
29index 0000000..f5c4142
30--- /dev/null
31+++ b/releasenotes/notes/notice-37378e268b52ed89.yaml
32@@ -0,0 +1,9 @@
33+---
34+features:
35+ - |
36+ Extend the StorPool API client to support the StorPool iSCSI
37+ configuration API functionality.
38+upgrade:
39+ - |
40+ Upgrading to this release is not required; it is an interim version
41+ affecting only the StorPool connector.
42--
432.43.0
44