]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: replace an empty pattern with a zero-length restriction
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 5 Oct 2021 10:27:39 +0000 (13:27 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 5 Oct 2021 11:03:37 +0000 (14:03 +0300)
No functional difference, but `length "0"` is more comprehensible.

Suggested-by: Christian Hopps <chopps@labn.net>
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
yang/frr-nexthop.yang

index 2df2e2958e92499b2be4af5c59ff5e855e53e993..adcbacbfea5e4663fe980b554244b2fdba1324c1 100644 (file)
@@ -61,7 +61,7 @@ module frr-nexthop {
     type union {
       type inet:ip-address;
       type string {
-        pattern "";
+        length "0";
       }
     }
   }