Repository navigation
Releases
Releases · Lantronix/netbox-lantronix
v0.10.0
Added
- Events URL for each source,
POST /api/plugins/lantronix/sources/<id>/events/, turned on by the new endpoint settingwebhook_secrets. A signed Percepxion event (webhook-payload v1) for a port attach, port state or device status change syncs that console server within seconds. No NetBox token; the HMAC signature is the authentication. - Focused sync: events, the change watch and the sync API with
device_idssync only the console servers that changed, reading and writing only their ports and cables. Requests made while one waits to start join it. - Change watch interval, a per-source setting (off by default): checks each linked console server's port state on that interval and syncs the ones whose ports changed. For sites where nothing can reach NetBox. Run
manage.py migrateafter upgrading. - The sync API takes
{"device_ids": [...]}for a focused sync, accepted even while another sync runs.
v0.9.0
Added
- Manage console cables, a per-source setting (off by default). Each sync creates and deletes console cables on the source's console server ports to match what the console server reports: a cable goes only when the port is Disconnected, and a cable is created only when the attached device matches exactly one NetBox device by serial or hostname. Created cables are tagged
lantronix-discovered, and each change writes a journal entry on the attached device. The sync user needsdcim.view/add/delete_cable. Runmanage.py migrateafter upgrading. See Console cables in the README.
v0.8.0
Added
- Open console on the page of the device you want to reach: any device whose console port is cabled in NetBox to a synced console server port gets the button, without a visit to the console server port. The console server's own page now lists its ports in use, each with its button.
- The console coverage gate reports each port's own SSH port, and a device whose console server port has SSH turned off is not covered (reason
ssh_disabled). - The Open console button now uses each port's real SSH port, read from the console server's configuration in Percepxion on every sync, so it follows a change to Starting SSH Port or to one port's
sshport. A port with SSH turned off gets no button. Before, the port was always the source's SSH base port plus the port number, which is wrong on a unit whose ports were renumbered. Units Percepxion holds no configuration for keep using the base port. - Endpoint setting
read_port_config(on by default) turns that read off. The read returns the unit's whole configuration; the plugin keeps two settings per port and drops the rest. See Open console in the README. Runmanage.py migrateafter upgrading.
Changed
- Dependency updates (Dependabot): actions/setup-python 7.1.0 (the) (#36).
v0.7.0
Added
- Console coverage gate, a NetBox script that reports which devices have a ready console path through a synced SLC port, with a reason for each device that doesn't. Upload
netbox_lantronix/coverage/console_coverage_gate.pyunder Customization > Scripts; the lantronix.ooboob_coverage_gaterole runs it before a change.
v0.6.2
Changed
- A "no device type" finding now offers Set type for this device, the way an "ambiguous model" finding does. This is the one-click path for SLC 8000 units, which need a device override.
v0.6.1
Security
- Device links are listed, shown and deleted only for devices the user can view. Before, view permission on device links showed the name, management address and firmware of every linked console server.
- Approving a pending adoption now also needs change permission on the device being adopted.
- A pending adoption is no longer recorded for a device the sync user can't change, and port facts and link details are no longer written for one. Before, these records ignored the sync user's object permissions.
- The Open console button isn't shown for a loopback, link-local, multicast or unspecified address, and its tooltip shows the address and port it opens.
- Each sync now revokes its Percepxion refresh token and closes the connection when it has finished reading.
- Conflict findings no longer name the manufacturer or platform of another NetBox device.
- Zero-width and other invisible characters are removed from labels, descriptions and attached-device details read from Percepxion.
Fixed
- Stored
show sysconfigoutput that can't be read no longer stops the sync. The device type falls back to the model rules. - A mistyped
web_port_urlno longer breaks console port pages; the Open in Percepxion button is left out. - The SSH base port must be between 1 and 65000, so the port a console link opens is always valid.
- The manufacturer, platform and custom field the plugin creates on its first run are now part of the sync's transaction and change log.
v0.6.0
Security
- The Percepxion client no longer follows HTTP redirects. A redirect from the endpoint could carry the session token, and on a 307 or 308 the login request, to another host. A redirect now fails the sync with "was redirected".
- Devices outside a source's organization are no longer named in findings, and the plugin no longer asks Percepxion for their port state. A sync records one "out of organization" finding with a count.
- The endpoint setting
verifymust beTrueorFalse. Values such asNone,0or an empty string turned certificate checking off without showing the warning; they now stop the plugin at startup with an error that names the endpoint.
Added
- Endpoint setting
organizations: the list of Percepxion organization IDs that sources on the endpoint may sync. Set it when the Percepxion account can see more than one organization. Without it, anyone who can add or edit a source can sync any organization the account can see.
Fixed
- A refused Percepxion call no longer counts as a rejected login. Before, any HTTP 401 or 403, even for one device, paused the source for at least 30 minutes and blocked Sync now. Now only a rejected login does that. A session that ends mid-sync logs in again once, and a device whose port state is refused is skipped.
- A device that NetBox validation rejects no longer fails every sync. It is skipped with a "conflict" finding that gives NetBox's reason, and the other devices sync.
- A Percepxion device whose name differs only by letter case from a NetBox device is now matched to it. Before, the sync tried to create a second device, NetBox refused it, and every run failed.
- The README no longer implies SLC 8000 units get a device type automatically. They need a device override.
v0.5.4
Fixed
- A sync with a Percepxion project_admin account no longer fails with
POST /v1/job/jobgroup/search returned HTTP 400. Theshow sysconfiglookups now send the source's organization ID, which Percepxion requires from project_admin sessions.
Fixed
- A failed or errored sync now writes the source, job number and reason to the NetBox worker log (
docker logs), not only to the job's own log, so the cause shows up without opening the job.
v0.5.3
Fixed
- The plugin's Author field in NetBox's plugin list now shows Lantronix instead of a dash.
- The README's first sync steps now give the real menu path, the Lantronix menu in the sidebar, instead of a Plugins menu that doesn't exist.
v0.5.2
Fixed
- The attached device panel on a console server port no longer shows a dash in front of the model or OS version when Percepxion reports no make or OS name.