Skip to content

Conversation

praveenmatanam
Copy link

No description provided.

@praveenmatanam
Copy link
Author

Revert to banner with list of strings. Please check and accept the pull request. Thanks.

Copy link
Contributor

@rwcrowe rwcrowe left a 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.

Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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}"
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants