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

eos_cli_config_gen / pim anycast rp config is not generated if 'other_anycast_rp_addresses' is not defined #4753

Open
1 task done
philippebureau opened this issue Nov 21, 2024 · 1 comment
Labels
type: bug Something isn't working

Comments

@philippebureau
Copy link
Contributor

Issue Summary

example structured data:

      router_pim_sparse_mode:
        ipv4:
          anycast_rps:
            - address: 10.64.96.15

config output:

!
router pim sparse-mode
   ipv4
!

if you add ''other_anycast_rp_addresses' value it generate config

      router_pim_sparse_mode:
        ipv4:
          anycast_rps:
            - address: 10.64.96.15
              other_anycast_rp_addresses:
                - address: ""

output:

!
router pim sparse-mode
   ipv4
      anycast-rp 10.64.96.15 
!

the jinja template 'python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-pim-sparse-mode.j2'

i think the template should check if 'other_anycast_rp_addresses' exist before going into the for loop at line 45 and add elif with a for loop through anycast_rps.address

Screenshot from 2024-11-21 10-08-07

Which component(s) of AVD impacted

eos_cli_config_gen

How do you run AVD ?

Ansible CLI with AVD Runner

Steps to reproduce

No response

Relevant log output

No response

Contributing Guide

  • I agree to follow this project's Code of Conduct
@philippebureau philippebureau added the type: bug Something isn't working label Nov 21, 2024
@gmuloc
Copy link
Contributor

gmuloc commented Nov 22, 2024

Can you please confirm which version of EOS you are using?

site2-wan2(config-s-gmuloc2-router-pim-sparse-ipv4)#anycast-rp ?
  A.B.C.D  anycast rendezvous point IP address

site2-wan2(config-s-gmuloc2-router-pim-sparse-ipv4)#anycast-rp 1.1.1.1 ?
  A.B.C.D  other anycast rendezvous point IP address

site2-wan2(config-s-gmuloc2-router-pim-sparse-ipv4)#anycast-rp 1.1.1.1
% Incomplete command
site2-wan2(config-s-gmuloc2-router-pim-sparse-ipv4)#anycast-rp 1.1.1.1 2.2.2.2 ?
  register-count  Number of registers to forward before pausing
  <cr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants