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

Bug(eos_designs): Relax cross-device BGP peer IP reuse validation #3914

Closed
1 task done
pmprado opened this issue Apr 26, 2024 · 4 comments · Fixed by #4050
Closed
1 task done

Bug(eos_designs): Relax cross-device BGP peer IP reuse validation #3914

pmprado opened this issue Apr 26, 2024 · 4 comments · Fixed by #4050
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@pmprado
Copy link
Contributor

pmprado commented Apr 26, 2024

Issue Summary

Today, if a given bgp peer IP is used on device A and reused on device B, validation fails:

[WARNING]: [SJC13EXTLF01-A]: 'Validation Error: Marr-Managed-WAN[0].vrfs[0].bgp_peers': Values of Primary key 'ip_address'
are not unique as required.
[WARNING]: [SJC13EXTLF01-B]: 'Validation Error: Marr-Managed-WAN[0].vrfs[0].bgp_peers': Values of Primary key 'ip_address'
are not unique as required.

However, although not a recommended design, this is a valid config.
Currently, validation has to be run set to 'warning' and the user just ignores those messages increasing margin for errors.

Please allow IP reuse for BGP peerings across different devices.

Which component(s) of AVD impacted

eos_designs

How do you run AVD ?

Ansible CLI (with virtual-env or native python)

Steps to reproduce

On an MLAG pair with -A and -B peers, configure:

On -A:
        bgp_peers:
          - ip_address: 10.95.250.201  # svi 1608

On -B:
        bgp_peers:
          - ip_address: 10.95.250.201  # svi 1609

Relevant log output

TASK [arista.avd.eos_designs : Set eos_designs facts] *********************************************************************
[WARNING]: [SJC13MARLF01-A]: 'Validation Error: Marr-Managed-WAN[0].vrfs[0].bgp_peers': Values of Primary key 'ip_address'
are not unique as required.
[WARNING]: [SJC13MARLF01-B]: 'Validation Error: Marr-Managed-WAN[0].vrfs[0].bgp_peers': Values of Primary key 'ip_address'
are not unique as required.

Contributing Guide

  • I agree to follow this project's Code of Conduct
@pmprado pmprado added the type: bug Something isn't working label Apr 26, 2024
@pmprado pmprado changed the title Relax cross-device IP reuse validation Bug(eos_designs): Relax cross-device IP reuse validation Apr 26, 2024
@pmprado pmprado changed the title Bug(eos_designs): Relax cross-device IP reuse validation Bug(eos_designs): Relax cross-device BGP peer IP reuse validation Apr 26, 2024
@ClausHolbechArista
Copy link
Contributor

So schema should be relaxed to not enforce uniqueness on primary key and then we need to ensure we use append_if_unique in the code.

@pmprado
Copy link
Contributor Author

pmprado commented Apr 30, 2024

So schema should be relaxed to not enforce uniqueness on primary key and then we need to ensure we use append_if_unique in the code.

Makes sense - I take it that append_if_unique is device-specific?

@ClausHolbechArista
Copy link
Contributor

So schema should be relaxed to not enforce uniqueness on primary key and then we need to ensure we use append_if_unique in the code.

Makes sense - I take it that append_if_unique is device-specific?

Correct.

@carlbuchmann carlbuchmann added this to the v4.9.0 milestone May 23, 2024
@carlbuchmann
Copy link
Member

carlbuchmann commented May 23, 2024

So schema should be relaxed to not enforce uniqueness on primary key and then we need to ensure we use append_if_unique in the code.

@ClausHolbechArista I beleive the correct function name is append_if_not_duplicate can you confirm!

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

Successfully merging a pull request may close this issue.

4 participants