diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-10 14:06:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-08-08 21:24:48 +0900 |
commit | 71e56c542e6a167dc3cd983aae2881a3c24c162a (patch) | |
tree | a449e3ed0889940fe47bb5f4ffca91228a4cc7e8 /internal/pkg/table | |
parent | 3dc23d3075f13f2976afd255ef2fd9b1410acc77 (diff) |
rpc cleanup
- clean up RPC function names
- rewrite gobgp command to use the api instead of config package
- delete unused client package
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'internal/pkg/table')
-rw-r--r-- | internal/pkg/table/message_test.go | 2 | ||||
-rw-r--r-- | internal/pkg/table/path_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/table/message_test.go b/internal/pkg/table/message_test.go index 28a380fe..8b3287d3 100644 --- a/internal/pkg/table/message_test.go +++ b/internal/pkg/table/message_test.go @@ -480,7 +480,7 @@ func TestBMP(t *testing.T) { } func unreachIndex(msgs []*bgp.BGPMessage) int { - for i, _ := range msgs { + for i := range msgs { for _, a := range msgs[i].Body.(*bgp.BGPUpdate).PathAttributes { if a.GetType() == bgp.BGP_ATTR_TYPE_MP_UNREACH_NLRI { return i diff --git a/internal/pkg/table/path_test.go b/internal/pkg/table/path_test.go index 449c4a8e..421502fa 100644 --- a/internal/pkg/table/path_test.go +++ b/internal/pkg/table/path_test.go @@ -205,7 +205,7 @@ func TestPathPrependAsnToFullPathAttr(t *testing.T) { origin := bgp.NewPathAttributeOrigin(0) asns := make([]uint16, 255) - for i, _ := range asns { + for i := range asns { asns[i] = 65000 + uint16(i) } |