[PATCH 11/13] Consider REBOOT to be success for ifup.

Matthew W. S. Bell matthew at bells23.org.uk
Sat Apr 25 18:18:36 UTC 2009


From: Matthew W. S. Bell <mentor at engelbert.(none)>


Signed-off-by: Matthew W. S. Bell <matthew at bells23.org.uk>
---
 src/netconf/ifaces/eni/inet/dhcp.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/netconf/ifaces/eni/inet/dhcp.py b/src/netconf/ifaces/eni/inet/dhcp.py
index 3772791..26d6b59 100644
--- a/src/netconf/ifaces/eni/inet/dhcp.py
+++ b/src/netconf/ifaces/eni/inet/dhcp.py
@@ -46,7 +46,7 @@ class EniInetDhcpMethod(EniBaseMethod):
 
         def _handled_start(result):
             self._log.debug('handling start result %s...' % result)
-            if str(result) == 'BOUND':
+            if str(result) == 'BOUND' or str(result) == 'REBOOT':
                 self._log.debug('got BOUND or PREINIT, returning success '
                                 'to continue queue...')
                 cb_result(SuccessResult('ok'))
-- 
1.6.2.4




More information about the netconf-devel mailing list