Skip to content

Commit

Permalink
Merge pull request #495 from HewlettPackard/release_2400
Browse files Browse the repository at this point in the history
Release changes for 2400
  • Loading branch information
yuvirani authored Feb 12, 2021
2 parents d7cf5fd + 24b19e5 commit 0ff6ceb
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ratings:
exclude_paths:
- spec/
- examples/
- attributes/
- attributes/
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
[What do you *expect* to happen after taking the steps above?]

### Actual Result
[What *actually* happens after the steps above? Include error output or a link to a gist.]
[What *actually* happens after the steps above? Include error output or a link to a gist]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ doc/

# Testing
recipes/*
.recipes/*
.recipes/*
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ Style/SingleLineBlockParams:
Enabled: false

Style/WordArray:
Enabled: false
Enabled: false
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ script:

matrix:
allow_failures:
- rvm: 2.5
- rvm: 2.5
2 changes: 1 addition & 1 deletion .yardopts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libraries/**/*.rb - LICENSE metadata.rb CHANGELOG.md attributes/**/*.rb
libraries/**/*.rb - LICENSE metadata.rb CHANGELOG.md attributes/**/*.rb
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 3.8.0(Unrelesed)
## 3.8.0
### Notes
- This release extends support of the SDK to OneView REST API version 2400 (OneView v5.60).

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ All releases are tagged in git. To see the releases available to you see the cha

Need to report an issue? Use the github issues:

- <https://github.com/HewlettPackard/oneview-chef/issues>
- <https://github.com/HewlettPackard/oneview-chef/issues>
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ CMD "/bin/bash"
# ONEVIEWSDK_PASSWORD

# And if you're running Image Streamer examples, you'll need to set this too:
# I3S_URL
# I3S_URL
1 change: 1 addition & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Examples of Chef Resources

### [oneview_resource](examples/oneview_resource.rb)
This is a generic provider for managing any OneView resource.
This really exists only for resources that exist in the SDK but don't have a Chef resource provider. If a specific resource exists, please use it instead.
Expand Down
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2015-2016 Hewlett Packard Enterprise
Copyright 2015-2021 Hewlett Packard Enterprise

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

OV Version | 5.60 | 5.50 | 5.40 | 5.30 |
| ------------- |:-------------:| -------------:| -------------:| -------------:|
SDK Version/Tag | [Master](https://github.com/HewlettPackard/oneview-chef/tree/master) | [v3.7.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.7.0) | [v3.6.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.6.0) | [v3.5.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.5.0) |
SDK Version/Tag | [v3.8.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.8.0) | [v3.7.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.7.0) | [v3.6.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.6.0) | [v3.5.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.5.0) |
Build Status | ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)|

## Introduction
Expand Down Expand Up @@ -36,10 +36,10 @@ The light weight containerized version of the HPE OneView SDK for Chef is availa
```bash
# Download and store a local copy of oneview-chef and
# use it as a Docker image.
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.7.0-OV5.5
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.8.0-OV5.6
# Run docker commands below given, which will in turn create
# a sh session where you can create files, issue commands and execute the recipes.
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.7.0-OV5.5 /bin/sh
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.8.0-OV5.6 /bin/sh
```

## Local Setup for oneview-chef
Expand All @@ -57,7 +57,7 @@ $ cd oneview

### Local installation requires the gem in your Gemfile:
```ruby
gem 'oneview-sdk', '~> 5.17.0'
gem 'oneview-sdk', '~> 5.18.0'
```
### Install Chef Sdk dependencies from Gemfile

Expand All @@ -70,7 +70,7 @@ The cookbook 'metadata' is not intended to include any recipes instead specifies

```ruby
# my_cookbook/metadata.rb
depends 'oneview', '~> 3.7.0'
depends 'oneview', '~> 3.8.0'
```

## Credentials
Expand Down Expand Up @@ -149,7 +149,7 @@ end
## Examples
The examples provided here will help you to understand the detailed usage of each resource in Chef Sdk. It allows users to easily create, update, query and delete resources.

You can find the resource examples [here](https://github.com/HewlettPackard/oneview-chef/blob/ReadMeUpdate/EXAMPLES.md). This document provides the list of attributes and the methods being used in each resource to perform CRUD operations on the oneview appliance.
You can find the resource examples [here](https://github.com/HewlettPackard/oneview-chef/blob/master/EXAMPLES.md). This document provides the list of attributes and the methods being used in each resource to perform CRUD operations on the oneview appliance.
- attributes: client, data, scopes, etc.
- methods: :create, :delete, :delete_bulk

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Copyright 2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ For instance, if your resource is the oneview_test_resource, and the new action
3. The new hash entry must be the key to a symbol list containing all the resource actions, so the symbol `:prepare_for_management` must be added to the _:oneview_test_resource_ entry.
After that your custom matcher will be automatically generated named _prepare_oneview_test_resource_for_management_. (Read the file documentation for more info).

Also the custom matchers need to be tested too. Simply add the new tests for the matchers created in the `spec/unit/matchers_spec.rb` as soon as they are implemented
Also the custom matchers need to be tested too. Simply add the new tests for the matchers created in the `spec/unit/matchers_spec.rb` as soon as they are implemented
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Copyright 2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion chefignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ Strainerfile
# Vagrant #
###########
.vagrant
Vagrantfile
Vagrantfile
13 changes: 12 additions & 1 deletion examples/logical_interconnect.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
# (c) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,6 +97,17 @@
action :update_igmp_settings
end

# Update port flap protection settings
oneview_logical_interconnect 'LE-LIG' do
client my_client
data(
portFlapProtection: {
portFlapThresholdPerInterval: 10,
}
)
action :update_port_flap_settings
end

interconnect = OneviewCookbook::Helper.load_resource(my_client, type: 'Interconnect', id: '0000A66101, interconnect 3')
ports = interconnect['ports']
uplink_port = nil
Expand Down
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2016-2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,7 +16,7 @@
description 'Provides HPE OneView & Image Streamer resources'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))

version '3.7.0'
version '3.8.0'

source_url 'https://github.com/HewlettPackard/oneview-chef'
issues_url 'https://github.com/HewlettPackard/oneview-chef/issues'
Expand Down

0 comments on commit 0ff6ceb

Please sign in to comment.