diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2016-12-13 10:26:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-13 10:26:11 +0000 |
commit | 2dd53e9153a37a5a9f14a8772224dbdaa091bbfa (patch) | |
tree | 7e083f4959878d78f943c07cc32575c66a4ba05d /odl-pipeline/lib/flash-all-bridges.sh | |
parent | 2445ba0a0325611e0b927ecc7ed4d361426e5fc4 (diff) | |
parent | 416f9cf177801cecfe39f5249d73e3a4a85f0bbd (diff) |
Merge "adding odl-pipeline"
Diffstat (limited to 'odl-pipeline/lib/flash-all-bridges.sh')
-rw-r--r-- | odl-pipeline/lib/flash-all-bridges.sh | 5 |
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 |