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
This commit is contained in:
sonugupta-huawei 2017-10-06 14:54:09 +05:30 committed by Thomas Vachuska
parent 87c87333d8
commit 07d33852e2

View File

@ -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]))";
}
}
}