mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com> (cherry picked from commit 0b269ff792bbd28e4adca9f09d13e7baf7a258bd) (cherry picked from commit b94dad5662b94584568998cfd2b9276ade0376f9)
This commit is contained in:
parent
aef985df3a
commit
09713b82d7
@ -160,7 +160,11 @@ func (vc *VirtualNetworkController) UpdateAR(tpl string) error {
|
||||
// * tpl: Template
|
||||
func (vc *VirtualNetworkController) Reserve(tpl string) (int, error) {
|
||||
response, err := vc.c.Client.Call("one.vn.reserve", vc.ID, tpl)
|
||||
return response.BodyInt(), err
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
|
||||
return response.BodyInt(), nil
|
||||
}
|
||||
|
||||
// FreeAR frees a reserved address range from a virtual network.
|
||||
|
Loading…
x
Reference in New Issue
Block a user