Follow up to comments on APuP pull request
@javierbrk is already working on this.
Since Jun 20, 2025.
Assessment
This issue has not been assessed yet.
Description
The APuP pull request https://github.com/libremesh/lime-packages/pull/1134 has been merged without addressing some of the comments, so that people could start using it.
So here I report all the comments that still need to be addressed:
https://github.com/libremesh/lime-packages/pull/1134#pullrequestreview-2632486472
commenting on:
https://github.com/libremesh/lime-packages/blob/ee32e4da14be9171aa2ad7bcbd42994897beec87/packages/lime-system/files/usr/lib/lua/lime/network.lua#L630
Ok, maybe I understood:
configurewrites the configuration for the interface to get up at the next reboot or restart of the service whilerunOnDevicemakes the thing happen right now in a volatile way. I think this should be explained more extensively in the comments for the future readers.
https://github.com/libremesh/lime-packages/pull/1134#discussion_r1965179685
commenting on:
https://github.com/libremesh/lime-packages/blob/ee32e4da14be9171aa2ad7bcbd42994897beec87/packages/lime-system/files/usr/lib/lua/lime/network.lua#L550
Could you add as a comment in the code the difference between
network.createStaticandnetwork.createStaticIface?
From what I can understand, the difference is that createStaticIface creates the configuration file (the actual interface will appear upon reboot or restart of the networking service), with a custom netmask, gateway and IPv4 or IPv6. While this creates the interface in the running system (not in the configuration file) with fixed netmask, no gateway and the primary IPv4. Right? If this is right, I think that it should have a more informative name than justcreateStatic.
https://github.com/libremesh/lime-packages/pull/1134#discussion_r1965183889
commenting on:
https://github.com/libremesh/lime-packages/blob/ee32e4da14be9171aa2ad7bcbd42994897beec87/packages/lime-system/files/usr/lib/lua/lime/network.lua#L598
Same comment as above: it would be convenient to rename this function so that the difference with
createVlanIfaceis more clear.
https://github.com/libremesh/lime-packages/pull/1134#issuecomment-2674143078
lime-curtigghio only has the
test.shand the readme files, right?
In this case, I would not place it in thepackagesfolder, as it does not have a Makefile.
Thetest.shfile could be renamed and go in thetestsfolder.
The readme could be renamed (lime-curtigghiois not clear to me, does it mean anything?) and go either to the website libremesh.org as a new page or in the root of this repository.
https://github.com/libremesh/lime-packages/pull/1134#discussion_r1965534842
In this case, we have to redefine
ap_ssid.
I would propose this:
- remove both
apup_ssidandap_ssid(anyway ap_ssid was not a good description of what this variable was for, see https://github.com/libremesh/lime-packages/issues/430#issuecomment-442640124)- the AP interface SSID, both for normal AP and for APuP, gets taken from a new
ssidvariable.- the %N1 things (e.g. Batman-adv VLAN ID) gets set in a new variable, maybe
broadcast_id, instead than being calculated from another setting.
So we would move from:config lime network [...] option main_ipv4_address '10.%N1.0.0/16' [...] option main_ipv6_address 'fd%N1:%N2%N3:%N4%N5::/64' [...] list protocols batadv:%N1 [...] option anygw_mac "aa:aa:aa:%N1:%N2:aa" [...] config lime wifi [...] option ap_ssid 'LibreMesh.org' [...] option apup_ssid 'LibreMesh.org'To:
config lime network option broadcast_id 13 [...] option main_ipv4_address '10.%D1.0.0/16' [...] option main_ipv6_address 'fd%D1:%D2%D3:%D4%D5::/64' [...] list protocols batadv:%D1 [...] option anygw_mac "aa:aa:aa:%D1:%D2:aa" [...] config lime wifi [...] option ssid 'LibreMesh.org' [...]Where
%D1isbroadcast_id % 256,%D2is the next 8 bits etc etc (so by default they would be all zeros except %D1 which is 13).
- Dominant language
- Lua
- Stars
- 338
- Forks
- 113
- Avg merge
- 8d 3h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libremesh/lime-packages
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libremesh/lime-packages#1302 ·
-
drop dependencies of lime-debug and shared-state on iputils-pingPossibly taken @jay23606 claimed this 7 days ago. Openeasy to solve good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libremesh/lime-packages#1279 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
libremesh/lime-packages#1304 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
libremesh/lime-packages#1303 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 49/100
libremesh/lime-packages#1295 · 1 comment ·
All issues in libremesh/lime-packages
Similar issues
-
severity: low
Difficulty 1/5 Under an hour Newbie friendliness 72/100
luainkernel/lunatik#2727 ·
Maintainers usually reply within 1 day
-
[Fix Package]: gladPossibly taken @luadebug claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xmake-io/xmake-repo#11342 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MalloyTheDev/aseprite-mcp#279 ·
Maintainers usually reply within 1 day
-
Scan progress and ETC undercount retransmissions since 7.99x (stuck at 99.99% with --max-retries 0)Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
zigbeefordomoticz/wiki#391 ·
Maintainers usually reply within 1 day