diff options
Diffstat (limited to 'policy')
-rw-r--r-- | policy/policy.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/policy/policy.go b/policy/policy.go index 839cb926..e04d56a3 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1856,9 +1856,9 @@ func ConditionsToConfigStruct(reqConditions *gobgpapi.Conditions) config.Conditi } func ActionsToApiStruct(conActions config.Actions) *gobgpapi.Actions { - action := ROUTE_REJECT + action := gobgpapi.RouteAction_REJECT if conActions.RouteDisposition.AcceptRoute { - action = ROUTE_ACCEPT + action = gobgpapi.RouteAction_ACCEPT } //TODO: support CommunitySetRef @@ -1904,9 +1904,9 @@ func ActionsToConfigStruct(reqActions *gobgpapi.Actions) config.Actions { } switch reqActions.RouteAction { - case ROUTE_ACCEPT: + case gobgpapi.RouteAction_ACCEPT: actions.RouteDisposition.AcceptRoute = true - case ROUTE_REJECT: + case gobgpapi.RouteAction_REJECT: actions.RouteDisposition.RejectRoute = true } return actions |