-
Notifications
You must be signed in to change notification settings - Fork 5
Banner Feature Implemented #3
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
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 6e7a507.
Revert to banner with list of strings. Please check and accept the pull request. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address comments/changes, then we can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to modify this file. I will delete from PR.
for device in local.devices : [ | ||
for banner in try(local.device_config[device.name].banner, []) : { | ||
device_name = device.name | ||
banner_type = banner.banner_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you wrap this in try and reference defaults that we will be adding.
banner_type = try(banner.banner_type, local.defaults.iosxr.configuration.banner_type, null)
for banner in try(local.device_config[device.name].banner, []) : { | ||
device_name = device.name | ||
banner_type = banner.banner_type | ||
line = banner.line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you wrap this in try and reference defaults that we will be adding.
line = try(banner.line, local.defaults.iosxr.configuration.banner_line, null)
device_name = device.name | ||
banner_type = banner.banner_type | ||
line = banner.line | ||
key = "${device.name}-${banner.banner_type}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you wrap this in try.
key = try("${device.name}-${banner.banner_type}", null)
No description provided.