Skip to content

Commit

Permalink
ovs-monitor-ipsec: Use same pattern as ovs-xapi-sync.
Browse files Browse the repository at this point in the history
This does not fix an actual bug in ovs-monitor-ipsec because it does not
ever commit any changes to the database.

Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed Apr 12, 2012
1 parent 932f36e commit 6da258a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions debian/ovs-monitor-ipsec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python
# Copyright (c) 2009, 2010, 2011 Nicira Networks
# Copyright (c) 2009, 2010, 2011, 2012 Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -421,17 +421,20 @@ def main():
ipsec = IPsec()

interfaces = {}
seqno = idl.change_seqno # Sequence number when we last processed the db
while True:
unixctl_server.run()
if exiting:
break

if not idl.run():
idl.run()
if seqno == idl.change_seqno:
poller = ovs.poller.Poller()
unixctl_server.wait(poller)
idl.wait(poller)
poller.block()
continue
seqno = idl.change_seqno

ssl_cert = get_ssl_cert(idl.tables)

Expand Down

0 comments on commit 6da258a

Please sign in to comment.