Skip to content

Commit

Permalink
Fixed NIC type lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bohuini committed Jun 5, 2024
1 parent 3c6b1d0 commit 867fb9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cns/middlewares/k8sSwiftV2_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func (k *K8sSWIFTv2Middleware) setRoutes(podIPInfo *cns.PodIpInfo) error {
}
podIPInfo.SkipDefaultRoutes = true

case cns.BackendNIC, cns.NodeNetworkInterfaceBackendNIC, cns.NodeNetworkInterfaceAccelnetFrontendNIC:
// No-op NIC types. These NIC types are intentionally left as no-ops
default:
return errInvalidSWIFTv2NICType
}
Expand Down

0 comments on commit 867fb9d

Please sign in to comment.