mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #250 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-secgroup to release/2.1.0
* commit '13c576672baa713385c7a14fabf73aca4ec91f85': 避免私有云安全组规则下发不完成,ruleset后面补充
This commit is contained in:
@@ -3429,16 +3429,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