andrew@onlab.us | b3a4849 | 2015-06-04 18:50:10 -0400 | [diff] [blame] | 1 | |
2 | def __init__( self ): | ||||
3 | self.ip = '127.0.0.1' | ||||
4 | |||||
5 | def 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 |