From c0d597433f6a3bcd7009fd60806d6b5906faa65d Mon Sep 17 00:00:00 2001 From: Hiroshi Yokoi Date: Wed, 8 Jul 2015 14:07:46 +0900 Subject: cli: add aspath prepend support --- server/server.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') 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 -- cgit v1.2.3