Bug 1970937

Summary: Python snmpwalk with UseNumeric=1 sets tag and iid to null
Product: [Fedora] Fedora Reporter: Josef Ridky <jridky>
Component: net-snmpAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jridky, jsafrane, mhjacks, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of:
: 1970938 (view as bug list) Environment:
Last Closed: 2021-07-29 01:06:43 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 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.