Skip to content

Commit

Permalink
Fix problem where a Choice statement contains Choice statements (yang…
Browse files Browse the repository at this point in the history
… 1.1) and Issue openconfig#75 (augments in Uses)

Signed-off-by: Johan Nemitz <[email protected]>
  • Loading branch information
johannemitzcisco committed Mar 3, 2022
1 parent fa1e168 commit aed5609
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/yang/yang.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ type Choice struct {
Anydata []*AnyData `yang:"anydata"`
Anyxml []*AnyXML `yang:"anyxml"`
Case []*Case `yang:"case"`
Choice []*Choice `yang:"choice"`
Config *Value `yang:"config"`
Container []*Container `yang:"container"`
Default *Value `yang:"default"`
Expand Down Expand Up @@ -624,13 +625,13 @@ type Uses struct {
Parent Node `yang:"Parent,nomerge" json:"-"`
Extensions []*Statement `yang:"Ext" json:"-"`

Augment *Augment `yang:"augment" json:",omitempty"`
Description *Value `yang:"description" json:",omitempty"`
IfFeature []*Value `yang:"if-feature" json:"-"`
Refine []*Refine `yang:"refine" json:"-"`
Reference *Value `yang:"reference" json:"-"`
Status *Value `yang:"status" json:"-"`
When *Value `yang:"when" json:",omitempty"`
Augment []*Augment `yang:"augment" json:",omitempty"`
Description *Value `yang:"description" json:",omitempty"`
IfFeature []*Value `yang:"if-feature" json:"-"`
Refine []*Refine `yang:"refine" json:"-"`
Reference *Value `yang:"reference" json:"-"`
Status *Value `yang:"status" json:"-"`
When *Value `yang:"when" json:",omitempty"`
}

func (Uses) Kind() string { return "uses" }
Expand Down

0 comments on commit aed5609

Please sign in to comment.