Pass alertActions cli option to ONOSNode class in onos.py

Change-Id: I534cc0e22ac11018e6c5ec6f73a2f7259392b9e0
diff --git a/tools/dev/mininet/onos.py b/tools/dev/mininet/onos.py
index 6314eb0..069f680 100755
--- a/tools/dev/mininet/onos.py
+++ b/tools/dev/mininet/onos.py
@@ -370,6 +370,11 @@
         topo = kwargs.pop( 'topo', None )
         self.nat = kwargs.pop( 'nat', 'nat0' )
         nodeOpts = kwargs.pop( 'nodeOpts', {} )
+        # Pass in kwargs to the ONOSNodes instead of the cluster
+        "alertAction: exception|ignore|warn|exit (exception)"
+        alertAction = kwargs.pop( 'alertAction', None )
+        if alertAction:
+            nodeOpts[ 'alertAction'] = alertAction
         # Default: single switch with 1 ONOS node
         if not topo:
             topo = SingleSwitchTopo