Skip to content

Commit ea054b9

Browse files
Update cni/network/multitenancy.go
Co-authored-by: tamilmani1989 <[email protected]> Signed-off-by: Paul Yu <[email protected]>
1 parent 04e2ba1 commit ea054b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cni/network/multitenancy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (m *Multitenancy) DetermineSnatFeatureOnHost(snatFile, nmAgentSupportedApis
161161

162162
// addDefaultRouteToGateway appends a default route
163163
// to both epInfo and result. Returns error if gwStr is not a valid IP.
164-
func (m *Multitenancy) addDefaultRouteToGateway(gwStr string, epInfo *network.EndpointInfo, result *network.InterfaceInfo) error {
164+
func (m *Multitenancy) addDefaultRoute(gwStr string, epInfo *network.EndpointInfo, result *network.InterfaceInfo) error {
165165
gw := net.ParseIP(gwStr)
166166
if gw == nil {
167167
return fmt.Errorf("invalid gateway IP: %s", gwStr) //nolint

0 commit comments

Comments
 (0)