diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-16 19:37:22 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-16 19:40:53 +0900 |
commit | 95e585d7f09413fe5fc89397f8b4d50ac41556b8 (patch) | |
tree | d8df20d14dce6dffff90a24c8f23c7a505e181e4 /table/table_test.go | |
parent | 504bd6f749224c493f3aa49197674ec08e7c0efe (diff) |
table: remove temporary structures
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_test.go')
-rw-r--r-- | table/table_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/table/table_test.go b/table/table_test.go index 094b6500..63ae026f 100644 --- a/table/table_test.go +++ b/table/table_test.go @@ -106,14 +106,14 @@ func TestTableGetDestinations(t *testing.T) { assert.Equal(t, ds, destinations) } -func TableCreatePeer() []*Peer { - peerT1 := &Peer{VersionNum: 4, RemoteAs: 65000} - peerT2 := &Peer{VersionNum: 4, RemoteAs: 65001} - peerT3 := &Peer{VersionNum: 4, RemoteAs: 65002} - peerT := []*Peer{peerT1, peerT2, peerT3} +func TableCreatePeer() []*PeerInfo { + peerT1 := &PeerInfo{VersionNum: 4, AS: 65000} + peerT2 := &PeerInfo{VersionNum: 4, AS: 65001} + peerT3 := &PeerInfo{VersionNum: 4, AS: 65002} + peerT := []*PeerInfo{peerT1, peerT2, peerT3} return peerT } -func TableCreateMSG(peerT []*Peer) []*ProcessMessage { +func TableCreateMSG(peerT []*PeerInfo) []*ProcessMessage { bgpMsgT1 := updateMsgT1() bgpMsgT2 := updateMsgT2() bgpMsgT3 := updateMsgT3() |