Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added modifier sub statement to pattern - rfc7950#section-9.4.5.1 #241

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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