From 4865040efa3d583df9c0300367ee17775fce9efe Mon Sep 17 00:00:00 2001 From: ShiriMoran <139739065+ShiriMoran@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:32:55 +0200 Subject: [PATCH] Update pkg/vpcmodel/nodesExplainability.go Co-authored-by: haim-kermany <82028281+haim-kermany@users.noreply.github.com> --- pkg/vpcmodel/nodesExplainability.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/vpcmodel/nodesExplainability.go b/pkg/vpcmodel/nodesExplainability.go index e088cfea4..e07ce40b9 100644 --- a/pkg/vpcmodel/nodesExplainability.go +++ b/pkg/vpcmodel/nodesExplainability.go @@ -172,6 +172,13 @@ func (c *VPCConfig) computeRouterAndActualRules(potentialRules *rulesAndConnDeta var filtersForExternal map[string]bool if routingResource != nil { filtersForExternal = routingResource.AppliedFiltersKinds() // relevant filtersExternal + var routingResource RoutingResource + var filtersForExternal map[string]bool + if err1 == nil && err2 == nil { + routingResource, _ = c.getRoutingResource(containingSrcNode, containingDstNode) + if routingResource != nil { + filtersForExternal = routingResource.AppliedFiltersKinds() // relevant filtersExternal + } } potential.router = routingResource potential.filtersExternal = filtersForExternal