Follow up to comments on APuP pull request

Open
#1,193 1 comment 0 reactions 2 assignees View on GitHub

@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: configure writes the configuration for the interface to get up at the next reboot or restart of the service while runOnDevice makes 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.createStatic and network.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 just createStatic.


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 createVlanIface is more clear.


https://github.com/libremesh/lime-packages/pull/1134#issuecomment-2674143078

lime-curtigghio only has the test.sh and the readme files, right?
In this case, I would not place it in the packages folder, as it does not have a Makefile.
The test.sh file could be renamed and go in the tests folder.
The readme could be renamed (lime-curtigghio is 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_ssid and ap_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 ssid variable.
  • 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 %D1 is broadcast_id % 256, %D2 is 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libremesh/lime-packages

All issues in libremesh/lime-packages

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.