Skip to content
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

Fix(eos_cli_config_gen): Fix name-servers jinja templates to allow non-vrf nameservers #1451

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

ccsnw
Copy link
Contributor

@ccsnw ccsnw commented Jan 24, 2022

Change Summary

name-servers.j2 is missing a condition to handle non-vrf (vrf default) name servers.

In previous versions the code existed (inline) and I think it was accidently removed during refactoring.

Related Issue(s)

Fixes #N/A

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

add condition to also cover output rendering of no vrf is defined

model unchanged

How to test

molecule test only covers scenario with vrf, so maybe this is why we didn't catch the issue?

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • [O] I have updated molecule CI testing accordingly. (check the box if not applicable)

@github-actions github-actions bot added the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Jan 24, 2022
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tgodaA tgodaA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

That's a good catch. Thank you for the contribution

@ClausHolbechArista ClausHolbechArista merged commit 3e629d7 into aristanetworks:devel Jan 27, 2022
@ClausHolbechArista ClausHolbechArista added this to the v3.3.0 milestone Feb 18, 2022
@ccsnw ccsnw deleted the nameserver branch March 25, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: eos_cli_config_gen issue related to eos_cli_config_gen role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants