diff --git a/plugins/meta/bandwidth/main.go b/plugins/meta/bandwidth/main.go index 1df1ceb55..aa7a70600 100644 --- a/plugins/meta/bandwidth/main.go +++ b/plugins/meta/bandwidth/main.go @@ -299,6 +299,11 @@ func cmdCheck(args *skel.CmdArgs) error { bandwidth := getBandwidth(bwConf) + // No bandwidth config; nothing to do. + if bandwidth == nil || bandwidth.isZero() { + return nil + } + if bandwidth.IngressRate > 0 && bandwidth.IngressBurst > 0 { rateInBytes := bandwidth.IngressRate / 8 burstInBytes := bandwidth.IngressBurst / 8