summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go4
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")