diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-12 10:19:47 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-12 10:19:47 +0000 |
commit | 139585c2f2eca467445d10b31b58c80d772a39d5 (patch) | |
tree | eaafa44fab6752eca6a87b7849986d493832cc52 /table/adj.go | |
parent | c97a2ee34f2a6e8c55003a4e0a1989ebc03f7f04 (diff) |
table: fix bug in AdjRib.Update()
In route-server mode, when paths in adj-rib-in don't get (in-)filtered,
path.Filtered(adj.id) will become POLICY_DIRECTION_IMPORT in
server.propagateUpdate().
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r-- | table/adj.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go index 8d298be4..04dc714c 100644 --- a/table/adj.go +++ b/table/adj.go @@ -50,7 +50,7 @@ func (adj *AdjRib) Update(pathList []*Path) { if path.IsWithdraw { if found { delete(adj.table[rf], key) - if old.Filtered(adj.id) == POLICY_DIRECTION_NONE { + if old.Filtered(adj.id) != POLICY_DIRECTION_IN { adj.accepted[rf]-- } } |