Exemplo n.º 1
0
Arquivo: ifcfg.py Projeto: mykaul/vdsm
 def configureBridge(self, bridge, **opts):
     self.configApplier.addBridge(bridge, **opts)
     ifdown(bridge.name)
     if bridge.port:
         bridge.port.configure(**opts)
     self._addSourceRoute(bridge)
     _ifup(bridge)
     if not bridge.ipv6.address and not bridge.ipv6.ipv6autoconf and (
             not bridge.ipv6.dhcpv6 and misc.ipv6_supported()):
         wait_for_device(bridge.name)
         sysctl.disable_ipv6(bridge.name)
Exemplo n.º 2
0
 def configureBridge(self, bridge, **opts):
     self.configApplier.addBridge(bridge, **opts)
     ifdown(bridge.name)
     if bridge.port:
         bridge.port.configure(**opts)
     self._addSourceRoute(bridge)
     _ifup(bridge)
     if not bridge.ipv6.address and not bridge.ipv6.ipv6autoconf and (
             not bridge.ipv6.dhcpv6 and misc.ipv6_supported()):
         wait_for_device(bridge.name)
         sysctl.disable_ipv6(bridge.name)
Exemplo n.º 3
0
 def configureBridge(self, bridge, **opts):
     self.configApplier.addBridge(bridge)
     if bridge.port:
         bridge.port.configure(**opts)
         self.configApplier.addBridgePort(bridge)
     DynamicSourceRoute.addInterfaceTracking(bridge)
     self.configApplier.setIfaceConfigAndUp(bridge)
     if not bridge.ipv6.address and not bridge.ipv6.ipv6autoconf and (
             not bridge.ipv6.dhcpv6 and misc.ipv6_supported()):
         wait_for_device(bridge.name)
         sysctl.disable_ipv6(bridge.name)
     self._addSourceRoute(bridge)
     if 'custom' in opts and 'bridge_opts' in opts['custom']:
         self.configApplier._setBridgeOpts(bridge,
                                           opts['custom']['bridge_opts'])