Repository navigation
Conversation
Config-related errors are raised using a unique error type. Config errors include a brief user-oriented description of what is incorrect or unexpected. Backtraces are NOT printed when this error type is caught. Signed-off-by: Liam Brady <lbrady@labn.net>
Derive network-side veth end names from the bridge id (NOT the name). This fixes the error where the topology fails to build under sufficiently long network names. This is because the veth ends were always 3+ chars longer than the network name (NETNAME"-e0"). A valid 15 char network name would result in an invalid 18 char veth name. Signed-off-by: Liam Brady <lbrady@labn.net>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #103 +/- ##
==========================================
- Coverage 60.55% 60.30% -0.25%
==========================================
Files 19 20 +1
Lines 5990 6044 +54
==========================================
+ Hits 3627 3645 +18
- Misses 2363 2399 +36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrates numerous assert-based config checks to the new MunetConfigError exception type. Such exceptions contain a short user-oriented error message to guide the user to a fix. Importantly, tracebacks are suppressed wherever this exception type is caught (in order to simplify the output for the user).
Shortens the network veth naming convention such that invalid internal interface names are less likely to be generated. This allows for bridge names to be
<= 15chars instead of the previous effective limit<=12. A MunetConfigError is raised if the bridge name is configured to be>= 16chars.Note: fully uncapping the bridge name limitation is out of scope of this PR and requires more investigation.