Check if venet0_0 exist instead of venet0 (this one always exists in a
CT).
This commit is contained in:
parent
8f86e8cac2
commit
aeeacbbe3e
|
@ -13,7 +13,7 @@ class proxmox::vm::openvz {
|
||||||
# Test if a virtual interface is available
|
# Test if a virtual interface is available
|
||||||
if has_interface_with("eth0") {
|
if has_interface_with("eth0") {
|
||||||
|
|
||||||
if has_interface_with("venet0") { # Virtual network available too?
|
if has_interface_with("venet0_0") { # Virtual network available too?
|
||||||
|
|
||||||
# Need to configure eth0 in an interfaces.tail file because
|
# Need to configure eth0 in an interfaces.tail file because
|
||||||
# the main interfaces file is auto-generated by PVE (for venet config)
|
# the main interfaces file is auto-generated by PVE (for venet config)
|
||||||
|
|
Loading…
Reference in New Issue