ddns: 'interface' source type cannot handle "@alias" type
Open
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
errors with e.g.
172240 : Detect current IP on 'interface'
172240 : #> ip -o addr show dev @wan6 scope global >/var/run/ddns/myddns_ipv6.dat 2>/var/run/ddns/myddns_ipv6.err
172246 ERROR : ip Error: '1'
172246 : Device "@wan6" does not exist.
Problem here:
Suggestion: check for and resolve alias interfaces prior to this.
https://forum.openwrt.org/t/proper-way-of-dealing-with-aliased-interfaces-and-uci/16274
Contributor 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.
Research direction
Start in net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh around lines 950-951 and review how the interface source builds the ip command. Reproduce the failure with an interface value such as @wan6, then resolve aliased interfaces before invoking ip so the command can detect the current address without reporting that the device does not exist.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, shell
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100