[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Simplify code to map interfaces to bridges
# HG changeset patch # User Tom Wilkie <tom.wilkie@xxxxxxxxx> # Date 1176461030 -3600 # Node ID 30898de092896411600a0eba120f73db0654b232 # Parent abea8d1715038ee2721c3fad87b989338cac352f Simplify code to map interfaces to bridges signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx> --- tools/python/xen/xend/XendNode.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff -r abea8d171503 -r 30898de09289 tools/python/xen/xend/XendNode.py --- a/tools/python/xen/xend/XendNode.py Fri Apr 13 11:28:04 2007 +0100 +++ b/tools/python/xen/xend/XendNode.py Fri Apr 13 11:43:50 2007 +0100 @@ -150,8 +150,10 @@ class XendNode: # Get a mapping from interface to bridge - if_to_br = dict(reduce(lambda ls,(b,ifs):[(i,b) for i in ifs] + ls, - Brctl.get_state().items(), [])) + if_to_br = dict([(i,b) + for (b,ifs) in Brctl.get_state().items() + for i in ifs]) + # initialise PIFs saved_pifs = self.state_store.load_state('pif') if saved_pifs: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |