]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/RBDPlugin.pm
rbd: use pve-storage-portal-dns-list for monhost
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Jul 2016 11:55:48 +0000 (13:55 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 11 Jul 2016 11:58:56 +0000 (13:58 +0200)
commite858048fc5aff15b459a4c56dd4bbc10e9208cd4
treec05a1fb369e3c9d13585d525525cabf5821669a9
parent33cef4c84e16c9340343144a1044a5ea98cc78d0
rbd: use pve-storage-portal-dns-list for monhost

This way we get parameter verification on monitor addresses
as well as the ability to pass multiple `--monhost`
arguments to `pvesm add`.

Since our '-list' schemas default to using commas we now
need to properly support these, so all uses of the monhost
property now replace all of semicolon, space or comma into
the currently required character.
This should fix the issues reported by Alwin Antreich on the
pve-user list.

Since this schema supports both ipv6+port notations we need
to make sure we convert to the bracket enclosed variant.
Added a helper for this.
PVE/Storage/RBDPlugin.pm