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/destination_test.go | |
parent | 504bd6f749224c493f3aa49197674ec08e7c0efe (diff) |
table: remove temporary structures
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination_test.go')
-rw-r--r-- | table/destination_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/table/destination_test.go b/table/destination_test.go index 066ee98b..7584ae47 100644 --- a/table/destination_test.go +++ b/table/destination_test.go @@ -110,14 +110,14 @@ func TestDestinationCalculate(t *testing.T) { assert.Nil(t, e) } -func DestCreatePeer() []*Peer { - peerD1 := &Peer{VersionNum: 4, RemoteAs: 65000} - peerD2 := &Peer{VersionNum: 4, RemoteAs: 65001} - peerD3 := &Peer{VersionNum: 4, RemoteAs: 65002} - peerD := []*Peer{peerD1, peerD2, peerD3} +func DestCreatePeer() []*PeerInfo { + peerD1 := &PeerInfo{VersionNum: 4, AS: 65000} + peerD2 := &PeerInfo{VersionNum: 4, AS: 65001} + peerD3 := &PeerInfo{VersionNum: 4, AS: 65002} + peerD := []*PeerInfo{peerD1, peerD2, peerD3} return peerD } -func DestCreateMSG(peerD []*Peer) []*ProcessMessage { +func DestCreateMSG(peerD []*PeerInfo) []*ProcessMessage { bgpMsgD1 := updateMsgD1() bgpMsgD2 := updateMsgD2() bgpMsgD3 := updateMsgD3() |