Skip to content

Commit

Permalink
Fixed #165 by restoring method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Jan 15, 2025
1 parent 1a7f6cd commit 6c2a645
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pysnmp/smi/mibs/PYSNMP-MIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
if mibBuilder.loadTexts:
pysnmp.setOrganization("The PySNMP Project")
if mibBuilder.loadTexts:
pysnmp.set_contact_info(
pysnmp.setContactInfo(
"E-mail: LeXtudio Inc. <support@lextudio.com> GitHub: https://github.com/lextudio/pysnmp"
)
if mibBuilder.loadTexts:
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
if mibBuilder.loadTexts:
pysnmpSourceMIB.setOrganization("The PySNMP Project")
if mibBuilder.loadTexts:
pysnmpSourceMIB.set_contact_info(
pysnmpSourceMIB.setContactInfo(
"E-mail: LeXtudio Inc. <support@lextudio.com> GitHub: https://github.com/lextudio/pysnmp"
)
if mibBuilder.loadTexts:
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/smi/mibs/PYSNMP-USM-MIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
if mibBuilder.loadTexts:
pysnmpUsmMIB.setOrganization("The PySNMP Project")
if mibBuilder.loadTexts:
pysnmpUsmMIB.set_contact_info(
pysnmpUsmMIB.setContactInfo(
"E-mail: LeXtudio Inc. <support@lextudio.com> GitHub: https://github.com/lextudio/pysnmp"
)
if mibBuilder.loadTexts:
Expand Down
4 changes: 3 additions & 1 deletion tests/smi/manager/test_mib-tree-inspection.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import os
import pytest
from pysnmp.smi import builder, compiler, view

mibBuilder = builder.MibBuilder()
mibBuilder.loadTexts = True
compiler.addMibCompiler(mibBuilder)
mibBuilder.add_mib_sources(builder.DirMibSource(os.path.expanduser("~/.pysnmp/mibs"))),
mibView = view.MibViewController(mibBuilder)

mibBuilder.load_modules(
"SNMPv2-MIB",
"SNMP-FRAMEWORK-MIB",
"SNMP-COMMUNITY-MIB",
"CISCO-ENHANCED-IPSEC-FLOW-MIB",
"PYSNMP-MIB",
)


Expand Down

0 comments on commit 6c2a645

Please sign in to comment.