summaryrefslogtreecommitdiff
path: root/pysnmp/entity
diff options
context:
space:
mode:
authorelie <elie>2015-11-20 20:57:28 +0000
committerelie <elie>2015-11-20 20:57:28 +0000
commit87a7a35d1e9f762210c7520315158ceb5f5487d9 (patch)
tree6237737a13112a151e5c04917e8f64cb5158cc8b /pysnmp/entity
parent0d55f58dcef1d8b3b9a044ec805575fb3b06d343 (diff)
downloadpysnmp-git-87a7a35d1e9f762210c7520315158ceb5f5487d9.tar.gz
copyright notice added to source code
Diffstat (limited to 'pysnmp/entity')
-rw-r--r--pysnmp/entity/config.py8
-rw-r--r--pysnmp/entity/engine.py7
-rw-r--r--pysnmp/entity/observer.py29
-rw-r--r--pysnmp/entity/rfc3413/cmdgen.py6
-rw-r--r--pysnmp/entity/rfc3413/cmdrsp.py6
-rw-r--r--pysnmp/entity/rfc3413/config.py7
-rw-r--r--pysnmp/entity/rfc3413/context.py7
-rw-r--r--pysnmp/entity/rfc3413/mibvar.py6
-rw-r--r--pysnmp/entity/rfc3413/ntforg.py6
-rw-r--r--pysnmp/entity/rfc3413/ntfrcv.py6
-rw-r--r--pysnmp/entity/rfc3413/oneliner/cmdgen.py5
-rw-r--r--pysnmp/entity/rfc3413/oneliner/ntforg.py5
12 files changed, 80 insertions, 18 deletions
diff --git a/pysnmp/entity/config.py b/pysnmp/entity/config.py
index 8be32e4f..d1de809a 100644
--- a/pysnmp/entity/config.py
+++ b/pysnmp/entity/config.py
@@ -1,5 +1,9 @@
-# Initial SNMP engine configuration functions. During further operation,
-# SNMP engine might be configured remotely (through SNMP).
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
from pyasn1.compat.octets import null
from pysnmp.carrier.asyncore.dgram import udp, udp6, unix
from pysnmp.proto.secmod.rfc3414.auth import hmacmd5, hmacsha, noauth
diff --git a/pysnmp/entity/engine.py b/pysnmp/entity/engine.py
index 90d1df71..a3036fd0 100644
--- a/pysnmp/entity/engine.py
+++ b/pysnmp/entity/engine.py
@@ -1,4 +1,9 @@
-# SNMP engine
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
import os
import sys
import tempfile
diff --git a/pysnmp/entity/observer.py b/pysnmp/entity/observer.py
index 8bd0b301..56c5e5b0 100644
--- a/pysnmp/entity/observer.py
+++ b/pysnmp/entity/observer.py
@@ -1,21 +1,26 @@
#
-# This is a simple facility for exposing internal SNMP Engine
-# working details to pysnmp applications. These details are
-# basically local scope variables at a fixed point of execution.
+# This file is part of pysnmp software.
#
-# Two modes of operations are offered:
-# 1. App can request an execution point context by execution point ID.
-# 2. App can register its callback function (and context) to be invoked
-# once execution reaches specified point. All local scope variables
-# will be passed to the callback as in #1.
-#
-# It's important to realize that execution context is only guaranteed
-# to exist to functions that are at the same or deeper level of invocation
-# relative to execution point specified.
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
#
from pysnmp import error
class MetaObserver:
+ """This is a simple facility for exposing internal SNMP Engine
+ working details to pysnmp applications. These details are
+ basically local scope variables at a fixed point of execution.
+
+ Two modes of operations are offered:
+ 1. App can request an execution point context by execution point ID.
+ 2. App can register its callback function (and context) to be invoked
+ once execution reaches specified point. All local scope variables
+ will be passed to the callback as in #1.
+
+ It's important to realize that execution context is only guaranteed
+ to exist to functions that are at the same or deeper level of invocation
+ relative to execution point specified.
+ """
def __init__(self):
self.__observers = {}
self.__contexts = {}
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py
index ab68148e..9e4837fb 100644
--- a/pysnmp/entity/rfc3413/cmdgen.py
+++ b/pysnmp/entity/rfc3413/cmdgen.py
@@ -1,3 +1,9 @@
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
import sys
from pysnmp.entity.rfc3413 import config
from pysnmp.proto import rfc1905, errind
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py
index 2b30e8e8..457f90ef 100644
--- a/pysnmp/entity/rfc3413/cmdrsp.py
+++ b/pysnmp/entity/rfc3413/cmdrsp.py
@@ -1,3 +1,9 @@
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
import sys
from pysnmp.proto import rfc1902, rfc1905, rfc3411, errind, error
from pysnmp.proto.api import v2c # backend is always SMIv2 compliant
diff --git a/pysnmp/entity/rfc3413/config.py b/pysnmp/entity/rfc3413/config.py
index 98733d0b..f8944efe 100644
--- a/pysnmp/entity/rfc3413/config.py
+++ b/pysnmp/entity/rfc3413/config.py
@@ -1,4 +1,9 @@
-# Shortcuts to MIB instrumentation items used internally in SNMP applications
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
from pysnmp.smi.error import SmiError, NoSuchInstanceError
from pysnmp.entity import config
diff --git a/pysnmp/entity/rfc3413/context.py b/pysnmp/entity/rfc3413/context.py
index 565bb3c2..a6ca7c3b 100644
--- a/pysnmp/entity/rfc3413/context.py
+++ b/pysnmp/entity/rfc3413/context.py
@@ -1,4 +1,9 @@
-# SNMP entity context
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
from pyasn1.type import univ
from pyasn1.compat.octets import null
from pysnmp import error
diff --git a/pysnmp/entity/rfc3413/mibvar.py b/pysnmp/entity/rfc3413/mibvar.py
index 65b4653c..69f547ca 100644
--- a/pysnmp/entity/rfc3413/mibvar.py
+++ b/pysnmp/entity/rfc3413/mibvar.py
@@ -1,8 +1,12 @@
#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
# THESE FUNCTIONS ARE OBSOLETE AND MUST NOT BE USED!
# USE pysnmp.entity.rfc3413.oneliner.mibvar INSTEAD
#
-# MIB variable pretty printers/parsers
from pyasn1.type import univ
from pysnmp.smi.error import NoSuchObjectError
diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py
index a57397fb..5af3fe90 100644
--- a/pysnmp/entity/rfc3413/ntforg.py
+++ b/pysnmp/entity/rfc3413/ntforg.py
@@ -1,3 +1,9 @@
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
import sys
from pyasn1.compat.octets import null
from pysnmp.entity.rfc3413 import config
diff --git a/pysnmp/entity/rfc3413/ntfrcv.py b/pysnmp/entity/rfc3413/ntfrcv.py
index e78c512a..1a27222c 100644
--- a/pysnmp/entity/rfc3413/ntfrcv.py
+++ b/pysnmp/entity/rfc3413/ntfrcv.py
@@ -1,3 +1,9 @@
+#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
import sys
from pyasn1.compat.octets import null
from pysnmp.proto import rfc3411, error
diff --git a/pysnmp/entity/rfc3413/oneliner/cmdgen.py b/pysnmp/entity/rfc3413/oneliner/cmdgen.py
index 827ca08b..21d7d7a8 100644
--- a/pysnmp/entity/rfc3413/oneliner/cmdgen.py
+++ b/pysnmp/entity/rfc3413/oneliner/cmdgen.py
@@ -1,4 +1,9 @@
#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
# All code in this file belongs to obsolete, compatibility wrappers.
# Never use interfaces below for new applications!
#
diff --git a/pysnmp/entity/rfc3413/oneliner/ntforg.py b/pysnmp/entity/rfc3413/oneliner/ntforg.py
index 737dbf23..0b67adb9 100644
--- a/pysnmp/entity/rfc3413/oneliner/ntforg.py
+++ b/pysnmp/entity/rfc3413/oneliner/ntforg.py
@@ -1,4 +1,9 @@
#
+# This file is part of pysnmp software.
+#
+# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net>
+# License: http://pysnmp.sf.net/license.html
+#
# All code in this file belongs to obsolete, compatibility wrappers.
# Never use interfaces below for new applications!
#