Rework network configuration #209
No reviewers
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#212 treewide: reorder layer3-specific uci-default scripts
freifunk-franken/firmware
#213 fff-network: remove hardcoded network config
freifunk-franken/firmware
Reference: freifunk-franken/firmware#209
Loading…
Reference in New Issue
No description provided.
Delete Branch "fbl:network-overhaul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The configurenetwork script has been a big, hard to maintain monolith for a long time now, even though its functionality can be broken down into rather simple, easy-to-follow scripts. Also, due to some leftovers, it is rather slow and might also cause a race conditions (see #203).
This patchset aims to improve readabilty, maintainability and speed of our network configuration by removing manual changes to the kernel and separating static and dynamic configuration.
It might also fix the race condition mentioned in #203.
This patchset has been runtime-tested on a TP-Link WDR4900 using the node variant. One- and Two-Port devices, as well as devices using our DSA configuration still have to be tested.
Due to the rather weird dependencies of the layer3 variant to the base configuration established by the fff-network package, it should be tested for any regressions before applying the patchset.
@ -0,0 +49,4 @@
set network.bat0.fragmentation='1'
set network.bat0.orig_interval='1000'
set network.bat0.distributed_arp_table='1'
set network.bat0.hop_penalty='30'
Hi Fabian,
der Block kommt doch mit fff-batman-adv rein. Sollte nicht default sein. Oder moechtest du den auch in der l3 haben?
Robert
Ich möchte die l3 config langfristig komplett unabhängig von dieser Basiskonfiguration machen. Kurzfristig würde ich diesen Umstand einfach - wie bisher - hinnehmen.
So ist es halt doppelt. Einmal hier und im package fff-batman-adv.
Ah, an mir ist total vorbei gegangen, was du eigentlich meinst. Das war vorher ja auch nicht da und gehört hier entsprechend auch überhaupt nicht hin.
Ich hab da einen relativ alten Patch von mir wiederverwertet, möglicherweise ist da was übrig geblieben.
Würde ich entsprechend entfernen, gut aufgepasst!
@ -0,0 +143,4 @@
echo "MAC for client is set already"
else
echo "Fixing MAC on br-client"
sleep 10
Ich vermute, dass man hier das sleep nicht braucht. Im alten configurenetwork war da direkt davor ein network-restart. Auf den musste wohl gewartet werden. Hier gibt es nur ein uci commit.
Im Rest von configurenetwork ist auch noch so ein sleep uebrig, wo vorher ein network-restart war.
Guter Punkt, der sollte nicht mehr nötig sein. Ebenso gilt dies für Fallunterscheidung, die kann komplett raus. Für das konfigurieren der fdff:: Adressen hatte ich das ja auch so gemacht, hier hab ich das dann wohl übersehen.
aa776ecbdf
toae0cfb7068
Changes:
Auf meinen staging tree applied.
Pull request closed