Skip to content

Commit

Permalink
Update to version 240.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
infinidat-infradev committed Jul 3, 2024
2 parents aa10e88 + 48816d4 commit a733647
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 240.2.1 (Released 2024-06-30)
-------------------------------------
* #16618: Support data_reduction new fields
* #16462: Add pagination for get all assigned entities in SnapshotPolicy
* #16394: Move the lock_snapshots field from SnapshotPolicy to Schedule entity

Version 240.1.2 (Released 2024-02-08)
-------------------------------------
* #16384: Add documentation for snapshot replication when creating async replica
Expand Down
9 changes: 9 additions & 0 deletions infinisdk/infinibox/capacities.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ def get_total_spare_capacity(self):
def get_data_reduction_ratio(self):
return self._get_field("data_reduction_ratio")

def get_total_disk_usage_within_pools(self):
return self._get_capacity_field("total_disk_usage_within_pools")

def get_total_thick_capacity_savings(self):
return self._get_capacity_field("total_thick_capacity_savings")

def get_total_thin_capacity_savings(self):
return self._get_capacity_field("total_thin_capacity_savings")

def update_total_virtual_capacity(self, total_virtual_capacity):
if not isinstance(total_virtual_capacity, int):
if not isinstance(total_virtual_capacity, Capacity):
Expand Down
6 changes: 6 additions & 0 deletions infinisdk/infinibox/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ def has_snapshot_policies_enhancements(self):
return feature_version >= 1
return self.get_parsed_system_version() >= "7.3.10"

def has_data_reduction_ratio(self):
feature_version = self._get_feature_version("data_reduction_ratio")
if feature_version is not NOTHING:
return feature_version >= 0
return self.get_parsed_system_version() >= "8.0"


_VERSION_TUPLE_LEN = 5

Expand Down
15 changes: 15 additions & 0 deletions infinisdk/infinibox/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,21 @@ class Dataset(InfiniBoxObject):
is_sortable=True,
feature_name="snapshot_policies_enhancements",
),
Field(
"disk_usage",
type=int,
feature_name="data_reduction_ratio",
),
Field(
"data_reduction_ratio",
type=int,
feature_name="data_reduction_ratio",
),
Field(
"capacity_savings_per_entity",
type=CapacityType,
feature_name="data_reduction_ratio",
),
]

PROVISIONING = namedtuple("Provisioning", ["Thick", "Thin"])("THICK", "THIN")
Expand Down
12 changes: 12 additions & 0 deletions infinisdk/infinibox/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ class Pool(InfiniBoxObject):
Field("vvol_volumes_count", type=int, feature_name="vvol_counts"),
Field("vvol_entities_count", type=int, feature_name="vvol_counts"),
Field("vvol_snapshots_count", type=int, feature_name="vvol_counts"),
Field("total_disk_usage", type=int, feature_name="data_reduction_ratio"),
Field(
"thick_capacity_savings",
type=CapacityType,
feature_name="data_reduction_ratio",
),
Field(
"thin_capacity_savings",
type=CapacityType,
feature_name="data_reduction_ratio",
),
Field("data_reduction_ratio", type=int, feature_name="data_reduction_ratio"),
]

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = BSD
author = Infinidat
author_email = [email protected]
url = https://infinisdk.readthedocs.io/en/latest/
version = 240.1.3
version = 240.2.2

[entry_points]
console_scripts =
Expand All @@ -29,7 +29,7 @@ testing = click~=8.0.4
black~=21.8b0
pyforge
waiting
infinisim~=240.1.0
infinisim~=240.2.0

[tool:pytest]
testpaths = infinisdk tests
Expand Down

0 comments on commit a733647

Please sign in to comment.