summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDevin Carlen <devcamcar@illian.local>2010-06-23 22:04:16 -0700
committerDevin Carlen <devcamcar@illian.local>2010-06-23 22:04:16 -0700
commitcaeece6e3783692dd6af6e3bec092eddb2b3e2fc (patch)
tree0dc4fb087097fa515ccabf351643967591dbcace /tools
parent8572e639ac681b9efe408821d9da19aa8d6e0bc9 (diff)
downloadnova-caeece6e3783692dd6af6e3bec092eddb2b3e2fc.tar.gz
nova-caeece6e3783692dd6af6e3bec092eddb2b3e2fc.tar.xz
nova-caeece6e3783692dd6af6e3bec092eddb2b3e2fc.zip
Updated licenses
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clean-vlans19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/clean-vlans b/tools/clean-vlans
index 39010ba1d..7e4f5e538 100755
--- a/tools/clean-vlans
+++ b/tools/clean-vlans
@@ -1,4 +1,23 @@
#!/usr/bin/env bash
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2010 United States Government as represented by the
+# Administrator of the National Aeronautics and Space Administration.
+# All Rights Reserved.
+#
+# Copyright 2010 Anso Labs, LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
sudo ifconfig -a | grep br | grep -v bridge | cut -f1 -d" " | xargs -n1 -ifoo ifconfig foo down
sudo ifconfig -a | grep br | grep -v bridge | cut -f1 -d" " | xargs -n1 -ifoo brctl delbr foo