Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 627212 Details for
Bug 585478
RFE: VDE: Add support for VDE(2) as a virtual network backend impl
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Corresponding patch to virtinst-0.600.3
virtinst-vde.patch (text/plain), 4.13 KB, created by
Tom Prince
on 2012-10-15 06:26:53 UTC
(
hide
)
Description:
Corresponding patch to virtinst-0.600.3
Filename:
MIME Type:
Creator:
Tom Prince
Created:
2012-10-15 06:26:53 UTC
Size:
4.13 KB
patch
obsolete
>diff --git a/man/en/virt-install.pod.in b/man/en/virt-install.pod.in >index ba7d5e5..e7762e3 100644 >--- a/man/en/virt-install.pod.in >+++ b/man/en/virt-install.pod.in >@@ -597,6 +597,10 @@ NATed to the LAN by whichever connection is active. > Connect to the LAN using SLIRP. Only use this if running a QEMU guest as > an unprivileged user. This provides a very limited form of NAT. > >+=item vde=PATH >+ >+Connect to a VDE switch with control socket at C<PATH>. >+ > =back > > If this option is omitted a single NIC will be created in the guest. If >diff --git a/virtinst/VirtualNetworkInterface.py b/virtinst/VirtualNetworkInterface.py >index 37a51e6..250f00f 100644 >--- a/virtinst/VirtualNetworkInterface.py >+++ b/virtinst/VirtualNetworkInterface.py >@@ -104,8 +104,9 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > TYPE_USER = "user" > TYPE_ETHERNET = "ethernet" > TYPE_DIRECT = "direct" >+ TYPE_VDE = "vde" > network_types = [TYPE_BRIDGE, TYPE_VIRTUAL, TYPE_USER, TYPE_ETHERNET, >- TYPE_DIRECT] >+ TYPE_DIRECT, TYPE_VDE] > > def get_network_type_desc(net_type): > """ >@@ -137,6 +138,7 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > self._target_dev = None > self._source_dev = None > self._source_mode = "vepa" >+ self._vde_switch = None > self._virtualport = VirtualPort(conn, parsexml, parsexmlnode, caps) > > # Generate _random_mac >@@ -195,6 +197,8 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > return self.bridge > if self.type == self.TYPE_ETHERNET or self.type == self.TYPE_DIRECT: > return self.source_dev >+ if self.type == self.TYPE_VDE: >+ return self.vde_switch > if self.type == self.TYPE_USER: > return None > return self.network or self.bridge or self.source_dev >@@ -210,6 +214,8 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > self.bridge = newsource > elif self.type == self.TYPE_ETHERNET or self.type == self.TYPE_DIRECT: > self.source_dev = newsource >+ elif self.type == self.TYPE_VDE: >+ self.vde_switch = newsource > return > source = property(get_source, set_source) > >@@ -300,6 +306,13 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > source_mode = _xml_property(get_source_mode, set_source_mode, > xpath="./source/@mode") > >+ def get_vde_switch(self): >+ return self._vde_switch >+ def set_vde_switch(self, val): >+ self._vde_switch = val >+ vde_switch = _xml_property(get_vde_switch, set_vde_switch, >+ xpath="./switch/@path") >+ > def is_conflict_net(self, conn, mac=None): > """ > is_conflict_net: determines if mac conflicts with others in system >@@ -369,6 +382,8 @@ class VirtualNetworkInterface(VirtualDevice.VirtualDevice): > src_xml = " <source dev='%s'/>\n" % self.source_dev > elif self.type == self.TYPE_DIRECT and self.source_dev: > src_xml = " <source dev='%s' mode='%s'/>\n" % (self.source_dev, self.source_mode) >+ elif self.type == self.TYPE_VDE and self.vde_switch: >+ src_xml = " <switch path='%s'/>\n" % (self.vde_switch,) > > if self.model: > model_xml = " <model type='%s'/>\n" % self.model >diff --git a/virtinst/cli.py b/virtinst/cli.py >index 580eefd..2f8cff6 100644 >--- a/virtinst/cli.py >+++ b/virtinst/cli.py >@@ -1652,6 +1652,8 @@ def parse_network(guest, optstring, dev=None, mac=None): > net_type = VirtualNetworkInterface.TYPE_VIRTUAL > elif "bridge" in opts: > net_type = VirtualNetworkInterface.TYPE_BRIDGE >+ elif "vde" in opts: >+ net_type = VirtualNetworkInterface.TYPE_VDE > > # Build initial device > if not dev: >@@ -1673,6 +1675,7 @@ def parse_network(guest, optstring, dev=None, mac=None): > set_param("bridge", "bridge") > set_param("model", "model") > set_param("macaddr", "mac") >+ set_param("vde_switch", ["switch","vde"]) > > if opts: > raise ValueError(_("Unknown options %s") % opts.keys())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 585478
:
627200
| 627212