get_config on the REST transport (napalm_procurve/procurve.py ~633-645) falls back to SSH when the REST endpoint has no running config, and then returns
The startup config is never read on that path, so it reads as an empty startup config; retrieve is ignored as well (a retrieve="startup" call gets the running config read and an empty startup). The SSH transport further down reads both (show startup-config / show config).
Expected
The SSH fallback honours retrieve like the SSH transport: running and/or startup are read as asked; a part that was not asked for is "", a part that was asked for and could not be read raises. Test-first: REST without a running config + retrieve="all" returns the SSH startup config.
Priority: P4 — an empty startup config for 2530/YA-series switches on the REST transport.
## What happens
`get_config` on the REST transport (`napalm_procurve/procurve.py` ~633-645) falls back to SSH when the REST endpoint has no running config, and then returns
```python
running = self._get_config_via_ssh()
return {"running": running, "startup": "", "candidate": ""}
```
The startup config is never read on that path, so it reads as an empty startup config; `retrieve` is ignored as well (a `retrieve="startup"` call gets the running config read and an empty startup). The SSH transport further down reads both (`show startup-config` / `show config`).
## Expected
The SSH fallback honours `retrieve` like the SSH transport: running and/or startup are read as asked; a part that was not asked for is `""`, a part that was asked for and could not be read raises. Test-first: REST without a running config + `retrieve="all"` returns the SSH startup config.
Priority: P4 — an empty startup config for 2530/YA-series switches on the REST transport.
Found during the bug sweep of 2026-11-02 (#22).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What happens
get_configon the REST transport (napalm_procurve/procurve.py~633-645) falls back to SSH when the REST endpoint has no running config, and then returnsThe startup config is never read on that path, so it reads as an empty startup config;
retrieveis ignored as well (aretrieve="startup"call gets the running config read and an empty startup). The SSH transport further down reads both (show startup-config/show config).Expected
The SSH fallback honours
retrievelike the SSH transport: running and/or startup are read as asked; a part that was not asked for is"", a part that was asked for and could not be read raises. Test-first: REST without a running config +retrieve="all"returns the SSH startup config.Priority: P4 — an empty startup config for 2530/YA-series switches on the REST transport.
Found during the bug sweep of 2026-11-02 (#22).