fixes for LinkDelay test in test_hifi

This commit is contained in:
cody burkard
2014-08-26 22:34:34 -07:00
parent 92075113d8
commit c75ff7ecd9
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -888,7 +888,9 @@ class UserSwitch( Switch ):
def connected( self ):
"Is the switch connected to a controller?"
return 'remote.is-connected=true' in self.dpctl( 'status' )
status = self.dpctl( 'status' )
return ( 'remote.is-connected=true' in status and
'local.is-connected=true' in status )
@staticmethod
def TCReapply( intf ):