diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-20 13:10:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-20 13:11:12 +0900 |
commit | 0c07192f5005aa19f70c5a91f4221491a2d2b1de (patch) | |
tree | 692dcfdc512f866a37f5f9d6420d8181de87241f /gobgpd/main.go | |
parent | ff58dba1908b2db3a9993977dc9f8bfd83d38593 (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/main.go')
-rw-r--r-- | gobgpd/main.go | 2 |
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) } |