firewalla-snmp-proxy 2.2.2__tar.gz → 2.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/PKG-INFO +23 -3
  2. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/README.md +22 -2
  3. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/__init__.py +1 -1
  4. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/PKG-INFO +23 -3
  5. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/pyproject.toml +1 -1
  6. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/LICENSE +0 -0
  7. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/__main__.py +0 -0
  8. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/agent.py +0 -0
  9. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/cli.py +0 -0
  10. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/config.py +0 -0
  11. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/counters.py +0 -0
  12. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/__init__.py +0 -0
  13. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/bridge.py +0 -0
  14. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/entity.py +0 -0
  15. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/ifmib.py +0 -0
  16. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/lldp.py +0 -0
  17. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/poe.py +0 -0
  18. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/sensor.py +0 -0
  19. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/system.py +0 -0
  20. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/mibs/vendor.py +0 -0
  21. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/model.py +0 -0
  22. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/msp_api.py +0 -0
  23. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/oid.py +0 -0
  24. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/poller.py +0 -0
  25. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/ramp.py +0 -0
  26. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/reachability.py +0 -0
  27. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/snapshot.py +0 -0
  28. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy/tree_builder.py +0 -0
  29. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/SOURCES.txt +0 -0
  30. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/dependency_links.txt +0 -0
  31. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/entry_points.txt +0 -0
  32. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/requires.txt +0 -0
  33. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/firewalla_snmp_proxy.egg-info/top_level.txt +0 -0
  34. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/mibs/FIREWALLA-SNMP-PROXY-MIB.txt +0 -0
  35. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/setup.cfg +0 -0
  36. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_backoff.py +0 -0
  37. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_cache_fallback.py +0 -0
  38. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_counters.py +0 -0
  39. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_e2e.py +0 -0
  40. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_mib_mapping.py +0 -0
  41. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_model.py +0 -0
  42. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_msp_api.py +0 -0
  43. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_oid_tree.py +0 -0
  44. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_ramp.py +0 -0
  45. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_ramp_integration.py +0 -0
  46. {firewalla_snmp_proxy-2.2.2 → firewalla_snmp_proxy-2.2.3}/tests/test_reachability.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: firewalla-snmp-proxy
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Monitor a Firewalla Switch over SNMP with any monitoring system
5
5
  Author: Kristian Desch
6
6
  License: MIT
@@ -109,7 +109,10 @@ sudo ln -sf /opt/firewalla-snmp-proxy-venv/bin/firewalla-snmp-proxy /usr/local/b
109
109
  ```
110
110
 
111
111
  Step 4 binds no sockets, so it is safe to run while something else is already
112
- listening on the port.
112
+ listening on the port. Step 5 runs in the foreground, which is what you want
113
+ while trying it out — for anything permanent see
114
+ [Install as a service](#install-as-a-service), which restarts on failure and
115
+ survives a reboot.
113
116
 
114
117
  Then, from anywhere that can reach the proxy:
115
118
 
@@ -127,12 +130,29 @@ another host.
127
130
 
128
131
  ### Install as a service
129
132
 
130
- From the same clone:
133
+ You almost certainly want this. Running `run` in a shell means it dies with
134
+ your session and does not come back after a reboot; a monitoring source that
135
+ quietly stops is worse than one that was never there.
136
+
137
+ **Install the binary system-wide first.** The generated unit sets
138
+ `ProtectHome=yes`, so systemd cannot execute anything under `/home` or `/root`
139
+ — a per-user `pipx install` produces a binary the service is unable to start,
140
+ even though it runs fine from your shell:
141
+
142
+ ```bash
143
+ pipx uninstall firewalla-snmp-proxy # if you installed it as yourself
144
+ sudo pipx --global install firewalla-snmp-proxy
145
+ ```
146
+
147
+ Then, from a clone of this repo (for `install.sh` itself):
131
148
 
132
149
  ```bash
133
150
  sudo ./install.sh --service # or: --service --user snmpproxy
134
151
  ```
135
152
 
153
+ `install.sh` refuses to proceed with a home-directory binary rather than
154
+ writing a unit that cannot start.
155
+
136
156
  The systemd unit is **generated** from the detected binary path, service user
137
157
  and config location — there is nothing to hand-edit. It creates a locked-down
138
158
  `firewalla-snmp-proxy` system user, a 0640 root-owned environment file for your
@@ -83,7 +83,10 @@ sudo ln -sf /opt/firewalla-snmp-proxy-venv/bin/firewalla-snmp-proxy /usr/local/b
83
83
  ```
84
84
 
85
85
  Step 4 binds no sockets, so it is safe to run while something else is already
86
- listening on the port.
86
+ listening on the port. Step 5 runs in the foreground, which is what you want
87
+ while trying it out — for anything permanent see
88
+ [Install as a service](#install-as-a-service), which restarts on failure and
89
+ survives a reboot.
87
90
 
88
91
  Then, from anywhere that can reach the proxy:
89
92
 
@@ -101,12 +104,29 @@ another host.
101
104
 
102
105
  ### Install as a service
103
106
 
104
- From the same clone:
107
+ You almost certainly want this. Running `run` in a shell means it dies with
108
+ your session and does not come back after a reboot; a monitoring source that
109
+ quietly stops is worse than one that was never there.
110
+
111
+ **Install the binary system-wide first.** The generated unit sets
112
+ `ProtectHome=yes`, so systemd cannot execute anything under `/home` or `/root`
113
+ — a per-user `pipx install` produces a binary the service is unable to start,
114
+ even though it runs fine from your shell:
115
+
116
+ ```bash
117
+ pipx uninstall firewalla-snmp-proxy # if you installed it as yourself
118
+ sudo pipx --global install firewalla-snmp-proxy
119
+ ```
120
+
121
+ Then, from a clone of this repo (for `install.sh` itself):
105
122
 
106
123
  ```bash
107
124
  sudo ./install.sh --service # or: --service --user snmpproxy
108
125
  ```
109
126
 
127
+ `install.sh` refuses to proceed with a home-directory binary rather than
128
+ writing a unit that cannot start.
129
+
110
130
  The systemd unit is **generated** from the detected binary path, service user
111
131
  and config location — there is nothing to hand-edit. It creates a locked-down
112
132
  `firewalla-snmp-proxy` system user, a 0640 root-owned environment file for your
@@ -5,4 +5,4 @@ API as a standards-compliant SNMP agent, so any SNMP monitoring system can
5
5
  poll a switch that has no SNMP agent of its own.
6
6
  """
7
7
 
8
- __version__ = "2.2.2"
8
+ __version__ = "2.2.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: firewalla-snmp-proxy
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Monitor a Firewalla Switch over SNMP with any monitoring system
5
5
  Author: Kristian Desch
6
6
  License: MIT
@@ -109,7 +109,10 @@ sudo ln -sf /opt/firewalla-snmp-proxy-venv/bin/firewalla-snmp-proxy /usr/local/b
109
109
  ```
110
110
 
111
111
  Step 4 binds no sockets, so it is safe to run while something else is already
112
- listening on the port.
112
+ listening on the port. Step 5 runs in the foreground, which is what you want
113
+ while trying it out — for anything permanent see
114
+ [Install as a service](#install-as-a-service), which restarts on failure and
115
+ survives a reboot.
113
116
 
114
117
  Then, from anywhere that can reach the proxy:
115
118
 
@@ -127,12 +130,29 @@ another host.
127
130
 
128
131
  ### Install as a service
129
132
 
130
- From the same clone:
133
+ You almost certainly want this. Running `run` in a shell means it dies with
134
+ your session and does not come back after a reboot; a monitoring source that
135
+ quietly stops is worse than one that was never there.
136
+
137
+ **Install the binary system-wide first.** The generated unit sets
138
+ `ProtectHome=yes`, so systemd cannot execute anything under `/home` or `/root`
139
+ — a per-user `pipx install` produces a binary the service is unable to start,
140
+ even though it runs fine from your shell:
141
+
142
+ ```bash
143
+ pipx uninstall firewalla-snmp-proxy # if you installed it as yourself
144
+ sudo pipx --global install firewalla-snmp-proxy
145
+ ```
146
+
147
+ Then, from a clone of this repo (for `install.sh` itself):
131
148
 
132
149
  ```bash
133
150
  sudo ./install.sh --service # or: --service --user snmpproxy
134
151
  ```
135
152
 
153
+ `install.sh` refuses to proceed with a home-directory binary rather than
154
+ writing a unit that cannot start.
155
+
136
156
  The systemd unit is **generated** from the detected binary path, service user
137
157
  and config location — there is nothing to hand-edit. It creates a locked-down
138
158
  `firewalla-snmp-proxy` system user, a 0640 root-owned environment file for your
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "firewalla-snmp-proxy"
7
- version = "2.2.2"
7
+ version = "2.2.3"
8
8
  description = "Monitor a Firewalla Switch over SNMP with any monitoring system"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"