From 6c3b5def812673147d38e5346eb266072795343d Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 25 Jan 2022 15:52:04 -0500 Subject: 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 --- virtManager/object/domain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'virtManager/object') 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: -- cgit v1.2.1