summaryrefslogtreecommitdiff
path: root/virtManager/object
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-01-25 15:52:04 -0500
committerCole Robinson <crobinso@redhat.com>2022-01-25 16:01:17 -0500
commit6c3b5def812673147d38e5346eb266072795343d (patch)
tree69dd3c55e8b5728a8f607ef203451144b290ba8a /virtManager/object
parentc6bf106dd3be6990de403dfca85c2dc22011298e (diff)
downloadvirt-manager-6c3b5def812673147d38e5346eb266072795343d.tar.gz
netlist: Revive portgroup UI
I removed Portgroup UI in 4c3c53f773 release 3.0.0, but there's been a steady stream of requests to bring it back. It seems it's commonly used with some certain openvswitch config. Maint burden isn't too bad. Let's bring it back Fixes: https://github.com/virt-manager/virt-manager/issues/169 Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object')
-rw-r--r--virtManager/object/domain.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py
index e1a02ba3..5bf66901 100644
--- a/virtManager/object/domain.py
+++ b/virtManager/object/domain.py
@@ -807,7 +807,8 @@ class vmmDomain(vmmLibvirtObject):
def define_network(self, devobj, do_hotplug,
ntype=_SENTINEL, source=_SENTINEL,
mode=_SENTINEL, model=_SENTINEL,
- macaddr=_SENTINEL, linkstate=_SENTINEL):
+ macaddr=_SENTINEL, linkstate=_SENTINEL,
+ portgroup=_SENTINEL):
xmlobj = self._make_xmlobj_to_define()
editdev = self._lookup_device_to_define(xmlobj, devobj, do_hotplug)
if not editdev:
@@ -819,6 +820,7 @@ class vmmDomain(vmmLibvirtObject):
editdev.type = ntype
editdev.source = source
editdev.source_mode = mode or None
+ editdev.portgroup = portgroup or None
if model != _SENTINEL:
if editdev.model != model: