From: Francis Dupont Date: Fri, 6 Oct 2017 11:56:40 +0000 (+0200) Subject: [5361] Implemented --path argument for kea-shell X-Git-Tag: trac5380_base~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a248940a7b072b0aedee76889f949ba80b43b8e1;p=thirdparty%2Fkea.git [5361] Implemented --path argument for kea-shell --- diff --git a/src/bin/shell/kea-shell.in b/src/bin/shell/kea-shell.in index 56589ddb82..18a1887bc9 100644 --- a/src/bin/shell/kea-shell.in +++ b/src/bin/shell/kea-shell.in @@ -60,6 +60,9 @@ def shell_body(): parser.add_argument('--port', type=int, default=8000, help='TCP port of the CA to connect to ' '(default: 8000)') + parser.add_argument('--path', type=str, default='', + help='Path of the URL to connect to ' + '(default: "")') parser.add_argument('--timeout', type=int, default='10', help='Timeout (in seconds) when attempting to ' 'connect to CA (default: 10)') @@ -84,6 +87,7 @@ def shell_body(): params.service = cmd_args.service params.http_host = cmd_args.host params.http_port = cmd_args.port + params.path += cmd_args.path params.timeout = cmd_args.timeout params.version = VERSION diff --git a/src/bin/shell/kea-shell.xml b/src/bin/shell/kea-shell.xml index a65f0b054a..101e6d3a50 100644 --- a/src/bin/shell/kea-shell.xml +++ b/src/bin/shell/kea-shell.xml @@ -52,6 +52,7 @@ + @@ -109,6 +110,15 @@ + + + + Specifies the path in the URL to connect to. If not specified, + empty path is used. As Control Agent listens at the empty path + this parameter is useful only with a reverse proxy. + + +