summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-26 09:50:35 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-26 07:10:38 +0900
commitf1e1329dab8183214c9727a80debd2d40d283d93 (patch)
tree33fa6b884dad4f985d37f4e3ce245eb1e5e5a1d8 /table
parentae88f8856834898d876a10fa7aa51dbaba466a2c (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')
-rw-r--r--table/policy.go3
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) {