diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-06-30 18:13:55 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-01 21:27:31 +0900 |
commit | c9d9a6825c9fe629b069205e2a73836047a7eb3c (patch) | |
tree | 4e8814ca0b07fe7d5a0b97658aa523f2e1232cd1 /server | |
parent | ccfded2fee746664b576df0a068aec727cb5fae5 (diff) |
cli: support med action
Diffstat (limited to 'server')
-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 |