SEBA-432
SEBA-565
SEBA-654 (alarms)

implemented

fix Jenkins make errors
fix merge conflicts
address review comments

Change-Id: Ia2e95afb33ce55054afa1fcbd9beb6ada62dd764
diff --git a/core/io_info.go b/core/io_info.go
index e56d4b6..36eb67f 100644
--- a/core/io_info.go
+++ b/core/io_info.go
@@ -25,10 +25,11 @@
 	log "github.com/sirupsen/logrus"
 )
 
+// Ioinfo represents the input/output
 type Ioinfo struct {
 	Name    string
-	iotype  string //nni or uni
-	ioloc   string //inside or outsode
+	iotype  string // nni or uni
+	ioloc   string // inside or outside
 	intfid  uint32
 	onuid   uint32
 	handler *pcap.Handle
@@ -45,6 +46,7 @@
 	return nil, err
 }
 
+// IdentifyNniIoinfo returns matched ioinfo
 func (s *Server) IdentifyNniIoinfo(ioloc string) (*Ioinfo, error) {
 	for _, ioinfo := range s.Ioinfos {
 		if ioinfo.iotype == "nni" && ioinfo.ioloc == ioloc {
@@ -56,6 +58,7 @@
 	return nil, err
 }
 
+// CreateVethPairs creates veth pairs with given names
 func CreateVethPairs(veth1 string, veth2 string) (err error) {
 	err = exec.Command("ip", "link", "add", veth1, "type", "veth", "peer", "name", veth2).Run()
 	if err != nil {
@@ -80,6 +83,7 @@
 	return
 }
 
+// RemoveVeth deletes veth by given name
 func RemoveVeth(name string) error {
 	err := exec.Command("ip", "link", "del", name).Run()
 	if err != nil {
@@ -89,6 +93,7 @@
 	return err
 }
 
+// RemoveVeths deletes veth
 func RemoveVeths(names []string) {
 	for _, name := range names {
 		RemoveVeth(name)