Skip to content

Commit

Permalink
setup changes for 0.9.3.0 release (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Gupta <[email protected]>
  • Loading branch information
ragupta authored and vvb committed Sep 20, 2017
1 parent 13851ef commit f866615
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 22 deletions.
21 changes: 21 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
History
=======

0.9.3.0 (2017-09-19)
--------------------
* Adds support for IMC version 3.0(2b), 3.0(3a) and 3.1(1d)
* Adds support for HX platform
* Fixes sync_mo
* Containerizes imcsdk support for CIMC 3.0 using Docker
* Adds context manager support for ImcHandle
* Redesigned APIs for the following,

* BIOS
* Boot Order
* Certificate
* KVM
* LDAP
* NTP
* SNMP
* SOL
* Syslog
* Storage
* vMedia

0.9.2.0 (2017-02-10)
--------------------
* Adds support for IMC version 3.0(1c)
Expand Down
38 changes: 19 additions & 19 deletions docker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ Once inside the container, make sure that all the packages needed for CIMC 3.0 a

[root@cimc-3 /]# python2.7.13 -V
Python 2.7.13

[root@cimc-3 /]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013

[root@cimc-3 /]# pip list | grep 'imcsdk\|redfish\|requests'
imcsdk (0.9.2.0)
imcsdk (0.9.3.0)
redfish (1.0.0)
requests (2.13.0)

[root@cimc-3 /]# ansible --version
ansible 2.3.0.0

[root@cimc-3 /]# curl --version
curl 7.29.0

Expand All @@ -143,22 +143,22 @@ Test if ``imcsdk`` APIs work with CIMC 3.0 inside the container. Below, we use
>>> from imcsdk.imchandle import ImcHandle
>>> from imcsdk.apis.server.inventory import inventory_get
>>> imcsdk.__version__
'0.9.2.0'
'0.9.3.0'

>>> handle = ImcHandle("10.18.253.253", "admin", "SomePassword")
>>> handle.login()
True

>>> handle.version._ImcVersion__version
'3.0(1c)'

>>> bios_settings = handle.query_dn('sys/rack-unit-1/bios/bios-settings')
>>> bios_settings.__dict__
{'status': None, 'dn': 'sys/rack-unit-1/bios/bios-settings', '_ManagedObject__xtra_props': {}, '_ManagedObject__parent_dn': 'sys/rack-unit-1/bios', '_dirty_mask': 0, '_handle': <imcsdk.imchandle.ImcHandle object at 0x7f799136ec90>, '_child': [], '_ManagedObject__xtra_props_dirty_mask': 1, '_ManagedObject__status': None, 'rn': 'bios-settings', '_ManagedObject__parent_mo': None, '_class_id': 'BiosSettings', 'child_action': None}

>>> inventory_get(handle=handle)
{'10.18.253.253': {'vic': [{'dn': 'sys/rack-unit-1/adaptor-MLOM', 'vendor': 'Cisco Systems Inc', 'model': 'UCSC-MLOM-CSC-02', 'pci_slot': 'MLOM', 'id': 'MLOM', 'serial': 'FCH20477D4X'}], 'vHBAs': [], 'tpm': [{'dn': 'sys/rack-unit-1/board/tpm', 'model': 'NA', 'vendor': 'NA', 'serial': 'NA', 'tpm_revision': 'NA'}

>>> (Press CTRL+D to exit)
[root@cimc-3 /]# exit

Expand All @@ -179,23 +179,23 @@ Below, we use Python's ``requests`` library with **RedFish** URIs (``/redfish/v1
>>> ro = requests.get("https://10.18.253.253/redfish/v1/Systems", verify=False, auth=("admin", "SomePassword"))
>>> ro
<Response [200]>

>>> ro_json = ro.json()
>>> uri = "https://10.18.253.253" + ro_json['Members'][0]['@odata.id']
>>> ro = requests.get(uri, verify=False, auth=("admin", "SomePassword"))
>>> ro
<Response [200]>

>>> ro_json = ro.json()
>>> ro_json['Model']
u'UCS C220 M4S'

>>> ro_json['SerialNumber']
u'FCH2047V0LJ'

>>> ro_json['BiosVersion']
u'C220M4.3.0.1b.0.1201161639'

>>> (Press CTRL+D to exit)
[root@cimc-3 /]# exit

Expand Down Expand Up @@ -246,7 +246,7 @@ Test if we can use ``curl`` to get objects from RedFish URIs inside the containe
"@odata.id":"/redfish/v1/MessageRegistry"
}
}

[root@cimc-3 /]# curl --insecure -u admin:SomePassword https://10.18.253.253/redfish/v1/Systems
{
"Members":[{
Expand All @@ -259,7 +259,7 @@ Test if we can use ``curl`` to get objects from RedFish URIs inside the containe
"Name":"Computer System Collection",
"@odata.context":"/redfish/v1/$metadata#Systems"
}

[root@cimc-3 /]# curl --insecure -u admin:SomePassword https://10.18.253.253/redfish/v1/Systems/FCH2047V0LJ
{
"SerialNumber":"FCH2047V0LJ",
Expand Down Expand Up @@ -322,7 +322,7 @@ Test if we can use ``curl`` to get objects from RedFish URIs inside the containe
"@odata.id":"/redfish/v1/Systems/FCH2047V0LJ/EthernetInterfaces"
}
}

[root@cimc-3 /]# exit


Expand Down
2 changes: 1 addition & 1 deletion imcsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def set_log_level(level=logging.DEBUG):

__author__ = 'Cisco Systems'
__email__ = '[email protected]'
__version__ = '0.9.2.0'
__version__ = '0.9.3.0'
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.2.0
current_version = 0.9.3.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='imcsdk',
version='0.9.2.0',
version='0.9.3.0',
description="python SDK for Cisco UCS IMC",
long_description=readme + '\n\n' + history,
author="Cisco Systems",
Expand Down

0 comments on commit f866615

Please sign in to comment.