Bug 1970937 - Python snmpwalk with UseNumeric=1 sets tag and iid to null
Summary: Python snmpwalk with UseNumeric=1 sets tag and iid to null
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-snmp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Josef Ridky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-11 14:03 UTC by Josef Ridky
Modified: 2021-08-15 01:32 UTC (History)
4 users (show)

Fixed In Version: net-snmp-5.9.1-3.fc34 net-snmp-5.9.1-4.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1970938 (view as bug list)
Environment:
Last Closed: 2021-07-29 01:06:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github net-snmp net-snmp issues 303 0 None closed regression v.5.9.1: Python snmpwalk with UseNumeric=1 sets tag and iid to null 2021-06-11 14:03:35 UTC

Description Josef Ridky 2021-06-11 14:03:36 UTC
Current output:
snmp_res:: None None = Et0
snmp_res:: None None = Ethernet0
snmp_res:: None None = Fa0
snmp_res:: None None = FastEthernet0

Expected output:
snmp_res:: .1.3.6.1.2.1.31.1.1.1.1 1 = Et0
snmp_res:: .1.3.6.1.2.1.2.2.1.2 1 = Ethernet0
snmp_res:: .1.3.6.1.2.1.31.1.1.1.1 2 = Fa0
snmp_res:: .1.3.6.1.2.1.2.2.1.2 2 = FastEthernet0

Reproducer:

import netsnmp

serv = "localhost"
snmp_pass = "public"

oid = netsnmp.VarList('IF-MIB::ifName','IF-MIB::ifDescr')
snmp_res = netsnmp.snmpwalk(oid, Version=2, DestHost=serv, Community=snmp_pass, UseNumeric=1)
for x in oid:
    print ("snmp_res:: ", x.tag, x.iid, " = ", x.val)

Comment 1 Fedora Update System 2021-07-19 11:33:11 UTC
FEDORA-2021-13f06367c7 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-13f06367c7

Comment 2 Fedora Update System 2021-07-19 11:33:12 UTC
FEDORA-2021-71bdebb69f has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-71bdebb69f

Comment 3 Fedora Update System 2021-07-20 01:01:34 UTC
FEDORA-2021-13f06367c7 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-13f06367c7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-13f06367c7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-07-20 01:47:32 UTC
FEDORA-2021-71bdebb69f has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-71bdebb69f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-71bdebb69f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-07-29 01:06:43 UTC
FEDORA-2021-71bdebb69f has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2021-08-15 01:32:40 UTC
FEDORA-2021-72e9c8074e has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.