diff --git a/src/lxc/lxc_utils.py b/src/lxc/lxc_utils.py index d4463b5..16343eb 100644 --- a/src/lxc/lxc_utils.py +++ b/src/lxc/lxc_utils.py @@ -101,9 +101,8 @@ def generate_pct_command_for_lxc(lxc: LXC, create: bool = True): ] # Check and include specific net0 parameters - net0_params = [] - if lxc.network.get("name") and lxc.network.get("name") != "": - net0_params.append(f"name={lxc.network['name']}") + net0_params = ["name=eth0"] + if lxc.network.get("bridge") and lxc.network.get("bridge") != "": net0_params.append(f"bridge={lxc.network['bridge']}") if lxc.network.get("firewall" and lxc.network.get("firewall") != ""):