mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-17 11:46:49 +00:00

this adds the typical section config crud API calls for USB and PCI resource mapping to /cluster/mapping/{TYPE} the only special thing that this series does is the list call for both has a special 'check-node' parameter that uses the 'proxyto_callback' to reroute the api call to the given node so that it can check the validity of the mapping for that node in the future when we e.g. broadcast the lspci output via pmxcfs we drop the proxyto_callback and directly use the info from pmxcfs (or we drop the parameter and always check all nodes) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
19 lines
392 B
Makefile
19 lines
392 B
Makefile
include ../../../../defines.mk
|
|
|
|
# for node independent, cluster-wide applicable, API endpoints
|
|
# ensure we do not conflict with files shipped by pve-cluster!!
|
|
PERLSOURCE= \
|
|
PCI.pm \
|
|
USB.pm
|
|
|
|
all:
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~
|
|
|
|
.PHONY: install
|
|
install: ${PERLSOURCE}
|
|
install -d ${PERLLIBDIR}/PVE/API2/Cluster/Mapping
|
|
install -m 0644 ${PERLSOURCE} ${PERLLIBDIR}/PVE/API2/Cluster/Mapping
|