summaryrefslogtreecommitdiffhomepage
path: root/policy
diff options
context:
space:
mode:
Diffstat (limited to 'policy')
-rw-r--r--policy/policy.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/policy/policy.go b/policy/policy.go
index a07dbc4a..5d0c3b9a 100644
--- a/policy/policy.go
+++ b/policy/policy.go
@@ -1877,12 +1877,17 @@ func ActionsToApiStruct(conActions config.Actions) *api.Actions {
conActions.BgpActions.SetAsPathPrepend.As,
uint32(conActions.BgpActions.SetAsPathPrepend.RepeatN),
}
+ extCommunityAction := &api.CommunityAction{
+ Communities: conActions.BgpActions.SetExtCommunity.SetExtCommunityMethod.Communities,
+ Options: conActions.BgpActions.SetExtCommunity.Options,
+ }
resActions := &api.Actions{
- RouteAction: action,
- Community: communityAction,
- Med: medAction,
- AsPrepend: asprependAction,
+ RouteAction: action,
+ Community: communityAction,
+ Med: medAction,
+ AsPrepend: asprependAction,
+ ExtCommunity: extCommunityAction,
}
return resActions
}