summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-06-30 18:13:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-01 21:27:31 +0900
commitc9d9a6825c9fe629b069205e2a73836047a7eb3c (patch)
tree4e8814ca0b07fe7d5a0b97658aa523f2e1232cd1 /server
parentccfded2fee746664b576df0a068aec727cb5fae5 (diff)
cli: support med action
Diffstat (limited to 'server')
-rw-r--r--server/server.go3
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