예제 #1
0
파일: ifcfg.py 프로젝트: 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)
예제 #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)
예제 #3
0
파일: iproute2.py 프로젝트: fancyKai/vdsm
 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'])