Read QNAP's shares from QTS's own configuration (get_shares) #22

Open
opened 2026-12-03 17:43:07 +00:00 by christianmanivong · 0 comments
Owner

QnapQtsDriver announces SMB/NFS/AFP/FTP shares in its docstring (/etc/config/smb.conf, /etc/exports) but implements no get_shares.

Since napalm-linux 0.27.0 (NetOrk/netork shares-as-endpoints work) LinuxDriver brings napalm-device-types' PosixSharesMixin, so a QNAP now answers get_shares with the generic POSIX reading: /var/lib/nfs/etab and testparm -s where they exist on QTS, and -- QTS runs no systemd -- with service: None. netOrk then shows the shares in the Storage tab but cannot make them endpoints of a service.

What should happen: read QTS's own share configuration (/etc/config/smb.conf, /etc/exports, or the QTS API), naming each share's service as QTS's init names it, its export and access rules, in NASShareDict's shape (napalm-device-types 4.58.0: service, export, access, guest).

Priority: P3 -- important, not urgent: QNAP's shares are read generically meanwhile.

`QnapQtsDriver` announces SMB/NFS/AFP/FTP shares in its docstring (`/etc/config/smb.conf`, `/etc/exports`) but implements no `get_shares`. Since napalm-linux 0.27.0 (NetOrk/netork shares-as-endpoints work) `LinuxDriver` brings napalm-device-types' `PosixSharesMixin`, so a QNAP now answers `get_shares` with the generic POSIX reading: `/var/lib/nfs/etab` and `testparm -s` where they exist on QTS, and -- QTS runs no systemd -- with `service: None`. netOrk then shows the shares in the Storage tab but cannot make them endpoints of a service. **What should happen:** read QTS's own share configuration (`/etc/config/smb.conf`, `/etc/exports`, or the QTS API), naming each share's service as QTS's init names it, its export and access rules, in `NASShareDict`'s shape (napalm-device-types 4.58.0: `service`, `export`, `access`, `guest`). Priority: P3 -- important, not urgent: QNAP's shares are read generically meanwhile.
christianmanivong added the
prio
P3
enhancement
labels 2026-12-03 17:43:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-qnap-qts#22