mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
policy: don't apply policy when path is withdrawal
Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
committed by
FUJITA Tomonori
parent
ae88f88568
commit
f1e1329dab
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user