1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

updates for hyperglass-agent 0.1.5

This commit is contained in:
checktheroads
2020-06-28 23:39:03 -07:00
parent 138ee5c999
commit 7f8068ea87
2 changed files with 9 additions and 2 deletions

View File

@@ -12,12 +12,14 @@ Before you get to far, check to make sure your hyperglass server and hyperglass-
## Setup
Just like with hyperglass, the hyperglass agent is easy to set up. To automatically create an application directory, generate SSL certificates, generate and symlink a systemd file, and generate a random secret, run:
To automatically create an application directory, generate SSL certificates, generate and symlink a systemd file, and generate a random secret, run:
```shell-session
$ hyperglass setup
$ hyperglass-agent setup
```
If SSL is enabled (which is the default), take note of the secret key — you'll use this in the `password` for this device in hyperglass.
:::note
You can also run the setup wizard with certain options disabled, if needed:

View File

@@ -346,6 +346,11 @@ class Connect:
)
log.debug(f"Decoded Response: {decoded}")
responses += (decoded,)
elif raw_response.status_code == 204:
raise ResponseEmpty(
params.messages.no_output,
device_name=self.device.display_name,
)
else:
log.error(raw_response.text)