From b285fb2475ecf0543a1c3cbfbff1b195d12678d5 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 5 Jun 2018 14:51:43 +0900 Subject: 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 --- api/grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') 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, -- cgit v1.2.3