This commit is contained in:
committed by
Git OBS Bridge
parent
3c15755877
commit
3a23990c80
@@ -37,16 +37,16 @@
|
||||
# -This type of network is similiar to a VMware "HOST ONLY"
|
||||
# network.
|
||||
#
|
||||
# nat: -Networks that are connected to Dom0 and are private from the
|
||||
# nat: -Networks that are connected to Dom0 and are privet from the
|
||||
# physical network but VMs can get out to the physical network
|
||||
# -This type of network will allow VMs connected to it to access
|
||||
# Dom0, the "outside world" via NAT and other VMs connected to it.
|
||||
# Dom0,the "outside world" via NAT and other VMs connected to it.
|
||||
# -This type of network is similiar to a VMware "NAT" network.
|
||||
#
|
||||
# routed: -Networks that are not directly connected to the physical network
|
||||
# but who's traffic is directly routed to other networks
|
||||
# but whi's traffic is directly routed to other networks
|
||||
# -This type of network will allow VMs connected to it to access
|
||||
# Dom0, the "outside world" via routing through Dom0 and other VMs
|
||||
# Dom0,the "outside world" via routing through Dom0 and other VMs
|
||||
# connected to it.
|
||||
#
|
||||
# empty: -Networks that are not connected to either Dom0 or the physical
|
||||
@@ -60,12 +60,13 @@
|
||||
# This script requires that the vif-bridge script be used as the vif
|
||||
# creation script (as opposed to vif-nat/vif-route).
|
||||
#
|
||||
# This script will verify that a requested physical interface is present and
|
||||
# up before creating the network and connecting the physical interface to it.
|
||||
# This script will test for the presence of the physical interfaces
|
||||
# configured to be connected to bridged networks and only attempt to
|
||||
# create networks on the ones that are present and up.
|
||||
#
|
||||
# Edit the NETWORK_LIST variable to define which networks to create on which
|
||||
# interfaces. The default is to create a bridged network on the first
|
||||
# active network interface.
|
||||
# interface active network interface.
|
||||
#
|
||||
# To enable this script edit the network-script field in the
|
||||
# /etc/xen/xend-config.sxp file.
|
||||
@@ -112,7 +113,7 @@ SCRIPT_PATH="/etc/xen/scripts"
|
||||
#### Script Functions #####################################################
|
||||
|
||||
usage() {
|
||||
# Gives hlep about usage parameters
|
||||
# Gives help about usage parameters
|
||||
echo "Usage: $0 {start|stop|restart|status}"
|
||||
exit 1
|
||||
}
|
||||
@@ -129,6 +130,8 @@ get_option() {
|
||||
esac
|
||||
}
|
||||
|
||||
. $SCRIPT_PATH/multinet-common.sh
|
||||
|
||||
make_config_dirs() {
|
||||
# Create temporary storage directory if needed.
|
||||
if ! [ -d "$NETWORK_SAVE_PATH" ]
|
||||
@@ -138,16 +141,13 @@ make_config_dirs() {
|
||||
}
|
||||
|
||||
|
||||
. $SCRIPT_PATH/multinet-common.sh
|
||||
|
||||
#***** Network Creation Main Function *************************************
|
||||
|
||||
create_networks() {
|
||||
|
||||
VIF_COUNT=0
|
||||
|
||||
for NETWORK in $NETWORK_LIST
|
||||
do
|
||||
|
||||
local NET_TYPE=`echo $NETWORK | cut -d "," -f 1`
|
||||
local NET_NUMBER=`echo $NETWORK | cut -d "," -f 2`
|
||||
local NET_DEV=`echo $NETWORK | cut -d "," -f 3`
|
||||
@@ -204,7 +204,7 @@ run_prestart_scripts() {
|
||||
echo "Running pre-start scripts"
|
||||
echo
|
||||
test -d $PLUGIN_DIR/pre-start || mkdir -p $PLUGIN_DIR/pre-start
|
||||
if ls $PLUGIN_DIR/pre-start/*.sh > /dev/null 2&>1
|
||||
if ls $PLUGIN_DIR/pre-start/*.sh > /dev/null 2>&1
|
||||
then
|
||||
for SCRIPT in `ls $PLUGIN_DIR/pre-start/*.sh`
|
||||
do
|
||||
@@ -228,7 +228,7 @@ run_poststart_scripts() {
|
||||
echo "Running post-start scripts"
|
||||
echo
|
||||
test -d $PLUGIN_DIR/post-start || mkdir -p $PLUGIN_DIR/post-start
|
||||
if ls $PLUGIN_DIR/post-start/*.sh > /dev/null 2&>1
|
||||
if ls $PLUGIN_DIR/post-start/*.sh > /dev/null 2>&1
|
||||
then
|
||||
for SCRIPT in `ls $PLUGIN_DIR/post-start/*.sh`
|
||||
do
|
||||
@@ -253,7 +253,7 @@ run_prestop_scripts() {
|
||||
echo "Running pre-stop scripts"
|
||||
echo
|
||||
test -d $PLUGIN_DIR/pre-stop || mkdir -p $PLUGIN_DIR/pre-stop
|
||||
if ls $PLUGIN_DIR/pre-stop/*.sh > /dev/null 2&>1
|
||||
if ls $PLUGIN_DIR/pre-stop/*.sh > /dev/null 2>&1
|
||||
then
|
||||
for SCRIPT in `ls $PLUGIN_DIR/pre-stop/*.sh`
|
||||
do
|
||||
@@ -277,7 +277,7 @@ run_poststop_scripts() {
|
||||
echo "Running post-stop scripts"
|
||||
echo
|
||||
test -d $PLUGIN_DIR/post-stop || mkdir -p $PLUGIN_DIR/post-stop
|
||||
if ls $PLUGIN_DIR/post-stop/*.sh > /dev/null 2&>1
|
||||
if ls $PLUGIN_DIR/post-stop/*.sh > /dev/null 2>&1
|
||||
then
|
||||
for SCRIPT in `ls $PLUGIN_DIR/post-stop/*.sh`
|
||||
do
|
||||
|
Reference in New Issue
Block a user