Merge pull request #1303 from mrjana/overlay
ovmanager: Error out on vxlan id alloc failure
This commit is contained in:
commit
3f6e3727e3
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,6 @@ package ovmanager
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -111,7 +110,8 @@ func (d *driver) NetworkAllocate(id string, option map[string]string, ipV4Data,
|
|||
}
|
||||
|
||||
if err := n.obtainVxlanID(s); err != nil {
|
||||
log.Printf("Could not obtain vxlan id for pool %s: %v", s.subnetIP, err)
|
||||
n.releaseVxlanID()
|
||||
return nil, fmt.Errorf("could not obtain vxlan id for pool %s: %v", s.subnetIP, err)
|
||||
}
|
||||
|
||||
n.subnets = append(n.subnets, s)
|
||||
|
|
Loading…
Add table
Reference in a new issue