summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2010-12-28 18:11:02 -0800
committerAnthony Young <sleepsonthefloor@gmail.com>2010-12-28 18:11:02 -0800
commit4b5bd4b4a8db70c40180c745f9bfc33aa6572e09 (patch)
treebabb1bb8d1d3cf58bb74ce69813c6fcf46ec9751 /tools
parent35638077a186f9315ac6e30cdbe096730a540ed8 (diff)
parent71be236ef4a1fd956f7462ff236ff53d93fef2dc (diff)
downloadnova-4b5bd4b4a8db70c40180c745f9bfc33aa6572e09.tar.gz
nova-4b5bd4b4a8db70c40180c745f9bfc33aa6572e09.tar.xz
nova-4b5bd4b4a8db70c40180c745f9bfc33aa6572e09.zip
merge trunk
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clean-vlans2
-rwxr-xr-xtools/setup_iptables.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/clean-vlans b/tools/clean-vlans
index f5b0295ad..820a9dbe5 100755
--- a/tools/clean-vlans
+++ b/tools/clean-vlans
@@ -17,6 +17,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+export LC_ALL=C
+
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
sudo ifconfig -a | grep vlan | grep -v vlan124 | grep -v vlan5 | cut -f1 -d" " | xargs -n1 -ifoo ifconfig foo down
diff --git a/tools/setup_iptables.sh b/tools/setup_iptables.sh
index 673353eb4..8be8cd812 100755
--- a/tools/setup_iptables.sh
+++ b/tools/setup_iptables.sh
@@ -36,7 +36,7 @@ else
# NOTE(vish): This will just get the first ip in the list, so if you
# have more than one eth device set up, this will fail, and
# you should explicitly pass in the ip of the instance
- IP=`ifconfig | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'`
+ IP=`LC_ALL=C ifconfig | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'`
fi
if [ -n "$3" ]; then