diff options
author | 2019-04-18 18:02:47 -0400 | |
---|---|---|
committer | 2019-04-18 18:02:47 -0400 | |
commit | 149a1664fcb40e1ad83f48878a13d2aff0f65b75 (patch) | |
tree | e4d788a6da45d66f7d5afa0f39feafa4e7fa5ae2 /vnfs/vFW/scripts/enable_disable_streams.sh | |
parent | 0443998090eb195b1e2de897201843b8a90ae037 (diff) |
Update Honeycomb to Rel1810 for vFW
- Update Honeycomb version to 1810 to support ODL Fluorine
- Migrate existing stream-count plugin to 1810
- Update POM structure
- Update vPacketGen install file (including ARM64)
Change-Id: I2866c80876550cb149cdb5fee3193d453643639c
Issue-ID: INT-1035
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vFW/scripts/enable_disable_streams.sh')
-rw-r--r-- | vnfs/vFW/scripts/enable_disable_streams.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vnfs/vFW/scripts/enable_disable_streams.sh b/vnfs/vFW/scripts/enable_disable_streams.sh new file mode 100644 index 00000000..d2551552 --- /dev/null +++ b/vnfs/vFW/scripts/enable_disable_streams.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -z $1 ]; then + echo "Missing number of streams to enable. Exit (1)" + exit +fi + +if [ "$1" -gt "10" ] || [ "$1" -lt "1" ]; then + echo "The number of streams to enable must be between 1 and 10. Exit(1)" + exit +fi + +STREAMS=$1 + +# Disable all the streams +vppctl packet-generator disable-stream + +# Enable streams based on client input +for((i=1; i <= $STREAMS; i++)); do + vppctl packet-generator enable-stream fw_udp$i +done
\ No newline at end of file |