summaryrefslogtreecommitdiff
path: root/examples/v1arch
diff options
context:
space:
mode:
authorelie <elie>2006-04-24 16:35:10 +0000
committerelie <elie>2006-04-24 16:35:10 +0000
commit846380263ca57aa2899cee3b5a5f1ba7aeac4e58 (patch)
tree843d98cf0ed0abc7743f61299a61ec41331a4f9d /examples/v1arch
parent3ce0cd12a6d51bab1eea3459286c319d7efe85b7 (diff)
downloadpysnmp-git-846380263ca57aa2899cee3b5a5f1ba7aeac4e58.tar.gz
initial value to Null('') added
Diffstat (limited to 'examples/v1arch')
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py4
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
index d77b18a9..1189659a 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
@@ -12,8 +12,8 @@ pMod = api.protoModules[api.protoVersion1]
reqPDU = pMod.GetRequestPDU()
pMod.apiPDU.setDefaults(reqPDU)
pMod.apiPDU.setVarBinds(
- reqPDU, (((1,3,6,1,2,1,1,1,0), pMod.Null()),
- ((1,3,6,1,2,1,1,3,0), pMod.Null()))
+ reqPDU, (((1,3,6,1,2,1,1,1,0), pMod.Null('')),
+ ((1,3,6,1,2,1,1,3,0), pMod.Null('')))
)
# Build message
diff --git a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
index e84896e7..08c45753 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
@@ -15,7 +15,7 @@ headVars = [ pMod.ObjectIdentifier((1,3,6)) ]
reqPDU = pMod.GetNextRequestPDU()
pMod.apiPDU.setDefaults(reqPDU)
pMod.apiPDU.setVarBinds(
- reqPDU, map(lambda x, pMod=pMod: (x, pMod.Null()), headVars)
+ reqPDU, map(lambda x, pMod=pMod: (x, pMod.Null('')), headVars)
)
# Build message
@@ -60,7 +60,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
# Generate request for next row
pMod.apiPDU.setVarBinds(
- reqPDU, map(lambda (x,y),n=pMod.Null(): (x,n), varBindTable[-1])
+ reqPDU, map(lambda (x,y),n=pMod.Null(''): (x,n), varBindTable[-1])
)
pMod.apiPDU.setRequestID(reqPDU, pMod.getNextRequestID())
transportDispatcher.sendMessage(