def _parse_record_data(entry_data):
 ret = {}
 ipv4addrs = []
 aliases = []
 if ('canonical' in entry_data):
  ret['Canonical Name'] = entry_data['canonical']
 if ('ipv4addrs' in entry_data):
  for ipaddrs in entry_data['ipv4addrs']:
   ipv4addrs.append(ipaddrs['ipv4addr'])
  ret['IP Addresses'] = ipv4addrs
 if ('ipv4addr' in entry_data):
  ret['IP Address'] = entry_data['ipv4addr']
 if ('aliases' in entry_data):
  for alias in entry_data['aliases']:
   aliases.append(alias)
  ret['Aliases'] = aliases
 if ('name' in entry_data):
  ret['Name'] = entry_data['name']
 if ('view' in entry_data):
  ret['DNS View'] = entry_data['view']
 if ('network_view' in entry_data):
  ret['Network View'] = entry_data['network_view']
 if ('comment' in entry_data):
  ret['Comment'] = entry_data['comment']
 if ('network' in entry_data):
  ret['Network'] = entry_data['network']
 if ('_ref' in entry_data):
  ret['Record ID'] = entry_data['_ref']
 return ret

def _parse_record_data ( entry_data ) : ret = { } ipv4addrs = [ ] aliases = [ ] if ( 'canonical' in entry_data ) : ret [ 'Canonical Name' ] = entry_data [ 'canonical' ] if ( 'ipv4addrs' in entry_data ) : for ipaddrs in entry_data [ 'ipv4addrs' ] : ipv4addrs . append ( ipaddrs [ 'ipv4addr' ] ) ret [ 'IP Addresses' ] = ipv4addrs if ( 'ipv4addr' in entry_data ) : ret [ 'IP Address' ] = entry_data [ 'ipv4addr' ] if ( 'aliases' in entry_data ) : for alias in entry_data [ 'aliases' ] : aliases . append ( alias ) ret [ 'Aliases' ] = aliases if ( 'name' in entry_data ) : ret [ 'Name' ] = entry_data [ 'name' ] if ( 'view' in entry_data ) : ret [ 'DNS View' ] = entry_data [ 'view' ] if ( 'network_view' in entry_data ) : ret [ 'Network View' ] = entry_data [ 'network_view' ] if ( 'comment' in entry_data ) : ret [ 'Comment' ] = entry_data [ 'comment' ] if ( 'network' in entry_data ) : ret [ 'Network' ] = entry_data [ 'network' ] if ( '_ref' in entry_data ) : ret [ 'Record ID' ] = entry_data [ '_ref' ] return ret
returns the right value data wed be interested in for the specified record type .