Skip to content
Snippets Groups Projects
Commit f390e5c7 authored by Taya Snijder's avatar Taya Snijder
Browse files

added discription to setup_attribute function

parent b1f43167
No related branches found
No related tags found
1 merge request!243Resolve L2SS-464 "Replace snmp python library with pysnmp"
...@@ -106,6 +106,10 @@ class SNMP_client(CommClient): ...@@ -106,6 +106,10 @@ class SNMP_client(CommClient):
def setup_attribute(self, annotation, attribute): def setup_attribute(self, annotation, attribute):
""" """
MANDATORY function: is used by the attribute wrapper to get read/write functions. must return the read and write functions MANDATORY function: is used by the attribute wrapper to get read/write functions. must return the read and write functions
Gets called from inside the attributet wrapper. It is provided with the attribute_warpper itself
and the annotation provided when the attribute_wrapper was declared.
These parameters can be used to configure a valid read and write function as return values.
""" """
# process the annotation # process the annotation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment