Here is a v2 prototype of SNMP agent support using pysnmp. Ryu is able to send SNMP trap as notification originator. Right now it sends only coldStart trap on startup and specific traps on datapath enter/leave event.
For other Ryu component to utilize SNMP agent, agentX-like API is desirable? thanks, Changes v1 -> v2: - introduce Ryu specific MIB definitions - populate datapath table and send traps on datapath enter/leave event Isaku Yamahata (6): lib/dpid: helper functions converting dpid <-> bytes[8] services/snmp_agent: create snmp agent module snmp/mib: MIB definitions specific to Ryu services/snmp/mib: RYU-MIB.py snmp/mib/instances: add __RYU-MIB module which is currently empty snmp/agent: snmp agent support ryu/lib/dpid.py | 13 ++ ryu/services/snmp/__init__.py | 15 ++ ryu/services/snmp/agent.py | 286 +++++++++++++++++++++++++ ryu/services/snmp/mibs/RYU-MIB.py | 71 ++++++ ryu/services/snmp/mibs/RYU-MIB.txt | 149 +++++++++++++ ryu/services/snmp/mibs/__init__.py | 15 ++ ryu/services/snmp/mibs/instances/__RYU-MIB.py | 17 ++ ryu/services/snmp/mibs/instances/__init__.py | 15 ++ 8 files changed, 581 insertions(+) create mode 100644 ryu/services/snmp/__init__.py create mode 100644 ryu/services/snmp/agent.py create mode 100644 ryu/services/snmp/mibs/RYU-MIB.py create mode 100644 ryu/services/snmp/mibs/RYU-MIB.txt create mode 100644 ryu/services/snmp/mibs/__init__.py create mode 100644 ryu/services/snmp/mibs/instances/__RYU-MIB.py create mode 100644 ryu/services/snmp/mibs/instances/__init__.py -- 1.7.10.4 ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
