summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-20 13:10:37 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-20 13:11:12 +0900
commit0c07192f5005aa19f70c5a91f4221491a2d2b1de (patch)
tree692dcfdc512f866a37f5f9d6420d8181de87241f /gobgpd
parentff58dba1908b2db3a9993977dc9f8bfd83d38593 (diff)
server: add missing mutex lock when updating policy configuration
The useage of policyMutex is very hacky. It should be moved to table/policy.go Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 63d71024..32c63bcc 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -225,7 +225,7 @@ func main() {
log.Fatalf("failed to set mrt config: %s", err)
}
p := config.ConfigSetToRoutingPolicy(newConfig)
- if err := bgpServer.SetRoutingPolicy(*p); err != nil {
+ if err := bgpServer.UpdatePolicy(*p); err != nil {
log.Fatalf("failed to set routing policy: %s", err)
}