aboutsummaryrefslogtreecommitdiffstats
path: root/src/ncm/api
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2020-05-19 09:44:44 -0700
committerEric Multanen <eric.w.multanen@intel.com>2020-05-28 17:39:07 -0700
commitdbc8b2543e9c92a95b967a1abf2e5445e7799eeb (patch)
tree9fc7c8c71f0958f8efe4f99fe02a405373725cc1 /src/ncm/api
parent7fc603a5eedcd6a84860c881a1228309a308805f (diff)
Fix Network and ProviderNetwork yaml formatting
Correct yaml format of Network and ProviderNetwork CRs produced by ncm so that they can be deployed in a cluster. Issue-ID: MULTICLOUD-1072 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I27e55c0c7428ccee6ddb720445e104054eefcee3
Diffstat (limited to 'src/ncm/api')
-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)
}