diff options
-rw-r--r-- | server/server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index 280194d6..aaae63bc 100644 --- a/server/server.go +++ b/server/server.go @@ -1185,7 +1185,8 @@ func (s *BgpServer) Start(c *config.Global) (err error) { rfs, _ := config.AfiSafis(c.AfiSafis).ToRfList() s.globalRib = table.NewTableManager(rfs, c.MplsLabelRange.MinLabel, c.MplsLabelRange.MaxLabel) - if err = s.policy.Reset(&config.RoutingPolicy{}, map[string]config.ApplyPolicy{table.GLOBAL_RIB_NAME: c.ApplyPolicy}); err != nil { + + if err = s.policy.Reset(&config.RoutingPolicy{}, map[string]config.ApplyPolicy{}); err != nil { return } s.bgpConfig.Global = *c |