Skip to content

Commit

Permalink
Release 1.2.455
Browse files Browse the repository at this point in the history
Fixed System lock down issue, and ipv6 support for idrac_server_config_profile

Co-Authored-By: Sajna Shetty <[email protected]>
Co-Authored-By: Felix Stephen <[email protected]>
  • Loading branch information
3 people committed Jan 6, 2021
1 parent 94f2369 commit 92b21b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Dell EMC OpenManage Python SDK is supported for python 2.7 and above.
``` pip3 install -r requirements-python3x.txt ```

# Installation
* This branch contains the build version 1.2.451
* This branch contains the build version 1.2.455
* Install the latest development version from github:

```
git clone https://github.com/dell/omsdk.git
cd omsdk
sh build.sh 1.2 451
sh build.sh 1.2 455
cd dist
pip install omsdk-1.2.451-py2.py3-none-any.whl
pip install omsdk-1.2.455-py2.py3-none-any.whl
```
* If omsdk build creation fails due to `python` command error, configure
`python` to launch either `python2` or `python3`. Accordingly configure the `pip` command.
Expand All @@ -40,7 +40,7 @@ Dell EMC OpenManage Python SDK is supported for python 2.7 and above.

* Downgrade pip version to lower than 10.0 and then install omsdk
* Force install omsdk using:
```pip install --ignore-installed omsdk-1.2.451-py2.py3-none-any.whl```
```pip install --ignore-installed omsdk-1.2.455-py2.py3-none-any.whl```
# Uninstallation
* Uninstall this module as follows:
Expand Down
8 changes: 4 additions & 4 deletions omdrivers/lifecycle/iDRAC/iDRACConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3305,9 +3305,9 @@ def enable_system_lockdown(self):
# Enable System Lockdown
msg = idrac.config_mgr.enable_system_lockdown()
"""
if not self.entity.ServerGeneration.startswith(TypeHelper.resolve(ServerGenerationEnum.Generation_14)):
if self.entity.ServerGeneration.startswith(("11", "12", "13")):
return {'Status': 'Failure',
'Message': 'Cannot perform Lockdown operation. Lockdown is supported only on 14th Generation of PowerEdge Servers.'}
'Message': 'Unable to perform the Lockdown operation. The Lockdown operation is supported only on the 14th Generation and later PowerEdge servers.'}
if self.entity.use_redfish:
rjson = self.entity._configure_system_lockdown_redfish(lockdown_mode=SystemLockdown_LockdownTypes.Enabled)
return rjson
Expand All @@ -3330,9 +3330,9 @@ def disable_system_lockdown(self):
msg = idrac.config_mgr.disable_system_lockdown()
"""

if not self.entity.ServerGeneration.startswith(TypeHelper.resolve(ServerGenerationEnum.Generation_14)):
if self.entity.ServerGeneration.startswith(("11", "12", "13")):
return {'Status': 'Failure',
'Message': 'Cannot perform Lockdown operation. Lockdown is supported only on 14th Generation of PowerEdge Servers.'}
'Message': 'Unable to perform the Lockdown operation. The Lockdown operation is supported only on the 14th Generation and later PowerEdge servers.'}
if self.entity.use_redfish:
rjson = self.entity._configure_system_lockdown_redfish(lockdown_mode=SystemLockdown_LockdownTypes.Disabled)
return rjson
Expand Down
5 changes: 4 additions & 1 deletion omsdk/http/sdkwsmanbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ def _pack_rest_method_args(self, auth, verify=False, data={}, headers=None):
return method_args

def _get_base_url(self, ipaddr, resouce_path, port=443):
baseurl = "https://" + ipaddr + ':' + str(port) + resouce_path
if ":" in ipaddr:
baseurl = "https://[" + ipaddr + ']:' + str(port) + resouce_path
else:
baseurl = "https://" + ipaddr + ':' + str(port) + resouce_path
return baseurl

def _get_redfish_jobid(self, headers):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
long_description = f.read()

# Update the package version here
omsdk_ver = '1.2.451'
omsdk_ver = '1.2.455'

# conditional dependency:include enum34 if python 2 is in use
debug_l1_en = False
Expand Down

0 comments on commit 92b21b5

Please sign in to comment.