Skip to content

fix: handle hyphens in bridge names and skip IFB devices (br-lan-ifb crash) - #23

Merged
wickedyoda merged 1 commit into
masterfrom
fix/ifb-bridge-hyphen-config
Sep 11, 2026
Merged

wickedyoda merged 1 commit into
masterfrom
fix/ifb-bridge-hyphen-config

Conversation

@wickedyoda

Copy link
Copy Markdown
Owner

Fixes the eval: PRIOR_LAN-IFB=skip: not found crash when the router has bridge interfaces with hyphens in their names (e.g. br-lan-ifb).

Changes:

  • Convert hyphens to underscores in config_name (br-lan-ifb → LAN-IFB → LAN__IFB)
  • Skip *-ifb devices entirely in bridge discovery (they're IFB traffic mirroring interfaces, not QoS targets)
  • Updated checksums.txt for modified scripts

br-lan-ifb produces config_name=LAN-IFB which is invalid for shell
variable names. Convert hyphens to underscores in config_name.
Also skip *-ifb devices entirely since they're traffic mirroring
interfaces, not QoS targets.
Copilot AI lite review requested due to automatic review settings September 11, 2026 20:54
@wickedyoda
wickedyoda merged commit ca0cf12 into master Sep 11, 2026
3 checks passed
@wickedyoda
wickedyoda deleted the fix/ifb-bridge-hyphen-config branch September 11, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Setup and runtime paths still mishandle IFB devices and custom hyphenated bridge priorities.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request fixes hyphenated bridge-name handling and attempts to exclude IFB devices from QoS processing.

Changes:

  • Normalize hyphens in generated configuration names.
  • Skip IFB devices during bridge discovery.
  • Update script checksums.

Review findings:

  • glinet-vlan-qos-setup.sh:223 — Moderate, 3 votes: write_config() still emits configuration for IFB bridges.
  • glinet-vlan-qos-setup.sh:139 — Moderate, 2 votes: custom hyphenated bridges lose their selected priority.
  • glinet-vlan-qos.sh:117 — Moderate, 3 votes: runtime enumeration paths still process IFB devices.
File summaries
File Summary
glinet-vlan-qos.sh Updates bridge filtering and configuration-name handling.
glinet-vlan-qos-setup.sh Updates bridge discovery and generated variable names.
checksums.txt Refreshes checksums for the modified scripts.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread glinet-vlan-qos-setup.sh
Comment on lines +139 to +140
br-*) config_name=$(echo "$b" | sed 's/br-//' | tr '[:lower:]' '[:upper:]' | tr '-' '_') ;;
*) config_name=$(echo "$b" | tr '[:lower:]' '[:upper:]' | tr '-' '_') ;;
Comment thread glinet-vlan-qos-setup.sh
tailscale0|tailscale) config_name="TAILSCALE" ;;
br-*) config_name=$(echo "$br" | sed 's/br-//' | tr '[:lower:]' '[:upper:]') ;;
*) config_name=$(echo "$br" | tr '[:lower:]' '[:upper:]') ;;
br-*) config_name=$(echo "$br" | sed 's/br-//' | tr '[:lower:]' '[:upper:]' | tr '-' '_') ;;
Comment thread glinet-vlan-qos.sh
Comment on lines +117 to +120
# Skip IFB devices (e.g., br-lan-ifb) — they're for traffic mirroring, not QoS
case "$br" in
*-ifb) continue ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants