diff options
author | elie <elie> | 2006-04-24 16:35:10 +0000 |
---|---|---|
committer | elie <elie> | 2006-04-24 16:35:10 +0000 |
commit | 7487338140b57d103f3360497a222618c0825715 (patch) | |
tree | 4a4fe2147226d71f5a8c4dc0f3153a6fc0cfd739 /examples/v1arch | |
parent | 554253c20d815e103a69386e18f178dc96784763 (diff) | |
download | pysnmp-7487338140b57d103f3360497a222618c0825715.tar.gz |
initial value to Null('') added
Diffstat (limited to 'examples/v1arch')
-rw-r--r-- | examples/v1arch/manager/getgen.py | 4 | ||||
-rw-r--r-- | examples/v1arch/manager/nextgen.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/manager/getgen.py b/examples/v1arch/manager/getgen.py index d77b18a..1189659 100644 --- a/examples/v1arch/manager/getgen.py +++ b/examples/v1arch/manager/getgen.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/manager/nextgen.py b/examples/v1arch/manager/nextgen.py index e84896e..08c4575 100644 --- a/examples/v1arch/manager/nextgen.py +++ b/examples/v1arch/manager/nextgen.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( |