def list_public_ip_blocks(module, driver, network_domain):
 try:
  blocks = driver.ex_list_public_ip_blocks(network_domain)
  return blocks
 except DimensionDataAPIException:
  e = get_exception()
  module.fail_json(msg=('Error retreving Public IP Blocks: %s' % e))

def list_public_ip_blocks ( module , driver , network_domain ) : try : blocks = driver . ex_list_public_ip_blocks ( network_domain ) return blocks except DimensionDataAPIException : e = get_exception ( ) module . fail_json ( msg = ( 'Error retreving Public IP Blocks: %s' % e ) )
get list of public ip blocks for a domain .