Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

id_pools_vmac_ranges and id_pools_WWNN_ranges and id_pools_sn_ranges do not have a get_all function #445

Open
DungKHoang opened this issue Jul 20, 2019 · 3 comments

Comments

@DungKHoang
Copy link

Scenario/Intent

Query ranges

Environment Details

  • OneView SDK Version: 4.80
  • OneView Appliance Version: 4.20
  • OneView Client API Version: 800
  • Python Version: 3.7
  • Platform: [Ubuntu

Steps to Reproduce

There is no function to get all the ranges

@sijeesh
Copy link
Collaborator

sijeesh commented Jul 23, 2019

@DungKHoang ,
Please have a look into the below module.
https://github.com/HewlettPackard/python-hpOneView/blob/release/v4.8.0/hpOneView/resources/servers/id_pools_ranges.py

I think we don't have an example file for this module, let me know if you want an example to use this module.

@russellnelsonbriggs
Copy link
Contributor

@DungKHoang is right - there is no get_all() method in that module, while most of the other modules have one. They are nice because they get all pages for you and return the members.

@sijeesh
Copy link
Collaborator

sijeesh commented Aug 22, 2019

@russellnelsonbriggs, As I mentioned above, please have a look at the id_pool_range module.
When you create an instance of the "IdPoolsRanges" class, pass the type(vmac, vsn, vwwn ) and get_all method will be available for the instance.

Example:
instance = IdPoolsRanges('vmac', connection)
instance.get_all()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants