Skip to content

Commit

Permalink
Merge pull request #11 from saenzpa/ops_switchd_active_timeout
Browse files Browse the repository at this point in the history
chg: dev: Increase ops-switchd active timeout
  • Loading branch information
saenzpa authored Jul 20, 2016
2 parents d31d654 + 61ba028 commit 49ce5e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/topology_docker_openswitch/openswitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import yaml
config_timeout = 300
ops_switchd_active_timeout = 60
swns_netns = '/var/run/netns/swns'
hwdesc_dir = '/etc/openswitch/hwdesc'
db_sock = '/var/run/openvswitch/db.sock'
Expand Down Expand Up @@ -201,9 +202,9 @@ def main():
raise Exception('Timed out while waiting for switchd pid.')
logging.info('Waiting for ops-switchd to become active...')
for i in range(0, config_timeout):
for i in range(0, ops_switchd_active_timeout):
if not ops_switchd_is_active():
sleep(0.1)
sleep(1)
else:
break
else:
Expand Down

0 comments on commit 49ce5e1

Please sign in to comment.