Skip to content

Commit

Permalink
Fixed: bidirectional policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyam Sinha committed Feb 9, 2022
1 parent 6c4b921 commit a38de55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apoxfrm/libs/networkpolicies/networkpolicies.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 272,8 @@ func (n *netPolInfo) xfrm() {

// Add reflexive rules for bidirectional policies
if n.netpol.ApplyPolicyMode == gaia.NetworkAccessPolicyApplyPolicyModeBidirectional {
n.outgoing.IncomingRules = n.incoming.IncomingRules
n.incoming.OutgoingRules = n.outgoing.OutgoingRules
n.outgoing.IncomingRules = n.outgoing.OutgoingRules
n.incoming.OutgoingRules = n.incoming.IncomingRules
}

// Create transformations
Expand Down

0 comments on commit a38de55

Please sign in to comment.