Skip to content

Commit

Permalink
2400 validation change
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvirani committed Feb 4, 2021
1 parent 1103038 commit 2ca56ce
Show file tree
Hide file tree
Showing 26 changed files with 336 additions and 292 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## 3.8.0(Unrelesed)
### Notes
- This release extends support of the SDK to OneView REST API version 2400 (OneView v5.60).

### Oneview Features supported
- oneview_connection_template
- oneview_enclosure
- oneview_enclosure_group
- oneview_ethernet_network
- oneview_fc_network
- oneview_fcoe_network
- oneview_hypervisor_cluster_profile
- oneview_hypervisor_manager
- oneview_interconnect
- oneview_logical_enclosure
- oneview_logical_interconnect
- oneview_logical_interconnect_group
- oneview_network_set
- oneview_scope
- oneview_server_certificate
- oneview_server_hardware
- oneview_server_hardware_type
- oneview_server_profile
- oneview_server_profile_template
- oneview_storage_pool
- oneview_storage_system
- oneview_uplink_set
- oneview_volume
- oneview_volume_attachment
- oneview_volume_template

## 3.7.0
### Notes
- This release extends support of the SDK to OneView REST API version 2200 (OneView v5.50) and ImageStreamer REST API version 2000 (I3S v5.40).
Expand Down
429 changes: 215 additions & 214 deletions endpoints-support.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/connection_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

# Ethernet network that will be used for the examples below
Expand Down Expand Up @@ -53,7 +53,7 @@
data(
bandwidth: {
maximumBandwidth: 13500,
typicalBandwidth: 2200
typicalBandwidth: 2400
}
)
end
Expand Down Expand Up @@ -91,7 +91,7 @@
data(
bandwidth: {
maximumBandwidth: 13500,
typicalBandwidth: 2200
typicalBandwidth: 2400
}
)
end
Expand Down
2 changes: 1 addition & 1 deletion examples/enclosure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200,
api_version: 2400,
api_variant: 'Synergy'
}

Expand Down
2 changes: 1 addition & 1 deletion examples/enclosure_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200,
api_version: 2400,
api_variant: 'Synergy'
}

Expand Down
6 changes: 3 additions & 3 deletions examples/ethernet_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

# Example: Create and manage a new ethernet network
Expand Down Expand Up @@ -49,7 +49,7 @@
action :create_if_missing
end

# Only for API1800 or greater
# Only for API2400 or greater
# Example: Bulk deletes ethernet networks.
oneview_ethernet_network 'None' do
client my_client
Expand All @@ -59,7 +59,7 @@
networkUris: [ test1['uri'], test['uri'] ]
)
action :delete_bulk
only_if { client[:api_version] >= 1800 }
only_if { client[:api_version] >= 2400 }
end

# Only for V300 and V500
Expand Down
6 changes: 3 additions & 3 deletions examples/fc_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

# Example: Create and manage a new fc network
Expand Down Expand Up @@ -46,7 +46,7 @@
action :create_if_missing
end

# This examples works only from API1800
# This examples works only from API2400
# Example: Bulk deletes fc networks.
oneview_fc_network 'None' do
client my_client
Expand All @@ -55,7 +55,7 @@
networkUris: [ test1['uri'] ]
)
action :delete_bulk
only_if { client[:api_version] >= 1800 }
only_if { client[:api_version] >= 2400 }
end

# Example: Adds 'Fc1' to 'Scope1' and 'Scope2'
Expand Down
6 changes: 3 additions & 3 deletions examples/fcoe_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

oneview_fcoe_network 'FCoE1' do
Expand All @@ -37,7 +37,7 @@
action :create
end

# Only from API1800
# Only from API2400
# Example: Bulk deletes fcoe networks.
oneview_fcoe_network 'None' do
client my_client
Expand All @@ -46,7 +46,7 @@
networkUris: [ test1['uri'] ]
)
action :delete_bulk
only_if { client[:api_version] >= 1800 }
only_if { client[:api_version] >= 2400 }
end

# Adds 'FCoE1' to 'Scope1' and 'Scope2'
Expand Down
2 changes: 1 addition & 1 deletion examples/hypervisor_cluster_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

hcm = OneviewCookbook::Helper.load_resource(my_client, type: 'HypervisorManager', id: 'HCM')
Expand Down
2 changes: 1 addition & 1 deletion examples/hypervisor_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

# No action will be performed
Expand Down
2 changes: 1 addition & 1 deletion examples/interconnect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
url: ENV['ONEVIEWSDK_URL'],
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
api_version: 2200
api_version: 2400
}

interconnect = '0000A66101, interconnect 1'
Expand Down
2 changes: 1 addition & 1 deletion examples/logical_enclosure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
user: ENV['ONEVIEWSDK_USER'],
password: ENV['ONEVIEWSDK_PASSWORD'],
variant: 'Synergy',
api_version: 2200
api_version: 2400
}

# Example: Create a logical enclosure if it's missing
Expand Down
Loading

0 comments on commit 2ca56ce

Please sign in to comment.