def configureNic(self, nic, **opts): self.configApplier.addNic(nic, **opts) self._addSourceRoute(nic) if nic.bond is None: if not netinfo.isVlanned(nic.name): ifdown(nic.name) ifup(nic.name, nic.ipConfig. async)
def configureNic(self, nic, **opts): self.configApplier.addNic(nic, **opts) self._addSourceRoute(nic) if nic.bond is None: if not netinfo.isVlanned(nic.name): ifdown(nic.name) _ifup(nic)
def configureNic(self, nic, **opts): ipaddr, netmask, gateway, bootproto, async = nic.getIpConfig() self.configApplier.addNic(nic, **opts) self._addSourceRoute(nic, ipaddr, netmask, gateway, bootproto) if nic.bond is None: if not netinfo.isVlanned(nic.name): ifdown(nic.name) ifup(nic.name, async)
def configureNic(self, nic, **opts): ipaddr, netmask, gateway, bootproto, async, _ = nic.getIpConfig() self.configApplier.addNic(nic, **opts) self._addSourceRoute(nic, ipaddr, netmask, gateway, bootproto) if nic.bond is None: if not netinfo.isVlanned(nic.name): ifdown(nic.name) ifup(nic.name, async)
def configureBond(self, bond, **opts): self.configApplier.addBonding(bond, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(**opts) self._addSourceRoute(bond) ifup(bond.name, bond.ipConfig.async)
def configureNic(self, nic, bridge=None, bonding=None, **opts): ipaddr, netmask, gateway, bootproto, async = nic.getIpConfig() self.configWriter.addNic(nic.name, bonding=bonding, bridge=bridge, mtu=nic.mtu, ipaddr=ipaddr, netmask=netmask, gateway=gateway, bootproto=bootproto, **opts) if not bonding: if not netinfo.isVlanned(nic.name): ifdown(nic.name) ifup(nic.name, async)
def configureBond(self, bond, **opts): ipaddr, netmask, gateway, bootproto, async = bond.getIpConfig() self.configApplier.addBonding(bond, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(**opts) self._addSourceRoute(bond, ipaddr, netmask, gateway, bootproto) ifup(bond.name, async)
def configureBond(self, bond, **opts): ipaddr, netmask, gateway, bootproto, async, _ = bond.getIpConfig() self.configApplier.addBonding(bond, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(**opts) self._addSourceRoute(bond, ipaddr, netmask, gateway, bootproto) ifup(bond.name, async)
def configureBond(self, bond, **opts): self.configApplier.addBonding(bond, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(**opts) self._addSourceRoute(bond) _ifup(bond) if self.unifiedPersistence: self.runningConfig.setBonding( bond.name, {'options': bond.options, 'nics': [slave.name for slave in bond.slaves]})
def configureBond(self, bond, bridge=None, **opts): ipaddr, netmask, gateway, bootproto, async = bond.getIpConfig() self.configWriter.addBonding(bond.name, bridge=bridge, bondingOptions=bond.options, mtu=bond.mtu, ipaddr=ipaddr, netmask=netmask, gateway=gateway, bootproto=bootproto, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(bonding=bond.name, **opts) ifup(bond.name, async)
def configureBond(self, bond, **opts): self.configApplier.addBonding(bond, **opts) if not netinfo.isVlanned(bond.name): for slave in bond.slaves: ifdown(slave.name) for slave in bond.slaves: slave.configure(**opts) self._addSourceRoute(bond) ifup(bond.name, bond.ipConfig. async) if self.unifiedPersistence: self.runningConfig.setBonding( bond.name, { 'options': bond.options, 'nics': [slave.name for slave in bond.slaves] })