From dfbf7ba9ba8401846d2a2f0ee284c5d6181fd9a0 Mon Sep 17 00:00:00 2001 From: David Abraham Mathews Date: Fri, 28 Jun 2024 05:27:14 +0530 Subject: [PATCH] Added modifier sub statement to pattern - rfc7950#section-9.4.5.1 (#241) * Added modifier substatement to pattern - rfc7950#section-9.4.5.1 * gofmt --------- Co-authored-by: wenovus --- pkg/yang/yang.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/yang/yang.go b/pkg/yang/yang.go index 4f628017..efff44a2 100644 --- a/pkg/yang/yang.go +++ b/pkg/yang/yang.go @@ -1046,6 +1046,7 @@ func (s *Length) Statement() *Statement { return s.Source } func (s *Length) Exts() []*Statement { return s.Extensions } // A Pattern is defined in: http://tools.ietf.org/html/rfc6020#section-9.4.6 +// and http://tools.ietf.org/html/rfc7950#section-9.4.5.1 ("modifier" sub-statement) type Pattern struct { Name string `yang:"Name,nomerge"` Source *Statement `yang:"Statement,nomerge"` @@ -1056,6 +1057,7 @@ type Pattern struct { ErrorAppTag *Value `yang:"error-app-tag"` ErrorMessage *Value `yang:"error-message"` Reference *Value `yang:"reference"` + Modifier *Value `yang:"modifier"` } func (Pattern) Kind() string { return "pattern" }