From: Christopher Thunes <c2thunes@brewtab.com>
To: xen-devel@lists.xensource.com
Subject: Re: Network scripts start/stop
Date: Sat, 05 Apr 2008 01:49:30 -0400 [thread overview]
Message-ID: <47F712EA.50700@brewtab.com> (raw)
In-Reply-To: <47F6B9A0.9020806@brewtab.com>
[-- Attachment #1: Type: text/plain, Size: 19 bytes --]
Attached a patch.
[-- Attachment #2: net_start_stop.diff --]
[-- Type: text/plain, Size: 1770 bytes --]
diff -r 6341a28c8a45 tools/python/xen/xend/XendPIF.py
--- a/tools/python/xen/xend/XendPIF.py Mon Mar 31 18:08:17 2008 +0100
+++ b/tools/python/xen/xend/XendPIF.py Sat Apr 05 01:40:20 2008 -0400
@@ -24,16 +24,12 @@ from xen.xend.XendBase import XendBase
from xen.xend.XendBase import XendBase
from xen.xend.XendPIFMetrics import XendPIFMetrics
from xen.xend.XendError import *
-from xen.xend import Vifctl
log = logging.getLogger("xend.XendPIF")
log.setLevel(logging.TRACE)
MAC_RE = re.compile(':'.join(['[0-9a-f]{2}'] * 6))
IP_IFACE_RE = re.compile(r'^\d+: (\w+):.*mtu (\d+) .* link/\w+ ([0-9a-f:]+)')
-
-
-Vifctl.network('start')
def linux_phy_to_virt(pif_name):
return 'eth' + re.sub(r'^[a-z]+', '', pif_name)
diff -r 6341a28c8a45 tools/python/xen/xend/server/SrvServer.py
--- a/tools/python/xen/xend/server/SrvServer.py Mon Mar 31 18:08:17 2008 +0100
+++ b/tools/python/xen/xend/server/SrvServer.py Sat Apr 05 01:41:54 2008 -0400
@@ -53,6 +53,7 @@ from xen.xend.XendClient import XEN_API_
from xen.xend.XendClient import XEN_API_SOCKET
from xen.xend.XendDomain import instance as xenddomain
from xen.web.SrvDir import SrvDir
+from xen.xend import Vifctl
from SrvRoot import SrvRoot
from XMLRPCServer import XMLRPCServer
@@ -83,6 +84,7 @@ class XendServers:
# clean up domains for those that have on_xend_stop
if not reloading:
+ Vifctl.network('stop')
xenddomain().cleanup_domains()
self.running = False
@@ -104,6 +106,8 @@ class XendServers:
# and call each server's cleanup if possible
signal.signal(signal.SIGTERM, self.cleanup)
signal.signal(signal.SIGHUP, self.reloadConfig)
+
+ Vifctl.network('start')
while True:
threads = []
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-04-05 5:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 23:28 Network scripts start/stop Christopher Thunes
2008-04-05 5:49 ` Christopher Thunes [this message]
2008-04-05 9:13 ` Keir Fraser
2008-04-05 16:00 ` Christopher Thunes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47F712EA.50700@brewtab.com \
--to=c2thunes@brewtab.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.