Skip to content

Commit

Permalink
Merge pull request #310 from networkservicemesh/fix-feature-ovs-tests…
Browse files Browse the repository at this point in the history
…-on-kind

qfix: Use correct VxLAN port for the client/server cases
  • Loading branch information
glazychev-art authored Mar 27, 2024
2 parents b231e14 + af49eec commit b52aef4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/networkservice/mechanisms/vxlan/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@ func add(ctx context.Context, logger log.Logger, conn *networkservice.Connection
if !isClient {
egressIP = mechanism.DstIP()
remoteIP = mechanism.SrcIP()
port = mechanism.DstPort()
} else {
port = mechanism.SrcPort()
remoteIP = mechanism.DstIP()
egressIP = mechanism.SrcIP()
}
if !isClient {
port = mechanism.SrcPort()
} else {
port = mechanism.DstPort()
}
ovsTunnelName := getTunnelPortName(remoteIP.String())
vxlanInterfacesMutex.Lock()
defer vxlanInterfacesMutex.Unlock()
Expand Down

0 comments on commit b52aef4

Please sign in to comment.