diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-19 10:30:25 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-19 11:12:44 +0000 |
commit | d632d9cdf2e81576822e78647f75e1e82e30373d (patch) | |
tree | 0f33d948b6ee4e9b6c05e4624558642a3055f15d /config/serve.go | |
parent | 56b69b76797fc7dbd1ff036a20dde5246fb97ed2 (diff) |
server: support prefix-limit re-configuration via configuration file
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/serve.go')
-rw-r--r-- | config/serve.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/config/serve.go b/config/serve.go index 72ab1a56..3b4d7acd 100644 --- a/config/serve.go +++ b/config/serve.go @@ -92,10 +92,8 @@ func UpdateConfig(curC *BgpConfigSet, newC *BgpConfigSet) (*BgpConfigSet, []Neig for _, n := range newC.Neighbors { if idx := inSlice(n, curC.Neighbors); idx < 0 { added = append(added, n) - } else { - if !n.ApplyPolicy.Equal(&curC.Neighbors[idx].ApplyPolicy) { - updated = append(updated, n) - } + } else if !n.Equal(&curC.Neighbors[idx]) { + updated = append(updated, n) } } |