mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
capability: public network count filter by default vpc
This commit is contained in:
@@ -622,7 +622,7 @@ func getNetworkCountByFilter(region *SCloudregion, zone *SZone, domainId string,
|
||||
}
|
||||
vpcs := vpcQuery.SubQuery()*/
|
||||
|
||||
wireQuery := WireManager.Query()
|
||||
wireQuery := WireManager.Query().Equals("vpc_id", api.DEFAULT_VPC_ID)
|
||||
if len(domainId) > 0 {
|
||||
ownerId := &db.SOwnerId{DomainId: domainId}
|
||||
wireQuery = WireManager.FilterByOwner(wireQuery, ownerId, rbacutils.ScopeDomain)
|
||||
|
||||
Reference in New Issue
Block a user