]> git.proxmox.com Git - qemu-server.git/commitdiff
config: harmonize bridge pattern
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 8 Apr 2020 12:02:49 +0000 (14:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Apr 2020 12:58:12 +0000 (14:58 +0200)
so that pve-container and qemu-server use the same one, in preparation
for moving it to JSONSchema and having a bridgepair format.

(cherry picked from commit 5ef36728901f3ae459eb649aceea38620f0a09e2)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/QemuServer.pm

index 60a377c7b71b86c3e28f8011fbdb0a3bbce443f2..e88ddbf60459acfbd0b791b16fac6588c685ab08 100644 (file)
@@ -811,6 +811,7 @@ my $net_fmt = {
        type => 'string',
        description => $net_fmt_bridge_descr,
        format_description => 'bridge',
+       pattern => '[-_.\w\d]+',
        optional => 1,
     },
     queues => {