echo -e " -f --force: do not prompt for confirmation. If a new user is created, the user name is set as password"
echo -e " -u --user: Create if not exist and configure this user for openvim to connect"
echo -e " --in --iface-name: creates bridge interfaces on this interface, needed for openvim overlay networks"
+ exit 1
}
function _interface_cfg_generator(){
fi
done
- echo option_help "$option_help"
[[ -n "$get_argument" ]] && echo "option '-$option' requires an argument" >&2 && return 1
return 0
interface=$option_iface_name
}
-#1 CHECK input parameters
#Parse opts
_get_opts "help:h force:f user:u= iface-name:in= " $* || exit 1
+_parse_opts
#check root privileges
[ "${USER}" != "root" ] && echo "Needed root privileges" >&2 && exit 2
-_parse_opts
-
echo "checking interface "$interface
_check_interface $interface