sdn_mixin.py:225 (_is_physical_uplink) reads self._VIRTUAL_IFACE_PREFIXES, but commit b1ba991 (set_hostname, 2026-06-19) removed that constant and nothing defines it any more (grep over the repo and napalm-device-types finds only the use).
Effect:_is_physical_uplink raises AttributeError; _find_switch_uplink swallows it and always returns None, so set_vlan always fails with "no LLDP-detected switch uplink found" — on every Proxmox host, whatever its LLDP says. netOrk pins 16f1b87, which contains b1ba991.
No test covers _is_physical_uplink/_find_switch_uplink, which is how it went unnoticed.
Fix: restore the constant (or derive the check from the interface type, as the new uplinks.py on feat/network-target-uplinks does), plus a test for _find_switch_uplink with one physical and one virtual interface.
Priority: P2 — VLAN provisioning on Proxmox hosts has been broken since June without any sign beyond the error message.
`sdn_mixin.py:225` (`_is_physical_uplink`) reads `self._VIRTUAL_IFACE_PREFIXES`, but commit b1ba991 (set_hostname, 2026-06-19) removed that constant and nothing defines it any more (grep over the repo and napalm-device-types finds only the use).
**Effect:** `_is_physical_uplink` raises `AttributeError`; `_find_switch_uplink` swallows it and always returns `None`, so `set_vlan` always fails with "no LLDP-detected switch uplink found" — on every Proxmox host, whatever its LLDP says. netOrk pins 16f1b87, which contains b1ba991.
**Repro:**
```python
from unittest.mock import MagicMock
from napalm_proxmox.sdn_mixin import ProxmoxSDNMixin
m = ProxmoxSDNMixin()
m._get_node_network = MagicMock(return_value=[{"iface": "eno1", "type": "eth"}])
m.get_lldp_neighbors_detail = MagicMock(return_value={"eno1": [{"remote_system_capab": ["bridge"]}]})
m.get_lldp_neighbors = MagicMock(return_value={"eno1": [{"hostname": "sw"}]})
m._find_switch_uplink() # None
m._is_physical_uplink("eno1", {"eno1": {"type": "eth"}}) # AttributeError
```
No test covers `_is_physical_uplink`/`_find_switch_uplink`, which is how it went unnoticed.
**Fix:** restore the constant (or derive the check from the interface `type`, as the new `uplinks.py` on feat/network-target-uplinks does), plus a test for `_find_switch_uplink` with one physical and one virtual interface.
Found while building NetOrk/netork#1325.
Priority: P2 — VLAN provisioning on Proxmox hosts has been broken since June without any sign beyond the error message.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
sdn_mixin.py:225(_is_physical_uplink) readsself._VIRTUAL_IFACE_PREFIXES, but commitb1ba991(set_hostname, 2026-06-19) removed that constant and nothing defines it any more (grep over the repo and napalm-device-types finds only the use).Effect:
_is_physical_uplinkraisesAttributeError;_find_switch_uplinkswallows it and always returnsNone, soset_vlanalways fails with "no LLDP-detected switch uplink found" — on every Proxmox host, whatever its LLDP says. netOrk pins16f1b87, which containsb1ba991.Repro:
No test covers
_is_physical_uplink/_find_switch_uplink, which is how it went unnoticed.Fix: restore the constant (or derive the check from the interface
type, as the newuplinks.pyon feat/network-target-uplinks does), plus a test for_find_switch_uplinkwith one physical and one virtual interface.Found while building NetOrk/netork#1325.
Priority: P2 — VLAN provisioning on Proxmox hosts has been broken since June without any sign beyond the error message.