Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/services/snmp/mibs/RYU-MIB.py |   71 +++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 ryu/services/snmp/mibs/RYU-MIB.py

diff --git a/ryu/services/snmp/mibs/RYU-MIB.py 
b/ryu/services/snmp/mibs/RYU-MIB.py
new file mode 100644
index 0000000..1fd174a
--- /dev/null
+++ b/ryu/services/snmp/mibs/RYU-MIB.py
@@ -0,0 +1,71 @@
+# PySNMP SMI module. Autogenerated from smidump -f python RYU-MIB
+# by libsmi2pysnmp-0.1.3 at Fri May 17 18:09:39 2013,
+# Python version sys.version_info(major=2, minor=7, micro=3, 
releaselevel='final', serial=0)
+
+# Imports
+
+( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", 
"Integer", "ObjectIdentifier", "OctetString")
+( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, 
ValueRangeConstraint, ValueSizeConstraint, ) = 
mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", 
"ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", 
"ValueSizeConstraint")
+( Bits, Integer32, ModuleIdentity, MibIdentifier, NotificationType, MibScalar, 
MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, enterprises, ) = 
mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "ModuleIdentity", 
"MibIdentifier", "NotificationType", "MibScalar", "MibTable", "MibTableRow", 
"MibTableColumn", "TimeTicks", "Unsigned32", "enterprises")
+( RowStatus, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", 
"RowStatus", "TextualConvention")
+
+# Types
+
+class DatapathID(TextualConvention, OctetString):
+    displayHint = "1x"
+    subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(8,8)
+    fixedLength = 8
+    
+
+# Objects
+
+ryuMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 50000)).setRevisions(("2013-05-17 
00:00",))
+if mibBuilder.loadTexts: ryuMIB.setOrganization("Ryu project")
+if mibBuilder.loadTexts: ryuMIB.setContactInfo("TODO")
+if mibBuilder.loadTexts: ryuMIB.setDescription("The MIB module for Ryu 
project\nTODO")
+ryuNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 50000, 1))
+openflowNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 50000, 1, 0))
+openFlow = MibIdentifier((1, 3, 6, 1, 4, 1, 50000, 2))
+datapathTable = MibTable((1, 3, 6, 1, 4, 1, 50000, 2, 1))
+if mibBuilder.loadTexts: datapathTable.setDescription("TODO")
+datapathEntry = MibTableRow((1, 3, 6, 1, 4, 1, 50000, 2, 1, 
1)).setIndexNames((0, "RYU-MIB", "dpIndex"))
+if mibBuilder.loadTexts: datapathEntry.setDescription("datapath entry")
+dpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 1), 
DatapathID()).setMaxAccess("noaccess")
+if mibBuilder.loadTexts: dpIndex.setDescription("TODO")
+dpID = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 2), 
DatapathID()).setMaxAccess("readonly")
+if mibBuilder.loadTexts: dpID.setDescription("datapath id")
+dpNBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 3), 
Unsigned32()).setMaxAccess("readonly")
+if mibBuilder.loadTexts: dpNBuffers.setDescription("nbuffers")
+dpNTables = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 4), 
Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 
255))).setMaxAccess("readonly")
+if mibBuilder.loadTexts: dpNTables.setDescription("n tables")
+dpAuxiliaryID = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 5), 
Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 
255))).setMaxAccess("readonly")
+if mibBuilder.loadTexts: dpAuxiliaryID.setDescription("auxiliary_id")
+dpCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 6), 
Unsigned32()).setMaxAccess("readonly")
+if mibBuilder.loadTexts: dpCapabilities.setDescription("capabilities")
+dpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 50000, 2, 1, 1, 7), 
RowStatus()).setMaxAccess("readcreate")
+if mibBuilder.loadTexts: dpRowStatus.setDescription("row status")
+
+# Augmentions
+
+# Notifications
+
+datapathConnected = NotificationType((1, 3, 6, 1, 4, 1, 50000, 1, 0, 
1)).setObjects(*(("RYU-MIB", "dpID"), ) )
+if mibBuilder.loadTexts: datapathConnected.setDescription("datapath connected")
+datapathDisconnected = NotificationType((1, 3, 6, 1, 4, 1, 50000, 1, 0, 
2)).setObjects(*(("RYU-MIB", "dpID"), ) )
+if mibBuilder.loadTexts: datapathDisconnected.setDescription("datapath 
disconnected")
+
+# Exports
+
+# Module identity
+mibBuilder.exportSymbols("RYU-MIB", PYSNMP_MODULE_ID=ryuMIB)
+
+# Types
+mibBuilder.exportSymbols("RYU-MIB", DatapathID=DatapathID)
+
+# Objects
+mibBuilder.exportSymbols("RYU-MIB", ryuMIB=ryuMIB, 
ryuNotifications=ryuNotifications, openflowNotifications=openflowNotifications, 
openFlow=openFlow, datapathTable=datapathTable, datapathEntry=datapathEntry, 
dpIndex=dpIndex, dpID=dpID, dpNBuffers=dpNBuffers, dpNTables=dpNTables, 
dpAuxiliaryID=dpAuxiliaryID, dpCapabilities=dpCapabilities, 
dpRowStatus=dpRowStatus)
+
+# Notifications
+mibBuilder.exportSymbols("RYU-MIB", datapathConnected=datapathConnected, 
datapathDisconnected=datapathDisconnected)
+
-- 
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

Reply via email to