mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): cloudpods ipv6 sync (#19445)
This commit is contained in:
@@ -333,6 +333,9 @@ func isIpUsed(ipstr string, addrTable map[string]bool, recentUsedAddrTable map[s
|
||||
}
|
||||
|
||||
func (snet *SNetwork) getFreeIP6(addrTable map[string]bool, recentUsedAddrTable map[string]bool, candidate string) (string, error) {
|
||||
if !snet.IsSupportIPv6() {
|
||||
return "", errors.Wrapf(cloudprovider.ErrNotSupported, "ipv6")
|
||||
}
|
||||
iprange := snet.getIPRange6()
|
||||
// Try candidate first
|
||||
if len(candidate) > 0 {
|
||||
|
||||
@@ -60,6 +60,10 @@ func (self *SVpc) GetCidrBlock() string {
|
||||
return self.CidrBlock
|
||||
}
|
||||
|
||||
func (self *SVpc) GetCidrBlock6() string {
|
||||
return self.CidrBlock6
|
||||
}
|
||||
|
||||
func (self *SVpc) GetIRouteTableById(id string) (cloudprovider.ICloudRouteTable, error) {
|
||||
return nil, cloudprovider.ErrNotImplemented
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user