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