diff options
author | JieJhih Jhang <aawer12345tw@yahoo.com.tw> | 2019-03-23 21:52:06 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-03-25 20:11:44 +0900 |
commit | 80ff3a325cbced352489fa4ea4b570e5f08062ef (patch) | |
tree | 86ecd1732490a907cda674b10de71d52c4df42b0 /pkg/server/server.go | |
parent | a61191604194e0ab1a4500ba57ecbec5de88b2e3 (diff) |
support BMP sysName and sysDescr configuration
Diffstat (limited to 'pkg/server/server.go')
-rw-r--r-- | pkg/server/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 9871d4ac..249b791c 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1639,6 +1639,8 @@ func (s *BgpServer) AddBmp(ctx context.Context, r *api.AddBmpRequest) error { return s.bmpManager.addServer(&config.BmpServerConfig{ Address: r.Address, Port: r.Port, + SysName: r.SysName, + SysDescr: r.SysDescr, RouteMonitoringPolicy: config.IntToBmpRouteMonitoringPolicyTypeMap[int(r.Policy)], StatisticsTimeout: uint16(r.StatisticsTimeout), }) |