diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-08 10:57:43 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-08 13:13:34 +0900 |
commit | 9298e5eeca78e8bb02ff34b500add622b73b4f5f (patch) | |
tree | 857f7646d93ba770527e61edd76dd1838b440249 /packet/bgp_test.go | |
parent | 89b904b7417932e78c8c6fea2ad5d8a35891b0a4 (diff) |
*: kill bgp.NLRInfo and bgp.WithdrawnRoute
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r-- | packet/bgp_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go index 74fcb510..20664ba0 100644 --- a/packet/bgp_test.go +++ b/packet/bgp_test.go @@ -37,9 +37,9 @@ func open() *BGPMessage { } func update() *BGPMessage { - w1 := WithdrawnRoute{*NewIPAddrPrefix(23, "121.1.3.2")} - w2 := WithdrawnRoute{*NewIPAddrPrefix(17, "100.33.3.0")} - w := []WithdrawnRoute{w1, w2} + w1 := NewIPAddrPrefix(23, "121.1.3.2") + w2 := NewIPAddrPrefix(17, "100.33.3.0") + w := []*IPAddrPrefix{w1, w2} aspath1 := []AsPathParamInterface{ NewAsPathParam(2, []uint16{1000}), @@ -142,7 +142,7 @@ func update() *BGPMessage { }, }, } - n := []NLRInfo{*NewNLRInfo(24, "13.2.3.1")} + n := []*IPAddrPrefix{NewIPAddrPrefix(24, "13.2.3.1")} return NewBGPUpdateMessage(w, p, n) } |