Check if venet0_0 exist instead of venet0 (this one always exists in a

CT).
This commit is contained in:
gardouille 2015-01-26 16:04:53 +01:00
parent 8f86e8cac2
commit aeeacbbe3e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class proxmox::vm::openvz {
# Test if a virtual interface is available
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
# the main interfaces file is auto-generated by PVE (for venet config)