feat(aa): update templates to last struct changes.

This commit is contained in:
Alexandre Pujol 2024-06-29 22:33:45 +01:00
parent 4e1b972ee5
commit 8377dde5d2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
10 changed files with 51 additions and 16 deletions

View file

@ -8,18 +8,23 @@
{{- with .Access -}}
{{ " " }}{{ cjoin . }}
{{- end -}}
{{- .Padding 2 -}}
{{- with .Type -}}
{{ " type=" }}{{ . }}
{{- end -}}
{{- .Padding 3 -}}
{{- with .Protocol -}}
{{ " protocol=" }}{{ . }}
{{- end -}}
{{- .Padding 4 -}}
{{- with .Address -}}
{{ " addr=" }}{{ . }}
{{- end -}}
{{- .Padding 5 -}}
{{- with .Label -}}
{{ " label=" }}{{ . }}
{{- end -}}
{{- .Padding 6 -}}
{{- if and .PeerLabel .PeerAddr -}}
{{ " peer=(label=" }}{{ .PeerLabel }}{{ ", addr="}}{{ .PeerAddr }}{{ ")" }}
{{- else -}}