summaryrefslogtreecommitdiffhomepage
path: root/zebra/zapi.go
diff options
context:
space:
mode:
authorPeng Xiao <xiaoquwl@gmail.com>2016-08-18 11:00:21 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-21 08:29:42 +0900
commitb0bead46c891e9dcc3dd7e8d347fc460c8db78b0 (patch)
tree640b91614902905399bcfd6e49ce189ed2fb40e5 /zebra/zapi.go
parent430a4f93e8ad9afdcca11aa167ea2f5513009a0d (diff)
fixed some misspell error
Signed-off-by: Peng Xiao <xiaoquwl@gmail.com>
Diffstat (limited to 'zebra/zapi.go')
-rw-r--r--zebra/zapi.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go
index 1f995248..69f72420 100644
--- a/zebra/zapi.go
+++ b/zebra/zapi.go
@@ -18,11 +18,12 @@ package zebra
import (
"encoding/binary"
"fmt"
- log "github.com/Sirupsen/logrus"
"io"
"net"
"strings"
"syscall"
+
+ log "github.com/Sirupsen/logrus"
)
const (
@@ -488,7 +489,7 @@ func (b *InterfaceUpdateBody) Serialize() ([]byte, error) {
}
func (b *InterfaceUpdateBody) String() string {
- s := fmt.Sprintf("name: %s, idx: %d, status: %s, flags: %s, metric: %d, mtu: %d, mtu6: %d, bandwith: %d", b.Name, b.Index, b.Status, intfflag2string(b.Flags), b.Metric, b.MTU, b.MTU6, b.Bandwidth)
+ s := fmt.Sprintf("name: %s, idx: %d, status: %s, flags: %s, metric: %d, mtu: %d, mtu6: %d, bandwidth: %d", b.Name, b.Index, b.Status, intfflag2string(b.Flags), b.Metric, b.MTU, b.MTU6, b.Bandwidth)
if len(b.HardwareAddr) > 0 {
return s + fmt.Sprintf(", mac: %s", b.HardwareAddr)
}