Code Review
/
groupbasedpolicy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Merge "Scripts and Vagrantfile to run sFlow on gbp1"
[groupbasedpolicy.git]
/
demos
/
gbpsfc-env
/
sflow
/
internal_stop
diff --git a/demos/gbpsfc-env/sflow/internal_stop
b/demos/gbpsfc-env/sflow/internal_stop
new file mode 100755
(executable)
index 0000000..
005be48
--- /dev/null
+++ b/
demos/gbpsfc-env/sflow/internal_stop
@@ -0,0
+1,12
@@
+#!/usr/bin/env bash
+
+if [ ! -f ~/sflow_uuid ]; then
+ echo "No sflow_uuid found!"
+ exit 1
+fi
+
+hostnum=${HOSTNAME#"gbpsfc"}
+sw="sw$hostnum"
+
+sudo ovs-vsctl remove bridge $sw sflow `cat ~/sflow_uuid`
+rm ~/sflow_uuid