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

Add ability to not enable mlag dual primary detection #547

Merged
merged 5 commits into from
Dec 29, 2020
Merged

Add ability to not enable mlag dual primary detection #547

merged 5 commits into from
Dec 29, 2020

Conversation

ksator
Copy link
Contributor

@ksator ksator commented Dec 28, 2020

Change Summary

Add ability to not enable mlag dual primary detection

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Documentation content changes
  • Other (please describe):

Related Issue(s)

#532

Component(s) name

l3ls role

templates:

Proposed changes

Added a var dual_primary_detection (default is true) to l3leaf/defaults and l3leaf/node_groups/group and l2leaf/defaults and l2leaf/node_groups/group.

This is consumed by l3ls role to generate appropriate structured config

How to test

run the l3ls role with this sort of examples (dual_primary_detection: false/true at diff levels)

l3leaf:
  defaults:
    virtual_router_mac_address: 00:1c:73:00:dc:01
    platform: vEOS-LAB
    spines: [DC1-SPINE1, DC1-SPINE2]
    uplink_to_spine_interfaces: [Ethernet1, Ethernet2]
    mlag_interfaces: [Ethernet7, Ethernet8]
    dual_primary_detection: false
  node_groups:
    DC1_LEAF1:
      mlag: true
      dual_primary_detection: true
      bgp_as: 65101
      filter:
        tenants: [ Tenant_A, Tenant_D ]
        tags: [ web, app, vm, nfs, erp, db, vmotion ]
      nodes:
        DC1-LEAF1A:
          id: 1
          mgmt_ip: 10.73.1.105/24
          spine_interfaces: [Ethernet1, Ethernet1]
        DC1-LEAF1B:
          id: 2
          mgmt_ip: 10.73.1.106/24
          spine_interfaces: [Ethernet2, Ethernet2]
    DC1_LEAF2:
      bgp_as: 65102
      nodes:
        DC1-LEAF2A:
          id: 3
          mgmt_ip: 10.73.1.107/24
          spine_interfaces: [Ethernet4, Ethernet4]
        DC1-LEAF2B:
          id: 4
          mgmt_ip: 10.73.1.108/24
          spine_interfaces: [Ethernet5, Ethernet5]
l2leaf:
  defaults:
    dual_primary_detection: false
    platform: vEOS-LAB
    parent_l3leafs: [ DC1-LEAF1A, DC1-LEAF1B ]
    uplink_interfaces: [ Ethernet1, Ethernet2 ]
    mlag_interfaces: [ Ethernet7, Ethernet8 ]
    spanning_tree_mode: mstp
    spanning_tree_priority: 16384
  node_groups:
    DC1_L2LEAF:
      parent_l3leafs: [ DC1-LEAF1A, DC1-LEAF1B ]
      filter:
        tenants: [ Tenant_A, Tenant_D ]
        tags: [ opzone, web, app, vm ]
      nodes:
        DC1-L2LEAF1A:
          id: 5
          mgmt_ip: 10.73.1.117/24
          l3leaf_interfaces: [ Ethernet3, Ethernet3 ]
        DC1-L2LEAF2A:
          id: 7
          mgmt_ip: 10.73.1.118/24
          l3leaf_interfaces: [ Ethernet4, Ethernet4 ]

Checklist:

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed (pre-commit, make linting and make sanity-lint).
  • I have updated molecule CI testing accordingly

@ksator ksator added the role: eos_l3ls_evpn issue related to eos_l3ls_evpn role label Dec 28, 2020
@ksator ksator requested a review from titom73 December 28, 2020 18:58
@ksator ksator self-assigned this Dec 28, 2020
@ksator ksator linked an issue Dec 28, 2020 that may be closed by this pull request
@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Dec 28, 2020
@ksator ksator marked this pull request as ready for review December 28, 2020 20:28
Copy link
Contributor

@titom73 titom73 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!

@titom73 titom73 merged commit 3641847 into aristanetworks:devel Dec 29, 2020
@titom73 titom73 added this to the v2.0.0rc1 milestone Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: eos_l3ls_evpn issue related to eos_l3ls_evpn 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.

Knob to disable dual-primary for MLAG in L3LS
2 participants