policy: don't apply policy when path is withdrawal

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2016-04-26 07:10:38 +09:00
committed by FUJITA Tomonori
parent ae88f88568
commit f1e1329dab
+3
View File
@@ -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) {