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:
@@ -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:
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user