]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5361] Implemented --path argument for kea-shell
authorFrancis Dupont <fdupont@isc.org>
Fri, 6 Oct 2017 11:56:40 +0000 (13:56 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 6 Oct 2017 11:56:40 +0000 (13:56 +0200)
src/bin/shell/kea-shell.in
src/bin/shell/kea-shell.xml

index 56589ddb820a5a6b1de9c143b823af2a97acd77c..18a1887bc913555223d0d633f0483220929a7e61 100644 (file)
@@ -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
 
index a65f0b054a69dd8b2bf707f7341891b3cde11a36..101e6d3a50c4f6e0fe8ecc30357fff160419e611 100644 (file)
@@ -52,6 +52,7 @@
       <arg><option>-v</option></arg>
       <arg><option>--host</option></arg>
       <arg><option>--port</option></arg>
+      <arg><option>--path</option></arg>
       <arg><option>--timeout</option></arg>
       <arg><option>--service</option></arg>
       <arg><option>command</option></arg>
         </para></listitem>
       </varlistentry>
 
+      <varlistentry>
+        <term><option>--path</option></term>
+        <listitem><para>
+          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.
+        </para></listitem>
+      </varlistentry>
+
       <varlistentry>
         <term><option>--timeout</option></term>
         <listitem><para>