summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/config/bgp_configs.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/config/bgp_configs.go')
-rw-r--r--internal/pkg/config/bgp_configs.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/pkg/config/bgp_configs.go b/internal/pkg/config/bgp_configs.go
index f5a8215b..8dee732d 100644
--- a/internal/pkg/config/bgp_configs.go
+++ b/internal/pkg/config/bgp_configs.go
@@ -2020,6 +2020,12 @@ type RouteServerState struct {
// gobgp:route-server-client's original type is boolean.
// Configure the neighbor as a route server client.
RouteServerClient bool `mapstructure:"route-server-client" json:"route-server-client,omitempty"`
+ // original -> gobgp:secondary-route
+ // gobgp:secondary-route's original type is boolean.
+ // if an export policy rejects a selected route, try the next route in
+ // order until one that is accepted is found or all routes for the peer
+ // are rejected.
+ SecondaryRoute bool `mapstructure:"secondary-route" json:"secondary-route,omitempty"`
}
// struct for container gobgp:config.
@@ -2030,6 +2036,12 @@ type RouteServerConfig struct {
// gobgp:route-server-client's original type is boolean.
// Configure the neighbor as a route server client.
RouteServerClient bool `mapstructure:"route-server-client" json:"route-server-client,omitempty"`
+ // original -> gobgp:secondary-route
+ // gobgp:secondary-route's original type is boolean.
+ // if an export policy rejects a selected route, try the next route in
+ // order until one that is accepted is found or all routes for the peer
+ // are rejected.
+ SecondaryRoute bool `mapstructure:"secondary-route" json:"secondary-route,omitempty"`
}
func (lhs *RouteServerConfig) Equal(rhs *RouteServerConfig) bool {
@@ -2039,6 +2051,9 @@ func (lhs *RouteServerConfig) Equal(rhs *RouteServerConfig) bool {
if lhs.RouteServerClient != rhs.RouteServerClient {
return false
}
+ if lhs.SecondaryRoute != rhs.SecondaryRoute {
+ return false
+ }
return true
}