-
Notifications
You must be signed in to change notification settings - Fork 12
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
Custom MAC address #695
Custom MAC address #695
Conversation
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.
Really love how this turned out!
Great job! 🥳
e9fe3e5
to
2d788e7
Compare
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 looks great! 💪 🎉
doc/img/lego-relations.svg
Outdated
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.
Great way to align the image to the new text!
...I just noticed that the IP address attached to that Ethernet interface, although accepted by the kernel, will never behave as the user expects. Except for the traffic assigned to any of the two VLAN interfaces, all packets will be sent directly to the bridge; go not pass the IP stack; do not collect $400 😄
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.
Thanks for noticing, that could've been a source of much confusion for us and users 🤣
2d788e7
to
9f27bb4
Compare
This commit replaces the ietf-interfaces deviation for phys-address, used to set custom MAC address on interfaces, with a more flexible approach which can calculate the new MAC address based on the device's chassi MAC, with or without an added offset. The regression test has been updated to test all variants. Resolves: #680 Signed-off-by: Joachim Wiberg <[email protected]>
See issue #680 Signed-off-by: Joachim Wiberg <[email protected]>
This patch relocates the 30-cfg-migrate init script to confd, where it belongs, renaming it migrate and installing into /usr/sbin. The script has been heavily modified to be more user friendly, as well as useful for automated restore operations, to be able to refresh old backups to modern .cfg file syntax. Example (injected phys-address error): admin@example:~$ migrate -c /etc/factory-config.cfg /etc/factory-config.cfg: has syntax error, requires migrating. Since backups are created with the old confd sytanx version in the name, the backup functionality has been kept in the script. Signed-off-by: Joachim Wiberg <[email protected]>
For products with a static factory-config, or customers generating with an older syntax, attempt migration in case of bootstrap failure. Refactor logging to drop '-s'. This prevents duplicate log messages since bootstrap always runs after syslogd has started and all stdout is always logged. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Add issue #680, and all others that's gone in during the last week. Signed-off-by: Joachim Wiberg <[email protected]>
9f27bb4
to
2618085
Compare
Description
phys-address
deviation with newcustom-phys-address
,For details, see Add custom-phys-address for interfaces #680
custom-phys-address
examples to documentationOther information
Update documentation, networking.md:
Checklist
Tick relevant boxes, this PR is-a or has-a: