diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-26 09:50:35 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-26 07:10:38 +0900 |
commit | f1e1329dab8183214c9727a80debd2d40d283d93 (patch) | |
tree | 33fa6b884dad4f985d37f4e3ce245eb1e5e5a1d8 /table/policy.go | |
parent | ae88f8856834898d876a10fa7aa51dbaba466a2c (diff) |
policy: don't apply policy when path is withdrawal
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/policy.go')
-rw-r--r-- | table/policy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/table/policy.go b/table/policy.go index 0692a066..06674e1f 100644 --- a/table/policy.go +++ b/table/policy.go @@ -2649,6 +2649,9 @@ func (r *RoutingPolicy) ApplyPolicy(id string, dir PolicyDirection, before *Path if filtered := before.Filtered(id); filtered > POLICY_DIRECTION_NONE && filtered < dir { return nil } + if before.IsWithdraw { + return before + } result := ROUTE_TYPE_NONE after := before for _, p := range r.GetPolicy(id, dir) { |