Skip to content

Commit 66345de

Browse files
authored
Merge pull request #176 from HewlettPackard/ov6.3Val
validation for Ov6.3
2 parents b29f6fc + 2355528 commit 66345de

File tree

5 files changed

+495
-420
lines changed

5 files changed

+495
-420
lines changed

.github/workflows/dockerimage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- name: Login to Docker Hub
3636
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
3737
- name: Build the tagged Docker image
38-
run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV6.2
38+
run: docker build . --file Dockerfile --tag hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV6.3
3939
- name: Push the tagged Docker image
40-
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV6.2
40+
run: docker push hewlettpackardenterprise/hpe-oneview-sdk-for-python:${{ env.GITHUB_REF }}-OV6.3

CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,53 @@ Extends support of the SDK to OneView REST API version 3200 (OneView v6.30)
66
- [#173] (https://github.com/HewlettPackard/oneview-python/issues/73) is this a typo https://github.com/HewlettPackard/oneview-python/blob/master/examples/server_hardware.py#L200-201
77

88
##### Features supported with the current release
9+
- Appliance Configuration Timeconfig
10+
- Appliance Health Status
911
- Appliance Network Interfaces
12+
- Appliance Node Information
1013
- Appliance Proxy Configuration
14+
- Appliance SNMPv1 Trap Destinations
15+
- Appliance SNMPv3 Trap Destinations
16+
- Appliance SNMPv3 Users
17+
- Appliance SSH Access
18+
- Appliance Time and Locale Configuration
19+
- Connection Templates
20+
- Enclosures
21+
- Enclosure Groups
22+
- Ethernet network
23+
- FC network
24+
- FCOE network
1125
- Firmware Bundles
26+
- Firmware Drivers
27+
- HA Nodes
28+
- Hypervisor Cluster Profiles
29+
- Hypervisor Managers
30+
- ID Pools
31+
- ID Pool IPv4 Range
32+
- ID Pool IPv4 Subnets
33+
- Index Resources
34+
- Interconnects
35+
- Interconnect Types
36+
- Labels
37+
- Logical Enclosures
38+
- Logical Interconnects
39+
- Logical Interconnect Group
40+
- Network set
41+
- Restores
42+
- Scopes
43+
- Server Hardware
44+
- Server Hardware Types
45+
- Server Profiles
46+
- Server Profile Templates
47+
- Storage Pools
48+
- Storage Systems
49+
- Storage Templates
50+
- Storage Volume Attachments
51+
- Storage Volume
52+
- Tasks
53+
- Uplink set
54+
- Users
55+
- Version
1256

1357
# 6.2.0
1458
#### Notes

README.md

+90-59
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Build Status
44

5-
OV Version | 6.20 | 6.10 | 6.00 | 5.60 |
6-
| ------------- |:-------------:| :-------------:| -------------:| -------------:|
7-
SDK Version/Tag |[v6.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.2.0) | [v6.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.1.0) | [v6.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.0.0) | [v5.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v5.6.0) |
8-
Build Status | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/986745563)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/726148134)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/623585124)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://travis-ci.com/github/HewlettPackard/oneview-python/builds/214352373)|
5+
OV Version | 6.30 | 6.20 | 6.10 | 6.00 | 5.60 |
6+
| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:|
7+
SDK Version/Tag |[v6.3.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.3.0) |[v6.2.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.2.0) | [v6.1.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.1.0) | [v6.0.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v6.0.0) | [v5.6.0](https://github.com/HewlettPackard/oneview-python/releases/tag/v5.6.0) |
8+
Build Status | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/runs/3524286157) | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/986745563)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/726148134)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-python/actions/runs/623585124)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://travis-ci.com/github/HewlettPackard/oneview-python/builds/214352373)|
99

1010

1111
## Introduction
@@ -23,7 +23,7 @@ Latest version of the OneView Python [SDK Documentation](https://hewlettpackard.
2323

2424
## What's New
2525

26-
HPE OneView Python library extends support of the SDK to OneView REST API version 3000 (OneView v6.20)
26+
HPE OneView Python library extends support of the SDK to OneView REST API version 3200 (OneView v6.30)
2727

2828
Please refer to [notes](https://github.com/HewlettPackard/oneview-python/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version
2929

@@ -32,40 +32,58 @@ Please refer to [notes](https://github.com/HewlettPackard/oneview-python/blob/ma
3232
HPE OneView SDK for Python can be installed from Source,Pypi and Docker container installation methods.
3333

3434
## From Source
35-
36-
$ git clone https://github.com/HewlettPackard/oneview-python.git <br />
37-
$ cd oneview-python <br />
38-
$ python setup.py install --user # to install in the user directory (~/.local) <br />
39-
$ sudo python setup.py install # to install globally <br />
40-
41-
Or using PIP:
42-
43-
$ git clone https://github.com/HewlettPackard/oneview-python.git <br />
44-
$ cd oneview-python <br />
45-
$ pip install . <br />
35+
```bash
36+
$ git clone https://github.com/HewlettPackard/oneview-python.git
37+
$ cd oneview-python
38+
```
39+
```python
40+
$ python setup.py install --user # to install in the user directory (~/.local)
41+
```
42+
```bash
43+
$ sudo python setup.py install # to install globally
44+
```
45+
46+
## Or using PIP:
47+
```bash
48+
$ git clone https://github.com/HewlettPackard/oneview-python.git
49+
$ cd oneview-python
50+
```
51+
```python
52+
$ pip install .
53+
```
4654

4755
## From Pypi
48-
$ git clone https://github.com/HewlettPackard/oneview-python.git <br />
49-
$ cd oneview-python <br />
50-
$ pip install hpeOneView <br />
56+
```bash
57+
$ git clone https://github.com/HewlettPackard/oneview-python.git
58+
$ cd oneview-python
59+
```
60+
```python
61+
$ pip install hpeOneView
62+
```
5163

5264
## From Docker Image / Container
53-
Clone this repo and cd into it: <br />
54-
$ git clone https://github.com/HewlettPackard/oneview-python.git <br />
55-
$ cd oneview-python <br />
56-
57-
Build the docker image: <br />
58-
$ docker build -t oneview-python . <br />
59-
65+
66+
Clone this repo and cd into it:
67+
```bash
68+
$ git clone https://github.com/HewlettPackard/oneview-python.git
69+
$ cd oneview-python
70+
```
71+
72+
# Build the docker image:
73+
```bash
74+
$ docker build -t oneview-python .
75+
```
6076
Now you can run any of the example in this directory:
61-
6277
Run the container, passing in your credentials to OneView and specifying which example recipe to run. <br />
6378
-v : The volume on which repo code is mounted <br />
6479
Replace "connection_templates" with the name of the example you'd like to run <br />
6580
Replace "pwd" with the path of the example file you'd like to run. <br />
66-
67-
$ docker run -it --rm \ -v $(pwd)/:/root/oneview/ <br />
68-
python examples/connection_templates.py
81+
```bash
82+
$ docker run -it --rm \ -v $(pwd)/:/root/oneview/
83+
```
84+
```python
85+
$ python examples/connection_templates.py
86+
```
6987

7088
## Running Examples with published docker image
7189
We also provide a lightweight and easy way to test and run oneview-python. The hewlettpackardenterprise/hpe-oneview-sdk-for-python:<tag> docker image
@@ -74,10 +92,14 @@ HPE OneView SDK for Python can be installed from Source,Pypi and Docker containe
7492
The Docker Store image tag consist of two sections: <sdk_version-OV_version>
7593

7694
Download and store a local copy of hpe-oneview-sdk-for-python and use it as a Docker image. <br />
77-
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-python:v6.2.0-OV6.2
95+
```bash
96+
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-python:v6.3.0-OV6.3
97+
```
7898

7999
Run docker commands and this will in turn create sh session where you can create files, issue commands and execute the tests <br />
80-
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-python:v6.2.0-OV6.2 /bin/sh
100+
```bash
101+
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-python:v6.3.0-OV6.3 /bin/sh
102+
```
81103

82104
## Configuration
83105

@@ -97,42 +119,51 @@ HPE OneView SDK for Python can be installed from Source,Pypi and Docker containe
97119
Configuration can also be defined through environment variables:
98120

99121
### Required
100-
export ONEVIEWSDK_IP='172.16.102.82' <br />
101-
102-
export ONEVIEWSDK_USERNAME='Administrator' <br />
103-
export ONEVIEWSDK_PASSWORD='secret123' <br />
104-
105-
Or sessionID <br />
106-
export ONEVIEWSDK_SESSIONID='123' <br />
107-
122+
```bash
123+
export ONEVIEWSDK_IP='172.16.102.82'
124+
export ONEVIEWSDK_USERNAME='Administrator'
125+
export ONEVIEWSDK_PASSWORD='secret123'
126+
```
127+
Or sessionID
128+
```bash
129+
export ONEVIEWSDK_SESSIONID='123' <br />
130+
```
108131

109132
Once you have defined the environment variables, you can initialize the OneViewClient using the following code snippet:
110133

111-
oneview_client = OneViewClient.from_environment_variables() <br />
134+
```python
135+
oneview_client = OneViewClient.from_environment_variables()
136+
```
112137
:lock: Tip: Make sure no unauthorized person has access to the environment variables, since the password is stored in clear-text.
113138

114-
Note: If you have an active and valid login session and want to use it, define the ONEVIEWSDK_SESSIONID. When a sessionID is defined, it will be used for
139+
Note: If you have an active and valid login session and want to use it, define the ```ONEVIEWSDK_SESSIONID```. When a sessionID is defined, it will be used for
115140
authentication (username and password will be ignored in this case).
116141

117142
### Dictionary:
118-
You can also set the configuration using a dictionary. As described above, for authentication you can use username/password: <br />
119-
config = { <br />
120-
"ip": "172.16.102.82", <br />
121-
"credentials": { <br />
122-
"userName": "Administrator", <br />
123-
"password": "secret123" <br />
124-
} <br />
125-
} <br />
143+
```python
144+
# You can also set the configuration using a dictionary. As described above, for authentication you can use username/password: <br />
145+
config = {
146+
"ip": "172.16.102.82",
147+
"credentials": {
148+
"userName": "Administrator",
149+
"password": "secret123"
150+
}
151+
}
152+
```
126153

127-
Or if you have an active and valid login session and want to use it, define the sessionID in the Credentials: <br />
128-
config = { <br />
129-
"ip": "172.16.102.82", <br />
130-
"credentials": { <br />
131-
"sessionID": "123" <br />
132-
} <br />
133-
} <br />
134-
135-
oneview_client = OneViewClient(config) <br />
154+
```python
155+
#Or if you have an active and valid login session and want to use it, define the sessionID in the Credentials:
156+
config =
157+
"ip": "172.16.102.82",
158+
"credentials": {
159+
"sessionID": "123"
160+
}
161+
}
162+
```
163+
164+
```python
165+
oneview_client = OneViewClient(config)
166+
```
136167
:lock: Tip: Check the file permissions because the password is stored in clear-text.
137168

138169

0 commit comments

Comments
 (0)