From ca99c628a1a1aa65b3a32d42117d0ed712330b68 Mon Sep 17 00:00:00 2001 From: Naoto Hanaue Date: Wed, 5 Aug 2015 13:56:53 +0900 Subject: config: change the structure of Neighbor.RouteServer as the Neighbor.RouteReflector --- config/bgp_configs.go | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'config/bgp_configs.go') diff --git a/config/bgp_configs.go b/config/bgp_configs.go index 12af5fcb..24e89482 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -279,13 +279,28 @@ type AsPathOptions struct { AsPathOptionsState AsPathOptionsState } -//struct for container bgp:route-server -type RouteServer struct { +//struct for container bgp:state +type RouteServerState struct { // original -> bgp:route-server-client //bgp:route-server-client's original type is boolean RouteServerClient bool } +//struct for container bgp:config +type RouteServerConfig struct { + // original -> bgp:route-server-client + //bgp:route-server-client's original type is boolean + RouteServerClient bool +} + +//struct for container bgp:route-server +type RouteServer struct { + // original -> bgp:route-server-config + RouteServerConfig RouteServerConfig + // original -> bgp:route-server-state + RouteServerState RouteServerState +} + //struct for container bgp:state type RouteReflectorState struct { // original -> bgp:route-reflector-cluster-id -- cgit v1.2.3