Добавлена поддержка bond интерфейсов

master3.4 3.4.7.8
parent 4428ae5cc1
commit a74dc0e99f

@ -27,7 +27,7 @@ setLocalTranslate('cl_install3', sys.modules[__name__])
from calculate.lib.utils.ip import (getInterfaces, getIp, getMask, getMac,
cidrToMask, maskToCidr, getIpNet, isDhcpIp,
checkIp, checkMask,
checkIp, checkMask, isSlaveInterface,
getOperState, getPlugged)
from calculate.lib.utils.device import lspci
from calculate.lib.utils.files import (listDirectory, readLinesFile)
@ -278,6 +278,8 @@ class VariableOsInstallNetStatus(NetHelper, Variable):
def statusValue(ipaddr, dhcp):
if not getPlugged(iface):
return 'off'
if isSlaveInterface(iface):
return 'off'
if dhcp == "on":
return "dhcp"
elif ipaddr:

Loading…
Cancel
Save