conn = kea_connector.KeaConnector()
+# Load command processor
+# @todo
+
+# Read parameters from stdin (they're optional for some commands)
+for line in sys.stdin:
+ params.params += line
+
try:
resp = conn.sendCA(params)
except Exception as e:
http_port = 0
command = ''
timeout = 0
+ params = ''
headers = {}
# Generates the content, out of specified command line
# @todo: Add support for parameters
# this stores the output in self.content
def generateBody(self):
- self.content = '{"command": "' + self.command + '"}'
+ self.content = '{ "command": "' + self.command + '" '
+ if (len(self.params)):
+ self.content += self.params
+ self.content += '}'
# Generate HTTP headers
#