python-hpOneView icon indicating copy to clipboard operation
python-hpOneView copied to clipboard

id_pools_vmac_ranges and id_pools_WWNN_ranges and id_pools_sn_ranges do not have a get_all function

Open DungKHoang opened this issue 6 years ago • 3 comments

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

DungKHoang avatar Jul 20 '19 02:07 DungKHoang

@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.

sijeesh avatar Jul 23 '19 06:07 sijeesh

@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.

russellnelsonbriggs avatar Aug 21 '19 22:08 russellnelsonbriggs

@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()

sijeesh avatar Aug 22 '19 10:08 sijeesh