Beispiel #1
0
func modifyGuest(c *cli.Client, id string, spec string) cli.JMap {
	guest, _ := c.Patch("guest", "guests/"+id, spec)
	return guest
}
Beispiel #2
0
func modifyConfig(c *cli.Client, id string, spec string) cli.JMap {
	conf, _ := c.Patch("config", "hypervisors/"+id+"/config", spec)
	return conf
}
Beispiel #3
0
func modifySubnets(c *cli.Client, id string, spec string) cli.JMap {
	subnets, _ := c.Patch("subnets", "hypervisors/"+id+"/subnets", spec)
	return subnets
}
Beispiel #4
0
func modifyHV(c *cli.Client, id string, spec string) cli.JMap {
	hv, _ := c.Patch("hypervisor", "hypervisors/"+id, spec)
	return hv
}