You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RFC0027 CLI Support for Generic Per-Route Options [main] (#3372)
* Add MinVersionPerRouteOpts check for create and update route commands
* Route command in the v7/commands
* Changed typed route options to an untyped map
* Change DisplayText to DisplayWarning for flag spec err
* Output an error if at least one option is specified incorrectly
* New integration test and adjustments of other tests
* Consistent naming: per-route options vs route specific options
* Rename least-connections to least-connection
---------
Co-authored-by: Clemens Hoffmann <clemens.hoffmann@sap.com>
// RouteOptionError is returned when a route option was specified in the wrong format
6
+
typeRouteOptionErrorstruct {
7
+
Namestring
8
+
Hoststring
9
+
DomainNamestring
10
+
Pathstring
11
+
}
12
+
13
+
func (eRouteOptionError) Error() string {
14
+
returnfmt.Sprintf("Route option '%s' for route with host '%s', domain '%s', and path '%s' was specified incorrectly. Please use key-value pair format key=value.", e.Name, e.Host, e.DomainName, e.path())
0 commit comments