Added more comments.

This commit is contained in:
Dawn Chen
2015-06-23 16:28:41 -07:00
parent 8d76d4ee57
commit 9dbe6fe4e4
2 changed files with 11 additions and 1 deletions

View File

@@ -85,6 +85,9 @@ func ensureCbr0(wantCIDR *net.IPNet) error {
return nil
}
// Check if cbr0 network interface is configured or not, and take action
// when the configuration is missing on the node, and propagate the rest
// error to kubelet to handle.
func cbr0Exists() (bool, error) {
if _, err := os.Stat("/sys/class/net/cbr0"); err != nil {
if os.IsNotExist(err) {