blob: ba77bbda0c05ee707a92d17cbb944cca6e89f69c [file] [log] [blame]
andrew@onlab.usb3a48492015-06-04 18:50:10 -04001
2def __init__( self ):
3 self.ip = '127.0.0.1'
4
5def killOnosNodes( nodeIps ):
6 """
7 Kill all components of Onos on
8 given list of ips
9
10 Ex) nodeIps = ['10.0.0.1', '10.0.0.2']
11 """
12 killResult = main.TRUE
13
14 for node in nodeIps:
15 killResult = killResult and main.ONOSbench.onosDie( node )
16 if killResult == main.TRUE:
17 main.log.info( str(node) + ' was killed' )
18
19 return killResult