diff options
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index 437e90da..ce0edf65 100644 --- a/server/server.go +++ b/server/server.go @@ -1512,6 +1512,9 @@ func (server *BgpServer) handleGrpcAddPolicy(grpcReq *GrpcRequest) { if reqActions.Community != nil { conStatement.Actions.BgpActions.SetCommunity = statement.Actions.BgpActions.SetCommunity } + if reqActions.Med != "" { + conStatement.Actions.BgpActions.SetMed = statement.Actions.BgpActions.SetMed + } } } server.routingPolicy.PolicyDefinitionList = conPolicyList |