summaryrefslogtreecommitdiffstats
path: root/utils/rubbos_dev_env_setup/mac_generator.sh
diff options
context:
space:
mode:
authorwangyaoguang <sunshine.wang@huawei.com>2016-04-19 20:21:53 +0800
committerwangyaoguang <sunshine.wang@huawei.com>2016-04-19 20:21:53 +0800
commit452eba3bd069845bcb8091cb0d4272f66b7a38d8 (patch)
tree92a3d1188f39909c6f43e73cb943ec8b7383c816 /utils/rubbos_dev_env_setup/mac_generator.sh
parente2b73bf29779412d3b0ceb7742e6a4bdcecb7f74 (diff)
remove deprecated tools
This tool is not general enough, and it will be replaced. JIAR: BOTTLENECK-57 Change-Id: I9121f40883090adcfab3b2157aee9212f8964d38 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'utils/rubbos_dev_env_setup/mac_generator.sh')
-rwxr-xr-xutils/rubbos_dev_env_setup/mac_generator.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/utils/rubbos_dev_env_setup/mac_generator.sh b/utils/rubbos_dev_env_setup/mac_generator.sh
deleted file mode 100755
index ef78f5f6..00000000
--- a/utils/rubbos_dev_env_setup/mac_generator.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-##############################################################################
-# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-# this is a modified copy from compass4nfv/deploy/mac_generator.sh
-
-function mac_address_part() {
- hex_number=$(printf '%02x' $RANDOM)
- number_length=${#hex_number}
- number_start=$(expr $number_length - 2)
- echo ${hex_number:$number_start:2}
-}
-
-function mac_address() {
- echo "00:00:$(mac_address_part):$(mac_address_part):$(mac_address_part):$(mac_address_part)"
-}
-
-machines=''
-for i in `seq $1`; do
- mac=$(mac_address)
-
- if [[ -z $machines ]]; then
- machines="${mac}"
- else
- machines="${machines} ${mac}"
- fi
-done
-
-echo ${machines}
-