Skip to content

Commit

Permalink
support afisafis
Browse files Browse the repository at this point in the history
  • Loading branch information
withlin committed May 8, 2021
1 parent d94af37 commit f16fcb9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/speaker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,19 @@ func (config *Configuration) initBgpServer() error {
DeferralTime: uint32(config.GracefulRestartDeferralTime.Seconds()),
LocalRestarting: true,
}
peer.AfiSafis = []*api.AfiSafi{
{
Config: &api.AfiSafiConfig{
Family: &api.Family{Afi: api.Family_AFI_IP, Safi: api.Family_SAFI_UNICAST},
Enabled: true,
},
MpGracefulRestart: &api.MpGracefulRestart{
Config: &api.MpGracefulRestartConfig{
Enabled: true,
},
},
},
}
}

if err := s.AddPeer(context.Background(), &api.AddPeerRequest{
Expand Down

0 comments on commit f16fcb9

Please sign in to comment.