-
Notifications
You must be signed in to change notification settings - Fork 278
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
New link struct - Vxlan #1532
Merged
Merged
New link struct - Vxlan #1532
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
7bb5cd4
init
steiler 11a03a1
push vxlan interface to container, rename and bring it up
steiler 376c0e3
implement vxlan-stitch
steiler 0827764
update doc
steiler 0721747
remove vethcleanup and replace with general remove on links
steiler 1719074
add debug log message
steiler a5fad50
fix test
steiler 1f69cd7
vxlan tests
steiler 127e3da
protect from race
steiler 73bbd91
please deepsource
steiler 85433b5
tools vxlan create to also use new link struct
steiler 65cfc01
Merge branch 'main' into vxlanNewLinkStruct
hellt 30cdcf1
added vxlan test to ci
hellt b51def3
set mtu in srl config only if is not the default 9500 values
hellt c57a0c2
move func to netlink utils
hellt 5784bf0
fix descr
hellt 3c45511
additional comments to funcs
hellt 96dcc43
capitilize MTU
hellt 5d3ed47
Make Endpoints accessible for LinkVeth struct
hellt 54863c4
remove temp container in cleanup
hellt f012b82
make cases look less busy
hellt dbec975
capitalize
hellt ab45cdb
change default vxlan port
hellt 3d89049
some renaming to keep func names consistent
hellt 14b4161
set udp port to default if not set
hellt 2a4b777
refactored startup and overlay config handling
hellt 52d182c
remove log message
hellt ddfc256
refactor vxlan test using native clab constructs
hellt f3d263f
silence complexity check
hellt a95c2df
increase connectivity timer for tests
hellt dda79fb
added step to verify vxlan link params and skip traffic test in CI
hellt b2a903a
use link aliases for long names
hellt 1079743
use the right link
hellt 1fc47c0
started refactoring vxlan stitched test
hellt de394ed
use linear host link resolving process
hellt f49fe78
adapt stitch tests
hellt a6475d6
use any to check for netnsid in ci
hellt 1ab2dc1
fix link deletion
steiler 8458f0b
reorg
steiler 5d23d12
please deepsource
steiler f7965ff
carve out GetRouteForIP helper func
hellt 6d6ebb8
removed vxlan params (learning l2/3 miss
hellt 485d6be
parallelize vxlan tests
hellt 19dc2f1
added logname parser func
hellt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: vxlan-test | ||
|
||
"on": | ||
workflow_call: | ||
|
||
jobs: | ||
vxlan-tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
runtime: | ||
- "docker" | ||
test-suite: | ||
- "01*.robot" | ||
- "02*.robot" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: containerlab | ||
|
||
- name: Move containerlab to usr/bin | ||
run: sudo mv ./containerlab /usr/bin/containerlab && sudo chmod a+x /usr/bin/containerlab | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: pip | ||
cache-dependency-path: "tests/requirements.txt" | ||
|
||
- name: Install robotframework | ||
run: | | ||
pip install -r tests/requirements.txt | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run tests | ||
run: | | ||
bash ./tests/rf-run.sh ${{ matrix.runtime }} ./tests/08-vxlan/${{ matrix.test-suite }} | ||
|
||
# upload test reports as a zip file | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: 08-${{ matrix.runtime }}-vxlan-log | ||
path: ./tests/out/*.html | ||
|
||
# upload coverage report from unit tests, as they are then | ||
# merged with e2e tests coverage | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: coverage | ||
path: ./tests/coverage/* | ||
retention-days: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to find a solution for this removed func. While working on the vlxan-stich I see that when I remove the lab, the host link remains.
This was the reason to have this func.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Remove() function is implemented on the vxlan link and forwarded to the local endpoint. The local endpoint is actually a generic endpoint. My thinking as of now is, that the removal is triggered but executed in the wrong namespace, that of the container not in the host namespace.
Let me verify.