{{/* Auto-generated table for a simple (all-leaf) YANG list node. Data: *listTableData */}} {{define "yang-list-table"}}
{{.Name}}
{{if .Error}}
{{.Error}}
{{end}} {{if .SavedOK}}
Saved to candidate
{{end}}
{{$ro := .ReadOnly}} {{$nodeBase := "/configure/tree"}}{{if $ro}}{{$nodeBase = "/status/tree"}}{{end}} {{range .Columns}}{{end}} {{if not $ro}}{{end}} {{range .Rows}} {{$row := .}} {{range $.Columns}}{{end}} {{if not $ro}} {{end}} {{end}} {{if not .Rows}} {{end}} {{/* Hidden inline add row — config mode only */}} {{if not $ro}} {{end}}
{{.DisplayName}}
{{index $row.Values .Name}}
No entries
{{if not $ro}} {{end}}
{{end}} {{/* Blank add-row form for a simple list. Data: *listAddData */}} {{define "yang-list-add"}}
Add {{.Name}}
{{if .Error}}
{{.Error}}
{{end}}
{{range .Columns}} {{$hasHelp := or .Description .Default .Type}}
{{.Name}}{{if .Mandatory}}*{{end}} {{if and .Type (eq .Type.Kind "enumeration") .Type.Enums}} {{else if and .Type (eq .Type.Kind "identityref") .Type.Identities}} {{else if and .Type (eq .Type.Kind "boolean")}} {{else if and .Type (or (eq .Type.Kind "int8") (eq .Type.Kind "int16") (eq .Type.Kind "int32") (eq .Type.Kind "int64") (eq .Type.Kind "uint8") (eq .Type.Kind "uint16") (eq .Type.Kind "uint32") (eq .Type.Kind "uint64"))}} {{else}} {{end}} {{if $hasHelp}}
{{if .Description}}

{{.Description}}

{{end}} {{if .Default}}{{end}} {{if .Mandatory}}{{end}} {{if .Type}}{{end}} {{if and .Type .Type.Range}}{{end}} {{if and .Type .Type.Pattern}}{{end}}
Default{{.Default}}
Mandatoryyes
Type{{.Type.Kind}}
Range{{.Type.Range}}
Pattern{{.Type.Pattern}}
Path{{.Path}}
{{end}}
{{end}}
{{end}}