Jon Hall
Committed by Gerrit Code Review

Pass alertActions cli option to ONOSNode class in onos.py

Change-Id: I534cc0e22ac11018e6c5ec6f73a2f7259392b9e0
...@@ -370,6 +370,11 @@ class ONOSCluster( Controller ): ...@@ -370,6 +370,11 @@ class ONOSCluster( Controller ):
370 topo = kwargs.pop( 'topo', None ) 370 topo = kwargs.pop( 'topo', None )
371 self.nat = kwargs.pop( 'nat', 'nat0' ) 371 self.nat = kwargs.pop( 'nat', 'nat0' )
372 nodeOpts = kwargs.pop( 'nodeOpts', {} ) 372 nodeOpts = kwargs.pop( 'nodeOpts', {} )
373 + # Pass in kwargs to the ONOSNodes instead of the cluster
374 + "alertAction: exception|ignore|warn|exit (exception)"
375 + alertAction = kwargs.pop( 'alertAction', None )
376 + if alertAction:
377 + nodeOpts[ 'alertAction'] = alertAction
373 # Default: single switch with 1 ONOS node 378 # Default: single switch with 1 ONOS node
374 if not topo: 379 if not topo:
375 topo = SingleSwitchTopo 380 topo = SingleSwitchTopo
......