Skip to content

Commit

Permalink
Update pkg/vpcmodel/nodesExplainability.go
Browse files Browse the repository at this point in the history
Co-authored-by: haim-kermany <[email protected]>
  • Loading branch information
ShiriMoran and haim-kermany authored Jan 17, 2024
1 parent 4865040 commit f8a8dd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/vpcmodel/nodesExplainability.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ func (c *VPCConfig) computeRouterAndActualRules(potentialRules *rulesAndConnDeta
actual.rules = &rulesConnection{*actualIngress, *actualEgress}
}
actualRulesAndConn[i] = actual
}
actual := *potential
if !potential.src.IsInternal() || !potential.dst.IsInternal() {
actualIngress := computeActualRules(&potential.rules.ingressRules, filtersForExternal)
actualEgress := computeActualRules(&potential.rules.egressRules, filtersForExternal)
actual.rules = &rulesConnection{*actualIngress, *actualEgress}
}
return &actualRulesAndConn
}

Expand Down

0 comments on commit f8a8dd2

Please sign in to comment.