]> git.proxmox.com Git - pmg-api.git/commit
TLSPolicy: rename domain to destination
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 18 Mar 2020 10:23:45 +0000 (11:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Mar 2020 12:30:56 +0000 (13:30 +0100)
commitcce8e372aa9e902dfa7b8b17770e82450dd319b9
tree4df29e2a9e4441f404a09ccb82bed17fa8c831d2
parent644487e3d29ac87f520ff846ec64bba0ca4182c6
TLSPolicy: rename domain to destination

TLS policies are applied to destinations - for the outbound case these are
domains. However when setting a policy for a next-hop destination the
property name 'domain' is misleading, and should be renamed to 'destination'

In order to maintain backward compatibility in the API, we need to keep the
'domain' property in all return defintions, and also accept it (or the new
'destination') for the create call (all other calls get the destination from
the path)

the create call warns of the deprecation  if the domain property is provided
(which ends up in the journal), but still works.

We can then get rid of the 'domain' property with the release of PMG 7.0

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/API2/DestinationTLSPolicy.pm
src/PMG/Config.pm