From f1e1329dab8183214c9727a80debd2d40d283d93 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 26 Apr 2016 09:50:35 +0000 Subject: policy: don't apply policy when path is withdrawal Signed-off-by: ISHIDA Wataru --- table/policy.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'table') 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) { -- cgit v1.2.3