mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
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