Skip to content

Commit

Permalink
Signal End-Of-RIB when registering client on LocRIB (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
taktv6 authored Aug 30, 2022
1 parent 3cfb73a commit 162a33f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions protocols/bgp/server/fsm_address_family_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package server

import (
"bytes"
"testing"

"github.com/bio-routing/bio-rd/protocols/bgp/packet"
Expand All @@ -10,6 +11,8 @@ import (
"github.com/bio-routing/bio-rd/routingtable/filter"
"github.com/bio-routing/bio-rd/routingtable/locRIB"
"github.com/stretchr/testify/assert"

biotesting "github.com/bio-routing/bio-rd/testing"
)

func TestFSMAFIInitDispose(t *testing.T) {
Expand All @@ -25,6 +28,9 @@ func TestFSMAFIInitDispose(t *testing.T) {
localASN: 15169,
adjRIBInFactory: adjRIBInFactory{},
},
con: &biotesting.MockConn{
Buf: bytes.NewBuffer(nil),
},
},
addPathTX: routingtable.ClientOptions{
BestOnly: true,
Expand Down
1 change: 1 addition & 0 deletions routingtable/locRIB/loc_rib.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (a *LocRIB) UpdateNewClient(client routingtable.RouteTableClient) error {
}
}

client.EndOfRIB()
return nil
}

Expand Down

0 comments on commit 162a33f

Please sign in to comment.