]> git.puffer.fish Git - mirror/frr.git/commitdiff
yang: replace an empty pattern with a zero-length restriction 9784/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 5 Oct 2021 10:27:39 +0000 (13:27 +0300)
committermergify-bot <noreply@mergify.io>
Fri, 8 Oct 2021 15:32:55 +0000 (15:32 +0000)
No functional difference, but `length "0"` is more comprehensible.

Suggested-by: Christian Hopps <chopps@labn.net>
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 405ebe45cf111376fe33bad45b4ec836e0157d9f)

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";
       }
     }
   }