summaryrefslogtreecommitdiffstats
path: root/src/bin/shell/kea_conn.py
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2021-03-24 17:22:54 +0100
committerFrancis Dupont <fdupont@isc.org>2021-03-25 09:31:33 +0100
commit00fbf6141b2c720bb5d1b7ef5def580b7a075424 (patch)
tree9ca00099ff0e2c6fbe841e5954cc18662c3d8114 /src/bin/shell/kea_conn.py
parent[#1664] Addressed last comments (diff)
downloadkea-00fbf6141b2c720bb5d1b7ef5def580b7a075424.tar.xz
kea-00fbf6141b2c720bb5d1b7ef5def580b7a075424.zip
[#1663] Checkpoint
Diffstat (limited to 'src/bin/shell/kea_conn.py')
-rw-r--r--src/bin/shell/kea_conn.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/shell/kea_conn.py b/src/bin/shell/kea_conn.py
index d8c54aa48a..de6ad5786b 100644
--- a/src/bin/shell/kea_conn.py
+++ b/src/bin/shell/kea_conn.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2020 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -13,8 +13,11 @@ class CARequest:
This class defines the HTTP request to be sent.
The supported parameters listed are:
- path (specifies the path on the server, CA uses only /)
+ - scheme - http or https
- http_host - hostname of the CA
- - http-port - TCP port of the CA
+ - http_port - TCP port of the CA
+ - ca - False or CA file or path
+ - cert - False or cert file or cert and key files pair
- command - specifies the command to send (e.g. list-commands)
- service - specifies service that is target for the command (e.g. dhcp4)
- timeout - timeout (in ms)
@@ -24,8 +27,11 @@ class CARequest:
- version - version to be reported in HTTP header
"""
path = '/'
+ scheme = 'http'
http_host = ''
http_port = 0
+ ca = False
+ cert = False
command = ''
service = ''
timeout = 0