Skip to content

Commit 354e66e

Browse files
rainerleinrp-
authored andcommitted
Add methods to access storage_providers and resource_layers and their unsupported reasons
1 parent 482154c commit 354e66e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

linstor/responses.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,22 @@ def connection_status(self):
277277
def net_interfaces(self):
278278
return [NetInterface(x) for x in self._rest_data.get("net_interfaces", [])]
279279

280+
@property
281+
def storage_providers(self):
282+
return self._rest_data.get("storage_providers", [])
283+
284+
@property
285+
def resource_layers(self):
286+
return self._rest_data.get("resource_layers", [])
287+
288+
@property
289+
def unsupported_providers(self):
290+
return self._rest_data.get("unsupported_providers", {})
291+
292+
@property
293+
def unsupported_layers(self):
294+
return self._rest_data.get("unsupported_layers", {})
295+
280296
@property
281297
def props(self):
282298
return self._rest_data.get("props", {})

0 commit comments

Comments
 (0)