Skip to content

Add both attached and connected properties to NIC devices #2780

@tokred

Description

@tokred

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

Context: I am migrating to an Incus- and OVN-based cluster where the central router/firewall will be running in a container on said cluster. To connect existing network-wide VLANs, I am leveraging (unmanaged) bridges with tagged interfaces configured on the cluster nodes.

To prepare and test migration steps, I realized it would be beneficial to allow adding and configuring nic devices to containers/VMs but keep them in a disconnected state from the actual network. This would allow the device to appear in the container/VM but not (yet) being connected to the physical network.

Proxmox has a link_down parameter for NICs which disables connectivity on hypervisor-level, and I think the same functionality would be great for Incus too. This would also be benefical to temporarily disconnect a NIC without having to delete any container config, avoiding workaround like moving the NIC to a placeholder bridge or similar.

What do you think would need to be added

Adding a new boolean config parameter like connected to nic devices, and based on this, connect or disconnect the NIC to the configured parent/network.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions