credosemi/smartsnmp — pull request #44 by leo-ma (2014-09-09 03:19:35+00:00)
Title: Add mib root oid setting API

Signed-off-by: leo-ma

This API aims to specify the access control of the whole mib-tree. The agent only allows clients to get access to mib nodes under root oid. The usage is as below.

In smartsnmp.conf we can write:
```
root = '.1.3.6.1'
```
Then in snmpd we call the lua API before any group node registered:
```
snmpd.root(utils.str2oid(root))
```
Then the agent will only show mib nodes whose oid prefix containg '.1.3.6.1' through SNMP commands.