A network target can name the physical NICs it leaves the host through, so netOrk can follow them to the switch port behind a bridge (NetOrk/netork#1325). A VM on a VLAN-aware bridge without a VLAN tag lands in whatever that port carries untagged; netOrk's VM dialog warns when that is nothing, or a VLAN it knows no DHCP for.
Changes
NetworkTargetDict.uplinks: NotRequired[list[list[str]]]: one group per way out of the bridge, a bond's slaves together ([["eno1", "eno2"]]), a single NIC alone ([["eno1"]]). Internal, VLAN and virtual ports are no uplinks. A missing key means the driver cannot tell; [] is a bridge without uplink.
Grouped because a bond is one link: lldpd often reports a neighbour on one slave only, and the caller may let that one speak for the bond. Flat, a bond and two separate NICs looked the same.
get_network_targets docstring, README hypervisor example, CHANGELOG under Unreleased.
The models.py docstring was tightened so the file stays at its ratchet cap (1504 lines).
Tests
tests/test_network_target_uplinks.py: the key is optional and typed list[list[str]]; the core keys stay required.
pytest 863 passed; ruff, ruff format, mypy clean; napalm-standard check meets the standard, ratchet within the baseline.
Implemented by napalm-proxmox (PR follows). Priority: P4.
## Summary
A network target can name the physical NICs it leaves the host through, so netOrk can follow them to the switch port behind a bridge (NetOrk/netork#1325). A VM on a VLAN-aware bridge without a VLAN tag lands in whatever that port carries untagged; netOrk's VM dialog warns when that is nothing, or a VLAN it knows no DHCP for.
## Changes
- `NetworkTargetDict.uplinks: NotRequired[list[list[str]]]`: one group per way out of the bridge, a bond's slaves together (`[["eno1", "eno2"]]`), a single NIC alone (`[["eno1"]]`). Internal, VLAN and virtual ports are no uplinks. A missing key means the driver cannot tell; `[]` is a bridge without uplink.
- Grouped because a bond is one link: lldpd often reports a neighbour on one slave only, and the caller may let that one speak for the bond. Flat, a bond and two separate NICs looked the same.
- `get_network_targets` docstring, README hypervisor example, CHANGELOG under Unreleased.
- The models.py docstring was tightened so the file stays at its ratchet cap (1504 lines).
## Tests
- `tests/test_network_target_uplinks.py`: the key is optional and typed `list[list[str]]`; the core keys stay required.
- pytest 863 passed; ruff, ruff format, mypy clean; `napalm-standard check` meets the standard, `ratchet` within the baseline.
Implemented by napalm-proxmox (PR follows). Priority: P4.
A VM on a VLAN-aware bridge without a VLAN tag only gets an address when
the switch port behind the bridge carries an untagged network. To find
that port, the caller needs the bridge's physical NICs: their LLDP
neighbours name the switch and the port.
uplinks lists them in groups, one per way out of the bridge: a bond's
slaves together, a single NIC alone. A bond is one link, so a caller can
let one slave's neighbour speak for the others when lldpd sees only one.
Internal, VLAN and virtual ports are no uplinks. A missing key means the
driver cannot tell; an empty list is a bridge without uplink.
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.
Summary
A network target can name the physical NICs it leaves the host through, so netOrk can follow them to the switch port behind a bridge (NetOrk/netork#1325). A VM on a VLAN-aware bridge without a VLAN tag lands in whatever that port carries untagged; netOrk's VM dialog warns when that is nothing, or a VLAN it knows no DHCP for.
Changes
NetworkTargetDict.uplinks: NotRequired[list[list[str]]]: one group per way out of the bridge, a bond's slaves together ([["eno1", "eno2"]]), a single NIC alone ([["eno1"]]). Internal, VLAN and virtual ports are no uplinks. A missing key means the driver cannot tell;[]is a bridge without uplink.get_network_targetsdocstring, README hypervisor example, CHANGELOG under Unreleased.Tests
tests/test_network_target_uplinks.py: the key is optional and typedlist[list[str]]; the core keys stay required.napalm-standard checkmeets the standard,ratchetwithin the baseline.Implemented by napalm-proxmox (PR follows). Priority: P4.