code: def add_host_with_group(self, ip, mac, groupname):
  		
  		msg = OmapiMessage.open(b"host")
  		msg.message.append(("create", struct.pack("!I", 1)))
  		msg.message.append(("exclusive", struct.pack("!I", 1)))
  		msg.obj.append(("hardware-address", pack_mac(mac)))
  		msg.obj.append(("hardware-type", struct.pack("!I", 1)))
  		msg.obj.append(("ip-address", pack_ip(ip)))
  		msg.obj.append(("group", groupname))
  		response = self.query_server(msg)
  		if response.opcode != OMAPI_OP_UPDATE:
  			raise OmapiError("add failed")
docs: Adds a host with given ip and mac in a group named groupname
  		@type ip: str
  		@type mac: str
  		@type groupname: str