mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #6232 from tb365/bugfix/tb-bugfix-0509
huawei network id fix
This commit is contained in:
@@ -950,7 +950,8 @@ func (lb *SLoadbalancer) SyncWithCloudLoadbalancer(ctx context.Context, userCred
|
||||
lb.EgressMbps = extLb.GetEgressMbps()
|
||||
lb.ChargeType = extLb.GetChargeType()
|
||||
lb.ManagerId = provider.Id
|
||||
|
||||
lbNetworkIds := getExtLbNetworkIds(extLb)
|
||||
lb.NetworkId = strings.Join(lbNetworkIds, ",")
|
||||
if extLb.GetMetadata() != nil {
|
||||
lb.LBInfo = extLb.GetMetadata()
|
||||
}
|
||||
|
||||
@@ -149,7 +149,12 @@ func (self *SLoadbalancer) GetNetworkType() string {
|
||||
}
|
||||
|
||||
func (self *SLoadbalancer) GetNetworkIds() []string {
|
||||
return []string{self.VipSubnetID}
|
||||
net := self.GetNetwork()
|
||||
if net != nil {
|
||||
return []string{net.GetId()}
|
||||
}
|
||||
|
||||
return []string{}
|
||||
}
|
||||
|
||||
func (self *SLoadbalancer) GetNetwork() *SNetwork {
|
||||
|
||||
Reference in New Issue
Block a user