diff options
author | Peng Xiao <xiaoquwl@gmail.com> | 2016-08-18 11:00:21 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-21 08:29:42 +0900 |
commit | b0bead46c891e9dcc3dd7e8d347fc460c8db78b0 (patch) | |
tree | 640b91614902905399bcfd6e49ce189ed2fb40e5 /openswitch/openswitch.go | |
parent | 430a4f93e8ad9afdcca11aa167ea2f5513009a0d (diff) |
fixed some misspell error
Signed-off-by: Peng Xiao <xiaoquwl@gmail.com>
Diffstat (limited to 'openswitch/openswitch.go')
-rw-r--r-- | openswitch/openswitch.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/openswitch/openswitch.go b/openswitch/openswitch.go index 0b405a9f..4f6d7e0c 100644 --- a/openswitch/openswitch.go +++ b/openswitch/openswitch.go @@ -17,6 +17,11 @@ package openswitch import ( "fmt" + "net" + "reflect" + "strconv" + "time" + log "github.com/Sirupsen/logrus" api "github.com/osrg/gobgp/api" "github.com/osrg/gobgp/gobgp/cmd" @@ -25,10 +30,6 @@ import ( ovsdb "github.com/socketplane/libovsdb" "golang.org/x/net/context" "google.golang.org/grpc" - "net" - "reflect" - "strconv" - "time" ) const ( @@ -171,7 +172,7 @@ func parseRouteToGobgp(route ovsdb.RowUpdate, nexthops map[string]ovsdb.Row) (*a if len(nh) == 0 { log.WithFields(log.Fields{ "Topic": "openswitch", - }).Debug("nexthop addres does not exist") + }).Debug("nexthop address does not exist") } else if len(nh) == 1 { if net.ParseIP(nh[0].(string)) == nil { return nil, isWithdraw, isFromGobgp, fmt.Errorf("invalid nexthop address") |