Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:garloff:OTC
bms-network-config
bms-network-lesswait.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bms-network-lesswait.diff of Package bms-network-config
Index: bms-network-config-1.0/network_config.py.suse12 =================================================================== --- bms-network-config-1.0.orig/network_config.py.suse12 +++ bms-network-config-1.0/network_config.py.suse12 @@ -1225,7 +1225,7 @@ def bring_up_interface_hw(phy_cfg_total, (status, output) = commands.getstatusoutput('ip link set ' + phy_cfg["DEVICE"] + ' up') if status != 0: LOG.error("Failed ifup %s, because %s" % (phy_cfg["DEVICE"], output)) - time.sleep(5) + time.sleep(2) LOG.info("bring up bond start") for bond_cfg in bond_cfg_total: @@ -1285,7 +1285,7 @@ def bring_up_interface_hw(phy_cfg_total, (status, output) = commands.getstatusoutput('dhclient ' + bond_cfg["DEVICE"]) if status != 0: LOG.error("dhclient %s failed , because %s" % (bond_cfg["DEVICE"], output)) - time.sleep(10) + time.sleep(3) LOG.info("bring up bond sucess") @@ -1340,7 +1340,7 @@ def bring_up_interface_hw(phy_cfg_total, LOG.error("dhclient %s ,and output = %s" % (viface_cfg["DEVICE"], output)) else: LOG.error("%s ifup error: %s" % (viface_cfg["DEVICE"], output)) - time.sleep(5) + time.sleep(3) cmd = '/bin/ps ax|grep dhclient |grep -v grep' (status, output) = commands.getstatusoutput(cmd) @@ -1354,7 +1354,7 @@ def bring_up_interface_hw(phy_cfg_total, (status, output) = commands.getstatusoutput(cmd) if status == 0 and output: LOG.error("kill dhclient failed,try again later.") - time.sleep(5) + time.sleep(3) dhclient_infos = output.split('\n') for dhclient_info in dhclient_infos: (status, output) = commands.getstatusoutput('/bin/kill -s 9 ' + dhclient_info.split('?')[0]) @@ -1364,12 +1364,12 @@ def bring_up_interface_hw(phy_cfg_total, if viface_cfg['BOOTPROTO'] == 'dhcp': (status, output) = commands.getstatusoutput('dhclient ' + viface_cfg["DEVICE"]) LOG.info("vlanif dhclient status is %s, output is %s" % (status, output)) - time.sleep(5) + time.sleep(3) for bond_cfg in bond_cfg_total: (status, output) = commands.getstatusoutput('dhclient ' + bond_cfg["DEVICE"]) LOG.info("bond dhclient status is %s, output is %s" % (status, output)) - time.sleep(5) + time.sleep(3) (status, output) = commands.getstatusoutput('sysctl -w net.ipv4.conf.all.rp_filter=2') LOG.info("sysctl rp_filter status is %s, output is %s" % (status, output))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor