mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix(region): google security group fix
This commit is contained in:
@@ -76,7 +76,7 @@ func (self *SGoogleRegionDriver) GetSecurityGroupRuleMaxPriority() int {
|
||||
}
|
||||
|
||||
func (self *SGoogleRegionDriver) GetSecurityGroupRuleMinPriority() int {
|
||||
return 65535
|
||||
return 65534
|
||||
}
|
||||
|
||||
func (self *SGoogleRegionDriver) GetProvider() string {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user