search for: stop_network

Displaying 7 results from an estimated 7 matches for "stop_network".

Did you mean: setup_network
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...works, are left intact. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- autotest.sh | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/autotest.sh b/autotest.sh index c9f8a2d..b72ec98 100755 --- a/autotest.sh +++ b/autotest.sh @@ -219,6 +219,9 @@ stop_networking () { networkname=${NETWORK_NAME-} fi + # exit if preserve was enabled + if $preserve_vm; then return; fi + if [ -n "${networkname}" ]; then debug "Destroying network interface: ${networkname}" check=$(sudo virsh net-list --all) @@...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...;&1 + + if [ "${use_dhcp}" == "false" ]; then + if $start_dnsmasq; then + start_dnsmasq $ifacename $workdir "" $nodename + fi + fi +} + +# Destroys the test network interface +# $1 - the network name +# $2 - stop dnsmasq (def. false) +stop_networking () { + local networkname=${1-} + local stop_dnsmasq=${2-true} + + # if no network was supplied, then check for the global network + if [ -z "$networkname" ]; then + networkname=${NETWORK_NAME-} + fi + + # exit if preserve was enabled + if $preserve_vm; then...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...xe () { local nodename="${vm_prefix}-stateful-pxe" - local workdir=$(mktemp -d) + local workdir=$WORKDIR local ipaddress=${NODE_ADDRESS} for var in nodename workdir ipaddress; do @@ -683,6 +684,7 @@ cleanup_after_testing () { destroy_node $vm done stop_networking + rm -rf $WORKDIR } # check commandline options @@ -715,7 +717,7 @@ set +u if [ $# -gt 0 -a -n "$1" ]; then RESULTS=$1; else RESULTS=autotest.log; fi set -u -result_file=$(mktemp) +result_file=$WORKDIR/results.log debug "result_file=${result_file}" log "Lo...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...- send_log "Unexpected end of file." - exit 2 + send_log "Unexpected end of file." + exit 2 } } @@ -676,13 +674,15 @@ setup_for_testing () { # cleans up any loose ends cleanup_after_testing () { + debug "Cleaning up" stop_dnsmasq stop_networking # destroy any running vms vm_list=$(sudo virsh list --all | awk '/'${vm_prefix}-'/ { print $2 }') test -n "$vm_list" && for vm in $vm_list; do - destroy_node $vm + destroy_node $vm done + stop_networking } # check commandline op...
2008 Jun 06
0
[PATCH] stubdom: permit compilation without lwip
...pp_bss_end - &__app_bss_start); +#ifdef HAVE_LWIP start_networking(); +#endif init_fs_frontend(); #ifdef CONFIG_QEMU if (!fs_import) { @@ -162,6 +163,9 @@ close_all_files(); __libc_fini_array(); printk("main returned %d\n", ret); +#ifdef HAVE_LWIP + stop_networking(); +#endif unbind_all_ports(); if (!ret) { /* No problem, just shutdown. */ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier to use, from an application development point of view. Overview of patches: 1 Command line argument parsing support, from Xen. 2 Weak console handler function. 3 Build system tweaks for application directories. 4 Trailing whitespace cleanup. (because it is very messy) Patch 4 is likely to be more controversial than
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3: - mini-os configuration files moved into stubdom/ - mini-os extra console support now a config option - Fewer #ifdefs - grant table setup uses hypercall bounce - Xenstore stub domain syslog support re-enabled Changes from v2: - configuration support added to mini-os build system - add mini-os support for conditionally compiling frontends, xenbus -