Skip to content

network: Add BGP+EVPN+VXLAN script to main repository and Agent package #9778

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

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

wido
Copy link
Contributor

@wido wido commented Oct 8, 2024

Description

This script can be used to use BGP+EVPN for VXLAN instead of multicast.

In order to use the script operators need to manually create a symlink:

cd /usr/share
ln -s modifyvxlan.sh cloudstack-common/scripts/vm/network/vnet/modifyvxlan-evpn.sh

Configuring BGP and EVPN is outside of the scope of CloudStack and is up to the operator to configure.

This commit just adds this script to the main repository and does not change any existing functionality.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.09%. Comparing base (bd874ea) to head (5a7e281).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9778   +/-   ##
=========================================
  Coverage     16.09%   16.09%           
+ Complexity    12934    12933    -1     
=========================================
  Files          5644     5644           
  Lines        494587   494587           
  Branches      59964    59964           
=========================================
  Hits          79622    79622           
  Misses       406129   406129           
  Partials       8836     8836           
Flag Coverage Δ
uitests 4.01% <ø> (ø)
unittests 16.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rohityadavcloud rohityadavcloud added this to the 4.20.1.0 milestone Oct 8, 2024
Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

Thanks @wido LGTM - can you also propose a documentation PR at https://github.com/apache/cloudstack-documentation/pulls (where you can link to Vincent's blog) that could even as an example document how to prepare/config/setup BGP/EVPN outside of CloudStack & then use this feature.

@wido
Copy link
Contributor Author

wido commented Oct 8, 2024

Thanks @wido LGTM - can you also propose a documentation PR at https://github.com/apache/cloudstack-documentation/pulls (where you can link to Vincent's blog) that could even as an example document how to prepare/config/setup BGP/EVPN outside of CloudStack & then use this feature.

Yes, I think that documentation is long overdue anyway.

@wido
Copy link
Contributor Author

wido commented Oct 8, 2024

Thanks @wido LGTM - can you also propose a documentation PR at https://github.com/apache/cloudstack-documentation/pulls (where you can link to Vincent's blog) that could even as an example document how to prepare/config/setup BGP/EVPN outside of CloudStack & then use this feature.

Yes, I think that documentation is long overdue anyway.

PR open: apache/cloudstack-documentation#444

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

lgtm

I have tested the script before
https://gist.github.com/wido/51cb9880d86f08f73766634d7f6df3f4
it worked fine in a single cluster.

I did not test multiple clusters/racks.

@alexandremattioli
Copy link
Contributor

Glad to see this here @wido
LGTM

Copy link

github-actions bot commented Jan 8, 2025

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

wido added 2 commits January 13, 2025 14:33
This script can be used to use BGP+EVPN for VXLAN instead of multicast.

In order to use the script operators need to manually create a symlink:

cd /usr/share
ln -s modifyvxlan.sh cloudstack-common/scripts/vm/network/vnet/modifyvxlan-evpn.sh

Configuring BGP and EVPN is outside of the scope of CloudStack and is
up to the operator to configure.

This commit just adds this script to the main repository and does not
change any existing functionality.
@wido
Copy link
Contributor Author

wido commented Jan 13, 2025

I rebased against main as there were conflicts. As I see a lot of LGTM, I think this one can merge now? As it only adds a file and doesn't change anything to the existing codebase.

@DaanHoogland
Copy link
Contributor

@wido , do you want it on main (i.e. 4.21) or on 4.20(.1)?

@wido
Copy link
Contributor Author

wido commented Jan 13, 2025

@wido , do you want it on main (i.e. 4.21) or on 4.20(.1)?

Main is fine!

@DaanHoogland DaanHoogland modified the milestones: 4.20.1, 4.21.0 Jan 13, 2025
@DaanHoogland DaanHoogland merged commit baad8dd into apache:main Jan 13, 2025
26 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jan 16, 2025
…ge (apache#9778)

This script can be used to use BGP+EVPN for VXLAN instead of multicast.

In order to use the script operators need to manually create a symlink:

cd /usr/share
ln -s modifyvxlan.sh cloudstack-common/scripts/vm/network/vnet/modifyvxlan-evpn.sh

Configuring BGP and EVPN is outside of the scope of CloudStack and is
up to the operator to configure.

This commit just adds this script to the main repository and does not
change any existing functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants