-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update README and move start.sh script (and rename) #263
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,21 +121,31 @@ This is the equivalent of: | |
ip addr del MY_IP dev MY_INTERFACE | ||
``` | ||
|
||
## Dev environment | ||
## Development environment | ||
|
||
To make it work in dev you might want to create some dummy interfaces: | ||
To make it work in dev you need to create dummy interfaces which will be | ||
manipulated by LinK to simulate failover. | ||
|
||
```shell | ||
modprobe dummy | ||
ip link add eth10 type dummy | ||
ip link set eth10 up | ||
ip link add eth11 type dummy | ||
ip link set eth11 up | ||
ip link add eth12 type dummy | ||
ip link set eth12 up | ||
The best way is to use systemd to automate this setup: | ||
|
||
```bash | ||
for idx in 10 11 12 ; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: maybe explicitly mention that this code block is |
||
echo "[NetDev] | ||
Name=eth${idx} | ||
Kind=dummy" | sudo tee "/etc/systemd/network/10-sc-dummy-eth${idx}.netdev" | ||
done | ||
|
||
echo "[Match] | ||
Name=eth1* | ||
[Link] | ||
ActivationPolicy=up" | sudo tee "/etc/systemd/network/11-sc-dummy-activation.network" | ||
``` | ||
|
||
The script `start.sh` can be executed as root to automatically do that. | ||
Then run `systemctl restart systemd-networkd` to activate them immediately. | ||
|
||
If you're not using Systemd or want to do the setup manually, the script | ||
`hacks/setup_dummy_netlink_interfaces.sh` can be executed as root to manually | ||
create `eth10`, `eth11` and `eth12`. | ||
|
||
## Release a New Version | ||
|
||
|
File renamed without changes.
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.
praise: I like this kind of attention to details 🤩