diff options
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index fd657c3f..1b5cd959 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -184,7 +184,9 @@ func main() { if policyConfig == nil { policyConfig = &newConfig.Policy - bgpServer.SetPolicy(newConfig.Policy) + if err := bgpServer.SetPolicy(newConfig.Policy); err != nil { + log.Fatal(err) + } } else { if config.CheckPolicyDifference(policyConfig, &newConfig.Policy) { log.Info("Policy config is updated") |