Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Extends support of the SDK to OneView REST API version 1600 (OneView v5.20).
- Certificates Server
- Hypervisor Cluster Profiles
- Hypervisor Managers
- Interconnects
- Interconnect Types
- Logical Interconnects
- Logical Interconnect Groups
- Server Hardware
- Server Hardware Types

# 5.1.1

Expand Down
152 changes: 76 additions & 76 deletions endpoints-support.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/interconnect_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###
# Below example works till Oneview API version 1600.

from pprint import pprint
from hpOneView.oneview_client import OneViewClient
Expand Down
1 change: 1 addition & 0 deletions examples/interconnects.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###
# Below example works till Oneview API version 1600.

from pprint import pprint
from hpOneView.oneview_client import OneViewClient
Expand Down
2 changes: 1 addition & 1 deletion examples/logical_interconnect_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###

# Below example works till Oneview API Version 1600.

from pprint import pprint

Expand Down
4 changes: 2 additions & 2 deletions examples/logical_interconnects.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
print("\nGet all logical interconnects")
all_logical_interconnects = logical_interconnects.get_all()
for logical_interconnect in all_logical_interconnects:
print(' Name: {name}').format(**logical_interconnect)
print(' Name: {name}'.format(**logical_interconnect))

# Get installed firmware
print("\nGet the installed firmware for a logical interconnect that matches the specified name.")
Expand All @@ -61,7 +61,7 @@

# Get a logical interconnect by name
logical_interconnect = logical_interconnects.get_by_name(logical_interconnect_name)
print("\nFound logical interconnect by name {name}.\n URI: {uri}").format(**logical_interconnect.data)
print("\nFound logical interconnect by name {name}.\n URI: {uri}".format(**logical_interconnect.data))
print(logical_interconnect.data)

# Install the firmware to a logical interconnect
Expand Down
1 change: 1 addition & 0 deletions examples/server_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,6 @@
pprint(sdx_server)

# Remove rack server
# This operation works till Oneview API Version 500.
server.remove()
print("Server removed successfully")
1 change: 1 addition & 0 deletions examples/server_hardware_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###
# Below example version works till Oneview API Version 1600.

from pprint import pprint
from hpOneView.oneview_client import OneViewClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class LogicalInterconnectGroups(ResourcePatchMixin, Resource):
'600': {"type": "logical-interconnect-groupV4"},
'800': {"type": "logical-interconnect-groupV5"},
'1000': {"type": "logical-interconnect-groupV6"},
'1200': {"type": "logical-interconnect-groupV7"}
'1200': {"type": "logical-interconnect-groupV7"},
'1400': {"type": "logical-interconnect-groupV8"},
'1600': {"type": "logical-interconnect-groupV8"}
}

def __init__(self, connection, data=None):
Expand Down
11 changes: 9 additions & 2 deletions hpOneView/resources/networking/logical_interconnects.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class LogicalInterconnects(ResourcePatchMixin, Resource):
'300': {"type": "EthernetInterconnectSettingsV201"},
'500': {"type": "EthernetInterconnectSettingsV201"},
'600': {"type": "EthernetInterconnectSettingsV4"},
'800': {"type": "EthernetInterconnectSettingsV4"}
'800': {"type": "EthernetInterconnectSettingsV4"},
'1000': {'type': "EthernetInterconnectSettingsV5"},
'1200': {'type': "EthernetInterconnectSettingsV6"},
'1400': {'type': "EthernetInterconnectSettingsV7"},
'1600': {'type': "EthernetInterconnectSettingsV7"}
}

SETTINGS_TELEMETRY_CONFIG_DEFAULT_VALUES = {
Expand All @@ -64,7 +68,10 @@ class LogicalInterconnects(ResourcePatchMixin, Resource):
'600': {"type": "telemetry-configuration"},
'800': {"type": "telemetry-configuration"},
'1000': {"type": "telemetry-configuration"},
'1200': {"type": "telemetry-configuration"}
'1200': {"type": "telemetry-configuration"},
'1400': {"type": "telemetry-configuration"},
'1600': {"type": "telemetry-configuration"}

}

def __init__(self, connection, data=None):
Expand Down