[ONOS-6842] Add fault injection/linearizable history verification script for distributed primitives
Change-Id: I059e21c1e1626f555889686387ec31dda7db8da4
diff --git a/tools/test/bin/onos-disrupt b/tools/test/bin/onos-disrupt
index ad20845..c8e343f 100755
--- a/tools/test/bin/onos-disrupt
+++ b/tools/test/bin/onos-disrupt
@@ -28,6 +28,14 @@
echo " Examples:"
echo " $command_name 10.127.10.111 crash"
echo
+ echo " recover Recovers the given host"
+ echo
+ echo " Syntax:"
+ echo " $command_name <host> recover"
+ echo
+ echo " Examples:"
+ echo " $command_name 10.127.10.111 recover"
+ echo
echo " partition Partitions the given host from a list of source host or all ONOS hosts if no sources are specified"
echo
echo " Syntax:"
@@ -49,10 +57,10 @@
echo " partition-bridge Creates a bridge partition where the cluster is partitioned into two halves and the target host is connected to both halves"
echo
echo " Syntax:"
- echo " $command_name <HOST> bridge"
+ echo " $command_name <HOST> partition-bridge"
echo
echo " Examples:"
- echo " $command_name 10.127.10.111 bridge"
+ echo " $command_name 10.127.10.111 partition-bridge"
echo
echo " heal Heals a partition on the given host"
echo
@@ -276,6 +284,12 @@
onos-kill "${host}"
;;
+ # Recovers a crashed node
+ recover)
+ onos-service "${host}" start
+ onos-wait-for-start "${host}"
+ ;;
+
# Creates a partition between the source node and a set of destination nodes.
partition)