printf("%svm_image : %s\n", ind, stat.vm_image);
printf("%svm_require : %s\n", ind, stat.vm_require);
printf("%svm_usage : %s\n", ind, stat.vm_usage);
+ printf("%svm_name : %s\n", ind, stat.vm_name);
+ printf("%svm_id : %s\n", ind, stat.vm_id);
+ printf("%svm_phy_hostname : %s\n", ind, stat.vm_phy_hostname);
}
printf("\n");
RESOURCES
IMAGE
REQUIRE
- HOSTVM
+ HOSTNAME
+ ID
/;
VM_REQUIRE
VM_STATE
VM_USAGE
+ VM_ID
+ VM_NAME
+ VM_PHY_HOSTNAME
/;
if (ret) ret = enc_string(ret, stat->vm_usage);
if (ret) ret = enc_string(ret, stat->vm_hostname);
if (ret) ret = enc_string(ret, stat->vm_machine);
+ if (ret) ret = enc_string(ret, stat->vm_id);
+ if (ret) ret = enc_string(ret, stat->vm_name);
+ if (ret) ret = enc_string(ret, stat->vm_phy_hostname);
return ret;
}
if (tmp_in != NULL) stat->vm_usage = dec_string(tmp_in, &tmp_in);
if (tmp_in != NULL) stat->vm_hostname = dec_string(tmp_in, &tmp_in);
if (tmp_in != NULL) stat->vm_machine = dec_string(tmp_in, &tmp_in);
+ if (tmp_in != NULL) stat->vm_id = dec_string(tmp_in, &tmp_in);
+ if (tmp_in != NULL) stat->vm_name = dec_string(tmp_in, &tmp_in);
+ if (tmp_in != NULL) stat->vm_phy_hostname = dec_string(tmp_in, &tmp_in);
*rest = tmp_in;
if (USABLE_DATA(res)) {
rep_cond(js->pub.vm_require, e->vMCreate.require);
rep_cond(js->pub.vm_image, e->vMCreate.image);
+ rep_cond(js->pub.vm_id, e->vMCreate.id);
+ rep_cond(js->pub.vm_name, e->vMCreate.name);
+ rep_cond(js->pub.owner, e->vMCreate.owner);
+ rep_cond(js->pub.vm_hostname, e->vMCreate.hostname);
+ rep_cond(js->pub.destination, e->vMCreate.hostname);
}
break;
case EDG_WLL_EVENT_VMHOST:
if (USABLE_DATA(res)) {
- rep_cond(js->pub.vm_hostname, e->vMHost.hostvm);
+ rep_cond(js->pub.vm_phy_hostname, e->vMHost.hostname);
//XXX transfer to prolog/boot state?
}
break;
@type VMCreate create (register) virtual machine
string image machine image
string require machine requirements
+ string id machine id
+ string name machine name
+ string owner machine owner
+ string hostname hostname of VM
@type VMHost
- string hostvm hostname of VM
+ string hostname hostname of physical machine of VM
@type VMRunning VM is running
string vm_usage VM usage
string vm_hostname VM hostname
string vm_machine physical machine on which VM runs
+string vm_id VM id
+string vm_name VM name
+string vm_phy_hostname hostname of physical machine running VM
_pad_ 20