X-Git-Url: https://git.proxmox.com/?p=pve-network.git;a=blobdiff_plain;f=PVE%2FNetwork%2FSDN%2FZones%2FQinQPlugin.pm;h=b39732ac835bb93f5232ae0cb188f429a225e6af;hp=c8dd0ab145d397c7672a919cfcd57093e0d207be;hb=1d44ce704733eeac5e892d4e70a84d4e2ed72775;hpb=880ae857bac796f64f854f3c5fb079b64c1f3d64 diff --git a/PVE/Network/SDN/Zones/QinQPlugin.pm b/PVE/Network/SDN/Zones/QinQPlugin.pm index c8dd0ab..b39732a 100644 --- a/PVE/Network/SDN/Zones/QinQPlugin.pm +++ b/PVE/Network/SDN/Zones/QinQPlugin.pm @@ -3,6 +3,7 @@ package PVE::Network::SDN::Zones::QinQPlugin; use strict; use warnings; use PVE::Network::SDN::Zones::Plugin; +use PVE::Exception qw(raise raise_param_exc); use base('PVE::Network::SDN::Zones::Plugin'); @@ -210,6 +211,13 @@ sub status { return $err_msg; } +sub verify_tag { + my ($class, $tag) = @_; + + raise_param_exc({ tag => "missing vlan tag"}) if !defined($tag); + raise_param_exc({ tag => "vlan tag max value is 4096"}) if $tag > 4096; +} + 1;