summaryrefslogtreecommitdiffhomepage
path: root/config/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/serve.go')
-rw-r--r--config/serve.go6
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)
}
}