diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-10-20 21:25:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-10-26 07:02:54 +0900 |
commit | 2e05695f683430bdf39573b19f51bac4dcbbc693 (patch) | |
tree | 3f80939fb737832dbf8f8f5ebe0b35e0e9900718 /internal/pkg/table/adj_test.go | |
parent | b4e2d9e440a4eb6d3091a7c586d2e55b69ec968a (diff) |
avoid installing routes with originator ID to global when softresetin
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table/adj_test.go')
-rw-r--r-- | internal/pkg/table/adj_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pkg/table/adj_test.go b/internal/pkg/table/adj_test.go index bb1f07b9..3ae59465 100644 --- a/internal/pkg/table/adj_test.go +++ b/internal/pkg/table/adj_test.go @@ -98,7 +98,7 @@ func TestStale(t *testing.T) { p1 := NewPath(pi, nlri1, false, attrs, time.Now(), false) nlri2 := bgp.NewIPAddrPrefix(24, "20.20.20.0") p2 := NewPath(pi, nlri2, false, attrs, time.Now(), false) - p2.SetAsLooped(true) + p2.SetRejected(true) family := p1.GetRouteFamily() families := []bgp.RouteFamily{family} @@ -135,11 +135,11 @@ func TestLLGRStale(t *testing.T) { nlri2 := bgp.NewIPAddrPrefix(24, "20.20.20.0") p2 := NewPath(pi, nlri2, false, attrs, time.Now(), false) - p2.SetAsLooped(true) // Not accepted + p2.SetRejected(true) // Not accepted nlri3 := bgp.NewIPAddrPrefix(24, "20.20.30.0") p3 := NewPath(pi, nlri3, false, attrs, time.Now(), false) - p3.SetAsLooped(true) + p3.SetRejected(true) // Not accepted and then dropped on MarkLLGRStaleOrDrop p3.SetCommunities([]uint32{uint32(bgp.COMMUNITY_NO_LLGR)}, false) |