summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-22 07:30:40 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-22 07:42:02 +0000
commit30456e9ffd7508f96db90df2b035ad2e5cfeb904 (patch)
tree6be08df4ae80660c78e78c86e0efea178d6489a0 /gobgpd/main.go
parent0c58e348de62bf156582417a6b9d726dd4fe116e (diff)
config: fix bug of UpdateConfig()
avoid reconfiguration when policy configuration is not changed Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r--gobgpd/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index d955599f..192b85f9 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -229,13 +229,13 @@ func main() {
} else {
var updatePolicy bool
- c, added, deleted, updated, updatePolicy = config.UpdateConfig(c, newConfig)
+ added, deleted, updated, updatePolicy = config.UpdateConfig(c, newConfig)
if updatePolicy {
log.Info("Policy config is updated")
p := config.ConfigSetToRoutingPolicy(newConfig)
bgpServer.UpdatePolicy(*p)
}
-
+ c = newConfig
}
for _, p := range added {