New bridge logic is not detecting all bridges #934

Closed
opened 2026-02-04 22:16:01 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @jedis00 on GitHub (May 9, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Unifi

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/unifi.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

9d21ceacc3

This is causing vmbr0 to not show as selectable in the list, which doesn't give network access to containers when the default network device is vmbr0.

🔄 Steps to reproduce the issue.

Here's the command the script runs:

# grep -B1 "bridge-" /etc/network/interfaces | grep "iface" | grep -Pv "^\s*#" | awk '{print $2}' | sort | uniq | while read bridge; do ip link show "$bridge" 2> /dev/null | grep -oP "$bridge"; done
vmbr1
vmbr2
vmbr3
vmbr4
vmbr5

Paste the full error output (if available).

No error, other than you can't select the correct bridge.

🖼️ Additional context (optional).

No response

Originally created by @jedis00 on GitHub (May 9, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Unifi ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/unifi.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. https://github.com/community-scripts/ProxmoxVE/commit/9d21ceacc3fa14805ebe4200a9cd47b51b21d76f This is causing `vmbr0` to not show as selectable in the list, which doesn't give network access to containers when the default network device is `vmbr0`. ### 🔄 Steps to reproduce the issue. Here's the command the script runs: ``` # grep -B1 "bridge-" /etc/network/interfaces | grep "iface" | grep -Pv "^\s*#" | awk '{print $2}' | sort | uniq | while read bridge; do ip link show "$bridge" 2> /dev/null | grep -oP "$bridge"; done vmbr1 vmbr2 vmbr3 vmbr4 vmbr5 ``` ### ❌ Paste the full error output (if available). No error, other than you can't select the correct bridge. ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 22:16:01 +03:00
Author
Owner

@jedis00 commented on GitHub (May 9, 2025):

@filippolauria

@jedis00 commented on GitHub (May 9, 2025): @filippolauria
Author
Owner

@jedis00 commented on GitHub (May 9, 2025):

The previous version of the helper script works fine:

# ip link show | grep -oP '(?<=: )vmbr\d+' | sort
vmbr0
vmbr1
vmbr2
vmbr3
vmbr4
vmbr5
@jedis00 commented on GitHub (May 9, 2025): The previous version of the helper script works fine: ``` # ip link show | grep -oP '(?<=: )vmbr\d+' | sort vmbr0 vmbr1 vmbr2 vmbr3 vmbr4 vmbr5 ```
Author
Owner

@MickLesk commented on GitHub (May 9, 2025):

reverted. I take a look next week for other bridges

@MickLesk commented on GitHub (May 9, 2025): reverted. I take a look next week for other bridges
Author
Owner

@filippolauria commented on GitHub (May 9, 2025):

Hi @jedis00 , can you post the section related to vmbr0 in /etc/network/interfaces? Also, can you post the output of the following command:
ip link show vmbr0?

Thank you

@filippolauria commented on GitHub (May 9, 2025): Hi @jedis00 , can you post the section related to `vmbr0` in `/etc/network/interfaces`? Also, can you post the output of the following command: `ip link show vmbr0`? Thank you
Author
Owner

@jedis00 commented on GitHub (May 9, 2025):

Hi @jedis00 , can you post the section related to vmbr0 in /etc/network/interfaces? Also, can you post the output of the following command: ip link show vmbr0?

Thank you

@filippolauria

/etc/network/interfaces:

auto vmbr0
iface vmbr0 inet static
        address 10.0.0.5/24
        gateway 10.0.0.1
        bridge-ports enp86s0
        bridge-stp off
        bridge-fd 0
        bridge_ageing 0
        post-up /root/bin/proxmox-port-443.sh
# ip link show vmbr0
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 84:47:09:xx:xx:xx brd ff:ff:ff:ff:ff:ff
@jedis00 commented on GitHub (May 9, 2025): > Hi [@jedis00](https://github.com/jedis00) , can you post the section related to `vmbr0` in `/etc/network/interfaces`? Also, can you post the output of the following command: `ip link show vmbr0`? > > Thank you @filippolauria /etc/network/interfaces: ``` auto vmbr0 iface vmbr0 inet static address 10.0.0.5/24 gateway 10.0.0.1 bridge-ports enp86s0 bridge-stp off bridge-fd 0 bridge_ageing 0 post-up /root/bin/proxmox-port-443.sh ``` ``` # ip link show vmbr0 5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 84:47:09:xx:xx:xx brd ff:ff:ff:ff:ff:ff ```
Author
Owner

@filippolauria commented on GitHub (May 9, 2025):

Many thanks. See my comment in #4351

@filippolauria commented on GitHub (May 9, 2025): Many thanks. See my comment in #4351
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#934