mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 05:45:00 +00:00
Status: allow IPs and move properties to base class
We only allowed servers with the dns-name format, as such status server may often be in internal networks and with no hostname (testing, small network so no dns, ...) do not limit the configuration possibilities with no reason. Also move the base property part to the base Status class, all current plugins use server and port so no need for double declaration of format/descriptions. If a future plugin doesn't need them it can omit them by not returning the respective properties in the options method inherited by SectionConfig. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f51fdaa6a8
commit
4caf47e9e2
@ -20,14 +20,6 @@ sub type {
|
||||
|
||||
sub properties {
|
||||
return {
|
||||
server => {
|
||||
type => 'string', format => 'dns-name',
|
||||
description => "server dns name",
|
||||
},
|
||||
port => {
|
||||
type => 'integer',
|
||||
description => "network port",
|
||||
},
|
||||
path => {
|
||||
type => 'string', format => 'graphite-path',
|
||||
description => "root graphite path (ex: proxmox.mycluster.mykey)",
|
||||
|
@ -26,6 +26,14 @@ my $defaultData = {
|
||||
type => 'boolean',
|
||||
optional => 1,
|
||||
},
|
||||
server => {
|
||||
type => 'string', format => 'address',
|
||||
description => "server dns name or IP address",
|
||||
},
|
||||
port => {
|
||||
type => 'integer',
|
||||
description => "server network port",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user