Skip to content

Commit 8a45217

Browse files
paulyufan2Copilot
andauthored
Update cni/network/multitenancy.go
Co-authored-by: Copilot <[email protected]> Signed-off-by: Paul Yu <[email protected]>
1 parent 1833f07 commit 8a45217

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cni/network/multitenancy.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ func (m *Multitenancy) SetupRoutingForMultitenancy(
204204
)
205205
}
206206
}
207+
// Restore DNS SNAT routing if enabled
208+
if epInfo.EnableSnatForDns {
209+
if err := m.addSnatForDNS(epInfo, result); err != nil {
210+
logger.Error("failed adding SNAT for DNS",
211+
zap.Error(err),
212+
)
213+
}
214+
}
207215
}
208216

209217
setupInfraVnetRoutingForMultitenancy(nwCfg, azIpamResult, epInfo)

0 commit comments

Comments
 (0)