code: def add_host(host):
      
      p = new_prefix()
      p.prefix = str(host['ipaddr'])
      p.type = "host"
      p.description = host['description']
      p.node = host['fqdn']
      p.avps = {}
  
      # Use remaining data from ipplan to populate comment field.
      if 'additional' in host:
          p.comment = host['additional']
  
      # Use specific info to create extra attributes.
      if len(host['location']) > 0:
          p.avps['location'] = host['location']
  
      if len(host['mac']) > 0:
          p.avps['mac'] = host['mac']
  
      if len(host['phone']) > 0:
          p.avps['phone'] = host['phone']
  
      if len(host['user']) > 0:
          p.avps['user'] = host['user']
  
      return p
docs: Put your host information in the prefix object.