mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Automatic merge from release/2.1.0 -> release/2.2.0
* commit '4e7702f0ae7a0ca5f70cf408d3129da76300ac61': 避免私有云安全组规则下发不完成,ruleset后面补充
This commit is contained in:
@@ -3437,16 +3437,16 @@ func (self *SGuest) GetJsonDescAtHypervisor(ctx context.Context, host *SHost) *j
|
||||
TODO
|
||||
srs := self.getSecurityRuleSet()
|
||||
if srs.estimatedSinglePortRuleCount() <= options.FirewallFlowCountLimit {
|
||||
rules := self.getSecurityRules()
|
||||
if len(rules) > 0 {
|
||||
desc.Add(jsonutils.NewString(rules), "security_rules")
|
||||
}
|
||||
rules = self.getAdminSecurityRules()
|
||||
if len(rules) > 0 {
|
||||
desc.Add(jsonutils.NewString(rules), "admin_security_rules")
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
rules := self.getSecurityRules()
|
||||
if len(rules) > 0 {
|
||||
desc.Add(jsonutils.NewString(rules), "security_rules")
|
||||
}
|
||||
rules = self.getAdminSecurityRules()
|
||||
if len(rules) > 0 {
|
||||
desc.Add(jsonutils.NewString(rules), "admin_security_rules")
|
||||
}
|
||||
|
||||
extraOptions := self.getExtraOptions()
|
||||
if extraOptions != nil {
|
||||
|
||||
Reference in New Issue
Block a user