This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Enable multiple non-IP interface to be connected via tc redirect #836
Merged
Merged
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0d7046e
First crack at multinet implementation
networkop 0b3dfdb
fix the dhcp server bug
networkop 9acef4f
Merge branch 'weaveworks:main' into multinet
networkop 56ca546
Added wait for X number of interfaces to be connected
networkop 52776a6
Merge branch 'weaveworks:main' into multinet
networkop e3baa91
Merge branch 'multinet' of github.com:networkop/ignite into multinet
networkop 17765be
Fixed multiple bugs
networkop 6e19436
Ensure maxIntfs is at least 1
networkop 39d395e
Fixed formatting
networkop 9a31fb9
Forgot to assign envVars
networkop 20b4aa8
Updated docs
networkop 35dc891
More updated docs
networkop e8bd47c
More docs updates
networkop b8ef5d3
Not using env vars anymore
networkop 47c9140
Re-introducing env var support
networkop 6f1f14a
Reverting the order to error checks
networkop 90eaa58
Added multinet tests
networkop 1020f90
Fixing dox
networkop 053def5
Refactored StartVM with async spawn channel
networkop eb8997f
Refactored ignite-spawn's network setup
networkop 051ad2b
Fixed the CNI plugin bug
networkop 1c70e78
Tested with containerlab
networkop 9957b70
Merging suggested changes
networkop 3161ef4
Alternative e2e test
networkop f8d361d
Removed --wait flag and fixed up multinet tests
networkop 668b5fe
Removing waitForSSH from exec
networkop 71c801c
Removing leftover comment
networkop abddda2
Adding waitforSSH back
networkop 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
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
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.
This may not be a concern, but I noticed that
runSSH()
below accepts a timeout parameter. If thiswaitForSSH()
with default timeout of 5 seconds runs beforerunSSH()
, the user provided timeout will not work,waitForSSH()
will return error after waiting for 5 seconds andrunSSH()
with user provided timeout will never be executed.Should the timeout for
waitForSSH()
be the same as provided in theExecOptions.Timeout
?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.
oh yeah, that's a good catch. I've added it there to workaround the behavior introduced by the
--wait
flag and I forgot to remove it. Will fix this up.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.
I think my above conclusion was wrong. Complete removal of
waitForSSH
leads to multinet tests failure when the prometheus socket is up -> VM is started but SSH is still not up yet. So we need it there, but I've changed the 5 second timeout to the user-provided timeout value.