summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-04-12 21:27:56 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2024-04-21 17:57:03 +0200
commit4a81d868db85a7954a73bc6dc4a957bbd6abc813 (patch)
treeaaaf2a3232d2bedc8d09b740eb2cfff027e49823 /toolchain
parentea609fe486a99af6540dcc7a18f0827481d0c4b0 (diff)
downloadopenwrt-4a81d868db85a7954a73bc6dc4a957bbd6abc813.tar.gz
openwrt-4a81d868db85a7954a73bc6dc4a957bbd6abc813.tar.bz2
openwrt-4a81d868db85a7954a73bc6dc4a957bbd6abc813.zip
lldpd: extended interface(s) parsing to handle patterns
For interface type parameters, the man page documents patterns: ``` *,!eth*,!!eth1 uses all interfaces, except interfaces starting with "eth", but including "eth1". ``` * Renamed `_ifname` to `_l2dev`. * get the l2dev via network_get_physdev (and not l3dev) * Glob pattern `*` is also valid - use noglob for this The net result is that now interface 'names' including globs '*' and '!' inversions are included in the generated lldpd configs. Temporarily `set -o noglob` and then `set +o noglob` to disable & enable globbing respectively, because when we pass `*` as an interface choice, other file and pathnames get sucked in from where the init script runs, and the `*` never makes it to lldpd. Tested extensively on: 22.03.6, 23.05.3 Signed-off-by: Paul Donald <newtwen+github@gmail.com> [ squash with commit bumping release version ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'toolchain')
0 files changed, 0 insertions, 0 deletions