Skip to content

Commit

Permalink
cover disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
czerwonk committed Dec 8, 2023
1 parent 4105284 commit dbd29e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bio-rd/config/bgp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ groups:
neighbors:
- peer_address: 100.64.0.2
cluster_id: 100.64.0.0
disabled: true
ipv4:
add_path:
receive: true
Expand Down Expand Up @@ -106,6 +107,7 @@ func TestBGPLoad(t *testing.T) {
assert.False(t, n1.IPv6.AddPath.Receive, "neighbor 1 IPv6 add path receive")
assert.Equal(t, uint8(5), n1.IPv4.AddPath.Send.PathCount, "neighbor 1 IPv4 add path send count")
assert.Equal(t, uint8(10), n1.IPv6.AddPath.Send.PathCount, "neighbor 1 IPv6 add path send count")
assert.True(t, n1.Disabled, "neighbor 1 disabled")

n2 := group.Neighbors[1]
assert.Equal(t, bnet.IPv4FromOctets(100, 64, 1, 1).Dedup(), n2.LocalAddressIP, "neighbor 2 local address")
Expand Down

0 comments on commit dbd29e3

Please sign in to comment.