SEBA-758 send periodic port stats to voltha
SEBA-790 get flow, gemport, and tcont information through API
fix lint errors
Change-Id: I10909e1992eba71d8e54c976ccbcea8778e35539
diff --git a/core/io_info.go b/core/io_info.go
index 527aaa4..caad5ef 100644
--- a/core/io_info.go
+++ b/core/io_info.go
@@ -41,7 +41,7 @@
return ioinfo, nil
}
}
- err := errors.New("No matched Ioinfo is found")
+ err := errors.New("no matched Ioinfo is found")
logger.Error("identifyUniIoinfo %s", err)
return nil, err
}
@@ -53,7 +53,7 @@
return ioinfo, nil
}
}
- err := errors.New("No matched Ioinfo is found")
+ err := errors.New("no matched Ioinfo is found")
logger.Error("IdentifyNniIoinfo %s", err)
return nil, err
}
@@ -84,13 +84,13 @@
}
// RemoveVeth deletes veth by given name
-func RemoveVeth(name string) error {
+func RemoveVeth(name string) {
err := exec.Command("ip", "link", "del", name).Run()
if err != nil {
logger.WithField("veth", name).Error("Fail to removeVeth()", err)
+ return
}
logger.WithField("veth", name).Info("Veth was removed.")
- return err
}
// RemoveVeths deletes veth