-
Notifications
You must be signed in to change notification settings - Fork 45
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
If possible use systemd's machine-id as node_id #48
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.
I have seen this code somewhere already ;)
Shouldn't this only change, in case there is no batman mac |
The order is intentionally: At first try to get the machine-id, and only if's not availablle (means: no systemd on the machine) use the batman mac. |
I guess @rubo77 intended to mention that upgrading mesh-announce to this change will change the node_id of already existing setups. |
I think this solution makes sense for Babel setups. For batadv, I consider any setup that doesn't fix all MAC addresses broken, so this change would not be necessary - and, as already pointed out by others, problematic for existing setups. |
OK. Seems I underestimated the dimension of this topic.
If you want to avoid a breaking switch to machine-id, maybe a command line option could be added to enable the usage of machine-id instead of batman's MAC. Or one to set the node_id manually. @NeoRaider: |
Bislang ändern sich die MAC-Adressen der Batman-Interfaces bei jedem Reboot des Gateways NeoRaider sagt: "For batadv, I consider any setup that doesn't fix all MAC addresses broken" (ffnord/mesh-announce#48 (comment)) Löst auch das Problem, dass jeder Reboot zu einem neuen und einem toten Gateway auf der Freifunk-Karte führt
Closing PR since the current approach presented does not make any sense. |
If available use systemd's machine-id as node_id.
Fixes #37 and, for non babel setups, the necessity of having fixed MAC addresses on the bat interfaces.