summaryrefslogtreecommitdiff
path: root/PVE/Network/SDN/Controllers/Plugin.pm
diff options
context:
space:
mode:
Diffstat (limited to 'PVE/Network/SDN/Controllers/Plugin.pm')
-rw-r--r--PVE/Network/SDN/Controllers/Plugin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/PVE/Network/SDN/Controllers/Plugin.pm b/PVE/Network/SDN/Controllers/Plugin.pm
index 639caca..c1c2cfd 100644
--- a/PVE/Network/SDN/Controllers/Plugin.pm
+++ b/PVE/Network/SDN/Controllers/Plugin.pm
@@ -25,7 +25,7 @@ PVE::JSONSchema::register_format('pve-sdn-controller-id', \&parse_sdn_controller
sub parse_sdn_controller_id {
my ($id, $noerr) = @_;
- if ($id !~ m/^[a-z][a-z0-9]*[a-z0-9]$/i) {
+ if ($id !~ m/^[a-z][a-z0-9_-]*[a-z0-9]$/i) {
return undef if $noerr;
die "controller ID '$id' contains illegal characters\n";
}