From 07d33852e2d07bc6bf3ff2acceb12259f22db869 Mon Sep 17 00:00:00 2001 From: sonugupta-huawei Date: Fri, 6 Oct 2017 14:54:09 +0530 Subject: [PATCH] Currecting the pattern restriction for IPV4 address in ne-l3vpncomm-type.yang here space in the pattern makes it different from the expected one as of now it expect the value in the form of 1.1.1." "1 which makes this invalid. so removing the extra spaces to receive the proper validated input. Change-Id: Ic89d7595171aff60c5c4c56d69b1faa94241ded3 --- models/huawei/src/main/yang/ne-l3vpncomm-type.yang | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/huawei/src/main/yang/ne-l3vpncomm-type.yang b/models/huawei/src/main/yang/ne-l3vpncomm-type.yang index 3e4e10c5e3..3bc62f2653 100644 --- a/models/huawei/src/main/yang/ne-l3vpncomm-type.yang +++ b/models/huawei/src/main/yang/ne-l3vpncomm-type.yang @@ -47,8 +47,7 @@ module ne-l3vpncomm-type { typedef ipv4Address { type string { length "0..255"; - pattern "((([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3} - ([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))"; + pattern "((([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))"; } } }