aboutsummaryrefslogtreecommitdiffstats
path: root/src/ncm/api/providernethandler.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/ncm/api/providernethandler.go')
-rw-r--r--src/ncm/api/providernethandler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ncm/api/providernethandler.go b/src/ncm/api/providernethandler.go
index b38a16c5..23310c31 100644
--- a/src/ncm/api/providernethandler.go
+++ b/src/ncm/api/providernethandler.go
@@ -80,7 +80,7 @@ func validateProviderNetInputs(p moduleLib.ProviderNet) error {
}
// validate the VLAN ID
- errs = validation.IsValidNumber(p.Spec.Vlan.VlanId, 0, 4095)
+ errs = validation.IsValidNumberStr(p.Spec.Vlan.VlanId, 0, 4095)
if len(errs) > 0 {
return pkgerrors.Errorf("Invalid VlAN ID %v - error: %v", p.Spec.Vlan.VlanId, errs)
}