Skip to content

Commit

Permalink
Merge pull request #234 from HewlettPackard/api/1200/volume_attachment
Browse files Browse the repository at this point in the history
Api/1200/volume attachment
  • Loading branch information
sijeesh committed Mar 3, 2020
2 parents 1c282f5 + c098b8a commit 260ae0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- Storage volume template
- Uplink set
- Volume
- Volume attachment

### Image Streamer support
- Deployment plan
Expand Down
7 changes: 7 additions & 0 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@
|<sub>/rest/storage-systems/{id}/managedPorts/{portId}</sub> | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-systems/{id}/reachable-ports</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x:|
|<sub>/rest/storage-systems/{id}/templates</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
| **Storage Volume Attachments** |
|<sub>/rest/storage-volume-attachments</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-volume-attachments/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-volume-attachments/repair</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-volume-attachments/repair</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-volume-attachments/{attachmentId}/paths</sub> | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-volume-attachments/{attachmentId)/paths/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
| **Storage Volume Templates** |
|<sub>/rest/storage-volume-templates</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-volume-templates</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
Expand Down
7 changes: 4 additions & 3 deletions lib/puppet/provider/oneview_volume_attachment/c7000.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (C) Copyright 2016-2020 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 @@ -43,8 +43,9 @@ def found
end

def get_extra_unmanaged_volumes
extra_unmanaged_volumes = @resource_type.get_extra_unmanaged_volumes(@client)['members']
raise "\n\nNo Unmanaged volumes were found on the appliance.\n\n" if extra_unmanaged_volumes.empty?
unmanaged_volumes_out = @resource_type.get_extra_unmanaged_volumes(@client)
raise "\n\nNo Unmanaged volumes were found on the appliance.\n\n" if unmanaged_volumes_out.empty?
extra_unmanaged_volumes = unmanaged_volumes_out['members']
Puppet.notice "\n\nUnmanaged volumes:\n\n"
extra_unmanaged_volumes.each do |unmanaged_volume|
Puppet.notice "\n- #{unmanaged_volume['ownerUri']}\n"
Expand Down

0 comments on commit 260ae0e

Please sign in to comment.