mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #3035 from ioito/hotfix/qx-lb-vpc-detail
add: lb vpc info
This commit is contained in:
@@ -402,6 +402,12 @@ func (lb *SLoadbalancer) GetCustomizeColumns(ctx context.Context, userCred mccli
|
||||
extra.Set("eip_mode", jsonutils.NewString(eip.Mode))
|
||||
}
|
||||
|
||||
if len(lb.VpcId) > 0 {
|
||||
if vpc := lb.GetVpc(); vpc != nil {
|
||||
extra.Set("vpc", jsonutils.NewString(vpc.Name))
|
||||
}
|
||||
}
|
||||
|
||||
if lb.BackendGroupId != "" {
|
||||
lbbg, err := LoadbalancerBackendGroupManager.FetchById(lb.BackendGroupId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user