summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-08 14:07:46 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-13 15:41:08 +0900
commitc0d597433f6a3bcd7009fd60806d6b5906faa65d (patch)
tree192067ae010517cf218d074668d647fa02db211e /server
parent1bf1652c08dde3368e098c2f28260cb24f4aa0f8 (diff)
cli: add aspath prepend support
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 52c0d3ac..e0b0dcef 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1563,6 +1563,9 @@ func (server *BgpServer) handleGrpcAddPolicy(grpcReq *GrpcRequest) {
if reqActions.Med != "" {
conStatement.Actions.BgpActions.SetMed = statement.Actions.BgpActions.SetMed
}
+ if reqActions.AsPrepend.As != "" {
+ conStatement.Actions.BgpActions.SetAsPathPrepend = statement.Actions.BgpActions.SetAsPathPrepend
+ }
}
}
server.routingPolicy.PolicyDefinitionList = conPolicyList