diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-09-22 10:29:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-07 21:53:46 +0900 |
commit | 9e584acea92ba17a6792d4724efad0e51c118768 (patch) | |
tree | 32456e94ed1de8e57a97cf4a38d88ad43ee86680 /table/path_test.go | |
parent | 9d90d038a703f9e37e6fae4c1d035e889161a9c4 (diff) |
*: Support BGP Confederations (RFC 5065)
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'table/path_test.go')
-rw-r--r-- | table/path_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/table/path_test.go b/table/path_test.go index f2b77bc5..768b76bf 100644 --- a/table/path_test.go +++ b/table/path_test.go @@ -116,7 +116,7 @@ func TestPathPrependAsnToExistingSeqAttr(t *testing.T) { peer := PathCreatePeer() p := NewPath(peer[0], update.NLRI[0], false, update.PathAttributes, time.Now(), false) - p.PrependAsn(65000, 1) + p.PrependAsn(65000, 1, false) assert.Equal([]uint32{65000, 65001, 65002, 65003, 65004, 65005, 0, 0, 0}, p.GetAsSeqList()) } @@ -138,7 +138,7 @@ func TestPathPrependAsnToNewAsPathAttr(t *testing.T) { p := NewPath(peer[0], update.NLRI[0], false, update.PathAttributes, time.Now(), false) asn := uint32(65000) - p.PrependAsn(asn, 1) + p.PrependAsn(asn, 1, false) assert.Equal([]uint32{asn}, p.GetAsSeqList()) } @@ -166,7 +166,7 @@ func TestPathPrependAsnToNewAsPathSeq(t *testing.T) { p := NewPath(peer[0], update.NLRI[0], false, update.PathAttributes, time.Now(), false) asn := uint32(65000) - p.PrependAsn(asn, 1) + p.PrependAsn(asn, 1, false) assert.Equal([]uint32{asn, 0, 0, 0}, p.GetAsSeqList()) } @@ -195,7 +195,7 @@ func TestPathPrependAsnToEmptyAsPathAttr(t *testing.T) { p := NewPath(peer[0], update.NLRI[0], false, update.PathAttributes, time.Now(), false) asn := uint32(65000) - p.PrependAsn(asn, 1) + p.PrependAsn(asn, 1, false) assert.Equal([]uint32{asn, 0, 0, 0}, p.GetAsSeqList()) } @@ -233,7 +233,7 @@ func TestPathPrependAsnToFullPathAttr(t *testing.T) { for _, v := range asns { expected = append(expected, uint32(v)) } - p.PrependAsn(65000, 2) + p.PrependAsn(65000, 2, false) assert.Equal(append(expected, []uint32{0, 0, 0}...), p.GetAsSeqList()) } |