AVD 4.7.1 Banner #3951
-
Hi, I am running 4.7.1 AVD and i am trying to use Banner Motd, but its not generating multi-line Banner even though the yaml input is multi-line input. banners:
motd: '
sahkjfds
sfbsdf
sdfbk
lndfsd
EOF' #Config Generated#
What do i need to yaml input to get this as multi-line input. |
Beta Was this translation helpful? Give feedback.
Answered by
ClausHolbechArista
May 7, 2024
Replies: 1 comment 1 reply
-
I updated your issue with code blocks to make it easier to follow. The issue here is YAML syntax. When you use the single quotes, you have to add double new-lines to produce a single new-line. I would suggest the following: banners:
motd: |2-
Multiline
test with spaces on
one line
EOF
Please let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ClausHolbechArista
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I updated your issue with code blocks to make it easier to follow.
The issue here is YAML syntax. When you use the single quotes, you have to add double new-lines to produce a single new-line.
I would suggest the following:
|
means multiline input, where each new line is also a new line in the output.2
means the input is interpreted with 2 spaces as indentation, so any extra spaces are included in the output.-
means the final newline will be stripped (prevents an extra blank line after the EOF)Please let me know if this works for you.