예제 #1
0
파일: ifcfg.py 프로젝트: eprasad/vdsm
 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)
예제 #2
0
파일: ifcfg.py 프로젝트: germanovm/vdsm
 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)
예제 #3
0
파일: ifcfg.py 프로젝트: hackxay/vdsm
 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)
예제 #4
0
파일: ifcfg.py 프로젝트: rexhsu/vdsm-ubuntu
 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)
예제 #5
0
파일: ifcfg.py 프로젝트: mpolednik/vdsm
 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)
예제 #6
0
파일: ifcfg.py 프로젝트: lukas-bednar/vdsm
 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)
예제 #7
0
파일: ifcfg.py 프로젝트: hackxay/vdsm
 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)
예제 #8
0
파일: ifcfg.py 프로젝트: rexhsu/vdsm-ubuntu
 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)
예제 #9
0
파일: ifcfg.py 프로젝트: germanovm/vdsm
 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]})
예제 #10
0
파일: ifcfg.py 프로젝트: lukas-bednar/vdsm
 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)
예제 #11
0
파일: ifcfg.py 프로젝트: eprasad/vdsm
 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]
             })