Bug 1786980
| Summary: | listAllPorts() cann't list all network ports | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | lcheng |
| Component: | libvirt-python | Assignee: | Daniel Berrangé <berrange> |
| Status: | CLOSED ERRATA | QA Contact: | lcheng |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.2 | CC: | berrange, dyuan, jdenemar, lmen, xuzhang |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-python-6.0.0-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-05 09:52:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
lcheng
2019-12-30 06:06:30 UTC
Merged upstream for forthcoming 6.0.0 Verified on python3-libvirt-6.0.0-1.module+el8.2.0+5453+31b2b136.x86_64. # python Python 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open() >>> net = conn.networkLookupByName('default') >>> net.listAllPorts() [<libvirt.virNetworkPort object at 0x7f4eb14429e8>, <libvirt.virNetworkPort object at 0x7f4eb1442978>] >>> net.listAllPorts()[0].UUIDString() '43d3260d-0fcb-44aa-9571-d2efc53fad08' >>> net.listAllPorts()[1].UUIDString() '43d3260d-0fcb-44aa-9571-d2efc53fad07' >>> net.listAllPorts()[0].XMLDesc() "<networkport>\n <uuid>43d3260d-0fcb-44aa-9571-d2efc53fad08</uuid>\n <owner>\n <name>rhel</name>\n <uuid>6fc9e4e3-980c-43df-8d62-673cd69b00e3</uuid>\n </owner>\n <mac address='52:54:00:e6:e8:32'/>\n <bandwidth classID='1'>\n <inbound average='600' peak='500' burst='400'/>\n <outbound average='700' peak='800' burst='600'/>\n </bandwidth>\n <plug type='network' bridge='virbr0'/>\n</networkport>\n" >>> net.listAllPorts()[0].UUID() b'C\xd3&\r\x0f\xcbD\xaa\x95q\xd2\xef\xc5?\xad\x08' Move to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2017 |