diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-06-05 14:51:43 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 20:07:09 +0900 |
commit | b285fb2475ecf0543a1c3cbfbff1b195d12678d5 (patch) | |
tree | 0b99e254e85a34bb5b742b72c2152db98ae45281 /api/grpc_server.go | |
parent | c78328019756dca6912b69d7ecfcb850f727513f (diff) |
config: Accept CLUSTER_ID as an integer value
Currently, only IPv4 address is acceptable for the CLUSTER_ID setting,
this patch enables to specify the CLUSTER_ID as a 32-bit unsigned
integer.
With this expansion, "Config.RouteReflectorClusterId" stores the raw
configured value for the CLUSTER_ID and "State.RouteReflectorClusterId"
stores the value used for construct the CLUSTER_LIST attribute.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index 8284a8be..b10eef79 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -323,7 +323,7 @@ func NewPeerFromConfigStruct(pconf *config.Neighbor) *Peer { }, RouteReflector: &RouteReflector{ RouteReflectorClient: pconf.RouteReflector.Config.RouteReflectorClient, - RouteReflectorClusterId: string(pconf.RouteReflector.Config.RouteReflectorClusterId), + RouteReflectorClusterId: string(pconf.RouteReflector.State.RouteReflectorClusterId), }, RouteServer: &RouteServer{ RouteServerClient: pconf.RouteServer.Config.RouteServerClient, |