openwrt / openwrt/packages

ddns: 'interface' source type cannot handle "@alias" type

Open
#24,922 0 comments 4 reactions 0 assignees View on GitHub

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:

https://github.com/openwrt/packages/blob/8cc9191c7f063a38ffa8a531275a34c239c21f55/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh#L950-L951

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.