glog.Errorf("NetworkPlugin %s failed on the status hook for pod '%s' - %v",m.networkPlugin.Name(),kubecontainer.BuildPodFullName(podName,podNamespace),err)
}elseifnetStatus!=nil{
ip=netStatus.IP.String()
}
}
returnip
}
// getPodSandboxID gets the sandbox id by podUID and returns ([]sandboxID, error).
// Param state could be nil in order to get all sandboxes belonging to same pod.