Merge pull request #13029 from ioito/automated-cherry-pick-of-#13027-upstream-release-3.7

Automated cherry pick of #13027: fix(region): google security group fix
This commit is contained in:
Zexi Li
2021-12-24 18:23:25 +08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (self *SGoogleRegionDriver) GetSecurityGroupRuleMaxPriority() int {
}
func (self *SGoogleRegionDriver) GetSecurityGroupRuleMinPriority() int {
return 65535
return 65534
}
func (self *SGoogleRegionDriver) GetProvider() string {
+3
View File
@@ -244,6 +244,9 @@ func (self *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error) {
}
rules := []cloudprovider.SecurityRule{}
for _, firewall := range firewalls {
if firewall.Priority == 65535 { // skip 65535 rule, because it not work
continue
}
_rules, err := firewall.toRules()
if err != nil {
return nil, err