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

Feat(eos_designs): EVPN vlan-aware-bundle option for l2vlan #3075

Merged
merged 43 commits into from
Sep 27, 2023

Conversation

bjmeuer
Copy link
Contributor

@bjmeuer bjmeuer commented Aug 3, 2023

Change Summary

Add a structure to define vlan-aware bundles and an option to reference this definition from l2vlans.

Related Issue(s)

Fixes #3065

Component(s) name

arista.avd.eos_designs

Proposed changes

Code checks if a l2vlan references a vlan-aware bundle with the option evpn_vlan_bundle and if so it will inherit the settings from the referenced vlan-aware bundle definition. If none is defined it falls back to the vlan name as vlan-aware-bundle name.

How to test

---
  - name: FABRIC
    vlan_aware_bundle_number_base: 200
    mac_vrf_vni_base: 10000
    l2vlans:
      - id: 50
        name: ipmi
        tags: ['ipmi']
        evpn_vlan_bundle: bundle1
      - id: 60
        name: ipmi
        tags: ['fabric']
        evpn_vlan_bundle: bundle1
      - id: 70
        name: vmotion
        tags: ['ipmi']
        evpn_vlan_bundle: bundle2
      - id: 80
        name: vstorage
        tags: ['fabric']
        evpn_vlan_bundle: bundle2

evpn_vlan_bundles:
  - name: bundle1
    id: 1
    bgp:
      raw_eos_cli: |
        vlan add 1000
  - name: bundle2
    id: 2
    rt_override: 111
    rd_override: 1.1.1.1:222

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.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@github-actions github-actions bot added state: CI Updated CI scenario have been updated in the PR role: eos_designs issue related to eos_designs role labels Aug 3, 2023
@bjmeuer bjmeuer changed the title Feat (eos-designs): EVPN vlan-aware-bundle option for l2vlan Feat(eos_designs): EVPN vlan-aware-bundle option for l2vlan Aug 3, 2023
@bjmeuer bjmeuer marked this pull request as ready for review August 3, 2023 16:26
@bjmeuer bjmeuer requested review from a team as code owners August 3, 2023 16:26
@carlbuchmann carlbuchmann self-requested a review August 11, 2023 00:09
@carlbuchmann carlbuchmann marked this pull request as draft August 11, 2023 14:17
@github-actions github-actions bot added the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Aug 18, 2023
Copy link
Contributor Author

@bjmeuer bjmeuer left a comment

Choose a reason for hiding this comment

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

looks good to me, tested with data from my customer as well and it looks good.

@github-actions github-actions bot added the state: conflict PR with conflict label Sep 13, 2023
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 13, 2023
@bjmeuer bjmeuer requested a review from gmuloc September 26, 2023 05:42
bjmeuer and others added 3 commits September 27, 2023 09:07
…nit_tests/inventory/host_vars/failure-missing-evpn-vlan-bundle.yml

Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
…s/network_services/router_bgp.py

Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
@ClausHolbechArista ClausHolbechArista added this to the v4.4.0 milestone Sep 27, 2023
@bjmeuer bjmeuer requested a review from gmuloc September 27, 2023 10:36
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.

Only found some wording in the error message that could be improved.
Approving since everything else looks great.

bjmeuer and others added 2 commits September 27, 2023 13:29
…nit_tests/inventory/host_vars/failure-duplicate-evpn-vlan-bundle-name.yml

Co-authored-by: Claus Holbech <holbech@arista.com>
Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

Once the CI finishes (after the commit I just pushed) - LGTM
Thanks @bjmeuer for the work!

@JulioPDX JulioPDX merged commit febe778 into aristanetworks:devel Sep 27, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Feat(eos_designs) role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eos_designs: EVPN vlan-aware-bundle option for l2vlan
5 participants