diff options
Diffstat (limited to 'table/policy.go')
-rw-r--r-- | table/policy.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/table/policy.go b/table/policy.go index 0d112bba..fe153cf4 100644 --- a/table/policy.go +++ b/table/policy.go @@ -2260,7 +2260,7 @@ func (a *AsPathPrependAction) Type() ActionType { return ACTION_AS_PATH_PREPEND } -func (a *AsPathPrependAction) Apply(path *Path, _ *PolicyOptions) *Path { +func (a *AsPathPrependAction) Apply(path *Path, option *PolicyOptions) *Path { var asn uint32 if a.useLeftMost { aspath := path.GetAsSeqList() @@ -2283,7 +2283,8 @@ func (a *AsPathPrependAction) Apply(path *Path, _ *PolicyOptions) *Path { asn = a.asn } - path.PrependAsn(asn, a.repeat) + confed := option != nil && option.Info.Confederation + path.PrependAsn(asn, a.repeat, confed) return path } |