Skip to content

Commit

Permalink
Added modifier sub statement to pattern - rfc7950#section-9.4.5.1 (#241)
Browse files Browse the repository at this point in the history
* Added modifier substatement to pattern - rfc7950#section-9.4.5.1

* gofmt

---------

Co-authored-by: wenovus <[email protected]>
  • Loading branch information
davidmat50 and wenovus authored Jun 27, 2024
1 parent 95c1617 commit dfbf7ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/yang/yang.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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" }
Expand Down

0 comments on commit dfbf7ba

Please sign in to comment.