summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2008-11-12 21:32:59 +0000
committerelie <elie>2008-11-12 21:32:59 +0000
commit54e7c441608a6d0871fdd4806066ef3b7edde74e (patch)
tree065d512b69c3bf6a9b34fcfa7f6e415afc9fc7ff
parent38eda25adaa2d3e17538b4c1ba6672387754f895 (diff)
downloadpysnmp-54e7c441608a6d0871fdd4806066ef3b7edde74e.tar.gz
fix to proper tagList format (still needs a look)
-rw-r--r--pysnmp/entity/rfc3413/config.py2
-rw-r--r--pysnmp/entity/rfc3413/oneliner/ntforg.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/entity/rfc3413/config.py b/pysnmp/entity/rfc3413/config.py
index 6070784..d2ca8af 100644
--- a/pysnmp/entity/rfc3413/config.py
+++ b/pysnmp/entity/rfc3413/config.py
@@ -144,7 +144,7 @@ def getTargetNames(snmpEngine, tag):
except NoSuchObjectError:
break
# XXX stop on eot
- if tag in string.split(str(mibNode.syntax)): # XXX add __split__()
+ if tag in string.split(str(mibNode.syntax), ' '): # XXX add __split__()
idx = mibNode.name[len(snmpTargetAddrTagList.name):]
targetNames.append(
snmpTargetAddrEntry.getIndicesFromInstId(idx)[0]
diff --git a/pysnmp/entity/rfc3413/oneliner/ntforg.py b/pysnmp/entity/rfc3413/oneliner/ntforg.py
index 1c9d1b2..b0fa4a0 100644
--- a/pysnmp/entity/rfc3413/oneliner/ntforg.py
+++ b/pysnmp/entity/rfc3413/oneliner/ntforg.py
@@ -1,4 +1,4 @@
-import types
+import types, string
from pysnmp.entity import config
from pysnmp.entity.rfc3413 import ntforg, context, mibvar
from pysnmp.entity.rfc3413.oneliner import cmdgen
@@ -82,7 +82,7 @@ class AsynNotificationOriginator(cmdgen.AsynCommandGenerator):
self, authData, transportTarget, notifyType,
notificationType, varBinds=None, (cbFun, cbCtx)=(None, None)
):
- tagList = str(transportTarget.transportAddr)
+ tagList = string.replace(str(transportTarget.transportAddr), ' ', '_')
notifyName = self.cfgNtfOrg(authData, transportTarget,
notifyType, tagList)
if notificationType: