def get_address_pools(con, srv, types):
    if types == 'ALL' or types == 'VMAC':
        vmac = srv.get_vmac_pool()
        print()
        for key in sorted(vmac):
            print('{0:16} : {1:}'.format(key, vmac[key]))
        if 'rangeUris' in vmac:
            for uri in vmac['rangeUris']:
                ranges = con.get(uri)
                print('startAddress     :', ranges['startAddress'])
                print('endAddress       :', ranges['endAddress'])
                print('totalCount       :', ranges['totalCount'])
    if types == 'ALL' or types == 'VWWN':
        vwwn = srv.get_vwwn_pool()
        print()
        for key in sorted(vwwn):
            print('{0:16} : {1:}'.format(key, vwwn[key]))
        if 'rangeUris' in vwwn:
            for uri in vwwn['rangeUris']:
                ranges = con.get(uri)
                print('startAddress     :', ranges['startAddress'])
                print('endAddress       :', ranges['endAddress'])
                print('totalCount       :', ranges['totalCount'])
    if types == 'ALL' or types == 'VSN':
        vsn = srv.get_vsn_pool()
        print()
        for key in sorted(vsn):
            print('{0:16} : {1:}'.format(key, vsn[key]))
        if 'rangeUris' in vsn:
            for uri in vsn['rangeUris']:
                ranges = con.get(uri)
                print('startAddress     :', ranges['startAddress'])
                print('endAddress       :', ranges['endAddress'])
                print('totalCount       :', ranges['totalCount'])
dataset/ETHPy150Open HewlettPackard/python-hpOneView/examples/scripts/get-address-pool.py/get_address_pools/original