diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-08 14:07:46 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-13 15:41:08 +0900 |
commit | c0d597433f6a3bcd7009fd60806d6b5906faa65d (patch) | |
tree | 192067ae010517cf218d074668d647fa02db211e /server | |
parent | 1bf1652c08dde3368e098c2f28260cb24f4aa0f8 (diff) |
cli: add aspath prepend support
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 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 |