summaryrefslogtreecommitdiffstats
path: root/odl-pipeline/lib/flash-all-bridges.sh
diff options
context:
space:
mode:
Diffstat (limited to 'odl-pipeline/lib/flash-all-bridges.sh')
-rw-r--r--odl-pipeline/lib/flash-all-bridges.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/odl-pipeline/lib/flash-all-bridges.sh b/odl-pipeline/lib/flash-all-bridges.sh
new file mode 100644
index 0000000..db9d50d
--- /dev/null
+++ b/odl-pipeline/lib/flash-all-bridges.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+export bridges="admin|private|public|storage"
+for br in $(ifconfig |grep -v br-external |grep "^br" |grep -E $bridges |awk '{print $1}');do
+ sudo ip addr flush dev $br;
+done