content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'cloudbuildhelper',
'recipe_engine/json',
'recipe_engine/step',
]
def RunSteps(api):
api.cloudbuildhelper.report_version()
# Coverage for api.cloudbuildhelper.build(...).
build(api)
# Coverage for api.cloudbuildhelper.upload(...).
upload(api)
# Use custom binary from this point onward, for test coverage.
api.cloudbuildhelper.command = 'custom_cloudbuildhelper'
# Updating pins.
assert api.cloudbuildhelper.update_pins('some/pins.yaml')
def build(api):
# Building with all args.
img = api.cloudbuildhelper.build(
manifest='some/dir/target.yaml',
canonical_tag='123_456',
build_id='bid',
infra='dev',
labels={'l1': 'v1', 'l2': 'v2'},
tags=['latest', 'another'],
)
expected = api.cloudbuildhelper.Image(
image='example.com/fake-registry/target',
digest='sha256:34a04005bcaf206e...',
tag='123_456',
view_image_url='https://example.com/image/target',
view_build_url='https://example.com/build/target')
assert img == expected, img
# With minimal args and custom emulated output.
custom = api.cloudbuildhelper.Image(
image='xxx',
digest='yyy',
tag=None,
view_image_url='https://example.com/image/another',
view_build_url='https://example.com/build/another')
img = api.cloudbuildhelper.build('another.yaml', step_test_image=custom)
assert img == custom, img
# Using non-canonical tag.
api.cloudbuildhelper.build('a.yaml', tags=['something'])
# Using :inputs-hash canonical tag.
api.cloudbuildhelper.build('b.yaml', canonical_tag=':inputs-hash')
# Image that wasn't uploaded anywhere.
img = api.cloudbuildhelper.build(
'third.yaml', step_test_image=api.cloudbuildhelper.NotUploadedImage)
assert img == api.cloudbuildhelper.NotUploadedImage, img
# Possibly failing build.
try:
api.cloudbuildhelper.build('fail_maybe.yaml')
except api.step.StepFailure:
pass
def upload(api):
# Passing all args.
tarball = api.cloudbuildhelper.upload(
manifest='some/dir/target.yaml',
canonical_tag='123_456',
build_id='bid',
infra='dev',
)
expected = api.cloudbuildhelper.Tarball(
name='example/target',
bucket='example',
path='tarballs/example/target/82ac16b294bc0f98....tar.gz',
sha256='82ac16b294bc0f98...',
version='123_456',
)
assert tarball == expected, tarball
# With minimal args and custom emulated output.
custom = api.cloudbuildhelper.Tarball(
name='blah/target',
bucket='some-bucket',
path='some/path/file.tar.gz',
sha256='111111...',
version='4567-789',
)
tarball = api.cloudbuildhelper.upload(
'another.yaml', canonical_tag='ignored', step_test_tarball=custom)
assert tarball == custom, tarball
# Possibly failing upload.
try:
api.cloudbuildhelper.upload('fail_maybe.yaml', canonical_tag='tag')
except api.step.StepFailure:
pass
def GenTests(api):
yield api.test('simple')
yield (
api.test('failing') +
api.step_data(
'cloudbuildhelper build fail_maybe',
api.cloudbuildhelper.build_error_output('Boom'),
retcode=1,
) +
api.step_data(
'cloudbuildhelper upload fail_maybe',
api.cloudbuildhelper.upload_error_output('Boom'),
retcode=1
)
)
| deps = ['cloudbuildhelper', 'recipe_engine/json', 'recipe_engine/step']
def run_steps(api):
api.cloudbuildhelper.report_version()
build(api)
upload(api)
api.cloudbuildhelper.command = 'custom_cloudbuildhelper'
assert api.cloudbuildhelper.update_pins('some/pins.yaml')
def build(api):
img = api.cloudbuildhelper.build(manifest='some/dir/target.yaml', canonical_tag='123_456', build_id='bid', infra='dev', labels={'l1': 'v1', 'l2': 'v2'}, tags=['latest', 'another'])
expected = api.cloudbuildhelper.Image(image='example.com/fake-registry/target', digest='sha256:34a04005bcaf206e...', tag='123_456', view_image_url='https://example.com/image/target', view_build_url='https://example.com/build/target')
assert img == expected, img
custom = api.cloudbuildhelper.Image(image='xxx', digest='yyy', tag=None, view_image_url='https://example.com/image/another', view_build_url='https://example.com/build/another')
img = api.cloudbuildhelper.build('another.yaml', step_test_image=custom)
assert img == custom, img
api.cloudbuildhelper.build('a.yaml', tags=['something'])
api.cloudbuildhelper.build('b.yaml', canonical_tag=':inputs-hash')
img = api.cloudbuildhelper.build('third.yaml', step_test_image=api.cloudbuildhelper.NotUploadedImage)
assert img == api.cloudbuildhelper.NotUploadedImage, img
try:
api.cloudbuildhelper.build('fail_maybe.yaml')
except api.step.StepFailure:
pass
def upload(api):
tarball = api.cloudbuildhelper.upload(manifest='some/dir/target.yaml', canonical_tag='123_456', build_id='bid', infra='dev')
expected = api.cloudbuildhelper.Tarball(name='example/target', bucket='example', path='tarballs/example/target/82ac16b294bc0f98....tar.gz', sha256='82ac16b294bc0f98...', version='123_456')
assert tarball == expected, tarball
custom = api.cloudbuildhelper.Tarball(name='blah/target', bucket='some-bucket', path='some/path/file.tar.gz', sha256='111111...', version='4567-789')
tarball = api.cloudbuildhelper.upload('another.yaml', canonical_tag='ignored', step_test_tarball=custom)
assert tarball == custom, tarball
try:
api.cloudbuildhelper.upload('fail_maybe.yaml', canonical_tag='tag')
except api.step.StepFailure:
pass
def gen_tests(api):
yield api.test('simple')
yield (api.test('failing') + api.step_data('cloudbuildhelper build fail_maybe', api.cloudbuildhelper.build_error_output('Boom'), retcode=1) + api.step_data('cloudbuildhelper upload fail_maybe', api.cloudbuildhelper.upload_error_output('Boom'), retcode=1)) |
loads('''(iemen2.Database
User
p1
(dp2
S'username'
p3
S'root'
p4
sS'name'
p5
(S'Database'
S''
S'Administrator'
tp6
sS'creator'
p7
I0
sS'privacy'
p8
I0
sS'creationtime'
p9
S'2008/03/07 10:11:18'
p10
sS'disabled'
p11
I0
sS'record'
p12
NsS'groups'
p13
(lp14
I-1
asS'password'
p15
S'8843d7f92416211de9ebb963ff4ce28125932878'
p16
sS'email'
p17
Nsb.''') | loads("(iemen2.Database\nUser\np1\n(dp2\nS'username'\np3\nS'root'\np4\nsS'name'\np5\n(S'Database'\nS''\nS'Administrator'\ntp6\nsS'creator'\np7\nI0\nsS'privacy'\np8\nI0\nsS'creationtime'\np9\nS'2008/03/07 10:11:18'\np10\nsS'disabled'\np11\nI0\nsS'record'\np12\nNsS'groups'\np13\n(lp14\nI-1\nasS'password'\np15\nS'8843d7f92416211de9ebb963ff4ce28125932878'\np16\nsS'email'\np17\nNsb.") |
class FilterBase:
def __init__(self) -> None:
pass
def _check_input(self, array_input, array_output):
if not len(array_input.shape) == 2:
raise Exception('array_input does not have 2 dimensions')
if not len(array_output.shape) == 2:
raise Exception('array_output does not have 2 dimensions')
if array_input.shape[0] != array_output.shape[0]:
raise Exception('array_input size ' + str(array_input.shape) + ' does not match array_output ' + str(array_output.shape))
if array_input.shape[1] != array_output.shape[1]:
raise Exception('array_input size ' + str(array_input.shape) + ' does not match array_output ' + str(array_output.shape))
| class Filterbase:
def __init__(self) -> None:
pass
def _check_input(self, array_input, array_output):
if not len(array_input.shape) == 2:
raise exception('array_input does not have 2 dimensions')
if not len(array_output.shape) == 2:
raise exception('array_output does not have 2 dimensions')
if array_input.shape[0] != array_output.shape[0]:
raise exception('array_input size ' + str(array_input.shape) + ' does not match array_output ' + str(array_output.shape))
if array_input.shape[1] != array_output.shape[1]:
raise exception('array_input size ' + str(array_input.shape) + ' does not match array_output ' + str(array_output.shape)) |
class TagFilterMixin(object):
model = None
def _get_tag_filter_value(self):
return self.request.GET.get('tag', None)
def _apply_tag_filter(self, qs):
filter_value = self._get_tag_filter_value()
if filter_value is not None:
qs = qs.filter(tagged_items__tag__slug=filter_value)
return qs
def _get_tag_choices(self):
choices = []
if self.model is not None:
for used_tag in self.model.model_tags.all():
choices.append(
{
'name': used_tag.name,
'param': used_tag.slug,
'selected': used_tag.slug == self._get_tag_filter_value()
}
)
return choices
| class Tagfiltermixin(object):
model = None
def _get_tag_filter_value(self):
return self.request.GET.get('tag', None)
def _apply_tag_filter(self, qs):
filter_value = self._get_tag_filter_value()
if filter_value is not None:
qs = qs.filter(tagged_items__tag__slug=filter_value)
return qs
def _get_tag_choices(self):
choices = []
if self.model is not None:
for used_tag in self.model.model_tags.all():
choices.append({'name': used_tag.name, 'param': used_tag.slug, 'selected': used_tag.slug == self._get_tag_filter_value()})
return choices |
#!/usr/bin/env python
def dummy(num):
pass
print("#1 Else in for loop with break")
for num in range(100):
if num == 2:
print("Break")
break
else:
print("else")
print()
print("#2 Else in for loop without break")
for num in range(100):
dummy(num)
else:
print("else")
print()
print("#3 Else in empty for loop without break")
for num in ():
print(num)
else:
print("else")
print()
print("#4 Else in empty for loop with break")
for num in ():
break
else:
print("else")
print()
| def dummy(num):
pass
print('#1 Else in for loop with break')
for num in range(100):
if num == 2:
print('Break')
break
else:
print('else')
print()
print('#2 Else in for loop without break')
for num in range(100):
dummy(num)
else:
print('else')
print()
print('#3 Else in empty for loop without break')
for num in ():
print(num)
else:
print('else')
print()
print('#4 Else in empty for loop with break')
for num in ():
break
else:
print('else')
print() |
#
# PySNMP MIB module APPIAN-BUFFERS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-BUFFERS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:23:39 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)
#
acOsap, AcAdminStatus, AcNodeId = mibBuilder.importSymbols("APPIAN-SMI-MIB", "acOsap", "AcAdminStatus", "AcNodeId")
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Gauge32, Integer32, NotificationType, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, ModuleIdentity, iso, MibIdentifier, Counter64, Counter32, Bits, TimeTicks, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Integer32", "NotificationType", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "ModuleIdentity", "iso", "MibIdentifier", "Counter64", "Counter32", "Bits", "TimeTicks", "IpAddress")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
acBuffers = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 10))
acBuffers.setRevisions(('1900-10-16 11:30',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: acBuffers.setRevisionsDescriptions(('Initial version of MIB.',))
if mibBuilder.loadTexts: acBuffers.setLastUpdated('0010161130Z')
if mibBuilder.loadTexts: acBuffers.setOrganization('Appian Communications, Inc.')
if mibBuilder.loadTexts: acBuffers.setContactInfo('Douglas Theriault')
if mibBuilder.loadTexts: acBuffers.setDescription('Appian Communications OSAP buffers MIB contains the definitions for buffer management related configuration objects.')
acSwitchBuffStatsTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1), )
if mibBuilder.loadTexts: acSwitchBuffStatsTable.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTable.setDescription('This table contains switch buffer statistics. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets.')
acSwitchBuffStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1), ).setIndexNames((0, "APPIAN-BUFFERS-MIB", "acSwitchBuffStatsNodeId"))
if mibBuilder.loadTexts: acSwitchBuffStatsEntry.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsEntry.setDescription('A row within the switch buffer statistics table.')
acSwitchBuffStatsNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSwitchBuffStatsNodeId.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
acSwitchBuffStatsBuffSize = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsBuffSize.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsBuffSize.setDescription('The size of a switch buffer in bytes (octets).')
acSwitchBuffStatsTotalBuffs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsTotalBuffs.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTotalBuffs.setDescription('The total number of physical switch buffers available for general use.')
acSwitchBuffStatsTotalBuffCredits = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsTotalBuffCredits.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTotalBuffCredits.setDescription('The total number of buffer credits available for general use. The number of buffer credits is a function of acSwitchBuffStatsBuffSize, acSwitchBuffStatsTotalBuffs, and acSwitchBuffCfgOversubRate.')
acSwitchBuffStatsTotalLocalServices = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsTotalLocalServices.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTotalLocalServices.setDescription('The total number of local services configured on this system.')
acSwitchBuffStatsTotalRemoteServices = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsTotalRemoteServices.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTotalRemoteServices.setDescription('The total number of remote services configured on this system.')
acSwitchBuffStatsTotalRemPoolMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffStatsTotalRemPoolMisses.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffStatsTotalRemPoolMisses.setDescription('The total number of remote services that are in the acSwitchBuffCfgRemoteServicesBP buffer pool because the buffer pool associated with that remote service does not exist or is disabled.')
acSwitchBuffCfgTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2), )
if mibBuilder.loadTexts: acSwitchBuffCfgTable.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgTable.setDescription('This table contains switch buffer configuration parameters. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets.')
acSwitchBuffCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1), ).setIndexNames((0, "APPIAN-BUFFERS-MIB", "acSwitchBuffCfgNodeId"))
if mibBuilder.loadTexts: acSwitchBuffCfgEntry.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgEntry.setDescription('A row within the switch buffer configuration table.')
acSwitchBuffCfgNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSwitchBuffCfgNodeId.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
acSwitchBuffCfgOversubRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 2), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgOversubRate.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgOversubRate.setDescription('A percentage indicating how much the system should oversubscribe buffers to queues. By oversubscribing buffers to queues, a statistical gain can be achieved with respect to system throughput. For example, to oversubscribe buffer utilization by 50%, set acSwitchBuffCfgOversubRate to 50. This means that if some queues encounter bursty traffic, they will be less likely to drop data. Using oversubscription involves risking that all traffic flows do not burst at the same time. If this were to happen, some high priority traffic could be dropped in favor of lower priority traffic. Since this may be undesirable, the default value for this object is 0 (indicating a zero percent oversubscription rate). A setting of 0 implies the total number of buffer credits in the system equals the total number of physical buffers.')
acSwitchBuffCfgMinDefaultBPSize = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgMinDefaultBPSize.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgMinDefaultBPSize.setDescription('A percentage indicating how much of the total system buffer credits should be reserved for the default buffer pool. Since user defined buffer pools take buffers from the default buffer pool, setting acSwitchBuffCfgMinDefaultBPSize to a value greater that 0 ensures that the default buffer pool will never have 0 buffer credits. For example, setting acSwitchBuffCfgMinDefaultBPSize to 37 will reserve 37% of the total system buffer credits (acSwitchBuffStatsTotalBuffCredits) for the default buffer pool.')
acSwitchBuffCfgRemoteServicesBP = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 131072)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgRemoteServicesBP.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgRemoteServicesBP.setDescription('A buffer pool associated with remote services. All remote services on this system will share this buffer pool if the buffer pool associated with the remote service does not exist or is diabled. The default buffer pool (buffer pool #1) is the default setting for this attribute.')
acSwitchBuffCfgUpBuffCapWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(5)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgUpBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgUpBuffCapWeight.setDescription('The system level buffering capacity weight for upstream traffic. Upstream traffic is defined as traffic that enters the system on an access port and exits the system on a trunk. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
acSwitchBuffCfgDownBuffCapWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgDownBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgDownBuffCapWeight.setDescription('The system level buffering capacity weight for downstream traffic. Downstream traffic is defined as traffic that enters the system on a trunk and exits the system on an access port. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
acSwitchBuffCfgLocalBuffCapWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(2)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgLocalBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgLocalBuffCapWeight.setDescription('The system level buffering capacity weight for local traffic. Local traffic is defined as traffic that enters the system on an access port and exits the system on an access port. Local traffic only exists on systems which have multiple ports configured on the same transparent LAN service. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
acSwitchBuffCfgRemoteBuffCapWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(2)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffCfgRemoteBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffCfgRemoteBuffCapWeight.setDescription('The system level buffering capacity weight for remote services traffic. Remote services traffic enters the system on a trunk and exits the system on a trunk. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
acSwitchBuffPoolTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3), )
if mibBuilder.loadTexts: acSwitchBuffPoolTable.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolTable.setDescription('This table contains switch logical buffer pool configuration parameters. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets. Logical switch buffer pools can be assigned/associated with OSAP services.')
acSwitchBuffPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1), ).setIndexNames((0, "APPIAN-BUFFERS-MIB", "acSwitchBuffPoolNodeId"), (0, "APPIAN-BUFFERS-MIB", "acSwitchBuffPoolID"))
if mibBuilder.loadTexts: acSwitchBuffPoolEntry.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolEntry.setDescription('A row within the switch logical buffer pool table.')
acSwitchBuffPoolNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSwitchBuffPoolNodeId.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
acSwitchBuffPoolID = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 131072))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: acSwitchBuffPoolID.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolID.setDescription('The buffer pool identifier. Also known as the buffer pool number. Buffer pool number 1 is reserved as the default buffer pool (which always exists and cannot be deleted or disabled).')
acSwitchBuffPoolAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 3), AcAdminStatus().clone('activate')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffPoolAdminStatus.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information. Note that the default buffer pool cannot be deleted or disabled.')
acSwitchBuffPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffPoolName.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolName.setDescription('A user defined string. This allows users to assign a descriptive name to a buffer pool.')
acSwitchBuffPoolCfgBuffCredits = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffPoolCfgBuffCredits.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolCfgBuffCredits.setDescription('Allocate the specified percentage of the total switch buffer credits to this buffer pool. Note that if the request cannot be met, the system will allocate as high a percentage as possible and report that value in acSwitchBuffPoolActualBuffCredits.')
acSwitchBuffPoolActualBuffCredits = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffPoolActualBuffCredits.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolActualBuffCredits.setDescription('The actual percentage of the total switch buffer credits allocated to this buffer pool.')
acSwitchBuffPoolTotalLocalServices = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffPoolTotalLocalServices.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolTotalLocalServices.setDescription('The number of local services associated with this buffer pool.')
acSwitchBuffPoolTotalRemoteServices = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: acSwitchBuffPoolTotalRemoteServices.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolTotalRemoteServices.setDescription('The number of remote services associated with this buffer pool.')
acSwitchBuffPoolResellerId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 9), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffPoolResellerId.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolResellerId.setDescription('A unique number assigned by the EMS that uniquely identifies the reseller which supplies this buffer pool.')
acSwitchBuffPoolResellerName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: acSwitchBuffPoolResellerName.setStatus('current')
if mibBuilder.loadTexts: acSwitchBuffPoolResellerName.setDescription('An ASCII string which represents the reseller in a readable form. The string can be up to 64 characters in length.')
mibBuilder.exportSymbols("APPIAN-BUFFERS-MIB", acSwitchBuffPoolCfgBuffCredits=acSwitchBuffPoolCfgBuffCredits, acSwitchBuffStatsTotalLocalServices=acSwitchBuffStatsTotalLocalServices, acSwitchBuffCfgEntry=acSwitchBuffCfgEntry, acBuffers=acBuffers, acSwitchBuffCfgMinDefaultBPSize=acSwitchBuffCfgMinDefaultBPSize, acSwitchBuffPoolAdminStatus=acSwitchBuffPoolAdminStatus, acSwitchBuffStatsNodeId=acSwitchBuffStatsNodeId, acSwitchBuffStatsTable=acSwitchBuffStatsTable, acSwitchBuffPoolResellerId=acSwitchBuffPoolResellerId, PYSNMP_MODULE_ID=acBuffers, acSwitchBuffCfgTable=acSwitchBuffCfgTable, acSwitchBuffPoolEntry=acSwitchBuffPoolEntry, acSwitchBuffCfgUpBuffCapWeight=acSwitchBuffCfgUpBuffCapWeight, acSwitchBuffCfgNodeId=acSwitchBuffCfgNodeId, acSwitchBuffPoolID=acSwitchBuffPoolID, acSwitchBuffStatsEntry=acSwitchBuffStatsEntry, acSwitchBuffPoolNodeId=acSwitchBuffPoolNodeId, acSwitchBuffPoolTotalRemoteServices=acSwitchBuffPoolTotalRemoteServices, acSwitchBuffCfgOversubRate=acSwitchBuffCfgOversubRate, acSwitchBuffCfgRemoteBuffCapWeight=acSwitchBuffCfgRemoteBuffCapWeight, acSwitchBuffCfgLocalBuffCapWeight=acSwitchBuffCfgLocalBuffCapWeight, acSwitchBuffPoolResellerName=acSwitchBuffPoolResellerName, acSwitchBuffStatsTotalRemPoolMisses=acSwitchBuffStatsTotalRemPoolMisses, acSwitchBuffStatsTotalBuffs=acSwitchBuffStatsTotalBuffs, acSwitchBuffPoolTable=acSwitchBuffPoolTable, acSwitchBuffStatsTotalRemoteServices=acSwitchBuffStatsTotalRemoteServices, acSwitchBuffPoolActualBuffCredits=acSwitchBuffPoolActualBuffCredits, acSwitchBuffPoolTotalLocalServices=acSwitchBuffPoolTotalLocalServices, acSwitchBuffCfgDownBuffCapWeight=acSwitchBuffCfgDownBuffCapWeight, acSwitchBuffStatsTotalBuffCredits=acSwitchBuffStatsTotalBuffCredits, acSwitchBuffPoolName=acSwitchBuffPoolName, acSwitchBuffStatsBuffSize=acSwitchBuffStatsBuffSize, acSwitchBuffCfgRemoteServicesBP=acSwitchBuffCfgRemoteServicesBP)
| (ac_osap, ac_admin_status, ac_node_id) = mibBuilder.importSymbols('APPIAN-SMI-MIB', 'acOsap', 'AcAdminStatus', 'AcNodeId')
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, value_size_constraint, constraints_union, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(gauge32, integer32, notification_type, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, module_identity, iso, mib_identifier, counter64, counter32, bits, time_ticks, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Integer32', 'NotificationType', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'ModuleIdentity', 'iso', 'MibIdentifier', 'Counter64', 'Counter32', 'Bits', 'TimeTicks', 'IpAddress')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
ac_buffers = module_identity((1, 3, 6, 1, 4, 1, 2785, 2, 10))
acBuffers.setRevisions(('1900-10-16 11:30',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
acBuffers.setRevisionsDescriptions(('Initial version of MIB.',))
if mibBuilder.loadTexts:
acBuffers.setLastUpdated('0010161130Z')
if mibBuilder.loadTexts:
acBuffers.setOrganization('Appian Communications, Inc.')
if mibBuilder.loadTexts:
acBuffers.setContactInfo('Douglas Theriault')
if mibBuilder.loadTexts:
acBuffers.setDescription('Appian Communications OSAP buffers MIB contains the definitions for buffer management related configuration objects.')
ac_switch_buff_stats_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1))
if mibBuilder.loadTexts:
acSwitchBuffStatsTable.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTable.setDescription('This table contains switch buffer statistics. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets.')
ac_switch_buff_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1)).setIndexNames((0, 'APPIAN-BUFFERS-MIB', 'acSwitchBuffStatsNodeId'))
if mibBuilder.loadTexts:
acSwitchBuffStatsEntry.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsEntry.setDescription('A row within the switch buffer statistics table.')
ac_switch_buff_stats_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
acSwitchBuffStatsNodeId.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
ac_switch_buff_stats_buff_size = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsBuffSize.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsBuffSize.setDescription('The size of a switch buffer in bytes (octets).')
ac_switch_buff_stats_total_buffs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalBuffs.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalBuffs.setDescription('The total number of physical switch buffers available for general use.')
ac_switch_buff_stats_total_buff_credits = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalBuffCredits.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalBuffCredits.setDescription('The total number of buffer credits available for general use. The number of buffer credits is a function of acSwitchBuffStatsBuffSize, acSwitchBuffStatsTotalBuffs, and acSwitchBuffCfgOversubRate.')
ac_switch_buff_stats_total_local_services = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalLocalServices.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalLocalServices.setDescription('The total number of local services configured on this system.')
ac_switch_buff_stats_total_remote_services = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalRemoteServices.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalRemoteServices.setDescription('The total number of remote services configured on this system.')
ac_switch_buff_stats_total_rem_pool_misses = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 1, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalRemPoolMisses.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffStatsTotalRemPoolMisses.setDescription('The total number of remote services that are in the acSwitchBuffCfgRemoteServicesBP buffer pool because the buffer pool associated with that remote service does not exist or is disabled.')
ac_switch_buff_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2))
if mibBuilder.loadTexts:
acSwitchBuffCfgTable.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgTable.setDescription('This table contains switch buffer configuration parameters. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets.')
ac_switch_buff_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1)).setIndexNames((0, 'APPIAN-BUFFERS-MIB', 'acSwitchBuffCfgNodeId'))
if mibBuilder.loadTexts:
acSwitchBuffCfgEntry.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgEntry.setDescription('A row within the switch buffer configuration table.')
ac_switch_buff_cfg_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
acSwitchBuffCfgNodeId.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
ac_switch_buff_cfg_oversub_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 2), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgOversubRate.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgOversubRate.setDescription('A percentage indicating how much the system should oversubscribe buffers to queues. By oversubscribing buffers to queues, a statistical gain can be achieved with respect to system throughput. For example, to oversubscribe buffer utilization by 50%, set acSwitchBuffCfgOversubRate to 50. This means that if some queues encounter bursty traffic, they will be less likely to drop data. Using oversubscription involves risking that all traffic flows do not burst at the same time. If this were to happen, some high priority traffic could be dropped in favor of lower priority traffic. Since this may be undesirable, the default value for this object is 0 (indicating a zero percent oversubscription rate). A setting of 0 implies the total number of buffer credits in the system equals the total number of physical buffers.')
ac_switch_buff_cfg_min_default_bp_size = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgMinDefaultBPSize.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgMinDefaultBPSize.setDescription('A percentage indicating how much of the total system buffer credits should be reserved for the default buffer pool. Since user defined buffer pools take buffers from the default buffer pool, setting acSwitchBuffCfgMinDefaultBPSize to a value greater that 0 ensures that the default buffer pool will never have 0 buffer credits. For example, setting acSwitchBuffCfgMinDefaultBPSize to 37 will reserve 37% of the total system buffer credits (acSwitchBuffStatsTotalBuffCredits) for the default buffer pool.')
ac_switch_buff_cfg_remote_services_bp = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 131072)).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgRemoteServicesBP.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgRemoteServicesBP.setDescription('A buffer pool associated with remote services. All remote services on this system will share this buffer pool if the buffer pool associated with the remote service does not exist or is diabled. The default buffer pool (buffer pool #1) is the default setting for this attribute.')
ac_switch_buff_cfg_up_buff_cap_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(5)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgUpBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgUpBuffCapWeight.setDescription('The system level buffering capacity weight for upstream traffic. Upstream traffic is defined as traffic that enters the system on an access port and exits the system on a trunk. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
ac_switch_buff_cfg_down_buff_cap_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgDownBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgDownBuffCapWeight.setDescription('The system level buffering capacity weight for downstream traffic. Downstream traffic is defined as traffic that enters the system on a trunk and exits the system on an access port. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
ac_switch_buff_cfg_local_buff_cap_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(2)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgLocalBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgLocalBuffCapWeight.setDescription('The system level buffering capacity weight for local traffic. Local traffic is defined as traffic that enters the system on an access port and exits the system on an access port. Local traffic only exists on systems which have multiple ports configured on the same transparent LAN service. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
ac_switch_buff_cfg_remote_buff_cap_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 2, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(2)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffCfgRemoteBuffCapWeight.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffCfgRemoteBuffCapWeight.setDescription('The system level buffering capacity weight for remote services traffic. Remote services traffic enters the system on a trunk and exits the system on a trunk. A value of 1 provides the least amount of buffering capacity while a value of 10 provides the most buffering capacity. This value is relative in that the number of buffers actually assigned to hardware queues depends on how many services are configured on any given buffer pool.')
ac_switch_buff_pool_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3))
if mibBuilder.loadTexts:
acSwitchBuffPoolTable.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolTable.setDescription('This table contains switch logical buffer pool configuration parameters. Switch buffers are used by the switch forwarding logic on the services card to enqueue packets. Logical switch buffer pools can be assigned/associated with OSAP services.')
ac_switch_buff_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1)).setIndexNames((0, 'APPIAN-BUFFERS-MIB', 'acSwitchBuffPoolNodeId'), (0, 'APPIAN-BUFFERS-MIB', 'acSwitchBuffPoolID'))
if mibBuilder.loadTexts:
acSwitchBuffPoolEntry.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolEntry.setDescription('A row within the switch logical buffer pool table.')
ac_switch_buff_pool_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
acSwitchBuffPoolNodeId.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolNodeId.setDescription("The unique node identification number representing a chassis within a ring of OSAP's.")
ac_switch_buff_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 131072))).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
acSwitchBuffPoolID.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolID.setDescription('The buffer pool identifier. Also known as the buffer pool number. Buffer pool number 1 is reserved as the default buffer pool (which always exists and cannot be deleted or disabled).')
ac_switch_buff_pool_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 3), ac_admin_status().clone('activate')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffPoolAdminStatus.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information. Note that the default buffer pool cannot be deleted or disabled.')
ac_switch_buff_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffPoolName.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolName.setDescription('A user defined string. This allows users to assign a descriptive name to a buffer pool.')
ac_switch_buff_pool_cfg_buff_credits = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffPoolCfgBuffCredits.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolCfgBuffCredits.setDescription('Allocate the specified percentage of the total switch buffer credits to this buffer pool. Note that if the request cannot be met, the system will allocate as high a percentage as possible and report that value in acSwitchBuffPoolActualBuffCredits.')
ac_switch_buff_pool_actual_buff_credits = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffPoolActualBuffCredits.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolActualBuffCredits.setDescription('The actual percentage of the total switch buffer credits allocated to this buffer pool.')
ac_switch_buff_pool_total_local_services = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffPoolTotalLocalServices.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolTotalLocalServices.setDescription('The number of local services associated with this buffer pool.')
ac_switch_buff_pool_total_remote_services = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acSwitchBuffPoolTotalRemoteServices.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolTotalRemoteServices.setDescription('The number of remote services associated with this buffer pool.')
ac_switch_buff_pool_reseller_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 9), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffPoolResellerId.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolResellerId.setDescription('A unique number assigned by the EMS that uniquely identifies the reseller which supplies this buffer pool.')
ac_switch_buff_pool_reseller_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 10, 3, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
acSwitchBuffPoolResellerName.setStatus('current')
if mibBuilder.loadTexts:
acSwitchBuffPoolResellerName.setDescription('An ASCII string which represents the reseller in a readable form. The string can be up to 64 characters in length.')
mibBuilder.exportSymbols('APPIAN-BUFFERS-MIB', acSwitchBuffPoolCfgBuffCredits=acSwitchBuffPoolCfgBuffCredits, acSwitchBuffStatsTotalLocalServices=acSwitchBuffStatsTotalLocalServices, acSwitchBuffCfgEntry=acSwitchBuffCfgEntry, acBuffers=acBuffers, acSwitchBuffCfgMinDefaultBPSize=acSwitchBuffCfgMinDefaultBPSize, acSwitchBuffPoolAdminStatus=acSwitchBuffPoolAdminStatus, acSwitchBuffStatsNodeId=acSwitchBuffStatsNodeId, acSwitchBuffStatsTable=acSwitchBuffStatsTable, acSwitchBuffPoolResellerId=acSwitchBuffPoolResellerId, PYSNMP_MODULE_ID=acBuffers, acSwitchBuffCfgTable=acSwitchBuffCfgTable, acSwitchBuffPoolEntry=acSwitchBuffPoolEntry, acSwitchBuffCfgUpBuffCapWeight=acSwitchBuffCfgUpBuffCapWeight, acSwitchBuffCfgNodeId=acSwitchBuffCfgNodeId, acSwitchBuffPoolID=acSwitchBuffPoolID, acSwitchBuffStatsEntry=acSwitchBuffStatsEntry, acSwitchBuffPoolNodeId=acSwitchBuffPoolNodeId, acSwitchBuffPoolTotalRemoteServices=acSwitchBuffPoolTotalRemoteServices, acSwitchBuffCfgOversubRate=acSwitchBuffCfgOversubRate, acSwitchBuffCfgRemoteBuffCapWeight=acSwitchBuffCfgRemoteBuffCapWeight, acSwitchBuffCfgLocalBuffCapWeight=acSwitchBuffCfgLocalBuffCapWeight, acSwitchBuffPoolResellerName=acSwitchBuffPoolResellerName, acSwitchBuffStatsTotalRemPoolMisses=acSwitchBuffStatsTotalRemPoolMisses, acSwitchBuffStatsTotalBuffs=acSwitchBuffStatsTotalBuffs, acSwitchBuffPoolTable=acSwitchBuffPoolTable, acSwitchBuffStatsTotalRemoteServices=acSwitchBuffStatsTotalRemoteServices, acSwitchBuffPoolActualBuffCredits=acSwitchBuffPoolActualBuffCredits, acSwitchBuffPoolTotalLocalServices=acSwitchBuffPoolTotalLocalServices, acSwitchBuffCfgDownBuffCapWeight=acSwitchBuffCfgDownBuffCapWeight, acSwitchBuffStatsTotalBuffCredits=acSwitchBuffStatsTotalBuffCredits, acSwitchBuffPoolName=acSwitchBuffPoolName, acSwitchBuffStatsBuffSize=acSwitchBuffStatsBuffSize, acSwitchBuffCfgRemoteServicesBP=acSwitchBuffCfgRemoteServicesBP) |
VALUE = int(input())
recipes = [3, 7]
elf_recipe_idx = [0, 1]
while VALUE + 10 > len(recipes):
new_recipe = sum(map(lambda x: recipes[x], elf_recipe_idx))
recipes.extend((divmod(new_recipe, 10) if new_recipe >= 10 else (new_recipe,)))
elf_recipe_idx = [(x + 1 + recipes[x]) % len(recipes) for x in elf_recipe_idx]
print(''.join([str(digit) for digit in recipes[VALUE:VALUE+10]])) | value = int(input())
recipes = [3, 7]
elf_recipe_idx = [0, 1]
while VALUE + 10 > len(recipes):
new_recipe = sum(map(lambda x: recipes[x], elf_recipe_idx))
recipes.extend(divmod(new_recipe, 10) if new_recipe >= 10 else (new_recipe,))
elf_recipe_idx = [(x + 1 + recipes[x]) % len(recipes) for x in elf_recipe_idx]
print(''.join([str(digit) for digit in recipes[VALUE:VALUE + 10]])) |
class PubSpec:
def __init__(self, distribution, prefix="."):
if '/' in distribution:
pref, sep, dist = distribution.rpartition('/')
if len(pref) == 0 or len(dist) == 0:
raise ValueError("refspec invalid")
self._prefix = pref
self._distribution = dist
else:
self._prefix = prefix
self._distribution = distribution
@property
def prefix(self):
return self._prefix
@property
def distribution(self):
return self._distribution
def __repr__(self):
return self.prefix + "/" + self.distribution
def __str__(self):
return self.__repr__()
| class Pubspec:
def __init__(self, distribution, prefix='.'):
if '/' in distribution:
(pref, sep, dist) = distribution.rpartition('/')
if len(pref) == 0 or len(dist) == 0:
raise value_error('refspec invalid')
self._prefix = pref
self._distribution = dist
else:
self._prefix = prefix
self._distribution = distribution
@property
def prefix(self):
return self._prefix
@property
def distribution(self):
return self._distribution
def __repr__(self):
return self.prefix + '/' + self.distribution
def __str__(self):
return self.__repr__() |
#!/usr/bin/python
# QuickSort
items = [8, 3, 1, 7, 0, 10, 2]
pivot_index = len(items) -1
pivot_value = items[pivot_index]
left_index = 0
while (pivot_index != left_index):
item = items[left_index]
# item = items[0]
# pivot_value = 10
if item <= pivot_value:
left_index = left_index + 1
continue
# Place the item before the pivot at the left_index
# left index becomes 0
items[left_index] = items[pivot_index -1]
# Shift Pivot one to the left
items[pivot_index -1] = pivot_value
# place item at pivots previous location
items[pivot_index] = item
# update pivot index
pivot_index = pivot_index -1
# We want our function to become recursive
# we want to take the value from our first iteration and act on it
# to do this, we need to communicate the final pivot_index value
# we take this value , and start to mark off segments of the list
# and have our function operate on less than the entire list.items
# so lets change the function to accept the indeices it should stay within, and return the pivot_index
def sort_a_little_bit(items, begin_index, end_index):
left_index = begin_index
pivot_index = end_index
pivot_value = items[pivot_index]
while (pivot_index != left_index):
item = items[left_index]
if item <= pivot_value:
left_index += 1
continue
items[left_index] = items[pivot_index - 1]
items[pivot_index - 1] = pivot_value
items[pivot_index] = item
pivot_index -= 1
return pivot_index
# Now we will make this recursive.
# we need to know a way to confirm we are done.
# we wil use the indices to see if they demark a list of more than one item.
# if the demarked sublist is 0 or 1 item, we know its already sorted.
def sort_all(items, begin_index, end_index):
if end_index <= begin_index:
return
pivot_index = sort_a_little_bit(items, begin_index, end_index)
sort_all(items, begin_index, pivot_index - 1)
sort_all(items, pivot_index + 1, end_index)
def quicksort(items):
sort_all(items, 0, len(items) - 1)
items = [8, 3, 1, 7, 0, 10, 2]
print ("List Of Items Before QuickSorting: ")
print (items)
print ("********************************")
print ("List Of Items After QuickSorting: ")
quicksort(items)
print(items)
| items = [8, 3, 1, 7, 0, 10, 2]
pivot_index = len(items) - 1
pivot_value = items[pivot_index]
left_index = 0
while pivot_index != left_index:
item = items[left_index]
if item <= pivot_value:
left_index = left_index + 1
continue
items[left_index] = items[pivot_index - 1]
items[pivot_index - 1] = pivot_value
items[pivot_index] = item
pivot_index = pivot_index - 1
def sort_a_little_bit(items, begin_index, end_index):
left_index = begin_index
pivot_index = end_index
pivot_value = items[pivot_index]
while pivot_index != left_index:
item = items[left_index]
if item <= pivot_value:
left_index += 1
continue
items[left_index] = items[pivot_index - 1]
items[pivot_index - 1] = pivot_value
items[pivot_index] = item
pivot_index -= 1
return pivot_index
def sort_all(items, begin_index, end_index):
if end_index <= begin_index:
return
pivot_index = sort_a_little_bit(items, begin_index, end_index)
sort_all(items, begin_index, pivot_index - 1)
sort_all(items, pivot_index + 1, end_index)
def quicksort(items):
sort_all(items, 0, len(items) - 1)
items = [8, 3, 1, 7, 0, 10, 2]
print('List Of Items Before QuickSorting: ')
print(items)
print('********************************')
print('List Of Items After QuickSorting: ')
quicksort(items)
print(items) |
class Solution:
def isLongPressedName(self, name: str, typed: str) -> bool:
cur = tar = 0
pre = name[0]
while cur < len(name):
if tar >= len(typed):
return False
if name[cur] == typed[tar]:
pre = name[cur]
cur += 1
tar += 1
else:
if typed[tar] == pre:
tar += 1
continue
else:
return False
return True
| class Solution:
def is_long_pressed_name(self, name: str, typed: str) -> bool:
cur = tar = 0
pre = name[0]
while cur < len(name):
if tar >= len(typed):
return False
if name[cur] == typed[tar]:
pre = name[cur]
cur += 1
tar += 1
elif typed[tar] == pre:
tar += 1
continue
else:
return False
return True |
def countdown():
i = 5
while i > 0:
yield i
i -= 1
for i in countdown():
print(i)
def numbers(x):
for i in range(x):
if i % 2 == 0:
yield i
num = int(input("Digite um numero: "))
print(list(numbers(num)))
| def countdown():
i = 5
while i > 0:
yield i
i -= 1
for i in countdown():
print(i)
def numbers(x):
for i in range(x):
if i % 2 == 0:
yield i
num = int(input('Digite um numero: '))
print(list(numbers(num))) |
targets = [int(s) for s in input().split()]
command = input()
shot_targets = 0
while command != 'End':
target = int(command)
if target in range(len(targets)):
for i in range(len(targets)):
if targets[i] != -1 and i != target and targets[i] > targets[target]:
targets[i] -= targets[target]
elif targets[i] != -1 and i != target and targets[i] <= targets[target]:
targets[i] += targets[target]
targets[target] = -1
shot_targets += 1
command = input()
print(f'Shot targets: {shot_targets} -> ', end = '')
print(*targets, sep = ' ') | targets = [int(s) for s in input().split()]
command = input()
shot_targets = 0
while command != 'End':
target = int(command)
if target in range(len(targets)):
for i in range(len(targets)):
if targets[i] != -1 and i != target and (targets[i] > targets[target]):
targets[i] -= targets[target]
elif targets[i] != -1 and i != target and (targets[i] <= targets[target]):
targets[i] += targets[target]
targets[target] = -1
shot_targets += 1
command = input()
print(f'Shot targets: {shot_targets} -> ', end='')
print(*targets, sep=' ') |
class Hamilton(object):
pass
| class Hamilton(object):
pass |
class Encapsulation:
def set_public(self):
print("I am visible to the entire project.")
def _set_protected(self): # _ inainte de metoda indica faptul ca e protected
print("I am visible by child")
def __set_private(self):
print("I am not visible outside the class")
def get(self):
self.__set_private()
class Child(Encapsulation):
def test(self):
self.set_public()
self._set_protected()
y = Child()
y.test()
x = Encapsulation()
x._set_protected()
# x.__set_private()
x.set_public()
x.get()
| class Encapsulation:
def set_public(self):
print('I am visible to the entire project.')
def _set_protected(self):
print('I am visible by child')
def __set_private(self):
print('I am not visible outside the class')
def get(self):
self.__set_private()
class Child(Encapsulation):
def test(self):
self.set_public()
self._set_protected()
y = child()
y.test()
x = encapsulation()
x._set_protected()
x.set_public()
x.get() |
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def array_product_except_self(self, nums: [int]) -> [int]:
output = [1]*len(nums)
cumulative = 1
for i in range(1, len(nums)):
cumulative = cumulative * nums[i-1]
output[i] = cumulative
cumulative = 1
for i in range(len(nums) - 2, -1, -1):
cumulative = cumulative * nums[i+1]
output[i] = cumulative * output[i]
return output
| class Listnode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def array_product_except_self(self, nums: [int]) -> [int]:
output = [1] * len(nums)
cumulative = 1
for i in range(1, len(nums)):
cumulative = cumulative * nums[i - 1]
output[i] = cumulative
cumulative = 1
for i in range(len(nums) - 2, -1, -1):
cumulative = cumulative * nums[i + 1]
output[i] = cumulative * output[i]
return output |
#
# PySNMP MIB module ALC-OPT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALC-OPT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:01:11 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")
ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, Integer32, ObjectIdentity, NotificationType, IpAddress, MibIdentifier, Unsigned32, TimeTicks, enterprises, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Gauge32, ModuleIdentity, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Integer32", "ObjectIdentity", "NotificationType", "IpAddress", "MibIdentifier", "Unsigned32", "TimeTicks", "enterprises", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Gauge32", "ModuleIdentity", "Bits")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
codex = MibIdentifier((1, 3, 6, 1, 4, 1, 449))
cdxProductSpecific = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2))
cdx6500 = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1))
cdx6500Configuration = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2))
cdx6500CfgProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1))
cdx6500PCTPortProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1))
cdx6500Statistics = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3))
cdx6500StatProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1))
cdx6500PSTPortProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1))
cdx6500Controls = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4))
class DisplayString(OctetString):
pass
cdx6500PPCTALCCfgTable = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27))
cdx6500PPCTALCPortTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1), )
if mibBuilder.loadTexts: cdx6500PPCTALCPortTable.setStatus('mandatory')
cdx6500PPCTALCPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcPCfgPortNumber"))
if mibBuilder.loadTexts: cdx6500PPCTALCPortEntry.setStatus('mandatory')
alcPCfgPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgPortNumber.setStatus('mandatory')
alcPCfgPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(31))).clone(namedValues=NamedValues(("alc", 31)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgPortType.setStatus('mandatory')
alcPCfgSubtype = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("alcHpad", 1), ("alcTpad", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgSubtype.setStatus('mandatory')
alcPCfgPortControl = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4, 5, 13, 15))).clone(namedValues=NamedValues(("simp", 1), ("emri", 4), ("emdc", 5), ("dtr", 13), ("alcDte", 15)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgPortControl.setStatus('mandatory')
alcPCfgClockSource = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("int", 1), ("ext", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgClockSource.setStatus('mandatory')
alcPCfgClockSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("clkspd1200", 1), ("clkspd2400", 2), ("clkspd4800", 3), ("clkspd9600", 4), ("clkspd19200", 5), ("clkspd38400", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgClockSpeed.setStatus('mandatory')
alcPCfgPollDelayTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 100000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgPollDelayTimer.setStatus('mandatory')
alcPCfgHostTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 10000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgHostTimeout.setStatus('mandatory')
alcPCfgMaxMesgSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 10000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgMaxMesgSize.setStatus('mandatory')
alcPCfgMinIntrvlBetweenPolls = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgMinIntrvlBetweenPolls.setStatus('mandatory')
alcPCfgRtsCtsTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 10000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgRtsCtsTimeout.setStatus('mandatory')
alcPCfgLeadPadChar = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 12), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgLeadPadChar.setStatus('mandatory')
alcPCfgNumLeadPadChars = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgNumLeadPadChars.setStatus('mandatory')
alcPCfgTrailPadChar = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 14), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgTrailPadChar.setStatus('mandatory')
alcPCfgNumTrailPadChars = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgNumTrailPadChars.setStatus('mandatory')
alcPCfgALCLineOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 71))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgALCLineOptions.setStatus('mandatory')
alcPCfgConnType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("x25", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgConnType.setStatus('mandatory')
alcPCfgAcallMnemonic = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgAcallMnemonic.setStatus('mandatory')
alcPCfgCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgCallingAddress.setStatus('mandatory')
alcPCfgCUD = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 47))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgCUD.setStatus('mandatory')
alcPCfgNumOfBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgNumOfBuffers.setStatus('mandatory')
alcPCfgInHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 22), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgInHeader.setStatus('mandatory')
alcPCfgOutHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgOutHeader.setStatus('mandatory')
alcPCfgReconnectTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgReconnectTimeout.setStatus('mandatory')
alcPCfgInactivityTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgInactivityTimeout.setStatus('mandatory')
alcPCfgDebounceTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgDebounceTimeout.setStatus('mandatory')
alcPCfgParity = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgParity.setStatus('mandatory')
alcPCfgConnOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 28), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgConnOptions.setStatus('mandatory')
alcPCfgAvailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgAvailableMesg.setStatus('mandatory')
alcPCfgUnavailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPCfgUnavailableMesg.setStatus('mandatory')
cdx6500PPCTALCInterchangeTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2), )
if mibBuilder.loadTexts: cdx6500PPCTALCInterchangeTable.setStatus('mandatory')
cdx6500PPCTALCInterchangeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcICfgPortNumber"), (0, "ALC-OPT-MIB", "alcICfgInterchangeAddress"))
if mibBuilder.loadTexts: cdx6500PPCTALCInterchangeEntry.setStatus('mandatory')
alcICfgPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgPortNumber.setStatus('mandatory')
alcICfgInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgInterchangeAddress.setStatus('mandatory')
alcICfgOptionOnInvalidCCC = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5))).clone(namedValues=NamedValues(("discard", 2), ("resend", 3), ("reenter", 4), ("ignore", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgOptionOnInvalidCCC.setStatus('mandatory')
alcICfgGenTerminalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgGenTerminalAddress.setStatus('mandatory')
alcICfgHostTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(50, 100000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgHostTimeout.setStatus('mandatory')
alcICfgMaxComponentsPerFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgMaxComponentsPerFrame.setStatus('mandatory')
alcICfgFastPollCycleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgFastPollCycleCount.setStatus('mandatory')
alcICfgSlowPollCycleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgSlowPollCycleCount.setStatus('mandatory')
alcICfgN1Counter = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgN1Counter.setStatus('mandatory')
alcICfgN2Counter = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgN2Counter.setStatus('mandatory')
alcICfgT1Timeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 100000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgT1Timeout.setStatus('mandatory')
alcICfgT2Timeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 100000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgT2Timeout.setStatus('mandatory')
alcICfgReenterMessage = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgReenterMessage.setStatus('mandatory')
alcICfgStartMessage = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgStartMessage.setStatus('mandatory')
alcICfgStopMessage = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgStopMessage.setStatus('mandatory')
alcICfgOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 21))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgOptions.setStatus('mandatory')
alcICfgValidTAList = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 17), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgValidTAList.setStatus('mandatory')
alcICfgConnType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("x25", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgConnType.setStatus('mandatory')
alcICfgAcallMnemonic = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgAcallMnemonic.setStatus('mandatory')
alcICfgCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgCallingAddress.setStatus('mandatory')
alcICfgCUD = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 47))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgCUD.setStatus('mandatory')
alcICfgNumOfBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgNumOfBuffers.setStatus('mandatory')
alcICfgInHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgInHeader.setStatus('mandatory')
alcICfgOutHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgOutHeader.setStatus('mandatory')
alcICfgReconnectTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgReconnectTimeout.setStatus('mandatory')
alcICfgInactivityTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgInactivityTimeout.setStatus('mandatory')
alcICfgDebounceTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgDebounceTimeout.setStatus('mandatory')
alcICfgParity = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgParity.setStatus('mandatory')
alcICfgConnOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgConnOptions.setStatus('mandatory')
alcICfgAvailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgAvailableMesg.setStatus('mandatory')
alcICfgUnavailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcICfgUnavailableMesg.setStatus('mandatory')
cdx6500PPCTALCTerminalTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3), )
if mibBuilder.loadTexts: cdx6500PPCTALCTerminalTable.setStatus('mandatory')
cdx6500PPCTALCTerminalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcTCfgPortNumber"), (0, "ALC-OPT-MIB", "alcTCfgInterchangeAddress"), (0, "ALC-OPT-MIB", "alcTCfgTerminalAddress"))
if mibBuilder.loadTexts: cdx6500PPCTALCTerminalEntry.setStatus('mandatory')
alcTCfgPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgPortNumber.setStatus('mandatory')
alcTCfgInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgInterchangeAddress.setStatus('mandatory')
alcTCfgTerminalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgTerminalAddress.setStatus('mandatory')
alcTCfgConnType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("x25", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgConnType.setStatus('mandatory')
alcTCfgAcallMnemonic = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgAcallMnemonic.setStatus('mandatory')
alcTCfgCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgCallingAddress.setStatus('mandatory')
alcTCfgCUD = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 47))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgCUD.setStatus('mandatory')
alcTCfgNumOfBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgNumOfBuffers.setStatus('mandatory')
alcTCfgInHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgInHeader.setStatus('mandatory')
alcTCfgOutHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 53))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgOutHeader.setStatus('mandatory')
alcTCfgReconnectTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgReconnectTimeout.setStatus('mandatory')
alcTCfgInactivityTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgInactivityTimeout.setStatus('mandatory')
alcTCfgDebounceTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgDebounceTimeout.setStatus('mandatory')
alcTCfgParity = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 100))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("nc", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgParity.setStatus('mandatory')
alcTCfgConnOptions = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(3, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgConnOptions.setStatus('mandatory')
alcTCfgAvailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgAvailableMesg.setStatus('mandatory')
alcTCfgUnavailableMesg = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTCfgUnavailableMesg.setStatus('mandatory')
cdx6500PPSTALCStatsTable = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28))
cdx6500PPSTALCPortTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1), )
if mibBuilder.loadTexts: cdx6500PPSTALCPortTable.setStatus('mandatory')
cdx6500PPSTALCPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcPStatsPortNumber"))
if mibBuilder.loadTexts: cdx6500PPSTALCPortEntry.setStatus('mandatory')
alcPStatsPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsPortNumber.setStatus('mandatory')
alcPStatsPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(31))).clone(namedValues=NamedValues(("alc", 31)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsPortType.setStatus('mandatory')
alcPStatsPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 7, 8, 9, 11, 100))).clone(namedValues=NamedValues(("offline", 1), ("online", 2), ("timedOut", 7), ("pending", 8), ("connecting", 9), ("flowCtrl", 11), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsPortState.setStatus('mandatory')
alcPStatsFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsFramesIn.setStatus('mandatory')
alcPStatsFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsFramesOut.setStatus('mandatory')
alcPStatsDataMesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsDataMesgsIn.setStatus('mandatory')
alcPStatsDataMesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsDataMesgsOut.setStatus('mandatory')
alcPStatsCharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsCharsIn.setStatus('mandatory')
alcPStatsCharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsCharsOut.setStatus('mandatory')
alcPStatsPolls = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsPolls.setStatus('mandatory')
alcPStatsGAs = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsGAs.setStatus('mandatory')
alcPStatsResets = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsResets.setStatus('mandatory')
alcPStatsDiscardBadIAIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsDiscardBadIAIn.setStatus('mandatory')
alcPStatsDiscardBadIAOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsDiscardBadIAOut.setStatus('mandatory')
alcPStatsMaxQSizeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsMaxQSizeOut.setStatus('mandatory')
alcPStatsCCCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsCCCErrors.setStatus('mandatory')
alcPStatsSignalLosses = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsSignalLosses.setStatus('mandatory')
alcPStatsOverlengthFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsOverlengthFrames.setStatus('mandatory')
alcPStatsPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("busyOut", 3), ("up", 4), ("down", 5), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsPortStatus.setStatus('mandatory')
alcPStatsConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("online", 1), ("offline", 2), ("connecting", 3), ("inactive", 4), ("pending", 5), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsConnState.setStatus('mandatory')
alcPStatsALCMesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCMesgsIn.setStatus('mandatory')
alcPStatsALCMesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCMesgsOut.setStatus('mandatory')
alcPStatsX25MesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25MesgsIn.setStatus('mandatory')
alcPStatsX25MesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25MesgsOut.setStatus('mandatory')
alcPStatsALCCharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCCharsIn.setStatus('mandatory')
alcPStatsALCCharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCCharsOut.setStatus('mandatory')
alcPStatsX25CharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25CharsIn.setStatus('mandatory')
alcPStatsX25CharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25CharsOut.setStatus('mandatory')
alcPStatsALCDiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alcPStatsX25DiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alcPStatsX25DiscardedMesgsBadALCAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alcPStatsX25DiscardedMesgsBadHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alcPStatsX25DiscardedMesgsTooLong = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alcPStatsALCDiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alcPStatsX25DiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alcPStatsCurrTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 36), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsCurrTxALCQSize.setStatus('mandatory')
alcPStatsCurrTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 37), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsCurrTxX25QSize.setStatus('mandatory')
alcPStatsMaxTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 38), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsMaxTxALCQSize.setStatus('mandatory')
alcPStatsMaxTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 39), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcPStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500PPSTALCInterchangeTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2), )
if mibBuilder.loadTexts: cdx6500PPSTALCInterchangeTable.setStatus('mandatory')
cdx6500PPSTALCInterchangeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcIStatsPortNumber"), (0, "ALC-OPT-MIB", "alcIStatsInterchangeAddress"))
if mibBuilder.loadTexts: cdx6500PPSTALCInterchangeEntry.setStatus('mandatory')
alcIStatsPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsPortNumber.setStatus('mandatory')
alcIStatsInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsInterchangeAddress.setStatus('mandatory')
alcIStatsInterchangeState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 6, 7, 8, 10, 11, 100))).clone(namedValues=NamedValues(("offline", 1), ("online", 2), ("fastPoll", 3), ("slowPoll", 4), ("stopped", 6), ("timedOut", 7), ("pending", 8), ("failed", 10), ("flowCtrl", 11), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsInterchangeState.setStatus('mandatory')
alcIStatsFramesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsFramesIn.setStatus('mandatory')
alcIStatsFramesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsFramesOut.setStatus('mandatory')
alcIStatsDataMesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDataMesgsIn.setStatus('mandatory')
alcIStatsDataMesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDataMesgsOut.setStatus('mandatory')
alcIStatsCharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsCharsIn.setStatus('mandatory')
alcIStatsCharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsCharsOut.setStatus('mandatory')
alcIStatsPolls = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsPolls.setStatus('mandatory')
alcIStatsGAs = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsGAs.setStatus('mandatory')
alcIStatsResets = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsResets.setStatus('mandatory')
alcIStatsDiscardBadTAIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDiscardBadTAIn.setStatus('mandatory')
alcIStatsDiscardBadTAOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDiscardBadTAOut.setStatus('mandatory')
alcIStatsDisabledIAIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDisabledIAIn.setStatus('mandatory')
alcIStatsDisabledIAOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsDisabledIAOut.setStatus('mandatory')
alcIStatsMaxQSizeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsMaxQSizeOut.setStatus('mandatory')
alcIStatsCCCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsCCCErrors.setStatus('mandatory')
alcIStatsT1Timeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsT1Timeouts.setStatus('mandatory')
alcIStatsT2Timeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsT2Timeouts.setStatus('mandatory')
alcIStatsConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("online", 1), ("offline", 2), ("connecting", 3), ("inactive", 4), ("pending", 5), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsConnState.setStatus('mandatory')
alcIStatsALCMesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCMesgsIn.setStatus('mandatory')
alcIStatsALCMesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCMesgsOut.setStatus('mandatory')
alcIStatsX25MesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25MesgsIn.setStatus('mandatory')
alcIStatsX25MesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25MesgsOut.setStatus('mandatory')
alcIStatsALCCharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCCharsIn.setStatus('mandatory')
alcIStatsALCCharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCCharsOut.setStatus('mandatory')
alcIStatsX25CharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25CharsIn.setStatus('mandatory')
alcIStatsX25CharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25CharsOut.setStatus('mandatory')
alcIStatsALCDiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alcIStatsX25DiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alcIStatsX25DiscardedMesgsBadALCAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alcIStatsX25DiscardedMesgsBadHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alcIStatsX25DiscardedMesgsTooLong = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alcIStatsALCDiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alcIStatsX25DiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alcIStatsCurrTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 37), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsCurrTxALCQSize.setStatus('mandatory')
alcIStatsCurrTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 38), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsCurrTxX25QSize.setStatus('mandatory')
alcIStatsMaxTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 39), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsMaxTxALCQSize.setStatus('mandatory')
alcIStatsMaxTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 40), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcIStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500PPSTALCTerminalTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3), )
if mibBuilder.loadTexts: cdx6500PPSTALCTerminalTable.setStatus('mandatory')
cdx6500PPSTALCTerminalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcTStatsPortNumber"), (0, "ALC-OPT-MIB", "alcTStatsInterchangeAddress"), (0, "ALC-OPT-MIB", "alcTStatsTerminalAddress"))
if mibBuilder.loadTexts: cdx6500PPSTALCTerminalEntry.setStatus('mandatory')
alcTStatsPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsPortNumber.setStatus('mandatory')
alcTStatsInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsInterchangeAddress.setStatus('mandatory')
alcTStatsTerminalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsTerminalAddress.setStatus('mandatory')
alcTStatsConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 100))).clone(namedValues=NamedValues(("online", 1), ("offline", 2), ("connecting", 3), ("inactive", 4), ("pending", 5), ("na", 100)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsConnState.setStatus('mandatory')
alcTStatsALCMesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCMesgsIn.setStatus('mandatory')
alcTStatsALCMesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCMesgsOut.setStatus('mandatory')
alcTStatsX25MesgsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25MesgsIn.setStatus('mandatory')
alcTStatsX25MesgsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25MesgsOut.setStatus('mandatory')
alcTStatsALCCharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCCharsIn.setStatus('mandatory')
alcTStatsALCCharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCCharsOut.setStatus('mandatory')
alcTStatsX25CharsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25CharsIn.setStatus('mandatory')
alcTStatsX25CharsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25CharsOut.setStatus('mandatory')
alcTStatsALCDiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alcTStatsX25DiscardedMesgsEntityDown = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alcTStatsX25DiscardedMesgsBadALCAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alcTStatsX25DiscardedMesgsBadHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alcTStatsX25DiscardedMesgsTooLong = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alcTStatsALCDiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alcTStatsX25DiscardedMesgsQFull = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alcTStatsCurrTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsCurrTxALCQSize.setStatus('mandatory')
alcTStatsCurrTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsCurrTxX25QSize.setStatus('mandatory')
alcTStatsMaxTxALCQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsMaxTxALCQSize.setStatus('mandatory')
alcTStatsMaxTxX25QSize = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 23), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alcTStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500ContALC = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10))
cdx6500ContALCPortTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1), )
if mibBuilder.loadTexts: cdx6500ContALCPortTable.setStatus('mandatory')
cdx6500ContALCPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcPContPortNumber"))
if mibBuilder.loadTexts: cdx6500ContALCPortEntry.setStatus('mandatory')
alcPContPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54)))
if mibBuilder.loadTexts: alcPContPortNumber.setStatus('mandatory')
alcPContPortBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("boot", 1), ("noBoot", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcPContPortBoot.setStatus('mandatory')
alcPContPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("noEnable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcPContPortEnable.setStatus('mandatory')
alcPContPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("noDisable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcPContPortDisable.setStatus('mandatory')
cdx6500ContALCInterchangeTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2), )
if mibBuilder.loadTexts: cdx6500ContALCInterchangeTable.setStatus('mandatory')
cdx6500ContALCInterchangeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcIContPortNumber"), (0, "ALC-OPT-MIB", "alcIContInterchangeAddress"))
if mibBuilder.loadTexts: cdx6500ContALCInterchangeEntry.setStatus('mandatory')
alcIContPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54)))
if mibBuilder.loadTexts: alcIContPortNumber.setStatus('mandatory')
alcIContInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts: alcIContInterchangeAddress.setStatus('mandatory')
alcIContInterchangeBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("boot", 1), ("noBoot", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcIContInterchangeBoot.setStatus('mandatory')
alcIContInterchangeEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("noEnable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcIContInterchangeEnable.setStatus('mandatory')
alcIContInterchangeDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("noDisable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcIContInterchangeDisable.setStatus('mandatory')
cdx6500ContALCTerminalTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3), )
if mibBuilder.loadTexts: cdx6500ContALCTerminalTable.setStatus('mandatory')
cdx6500ContALCTerminalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1), ).setIndexNames((0, "ALC-OPT-MIB", "alcTContPortNumber"), (0, "ALC-OPT-MIB", "alcTContInterchangeAddress"), (0, "ALC-OPT-MIB", "alcTContTerminalAddress"))
if mibBuilder.loadTexts: cdx6500ContALCTerminalEntry.setStatus('mandatory')
alcTContPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 54)))
if mibBuilder.loadTexts: alcTContPortNumber.setStatus('mandatory')
alcTContInterchangeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts: alcTContInterchangeAddress.setStatus('mandatory')
alcTContTerminalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts: alcTContTerminalAddress.setStatus('mandatory')
alcTContTerminalBoot = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("boot", 1), ("noBoot", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcTContTerminalBoot.setStatus('mandatory')
alcTContTerminalEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("noEnable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcTContTerminalEnable.setStatus('mandatory')
alcTContTerminalDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("noDisable", 2)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: alcTContTerminalDisable.setStatus('mandatory')
mibBuilder.exportSymbols("ALC-OPT-MIB", alcIStatsCCCErrors=alcIStatsCCCErrors, alcPCfgAcallMnemonic=alcPCfgAcallMnemonic, alcPCfgConnOptions=alcPCfgConnOptions, alcICfgCallingAddress=alcICfgCallingAddress, alcTCfgNumOfBuffers=alcTCfgNumOfBuffers, cdx6500ContALCTerminalEntry=cdx6500ContALCTerminalEntry, alcTCfgInHeader=alcTCfgInHeader, alcTStatsX25CharsIn=alcTStatsX25CharsIn, alcPStatsPortType=alcPStatsPortType, cdx6500PPSTALCTerminalTable=cdx6500PPSTALCTerminalTable, alcPCfgTrailPadChar=alcPCfgTrailPadChar, alcICfgParity=alcICfgParity, cdx6500Configuration=cdx6500Configuration, cdx6500PPCTALCInterchangeTable=cdx6500PPCTALCInterchangeTable, alcTCfgUnavailableMesg=alcTCfgUnavailableMesg, alcTContTerminalBoot=alcTContTerminalBoot, alcTStatsX25DiscardedMesgsQFull=alcTStatsX25DiscardedMesgsQFull, alcPCfgALCLineOptions=alcPCfgALCLineOptions, cdx6500ContALCPortEntry=cdx6500ContALCPortEntry, alcICfgConnOptions=alcICfgConnOptions, alcIStatsCharsOut=alcIStatsCharsOut, alcICfgAcallMnemonic=alcICfgAcallMnemonic, alcPStatsOverlengthFrames=alcPStatsOverlengthFrames, alcPCfgAvailableMesg=alcPCfgAvailableMesg, alcPStatsResets=alcPStatsResets, alcTCfgDebounceTimeout=alcTCfgDebounceTimeout, alcICfgDebounceTimeout=alcICfgDebounceTimeout, alcICfgReconnectTimeout=alcICfgReconnectTimeout, alcIStatsMaxQSizeOut=alcIStatsMaxQSizeOut, alcIStatsDataMesgsOut=alcIStatsDataMesgsOut, alcIStatsALCDiscardedMesgsQFull=alcIStatsALCDiscardedMesgsQFull, alcTStatsPortNumber=alcTStatsPortNumber, alcTStatsInterchangeAddress=alcTStatsInterchangeAddress, alcPStatsCharsOut=alcPStatsCharsOut, alcPStatsX25DiscardedMesgsBadHeader=alcPStatsX25DiscardedMesgsBadHeader, alcIStatsDiscardBadTAOut=alcIStatsDiscardBadTAOut, alcIContInterchangeDisable=alcIContInterchangeDisable, alcPStatsALCDiscardedMesgsEntityDown=alcPStatsALCDiscardedMesgsEntityDown, alcICfgOptionOnInvalidCCC=alcICfgOptionOnInvalidCCC, alcPCfgCUD=alcPCfgCUD, alcIStatsFramesOut=alcIStatsFramesOut, alcIStatsX25DiscardedMesgsBadALCAddr=alcIStatsX25DiscardedMesgsBadALCAddr, alcPCfgSubtype=alcPCfgSubtype, alcPContPortEnable=alcPContPortEnable, alcPStatsX25CharsIn=alcPStatsX25CharsIn, alcTCfgConnOptions=alcTCfgConnOptions, alcIStatsX25MesgsOut=alcIStatsX25MesgsOut, alcPContPortNumber=alcPContPortNumber, DisplayString=DisplayString, alcIStatsALCDiscardedMesgsEntityDown=alcIStatsALCDiscardedMesgsEntityDown, alcTCfgReconnectTimeout=alcTCfgReconnectTimeout, alcIStatsInterchangeAddress=alcIStatsInterchangeAddress, alcPStatsDiscardBadIAOut=alcPStatsDiscardBadIAOut, cdx6500StatProtocolGroup=cdx6500StatProtocolGroup, alcPCfgParity=alcPCfgParity, alcTCfgOutHeader=alcTCfgOutHeader, alcIStatsALCMesgsOut=alcIStatsALCMesgsOut, cdx6500PSTPortProtocolGroup=cdx6500PSTPortProtocolGroup, alcTCfgAvailableMesg=alcTCfgAvailableMesg, alcPStatsALCMesgsIn=alcPStatsALCMesgsIn, alcICfgOptions=alcICfgOptions, alcICfgUnavailableMesg=alcICfgUnavailableMesg, alcPStatsALCDiscardedMesgsQFull=alcPStatsALCDiscardedMesgsQFull, alcPCfgPortNumber=alcPCfgPortNumber, alcTCfgPortNumber=alcTCfgPortNumber, alcIStatsGAs=alcIStatsGAs, alcIStatsX25CharsIn=alcIStatsX25CharsIn, alcIStatsCurrTxX25QSize=alcIStatsCurrTxX25QSize, alcIStatsPolls=alcIStatsPolls, alcIStatsMaxTxALCQSize=alcIStatsMaxTxALCQSize, alcTStatsX25DiscardedMesgsBadALCAddr=alcTStatsX25DiscardedMesgsBadALCAddr, cdx6500PPSTALCPortEntry=cdx6500PPSTALCPortEntry, alcICfgT2Timeout=alcICfgT2Timeout, alcPStatsPortStatus=alcPStatsPortStatus, cdx6500ContALC=cdx6500ContALC, cdx6500ContALCInterchangeTable=cdx6500ContALCInterchangeTable, alcIStatsX25DiscardedMesgsEntityDown=alcIStatsX25DiscardedMesgsEntityDown, alcPCfgDebounceTimeout=alcPCfgDebounceTimeout, alcIStatsX25MesgsIn=alcIStatsX25MesgsIn, alcPStatsX25MesgsIn=alcPStatsX25MesgsIn, alcPStatsPortState=alcPStatsPortState, alcPStatsX25DiscardedMesgsTooLong=alcPStatsX25DiscardedMesgsTooLong, alcPCfgUnavailableMesg=alcPCfgUnavailableMesg, alcICfgInHeader=alcICfgInHeader, alcPCfgPollDelayTimer=alcPCfgPollDelayTimer, alcPCfgMaxMesgSize=alcPCfgMaxMesgSize, alcPStatsCurrTxALCQSize=alcPStatsCurrTxALCQSize, cdx6500PPSTALCStatsTable=cdx6500PPSTALCStatsTable, alcPCfgInHeader=alcPCfgInHeader, alcTStatsALCMesgsIn=alcTStatsALCMesgsIn, alcPStatsALCMesgsOut=alcPStatsALCMesgsOut, alcTStatsMaxTxALCQSize=alcTStatsMaxTxALCQSize, alcPStatsSignalLosses=alcPStatsSignalLosses, cdx6500ContALCInterchangeEntry=cdx6500ContALCInterchangeEntry, alcPCfgClockSource=alcPCfgClockSource, codex=codex, alcTContPortNumber=alcTContPortNumber, alcIStatsALCCharsIn=alcIStatsALCCharsIn, alcPStatsMaxQSizeOut=alcPStatsMaxQSizeOut, alcTStatsX25CharsOut=alcTStatsX25CharsOut, alcTContTerminalEnable=alcTContTerminalEnable, alcPContPortBoot=alcPContPortBoot, alcPStatsX25CharsOut=alcPStatsX25CharsOut, alcICfgFastPollCycleCount=alcICfgFastPollCycleCount, alcIStatsALCMesgsIn=alcIStatsALCMesgsIn, cdx6500PPCTALCCfgTable=cdx6500PPCTALCCfgTable, cdx6500Statistics=cdx6500Statistics, alcTCfgInterchangeAddress=alcTCfgInterchangeAddress, alcPStatsX25DiscardedMesgsQFull=alcPStatsX25DiscardedMesgsQFull, alcIStatsResets=alcIStatsResets, alcIStatsX25CharsOut=alcIStatsX25CharsOut, cdx6500Controls=cdx6500Controls, alcPStatsConnState=alcPStatsConnState, cdx6500PPSTALCPortTable=cdx6500PPSTALCPortTable, cdx6500PPCTALCInterchangeEntry=cdx6500PPCTALCInterchangeEntry, alcIStatsT1Timeouts=alcIStatsT1Timeouts, cdx6500ContALCPortTable=cdx6500ContALCPortTable, cdxProductSpecific=cdxProductSpecific, alcPStatsCurrTxX25QSize=alcPStatsCurrTxX25QSize, cdx6500PPCTALCPortTable=cdx6500PPCTALCPortTable, alcPStatsMaxTxALCQSize=alcPStatsMaxTxALCQSize, alcIStatsInterchangeState=alcIStatsInterchangeState, alcPCfgLeadPadChar=alcPCfgLeadPadChar, alcPStatsPolls=alcPStatsPolls, alcPStatsX25DiscardedMesgsEntityDown=alcPStatsX25DiscardedMesgsEntityDown, alcIContInterchangeBoot=alcIContInterchangeBoot, alcPStatsDataMesgsOut=alcPStatsDataMesgsOut, alcIStatsCurrTxALCQSize=alcIStatsCurrTxALCQSize, cdx6500ContALCTerminalTable=cdx6500ContALCTerminalTable, alcIStatsX25DiscardedMesgsQFull=alcIStatsX25DiscardedMesgsQFull, alcPStatsX25MesgsOut=alcPStatsX25MesgsOut, alcTStatsConnState=alcTStatsConnState, alcTStatsCurrTxX25QSize=alcTStatsCurrTxX25QSize, cdx6500PPCTALCTerminalTable=cdx6500PPCTALCTerminalTable, alcTCfgConnType=alcTCfgConnType, cdx6500PPSTALCTerminalEntry=cdx6500PPSTALCTerminalEntry, alcICfgStartMessage=alcICfgStartMessage, alcPStatsFramesIn=alcPStatsFramesIn, alcTStatsALCMesgsOut=alcTStatsALCMesgsOut, alcIStatsMaxTxX25QSize=alcIStatsMaxTxX25QSize, alcPCfgOutHeader=alcPCfgOutHeader, alcTContTerminalAddress=alcTContTerminalAddress, cdx6500PCTPortProtocolGroup=cdx6500PCTPortProtocolGroup, alcICfgNumOfBuffers=alcICfgNumOfBuffers, alcICfgT1Timeout=alcICfgT1Timeout, alcIStatsCharsIn=alcIStatsCharsIn, alcTCfgCUD=alcTCfgCUD, alcTCfgCallingAddress=alcTCfgCallingAddress, alcPCfgReconnectTimeout=alcPCfgReconnectTimeout, alcPCfgNumLeadPadChars=alcPCfgNumLeadPadChars, alcPCfgRtsCtsTimeout=alcPCfgRtsCtsTimeout, alcIStatsConnState=alcIStatsConnState, alcICfgGenTerminalAddress=alcICfgGenTerminalAddress, alcTStatsALCDiscardedMesgsEntityDown=alcTStatsALCDiscardedMesgsEntityDown, alcPStatsX25DiscardedMesgsBadALCAddr=alcPStatsX25DiscardedMesgsBadALCAddr, alcTStatsX25DiscardedMesgsEntityDown=alcTStatsX25DiscardedMesgsEntityDown, alcTStatsALCDiscardedMesgsQFull=alcTStatsALCDiscardedMesgsQFull, alcPCfgInactivityTimeout=alcPCfgInactivityTimeout, alcICfgSlowPollCycleCount=alcICfgSlowPollCycleCount, alcTStatsALCCharsOut=alcTStatsALCCharsOut, alcICfgInactivityTimeout=alcICfgInactivityTimeout, alcPCfgClockSpeed=alcPCfgClockSpeed, cdx6500PPSTALCInterchangeTable=cdx6500PPSTALCInterchangeTable, alcPCfgNumOfBuffers=alcPCfgNumOfBuffers, alcTStatsX25MesgsIn=alcTStatsX25MesgsIn, alcICfgValidTAList=alcICfgValidTAList, alcIStatsDataMesgsIn=alcIStatsDataMesgsIn, alcTCfgTerminalAddress=alcTCfgTerminalAddress, alcPStatsDiscardBadIAIn=alcPStatsDiscardBadIAIn, alcIStatsX25DiscardedMesgsBadHeader=alcIStatsX25DiscardedMesgsBadHeader, cdx6500PPSTALCInterchangeEntry=cdx6500PPSTALCInterchangeEntry, alcTContInterchangeAddress=alcTContInterchangeAddress, alcTStatsCurrTxALCQSize=alcTStatsCurrTxALCQSize, alcIStatsDisabledIAOut=alcIStatsDisabledIAOut, alcPCfgCallingAddress=alcPCfgCallingAddress, alcICfgMaxComponentsPerFrame=alcICfgMaxComponentsPerFrame, alcICfgCUD=alcICfgCUD, alcIContInterchangeAddress=alcIContInterchangeAddress, alcTCfgInactivityTimeout=alcTCfgInactivityTimeout, alcPStatsCharsIn=alcPStatsCharsIn, alcPCfgHostTimeout=alcPCfgHostTimeout, alcPStatsALCCharsOut=alcPStatsALCCharsOut, alcPStatsGAs=alcPStatsGAs, alcIStatsFramesIn=alcIStatsFramesIn, alcTStatsMaxTxX25QSize=alcTStatsMaxTxX25QSize, alcIContPortNumber=alcIContPortNumber, alcIStatsX25DiscardedMesgsTooLong=alcIStatsX25DiscardedMesgsTooLong, alcTContTerminalDisable=alcTContTerminalDisable, alcPContPortDisable=alcPContPortDisable, alcPStatsCCCErrors=alcPStatsCCCErrors, alcIStatsDiscardBadTAIn=alcIStatsDiscardBadTAIn, cdx6500PPCTALCTerminalEntry=cdx6500PPCTALCTerminalEntry, alcTCfgParity=alcTCfgParity, alcICfgPortNumber=alcICfgPortNumber, alcICfgN1Counter=alcICfgN1Counter, alcPCfgMinIntrvlBetweenPolls=alcPCfgMinIntrvlBetweenPolls, alcTCfgAcallMnemonic=alcTCfgAcallMnemonic, alcPCfgConnType=alcPCfgConnType, alcPCfgNumTrailPadChars=alcPCfgNumTrailPadChars, alcPStatsPortNumber=alcPStatsPortNumber, alcTStatsALCCharsIn=alcTStatsALCCharsIn, alcICfgOutHeader=alcICfgOutHeader, alcICfgN2Counter=alcICfgN2Counter, cdx6500PPCTALCPortEntry=cdx6500PPCTALCPortEntry, alcPStatsMaxTxX25QSize=alcPStatsMaxTxX25QSize, alcTStatsX25DiscardedMesgsBadHeader=alcTStatsX25DiscardedMesgsBadHeader, alcTStatsX25MesgsOut=alcTStatsX25MesgsOut, alcPStatsDataMesgsIn=alcPStatsDataMesgsIn, alcTStatsTerminalAddress=alcTStatsTerminalAddress, alcICfgAvailableMesg=alcICfgAvailableMesg, alcPStatsFramesOut=alcPStatsFramesOut, cdx6500CfgProtocolGroup=cdx6500CfgProtocolGroup, alcIStatsPortNumber=alcIStatsPortNumber, alcICfgConnType=alcICfgConnType, alcIStatsDisabledIAIn=alcIStatsDisabledIAIn, cdx6500=cdx6500, alcIStatsALCCharsOut=alcIStatsALCCharsOut, alcPStatsALCCharsIn=alcPStatsALCCharsIn, alcIContInterchangeEnable=alcIContInterchangeEnable, alcPCfgPortControl=alcPCfgPortControl, alcIStatsT2Timeouts=alcIStatsT2Timeouts, alcICfgStopMessage=alcICfgStopMessage, alcICfgReenterMessage=alcICfgReenterMessage, alcICfgInterchangeAddress=alcICfgInterchangeAddress, alcTStatsX25DiscardedMesgsTooLong=alcTStatsX25DiscardedMesgsTooLong, alcICfgHostTimeout=alcICfgHostTimeout, alcPCfgPortType=alcPCfgPortType)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(iso, integer32, object_identity, notification_type, ip_address, mib_identifier, unsigned32, time_ticks, enterprises, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, gauge32, module_identity, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Integer32', 'ObjectIdentity', 'NotificationType', 'IpAddress', 'MibIdentifier', 'Unsigned32', 'TimeTicks', 'enterprises', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Gauge32', 'ModuleIdentity', 'Bits')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
codex = mib_identifier((1, 3, 6, 1, 4, 1, 449))
cdx_product_specific = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2))
cdx6500 = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1))
cdx6500_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2))
cdx6500_cfg_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1))
cdx6500_pct_port_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1))
cdx6500_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3))
cdx6500_stat_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1))
cdx6500_pst_port_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1))
cdx6500_controls = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4))
class Displaystring(OctetString):
pass
cdx6500_ppctalc_cfg_table = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27))
cdx6500_ppctalc_port_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1))
if mibBuilder.loadTexts:
cdx6500PPCTALCPortTable.setStatus('mandatory')
cdx6500_ppctalc_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcPCfgPortNumber'))
if mibBuilder.loadTexts:
cdx6500PPCTALCPortEntry.setStatus('mandatory')
alc_p_cfg_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgPortNumber.setStatus('mandatory')
alc_p_cfg_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(31))).clone(namedValues=named_values(('alc', 31)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgPortType.setStatus('mandatory')
alc_p_cfg_subtype = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('alcHpad', 1), ('alcTpad', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgSubtype.setStatus('mandatory')
alc_p_cfg_port_control = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4, 5, 13, 15))).clone(namedValues=named_values(('simp', 1), ('emri', 4), ('emdc', 5), ('dtr', 13), ('alcDte', 15)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgPortControl.setStatus('mandatory')
alc_p_cfg_clock_source = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('int', 1), ('ext', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgClockSource.setStatus('mandatory')
alc_p_cfg_clock_speed = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('clkspd1200', 1), ('clkspd2400', 2), ('clkspd4800', 3), ('clkspd9600', 4), ('clkspd19200', 5), ('clkspd38400', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgClockSpeed.setStatus('mandatory')
alc_p_cfg_poll_delay_timer = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(50, 100000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgPollDelayTimer.setStatus('mandatory')
alc_p_cfg_host_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(50, 10000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgHostTimeout.setStatus('mandatory')
alc_p_cfg_max_mesg_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(10, 10000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgMaxMesgSize.setStatus('mandatory')
alc_p_cfg_min_intrvl_between_polls = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 100000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgMinIntrvlBetweenPolls.setStatus('mandatory')
alc_p_cfg_rts_cts_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(50, 10000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgRtsCtsTimeout.setStatus('mandatory')
alc_p_cfg_lead_pad_char = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 12), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgLeadPadChar.setStatus('mandatory')
alc_p_cfg_num_lead_pad_chars = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgNumLeadPadChars.setStatus('mandatory')
alc_p_cfg_trail_pad_char = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 14), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgTrailPadChar.setStatus('mandatory')
alc_p_cfg_num_trail_pad_chars = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgNumTrailPadChars.setStatus('mandatory')
alc_p_cfg_alc_line_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(4, 71))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgALCLineOptions.setStatus('mandatory')
alc_p_cfg_conn_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('x25', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgConnType.setStatus('mandatory')
alc_p_cfg_acall_mnemonic = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgAcallMnemonic.setStatus('mandatory')
alc_p_cfg_calling_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgCallingAddress.setStatus('mandatory')
alc_p_cfg_cud = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(2, 47))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgCUD.setStatus('mandatory')
alc_p_cfg_num_of_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgNumOfBuffers.setStatus('mandatory')
alc_p_cfg_in_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 22), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgInHeader.setStatus('mandatory')
alc_p_cfg_out_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 23), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgOutHeader.setStatus('mandatory')
alc_p_cfg_reconnect_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgReconnectTimeout.setStatus('mandatory')
alc_p_cfg_inactivity_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgInactivityTimeout.setStatus('mandatory')
alc_p_cfg_debounce_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgDebounceTimeout.setStatus('mandatory')
alc_p_cfg_parity = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgParity.setStatus('mandatory')
alc_p_cfg_conn_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 28), display_string().subtype(subtypeSpec=value_size_constraint(3, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgConnOptions.setStatus('mandatory')
alc_p_cfg_available_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 29), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgAvailableMesg.setStatus('mandatory')
alc_p_cfg_unavailable_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 1, 1, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPCfgUnavailableMesg.setStatus('mandatory')
cdx6500_ppctalc_interchange_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2))
if mibBuilder.loadTexts:
cdx6500PPCTALCInterchangeTable.setStatus('mandatory')
cdx6500_ppctalc_interchange_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcICfgPortNumber'), (0, 'ALC-OPT-MIB', 'alcICfgInterchangeAddress'))
if mibBuilder.loadTexts:
cdx6500PPCTALCInterchangeEntry.setStatus('mandatory')
alc_i_cfg_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgPortNumber.setStatus('mandatory')
alc_i_cfg_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgInterchangeAddress.setStatus('mandatory')
alc_i_cfg_option_on_invalid_ccc = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4, 5))).clone(namedValues=named_values(('discard', 2), ('resend', 3), ('reenter', 4), ('ignore', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgOptionOnInvalidCCC.setStatus('mandatory')
alc_i_cfg_gen_terminal_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgGenTerminalAddress.setStatus('mandatory')
alc_i_cfg_host_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(50, 100000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgHostTimeout.setStatus('mandatory')
alc_i_cfg_max_components_per_frame = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgMaxComponentsPerFrame.setStatus('mandatory')
alc_i_cfg_fast_poll_cycle_count = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgFastPollCycleCount.setStatus('mandatory')
alc_i_cfg_slow_poll_cycle_count = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgSlowPollCycleCount.setStatus('mandatory')
alc_i_cfg_n1_counter = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgN1Counter.setStatus('mandatory')
alc_i_cfg_n2_counter = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgN2Counter.setStatus('mandatory')
alc_i_cfg_t1_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(100, 100000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgT1Timeout.setStatus('mandatory')
alc_i_cfg_t2_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(100, 100000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgT2Timeout.setStatus('mandatory')
alc_i_cfg_reenter_message = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgReenterMessage.setStatus('mandatory')
alc_i_cfg_start_message = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgStartMessage.setStatus('mandatory')
alc_i_cfg_stop_message = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgStopMessage.setStatus('mandatory')
alc_i_cfg_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(3, 21))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgOptions.setStatus('mandatory')
alc_i_cfg_valid_ta_list = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 17), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgValidTAList.setStatus('mandatory')
alc_i_cfg_conn_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('x25', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgConnType.setStatus('mandatory')
alc_i_cfg_acall_mnemonic = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgAcallMnemonic.setStatus('mandatory')
alc_i_cfg_calling_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgCallingAddress.setStatus('mandatory')
alc_i_cfg_cud = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 21), display_string().subtype(subtypeSpec=value_size_constraint(2, 47))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgCUD.setStatus('mandatory')
alc_i_cfg_num_of_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgNumOfBuffers.setStatus('mandatory')
alc_i_cfg_in_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 23), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgInHeader.setStatus('mandatory')
alc_i_cfg_out_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgOutHeader.setStatus('mandatory')
alc_i_cfg_reconnect_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgReconnectTimeout.setStatus('mandatory')
alc_i_cfg_inactivity_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgInactivityTimeout.setStatus('mandatory')
alc_i_cfg_debounce_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgDebounceTimeout.setStatus('mandatory')
alc_i_cfg_parity = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgParity.setStatus('mandatory')
alc_i_cfg_conn_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 29), display_string().subtype(subtypeSpec=value_size_constraint(3, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgConnOptions.setStatus('mandatory')
alc_i_cfg_available_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgAvailableMesg.setStatus('mandatory')
alc_i_cfg_unavailable_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 2, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcICfgUnavailableMesg.setStatus('mandatory')
cdx6500_ppctalc_terminal_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3))
if mibBuilder.loadTexts:
cdx6500PPCTALCTerminalTable.setStatus('mandatory')
cdx6500_ppctalc_terminal_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcTCfgPortNumber'), (0, 'ALC-OPT-MIB', 'alcTCfgInterchangeAddress'), (0, 'ALC-OPT-MIB', 'alcTCfgTerminalAddress'))
if mibBuilder.loadTexts:
cdx6500PPCTALCTerminalEntry.setStatus('mandatory')
alc_t_cfg_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgPortNumber.setStatus('mandatory')
alc_t_cfg_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgInterchangeAddress.setStatus('mandatory')
alc_t_cfg_terminal_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgTerminalAddress.setStatus('mandatory')
alc_t_cfg_conn_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('x25', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgConnType.setStatus('mandatory')
alc_t_cfg_acall_mnemonic = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgAcallMnemonic.setStatus('mandatory')
alc_t_cfg_calling_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgCallingAddress.setStatus('mandatory')
alc_t_cfg_cud = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(2, 47))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgCUD.setStatus('mandatory')
alc_t_cfg_num_of_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgNumOfBuffers.setStatus('mandatory')
alc_t_cfg_in_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgInHeader.setStatus('mandatory')
alc_t_cfg_out_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(2, 53))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgOutHeader.setStatus('mandatory')
alc_t_cfg_reconnect_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgReconnectTimeout.setStatus('mandatory')
alc_t_cfg_inactivity_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgInactivityTimeout.setStatus('mandatory')
alc_t_cfg_debounce_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgDebounceTimeout.setStatus('mandatory')
alc_t_cfg_parity = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 100))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('nc', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgParity.setStatus('mandatory')
alc_t_cfg_conn_options = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(3, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgConnOptions.setStatus('mandatory')
alc_t_cfg_available_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgAvailableMesg.setStatus('mandatory')
alc_t_cfg_unavailable_mesg = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 2, 1, 1, 27, 3, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTCfgUnavailableMesg.setStatus('mandatory')
cdx6500_ppstalc_stats_table = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28))
cdx6500_ppstalc_port_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1))
if mibBuilder.loadTexts:
cdx6500PPSTALCPortTable.setStatus('mandatory')
cdx6500_ppstalc_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcPStatsPortNumber'))
if mibBuilder.loadTexts:
cdx6500PPSTALCPortEntry.setStatus('mandatory')
alc_p_stats_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsPortNumber.setStatus('mandatory')
alc_p_stats_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(31))).clone(namedValues=named_values(('alc', 31)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsPortType.setStatus('mandatory')
alc_p_stats_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 7, 8, 9, 11, 100))).clone(namedValues=named_values(('offline', 1), ('online', 2), ('timedOut', 7), ('pending', 8), ('connecting', 9), ('flowCtrl', 11), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsPortState.setStatus('mandatory')
alc_p_stats_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsFramesIn.setStatus('mandatory')
alc_p_stats_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsFramesOut.setStatus('mandatory')
alc_p_stats_data_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsDataMesgsIn.setStatus('mandatory')
alc_p_stats_data_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsDataMesgsOut.setStatus('mandatory')
alc_p_stats_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsCharsIn.setStatus('mandatory')
alc_p_stats_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsCharsOut.setStatus('mandatory')
alc_p_stats_polls = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsPolls.setStatus('mandatory')
alc_p_stats_g_as = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsGAs.setStatus('mandatory')
alc_p_stats_resets = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsResets.setStatus('mandatory')
alc_p_stats_discard_bad_ia_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsDiscardBadIAIn.setStatus('mandatory')
alc_p_stats_discard_bad_ia_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsDiscardBadIAOut.setStatus('mandatory')
alc_p_stats_max_q_size_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsMaxQSizeOut.setStatus('mandatory')
alc_p_stats_ccc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsCCCErrors.setStatus('mandatory')
alc_p_stats_signal_losses = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsSignalLosses.setStatus('mandatory')
alc_p_stats_overlength_frames = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsOverlengthFrames.setStatus('mandatory')
alc_p_stats_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('busyOut', 3), ('up', 4), ('down', 5), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsPortStatus.setStatus('mandatory')
alc_p_stats_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('online', 1), ('offline', 2), ('connecting', 3), ('inactive', 4), ('pending', 5), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsConnState.setStatus('mandatory')
alc_p_stats_alc_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCMesgsIn.setStatus('mandatory')
alc_p_stats_alc_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCMesgsOut.setStatus('mandatory')
alc_p_stats_x25_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25MesgsIn.setStatus('mandatory')
alc_p_stats_x25_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25MesgsOut.setStatus('mandatory')
alc_p_stats_alc_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCCharsIn.setStatus('mandatory')
alc_p_stats_alc_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCCharsOut.setStatus('mandatory')
alc_p_stats_x25_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25CharsIn.setStatus('mandatory')
alc_p_stats_x25_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25CharsOut.setStatus('mandatory')
alc_p_stats_alc_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alc_p_stats_x25_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alc_p_stats_x25_discarded_mesgs_bad_alc_addr = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alc_p_stats_x25_discarded_mesgs_bad_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alc_p_stats_x25_discarded_mesgs_too_long = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alc_p_stats_alc_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alc_p_stats_x25_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alc_p_stats_curr_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 36), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsCurrTxALCQSize.setStatus('mandatory')
alc_p_stats_curr_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 37), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsCurrTxX25QSize.setStatus('mandatory')
alc_p_stats_max_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 38), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsMaxTxALCQSize.setStatus('mandatory')
alc_p_stats_max_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 1, 1, 39), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcPStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500_ppstalc_interchange_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2))
if mibBuilder.loadTexts:
cdx6500PPSTALCInterchangeTable.setStatus('mandatory')
cdx6500_ppstalc_interchange_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcIStatsPortNumber'), (0, 'ALC-OPT-MIB', 'alcIStatsInterchangeAddress'))
if mibBuilder.loadTexts:
cdx6500PPSTALCInterchangeEntry.setStatus('mandatory')
alc_i_stats_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsPortNumber.setStatus('mandatory')
alc_i_stats_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsInterchangeAddress.setStatus('mandatory')
alc_i_stats_interchange_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 6, 7, 8, 10, 11, 100))).clone(namedValues=named_values(('offline', 1), ('online', 2), ('fastPoll', 3), ('slowPoll', 4), ('stopped', 6), ('timedOut', 7), ('pending', 8), ('failed', 10), ('flowCtrl', 11), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsInterchangeState.setStatus('mandatory')
alc_i_stats_frames_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsFramesIn.setStatus('mandatory')
alc_i_stats_frames_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsFramesOut.setStatus('mandatory')
alc_i_stats_data_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDataMesgsIn.setStatus('mandatory')
alc_i_stats_data_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDataMesgsOut.setStatus('mandatory')
alc_i_stats_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsCharsIn.setStatus('mandatory')
alc_i_stats_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsCharsOut.setStatus('mandatory')
alc_i_stats_polls = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsPolls.setStatus('mandatory')
alc_i_stats_g_as = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsGAs.setStatus('mandatory')
alc_i_stats_resets = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsResets.setStatus('mandatory')
alc_i_stats_discard_bad_ta_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDiscardBadTAIn.setStatus('mandatory')
alc_i_stats_discard_bad_ta_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDiscardBadTAOut.setStatus('mandatory')
alc_i_stats_disabled_ia_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDisabledIAIn.setStatus('mandatory')
alc_i_stats_disabled_ia_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsDisabledIAOut.setStatus('mandatory')
alc_i_stats_max_q_size_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsMaxQSizeOut.setStatus('mandatory')
alc_i_stats_ccc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsCCCErrors.setStatus('mandatory')
alc_i_stats_t1_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsT1Timeouts.setStatus('mandatory')
alc_i_stats_t2_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsT2Timeouts.setStatus('mandatory')
alc_i_stats_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('online', 1), ('offline', 2), ('connecting', 3), ('inactive', 4), ('pending', 5), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsConnState.setStatus('mandatory')
alc_i_stats_alc_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCMesgsIn.setStatus('mandatory')
alc_i_stats_alc_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCMesgsOut.setStatus('mandatory')
alc_i_stats_x25_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25MesgsIn.setStatus('mandatory')
alc_i_stats_x25_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25MesgsOut.setStatus('mandatory')
alc_i_stats_alc_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCCharsIn.setStatus('mandatory')
alc_i_stats_alc_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCCharsOut.setStatus('mandatory')
alc_i_stats_x25_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25CharsIn.setStatus('mandatory')
alc_i_stats_x25_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25CharsOut.setStatus('mandatory')
alc_i_stats_alc_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alc_i_stats_x25_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alc_i_stats_x25_discarded_mesgs_bad_alc_addr = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alc_i_stats_x25_discarded_mesgs_bad_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alc_i_stats_x25_discarded_mesgs_too_long = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alc_i_stats_alc_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alc_i_stats_x25_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alc_i_stats_curr_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 37), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsCurrTxALCQSize.setStatus('mandatory')
alc_i_stats_curr_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 38), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsCurrTxX25QSize.setStatus('mandatory')
alc_i_stats_max_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 39), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsMaxTxALCQSize.setStatus('mandatory')
alc_i_stats_max_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 2, 1, 40), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcIStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500_ppstalc_terminal_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3))
if mibBuilder.loadTexts:
cdx6500PPSTALCTerminalTable.setStatus('mandatory')
cdx6500_ppstalc_terminal_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcTStatsPortNumber'), (0, 'ALC-OPT-MIB', 'alcTStatsInterchangeAddress'), (0, 'ALC-OPT-MIB', 'alcTStatsTerminalAddress'))
if mibBuilder.loadTexts:
cdx6500PPSTALCTerminalEntry.setStatus('mandatory')
alc_t_stats_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsPortNumber.setStatus('mandatory')
alc_t_stats_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsInterchangeAddress.setStatus('mandatory')
alc_t_stats_terminal_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsTerminalAddress.setStatus('mandatory')
alc_t_stats_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 100))).clone(namedValues=named_values(('online', 1), ('offline', 2), ('connecting', 3), ('inactive', 4), ('pending', 5), ('na', 100)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsConnState.setStatus('mandatory')
alc_t_stats_alc_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCMesgsIn.setStatus('mandatory')
alc_t_stats_alc_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCMesgsOut.setStatus('mandatory')
alc_t_stats_x25_mesgs_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25MesgsIn.setStatus('mandatory')
alc_t_stats_x25_mesgs_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25MesgsOut.setStatus('mandatory')
alc_t_stats_alc_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCCharsIn.setStatus('mandatory')
alc_t_stats_alc_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCCharsOut.setStatus('mandatory')
alc_t_stats_x25_chars_in = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25CharsIn.setStatus('mandatory')
alc_t_stats_x25_chars_out = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25CharsOut.setStatus('mandatory')
alc_t_stats_alc_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCDiscardedMesgsEntityDown.setStatus('mandatory')
alc_t_stats_x25_discarded_mesgs_entity_down = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25DiscardedMesgsEntityDown.setStatus('mandatory')
alc_t_stats_x25_discarded_mesgs_bad_alc_addr = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25DiscardedMesgsBadALCAddr.setStatus('mandatory')
alc_t_stats_x25_discarded_mesgs_bad_header = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25DiscardedMesgsBadHeader.setStatus('mandatory')
alc_t_stats_x25_discarded_mesgs_too_long = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25DiscardedMesgsTooLong.setStatus('mandatory')
alc_t_stats_alc_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsALCDiscardedMesgsQFull.setStatus('mandatory')
alc_t_stats_x25_discarded_mesgs_q_full = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsX25DiscardedMesgsQFull.setStatus('mandatory')
alc_t_stats_curr_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsCurrTxALCQSize.setStatus('mandatory')
alc_t_stats_curr_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsCurrTxX25QSize.setStatus('mandatory')
alc_t_stats_max_tx_alcq_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsMaxTxALCQSize.setStatus('mandatory')
alc_t_stats_max_tx_x25_q_size = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 1, 1, 28, 3, 1, 23), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alcTStatsMaxTxX25QSize.setStatus('mandatory')
cdx6500_cont_alc = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10))
cdx6500_cont_alc_port_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1))
if mibBuilder.loadTexts:
cdx6500ContALCPortTable.setStatus('mandatory')
cdx6500_cont_alc_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcPContPortNumber'))
if mibBuilder.loadTexts:
cdx6500ContALCPortEntry.setStatus('mandatory')
alc_p_cont_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54)))
if mibBuilder.loadTexts:
alcPContPortNumber.setStatus('mandatory')
alc_p_cont_port_boot = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('boot', 1), ('noBoot', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcPContPortBoot.setStatus('mandatory')
alc_p_cont_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('noEnable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcPContPortEnable.setStatus('mandatory')
alc_p_cont_port_disable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('noDisable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcPContPortDisable.setStatus('mandatory')
cdx6500_cont_alc_interchange_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2))
if mibBuilder.loadTexts:
cdx6500ContALCInterchangeTable.setStatus('mandatory')
cdx6500_cont_alc_interchange_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcIContPortNumber'), (0, 'ALC-OPT-MIB', 'alcIContInterchangeAddress'))
if mibBuilder.loadTexts:
cdx6500ContALCInterchangeEntry.setStatus('mandatory')
alc_i_cont_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54)))
if mibBuilder.loadTexts:
alcIContPortNumber.setStatus('mandatory')
alc_i_cont_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts:
alcIContInterchangeAddress.setStatus('mandatory')
alc_i_cont_interchange_boot = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('boot', 1), ('noBoot', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcIContInterchangeBoot.setStatus('mandatory')
alc_i_cont_interchange_enable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('noEnable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcIContInterchangeEnable.setStatus('mandatory')
alc_i_cont_interchange_disable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('noDisable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcIContInterchangeDisable.setStatus('mandatory')
cdx6500_cont_alc_terminal_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3))
if mibBuilder.loadTexts:
cdx6500ContALCTerminalTable.setStatus('mandatory')
cdx6500_cont_alc_terminal_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1)).setIndexNames((0, 'ALC-OPT-MIB', 'alcTContPortNumber'), (0, 'ALC-OPT-MIB', 'alcTContInterchangeAddress'), (0, 'ALC-OPT-MIB', 'alcTContTerminalAddress'))
if mibBuilder.loadTexts:
cdx6500ContALCTerminalEntry.setStatus('mandatory')
alc_t_cont_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 54)))
if mibBuilder.loadTexts:
alcTContPortNumber.setStatus('mandatory')
alc_t_cont_interchange_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts:
alcTContInterchangeAddress.setStatus('mandatory')
alc_t_cont_terminal_address = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1))
if mibBuilder.loadTexts:
alcTContTerminalAddress.setStatus('mandatory')
alc_t_cont_terminal_boot = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('boot', 1), ('noBoot', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcTContTerminalBoot.setStatus('mandatory')
alc_t_cont_terminal_enable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('noEnable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcTContTerminalEnable.setStatus('mandatory')
alc_t_cont_terminal_disable = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 10, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('noDisable', 2)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
alcTContTerminalDisable.setStatus('mandatory')
mibBuilder.exportSymbols('ALC-OPT-MIB', alcIStatsCCCErrors=alcIStatsCCCErrors, alcPCfgAcallMnemonic=alcPCfgAcallMnemonic, alcPCfgConnOptions=alcPCfgConnOptions, alcICfgCallingAddress=alcICfgCallingAddress, alcTCfgNumOfBuffers=alcTCfgNumOfBuffers, cdx6500ContALCTerminalEntry=cdx6500ContALCTerminalEntry, alcTCfgInHeader=alcTCfgInHeader, alcTStatsX25CharsIn=alcTStatsX25CharsIn, alcPStatsPortType=alcPStatsPortType, cdx6500PPSTALCTerminalTable=cdx6500PPSTALCTerminalTable, alcPCfgTrailPadChar=alcPCfgTrailPadChar, alcICfgParity=alcICfgParity, cdx6500Configuration=cdx6500Configuration, cdx6500PPCTALCInterchangeTable=cdx6500PPCTALCInterchangeTable, alcTCfgUnavailableMesg=alcTCfgUnavailableMesg, alcTContTerminalBoot=alcTContTerminalBoot, alcTStatsX25DiscardedMesgsQFull=alcTStatsX25DiscardedMesgsQFull, alcPCfgALCLineOptions=alcPCfgALCLineOptions, cdx6500ContALCPortEntry=cdx6500ContALCPortEntry, alcICfgConnOptions=alcICfgConnOptions, alcIStatsCharsOut=alcIStatsCharsOut, alcICfgAcallMnemonic=alcICfgAcallMnemonic, alcPStatsOverlengthFrames=alcPStatsOverlengthFrames, alcPCfgAvailableMesg=alcPCfgAvailableMesg, alcPStatsResets=alcPStatsResets, alcTCfgDebounceTimeout=alcTCfgDebounceTimeout, alcICfgDebounceTimeout=alcICfgDebounceTimeout, alcICfgReconnectTimeout=alcICfgReconnectTimeout, alcIStatsMaxQSizeOut=alcIStatsMaxQSizeOut, alcIStatsDataMesgsOut=alcIStatsDataMesgsOut, alcIStatsALCDiscardedMesgsQFull=alcIStatsALCDiscardedMesgsQFull, alcTStatsPortNumber=alcTStatsPortNumber, alcTStatsInterchangeAddress=alcTStatsInterchangeAddress, alcPStatsCharsOut=alcPStatsCharsOut, alcPStatsX25DiscardedMesgsBadHeader=alcPStatsX25DiscardedMesgsBadHeader, alcIStatsDiscardBadTAOut=alcIStatsDiscardBadTAOut, alcIContInterchangeDisable=alcIContInterchangeDisable, alcPStatsALCDiscardedMesgsEntityDown=alcPStatsALCDiscardedMesgsEntityDown, alcICfgOptionOnInvalidCCC=alcICfgOptionOnInvalidCCC, alcPCfgCUD=alcPCfgCUD, alcIStatsFramesOut=alcIStatsFramesOut, alcIStatsX25DiscardedMesgsBadALCAddr=alcIStatsX25DiscardedMesgsBadALCAddr, alcPCfgSubtype=alcPCfgSubtype, alcPContPortEnable=alcPContPortEnable, alcPStatsX25CharsIn=alcPStatsX25CharsIn, alcTCfgConnOptions=alcTCfgConnOptions, alcIStatsX25MesgsOut=alcIStatsX25MesgsOut, alcPContPortNumber=alcPContPortNumber, DisplayString=DisplayString, alcIStatsALCDiscardedMesgsEntityDown=alcIStatsALCDiscardedMesgsEntityDown, alcTCfgReconnectTimeout=alcTCfgReconnectTimeout, alcIStatsInterchangeAddress=alcIStatsInterchangeAddress, alcPStatsDiscardBadIAOut=alcPStatsDiscardBadIAOut, cdx6500StatProtocolGroup=cdx6500StatProtocolGroup, alcPCfgParity=alcPCfgParity, alcTCfgOutHeader=alcTCfgOutHeader, alcIStatsALCMesgsOut=alcIStatsALCMesgsOut, cdx6500PSTPortProtocolGroup=cdx6500PSTPortProtocolGroup, alcTCfgAvailableMesg=alcTCfgAvailableMesg, alcPStatsALCMesgsIn=alcPStatsALCMesgsIn, alcICfgOptions=alcICfgOptions, alcICfgUnavailableMesg=alcICfgUnavailableMesg, alcPStatsALCDiscardedMesgsQFull=alcPStatsALCDiscardedMesgsQFull, alcPCfgPortNumber=alcPCfgPortNumber, alcTCfgPortNumber=alcTCfgPortNumber, alcIStatsGAs=alcIStatsGAs, alcIStatsX25CharsIn=alcIStatsX25CharsIn, alcIStatsCurrTxX25QSize=alcIStatsCurrTxX25QSize, alcIStatsPolls=alcIStatsPolls, alcIStatsMaxTxALCQSize=alcIStatsMaxTxALCQSize, alcTStatsX25DiscardedMesgsBadALCAddr=alcTStatsX25DiscardedMesgsBadALCAddr, cdx6500PPSTALCPortEntry=cdx6500PPSTALCPortEntry, alcICfgT2Timeout=alcICfgT2Timeout, alcPStatsPortStatus=alcPStatsPortStatus, cdx6500ContALC=cdx6500ContALC, cdx6500ContALCInterchangeTable=cdx6500ContALCInterchangeTable, alcIStatsX25DiscardedMesgsEntityDown=alcIStatsX25DiscardedMesgsEntityDown, alcPCfgDebounceTimeout=alcPCfgDebounceTimeout, alcIStatsX25MesgsIn=alcIStatsX25MesgsIn, alcPStatsX25MesgsIn=alcPStatsX25MesgsIn, alcPStatsPortState=alcPStatsPortState, alcPStatsX25DiscardedMesgsTooLong=alcPStatsX25DiscardedMesgsTooLong, alcPCfgUnavailableMesg=alcPCfgUnavailableMesg, alcICfgInHeader=alcICfgInHeader, alcPCfgPollDelayTimer=alcPCfgPollDelayTimer, alcPCfgMaxMesgSize=alcPCfgMaxMesgSize, alcPStatsCurrTxALCQSize=alcPStatsCurrTxALCQSize, cdx6500PPSTALCStatsTable=cdx6500PPSTALCStatsTable, alcPCfgInHeader=alcPCfgInHeader, alcTStatsALCMesgsIn=alcTStatsALCMesgsIn, alcPStatsALCMesgsOut=alcPStatsALCMesgsOut, alcTStatsMaxTxALCQSize=alcTStatsMaxTxALCQSize, alcPStatsSignalLosses=alcPStatsSignalLosses, cdx6500ContALCInterchangeEntry=cdx6500ContALCInterchangeEntry, alcPCfgClockSource=alcPCfgClockSource, codex=codex, alcTContPortNumber=alcTContPortNumber, alcIStatsALCCharsIn=alcIStatsALCCharsIn, alcPStatsMaxQSizeOut=alcPStatsMaxQSizeOut, alcTStatsX25CharsOut=alcTStatsX25CharsOut, alcTContTerminalEnable=alcTContTerminalEnable, alcPContPortBoot=alcPContPortBoot, alcPStatsX25CharsOut=alcPStatsX25CharsOut, alcICfgFastPollCycleCount=alcICfgFastPollCycleCount, alcIStatsALCMesgsIn=alcIStatsALCMesgsIn, cdx6500PPCTALCCfgTable=cdx6500PPCTALCCfgTable, cdx6500Statistics=cdx6500Statistics, alcTCfgInterchangeAddress=alcTCfgInterchangeAddress, alcPStatsX25DiscardedMesgsQFull=alcPStatsX25DiscardedMesgsQFull, alcIStatsResets=alcIStatsResets, alcIStatsX25CharsOut=alcIStatsX25CharsOut, cdx6500Controls=cdx6500Controls, alcPStatsConnState=alcPStatsConnState, cdx6500PPSTALCPortTable=cdx6500PPSTALCPortTable, cdx6500PPCTALCInterchangeEntry=cdx6500PPCTALCInterchangeEntry, alcIStatsT1Timeouts=alcIStatsT1Timeouts, cdx6500ContALCPortTable=cdx6500ContALCPortTable, cdxProductSpecific=cdxProductSpecific, alcPStatsCurrTxX25QSize=alcPStatsCurrTxX25QSize, cdx6500PPCTALCPortTable=cdx6500PPCTALCPortTable, alcPStatsMaxTxALCQSize=alcPStatsMaxTxALCQSize, alcIStatsInterchangeState=alcIStatsInterchangeState, alcPCfgLeadPadChar=alcPCfgLeadPadChar, alcPStatsPolls=alcPStatsPolls, alcPStatsX25DiscardedMesgsEntityDown=alcPStatsX25DiscardedMesgsEntityDown, alcIContInterchangeBoot=alcIContInterchangeBoot, alcPStatsDataMesgsOut=alcPStatsDataMesgsOut, alcIStatsCurrTxALCQSize=alcIStatsCurrTxALCQSize, cdx6500ContALCTerminalTable=cdx6500ContALCTerminalTable, alcIStatsX25DiscardedMesgsQFull=alcIStatsX25DiscardedMesgsQFull, alcPStatsX25MesgsOut=alcPStatsX25MesgsOut, alcTStatsConnState=alcTStatsConnState, alcTStatsCurrTxX25QSize=alcTStatsCurrTxX25QSize, cdx6500PPCTALCTerminalTable=cdx6500PPCTALCTerminalTable, alcTCfgConnType=alcTCfgConnType, cdx6500PPSTALCTerminalEntry=cdx6500PPSTALCTerminalEntry, alcICfgStartMessage=alcICfgStartMessage, alcPStatsFramesIn=alcPStatsFramesIn, alcTStatsALCMesgsOut=alcTStatsALCMesgsOut, alcIStatsMaxTxX25QSize=alcIStatsMaxTxX25QSize, alcPCfgOutHeader=alcPCfgOutHeader, alcTContTerminalAddress=alcTContTerminalAddress, cdx6500PCTPortProtocolGroup=cdx6500PCTPortProtocolGroup, alcICfgNumOfBuffers=alcICfgNumOfBuffers, alcICfgT1Timeout=alcICfgT1Timeout, alcIStatsCharsIn=alcIStatsCharsIn, alcTCfgCUD=alcTCfgCUD, alcTCfgCallingAddress=alcTCfgCallingAddress, alcPCfgReconnectTimeout=alcPCfgReconnectTimeout, alcPCfgNumLeadPadChars=alcPCfgNumLeadPadChars, alcPCfgRtsCtsTimeout=alcPCfgRtsCtsTimeout, alcIStatsConnState=alcIStatsConnState, alcICfgGenTerminalAddress=alcICfgGenTerminalAddress, alcTStatsALCDiscardedMesgsEntityDown=alcTStatsALCDiscardedMesgsEntityDown, alcPStatsX25DiscardedMesgsBadALCAddr=alcPStatsX25DiscardedMesgsBadALCAddr, alcTStatsX25DiscardedMesgsEntityDown=alcTStatsX25DiscardedMesgsEntityDown, alcTStatsALCDiscardedMesgsQFull=alcTStatsALCDiscardedMesgsQFull, alcPCfgInactivityTimeout=alcPCfgInactivityTimeout, alcICfgSlowPollCycleCount=alcICfgSlowPollCycleCount, alcTStatsALCCharsOut=alcTStatsALCCharsOut, alcICfgInactivityTimeout=alcICfgInactivityTimeout, alcPCfgClockSpeed=alcPCfgClockSpeed, cdx6500PPSTALCInterchangeTable=cdx6500PPSTALCInterchangeTable, alcPCfgNumOfBuffers=alcPCfgNumOfBuffers, alcTStatsX25MesgsIn=alcTStatsX25MesgsIn, alcICfgValidTAList=alcICfgValidTAList, alcIStatsDataMesgsIn=alcIStatsDataMesgsIn, alcTCfgTerminalAddress=alcTCfgTerminalAddress, alcPStatsDiscardBadIAIn=alcPStatsDiscardBadIAIn, alcIStatsX25DiscardedMesgsBadHeader=alcIStatsX25DiscardedMesgsBadHeader, cdx6500PPSTALCInterchangeEntry=cdx6500PPSTALCInterchangeEntry, alcTContInterchangeAddress=alcTContInterchangeAddress, alcTStatsCurrTxALCQSize=alcTStatsCurrTxALCQSize, alcIStatsDisabledIAOut=alcIStatsDisabledIAOut, alcPCfgCallingAddress=alcPCfgCallingAddress, alcICfgMaxComponentsPerFrame=alcICfgMaxComponentsPerFrame, alcICfgCUD=alcICfgCUD, alcIContInterchangeAddress=alcIContInterchangeAddress, alcTCfgInactivityTimeout=alcTCfgInactivityTimeout, alcPStatsCharsIn=alcPStatsCharsIn, alcPCfgHostTimeout=alcPCfgHostTimeout, alcPStatsALCCharsOut=alcPStatsALCCharsOut, alcPStatsGAs=alcPStatsGAs, alcIStatsFramesIn=alcIStatsFramesIn, alcTStatsMaxTxX25QSize=alcTStatsMaxTxX25QSize, alcIContPortNumber=alcIContPortNumber, alcIStatsX25DiscardedMesgsTooLong=alcIStatsX25DiscardedMesgsTooLong, alcTContTerminalDisable=alcTContTerminalDisable, alcPContPortDisable=alcPContPortDisable, alcPStatsCCCErrors=alcPStatsCCCErrors, alcIStatsDiscardBadTAIn=alcIStatsDiscardBadTAIn, cdx6500PPCTALCTerminalEntry=cdx6500PPCTALCTerminalEntry, alcTCfgParity=alcTCfgParity, alcICfgPortNumber=alcICfgPortNumber, alcICfgN1Counter=alcICfgN1Counter, alcPCfgMinIntrvlBetweenPolls=alcPCfgMinIntrvlBetweenPolls, alcTCfgAcallMnemonic=alcTCfgAcallMnemonic, alcPCfgConnType=alcPCfgConnType, alcPCfgNumTrailPadChars=alcPCfgNumTrailPadChars, alcPStatsPortNumber=alcPStatsPortNumber, alcTStatsALCCharsIn=alcTStatsALCCharsIn, alcICfgOutHeader=alcICfgOutHeader, alcICfgN2Counter=alcICfgN2Counter, cdx6500PPCTALCPortEntry=cdx6500PPCTALCPortEntry, alcPStatsMaxTxX25QSize=alcPStatsMaxTxX25QSize, alcTStatsX25DiscardedMesgsBadHeader=alcTStatsX25DiscardedMesgsBadHeader, alcTStatsX25MesgsOut=alcTStatsX25MesgsOut, alcPStatsDataMesgsIn=alcPStatsDataMesgsIn, alcTStatsTerminalAddress=alcTStatsTerminalAddress, alcICfgAvailableMesg=alcICfgAvailableMesg, alcPStatsFramesOut=alcPStatsFramesOut, cdx6500CfgProtocolGroup=cdx6500CfgProtocolGroup, alcIStatsPortNumber=alcIStatsPortNumber, alcICfgConnType=alcICfgConnType, alcIStatsDisabledIAIn=alcIStatsDisabledIAIn, cdx6500=cdx6500, alcIStatsALCCharsOut=alcIStatsALCCharsOut, alcPStatsALCCharsIn=alcPStatsALCCharsIn, alcIContInterchangeEnable=alcIContInterchangeEnable, alcPCfgPortControl=alcPCfgPortControl, alcIStatsT2Timeouts=alcIStatsT2Timeouts, alcICfgStopMessage=alcICfgStopMessage, alcICfgReenterMessage=alcICfgReenterMessage, alcICfgInterchangeAddress=alcICfgInterchangeAddress, alcTStatsX25DiscardedMesgsTooLong=alcTStatsX25DiscardedMesgsTooLong, alcICfgHostTimeout=alcICfgHostTimeout, alcPCfgPortType=alcPCfgPortType) |
#%%
ss ='00 80 e1 13 4f 24 04 0e 3c 90 f5 58 08 00 45 00 00 23 a1 c2 00 00 80 11 15 83 c0 a8 01 17 c0 a8 01 1d 17 71 17 71 00 0f f5 6d 31 36 62 62 62 62 62 00 00 00 00 00 00 00 00 00 00 00 '
ss2='00 80 e1 13 4f 24 04 0e 3c 90 f5 58 08 00 45 00 00 23 a1 c6 00 00 80 11 15 7f c0 a8 01 17 c0 a8 01 1d 17 71 17 71 00 0f 17 33 a9 4c 29 10 00 01 00 00 00 00 00 01 20 45 4d 45 42 46 '
ss3='ff ff ff ff ff ff 04 0e 3c 90 f5 58 08 00 45 00 00 60 cf 57 00 00 80 11 e6 ce c0 a8 01 17 c0 a8 01 ff 00 89 00 89 00 4c 17 33 a9 4c 29 10 00 01 00 00 00 00 00 01 20 45 4d 45 42 46 41 46 45 45 50 46 41 43 4e 44 43 46 42 44 46 46 44 46 41 44 43 45 4b 46 43 41 41 00 00 20 00 01 c0 0c 00 20 00 01 00 04 93 e0 00 06 00 00 c0 a8 01 17 '
dd = ss.split(' ')
dd.index('0f')
# %%
0xf8+40
# %%
256+32
# %%
| ss = '00 80 e1 13 4f 24 04 0e 3c 90 f5 58 08 00 45 00 00 23 a1 c2 00 00 80 11 15 83 c0 a8 01 17 c0 a8 01 1d 17 71 17 71 00 0f f5 6d 31 36 62 62 62 62 62 00 00 00 00 00 00 00 00 00 00 00 '
ss2 = '00 80 e1 13 4f 24 04 0e 3c 90 f5 58 08 00 45 00 00 23 a1 c6 00 00 80 11 15 7f c0 a8 01 17 c0 a8 01 1d 17 71 17 71 00 0f 17 33 a9 4c 29 10 00 01 00 00 00 00 00 01 20 45 4d 45 42 46 '
ss3 = 'ff ff ff ff ff ff 04 0e 3c 90 f5 58 08 00 45 00 00 60 cf 57 00 00 80 11 e6 ce c0 a8 01 17 c0 a8 01 ff 00 89 00 89 00 4c 17 33 a9 4c 29 10 00 01 00 00 00 00 00 01 20 45 4d 45 42 46 41 46 45 45 50 46 41 43 4e 44 43 46 42 44 46 46 44 46 41 44 43 45 4b 46 43 41 41 00 00 20 00 01 c0 0c 00 20 00 01 00 04 93 e0 00 06 00 00 c0 a8 01 17 '
dd = ss.split(' ')
dd.index('0f')
248 + 40
256 + 32 |
#
# Solution to Project Euler problem 9
# Copyright (c) Project Nayuki. All rights reserved.
#
# https://www.nayuki.io/page/project-euler-solutions
# https://github.com/nayuki/Project-Euler-solutions
#
# Computers are fast, so we can implement a brute-force search to directly solve the problem.
def compute():
PERIMETER = 1000
for a in range(1, PERIMETER + 1):
for b in range(a + 1, PERIMETER + 1):
c = PERIMETER - a - b
if a * a + b * b == c * c:
# It is now implied that b < c, because we have a > 0
return str(a * b * c)
if __name__ == "__main__":
print(compute())
| def compute():
perimeter = 1000
for a in range(1, PERIMETER + 1):
for b in range(a + 1, PERIMETER + 1):
c = PERIMETER - a - b
if a * a + b * b == c * c:
return str(a * b * c)
if __name__ == '__main__':
print(compute()) |
class Method:
def __init__(self, head, goal, precond, subgoals):
self.head = head
self.goal = goal
self.precond = precond
self.subgoals = subgoals | class Method:
def __init__(self, head, goal, precond, subgoals):
self.head = head
self.goal = goal
self.precond = precond
self.subgoals = subgoals |
def decode_line(line):
wires, display_numbers = line.split('|')
digits = display_numbers.strip().split(' ')
wires = wires.strip().split(' ')
return wires, digits
def count_unique_digits(display_lines):
unique = 0
for line in display_lines:
_, digits = decode_line(line)
for digit in digits:
unique += len(digit) in (2, 3, 4, 7)
return unique
def decode_display_value(wires, digits):
possible = {
0: set(),
1: set(),
2: set(),
3: set(),
4: set(),
5: set(),
6: set(),
7: set(),
8: set(),
9: set(),
}
resolved = {
0: None,
1: None,
2: None,
3: None,
4: None,
5: None,
6: None,
7: None,
8: None,
9: None,
}
for code in wires:
length = len(code)
if length == 2:
possible[1].add(code)
resolved[1] = code
elif length == 3:
possible[7].add(code)
resolved[7] = code
elif length == 4:
possible[4].add(code)
resolved[4] = code
elif length == 5:
possible[2].add(code)
possible[3].add(code)
possible[5].add(code)
elif length == 6:
possible[0].add(code)
possible[6].add(code)
possible[9].add(code)
elif length == 7:
possible[8].add(code)
resolved[8] = code
for option in possible[3]:
if set(resolved[1]).issubset(set(option)):
resolved[3] = option
possible[2].remove(option)
possible[5].remove(option)
break
for option in possible[5]:
if len(set(resolved[4]).intersection(set(option))) == 3:
resolved[5] = option
possible[2].remove(option)
resolved[2] = possible[2].pop()
for option in possible[9]:
if set(resolved[4]).issubset(set(option)):
resolved[9] = option
possible[0].remove(option)
possible[6].remove(option)
for option in possible[0]:
if set(resolved[1]).issubset(set(option)):
resolved[0] = option
possible[6].remove(option)
resolved[6] = possible[6].pop()
output = ''
for digit in digits:
for resolved_digit, key in resolved.items():
if set(digit) == set(key):
output += str(resolved_digit)
break
return output
def sum_up_input_values(display_lines):
s = 0
for line in display_lines:
wires, digits = decode_line(line)
s += int(decode_display_value(wires, digits))
return s
def test_count_unique_digits():
assert count_unique_digits(open('input/08.test').read().splitlines()) == 26
def test_decode_display_value():
assert decode_display_value('be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb'.split(' '),
'fdgacbe cefdb cefbgd gcbe'.split(' ')) == '8394'
def test_sum_up_input_values():
assert sum_up_input_values(open('input/08.test').read().splitlines()) == 61229
if __name__ == '__main__':
print(count_unique_digits(open('input/08').read().splitlines()))
print(sum_up_input_values(open('input/08').read().splitlines()))
| def decode_line(line):
(wires, display_numbers) = line.split('|')
digits = display_numbers.strip().split(' ')
wires = wires.strip().split(' ')
return (wires, digits)
def count_unique_digits(display_lines):
unique = 0
for line in display_lines:
(_, digits) = decode_line(line)
for digit in digits:
unique += len(digit) in (2, 3, 4, 7)
return unique
def decode_display_value(wires, digits):
possible = {0: set(), 1: set(), 2: set(), 3: set(), 4: set(), 5: set(), 6: set(), 7: set(), 8: set(), 9: set()}
resolved = {0: None, 1: None, 2: None, 3: None, 4: None, 5: None, 6: None, 7: None, 8: None, 9: None}
for code in wires:
length = len(code)
if length == 2:
possible[1].add(code)
resolved[1] = code
elif length == 3:
possible[7].add(code)
resolved[7] = code
elif length == 4:
possible[4].add(code)
resolved[4] = code
elif length == 5:
possible[2].add(code)
possible[3].add(code)
possible[5].add(code)
elif length == 6:
possible[0].add(code)
possible[6].add(code)
possible[9].add(code)
elif length == 7:
possible[8].add(code)
resolved[8] = code
for option in possible[3]:
if set(resolved[1]).issubset(set(option)):
resolved[3] = option
possible[2].remove(option)
possible[5].remove(option)
break
for option in possible[5]:
if len(set(resolved[4]).intersection(set(option))) == 3:
resolved[5] = option
possible[2].remove(option)
resolved[2] = possible[2].pop()
for option in possible[9]:
if set(resolved[4]).issubset(set(option)):
resolved[9] = option
possible[0].remove(option)
possible[6].remove(option)
for option in possible[0]:
if set(resolved[1]).issubset(set(option)):
resolved[0] = option
possible[6].remove(option)
resolved[6] = possible[6].pop()
output = ''
for digit in digits:
for (resolved_digit, key) in resolved.items():
if set(digit) == set(key):
output += str(resolved_digit)
break
return output
def sum_up_input_values(display_lines):
s = 0
for line in display_lines:
(wires, digits) = decode_line(line)
s += int(decode_display_value(wires, digits))
return s
def test_count_unique_digits():
assert count_unique_digits(open('input/08.test').read().splitlines()) == 26
def test_decode_display_value():
assert decode_display_value('be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb'.split(' '), 'fdgacbe cefdb cefbgd gcbe'.split(' ')) == '8394'
def test_sum_up_input_values():
assert sum_up_input_values(open('input/08.test').read().splitlines()) == 61229
if __name__ == '__main__':
print(count_unique_digits(open('input/08').read().splitlines()))
print(sum_up_input_values(open('input/08').read().splitlines())) |
def inBinary(n):
string = bin(n)
string = string[2:]
return int(string)
def isPalindrome(n):
string = ""
temp = n
while n > 0:
string += str(n % 10)
n = n // 10
return string == str(temp)
sumPalindromes = 0
for i in range(1, 1000000):
if isPalindrome(i) and isPalindrome(inBinary(i)):
sumPalindromes += i
print(i)
print(sumPalindromes) | def in_binary(n):
string = bin(n)
string = string[2:]
return int(string)
def is_palindrome(n):
string = ''
temp = n
while n > 0:
string += str(n % 10)
n = n // 10
return string == str(temp)
sum_palindromes = 0
for i in range(1, 1000000):
if is_palindrome(i) and is_palindrome(in_binary(i)):
sum_palindromes += i
print(i)
print(sumPalindromes) |
for g in range(int(input())):
n = int(input())
lim = int(n / 2) + 1
s = 0
for i in range(1, lim):
if n % i == 0: s += i
if s == n: print(n, 'eh perfeito')
else: print(n, 'nao eh perfeito')
| for g in range(int(input())):
n = int(input())
lim = int(n / 2) + 1
s = 0
for i in range(1, lim):
if n % i == 0:
s += i
if s == n:
print(n, 'eh perfeito')
else:
print(n, 'nao eh perfeito') |
class RadixSort:
def __init__(self,array):
self.array = array
def sort(self,exp):
count = [0]*(10)
sorted_array = [0]*(len(self.array))
for i in range(len(self.array)):
index = int(self.array[i]/exp)
count[index%10] += 1
for j in range(1,10):
count[j] += count[j-1]
for k in range(len(self.array)-1,-1,-1):
index = int(self.array[k]/exp)
sorted_array[count[index%10]-1] = self.array[k]
count[index%10] -= 1
self.array = sorted_array
def result(self):
max_element = max(self.array)
exp = 1
while (max_element/exp) > 0:
self.sort(exp)
exp *= 10
return self.array
| class Radixsort:
def __init__(self, array):
self.array = array
def sort(self, exp):
count = [0] * 10
sorted_array = [0] * len(self.array)
for i in range(len(self.array)):
index = int(self.array[i] / exp)
count[index % 10] += 1
for j in range(1, 10):
count[j] += count[j - 1]
for k in range(len(self.array) - 1, -1, -1):
index = int(self.array[k] / exp)
sorted_array[count[index % 10] - 1] = self.array[k]
count[index % 10] -= 1
self.array = sorted_array
def result(self):
max_element = max(self.array)
exp = 1
while max_element / exp > 0:
self.sort(exp)
exp *= 10
return self.array |
class InvalidExtensionEnvironment(Exception):
pass
class Module:
'''
Modules differ from extensions in that they not only can read the state, but
are allowed to modify the state. The will be loaded on boot, and are not
allowed to be unloaded as they are required to continue functioning in a
consistant manner.
'''
# The below methods should be implemented by subclasses
def during_bootup(self, keyboard):
raise NotImplementedError
def before_matrix_scan(self, keyboard):
'''
Return value will be injected as an extra matrix update
'''
raise NotImplementedError
def after_matrix_scan(self, keyboard):
'''
Return value will be replace matrix update if supplied
'''
raise NotImplementedError
def before_hid_send(self, keyboard):
raise NotImplementedError
def after_hid_send(self, keyboard):
raise NotImplementedError
def on_powersave_enable(self, keyboard):
raise NotImplementedError
def on_powersave_disable(self, keyboard):
raise NotImplementedError
| class Invalidextensionenvironment(Exception):
pass
class Module:
"""
Modules differ from extensions in that they not only can read the state, but
are allowed to modify the state. The will be loaded on boot, and are not
allowed to be unloaded as they are required to continue functioning in a
consistant manner.
"""
def during_bootup(self, keyboard):
raise NotImplementedError
def before_matrix_scan(self, keyboard):
"""
Return value will be injected as an extra matrix update
"""
raise NotImplementedError
def after_matrix_scan(self, keyboard):
"""
Return value will be replace matrix update if supplied
"""
raise NotImplementedError
def before_hid_send(self, keyboard):
raise NotImplementedError
def after_hid_send(self, keyboard):
raise NotImplementedError
def on_powersave_enable(self, keyboard):
raise NotImplementedError
def on_powersave_disable(self, keyboard):
raise NotImplementedError |
print('a')
print("hello" + "world")
print("hello" + str(4))
print(int("5") + 4)
print(float("3.2") + 7)
print("the c is ", 5)
price = 1000
count = 10
print("price ", price, " count is", count)
name = input("Enter you name:")
print("hello", name)
tt = True
if tt and False:
print("Impossible") | print('a')
print('hello' + 'world')
print('hello' + str(4))
print(int('5') + 4)
print(float('3.2') + 7)
print('the c is ', 5)
price = 1000
count = 10
print('price ', price, ' count is', count)
name = input('Enter you name:')
print('hello', name)
tt = True
if tt and False:
print('Impossible') |
def foo():
pass
class Model(object):
pass
| def foo():
pass
class Model(object):
pass |
str = '''#define GLFW_KEY_UNKNOWN -1
#define GLFW_KEY_SPACE 32
#define GLFW_KEY_APOSTROPHE 39 /* ' */
#define GLFW_KEY_COMMA 44 /* , */
#define GLFW_KEY_MINUS 45 /* - */
#define GLFW_KEY_PERIOD 46 /* . */
#define GLFW_KEY_SLASH 47 /* / */
#define GLFW_KEY_0 48
#define GLFW_KEY_1 49
#define GLFW_KEY_2 50
#define GLFW_KEY_3 51
#define GLFW_KEY_4 52
#define GLFW_KEY_5 53
#define GLFW_KEY_6 54
#define GLFW_KEY_7 55
#define GLFW_KEY_8 56
#define GLFW_KEY_9 57
#define GLFW_KEY_SEMICOLON 59 /* ; */
#define GLFW_KEY_EQUAL 61 /* = */
#define GLFW_KEY_A 65
#define GLFW_KEY_B 66
#define GLFW_KEY_C 67
#define GLFW_KEY_D 68
#define GLFW_KEY_E 69
#define GLFW_KEY_F 70
#define GLFW_KEY_G 71
#define GLFW_KEY_H 72
#define GLFW_KEY_I 73
#define GLFW_KEY_J 74
#define GLFW_KEY_K 75
#define GLFW_KEY_L 76
#define GLFW_KEY_M 77
#define GLFW_KEY_N 78
#define GLFW_KEY_O 79
#define GLFW_KEY_P 80
#define GLFW_KEY_Q 81
#define GLFW_KEY_R 82
#define GLFW_KEY_S 83
#define GLFW_KEY_T 84
#define GLFW_KEY_U 85
#define GLFW_KEY_V 86
#define GLFW_KEY_W 87
#define GLFW_KEY_X 88
#define GLFW_KEY_Y 89
#define GLFW_KEY_Z 90
#define GLFW_KEY_LEFT_BRACKET 91 /* [ */
#define GLFW_KEY_BACKSLASH 92 /* \ */
#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */
#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */
#define GLFW_KEY_WORLD_1 161 /* non-US #1 */
#define GLFW_KEY_WORLD_2 162 /* non-US #2 */
#define GLFW_KEY_ESCAPE 256
#define GLFW_KEY_ENTER 257
#define GLFW_KEY_TAB 258
#define GLFW_KEY_BACKSPACE 259
#define GLFW_KEY_INSERT 260
#define GLFW_KEY_DELETE 261
#define GLFW_KEY_RIGHT 262
#define GLFW_KEY_LEFT 263
#define GLFW_KEY_DOWN 264
#define GLFW_KEY_UP 265
#define GLFW_KEY_PAGE_UP 266
#define GLFW_KEY_PAGE_DOWN 267
#define GLFW_KEY_HOME 268
#define GLFW_KEY_END 269
#define GLFW_KEY_CAPS_LOCK 280
#define GLFW_KEY_SCROLL_LOCK 281
#define GLFW_KEY_NUM_LOCK 282
#define GLFW_KEY_PRINT_SCREEN 283
#define GLFW_KEY_PAUSE 284
#define GLFW_KEY_F1 290
#define GLFW_KEY_F2 291
#define GLFW_KEY_F3 292
#define GLFW_KEY_F4 293
#define GLFW_KEY_F5 294
#define GLFW_KEY_F6 295
#define GLFW_KEY_F7 296
#define GLFW_KEY_F8 297
#define GLFW_KEY_F9 298
#define GLFW_KEY_F10 299
#define GLFW_KEY_F11 300
#define GLFW_KEY_F12 301
#define GLFW_KEY_F13 302
#define GLFW_KEY_F14 303
#define GLFW_KEY_F15 304
#define GLFW_KEY_F16 305
#define GLFW_KEY_F17 306
#define GLFW_KEY_F18 307
#define GLFW_KEY_F19 308
#define GLFW_KEY_F20 309
#define GLFW_KEY_F21 310
#define GLFW_KEY_F22 311
#define GLFW_KEY_F23 312
#define GLFW_KEY_F24 313
#define GLFW_KEY_F25 314
#define GLFW_KEY_KP_0 320
#define GLFW_KEY_KP_1 321
#define GLFW_KEY_KP_2 322
#define GLFW_KEY_KP_3 323
#define GLFW_KEY_KP_4 324
#define GLFW_KEY_KP_5 325
#define GLFW_KEY_KP_6 326
#define GLFW_KEY_KP_7 327
#define GLFW_KEY_KP_8 328
#define GLFW_KEY_KP_9 329
#define GLFW_KEY_KP_DECIMAL 330
#define GLFW_KEY_KP_DIVIDE 331
#define GLFW_KEY_KP_MULTIPLY 332
#define GLFW_KEY_KP_SUBTRACT 333
#define GLFW_KEY_KP_ADD 334
#define GLFW_KEY_KP_ENTER 335
#define GLFW_KEY_KP_EQUAL 336
#define GLFW_KEY_LEFT_SHIFT 340
#define GLFW_KEY_LEFT_CONTROL 341
#define GLFW_KEY_LEFT_ALT 342
#define GLFW_KEY_LEFT_SUPER 343
#define GLFW_KEY_RIGHT_SHIFT 344
#define GLFW_KEY_RIGHT_CONTROL 345
#define GLFW_KEY_RIGHT_ALT 346
#define GLFW_KEY_RIGHT_SUPER 347
#define GLFW_KEY_MENU 348
#define GLFW_KEY_LAST GLFW_KEY_MENU'''
arr = list(filter(lambda a: a != '', str.split('\n')))
glfwkeys = []
for line in arr:
x = line.split('\t')
glfwname = x[1].split(' ')[0]
name = "_".join(glfwname.split("_", 2)[2:])
print(name.lower() + " = " + glfwname + ",")
| str = "#define \tGLFW_KEY_UNKNOWN -1\n\n#define \tGLFW_KEY_SPACE 32\n\n#define \tGLFW_KEY_APOSTROPHE 39 /* ' */\n\n#define \tGLFW_KEY_COMMA 44 /* , */\n\n#define \tGLFW_KEY_MINUS 45 /* - */\n\n#define \tGLFW_KEY_PERIOD 46 /* . */\n\n#define \tGLFW_KEY_SLASH 47 /* / */\n\n#define \tGLFW_KEY_0 48\n\n#define \tGLFW_KEY_1 49\n\n#define \tGLFW_KEY_2 50\n\n#define \tGLFW_KEY_3 51\n\n#define \tGLFW_KEY_4 52\n\n#define \tGLFW_KEY_5 53\n\n#define \tGLFW_KEY_6 54\n\n#define \tGLFW_KEY_7 55\n\n#define \tGLFW_KEY_8 56\n\n#define \tGLFW_KEY_9 57\n\n#define \tGLFW_KEY_SEMICOLON 59 /* ; */\n\n#define \tGLFW_KEY_EQUAL 61 /* = */\n\n#define \tGLFW_KEY_A 65\n\n#define \tGLFW_KEY_B 66\n\n#define \tGLFW_KEY_C 67\n\n#define \tGLFW_KEY_D 68\n\n#define \tGLFW_KEY_E 69\n\n#define \tGLFW_KEY_F 70\n\n#define \tGLFW_KEY_G 71\n\n#define \tGLFW_KEY_H 72\n\n#define \tGLFW_KEY_I 73\n\n#define \tGLFW_KEY_J 74\n\n#define \tGLFW_KEY_K 75\n\n#define \tGLFW_KEY_L 76\n\n#define \tGLFW_KEY_M 77\n\n#define \tGLFW_KEY_N 78\n\n#define \tGLFW_KEY_O 79\n\n#define \tGLFW_KEY_P 80\n\n#define \tGLFW_KEY_Q 81\n\n#define \tGLFW_KEY_R 82\n\n#define \tGLFW_KEY_S 83\n\n#define \tGLFW_KEY_T 84\n\n#define \tGLFW_KEY_U 85\n\n#define \tGLFW_KEY_V 86\n\n#define \tGLFW_KEY_W 87\n\n#define \tGLFW_KEY_X 88\n\n#define \tGLFW_KEY_Y 89\n\n#define \tGLFW_KEY_Z 90\n\n#define \tGLFW_KEY_LEFT_BRACKET 91 /* [ */\n\n#define \tGLFW_KEY_BACKSLASH 92 /* \\ */\n\n#define \tGLFW_KEY_RIGHT_BRACKET 93 /* ] */\n\n#define \tGLFW_KEY_GRAVE_ACCENT 96 /* ` */\n\n#define \tGLFW_KEY_WORLD_1 161 /* non-US #1 */\n\n#define \tGLFW_KEY_WORLD_2 162 /* non-US #2 */\n\n#define \tGLFW_KEY_ESCAPE 256\n\n#define \tGLFW_KEY_ENTER 257\n\n#define \tGLFW_KEY_TAB 258\n\n#define \tGLFW_KEY_BACKSPACE 259\n\n#define \tGLFW_KEY_INSERT 260\n\n#define \tGLFW_KEY_DELETE 261\n\n#define \tGLFW_KEY_RIGHT 262\n\n#define \tGLFW_KEY_LEFT 263\n\n#define \tGLFW_KEY_DOWN 264\n\n#define \tGLFW_KEY_UP 265\n\n#define \tGLFW_KEY_PAGE_UP 266\n\n#define \tGLFW_KEY_PAGE_DOWN 267\n\n#define \tGLFW_KEY_HOME 268\n\n#define \tGLFW_KEY_END 269\n\n#define \tGLFW_KEY_CAPS_LOCK 280\n\n#define \tGLFW_KEY_SCROLL_LOCK 281\n\n#define \tGLFW_KEY_NUM_LOCK 282\n\n#define \tGLFW_KEY_PRINT_SCREEN 283\n\n#define \tGLFW_KEY_PAUSE 284\n\n#define \tGLFW_KEY_F1 290\n\n#define \tGLFW_KEY_F2 291\n\n#define \tGLFW_KEY_F3 292\n\n#define \tGLFW_KEY_F4 293\n\n#define \tGLFW_KEY_F5 294\n\n#define \tGLFW_KEY_F6 295\n\n#define \tGLFW_KEY_F7 296\n\n#define \tGLFW_KEY_F8 297\n\n#define \tGLFW_KEY_F9 298\n\n#define \tGLFW_KEY_F10 299\n\n#define \tGLFW_KEY_F11 300\n\n#define \tGLFW_KEY_F12 301\n\n#define \tGLFW_KEY_F13 302\n\n#define \tGLFW_KEY_F14 303\n\n#define \tGLFW_KEY_F15 304\n\n#define \tGLFW_KEY_F16 305\n\n#define \tGLFW_KEY_F17 306\n\n#define \tGLFW_KEY_F18 307\n\n#define \tGLFW_KEY_F19 308\n\n#define \tGLFW_KEY_F20 309\n\n#define \tGLFW_KEY_F21 310\n\n#define \tGLFW_KEY_F22 311\n\n#define \tGLFW_KEY_F23 312\n\n#define \tGLFW_KEY_F24 313\n\n#define \tGLFW_KEY_F25 314\n\n#define \tGLFW_KEY_KP_0 320\n\n#define \tGLFW_KEY_KP_1 321\n\n#define \tGLFW_KEY_KP_2 322\n\n#define \tGLFW_KEY_KP_3 323\n\n#define \tGLFW_KEY_KP_4 324\n\n#define \tGLFW_KEY_KP_5 325\n\n#define \tGLFW_KEY_KP_6 326\n\n#define \tGLFW_KEY_KP_7 327\n\n#define \tGLFW_KEY_KP_8 328\n\n#define \tGLFW_KEY_KP_9 329\n\n#define \tGLFW_KEY_KP_DECIMAL 330\n\n#define \tGLFW_KEY_KP_DIVIDE 331\n\n#define \tGLFW_KEY_KP_MULTIPLY 332\n\n#define \tGLFW_KEY_KP_SUBTRACT 333\n\n#define \tGLFW_KEY_KP_ADD 334\n\n#define \tGLFW_KEY_KP_ENTER 335\n\n#define \tGLFW_KEY_KP_EQUAL 336\n\n#define \tGLFW_KEY_LEFT_SHIFT 340\n\n#define \tGLFW_KEY_LEFT_CONTROL 341\n\n#define \tGLFW_KEY_LEFT_ALT 342\n\n#define \tGLFW_KEY_LEFT_SUPER 343\n\n#define \tGLFW_KEY_RIGHT_SHIFT 344\n\n#define \tGLFW_KEY_RIGHT_CONTROL 345\n\n#define \tGLFW_KEY_RIGHT_ALT 346\n\n#define \tGLFW_KEY_RIGHT_SUPER 347\n\n#define \tGLFW_KEY_MENU 348\n\n#define \tGLFW_KEY_LAST GLFW_KEY_MENU"
arr = list(filter(lambda a: a != '', str.split('\n')))
glfwkeys = []
for line in arr:
x = line.split('\t')
glfwname = x[1].split(' ')[0]
name = '_'.join(glfwname.split('_', 2)[2:])
print(name.lower() + ' = ' + glfwname + ',') |
#coding=utf-8
def merge(intervals):
intervals.sort(key=lambda x: x[0])
merged = []
for interval in intervals:
if not merged or merged[-1][1] < interval[0]:
merged.append(interval)
else:
merged[-1][1] = max(merged[-1][1], interval[1])
return merged
if __name__ == '__main__':
ll = [[2, 6], [8, 10], [15, 18], [1, 3]]
print(merge(ll))
| def merge(intervals):
intervals.sort(key=lambda x: x[0])
merged = []
for interval in intervals:
if not merged or merged[-1][1] < interval[0]:
merged.append(interval)
else:
merged[-1][1] = max(merged[-1][1], interval[1])
return merged
if __name__ == '__main__':
ll = [[2, 6], [8, 10], [15, 18], [1, 3]]
print(merge(ll)) |
pkgname = "libiptcdata"
pkgver = "1.0.4"
pkgrel = 0
build_style = "gnu_configure"
hostmakedepends = ["pkgconf"]
pkgdesc = "Library for manipulating the IPTC metadata"
maintainer = "q66 <q66@chimera-linux.org>"
license = "LGPL-2.1-or-later"
url = "http://libiptcdata.sourceforge.net"
source = f"$(SOURCEFORGE_SITE)/{pkgname}/{pkgname}-{pkgver}.tar.gz"
sha256 = "79f63b8ce71ee45cefd34efbb66e39a22101443f4060809b8fc29c5eebdcee0e"
@subpackage("libiptcdata-devel")
def _devel(self):
return self.default_devel(extra = ["usr/share/gtk-doc"])
| pkgname = 'libiptcdata'
pkgver = '1.0.4'
pkgrel = 0
build_style = 'gnu_configure'
hostmakedepends = ['pkgconf']
pkgdesc = 'Library for manipulating the IPTC metadata'
maintainer = 'q66 <q66@chimera-linux.org>'
license = 'LGPL-2.1-or-later'
url = 'http://libiptcdata.sourceforge.net'
source = f'$(SOURCEFORGE_SITE)/{pkgname}/{pkgname}-{pkgver}.tar.gz'
sha256 = '79f63b8ce71ee45cefd34efbb66e39a22101443f4060809b8fc29c5eebdcee0e'
@subpackage('libiptcdata-devel')
def _devel(self):
return self.default_devel(extra=['usr/share/gtk-doc']) |
# Created by Jennifer Langford on 3/24/22 for CMIT235 - Week 1 Assignment
# This is an ongoing effort weekly for the duration of this course.
# The program will be complete at the end of the course.
mySubList1 = [[1, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6], [2, 8, 4, 6, 7, 8, 9, 10, 11, 12, 12, 13]]
mySubList2 = [[0, -1, 3, 4, 4, 6, -2, 3, 1, 0, -20, -2], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15]]
mySubList3 = [[2, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1], [-1, -3, 44, 22, 4, 7, 7, 8, 9, 10, 11, 20]]
| my_sub_list1 = [[1, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6], [2, 8, 4, 6, 7, 8, 9, 10, 11, 12, 12, 13]]
my_sub_list2 = [[0, -1, 3, 4, 4, 6, -2, 3, 1, 0, -20, -2], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15]]
my_sub_list3 = [[2, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1], [-1, -3, 44, 22, 4, 7, 7, 8, 9, 10, 11, 20]] |
def productExceptSelf(nums: [int]) -> [int]:
n = len(nums)
result = [0] * n
result[0] = 1
for i in range(1,n) :
result[i] = result[i-1] * nums[i-1]
tmp = 1
for i in range(n-2,-1,-1) :
tmp *= nums[i+1]
result[i] = result[i] * tmp
return result
if __name__ == "__main__" :
nums = [1,2,3,4]
result = productExceptSelf(nums)
print(result)
| def product_except_self(nums: [int]) -> [int]:
n = len(nums)
result = [0] * n
result[0] = 1
for i in range(1, n):
result[i] = result[i - 1] * nums[i - 1]
tmp = 1
for i in range(n - 2, -1, -1):
tmp *= nums[i + 1]
result[i] = result[i] * tmp
return result
if __name__ == '__main__':
nums = [1, 2, 3, 4]
result = product_except_self(nums)
print(result) |
def simple_poll():
return {
"conversation": "conversation-key",
"start_state": {"uuid": "choice-1"},
"poll_metadata": {
"repeatable": True,
'delivery_class': 'ussd'
},
'channel_types': [],
"states": [
{
# these are common to all state types
"uuid": "choice-1", # name is unique
"name": "Message 1", # a friendly name for the user to see
"store_as": "message-1",
"type": "choice", # menu of options
"entry_endpoint": None, # null for the start state
"store_on_contact": True,
# choice specific
"text": "What is your favourite colour?",
"choice_endpoints": [ # these are actually also the endpoints
{"value": "value-1", "label": "Red", "uuid": "endpoint-1"},
{"value": "value-2", "label": "Blue", "uuid": "endpoint-2"}
],
},
{
"uuid": "freetext-1",
"name": "Message 2",
"store_as": "message-2",
"type": "freetext",
"store_on_contact": True,
"entry_endpoint": {"uuid": "endpoint-3"},
# freetext specific
"exit_endpoint": {"uuid": "endpoint-4"},
"text": "What is your name?",
},
{
"uuid": "end-1",
"name": "Ending 1",
"store_as": "ending-1",
"type": "end",
"store_on_contact": True,
"entry_endpoint": {"uuid": "endpoint-5"},
# end specific
"text": "Thank you for taking our survey",
},
],
"connections": [
{
"source": {"uuid": "endpoint-1"},
"target": {"uuid": "endpoint-3"},
},
{
"source": {"uuid": "endpoint-2"},
"target": {"uuid": "endpoint-5"}
},
{
"source": {"uuid": "endpoint-4"},
"target": {"uuid": "endpoint-5"}
},
],
}
| def simple_poll():
return {'conversation': 'conversation-key', 'start_state': {'uuid': 'choice-1'}, 'poll_metadata': {'repeatable': True, 'delivery_class': 'ussd'}, 'channel_types': [], 'states': [{'uuid': 'choice-1', 'name': 'Message 1', 'store_as': 'message-1', 'type': 'choice', 'entry_endpoint': None, 'store_on_contact': True, 'text': 'What is your favourite colour?', 'choice_endpoints': [{'value': 'value-1', 'label': 'Red', 'uuid': 'endpoint-1'}, {'value': 'value-2', 'label': 'Blue', 'uuid': 'endpoint-2'}]}, {'uuid': 'freetext-1', 'name': 'Message 2', 'store_as': 'message-2', 'type': 'freetext', 'store_on_contact': True, 'entry_endpoint': {'uuid': 'endpoint-3'}, 'exit_endpoint': {'uuid': 'endpoint-4'}, 'text': 'What is your name?'}, {'uuid': 'end-1', 'name': 'Ending 1', 'store_as': 'ending-1', 'type': 'end', 'store_on_contact': True, 'entry_endpoint': {'uuid': 'endpoint-5'}, 'text': 'Thank you for taking our survey'}], 'connections': [{'source': {'uuid': 'endpoint-1'}, 'target': {'uuid': 'endpoint-3'}}, {'source': {'uuid': 'endpoint-2'}, 'target': {'uuid': 'endpoint-5'}}, {'source': {'uuid': 'endpoint-4'}, 'target': {'uuid': 'endpoint-5'}}]} |
def lambda_handler(event, context, params=dict()):
return {
"statusCode": 200,
"body": 'Hello im second lambda!'
} | def lambda_handler(event, context, params=dict()):
return {'statusCode': 200, 'body': 'Hello im second lambda!'} |
def select_min_idx(arr, start, end):
min_idx = start
for i in range(start + 1, end):
if arr[min_idx] > arr[i]:
min_idx = i
return min_idx
def sort(arr):
n = len(arr)
for i in range(n):
min_idx = select_min_idx(arr, i, n)
arr[i], arr[min_idx] = arr[min_idx], arr[i]
| def select_min_idx(arr, start, end):
min_idx = start
for i in range(start + 1, end):
if arr[min_idx] > arr[i]:
min_idx = i
return min_idx
def sort(arr):
n = len(arr)
for i in range(n):
min_idx = select_min_idx(arr, i, n)
(arr[i], arr[min_idx]) = (arr[min_idx], arr[i]) |
class Solution:
def isMatch(self, s: str, p: str) -> bool:
T = [[False] * (len(p) + 1) for _ in range(len(s) + 1)]
T[0][0] = True
for j in range(len(p)):
if p[j] == "*":
T[0][j+1] = T[0][j]
for i in range(len(s)):
for j in range(len(p)):
if s[i] == p[j] or p[j] == "?":
T[i+1][j+1] = T[i][j]
elif p[j] == "*":
T[i+1][j+1] = T[i+1][j] or T[i][j+1]
else:
continue
return T[-1][-1]
if __name__ == '__main__':
so = Solution()
s = "aa"
p = "a"
assert so.isMatch(s, p) == False
s = "aa"
p = "*"
assert so.isMatch(s, p) == True
s = "cb"
p = "?a"
assert so.isMatch(s, p) == False
s = "adceb"
p = "*a*b"
assert so.isMatch(s, p) == True
s = "acdcb"
p = "a*c?b"
assert so.isMatch(s, p) == False | class Solution:
def is_match(self, s: str, p: str) -> bool:
t = [[False] * (len(p) + 1) for _ in range(len(s) + 1)]
T[0][0] = True
for j in range(len(p)):
if p[j] == '*':
T[0][j + 1] = T[0][j]
for i in range(len(s)):
for j in range(len(p)):
if s[i] == p[j] or p[j] == '?':
T[i + 1][j + 1] = T[i][j]
elif p[j] == '*':
T[i + 1][j + 1] = T[i + 1][j] or T[i][j + 1]
else:
continue
return T[-1][-1]
if __name__ == '__main__':
so = solution()
s = 'aa'
p = 'a'
assert so.isMatch(s, p) == False
s = 'aa'
p = '*'
assert so.isMatch(s, p) == True
s = 'cb'
p = '?a'
assert so.isMatch(s, p) == False
s = 'adceb'
p = '*a*b'
assert so.isMatch(s, p) == True
s = 'acdcb'
p = 'a*c?b'
assert so.isMatch(s, p) == False |
# -*- coding: utf-8 -*-
# Coded by Sungwook Kim
# 2020-12-24
# IDE: Jupyter Notebook
x, y, w, h = map(int, input().split())
if y / h > 0.5:
t1 = h - y
else:
t1 = y
if x / w > 0.5:
t2 = w - x
else:
t2 = x
if t1 > t2:
print(t2)
else:
print(t1) | (x, y, w, h) = map(int, input().split())
if y / h > 0.5:
t1 = h - y
else:
t1 = y
if x / w > 0.5:
t2 = w - x
else:
t2 = x
if t1 > t2:
print(t2)
else:
print(t1) |
class DirTemplateException(Exception):
pass
class TemplateLineError(DirTemplateException):
def __init__(self, filename, error_type, lineno, message, source):
super(TemplateLineError, self).__init__((
"{error_type} in {filename} on line {lineno}:\n\n"
"{message}\n\n{source}\n"
).format(
filename=filename,
error_type=error_type,
lineno=lineno,
message=message,
source=source,
))
class TemplateError(DirTemplateException):
def __init__(self, filename, error_type, message):
super(TemplateError, self).__init__((
"{error_type} in {filename}: {message}"
).format(
filename=filename,
error_type=error_type,
message=message,
))
| class Dirtemplateexception(Exception):
pass
class Templatelineerror(DirTemplateException):
def __init__(self, filename, error_type, lineno, message, source):
super(TemplateLineError, self).__init__('{error_type} in {filename} on line {lineno}:\n\n{message}\n\n{source}\n'.format(filename=filename, error_type=error_type, lineno=lineno, message=message, source=source))
class Templateerror(DirTemplateException):
def __init__(self, filename, error_type, message):
super(TemplateError, self).__init__('{error_type} in {filename}: {message}'.format(filename=filename, error_type=error_type, message=message)) |
person_1 = {
'first_name': 'Tony',
'last_name': 'Macaroni',
'age': 26,
'state': 'PA',
}
person_2 = {
'first_name': 'Betsy',
'last_name': 'Bolognese',
'age': 34,
'state': 'KS',
}
person_3 = {
'first_name': 'Peter',
'last_name': 'Pepperoni',
'age': 24,
'state': 'NY',
}
friends = {
person_1['first_name']: person_1,
person_2['first_name']: person_2,
person_3['first_name']: person_3
}
print(friends)
peter = friends['Peter']
print(peter['last_name'])
| person_1 = {'first_name': 'Tony', 'last_name': 'Macaroni', 'age': 26, 'state': 'PA'}
person_2 = {'first_name': 'Betsy', 'last_name': 'Bolognese', 'age': 34, 'state': 'KS'}
person_3 = {'first_name': 'Peter', 'last_name': 'Pepperoni', 'age': 24, 'state': 'NY'}
friends = {person_1['first_name']: person_1, person_2['first_name']: person_2, person_3['first_name']: person_3}
print(friends)
peter = friends['Peter']
print(peter['last_name']) |
input_ = [int(element) for element in input().split(" ")]
# print(input_)
n = input_[0]
acceptable_lengths = input_[1:]
#print(n)
#print(acceptable_lengths)
acceptable_lengths.sort()
max_possible_pieces = n // acceptable_lengths[0]
print(max_possible_pieces) | input_ = [int(element) for element in input().split(' ')]
n = input_[0]
acceptable_lengths = input_[1:]
acceptable_lengths.sort()
max_possible_pieces = n // acceptable_lengths[0]
print(max_possible_pieces) |
## The modelling for generations
# define bus types
AC = 1 # Critical AC generators
UAC = 2 # Non-critical AC generators
DC = 3 # Critical DC generators
UDC = 4 # Critical DC generators
# define the indices
GEN_BUS = 0 # bus number
GEN_TYPE = 1 # type of generators
PG = 2 # Pg, real power output (W)
QG = 3 # Qg, reactive power output (VAr)
RG = 4 # Rg, reserve set point for generators (W, a symmetry up and down reserve is provided.)
QMAX = 5 # Qmax, maximum reactive power output at Pmin (VAr)
QMIN = 6 # Qmin, minimum reactive power output at Pmin (VAr)
SMAX = 7 # Qmin, minimum reactive power output at Pmin (VAr)
VG = 8 # Vg, voltage magnitude setpoint (p.u.)
MBASE = 9 # mBase, total MVA base of this machine, defaults to baseMVA
GEN_STATUS = 10 # status, 1 - machine in service, 0 - machine out of service
PMAX = 11 # Pmax, maximum real power output (MW)
PMIN = 12 # Pmin, minimum real power output (MW)
PC1 = 13 # Pc1, lower real power output of PQ capability curve (MW)
PC2 = 14 # Pc2, upper real power output of PQ capability curve (MW)
QC1MIN = 15 # Qc1min, minimum reactive power output at Pc1 (MVAr)
QC1MAX = 16 # Qc1max, maximum reactive power output at Pc1 (MVAr)
QC2MIN = 17 # Qc2min, minimum reactive power output at Pc2 (MVAr)
QC2MAX = 18 # Qc2max, maximum reactive power output at Pc2 (MVAr)
RAMP_AGC = 19 # ramp rate for load following/AGC (MW/min)
RAMP_10 = 20 # ramp rate for 10 minute reserves (MW)
RAMP_30 = 21 # ramp rate for 30 minute reserves (MW)
RAMP_Q = 22 # ramp rate for reactive power (2 sec timescale) (MVAr/min)
APF = 23 # area participation factor
# included in opf solution, not necessarily in input
# assume objective function has units, u
MU_PMAX = 24 # Kuhn-Tucker multiplier on upper Pg limit (u/MW)
MU_PMIN = 25 # Kuhn-Tucker multiplier on lower Pg limit (u/MW)
MU_QMAX = 26 # Kuhn-Tucker multiplier on upper Qg limit (u/MVAr)
MU_QMIN = 27 # Kuhn-Tucker multiplier on lower Qg limit (u/MVAr)
# Note: When a generator's PQ capability curve is not simply a box and the
# upper Qg limit is binding, the multiplier on this constraint is split into
# it's P and Q components and combined with the appropriate MU_Pxxx and
# MU_Qxxx values. Likewise for the lower Q limits.
| ac = 1
uac = 2
dc = 3
udc = 4
gen_bus = 0
gen_type = 1
pg = 2
qg = 3
rg = 4
qmax = 5
qmin = 6
smax = 7
vg = 8
mbase = 9
gen_status = 10
pmax = 11
pmin = 12
pc1 = 13
pc2 = 14
qc1_min = 15
qc1_max = 16
qc2_min = 17
qc2_max = 18
ramp_agc = 19
ramp_10 = 20
ramp_30 = 21
ramp_q = 22
apf = 23
mu_pmax = 24
mu_pmin = 25
mu_qmax = 26
mu_qmin = 27 |
def addition (a,b):
return a + b
def substraction (a,b):
return a - b
def multiplication (a,b):
return a * b
def division (a,b):
return a / b
first_number=int(input("Enter the first number: "))
second_number=int(input("Enter the second number: "))
print("The sum of your two numbers is: " + str(addition(first_number,second_number)))
print("The difference of your two numbers is: " + str(substraction(first_number,second_number)))
print("The product of your two numbers is: " + str(multiplication(first_number,second_number)))
print("The division of your two numbers is: " + str(division(first_number,second_number)))
# arr = list()
# for i in range(5):
# val=int (input("Enter a number:"))
# arr.append(val)
# print(arr)
# choice = input("Enter p for sum, s for substraction, m for multiplication, d for division, 5 for sum and count ")
# if choice == "p":
# print(arr[0], " + ", arr[1], " = ", addition(arr[0],arr[1]))
# elif choice == "s":
# print(arr[0], " - ", arr[1], " = ", substraction(arr[0],arr[1]))
# elif choice == "m":
# print(arr[0], " * ", arr[1], " = ", multiplication(arr[0],arr[1]))
# elif choice == "d":
# print(arr[0], " / ", arr[1], " = ", division(arr[0],arr[1]))
# elif choice == "5":
# print ("The sum and the count are: ", sum(arr)," , " , len(arr) )
# else:
# print ("Oops, try again") | def addition(a, b):
return a + b
def substraction(a, b):
return a - b
def multiplication(a, b):
return a * b
def division(a, b):
return a / b
first_number = int(input('Enter the first number: '))
second_number = int(input('Enter the second number: '))
print('The sum of your two numbers is: ' + str(addition(first_number, second_number)))
print('The difference of your two numbers is: ' + str(substraction(first_number, second_number)))
print('The product of your two numbers is: ' + str(multiplication(first_number, second_number)))
print('The division of your two numbers is: ' + str(division(first_number, second_number))) |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
if head == None or head.next == None:
return head
else:
nodeList = []
lastNode = head
isDuplicate = False
head = head.next
while True:
if head == None:
if not isDuplicate:
nodeList.append(lastNode)
break
if head.val == lastNode.val:
isDuplicate = True
else:
if not isDuplicate:
nodeList.append(lastNode)
lastNode = head
isDuplicate = False
head = head.next
if len(nodeList) == 0:
return None
nodeLen = len(nodeList)
for i in range(nodeLen):
if i == nodeLen - 1:
nodeList[ i ].next = None
else:
nodeList[ i ].next = nodeList[ i + 1 ]
return nodeList[ 0 ]
| class Solution:
def delete_duplicates(self, head: ListNode) -> ListNode:
if head == None or head.next == None:
return head
else:
node_list = []
last_node = head
is_duplicate = False
head = head.next
while True:
if head == None:
if not isDuplicate:
nodeList.append(lastNode)
break
if head.val == lastNode.val:
is_duplicate = True
else:
if not isDuplicate:
nodeList.append(lastNode)
last_node = head
is_duplicate = False
head = head.next
if len(nodeList) == 0:
return None
node_len = len(nodeList)
for i in range(nodeLen):
if i == nodeLen - 1:
nodeList[i].next = None
else:
nodeList[i].next = nodeList[i + 1]
return nodeList[0] |
# Function to do insertion sort
def insertionSort(arr):
# Traverse through 1 to len(arr)
for main_index in range(1, len(arr)):
reference_value = arr[main_index]
# Move elements of arr[0..i-1], that are
# greater than key, to one position ahead
# of their current position
working_index = main_index-1
while working_index >=0:
if arr[working_index+1]<arr[working_index]:
arr[working_index+1], arr[working_index] = arr[working_index], arr[working_index+1]
working_index -= 1
# Driver code to test above
arr = [6, 8, 1, 4, 10, 7, 8, 9, 3, 2, 5]
insertionSort(arr)
print ("Sorted array is:")
print(arr)
| def insertion_sort(arr):
for main_index in range(1, len(arr)):
reference_value = arr[main_index]
working_index = main_index - 1
while working_index >= 0:
if arr[working_index + 1] < arr[working_index]:
(arr[working_index + 1], arr[working_index]) = (arr[working_index], arr[working_index + 1])
working_index -= 1
arr = [6, 8, 1, 4, 10, 7, 8, 9, 3, 2, 5]
insertion_sort(arr)
print('Sorted array is:')
print(arr) |
def broken_function_with_message(error):
a_message = ""
try:
raise error("A message ?")
except error as err:
a_message += str(err)
finally:
a_message += "All good"
a_message += "I continue running !"
return a_message
def broken_function_without_message(error):
a_message = ""
try:
raise error()
except error as err:
a_message += str(err)
finally:
a_message += "All good"
a_message += "I continue running !"
return a_message
| def broken_function_with_message(error):
a_message = ''
try:
raise error('A message ?')
except error as err:
a_message += str(err)
finally:
a_message += 'All good'
a_message += 'I continue running !'
return a_message
def broken_function_without_message(error):
a_message = ''
try:
raise error()
except error as err:
a_message += str(err)
finally:
a_message += 'All good'
a_message += 'I continue running !'
return a_message |
#TEMA:IF
###########################################################################
def evalucion(nota):
valoracion = "Aprobado"
if nota<5:
valoracion="Suspenso"
return valoracion
###########################################################################
#Llamada de la funcion
print("Ejemplo #1")
print(4)
print()
print()
print()
###########################################################################
#Tomar valor del teclado
print("Ejemplo #2")
notaAlumno= input("Introduce la nota del alumno: ") #Coge el valor por consola
notaAlumno = int(notaAlumno) #Convierte el valor a entero
print(evalucion(notaAlumno))
print()
print()
print()
##########################################
##Importantes el Ambito de las Variables##
##########################################
| def evalucion(nota):
valoracion = 'Aprobado'
if nota < 5:
valoracion = 'Suspenso'
return valoracion
print('Ejemplo #1')
print(4)
print()
print()
print()
print('Ejemplo #2')
nota_alumno = input('Introduce la nota del alumno: ')
nota_alumno = int(notaAlumno)
print(evalucion(notaAlumno))
print()
print()
print() |
# Excepciones => try ... except ... finally
try:
numero = int(input("Ingrese un numero"))
# numero/0
except ValueError :
print('Tiene que ser un numero')
# except ZeroDivisionError:
# print('No se puede hacer la division entre cero')
except:
print('Hubo un error')
# else => solamente va a funcionar si no entro a ningun except
else:
print('Todo fue bien')
# el finally siempre va despues del except y se va a ejecutar si hubo un error o no hubo error
finally:
print('Yo siempre me ejecuto')
print('Yo soy otra linea de codigo') | try:
numero = int(input('Ingrese un numero'))
except ValueError:
print('Tiene que ser un numero')
except:
print('Hubo un error')
else:
print('Todo fue bien')
finally:
print('Yo siempre me ejecuto')
print('Yo soy otra linea de codigo') |
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
DB_NAME = 'ugc_db'
BENCHMARK_ITERATIONS = 10
| mongo_host = 'localhost'
mongo_port = 27017
db_name = 'ugc_db'
benchmark_iterations = 10 |
data = input().split("\\")
name, extension = data[-1].split(".")
print(f"File name: {name}")
print(f"File extension: {extension}")
| data = input().split('\\')
(name, extension) = data[-1].split('.')
print(f'File name: {name}')
print(f'File extension: {extension}') |
WIN_SIZE = 25
def valid_number(window, number):
for n in window:
dif = abs(number-n)
if n != dif and dif in window:
return True
return False
def find_wrong(input):
window = input[:WIN_SIZE]
i = 1
for number in input[WIN_SIZE:]:
if not valid_number(window, number):
return number
else:
window = input[i:WIN_SIZE+i]
i += 1
return False
def find_contiguous(input, wrong):
for size in range(2, len(input)):
window = input[:size]
i = 1
while i < len(input)-size:
if sum(window) == wrong:
return window
i += 1
window = input[i:size+i]
return False
with open("day_09/input.txt", "r") as file:
input = list(map(int, file.read().strip().splitlines()))
wrong = find_wrong(input)
print("WRONG NUMBER:", wrong)
wrong_set = find_contiguous(input, wrong)
print(min(wrong_set)+max(wrong_set))
| win_size = 25
def valid_number(window, number):
for n in window:
dif = abs(number - n)
if n != dif and dif in window:
return True
return False
def find_wrong(input):
window = input[:WIN_SIZE]
i = 1
for number in input[WIN_SIZE:]:
if not valid_number(window, number):
return number
else:
window = input[i:WIN_SIZE + i]
i += 1
return False
def find_contiguous(input, wrong):
for size in range(2, len(input)):
window = input[:size]
i = 1
while i < len(input) - size:
if sum(window) == wrong:
return window
i += 1
window = input[i:size + i]
return False
with open('day_09/input.txt', 'r') as file:
input = list(map(int, file.read().strip().splitlines()))
wrong = find_wrong(input)
print('WRONG NUMBER:', wrong)
wrong_set = find_contiguous(input, wrong)
print(min(wrong_set) + max(wrong_set)) |
class CustomTextSummarizer(BaseTextSummarizer):
def __init__ (self, model_key, language):
self._tokenizer = AutoTokenizer.from_pretrained(model_key)
self._language = language
self._model = AutoModelForSeq2SeqLM.from_pretrained(model_key)
self._device = 'cuda' if bool(strtobool(os.getenv('USE_GPU'))) else 'cpu'
def __get_chunk_text(self, text):
sentences = [ s + ' ' for s in sentence_segmentation(text, minimum_n_words_to_accept_sentence=1, language=self._language) ]
chunks = []
chunk = ''
length = 0
for sentence in sentences:
tokenized_sentence = self._tokenizer.encode(sentence, truncation=False, max_length=None, return_tensors='pt') [0]
if len(tokenized_sentence) > self._tokenizer.model_max_length:
continue
length += len(tokenized_sentence)
if length <= self._tokenizer.model_max_length:
chunk = chunk + sentence
else:
chunks.append(chunk.strip())
chunk = sentence
length = len(tokenized_sentence)
if len(chunk) > 0:
chunks.append(chunk.strip())
return chunks
def __get_clean_text(self, text):
if text.count('.') == 0:
return text.strip()
end_index = text.rindex('.') + 1
return text[0 : end_index].strip()
def summarize(self, text, *args, **kwargs):
chunk_texts = self.__get_chunk_text(text)
chunk_summaries = []
for chunk_text in chunk_texts:
input_tokenized = self._tokenizer.encode(chunk_text, return_tensors='pt')
input_tokenized = input_tokenized.to(self._device)
summary_ids = self._model.to(self._device).generate(input_tokenized, length_penalty=3.0, min_length = int(0.2 * len(chunk_text)), max_length = int(0.3 * len(chunk_text)), early_stopping=True, num_beams=5, no_repeat_ngram_size=2)
output = [self._tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True) for g in summary_ids]
chunk_summaries.append(output)
summaries = [ self.__get_clean_text(text) for chunk_summary in chunk_summaries for text in chunk_summary ]
return summaries
| class Customtextsummarizer(BaseTextSummarizer):
def __init__(self, model_key, language):
self._tokenizer = AutoTokenizer.from_pretrained(model_key)
self._language = language
self._model = AutoModelForSeq2SeqLM.from_pretrained(model_key)
self._device = 'cuda' if bool(strtobool(os.getenv('USE_GPU'))) else 'cpu'
def __get_chunk_text(self, text):
sentences = [s + ' ' for s in sentence_segmentation(text, minimum_n_words_to_accept_sentence=1, language=self._language)]
chunks = []
chunk = ''
length = 0
for sentence in sentences:
tokenized_sentence = self._tokenizer.encode(sentence, truncation=False, max_length=None, return_tensors='pt')[0]
if len(tokenized_sentence) > self._tokenizer.model_max_length:
continue
length += len(tokenized_sentence)
if length <= self._tokenizer.model_max_length:
chunk = chunk + sentence
else:
chunks.append(chunk.strip())
chunk = sentence
length = len(tokenized_sentence)
if len(chunk) > 0:
chunks.append(chunk.strip())
return chunks
def __get_clean_text(self, text):
if text.count('.') == 0:
return text.strip()
end_index = text.rindex('.') + 1
return text[0:end_index].strip()
def summarize(self, text, *args, **kwargs):
chunk_texts = self.__get_chunk_text(text)
chunk_summaries = []
for chunk_text in chunk_texts:
input_tokenized = self._tokenizer.encode(chunk_text, return_tensors='pt')
input_tokenized = input_tokenized.to(self._device)
summary_ids = self._model.to(self._device).generate(input_tokenized, length_penalty=3.0, min_length=int(0.2 * len(chunk_text)), max_length=int(0.3 * len(chunk_text)), early_stopping=True, num_beams=5, no_repeat_ngram_size=2)
output = [self._tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True) for g in summary_ids]
chunk_summaries.append(output)
summaries = [self.__get_clean_text(text) for chunk_summary in chunk_summaries for text in chunk_summary]
return summaries |
class Solution:
def updateMatrix(self, matrix: List[List[int]]) -> List[List[int]]:
m, n = len(matrix), len(matrix[0])
queue = collections.deque()
for i, row in enumerate(matrix):
for j, val in enumerate(row):
if val:
matrix[i][j] = math.inf
else:
queue.append((i, j))
while queue:
i, j = queue.popleft()
cost = matrix[i][j] + 1
for newi, newj in (i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1):
if 0 <= newi < m and 0 <= newj < n and matrix[newi][newj] > cost:
queue.append((newi, newj))
matrix[newi][newj] = cost
return matrix
| class Solution:
def update_matrix(self, matrix: List[List[int]]) -> List[List[int]]:
(m, n) = (len(matrix), len(matrix[0]))
queue = collections.deque()
for (i, row) in enumerate(matrix):
for (j, val) in enumerate(row):
if val:
matrix[i][j] = math.inf
else:
queue.append((i, j))
while queue:
(i, j) = queue.popleft()
cost = matrix[i][j] + 1
for (newi, newj) in ((i - 1, j), (i + 1, j), (i, j - 1), (i, j + 1)):
if 0 <= newi < m and 0 <= newj < n and (matrix[newi][newj] > cost):
queue.append((newi, newj))
matrix[newi][newj] = cost
return matrix |
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'depot_tools/bot_update',
'depot_tools/gclient',
'depot_tools/git',
'recipe_engine/context',
'recipe_engine/path',
'recipe_engine/properties',
'recipe_engine/python',
'recipe_engine/raw_io',
'recipe_engine/step',
'webrtc',
]
def RunSteps(api):
api.gclient.set_config('webrtc')
# Make sure the checkout contains all deps for all platforms.
for os in ['linux', 'android', 'mac', 'ios', 'win', 'unix']:
api.gclient.c.target_os.add(os)
step_result = api.python(
'check roll status',
api.package_repo_resource('scripts', 'tools', 'pycurl.py'),
args=['https://webrtc-roll-cr-rev-status.appspot.com/status'],
stdout=api.raw_io.output_text(),
step_test_data=lambda: api.raw_io.test_api.stream_output(
'1', stream='stdout')
)
step_result.presentation.logs['stdout'] = step_result.stdout.splitlines()
if step_result.stdout.strip() != '1':
step_result.presentation.step_text = 'Rolling deactivated'
return
else:
step_result.presentation.step_text = 'Rolling activated'
api.webrtc.checkout()
api.gclient.runhooks()
with api.context(cwd=api.path['checkout']):
# Enforce a clean state, and discard any local commits from previous runs.
api.git('checkout', '-f', 'master')
api.git('pull', 'origin', 'master')
api.git('clean', '-ffd')
# Run the roll script. It will take care of branch creation, modifying DEPS,
# uploading etc. It will also delete any previous roll branch.
api.python(
'autoroll DEPS',
api.path['checkout'].join('tools_webrtc', 'autoroller', 'roll_deps.py'),
['--clean', '--verbose'],
)
def GenTests(api):
yield (
api.test('rolling_activated') +
api.properties.generic(mastername='client.webrtc.fyi',
buildername='Auto-roll - WebRTC DEPS')
)
yield (api.test('rolling_deactivated') +
api.properties.generic(mastername='client.webrtc.fyi',
buildername='Auto-roll - WebRTC DEPS') +
api.override_step_data('check roll status',
api.raw_io.stream_output('0', stream='stdout'))
)
| deps = ['depot_tools/bot_update', 'depot_tools/gclient', 'depot_tools/git', 'recipe_engine/context', 'recipe_engine/path', 'recipe_engine/properties', 'recipe_engine/python', 'recipe_engine/raw_io', 'recipe_engine/step', 'webrtc']
def run_steps(api):
api.gclient.set_config('webrtc')
for os in ['linux', 'android', 'mac', 'ios', 'win', 'unix']:
api.gclient.c.target_os.add(os)
step_result = api.python('check roll status', api.package_repo_resource('scripts', 'tools', 'pycurl.py'), args=['https://webrtc-roll-cr-rev-status.appspot.com/status'], stdout=api.raw_io.output_text(), step_test_data=lambda : api.raw_io.test_api.stream_output('1', stream='stdout'))
step_result.presentation.logs['stdout'] = step_result.stdout.splitlines()
if step_result.stdout.strip() != '1':
step_result.presentation.step_text = 'Rolling deactivated'
return
else:
step_result.presentation.step_text = 'Rolling activated'
api.webrtc.checkout()
api.gclient.runhooks()
with api.context(cwd=api.path['checkout']):
api.git('checkout', '-f', 'master')
api.git('pull', 'origin', 'master')
api.git('clean', '-ffd')
api.python('autoroll DEPS', api.path['checkout'].join('tools_webrtc', 'autoroller', 'roll_deps.py'), ['--clean', '--verbose'])
def gen_tests(api):
yield (api.test('rolling_activated') + api.properties.generic(mastername='client.webrtc.fyi', buildername='Auto-roll - WebRTC DEPS'))
yield (api.test('rolling_deactivated') + api.properties.generic(mastername='client.webrtc.fyi', buildername='Auto-roll - WebRTC DEPS') + api.override_step_data('check roll status', api.raw_io.stream_output('0', stream='stdout'))) |
MODEL_BUCKET = 'clothing-08-04-2019'
MODEL_PATH = 'classifier/net.p'
PATH_DATA = 'data'
PORT = 8080
LABELS = ('back', 'front', 'other', 'packshot', 'side') | model_bucket = 'clothing-08-04-2019'
model_path = 'classifier/net.p'
path_data = 'data'
port = 8080
labels = ('back', 'front', 'other', 'packshot', 'side') |
class Entity(dict):
identity: int = 0
def __repr__(self):
return f"<Entity-{self.identity}:{super().__repr__()}>"
| class Entity(dict):
identity: int = 0
def __repr__(self):
return f'<Entity-{self.identity}:{super().__repr__()}>' |
# odc module, used to simulate the C++ functions exported by PyPort
# "LIs:log"
def log(guid, level, message):
print("Log - Guid - {} - Level {} - Message - {}".format(guid, level, message))
return
# "LsIss:PublishEvent"
# Same format as Event
def PublishEvent(guid, EventType, ODCIndex, Quality, PayLoad ):
print("Publish Event - Guid - {} - {} {} {}".format(guid, EventType, ODCIndex, Quality, PayLoad))
return True
# "LII:SetTimer"
def SetTimer(guid, id, milliseconds):
print("SetTimer - Guid - {} - ID {} - Delay - {}".format(guid, id, milliseconds))
return
# "L:GetNextEvent"
def GetNextEvent(guid):
print("GetNextEvent - Guid - {} ".format(guid))
return "Binary",0,0,"|ONLINE|","1","Dummy"
# "L:GetEventQueueSize"
def GetEventQueueSize(guid):
print("GetEventQueueSize - Guid - {} ".format(guid))
return 181 | def log(guid, level, message):
print('Log - Guid - {} - Level {} - Message - {}'.format(guid, level, message))
return
def publish_event(guid, EventType, ODCIndex, Quality, PayLoad):
print('Publish Event - Guid - {} - {} {} {}'.format(guid, EventType, ODCIndex, Quality, PayLoad))
return True
def set_timer(guid, id, milliseconds):
print('SetTimer - Guid - {} - ID {} - Delay - {}'.format(guid, id, milliseconds))
return
def get_next_event(guid):
print('GetNextEvent - Guid - {} '.format(guid))
return ('Binary', 0, 0, '|ONLINE|', '1', 'Dummy')
def get_event_queue_size(guid):
print('GetEventQueueSize - Guid - {} '.format(guid))
return 181 |
class Solution:
def transformArray(self, arr: List[int]) -> List[int]:
diff = True
while diff:
curr = arr[:]
diff = False
for i in range(1, len(arr) - 1):
if arr[i] < arr[i - 1] and arr[i] < arr[i + 1]:
curr[i] += 1
diff = True
elif arr[i] > arr[i - 1] and arr[i] > arr[i + 1]:
curr[i] -= 1
diff = True
arr = curr
return arr
| class Solution:
def transform_array(self, arr: List[int]) -> List[int]:
diff = True
while diff:
curr = arr[:]
diff = False
for i in range(1, len(arr) - 1):
if arr[i] < arr[i - 1] and arr[i] < arr[i + 1]:
curr[i] += 1
diff = True
elif arr[i] > arr[i - 1] and arr[i] > arr[i + 1]:
curr[i] -= 1
diff = True
arr = curr
return arr |
class Solution:
def threeSum(self, nums) :
ans=[]
nums.sort()
if nums==[]:
return []
for i in range(len(nums)-1):
j=i+1
k=len(nums)-1
while j<k:
x = nums[i]+nums[j]+nums[k]
if x==0:
y=[nums[i],nums[j],nums[k]]
ans.append(y)
j+=1
k-=1
else:
if x>0:
k-=1
else:
j+=1
ans.sort()
out=[]
# for removing the duplicate triplates
for i in range(1,len(ans)):
if ans[i-1]!=ans[i]:
out.append(ans[i-1])
if ans !=[]:
out.append(ans[-1])
return out
d= Solution()
d=d.threeSum([-1,0,1,2,-1,-4,0,0,0])
print(d) | class Solution:
def three_sum(self, nums):
ans = []
nums.sort()
if nums == []:
return []
for i in range(len(nums) - 1):
j = i + 1
k = len(nums) - 1
while j < k:
x = nums[i] + nums[j] + nums[k]
if x == 0:
y = [nums[i], nums[j], nums[k]]
ans.append(y)
j += 1
k -= 1
elif x > 0:
k -= 1
else:
j += 1
ans.sort()
out = []
for i in range(1, len(ans)):
if ans[i - 1] != ans[i]:
out.append(ans[i - 1])
if ans != []:
out.append(ans[-1])
return out
d = solution()
d = d.threeSum([-1, 0, 1, 2, -1, -4, 0, 0, 0])
print(d) |
class DomainException(Exception):
pass
class DomainIdError(DomainException):
pass
class DomainNotFoundError(DomainException):
pass
def domain_id_error(domainname, id):
if (id == None):
return get_id_error(domainname, "None", "ID is missing!")
else:
return get_id_error(domainname, id, "ID could not be found!")
def get_id_error(domainname, id, message):
message = domainname + "ID-" + str(id) + ": " + message
return DomainIdError(message)
def domain_not_found_error(domain):
domaintype = type(domain)
return get_domain_error(domaintype, " not found!")
def get_domain_error(domaintype, message):
message = str(domaintype.__name__) + message
return DomainNotFoundError(message) | class Domainexception(Exception):
pass
class Domainiderror(DomainException):
pass
class Domainnotfounderror(DomainException):
pass
def domain_id_error(domainname, id):
if id == None:
return get_id_error(domainname, 'None', 'ID is missing!')
else:
return get_id_error(domainname, id, 'ID could not be found!')
def get_id_error(domainname, id, message):
message = domainname + 'ID-' + str(id) + ': ' + message
return domain_id_error(message)
def domain_not_found_error(domain):
domaintype = type(domain)
return get_domain_error(domaintype, ' not found!')
def get_domain_error(domaintype, message):
message = str(domaintype.__name__) + message
return domain_not_found_error(message) |
# Python Resources
# The purpose of this document is to direct you to resources that you may find useful if you decide to do a deeper dive into Python.
# This course is not meant to be an introduction to programming, nor an introduction to Python, but if you find yourself interested
# in exploring Python further, or feel as if this is a useful skill, this document aims to direct you to resources that you may find useful.
# If you have a background in Python or programming, a style guides are included below to show how Python may differ from other programming
# languages or give you a launching point for diving deeper into more advanced packages. This course does not endorse the use or non-use of
# any particular resource, but the author has found these resources useful in their exploration of programming and Python in particular
#
# The Python Documentation
# Any reference that does not begin with the Python documentation would not be complete. The authors of the language, as well as the community
# that supports it, have developed a great set of tutorials, documentation, and references around Python. When in doubt, this is often the first
# place that you should look if you run into a scary error or would like to learn more about a specific function. The documentation can be found
# here: Python Documentation
#
# Python Programming Introductions
# Below are resources to help you along your way in learning Python. While it is great to consume material, in programming there is no substitute
# for actually writing code. For every hour that you spend learning, you should spend about twice that amount of time writing code for cool
# problems or working out examples. Coding is best learned through actually coding!
#
# Coursera has several offerings for Python that you can take in addition to this course. These courses will go into depth into Python
# programming and how to use it in an applied setting
# Code Academy is another resources that is great for learning Python (and other programming languages). While not as focused as Cousera,
# this is a quick way to get up-and-running with Python YouTube is another great resource for online learning and there are several "courses"
# for learning Python. We recommend trying several sets of videos to see which you like best and using multiple video series to
# learn since each will present the material in a slightly different way There are tens of books on programming in Python
# that are great if you prefer to read. More so than the other resources, be sure to code what you learn. It is easy to read about
# coding, but you really learn to code by coding! .If you have a background in coding, the authors have found the tutorial at Tutorials Point to be useful in getting started with Python. This tutorial assumes that you have some background in coding in another language
# Cheatsheets and References .There are a variety of one-pagers and cheat-sheets available for Python that summarize the
# language in a few simple pages. These resources tend to be more aimed at someone who knows the language, or has experience in the language,
# but would like a refresher course in how the language works.
#
# Cheatsheet for Numpy
# Cheatsheet for Datawrangling
# Cheatsheet for Pandas
# Cheatsheet for SciPy
# Cheatsheet for Matplotlib
# Python Style Guides
# As you learn to code, you will find that you will begin to develop your own style. Sometimes this is good. Most times, this
# can be detrimental to your code readability and, worse, can hinder you from finding bugs in your own code in extreme cases.
#
# It is best to learn good coding habits from the beginning and the Google Style Guide is a great place to start. We will
# mention some of these best practices here.
#
# Consistent Indenting
# Python will generally 'yell' at you if your indenting is incorrect. It is good to use an editor that takes care of this for you.
# In general, four spaces are preferred for indenting and you should not mix tabs and spaces.
# Good Indenting - four spaces are standard but consistiency is key
result = []
for x in range(10):
for y in range(5):
if x * y > 10:
result.append((x, y))
print (result)
# Bad indenting
result = []
for x in range(10):
for y in range(5):
if x * y > 10:
result.append((x, y))
print (result)
## Commenting
# Comments seem weird when you first begin programming - why would I include 'code' that doesn't run? Comments are probably
# some of the most important aspects of code. They help other read code that is difficult for them to understand, and they,
# more importantly, are helpful for yourself if you look at the code in a few weeks and need clarity on why you did something.
# Always comment and comment well.
################################################################################
# #
# Good Commenting #
# #
################################################################################
################################ Bad Commenting ################################
# My loop
for x in range(10):
print(x)
############################## Better Commenting ###############################
# Looping from zero to ten
for x in range(10):
print(x)
############################# Preferred Commenting #############################
# Print out the numbers from zero to ten
for x in range(10):
print(x)
################################################################################
# #
# Mixing Commenting Strategies #
# #
################################################################################
# Try not to mix commenting styles in the same blocks - just be consistient
########### Bad - mixing doc-strings commenting and line commenting ############
''' Printing one to five, a six, and then six to nine'''
for x in range(10):
# If x > 5, then print the value
if x > 5:
print(x)
else:
print(x + 1)
##################### Good - no mixing of comment types ########################
# Printing one to five, a six, and then six to nine
for x in range(10):
# If x > 5, then print the value
if x > 5:
print(x)
else:
print(x + 1)
## Line Length
# Try to avoid excessively long lines. Standard practice is to keep lines to no longer than 80 characters. While this is not a
# hard rule, it is a good practice to follow for readability
######################### Bad - This code is too long ##########################
my_random_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
############ Good - this code is wrapped to avoid excessive length #############
my_random_array2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8,
9, 10]
# White Space
# Utilizing Whitespace is a great way to improve the way that your code looks. In general the following can be helpful to
# improve the look of your code
#
# Try to space out your code and introduce whitespace to improve readability
# Use spacing to separate function arguments
# Do not over-do spacing. Too many spaces between code blocks makes it difficult to organize code well
################ Bad - this code has bad whitespace management #################
my_player = player()
player_attributes = get_player_attributes(my_player,height,weight, birthday)
player_attributes[0]*=12 # convert from feet to inches
player.shoot_ball()
########################## Good whitespace management ##########################
my_player = player()
player_attributes = get_player_attributes(my_player, height, weight, birthday)
# convert from feet to inches
player_attributes[0] *= 12
player.shoot_ball() | result = []
for x in range(10):
for y in range(5):
if x * y > 10:
result.append((x, y))
print(result)
result = []
for x in range(10):
for y in range(5):
if x * y > 10:
result.append((x, y))
print(result)
for x in range(10):
print(x)
for x in range(10):
print(x)
for x in range(10):
print(x)
' Printing one to five, a six, and then six to nine'
for x in range(10):
if x > 5:
print(x)
else:
print(x + 1)
for x in range(10):
if x > 5:
print(x)
else:
print(x + 1)
my_random_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
my_random_array2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
my_player = player()
player_attributes = get_player_attributes(my_player, height, weight, birthday)
player_attributes[0] *= 12
player.shoot_ball()
my_player = player()
player_attributes = get_player_attributes(my_player, height, weight, birthday)
player_attributes[0] *= 12
player.shoot_ball() |
#while loop
# while [condition]:
# [statements]
#else:
count =1
sum = 0
while count <=20:
sum=sum + count
count=count+1
print(sum)
sum1=0
for value in range(1,21):
pass
| count = 1
sum = 0
while count <= 20:
sum = sum + count
count = count + 1
print(sum)
sum1 = 0
for value in range(1, 21):
pass |
class Blueberry (object):
app_volume = 1.0
break_loop = False
@staticmethod
def sel_local_vol(new_vol):
Blueberry.app_volume = new_vol
@staticmethod
def gel_local_vol():
return Blueberry.app_volume
@staticmethod
def set_break_status(new_status):
Blueberry.break_loop = new_status
@staticmethod
def should_break():
return Blueberry.break_loop | class Blueberry(object):
app_volume = 1.0
break_loop = False
@staticmethod
def sel_local_vol(new_vol):
Blueberry.app_volume = new_vol
@staticmethod
def gel_local_vol():
return Blueberry.app_volume
@staticmethod
def set_break_status(new_status):
Blueberry.break_loop = new_status
@staticmethod
def should_break():
return Blueberry.break_loop |
# Contains many tic tac toe positions to test the solver
x_move_1 = [['X', '_', '_'],
['_', '_', '_'],
['_', '_', '_']]
x_move_2 = [['_', 'X', '_'],
['_', '_', '_'],
['_', '_', '_']]
x_move_3 = [['_', '_', '_'],
['_', 'X', '_'],
['_', '_', '_']]
x_wins_1 = [['X', 'O', '_'],
['_', '_', '_'],
['_', '_', '_']]
x_wins_2 = [['X', '_', 'O'],
['_', '_', '_'],
['_', '_', '_']]
x_wins_3 = [['X', '_', '_'],
['_', '_', 'O'],
['_', '_', '_']]
x_wins_4 = [['X', '_', '_'],
['_', '_', '_'],
['_', '_', 'O']]
o_only_move = [['X', '_', '_'],
['_', 'O', '_'],
['_', '_', '_']]
o_wins_1 = [['_', 'X', '_'],
['_', 'O', '_'],
['_', 'X', '_']]
o_wins_2 = [['O', 'X', '_'],
['_', '_', '_'],
['_', 'X', '_']]
o_wins_3 = [['O', 'X', 'X'],
['_', '_', '_'],
['_', '_', '_']]
| x_move_1 = [['X', '_', '_'], ['_', '_', '_'], ['_', '_', '_']]
x_move_2 = [['_', 'X', '_'], ['_', '_', '_'], ['_', '_', '_']]
x_move_3 = [['_', '_', '_'], ['_', 'X', '_'], ['_', '_', '_']]
x_wins_1 = [['X', 'O', '_'], ['_', '_', '_'], ['_', '_', '_']]
x_wins_2 = [['X', '_', 'O'], ['_', '_', '_'], ['_', '_', '_']]
x_wins_3 = [['X', '_', '_'], ['_', '_', 'O'], ['_', '_', '_']]
x_wins_4 = [['X', '_', '_'], ['_', '_', '_'], ['_', '_', 'O']]
o_only_move = [['X', '_', '_'], ['_', 'O', '_'], ['_', '_', '_']]
o_wins_1 = [['_', 'X', '_'], ['_', 'O', '_'], ['_', 'X', '_']]
o_wins_2 = [['O', 'X', '_'], ['_', '_', '_'], ['_', 'X', '_']]
o_wins_3 = [['O', 'X', 'X'], ['_', '_', '_'], ['_', '_', '_']] |
''' IMPLEMENTATION METHOD 2 (less common but easier)
HEAD TAIL
________ ________ ________ ________
| | | | | | | | | | | |
| None | |--->| a | |--->| b | |--->| c | |--->None
|______|_| |______|_| |______|_| |______|_|
Main Methods: isEmpty, addFirst, addLast, removeFirst, removeLast, makeEmpty
'''
# Exception when attempting to access an element from an empty container.
class EmptyLinkedList(Exception):
pass
class SingleLinkedList:
#-------------------------- nested _Node class --------------------------
class _Node:
__slots__ = '_element', '_next' # streamline memory for faster attribute access, and space savings in memory.
def __init__(self, element=None, next=None): # initialize node's fields
self._element = element # user's element
self._next = next # next node reference
#-------------------------- list constructor --------------------------
def __init__(self):
#Create empty LinkedList
self._head = self._tail = self._Node()
self._size = 0
#-------------------------- public accessors --------------------------
def __len__(self):
return self._size #Return the number of elements in the list.
def isEmpty(self):
return self._size==0 #Return True if list is empty.
def addFirst(self, element): #O(1)
self._head._element=element
self._head=self._Node(None,self._head)
self._size+=1
def addLast(self, element): #O(1)
self._tail._next=self._Node(element,None)
self._tail=self._tail._next
self._size+=1
def removeFirst(self): #O(1)
if self.isEmpty():
raise EmptyLinkedList()
e=self._head._next._element
self._head=self._head._next
self._head._element=None
self._size-=1
return e
def removeLast(self): #O(n)
if self.isEmpty():
raise EmptyLinkedList()
e=self._tail._element
n=self._head
while n._next!=self._tail:
n=n._next
self._tail=n
self._tail._next=None
self._size-=1
return e
def makeEmpty(self):
self._head = self._tail = self._Node()
self._size = 0
def getContent(self):
l=[]
n=self._head
while n._next!= None:
n=n._next
l.append(n._element)
return l
| """ IMPLEMENTATION METHOD 2 (less common but easier)
HEAD TAIL
________ ________ ________ ________
| | | | | | | | | | | |
| None | |--->| a | |--->| b | |--->| c | |--->None
|______|_| |______|_| |______|_| |______|_|
Main Methods: isEmpty, addFirst, addLast, removeFirst, removeLast, makeEmpty
"""
class Emptylinkedlist(Exception):
pass
class Singlelinkedlist:
class _Node:
__slots__ = ('_element', '_next')
def __init__(self, element=None, next=None):
self._element = element
self._next = next
def __init__(self):
self._head = self._tail = self._Node()
self._size = 0
def __len__(self):
return self._size
def is_empty(self):
return self._size == 0
def add_first(self, element):
self._head._element = element
self._head = self._Node(None, self._head)
self._size += 1
def add_last(self, element):
self._tail._next = self._Node(element, None)
self._tail = self._tail._next
self._size += 1
def remove_first(self):
if self.isEmpty():
raise empty_linked_list()
e = self._head._next._element
self._head = self._head._next
self._head._element = None
self._size -= 1
return e
def remove_last(self):
if self.isEmpty():
raise empty_linked_list()
e = self._tail._element
n = self._head
while n._next != self._tail:
n = n._next
self._tail = n
self._tail._next = None
self._size -= 1
return e
def make_empty(self):
self._head = self._tail = self._Node()
self._size = 0
def get_content(self):
l = []
n = self._head
while n._next != None:
n = n._next
l.append(n._element)
return l |
"Talk."
# https://www.jetbrains.com/help/pycharm/part-1-debugging-python-code.html#7bf477d0 - IDE
# https://wiki.python.org/moin/PythonDebuggingTools - debug
print('sds') | """Talk."""
print('sds') |
def obtener_ganadores(lista_ganadores):
lista_unica=[]
for i in lista_ganadores:
if i not in lista_unica:
lista_unica.append(i)
return lista_unica
def obtener_posiciones_premio_doble(lista_carreras_con_premio,lista_ganadores,caballo ):
lista_final_premio=[]
c=0
for i in lista_carreras_con_premio:
if lista_ganadores[i] == caballo:
lista_final_premio.append(i)
c+=1
else:
c+=1
return lista_final_premio
def obtener_caballos_no_ganadores(lista_ganadores_ayer,lista_ganadores_hoy):
lista_t_no_ganadores=[]
for i in lista_ganadores_ayer:
if i not in lista_ganadores_hoy:
lista_t_no_ganadores.append(i)
return lista_t_no_ganadores
def contar_nuevos_caballos_ganadores(lista_ganadores_ayer,lista_ganadores_hoy):
l_nuevos=[]
a=len(lista_ganadores_ayer)
b=len(lista_ganadores_hoy)
if a < b:
for item in lista_ganadores_ayer:
if item not in lista_ganadores_hoy:
if item not in l_nuevos:
l_nuevos.append(item)
else:
for item in lista_ganadores_hoy:
if item not in lista_ganadores_ayer:
if item not in l_nuevos:
l_nuevos.append(item)
x=len(l_nuevos)
return x
| def obtener_ganadores(lista_ganadores):
lista_unica = []
for i in lista_ganadores:
if i not in lista_unica:
lista_unica.append(i)
return lista_unica
def obtener_posiciones_premio_doble(lista_carreras_con_premio, lista_ganadores, caballo):
lista_final_premio = []
c = 0
for i in lista_carreras_con_premio:
if lista_ganadores[i] == caballo:
lista_final_premio.append(i)
c += 1
else:
c += 1
return lista_final_premio
def obtener_caballos_no_ganadores(lista_ganadores_ayer, lista_ganadores_hoy):
lista_t_no_ganadores = []
for i in lista_ganadores_ayer:
if i not in lista_ganadores_hoy:
lista_t_no_ganadores.append(i)
return lista_t_no_ganadores
def contar_nuevos_caballos_ganadores(lista_ganadores_ayer, lista_ganadores_hoy):
l_nuevos = []
a = len(lista_ganadores_ayer)
b = len(lista_ganadores_hoy)
if a < b:
for item in lista_ganadores_ayer:
if item not in lista_ganadores_hoy:
if item not in l_nuevos:
l_nuevos.append(item)
else:
for item in lista_ganadores_hoy:
if item not in lista_ganadores_ayer:
if item not in l_nuevos:
l_nuevos.append(item)
x = len(l_nuevos)
return x |
#
# PySNMP MIB module CHIPDOT1D-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHIPDOT1D-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:48:53 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint")
DisplayString, = mibBuilder.importSymbols("RFC1155-SMI", "DisplayString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
NotificationType, Bits, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter32, TimeTicks, Counter64, ObjectIdentity, Unsigned32, ModuleIdentity, IpAddress, Gauge32, enterprises, iso = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Bits", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter32", "TimeTicks", "Counter64", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "IpAddress", "Gauge32", "enterprises", "iso")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
class MacAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
class BridgeId(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8)
fixedLength = 8
class Timeout(Integer32):
pass
chipcom = MibIdentifier((1, 3, 6, 1, 4, 1, 49))
chipmib02 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2))
chipGen = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 1))
chipEcho = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 2))
chipProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3))
chipExperiment = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4))
chipTTY = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 5))
chipTFTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 6))
chipDownload = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 7))
online = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1))
oebm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2))
midnight = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3))
workGroupHub = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4))
emm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5))
chipBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6))
trmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7))
fmm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8))
focus1 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9))
oeim = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10))
chipExpTokenRing = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1))
dot1dBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14))
dot5 = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1))
olAgents = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1))
olConc = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2))
olEnv = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3))
olModules = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4))
olNets = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5))
olGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6))
olAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7))
olSpecMods = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4))
ol50nnMCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3))
ol51nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4))
ol51nnMFIB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5))
ol51nnMUTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6))
ol51nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7))
ol51nnMBNC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8))
ol51nnBEE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9))
ol51nnRES = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10))
ol51nnREE = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11))
ol51nnMAUIF = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12))
ol51nnMAUIM = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13))
ol5208MTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14))
ol51nnMFP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15))
ol51nnMFBP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16))
ol51nnMTPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17))
ol51nnMTPPL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18))
ol52nnMTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19))
ol52nnMFR = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20))
ol51nnMTS = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21))
ol51nnMFL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22))
ol50nnMRCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23))
ol51nnMFB = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24))
ol53nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25))
ol53nnMFBMIC = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26))
ol53nnMFIBST = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27))
ol53nnMSTP = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28))
ol51nnMTPCL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29))
ol52nnBTT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30))
ol51nnIx = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31))
ol52nnMMGT = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32))
ol50nnMHCTL = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33))
olNet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1))
olEnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2))
olTRnet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3))
olFDDInet = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4))
hubSysGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1))
hardwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2))
softwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3))
hubGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4))
boardGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5))
portGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6))
alarmGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7))
olThresh = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1))
olThreshControl = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1))
chipBridgeSideSwitchMode = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 3, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chipBridgeSideSwitchMode.setStatus('mandatory')
if mibBuilder.loadTexts: chipBridgeSideSwitchMode.setDescription('The state of the side switch feature.')
dot1dBase = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1))
dot1dStp = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2))
dot1dTp = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4))
dot1dStatic = MibIdentifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 5))
dot1dBaseBridgeAddress = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBaseBridgeAddress.setReference('P802.1d/D9, July 14, 1989: Sections 6.4.1.1.3 and 3.12.5')
if mibBuilder.loadTexts: dot1dBaseBridgeAddress.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBaseBridgeAddress.setDescription('The MAC address used by this bridge when it must be referred to in a unique fashion. It is recommended that this be the numerically smallest MAC address of all ports that belong to this bridge. However it is only required to be unique. When concatenated with dot1dStpPriority a unique BridgeIdentifier is formed which is used in the Spanning Tree Protocol.')
dot1dBaseNumPorts = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBaseNumPorts.setReference('P802.1d/D9, July 14, 1989: Section 6.4.1.1.3')
if mibBuilder.loadTexts: dot1dBaseNumPorts.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBaseNumPorts.setDescription('The number of ports controlled by this bridging entity.')
dot1dBaseType = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("transparent-only", 2), ("sourceroute-only", 3), ("srt", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBaseType.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBaseType.setDescription('Indicates what type of bridging this bridge can perform. If a bridge is actually performing a certain type of bridging this will be indicated by entries in the port table for the given type.')
dot1dBasePortTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4), )
if mibBuilder.loadTexts: dot1dBasePortTable.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortTable.setDescription('A table that contains generic information about every port that is associated with this bridge. Transparent, source-route, and srt ports are included.')
dot1dBasePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1), ).setIndexNames((0, "CHIPDOT1D-MIB", "dot1dBasePort"))
if mibBuilder.loadTexts: dot1dBasePortEntry.setReference('P802.1d/D9, July 14, 1989: Section 6.4.2, 6.6.1')
if mibBuilder.loadTexts: dot1dBasePortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortEntry.setDescription('A list of information for each port of the bridge.')
dot1dBasePort = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBasePort.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePort.setDescription('The port number of the port for which this entry contains bridge management information.')
dot1dBasePortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBasePortIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortIfIndex.setDescription('The value of the instance of the ifIndex object, defined in [4,6], for the interface corresponding to this port.')
dot1dBasePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 3), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBasePortCircuit.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortCircuit.setDescription('For a port which (potentially) has the same value of dot1dBasePortIfIndex as another port on the same bridge, this object contains the name of an object instance unique to this port. For example, in the case where multiple ports correspond one- to-one with multiple X.25 virtual circuits, this value might identify an (e.g., the first) object instance associated with the X.25 virtual circuit corresponding to this port. For a port which has a unique value of dot1dBasePortIfIndex, this object can have the value { 0 0 }.')
dot1dBasePortDelayExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBasePortDelayExceededDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts: dot1dBasePortDelayExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortDelayExceededDiscards.setDescription('The number of frames discarded by this port due to excessive transit delay through the bridge. It is incremented by both transparent and source route bridges.')
dot1dBasePortMtuExceededDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dBasePortMtuExceededDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts: dot1dBasePortMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dBasePortMtuExceededDiscards.setDescription('The number of frames discarded by this port due to an excessive size. It is incremented by both transparent and source route bridges.')
dot1dStpProtocolSpecification = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("decLb100", 2), ("ieee8021d", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpProtocolSpecification.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpProtocolSpecification.setDescription("An indication of what version of the Spanning Tree Protocol is being run. The value 'decLb100(2)' indicates the DEC LANbridge 100 Spanning Tree protocol. IEEE 802.1d implementations will return 'ieee8021d(3)'. If future versions of the IEEE Spanning Tree Protocol are released that are incompatible with the current version a new value will be defined.")
dot1dStpPriority = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpPriority.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.7')
if mibBuilder.loadTexts: dot1dStpPriority.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPriority.setDescription('The value of the write-able portion of the Bridge ID, i.e., the first two octets of the (8 octet long) Bridge ID. The other (last) 6 octets of the Bridge ID are given by the value of dot1dBaseBridgeAddress.')
dot1dStpTimeSinceTopologyChange = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpTimeSinceTopologyChange.setReference('P802.1d/D9, July 14, 1989: Section 6.8.1.1.3')
if mibBuilder.loadTexts: dot1dStpTimeSinceTopologyChange.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpTimeSinceTopologyChange.setDescription('The time (in hundredths of a second) since the last time a topology change was detected by the bridge entity.')
dot1dStpTopChanges = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpTopChanges.setReference('P802.1d/D9, July 14, 1989: Section 6.8.1.1.3')
if mibBuilder.loadTexts: dot1dStpTopChanges.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpTopChanges.setDescription('The total number of topology changes detected by this bridge since the management entity was last reset or initialized.')
dot1dStpDesignatedRoot = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 5), BridgeId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpDesignatedRoot.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.1')
if mibBuilder.loadTexts: dot1dStpDesignatedRoot.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpDesignatedRoot.setDescription('The bridge identifier of the root of the spanning tree as determined by the Spanning Tree Protocol as executed by this node. This value is used as the Root Identifier parameter in all Configuration Bridge PDUs originated by this node.')
dot1dStpRootCost = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpRootCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.2')
if mibBuilder.loadTexts: dot1dStpRootCost.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpRootCost.setDescription('The cost of the path to the root as seen from this bridge.')
dot1dStpRootPort = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpRootPort.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.3')
if mibBuilder.loadTexts: dot1dStpRootPort.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpRootPort.setDescription('The port number of the port which offers the lowest cost path from this bridge to the root bridge.')
dot1dStpMaxAge = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 8), Timeout()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpMaxAge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.4')
if mibBuilder.loadTexts: dot1dStpMaxAge.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpMaxAge.setDescription('The maximum age of Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.')
dot1dStpHelloTime = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 9), Timeout()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpHelloTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.5')
if mibBuilder.loadTexts: dot1dStpHelloTime.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpHelloTime.setDescription('The amount of time between the transmission of Configuration bridge PDUs by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second. This is the actual value that this bridge is currently using.')
dot1dStpHoldTime = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpHoldTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.14')
if mibBuilder.loadTexts: dot1dStpHoldTime.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpHoldTime.setDescription('This time value determines the interval length during which no more than two Configuration bridge PDUs shall be transmitted by this node, in units of hundredths of a second.')
dot1dStpForwardDelay = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 11), Timeout()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpForwardDelay.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.6')
if mibBuilder.loadTexts: dot1dStpForwardDelay.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpForwardDelay.setDescription('This time value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the Forwarding state. The value determines how long the port stays in a particular state before moving to the next state. For example, how long a port stays in the Listening state when moving from Blocking to Learning. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database. [Note that this value is the one that this bridge is currently using, in contrast to dot1dStpBridgeForwardDelay which is the value that this bridge and all others would start using if/when this bridge were to become the root.]')
dot1dStpBridgeMaxAge = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 12), Timeout()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpBridgeMaxAge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.8')
if mibBuilder.loadTexts: dot1dStpBridgeMaxAge.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpBridgeMaxAge.setDescription('The value that all bridges use for MaxAge when this bridge is acting as the root. Note that 802.1d/D9 specifies that the range for this parameter is related to the value of dot1dStpBridgeHelloTime. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1dStpBridgeHelloTime = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 13), Timeout()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpBridgeHelloTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.9')
if mibBuilder.loadTexts: dot1dStpBridgeHelloTime.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpBridgeHelloTime.setDescription('The value that all bridges use for HelloTime when this bridge is acting as the root. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1dStpBridgeForwardDelay = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 14), Timeout()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpBridgeForwardDelay.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.10')
if mibBuilder.loadTexts: dot1dStpBridgeForwardDelay.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpBridgeForwardDelay.setDescription('The value that all bridges use for ForwardDelay when this bridge is acting as the root. Note that 802.1d/D9 specifies that the range for this parameter is related to the value of dot1dStpBridgeMaxAge. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1dStpPortTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15), )
if mibBuilder.loadTexts: dot1dStpPortTable.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortTable.setDescription('A table that contains port-specific information for the Spanning Tree Protocol.')
dot1dStpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1), ).setIndexNames((0, "CHIPDOT1D-MIB", "dot1dStpPort"))
if mibBuilder.loadTexts: dot1dStpPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortEntry.setDescription('A list of information maintained by every port about the Spanning Tree Protocol state for that port.')
dot1dStpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPort.setReference('P802.1d/D9, July 14, 1989: Section 6.8.2.1.2')
if mibBuilder.loadTexts: dot1dStpPort.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPort.setDescription('The port number of the port for which this entry contains Spanning Tree Protocol management information.')
dot1dStpPortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpPortPriority.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.1')
if mibBuilder.loadTexts: dot1dStpPortPriority.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortPriority.setDescription('The value of the priority field which is contained in the first (in network byte order) octet of the (2 octet long) Port ID. The other octet of the Port ID is given by the value of dot1dStpPort.')
dot1dStpPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("disabled", 1), ("blocking", 2), ("listening", 3), ("learning", 4), ("forwarding", 5), ("broken", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortState.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.2')
if mibBuilder.loadTexts: dot1dStpPortState.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortState.setDescription("The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame. If the bridge has detected a port that is malfunctioning it will place that port into the broken(6) state. For ports which are disabled (see dot1dStpPortEnable), this object will have a value of disabled(1).")
dot1dStpPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpPortEnable.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.2')
if mibBuilder.loadTexts: dot1dStpPortEnable.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortEnable.setDescription('The enabled/disabled status of the port.')
dot1dStpPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dStpPortPathCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.3')
if mibBuilder.loadTexts: dot1dStpPortPathCost.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortPathCost.setDescription('The contribution of this port to the path cost of paths towards the spanning tree root which include this port.')
dot1dStpPortDesignatedRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 6), BridgeId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortDesignatedRoot.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.4')
if mibBuilder.loadTexts: dot1dStpPortDesignatedRoot.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortDesignatedRoot.setDescription('The unique Bridge Identifier of the Bridge recorded as the Root in the Configuration BPDUs transmitted by the Designated Bridge for the segment to which the port is attached.')
dot1dStpPortDesignatedCost = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortDesignatedCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.5')
if mibBuilder.loadTexts: dot1dStpPortDesignatedCost.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortDesignatedCost.setDescription('The path cost of the Designated Port of the segment connected to this port. This value is compared to the Root Path Cost field in received bridge PDUs.')
dot1dStpPortDesignatedBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 8), BridgeId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortDesignatedBridge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.6')
if mibBuilder.loadTexts: dot1dStpPortDesignatedBridge.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment.")
dot1dStpPortDesignatedPort = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortDesignatedPort.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.7')
if mibBuilder.loadTexts: dot1dStpPortDesignatedPort.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortDesignatedPort.setDescription("The Port Identifier of the port on the Designated Bridge for this port's segment.")
dot1dStpPortForwardTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dStpPortForwardTransitions.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dStpPortForwardTransitions.setDescription('The number of times this port has transitioned from the Learning state to the Forwarding state.')
dot1dTpLearnedEntryDiscards = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpLearnedEntryDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.7.1.1.3')
if mibBuilder.loadTexts: dot1dTpLearnedEntryDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpLearnedEntryDiscards.setDescription('The total number of Forwarding Database entries, which have been or would have been learnt, but have been discarded due to a lack of space to store them in the Forwarding Database. If this counter is increasing, it indicates that the Forwarding Database is regularly becoming full (a condition which has unpleasant performance effects on the subnetwork). If this counter has a significant value but is not presently increasing, it indicates that the problem has been occurring but is not persistent.')
dot1dTpAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot1dTpAgingTime.setReference('P802.1d/D9, July 14, 1989: Section 6.7.1.1.3')
if mibBuilder.loadTexts: dot1dTpAgingTime.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpAgingTime.setDescription('The timeout period in seconds for aging out dynamically learned forwarding information.')
dot1dTpPortTable = MibTable((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4), )
if mibBuilder.loadTexts: dot1dTpPortTable.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortTable.setDescription('A table that contains information about every port that is associated with this transparent bridge.')
dot1dTpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1), ).setIndexNames((0, "CHIPDOT1D-MIB", "dot1dTpPort"))
if mibBuilder.loadTexts: dot1dTpPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortEntry.setDescription('A list of information for each port of a transparent bridge.')
dot1dTpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpPort.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPort.setDescription('The port number of the port for which this entry contains Transparent bridging management information.')
dot1dTpPortMaxInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpPortMaxInfo.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortMaxInfo.setDescription('The maximum size of the INFO (non-MAC) field that this port will receive or transmit.')
dot1dTpPortInFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpPortInFrames.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts: dot1dTpPortInFrames.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortInFrames.setDescription('The number of frames that have been received by this port from its segment. Note that a frame received on the interface corresponding to this port is only counted by this object if and only if it is for a protocol being processed by the local bridging function.')
dot1dTpPortOutFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpPortOutFrames.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts: dot1dTpPortOutFrames.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortOutFrames.setDescription('The number of frames that have been transmitted by this port to its segment. Note that a frame transmitted on the interface corresponding to this port is only counted by this object if and only if it is for a protocol being processed by the local bridging function.')
dot1dTpPortInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot1dTpPortInDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts: dot1dTpPortInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: dot1dTpPortInDiscards.setDescription('Count of valid frames received which were discarded (i.e., filtered) by the Forwarding Process.')
newRoot = NotificationType((1, 3, 6, 1, 4, 1, 49, 2, 4, 14) + (0,1))
if mibBuilder.loadTexts: newRoot.setDescription('The newRoot trap indicates that the sending agent has become the new root of the Spanning Tree; the trap is sent by a bridge soon after its election as the new root, e.g., upon expiration of the Topology Change Timer immediately subsequent to its election.')
topologyChange = NotificationType((1, 3, 6, 1, 4, 1, 49, 2, 4, 14) + (0,2))
if mibBuilder.loadTexts: topologyChange.setDescription('A topologyChange trap is sent by a bridge when any of its configured ports transitions from the Learning state to the Forwarding state, or from the Forwarding state to the Blocking state. The trap is not sent if a newRoot trap is sent for the same transition.')
mibBuilder.exportSymbols("CHIPDOT1D-MIB", dot1dBasePortDelayExceededDiscards=dot1dBasePortDelayExceededDiscards, ol52nnBTT=ol52nnBTT, softwareGroup=softwareGroup, chipBridge=chipBridge, dot1dStpRootCost=dot1dStpRootCost, ol51nnRES=ol51nnRES, ol53nnMSTP=ol53nnMSTP, chipExperiment=chipExperiment, chipGen=chipGen, dot1dBaseNumPorts=dot1dBaseNumPorts, dot1dBaseBridgeAddress=dot1dBaseBridgeAddress, dot1dStpBridgeMaxAge=dot1dStpBridgeMaxAge, Timeout=Timeout, ol51nnBEE=ol51nnBEE, ol53nnMFIBST=ol53nnMFIBST, midnight=midnight, chipProducts=chipProducts, ol51nnMMGT=ol51nnMMGT, fmm=fmm, dot1dStpBridgeForwardDelay=dot1dStpBridgeForwardDelay, dot1dStpPortPathCost=dot1dStpPortPathCost, ol5208MTP=ol5208MTP, dot1dStpPortDesignatedPort=dot1dStpPortDesignatedPort, newRoot=newRoot, olThreshControl=olThreshControl, ol51nnMTP=ol51nnMTP, dot1dTpPortInFrames=dot1dTpPortInFrames, dot1dStpHelloTime=dot1dStpHelloTime, olGroups=olGroups, dot1dStpPriority=dot1dStpPriority, dot1dBase=dot1dBase, alarmGroup=alarmGroup, ol51nnMFB=ol51nnMFB, chipDownload=chipDownload, dot1dStpPortForwardTransitions=dot1dStpPortForwardTransitions, chipTTY=chipTTY, dot1dBasePortCircuit=dot1dBasePortCircuit, chipmib02=chipmib02, olEnet=olEnet, dot1dBasePortIfIndex=dot1dBasePortIfIndex, ol50nnMCTL=ol50nnMCTL, dot1dTpPortEntry=dot1dTpPortEntry, dot1dStpDesignatedRoot=dot1dStpDesignatedRoot, focus1=focus1, dot1dTpAgingTime=dot1dTpAgingTime, oeim=oeim, dot1dBasePortMtuExceededDiscards=dot1dBasePortMtuExceededDiscards, dot1dTpPortMaxInfo=dot1dTpPortMaxInfo, dot1dTpPort=dot1dTpPort, olModules=olModules, ol50nnMHCTL=ol50nnMHCTL, dot1dStpPort=dot1dStpPort, dot1dBridge=dot1dBridge, dot1dTp=dot1dTp, ol51nnMTPL=ol51nnMTPL, chipBridgeSideSwitchMode=chipBridgeSideSwitchMode, dot1dBasePort=dot1dBasePort, olEnv=olEnv, dot1dTpPortTable=dot1dTpPortTable, ol52nnMFR=ol52nnMFR, dot1dStpRootPort=dot1dStpRootPort, dot1dStatic=dot1dStatic, ol52nnMTP=ol52nnMTP, ol50nnMRCTL=ol50nnMRCTL, ol51nnMAUIM=ol51nnMAUIM, chipTFTP=chipTFTP, chipcom=chipcom, ol51nnMAUIF=ol51nnMAUIF, hubGroup=hubGroup, dot1dStpPortDesignatedRoot=dot1dStpPortDesignatedRoot, ol51nnMFL=ol51nnMFL, dot1dBasePortEntry=dot1dBasePortEntry, dot5=dot5, boardGroup=boardGroup, ol53nnMMGT=ol53nnMMGT, dot1dStpPortPriority=dot1dStpPortPriority, ol51nnIx=ol51nnIx, dot1dBaseType=dot1dBaseType, ol51nnMFBP=ol51nnMFBP, olTRnet=olTRnet, trmm=trmm, olSpecMods=olSpecMods, ol51nnMFIB=ol51nnMFIB, ol51nnMFP=ol51nnMFP, chipExpTokenRing=chipExpTokenRing, dot1dStpHoldTime=dot1dStpHoldTime, dot1dStpPortEntry=dot1dStpPortEntry, ol51nnREE=ol51nnREE, ol52nnMMGT=ol52nnMMGT, dot1dTpPortOutFrames=dot1dTpPortOutFrames, olAgents=olAgents, dot1dStpPortEnable=dot1dStpPortEnable, dot1dStpPortDesignatedCost=dot1dStpPortDesignatedCost, ol53nnMFBMIC=ol53nnMFBMIC, ol51nnMUTP=ol51nnMUTP, olThresh=olThresh, dot1dStpBridgeHelloTime=dot1dStpBridgeHelloTime, olNets=olNets, ol51nnMBNC=ol51nnMBNC, ol51nnMTPPL=ol51nnMTPPL, online=online, dot1dStpPortState=dot1dStpPortState, dot1dBasePortTable=dot1dBasePortTable, dot1dStpPortDesignatedBridge=dot1dStpPortDesignatedBridge, olNet=olNet, dot1dStpPortTable=dot1dStpPortTable, ol51nnMTPCL=ol51nnMTPCL, olAlarm=olAlarm, olConc=olConc, topologyChange=topologyChange, workGroupHub=workGroupHub, chipEcho=chipEcho, dot1dTpLearnedEntryDiscards=dot1dTpLearnedEntryDiscards, dot1dStp=dot1dStp, hubSysGroup=hubSysGroup, emm=emm, olFDDInet=olFDDInet, dot1dStpTopChanges=dot1dStpTopChanges, oebm=oebm, dot1dStpForwardDelay=dot1dStpForwardDelay, dot1dStpMaxAge=dot1dStpMaxAge, dot1dStpProtocolSpecification=dot1dStpProtocolSpecification, BridgeId=BridgeId, portGroup=portGroup, dot1dStpTimeSinceTopologyChange=dot1dStpTimeSinceTopologyChange, ol51nnMTS=ol51nnMTS, MacAddress=MacAddress, hardwareGroup=hardwareGroup, dot1dTpPortInDiscards=dot1dTpPortInDiscards)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint')
(display_string,) = mibBuilder.importSymbols('RFC1155-SMI', 'DisplayString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(notification_type, bits, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, counter32, time_ticks, counter64, object_identity, unsigned32, module_identity, ip_address, gauge32, enterprises, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Bits', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Counter32', 'TimeTicks', 'Counter64', 'ObjectIdentity', 'Unsigned32', 'ModuleIdentity', 'IpAddress', 'Gauge32', 'enterprises', 'iso')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
class Macaddress(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6)
fixed_length = 6
class Bridgeid(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8)
fixed_length = 8
class Timeout(Integer32):
pass
chipcom = mib_identifier((1, 3, 6, 1, 4, 1, 49))
chipmib02 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2))
chip_gen = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 1))
chip_echo = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 2))
chip_products = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3))
chip_experiment = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4))
chip_tty = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 5))
chip_tftp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 6))
chip_download = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 7))
online = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1))
oebm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 2))
midnight = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 3))
work_group_hub = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4))
emm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 5))
chip_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 6))
trmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 7))
fmm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 8))
focus1 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 9))
oeim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 10))
chip_exp_token_ring = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1))
dot1d_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14))
dot5 = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 1, 1))
ol_agents = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 1))
ol_conc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 2))
ol_env = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 3))
ol_modules = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4))
ol_nets = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5))
ol_groups = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 6))
ol_alarm = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7))
ol_spec_mods = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4))
ol50nn_mctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 3))
ol51nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 4))
ol51nn_mfib = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 5))
ol51nn_mutp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 6))
ol51nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 7))
ol51nn_mbnc = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 8))
ol51nn_bee = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 9))
ol51nn_res = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 10))
ol51nn_ree = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 11))
ol51nn_mauif = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 12))
ol51nn_mauim = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 13))
ol5208_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 14))
ol51nn_mfp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 15))
ol51nn_mfbp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 16))
ol51nn_mtpl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 17))
ol51nn_mtppl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 18))
ol52nn_mtp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 19))
ol52nn_mfr = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 20))
ol51nn_mts = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 21))
ol51nn_mfl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 22))
ol50nn_mrctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 23))
ol51nn_mfb = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 24))
ol53nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 25))
ol53nn_mfbmic = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 26))
ol53nn_mfibst = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 27))
ol53nn_mstp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 28))
ol51nn_mtpcl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 29))
ol52nn_btt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 30))
ol51nn_ix = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 31))
ol52nn_mmgt = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 32))
ol50nn_mhctl = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 4, 4, 33))
ol_net = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 1))
ol_enet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 2))
ol_t_rnet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 3))
ol_fdd_inet = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 5, 4))
hub_sys_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 1))
hardware_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 2))
software_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 3))
hub_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 4))
board_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 5))
port_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 6))
alarm_group = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 4, 7))
ol_thresh = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1))
ol_thresh_control = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 3, 1, 7, 1, 1))
chip_bridge_side_switch_mode = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 3, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chipBridgeSideSwitchMode.setStatus('mandatory')
if mibBuilder.loadTexts:
chipBridgeSideSwitchMode.setDescription('The state of the side switch feature.')
dot1d_base = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1))
dot1d_stp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2))
dot1d_tp = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4))
dot1d_static = mib_identifier((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 5))
dot1d_base_bridge_address = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBaseBridgeAddress.setReference('P802.1d/D9, July 14, 1989: Sections 6.4.1.1.3 and 3.12.5')
if mibBuilder.loadTexts:
dot1dBaseBridgeAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBaseBridgeAddress.setDescription('The MAC address used by this bridge when it must be referred to in a unique fashion. It is recommended that this be the numerically smallest MAC address of all ports that belong to this bridge. However it is only required to be unique. When concatenated with dot1dStpPriority a unique BridgeIdentifier is formed which is used in the Spanning Tree Protocol.')
dot1d_base_num_ports = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBaseNumPorts.setReference('P802.1d/D9, July 14, 1989: Section 6.4.1.1.3')
if mibBuilder.loadTexts:
dot1dBaseNumPorts.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBaseNumPorts.setDescription('The number of ports controlled by this bridging entity.')
dot1d_base_type = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('transparent-only', 2), ('sourceroute-only', 3), ('srt', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBaseType.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBaseType.setDescription('Indicates what type of bridging this bridge can perform. If a bridge is actually performing a certain type of bridging this will be indicated by entries in the port table for the given type.')
dot1d_base_port_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4))
if mibBuilder.loadTexts:
dot1dBasePortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortTable.setDescription('A table that contains generic information about every port that is associated with this bridge. Transparent, source-route, and srt ports are included.')
dot1d_base_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1)).setIndexNames((0, 'CHIPDOT1D-MIB', 'dot1dBasePort'))
if mibBuilder.loadTexts:
dot1dBasePortEntry.setReference('P802.1d/D9, July 14, 1989: Section 6.4.2, 6.6.1')
if mibBuilder.loadTexts:
dot1dBasePortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortEntry.setDescription('A list of information for each port of the bridge.')
dot1d_base_port = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBasePort.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePort.setDescription('The port number of the port for which this entry contains bridge management information.')
dot1d_base_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBasePortIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortIfIndex.setDescription('The value of the instance of the ifIndex object, defined in [4,6], for the interface corresponding to this port.')
dot1d_base_port_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 3), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBasePortCircuit.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortCircuit.setDescription('For a port which (potentially) has the same value of dot1dBasePortIfIndex as another port on the same bridge, this object contains the name of an object instance unique to this port. For example, in the case where multiple ports correspond one- to-one with multiple X.25 virtual circuits, this value might identify an (e.g., the first) object instance associated with the X.25 virtual circuit corresponding to this port. For a port which has a unique value of dot1dBasePortIfIndex, this object can have the value { 0 0 }.')
dot1d_base_port_delay_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBasePortDelayExceededDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts:
dot1dBasePortDelayExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortDelayExceededDiscards.setDescription('The number of frames discarded by this port due to excessive transit delay through the bridge. It is incremented by both transparent and source route bridges.')
dot1d_base_port_mtu_exceeded_discards = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 1, 4, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dBasePortMtuExceededDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts:
dot1dBasePortMtuExceededDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dBasePortMtuExceededDiscards.setDescription('The number of frames discarded by this port due to an excessive size. It is incremented by both transparent and source route bridges.')
dot1d_stp_protocol_specification = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('decLb100', 2), ('ieee8021d', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpProtocolSpecification.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpProtocolSpecification.setDescription("An indication of what version of the Spanning Tree Protocol is being run. The value 'decLb100(2)' indicates the DEC LANbridge 100 Spanning Tree protocol. IEEE 802.1d implementations will return 'ieee8021d(3)'. If future versions of the IEEE Spanning Tree Protocol are released that are incompatible with the current version a new value will be defined.")
dot1d_stp_priority = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpPriority.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.7')
if mibBuilder.loadTexts:
dot1dStpPriority.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPriority.setDescription('The value of the write-able portion of the Bridge ID, i.e., the first two octets of the (8 octet long) Bridge ID. The other (last) 6 octets of the Bridge ID are given by the value of dot1dBaseBridgeAddress.')
dot1d_stp_time_since_topology_change = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpTimeSinceTopologyChange.setReference('P802.1d/D9, July 14, 1989: Section 6.8.1.1.3')
if mibBuilder.loadTexts:
dot1dStpTimeSinceTopologyChange.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpTimeSinceTopologyChange.setDescription('The time (in hundredths of a second) since the last time a topology change was detected by the bridge entity.')
dot1d_stp_top_changes = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpTopChanges.setReference('P802.1d/D9, July 14, 1989: Section 6.8.1.1.3')
if mibBuilder.loadTexts:
dot1dStpTopChanges.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpTopChanges.setDescription('The total number of topology changes detected by this bridge since the management entity was last reset or initialized.')
dot1d_stp_designated_root = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 5), bridge_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpDesignatedRoot.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.1')
if mibBuilder.loadTexts:
dot1dStpDesignatedRoot.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpDesignatedRoot.setDescription('The bridge identifier of the root of the spanning tree as determined by the Spanning Tree Protocol as executed by this node. This value is used as the Root Identifier parameter in all Configuration Bridge PDUs originated by this node.')
dot1d_stp_root_cost = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpRootCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.2')
if mibBuilder.loadTexts:
dot1dStpRootCost.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpRootCost.setDescription('The cost of the path to the root as seen from this bridge.')
dot1d_stp_root_port = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpRootPort.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.3')
if mibBuilder.loadTexts:
dot1dStpRootPort.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpRootPort.setDescription('The port number of the port which offers the lowest cost path from this bridge to the root bridge.')
dot1d_stp_max_age = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 8), timeout()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpMaxAge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.4')
if mibBuilder.loadTexts:
dot1dStpMaxAge.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpMaxAge.setDescription('The maximum age of Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.')
dot1d_stp_hello_time = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 9), timeout()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpHelloTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.5')
if mibBuilder.loadTexts:
dot1dStpHelloTime.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpHelloTime.setDescription('The amount of time between the transmission of Configuration bridge PDUs by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second. This is the actual value that this bridge is currently using.')
dot1d_stp_hold_time = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpHoldTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.14')
if mibBuilder.loadTexts:
dot1dStpHoldTime.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpHoldTime.setDescription('This time value determines the interval length during which no more than two Configuration bridge PDUs shall be transmitted by this node, in units of hundredths of a second.')
dot1d_stp_forward_delay = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 11), timeout()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpForwardDelay.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.6')
if mibBuilder.loadTexts:
dot1dStpForwardDelay.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpForwardDelay.setDescription('This time value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the Forwarding state. The value determines how long the port stays in a particular state before moving to the next state. For example, how long a port stays in the Listening state when moving from Blocking to Learning. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database. [Note that this value is the one that this bridge is currently using, in contrast to dot1dStpBridgeForwardDelay which is the value that this bridge and all others would start using if/when this bridge were to become the root.]')
dot1d_stp_bridge_max_age = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 12), timeout()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpBridgeMaxAge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.8')
if mibBuilder.loadTexts:
dot1dStpBridgeMaxAge.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpBridgeMaxAge.setDescription('The value that all bridges use for MaxAge when this bridge is acting as the root. Note that 802.1d/D9 specifies that the range for this parameter is related to the value of dot1dStpBridgeHelloTime. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1d_stp_bridge_hello_time = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 13), timeout()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpBridgeHelloTime.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.9')
if mibBuilder.loadTexts:
dot1dStpBridgeHelloTime.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpBridgeHelloTime.setDescription('The value that all bridges use for HelloTime when this bridge is acting as the root. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1d_stp_bridge_forward_delay = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 14), timeout()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpBridgeForwardDelay.setReference('P802.1d/D9, July 14, 1989: Section 4.5.3.10')
if mibBuilder.loadTexts:
dot1dStpBridgeForwardDelay.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpBridgeForwardDelay.setDescription('The value that all bridges use for ForwardDelay when this bridge is acting as the root. Note that 802.1d/D9 specifies that the range for this parameter is related to the value of dot1dStpBridgeMaxAge. The granularity of this timer is specified by 802.1d/D9 to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.')
dot1d_stp_port_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15))
if mibBuilder.loadTexts:
dot1dStpPortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortTable.setDescription('A table that contains port-specific information for the Spanning Tree Protocol.')
dot1d_stp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1)).setIndexNames((0, 'CHIPDOT1D-MIB', 'dot1dStpPort'))
if mibBuilder.loadTexts:
dot1dStpPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortEntry.setDescription('A list of information maintained by every port about the Spanning Tree Protocol state for that port.')
dot1d_stp_port = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPort.setReference('P802.1d/D9, July 14, 1989: Section 6.8.2.1.2')
if mibBuilder.loadTexts:
dot1dStpPort.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPort.setDescription('The port number of the port for which this entry contains Spanning Tree Protocol management information.')
dot1d_stp_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpPortPriority.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.1')
if mibBuilder.loadTexts:
dot1dStpPortPriority.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortPriority.setDescription('The value of the priority field which is contained in the first (in network byte order) octet of the (2 octet long) Port ID. The other octet of the Port ID is given by the value of dot1dStpPort.')
dot1d_stp_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('disabled', 1), ('blocking', 2), ('listening', 3), ('learning', 4), ('forwarding', 5), ('broken', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortState.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.2')
if mibBuilder.loadTexts:
dot1dStpPortState.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortState.setDescription("The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame. If the bridge has detected a port that is malfunctioning it will place that port into the broken(6) state. For ports which are disabled (see dot1dStpPortEnable), this object will have a value of disabled(1).")
dot1d_stp_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpPortEnable.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.2')
if mibBuilder.loadTexts:
dot1dStpPortEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortEnable.setDescription('The enabled/disabled status of the port.')
dot1d_stp_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dStpPortPathCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.3')
if mibBuilder.loadTexts:
dot1dStpPortPathCost.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortPathCost.setDescription('The contribution of this port to the path cost of paths towards the spanning tree root which include this port.')
dot1d_stp_port_designated_root = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 6), bridge_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedRoot.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.4')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedRoot.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedRoot.setDescription('The unique Bridge Identifier of the Bridge recorded as the Root in the Configuration BPDUs transmitted by the Designated Bridge for the segment to which the port is attached.')
dot1d_stp_port_designated_cost = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedCost.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.5')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedCost.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedCost.setDescription('The path cost of the Designated Port of the segment connected to this port. This value is compared to the Root Path Cost field in received bridge PDUs.')
dot1d_stp_port_designated_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 8), bridge_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedBridge.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.6')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedBridge.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment.")
dot1d_stp_port_designated_port = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedPort.setReference('P802.1d/D9, July 14, 1989: Section 4.5.5.7')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedPort.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortDesignatedPort.setDescription("The Port Identifier of the port on the Designated Bridge for this port's segment.")
dot1d_stp_port_forward_transitions = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 2, 15, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dStpPortForwardTransitions.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dStpPortForwardTransitions.setDescription('The number of times this port has transitioned from the Learning state to the Forwarding state.')
dot1d_tp_learned_entry_discards = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpLearnedEntryDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.7.1.1.3')
if mibBuilder.loadTexts:
dot1dTpLearnedEntryDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpLearnedEntryDiscards.setDescription('The total number of Forwarding Database entries, which have been or would have been learnt, but have been discarded due to a lack of space to store them in the Forwarding Database. If this counter is increasing, it indicates that the Forwarding Database is regularly becoming full (a condition which has unpleasant performance effects on the subnetwork). If this counter has a significant value but is not presently increasing, it indicates that the problem has been occurring but is not persistent.')
dot1d_tp_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot1dTpAgingTime.setReference('P802.1d/D9, July 14, 1989: Section 6.7.1.1.3')
if mibBuilder.loadTexts:
dot1dTpAgingTime.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpAgingTime.setDescription('The timeout period in seconds for aging out dynamically learned forwarding information.')
dot1d_tp_port_table = mib_table((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4))
if mibBuilder.loadTexts:
dot1dTpPortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortTable.setDescription('A table that contains information about every port that is associated with this transparent bridge.')
dot1d_tp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1)).setIndexNames((0, 'CHIPDOT1D-MIB', 'dot1dTpPort'))
if mibBuilder.loadTexts:
dot1dTpPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortEntry.setDescription('A list of information for each port of a transparent bridge.')
dot1d_tp_port = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpPort.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPort.setDescription('The port number of the port for which this entry contains Transparent bridging management information.')
dot1d_tp_port_max_info = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpPortMaxInfo.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortMaxInfo.setDescription('The maximum size of the INFO (non-MAC) field that this port will receive or transmit.')
dot1d_tp_port_in_frames = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpPortInFrames.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts:
dot1dTpPortInFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortInFrames.setDescription('The number of frames that have been received by this port from its segment. Note that a frame received on the interface corresponding to this port is only counted by this object if and only if it is for a protocol being processed by the local bridging function.')
dot1d_tp_port_out_frames = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpPortOutFrames.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts:
dot1dTpPortOutFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortOutFrames.setDescription('The number of frames that have been transmitted by this port to its segment. Note that a frame transmitted on the interface corresponding to this port is only counted by this object if and only if it is for a protocol being processed by the local bridging function.')
dot1d_tp_port_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 49, 2, 4, 14, 4, 4, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot1dTpPortInDiscards.setReference('P802.1d/D9, July 14, 1989: Section 6.6.1.1.3')
if mibBuilder.loadTexts:
dot1dTpPortInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
dot1dTpPortInDiscards.setDescription('Count of valid frames received which were discarded (i.e., filtered) by the Forwarding Process.')
new_root = notification_type((1, 3, 6, 1, 4, 1, 49, 2, 4, 14) + (0, 1))
if mibBuilder.loadTexts:
newRoot.setDescription('The newRoot trap indicates that the sending agent has become the new root of the Spanning Tree; the trap is sent by a bridge soon after its election as the new root, e.g., upon expiration of the Topology Change Timer immediately subsequent to its election.')
topology_change = notification_type((1, 3, 6, 1, 4, 1, 49, 2, 4, 14) + (0, 2))
if mibBuilder.loadTexts:
topologyChange.setDescription('A topologyChange trap is sent by a bridge when any of its configured ports transitions from the Learning state to the Forwarding state, or from the Forwarding state to the Blocking state. The trap is not sent if a newRoot trap is sent for the same transition.')
mibBuilder.exportSymbols('CHIPDOT1D-MIB', dot1dBasePortDelayExceededDiscards=dot1dBasePortDelayExceededDiscards, ol52nnBTT=ol52nnBTT, softwareGroup=softwareGroup, chipBridge=chipBridge, dot1dStpRootCost=dot1dStpRootCost, ol51nnRES=ol51nnRES, ol53nnMSTP=ol53nnMSTP, chipExperiment=chipExperiment, chipGen=chipGen, dot1dBaseNumPorts=dot1dBaseNumPorts, dot1dBaseBridgeAddress=dot1dBaseBridgeAddress, dot1dStpBridgeMaxAge=dot1dStpBridgeMaxAge, Timeout=Timeout, ol51nnBEE=ol51nnBEE, ol53nnMFIBST=ol53nnMFIBST, midnight=midnight, chipProducts=chipProducts, ol51nnMMGT=ol51nnMMGT, fmm=fmm, dot1dStpBridgeForwardDelay=dot1dStpBridgeForwardDelay, dot1dStpPortPathCost=dot1dStpPortPathCost, ol5208MTP=ol5208MTP, dot1dStpPortDesignatedPort=dot1dStpPortDesignatedPort, newRoot=newRoot, olThreshControl=olThreshControl, ol51nnMTP=ol51nnMTP, dot1dTpPortInFrames=dot1dTpPortInFrames, dot1dStpHelloTime=dot1dStpHelloTime, olGroups=olGroups, dot1dStpPriority=dot1dStpPriority, dot1dBase=dot1dBase, alarmGroup=alarmGroup, ol51nnMFB=ol51nnMFB, chipDownload=chipDownload, dot1dStpPortForwardTransitions=dot1dStpPortForwardTransitions, chipTTY=chipTTY, dot1dBasePortCircuit=dot1dBasePortCircuit, chipmib02=chipmib02, olEnet=olEnet, dot1dBasePortIfIndex=dot1dBasePortIfIndex, ol50nnMCTL=ol50nnMCTL, dot1dTpPortEntry=dot1dTpPortEntry, dot1dStpDesignatedRoot=dot1dStpDesignatedRoot, focus1=focus1, dot1dTpAgingTime=dot1dTpAgingTime, oeim=oeim, dot1dBasePortMtuExceededDiscards=dot1dBasePortMtuExceededDiscards, dot1dTpPortMaxInfo=dot1dTpPortMaxInfo, dot1dTpPort=dot1dTpPort, olModules=olModules, ol50nnMHCTL=ol50nnMHCTL, dot1dStpPort=dot1dStpPort, dot1dBridge=dot1dBridge, dot1dTp=dot1dTp, ol51nnMTPL=ol51nnMTPL, chipBridgeSideSwitchMode=chipBridgeSideSwitchMode, dot1dBasePort=dot1dBasePort, olEnv=olEnv, dot1dTpPortTable=dot1dTpPortTable, ol52nnMFR=ol52nnMFR, dot1dStpRootPort=dot1dStpRootPort, dot1dStatic=dot1dStatic, ol52nnMTP=ol52nnMTP, ol50nnMRCTL=ol50nnMRCTL, ol51nnMAUIM=ol51nnMAUIM, chipTFTP=chipTFTP, chipcom=chipcom, ol51nnMAUIF=ol51nnMAUIF, hubGroup=hubGroup, dot1dStpPortDesignatedRoot=dot1dStpPortDesignatedRoot, ol51nnMFL=ol51nnMFL, dot1dBasePortEntry=dot1dBasePortEntry, dot5=dot5, boardGroup=boardGroup, ol53nnMMGT=ol53nnMMGT, dot1dStpPortPriority=dot1dStpPortPriority, ol51nnIx=ol51nnIx, dot1dBaseType=dot1dBaseType, ol51nnMFBP=ol51nnMFBP, olTRnet=olTRnet, trmm=trmm, olSpecMods=olSpecMods, ol51nnMFIB=ol51nnMFIB, ol51nnMFP=ol51nnMFP, chipExpTokenRing=chipExpTokenRing, dot1dStpHoldTime=dot1dStpHoldTime, dot1dStpPortEntry=dot1dStpPortEntry, ol51nnREE=ol51nnREE, ol52nnMMGT=ol52nnMMGT, dot1dTpPortOutFrames=dot1dTpPortOutFrames, olAgents=olAgents, dot1dStpPortEnable=dot1dStpPortEnable, dot1dStpPortDesignatedCost=dot1dStpPortDesignatedCost, ol53nnMFBMIC=ol53nnMFBMIC, ol51nnMUTP=ol51nnMUTP, olThresh=olThresh, dot1dStpBridgeHelloTime=dot1dStpBridgeHelloTime, olNets=olNets, ol51nnMBNC=ol51nnMBNC, ol51nnMTPPL=ol51nnMTPPL, online=online, dot1dStpPortState=dot1dStpPortState, dot1dBasePortTable=dot1dBasePortTable, dot1dStpPortDesignatedBridge=dot1dStpPortDesignatedBridge, olNet=olNet, dot1dStpPortTable=dot1dStpPortTable, ol51nnMTPCL=ol51nnMTPCL, olAlarm=olAlarm, olConc=olConc, topologyChange=topologyChange, workGroupHub=workGroupHub, chipEcho=chipEcho, dot1dTpLearnedEntryDiscards=dot1dTpLearnedEntryDiscards, dot1dStp=dot1dStp, hubSysGroup=hubSysGroup, emm=emm, olFDDInet=olFDDInet, dot1dStpTopChanges=dot1dStpTopChanges, oebm=oebm, dot1dStpForwardDelay=dot1dStpForwardDelay, dot1dStpMaxAge=dot1dStpMaxAge, dot1dStpProtocolSpecification=dot1dStpProtocolSpecification, BridgeId=BridgeId, portGroup=portGroup, dot1dStpTimeSinceTopologyChange=dot1dStpTimeSinceTopologyChange, ol51nnMTS=ol51nnMTS, MacAddress=MacAddress, hardwareGroup=hardwareGroup, dot1dTpPortInDiscards=dot1dTpPortInDiscards) |
class Memory():
def __init__(self):
#Depricate
self.stack = {}
self.heap = {}
#Depricate
self.variableNames = []
self.Env = [{}]
def malloc(self,x,v):
l = len(self.Env)
(self.Env[l-1])[x] = v
def requestVar(self,x):
l = len(self.Env)
i = l-1
stk = (self.Env[i]).get(x,None)
while(stk == None and (i)>-1):
stk = (self.Env[i]).get(x,None)
i = i-1
return stk
def assignVar(self,x,v):
l = len(self.Env)
i = l-1
stk = (self.Env[i]).get(x,None)
if(stk != None):
((self.Env)[i])[x] = v
return
while(stk == None and (i)>-1):
stk = (self.Env[i]).get(x,None)
i = i-1
i = i+1
if(stk != None):
((self.Env)[i])[x] = v
return
return None
def popLocalStack(self):
(self.Env).pop()
def pushLocalStack(self):
(self.Env).append({})
#Depricated
def alloc(self,m,x,v):
if(m == "Var"):
self.heap[x] = v
else:
self.stack[x] = v
def stackCall(self,x):
callStack = self.stack.get(x,"DNE")
return callStack
def heapCall(self,x):
callHeap = self.heap.get(x,"DNE")
return callHeap
| class Memory:
def __init__(self):
self.stack = {}
self.heap = {}
self.variableNames = []
self.Env = [{}]
def malloc(self, x, v):
l = len(self.Env)
self.Env[l - 1][x] = v
def request_var(self, x):
l = len(self.Env)
i = l - 1
stk = self.Env[i].get(x, None)
while stk == None and i > -1:
stk = self.Env[i].get(x, None)
i = i - 1
return stk
def assign_var(self, x, v):
l = len(self.Env)
i = l - 1
stk = self.Env[i].get(x, None)
if stk != None:
self.Env[i][x] = v
return
while stk == None and i > -1:
stk = self.Env[i].get(x, None)
i = i - 1
i = i + 1
if stk != None:
self.Env[i][x] = v
return
return None
def pop_local_stack(self):
self.Env.pop()
def push_local_stack(self):
self.Env.append({})
def alloc(self, m, x, v):
if m == 'Var':
self.heap[x] = v
else:
self.stack[x] = v
def stack_call(self, x):
call_stack = self.stack.get(x, 'DNE')
return callStack
def heap_call(self, x):
call_heap = self.heap.get(x, 'DNE')
return callHeap |
name = "David"
if name == "David":
print(name)
elif name == "Artur":
print(name)
else:
print("Nothing found") | name = 'David'
if name == 'David':
print(name)
elif name == 'Artur':
print(name)
else:
print('Nothing found') |
a = 15
# print(1 & 15)
# print(2 & 15)
# print(4 & 15)
| a = 15 |
class float_range(object):
def __init__(self, start, stop=None, step=1):
if stop is None:
start, stop = 0, start
if not step:
raise ValueError
(self.start, self.stop, self.step) = (start, stop, step)
def __iter__(self):
i = self.start
if self.step > 0:
while i < self.stop:
yield i
i += self.step
else:
while i > self.stop:
yield i
i += self.step
def __len__(self):
div, mod = divmod(self.stop - self.start, self.step)
return max(0, int(div if mod == 0 else div + 1))
def __reversed__(self):
i = self.start + (len(self) - 1) * self.step
for _ in range(len(self)):
yield i
i -= self.step
def __eq__(self, other):
if isinstance(other, float_range):
return len(self) == len(other)
elif isinstance(other, range):
return len(self) == len(other)
else:
return True
def __ne__(self, other):
return not self.__eq__(other)
| class Float_Range(object):
def __init__(self, start, stop=None, step=1):
if stop is None:
(start, stop) = (0, start)
if not step:
raise ValueError
(self.start, self.stop, self.step) = (start, stop, step)
def __iter__(self):
i = self.start
if self.step > 0:
while i < self.stop:
yield i
i += self.step
else:
while i > self.stop:
yield i
i += self.step
def __len__(self):
(div, mod) = divmod(self.stop - self.start, self.step)
return max(0, int(div if mod == 0 else div + 1))
def __reversed__(self):
i = self.start + (len(self) - 1) * self.step
for _ in range(len(self)):
yield i
i -= self.step
def __eq__(self, other):
if isinstance(other, float_range):
return len(self) == len(other)
elif isinstance(other, range):
return len(self) == len(other)
else:
return True
def __ne__(self, other):
return not self.__eq__(other) |
class ThreeIncreasing:
def minEaten(self, a, b, c):
candies_eaten = 0
while(c <= b):
b -= 1
candies_eaten += 1
while(b <= a):
a -= 1
candies_eaten += 1
if(a <= 0 or b <= 0 or c <= 0):
return -1
else:
return candies_eaten
| class Threeincreasing:
def min_eaten(self, a, b, c):
candies_eaten = 0
while c <= b:
b -= 1
candies_eaten += 1
while b <= a:
a -= 1
candies_eaten += 1
if a <= 0 or b <= 0 or c <= 0:
return -1
else:
return candies_eaten |
type = 'SMPLify'
verbose = True
body_model = dict(
type='SMPL',
gender='neutral',
num_betas=10,
keypoint_src='smpl_45',
# keypoint_dst='smpl_45',
keypoint_dst='smpl',
model_path='data/body_models/smpl',
batch_size=1)
stages = [
# stage 0: optimize `betas`
dict(
num_iter=10,
ftol=1e-4,
fit_global_orient=False,
fit_transl=False,
fit_body_pose=False,
fit_betas=True,
keypoints3d_weight=0.0,
pose_reg_weight=0.0,
smooth_loss_weight=0.0,
limb_length_weight=1.0,
shape_prior_weight=5e-3,
),
# stage 1: optimize `global_orient` and `transl`
dict(
num_iter=50,
ftol=1e-4,
fit_global_orient=True,
fit_transl=True,
fit_body_pose=False,
fit_betas=False,
keypoints3d_weight=1.0,
pose_reg_weight=0.0,
smooth_loss_weight=0.0,
limb_length_weight=0.0,
shape_prior_weight=0.0,
joint_weights=dict(
body_weight=5.0,
use_shoulder_hip_only=True,
)),
# stage 2: optimize `global_orient`, `transl` and `body_pose`
dict(
num_iter=120,
ftol=1e-4,
fit_global_orient=True,
fit_transl=True,
fit_body_pose=True,
fit_betas=False,
keypoints3d_weight=10.0,
pose_reg_weight=0.001,
smooth_loss_weight=1.0,
limb_length_weight=0.0,
shape_prior_weight=0.0,
joint_weights=dict(body_weight=1.0, use_shoulder_hip_only=False))
# joint_weights=dict(body_weight=5.0, use_shoulder_hip_only=False))
]
optimizer = dict(
type='LBFGS', max_iter=20, lr=1.0, line_search_fn='strong_wolfe')
keypoints3d_loss = dict(
type='KeypointMSELoss', loss_weight=10, reduction='sum', sigma=100)
shape_prior_loss = dict(
type='ShapePriorLoss', loss_weight=5e-3, reduction='mean')
limb_length_loss = dict(
type='LimbLengthLoss', convention='smpl', loss_weight=1., reduction='mean')
pose_reg_loss = dict(type='PoseRegLoss', loss_weight=0.001, reduction='mean')
smooth_loss = dict(
type='SmoothJointLoss', loss_weight=1.0, reduction='mean', loss_func='L2')
ignore_keypoints = [
'neck_openpose', 'right_hip_openpose', 'left_hip_openpose',
'right_hip_extra', 'left_hip_extra'
]
| type = 'SMPLify'
verbose = True
body_model = dict(type='SMPL', gender='neutral', num_betas=10, keypoint_src='smpl_45', keypoint_dst='smpl', model_path='data/body_models/smpl', batch_size=1)
stages = [dict(num_iter=10, ftol=0.0001, fit_global_orient=False, fit_transl=False, fit_body_pose=False, fit_betas=True, keypoints3d_weight=0.0, pose_reg_weight=0.0, smooth_loss_weight=0.0, limb_length_weight=1.0, shape_prior_weight=0.005), dict(num_iter=50, ftol=0.0001, fit_global_orient=True, fit_transl=True, fit_body_pose=False, fit_betas=False, keypoints3d_weight=1.0, pose_reg_weight=0.0, smooth_loss_weight=0.0, limb_length_weight=0.0, shape_prior_weight=0.0, joint_weights=dict(body_weight=5.0, use_shoulder_hip_only=True)), dict(num_iter=120, ftol=0.0001, fit_global_orient=True, fit_transl=True, fit_body_pose=True, fit_betas=False, keypoints3d_weight=10.0, pose_reg_weight=0.001, smooth_loss_weight=1.0, limb_length_weight=0.0, shape_prior_weight=0.0, joint_weights=dict(body_weight=1.0, use_shoulder_hip_only=False))]
optimizer = dict(type='LBFGS', max_iter=20, lr=1.0, line_search_fn='strong_wolfe')
keypoints3d_loss = dict(type='KeypointMSELoss', loss_weight=10, reduction='sum', sigma=100)
shape_prior_loss = dict(type='ShapePriorLoss', loss_weight=0.005, reduction='mean')
limb_length_loss = dict(type='LimbLengthLoss', convention='smpl', loss_weight=1.0, reduction='mean')
pose_reg_loss = dict(type='PoseRegLoss', loss_weight=0.001, reduction='mean')
smooth_loss = dict(type='SmoothJointLoss', loss_weight=1.0, reduction='mean', loss_func='L2')
ignore_keypoints = ['neck_openpose', 'right_hip_openpose', 'left_hip_openpose', 'right_hip_extra', 'left_hip_extra'] |
def sum_integer(a, b):
sum_no = a + b
if (sum_no >= 15) and (sum_no <= 20):
sum_no = 20
return sum_no
print (sum_integer(23, 5)) | def sum_integer(a, b):
sum_no = a + b
if sum_no >= 15 and sum_no <= 20:
sum_no = 20
return sum_no
print(sum_integer(23, 5)) |
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/aref/test/q3at/install/include;/usr/include".split(';') if "/home/aref/test/q3at/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;hector_uav_msgs;roscpp".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lhector_quadrotor_propulsion;-lhector_quadrotor_aerodynamics;-l:/usr/lib/x86_64-linux-gnu/libboost_thread.so;-l:/usr/lib/x86_64-linux-gnu/libboost_chrono.so;-l:/usr/lib/x86_64-linux-gnu/libboost_system.so;-l:/usr/lib/x86_64-linux-gnu/libboost_date_time.so;-l:/usr/lib/x86_64-linux-gnu/libboost_atomic.so;-l:/usr/lib/x86_64-linux-gnu/libpthread.so".split(';') if "-lhector_quadrotor_propulsion;-lhector_quadrotor_aerodynamics;-l:/usr/lib/x86_64-linux-gnu/libboost_thread.so;-l:/usr/lib/x86_64-linux-gnu/libboost_chrono.so;-l:/usr/lib/x86_64-linux-gnu/libboost_system.so;-l:/usr/lib/x86_64-linux-gnu/libboost_date_time.so;-l:/usr/lib/x86_64-linux-gnu/libboost_atomic.so;-l:/usr/lib/x86_64-linux-gnu/libpthread.so" != "" else []
PROJECT_NAME = "hector_quadrotor_model"
PROJECT_SPACE_DIR = "/home/aref/test/q3at/install"
PROJECT_VERSION = "0.3.5"
| catkin_package_prefix = ''
project_pkg_config_include_dirs = '/home/aref/test/q3at/install/include;/usr/include'.split(';') if '/home/aref/test/q3at/install/include;/usr/include' != '' else []
project_catkin_depends = 'geometry_msgs;hector_uav_msgs;roscpp'.replace(';', ' ')
pkg_config_libraries_with_prefix = '-lhector_quadrotor_propulsion;-lhector_quadrotor_aerodynamics;-l:/usr/lib/x86_64-linux-gnu/libboost_thread.so;-l:/usr/lib/x86_64-linux-gnu/libboost_chrono.so;-l:/usr/lib/x86_64-linux-gnu/libboost_system.so;-l:/usr/lib/x86_64-linux-gnu/libboost_date_time.so;-l:/usr/lib/x86_64-linux-gnu/libboost_atomic.so;-l:/usr/lib/x86_64-linux-gnu/libpthread.so'.split(';') if '-lhector_quadrotor_propulsion;-lhector_quadrotor_aerodynamics;-l:/usr/lib/x86_64-linux-gnu/libboost_thread.so;-l:/usr/lib/x86_64-linux-gnu/libboost_chrono.so;-l:/usr/lib/x86_64-linux-gnu/libboost_system.so;-l:/usr/lib/x86_64-linux-gnu/libboost_date_time.so;-l:/usr/lib/x86_64-linux-gnu/libboost_atomic.so;-l:/usr/lib/x86_64-linux-gnu/libpthread.so' != '' else []
project_name = 'hector_quadrotor_model'
project_space_dir = '/home/aref/test/q3at/install'
project_version = '0.3.5' |
# convert a supplied string to a usable integer
def string_to_num(str : str):
return sum([ord(str[index]) for index in range(len(str))])
def xor(n1, n2):
# remove the 0b string from the beggining of the binary string
n1_binary, n2_binary = bin(n1)[2:], bin(n2)[2:]
# make sure both strings are the same length, and add to the begging of the shorter one
extra_zeros = len(n1_binary) - len(n2_binary)
if extra_zeros > 0:
for i in range(0, extra_zeros, 1): n2_binary = "0" + n2_binary
if extra_zeros < 0:
for i in range(0, extra_zeros, -1): n1_binary = "0" + n1_binary
# preform and XOR (exclusive or) function on the top and seed binary
return_num = ""
for index in range(len(n2_binary)):
if n1_binary[index] == n2_binary[index]: return_num = return_num + "0"
else: return_num = return_num + "1"
return_num = sum([int(value) * (2 ** index) for index, value in enumerate(return_num)])
return return_num
# take in a seed base and top to give a semi-random number
def get_sudo_random(seed, base, top):
seed, base, top = int(seed), int(base), int(top) # make sure inputs are the proper format
return_num = xor(xor(seed, top) ** 3, base)
return (((return_num ** 2 + base ** 3) + return_num) % (top - base)) + base # further randomize the returned number | def string_to_num(str: str):
return sum([ord(str[index]) for index in range(len(str))])
def xor(n1, n2):
(n1_binary, n2_binary) = (bin(n1)[2:], bin(n2)[2:])
extra_zeros = len(n1_binary) - len(n2_binary)
if extra_zeros > 0:
for i in range(0, extra_zeros, 1):
n2_binary = '0' + n2_binary
if extra_zeros < 0:
for i in range(0, extra_zeros, -1):
n1_binary = '0' + n1_binary
return_num = ''
for index in range(len(n2_binary)):
if n1_binary[index] == n2_binary[index]:
return_num = return_num + '0'
else:
return_num = return_num + '1'
return_num = sum([int(value) * 2 ** index for (index, value) in enumerate(return_num)])
return return_num
def get_sudo_random(seed, base, top):
(seed, base, top) = (int(seed), int(base), int(top))
return_num = xor(xor(seed, top) ** 3, base)
return (return_num ** 2 + base ** 3 + return_num) % (top - base) + base |
default_configs = [{'type': 'integer', 'name': 'num_clones', 'value': 1, 'description': 'Number of clones to deploy.'},
{'type': 'boolean', 'name': 'clone_on_cpu', 'value': False,
'description': 'Use CPUs to deploy clones.'},
{'type': 'integer', 'name': 'num_replicas', 'value': 1, 'description': 'Number of worker replicas.'},
{'type': 'integer', 'name': 'startup_delay_steps', 'value': 15,
'description': 'Number of training steps between replicas startup.'},
{'type': 'integer', 'name': 'num_ps_tasks', 'value': 0,
'description': 'The number of parameter servers. If the value is 0, then the parameters are handled locally by the worker.'},
{'type': 'string', 'name': 'master', 'value': '',
'description': 'BNS name of the tensorflow server'},
{'type': 'integer', 'name': 'task', 'value': 0, 'description': 'The task ID.'},
{'type': 'string', 'name': 'train_logdir', 'value': None,
'description': 'Where the checkpoint and logs are stored.'},
{'type': 'integer', 'name': 'log_steps', 'value': 10,
'description': 'Display logging information at every log_steps.'},
{'type': 'integer', 'name': 'save_interval_secs', 'value': 1200,
'description': 'How often, in seconds, we save the model to disk.'},
{'type': 'integer', 'name': 'save_summaries_secs', 'value': 600,
'description': 'How often, in seconds, we compute the summaries.'},
{'type': 'boolean', 'name': 'save_summaries_images', 'value': False,
'description': 'Save sample inputs, labels, and semantic predictions as images to summary.'},
{'type': 'string', 'name': 'profile_logdir', 'value': None,
'description': 'Where the profile files are stored.'},
{'type': 'enum', 'name': 'optimizer', 'value': ('momentum', ['momentum', 'adam']),
'description': 'Which optimizer to use.'},
{'type': 'enum', 'name': 'learning_policy', 'value': ('poly', ['poly', 'step']),
'description': 'Learning rate policy for training.'},
{'type': 'float', 'name': 'base_learning_rate', 'value': 0.0001,
'description': 'The base learning rate for model training.'},
{'type': 'float', 'name': 'decay_steps', 'value': 0.0,
'description': 'Decay steps for polynomial learning rate schedule.'},
{'type': 'float', 'name': 'end_learning_rate', 'value': 0.0,
'description': 'End learning rate for polynomial learning rate schedule.'},
{'type': 'float', 'name': 'learning_rate_decay_factor', 'value': 0.1,
'description': 'The rate to decay the base learning rate.'},
{'type': 'integer', 'name': 'learning_rate_decay_step', 'value': 2000,
'description': 'Decay the base learning rate at a fixed step.'},
{'type': 'float', 'name': 'learning_power', 'value': 0.9,
'description': 'The power value used in the poly learning policy.'},
{'type': 'integer', 'name': 'training_number_of_steps', 'value': 30000,
'description': 'The number of steps used for training'},
{'type': 'float', 'name': 'momentum', 'value': 0.9, 'description': 'The momentum value to use'},
{'type': 'float', 'name': 'adam_learning_rate', 'value': 0.001,
'description': 'Learning rate for the adam optimizer.'},
{'type': 'float', 'name': 'adam_epsilon', 'value': 1e-08, 'description': 'Adam optimizer epsilon.'},
{'type': 'integer', 'name': 'train_batch_size', 'value': 8,
'description': 'The number of images in each batch during training.'},
{'type': 'float', 'name': 'weight_decay', 'value': 4e-05,
'description': 'The value of the weight decay for training.'},
{'type': 'list', 'name': 'train_crop_size', 'value': '513,513',
'description': 'Image crop size [height, width] during training.'},
{'type': 'float', 'name': 'last_layer_gradient_multiplier', 'value': 1.0,
'description': 'The gradient multiplier for last layers, which is used to boost the gradient of last layers if the value > 1.'},
{'type': 'boolean', 'name': 'upsample_logits', 'value': True,
'description': 'Upsample logits during training.'},
{'type': 'float', 'name': 'drop_path_keep_prob', 'value': 1.0,
'description': 'Probability to keep each path in the NAS cell when training.'},
{'type': 'string', 'name': 'tf_initial_checkpoint', 'value': None,
'description': 'The initial checkpoint in tensorflow format.'},
{'type': 'boolean', 'name': 'initialize_last_layer', 'value': True,
'description': 'Initialize the last layer.'},
{'type': 'boolean', 'name': 'last_layers_contain_logits_only', 'value': False,
'description': 'Only consider logits as last layers or not.'},
{'type': 'integer', 'name': 'slow_start_step', 'value': 0,
'description': 'Training model with small learning rate for few steps.'},
{'type': 'float', 'name': 'slow_start_learning_rate', 'value': 0.0001,
'description': 'Learning rate employed during slow start.'},
{'type': 'boolean', 'name': 'fine_tune_batch_norm', 'value': True,
'description': 'Fine tune the batch norm parameters or not.'},
{'type': 'float', 'name': 'min_scale_factor', 'value': 0.5,
'description': 'Mininum scale factor for data augmentation.'},
{'type': 'float', 'name': 'max_scale_factor', 'value': 2.0,
'description': 'Maximum scale factor for data augmentation.'},
{'type': 'float', 'name': 'scale_factor_step_size', 'value': 0.25,
'description': 'Scale factor step size for data augmentation.'},
{'type': 'multi_integer', 'name': 'atrous_rates', 'value': None,
'description': 'Atrous rates for atrous spatial pyramid pooling.'},
{'type': 'integer', 'name': 'output_stride', 'value': 16,
'description': 'The ratio of input to output spatial resolution.'},
{'type': 'integer', 'name': 'hard_example_mining_step', 'value': 0,
'description': 'The training step in which exact hard example mining kicks off. Note we gradually reduce the mining percent to the specified top_k_percent_pixels. For example, if hard_example_mining_step=100K and top_k_percent_pixels=0.25, then mining percent will gradually reduce from 100% to 25% until 100K steps after which we only mine top 25% pixels.'},
{'type': 'float', 'name': 'top_k_percent_pixels', 'value': 1.0,
'description': 'The top k percent pixels (in terms of the loss values) used to compute loss during training. This is useful for hard pixel mining.'},
{'type': 'integer', 'name': 'quantize_delay_step', 'value': -1,
'description': 'Steps to start quantized training. If < 0, will not quantize model.'},
{'type': 'string', 'name': 'dataset', 'value': 'pascal_voc_seg',
'description': 'Name of the segmentation dataset.'},
{'type': 'string', 'name': 'train_split', 'value': 'train',
'description': 'Which split of the dataset to be used for training'},
{'type': 'string', 'name': 'dataset_dir', 'value': None, 'description': 'Where the dataset reside.'}]
configs = {entry['name']: entry['value'] for entry in default_configs}
| default_configs = [{'type': 'integer', 'name': 'num_clones', 'value': 1, 'description': 'Number of clones to deploy.'}, {'type': 'boolean', 'name': 'clone_on_cpu', 'value': False, 'description': 'Use CPUs to deploy clones.'}, {'type': 'integer', 'name': 'num_replicas', 'value': 1, 'description': 'Number of worker replicas.'}, {'type': 'integer', 'name': 'startup_delay_steps', 'value': 15, 'description': 'Number of training steps between replicas startup.'}, {'type': 'integer', 'name': 'num_ps_tasks', 'value': 0, 'description': 'The number of parameter servers. If the value is 0, then the parameters are handled locally by the worker.'}, {'type': 'string', 'name': 'master', 'value': '', 'description': 'BNS name of the tensorflow server'}, {'type': 'integer', 'name': 'task', 'value': 0, 'description': 'The task ID.'}, {'type': 'string', 'name': 'train_logdir', 'value': None, 'description': 'Where the checkpoint and logs are stored.'}, {'type': 'integer', 'name': 'log_steps', 'value': 10, 'description': 'Display logging information at every log_steps.'}, {'type': 'integer', 'name': 'save_interval_secs', 'value': 1200, 'description': 'How often, in seconds, we save the model to disk.'}, {'type': 'integer', 'name': 'save_summaries_secs', 'value': 600, 'description': 'How often, in seconds, we compute the summaries.'}, {'type': 'boolean', 'name': 'save_summaries_images', 'value': False, 'description': 'Save sample inputs, labels, and semantic predictions as images to summary.'}, {'type': 'string', 'name': 'profile_logdir', 'value': None, 'description': 'Where the profile files are stored.'}, {'type': 'enum', 'name': 'optimizer', 'value': ('momentum', ['momentum', 'adam']), 'description': 'Which optimizer to use.'}, {'type': 'enum', 'name': 'learning_policy', 'value': ('poly', ['poly', 'step']), 'description': 'Learning rate policy for training.'}, {'type': 'float', 'name': 'base_learning_rate', 'value': 0.0001, 'description': 'The base learning rate for model training.'}, {'type': 'float', 'name': 'decay_steps', 'value': 0.0, 'description': 'Decay steps for polynomial learning rate schedule.'}, {'type': 'float', 'name': 'end_learning_rate', 'value': 0.0, 'description': 'End learning rate for polynomial learning rate schedule.'}, {'type': 'float', 'name': 'learning_rate_decay_factor', 'value': 0.1, 'description': 'The rate to decay the base learning rate.'}, {'type': 'integer', 'name': 'learning_rate_decay_step', 'value': 2000, 'description': 'Decay the base learning rate at a fixed step.'}, {'type': 'float', 'name': 'learning_power', 'value': 0.9, 'description': 'The power value used in the poly learning policy.'}, {'type': 'integer', 'name': 'training_number_of_steps', 'value': 30000, 'description': 'The number of steps used for training'}, {'type': 'float', 'name': 'momentum', 'value': 0.9, 'description': 'The momentum value to use'}, {'type': 'float', 'name': 'adam_learning_rate', 'value': 0.001, 'description': 'Learning rate for the adam optimizer.'}, {'type': 'float', 'name': 'adam_epsilon', 'value': 1e-08, 'description': 'Adam optimizer epsilon.'}, {'type': 'integer', 'name': 'train_batch_size', 'value': 8, 'description': 'The number of images in each batch during training.'}, {'type': 'float', 'name': 'weight_decay', 'value': 4e-05, 'description': 'The value of the weight decay for training.'}, {'type': 'list', 'name': 'train_crop_size', 'value': '513,513', 'description': 'Image crop size [height, width] during training.'}, {'type': 'float', 'name': 'last_layer_gradient_multiplier', 'value': 1.0, 'description': 'The gradient multiplier for last layers, which is used to boost the gradient of last layers if the value > 1.'}, {'type': 'boolean', 'name': 'upsample_logits', 'value': True, 'description': 'Upsample logits during training.'}, {'type': 'float', 'name': 'drop_path_keep_prob', 'value': 1.0, 'description': 'Probability to keep each path in the NAS cell when training.'}, {'type': 'string', 'name': 'tf_initial_checkpoint', 'value': None, 'description': 'The initial checkpoint in tensorflow format.'}, {'type': 'boolean', 'name': 'initialize_last_layer', 'value': True, 'description': 'Initialize the last layer.'}, {'type': 'boolean', 'name': 'last_layers_contain_logits_only', 'value': False, 'description': 'Only consider logits as last layers or not.'}, {'type': 'integer', 'name': 'slow_start_step', 'value': 0, 'description': 'Training model with small learning rate for few steps.'}, {'type': 'float', 'name': 'slow_start_learning_rate', 'value': 0.0001, 'description': 'Learning rate employed during slow start.'}, {'type': 'boolean', 'name': 'fine_tune_batch_norm', 'value': True, 'description': 'Fine tune the batch norm parameters or not.'}, {'type': 'float', 'name': 'min_scale_factor', 'value': 0.5, 'description': 'Mininum scale factor for data augmentation.'}, {'type': 'float', 'name': 'max_scale_factor', 'value': 2.0, 'description': 'Maximum scale factor for data augmentation.'}, {'type': 'float', 'name': 'scale_factor_step_size', 'value': 0.25, 'description': 'Scale factor step size for data augmentation.'}, {'type': 'multi_integer', 'name': 'atrous_rates', 'value': None, 'description': 'Atrous rates for atrous spatial pyramid pooling.'}, {'type': 'integer', 'name': 'output_stride', 'value': 16, 'description': 'The ratio of input to output spatial resolution.'}, {'type': 'integer', 'name': 'hard_example_mining_step', 'value': 0, 'description': 'The training step in which exact hard example mining kicks off. Note we gradually reduce the mining percent to the specified top_k_percent_pixels. For example, if hard_example_mining_step=100K and top_k_percent_pixels=0.25, then mining percent will gradually reduce from 100% to 25% until 100K steps after which we only mine top 25% pixels.'}, {'type': 'float', 'name': 'top_k_percent_pixels', 'value': 1.0, 'description': 'The top k percent pixels (in terms of the loss values) used to compute loss during training. This is useful for hard pixel mining.'}, {'type': 'integer', 'name': 'quantize_delay_step', 'value': -1, 'description': 'Steps to start quantized training. If < 0, will not quantize model.'}, {'type': 'string', 'name': 'dataset', 'value': 'pascal_voc_seg', 'description': 'Name of the segmentation dataset.'}, {'type': 'string', 'name': 'train_split', 'value': 'train', 'description': 'Which split of the dataset to be used for training'}, {'type': 'string', 'name': 'dataset_dir', 'value': None, 'description': 'Where the dataset reside.'}]
configs = {entry['name']: entry['value'] for entry in default_configs} |
alien_0 = {
'color':'green',
'points':'5'
}
print(alien_0)
print(alien_0['color'])
new_points = alien_0['points']
print(f"You just earned {new_points} points")
alien_0['x_position'] = 0
alien_0['y_position'] = 35
alien_0['my_name'] = 'Mareedu' # adding
alien_0['color'] = 'blue' # modify
del alien_0['my_name'] # deletion
print(alien_0)
#looping
user_0 = {
'username':'msboffl',
'first_name':'Mareedu',
'last_name': 'Saibabu'
}
for key,value in user_0.items():
print(f"\nKey : {key}")
print(f"value : {value}") | alien_0 = {'color': 'green', 'points': '5'}
print(alien_0)
print(alien_0['color'])
new_points = alien_0['points']
print(f'You just earned {new_points} points')
alien_0['x_position'] = 0
alien_0['y_position'] = 35
alien_0['my_name'] = 'Mareedu'
alien_0['color'] = 'blue'
del alien_0['my_name']
print(alien_0)
user_0 = {'username': 'msboffl', 'first_name': 'Mareedu', 'last_name': 'Saibabu'}
for (key, value) in user_0.items():
print(f'\nKey : {key}')
print(f'value : {value}') |
class graph:
def __init__(self):
self.graph={}
self.visited=set()
def dfs(self,node):
if node not in self.visited:
print(node)
self.visited.add(node)
for neighbour in self.graph [node]:
self.dfs(neighbour)
def graph_input(self,n):
for i in range(1,n+1):
self.graph.update({i:None})
element=[ ]
choice='y'
while choice=='y':
x=int(input("Enter the edge for vertex %d: "%i))
element.append(x)
self.graph[i]=element
choice=input("Do you want to add more edges? (y/n):")
n=int(input("enter total number of nodes: "))
root=int(input("Enter source node:"))
g=graph()
g.graph_input(n)
g.dfs(root)
| class Graph:
def __init__(self):
self.graph = {}
self.visited = set()
def dfs(self, node):
if node not in self.visited:
print(node)
self.visited.add(node)
for neighbour in self.graph[node]:
self.dfs(neighbour)
def graph_input(self, n):
for i in range(1, n + 1):
self.graph.update({i: None})
element = []
choice = 'y'
while choice == 'y':
x = int(input('Enter the edge for vertex %d: ' % i))
element.append(x)
self.graph[i] = element
choice = input('Do you want to add more edges? (y/n):')
n = int(input('enter total number of nodes: '))
root = int(input('Enter source node:'))
g = graph()
g.graph_input(n)
g.dfs(root) |
secret_word = "fart"
guess = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False
while guess != secret_word and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Guess a word: ")
guess_count += 1
else:
out_of_guesses = True
if out_of_guesses:
print("Out of guesses :( ")
else:
print("you guessed the right word!!! ") | secret_word = 'fart'
guess = ''
guess_count = 0
guess_limit = 3
out_of_guesses = False
while guess != secret_word and (not out_of_guesses):
if guess_count < guess_limit:
guess = input('Guess a word: ')
guess_count += 1
else:
out_of_guesses = True
if out_of_guesses:
print('Out of guesses :( ')
else:
print('you guessed the right word!!! ') |
class payload:
__payload = ''
def __init__(self, version, sender_name, session_id, country_code,
ip_type, domain, ip_address, media_type, protocol_id,
media_transfer_type, protocol, port, modulation_type,
modulation_port, session_name='SESSION SDP'):
self.__make_payload(version, sender_name, session_id, country_code,
ip_type, domain, ip_address, media_type,
protocol_id, media_transfer_type, protocol, port,
modulation_type, modulation_port,
session_name='SESSION SDP')
def get_payload(self):
return self.__payload
def __add_version(self, version):
self.__payload += 'v=' + version + '\r\n'
def __add_owner_details(self, sender_name, session_id, country_code,
ip_type, domain): # Generation of session id
self.__payload += 'o=' + sender_name + ' ' + session_id + ' ' + \
country_code + ' ' + ip_type + ' ' + domain + '\r\n'
def __add_session_details(self, session_name='SESSION SDP'):
self.__payload += 's=' + session_name + '\r\n'
def __add_contact_details(self, country_code, ip_type, ip_address):
self.__payload += 'c=' + country_code + ' ' + ip_type + ' ' + \
ip_address + '\r\n'
def __add_time_details(self, start_time, stop_time):
self.__payload += 't=' + start_time + ' ' + stop_time + '\r\n'
def __add_media_details(self, media_type, protocol, media_transfer_type):
# Protocol ID
self.__payload += 'm=' + media_type + ' ' + protocol + ' ' + \
media_transfer_type + '\r\n'
def __add_session_attributes(self, protocol_id, port, modulation_type,
modulation_port):
self.__payload += 'a=' + protocol_id + ':' + port + ' ' + \
modulation_type + '/' + modulation_port
def __make_payload(self, version, sender_name, session_id, country_code,
ip_type, domain, ip_address, media_type, protocol_id,
media_transfer_type, protocol, port, modulation_type,
modulation_port, session_name='SESSION SDP'):
self.__add_version(version)
self.__add_owner_details(sender_name, session_id, country_code,
ip_type, domain)
self.__add_session_details(session_name)
self.__add_time_details('0', '0')
self.__add_contact_details(country_code, ip_type, ip_address)
self.__add_media_details(media_type, protocol_id, media_transfer_type)
self.__add_session_attributes(protocol, port, modulation_type,
modulation_port)
| class Payload:
__payload = ''
def __init__(self, version, sender_name, session_id, country_code, ip_type, domain, ip_address, media_type, protocol_id, media_transfer_type, protocol, port, modulation_type, modulation_port, session_name='SESSION SDP'):
self.__make_payload(version, sender_name, session_id, country_code, ip_type, domain, ip_address, media_type, protocol_id, media_transfer_type, protocol, port, modulation_type, modulation_port, session_name='SESSION SDP')
def get_payload(self):
return self.__payload
def __add_version(self, version):
self.__payload += 'v=' + version + '\r\n'
def __add_owner_details(self, sender_name, session_id, country_code, ip_type, domain):
self.__payload += 'o=' + sender_name + ' ' + session_id + ' ' + country_code + ' ' + ip_type + ' ' + domain + '\r\n'
def __add_session_details(self, session_name='SESSION SDP'):
self.__payload += 's=' + session_name + '\r\n'
def __add_contact_details(self, country_code, ip_type, ip_address):
self.__payload += 'c=' + country_code + ' ' + ip_type + ' ' + ip_address + '\r\n'
def __add_time_details(self, start_time, stop_time):
self.__payload += 't=' + start_time + ' ' + stop_time + '\r\n'
def __add_media_details(self, media_type, protocol, media_transfer_type):
self.__payload += 'm=' + media_type + ' ' + protocol + ' ' + media_transfer_type + '\r\n'
def __add_session_attributes(self, protocol_id, port, modulation_type, modulation_port):
self.__payload += 'a=' + protocol_id + ':' + port + ' ' + modulation_type + '/' + modulation_port
def __make_payload(self, version, sender_name, session_id, country_code, ip_type, domain, ip_address, media_type, protocol_id, media_transfer_type, protocol, port, modulation_type, modulation_port, session_name='SESSION SDP'):
self.__add_version(version)
self.__add_owner_details(sender_name, session_id, country_code, ip_type, domain)
self.__add_session_details(session_name)
self.__add_time_details('0', '0')
self.__add_contact_details(country_code, ip_type, ip_address)
self.__add_media_details(media_type, protocol_id, media_transfer_type)
self.__add_session_attributes(protocol, port, modulation_type, modulation_port) |
# Indexing dan subset string di python
a = "Hello, World!"
H = a[0] #dalam python indexing dimulai dari 0
o = a[4]
Hello = a[0:5]
print(Hello)
Hello_ = a[:5]
print(Hello_)
World = a[7:12]
print(World)
World_ = a[-6:-1]
print(World_)
# Merge string
b = "I'm ready for python!"
c = a+b
print(c)
c = a+ " " +b
print(c) | a = 'Hello, World!'
h = a[0]
o = a[4]
hello = a[0:5]
print(Hello)
hello_ = a[:5]
print(Hello_)
world = a[7:12]
print(World)
world_ = a[-6:-1]
print(World_)
b = "I'm ready for python!"
c = a + b
print(c)
c = a + ' ' + b
print(c) |
__author__ = 'Owais Lone'
__version__ = '0.6.0'
default_app_config = 'webpack_loader.apps.WebpackLoaderConfig'
| __author__ = 'Owais Lone'
__version__ = '0.6.0'
default_app_config = 'webpack_loader.apps.WebpackLoaderConfig' |
# https://stackoverflow.com/questions/443885/python-callbacks-delegates-what-is-common
# Listeners, callbacks, delegates
class Foo(object):
def __init__(self):
self._bar_observers = []
def add_bar_observer(self, observer):
self._bar_observers.append(observer)
def notify_bar(self, param):
for observer in self._bar_observers:
observer(param)
def observer(param):
print("observer(%s)" % param)
class Baz(object):
def observer(self, param):
print("Baz.observer(%s)" % param)
class CallableClass(object):
def __call__(self, param):
print("CallableClass.__call__(%s)" % param)
baz = Baz()
foo = Foo()
foo.add_bar_observer(observer) # function
foo.add_bar_observer(baz.observer) # bound method
foo.add_bar_observer(CallableClass()) # callable instance
foo.notify_bar('NOTICE')
foo.notify_bar(3)
| class Foo(object):
def __init__(self):
self._bar_observers = []
def add_bar_observer(self, observer):
self._bar_observers.append(observer)
def notify_bar(self, param):
for observer in self._bar_observers:
observer(param)
def observer(param):
print('observer(%s)' % param)
class Baz(object):
def observer(self, param):
print('Baz.observer(%s)' % param)
class Callableclass(object):
def __call__(self, param):
print('CallableClass.__call__(%s)' % param)
baz = baz()
foo = foo()
foo.add_bar_observer(observer)
foo.add_bar_observer(baz.observer)
foo.add_bar_observer(callable_class())
foo.notify_bar('NOTICE')
foo.notify_bar(3) |
for i in range(int(input())):
word=input()
if word==word[::-1]:
print(f"#{i+1} 1")
else :
print(f"#{i+1} 0") | for i in range(int(input())):
word = input()
if word == word[::-1]:
print(f'#{i + 1} 1')
else:
print(f'#{i + 1} 0') |
def teste (b):
a=8
b+=4
c=2
print(f'A dentro vale {a}')
print(f'B dentro vale {b}')
print(f'C dentro vale {c}')
a=5
teste(a)
print(f'A fora vale {a}')
| def teste(b):
a = 8
b += 4
c = 2
print(f'A dentro vale {a}')
print(f'B dentro vale {b}')
print(f'C dentro vale {c}')
a = 5
teste(a)
print(f'A fora vale {a}') |
# This is day22 - works for part 1, minor change needed for day 2
spells = {
"missile": 53, # It instantly does 4 damage.
"drain": 73, # It instantly does 2 damage and heals you for 2 hit points.
"shield": 113, # Effect: 6 turns. While it is active, your armor is increased by 7.
"poison": 173, # Effect: 6 turns. At the start of each turn while it is active, it deals the boss 3 damage.
"recharge": 229, # Effect: 5 turns. At the start of each turn while it is active, it gives you 101 new mana.
}
class Unit:
def __init__(self, hp, attack, armor, mana, effects):
self.hp = hp
self.att = attack
self.arm = armor
self. mana = mana
self.ef = effects
def basic_attack(self, other):
dmg = self.att - other.arm
dmg = max(dmg, 1)
other.hp -= dmg
return other.hp <= 0
def spell(self, other, name):
self.mana -= spells[name]
if name == "missile":
other.hp -= 4
elif name == "drain":
self.hp += 2
other.hp -= 2
elif name == "shield":
self.ef[name] = 6
elif name == "poison":
other.ef[name] = 6
else:
self.ef[name] = 5
return other.hp <= 0
def effects(self):
for name, timer in self.ef.items():
if name == "shield":
if timer > 1:
self.arm = 7
else:
self.arm = 0
elif name == "poison":
self.hp -= 3
elif name == "recharge":
self.mana += 101
self.ef[name] = timer - 1
self.ef = {e:t for e, t in self.ef.items() if t > 0}
return self.hp <= 0
def __str__(self):
s = "Unit(" + str(self.hp) + ", " + str(self.att) + ", " + str(self.arm) + ", " + str(self.mana) + ", " + str(self.ef) + ")"
return s
def round(hero, boss):
hero.effects()
if boss.effects():
return 0
min_spent = 10000
for spell, cost in spells.items():
if hero.mana >= cost and spell not in hero.ef and spell not in boss.ef:
h_e = {e:t for e, t in hero.ef.items()}
b_e = {e:t for e, t in boss.ef.items()}
# print("cost", cost)
p1 = Unit(hero.hp, hero.att, hero.arm, hero.mana, h_e) # new branch
p2 = Unit(boss.hp, boss.att, boss.arm, boss.mana, b_e)
result = p1.spell(p2, spell) # hero casts spell
if result: # boss dies
min_spent = min(min_spent, cost)
else: # boss lives
p1.effects()
if p2.effects(): # boss dies
min_spent = min(min_spent, cost)
continue
result = p2.basic_attack(p1) # boss attacks
if result: # hero dies
continue
else: # hero lives
min_spent = min(min_spent, cost + round(p1, p2))
return min_spent
start_hero = Unit(50, 0, 0, 500, {})
start_boss = Unit(71, 10, 0, 0, {})
print(round(start_hero, start_boss))
| spells = {'missile': 53, 'drain': 73, 'shield': 113, 'poison': 173, 'recharge': 229}
class Unit:
def __init__(self, hp, attack, armor, mana, effects):
self.hp = hp
self.att = attack
self.arm = armor
self.mana = mana
self.ef = effects
def basic_attack(self, other):
dmg = self.att - other.arm
dmg = max(dmg, 1)
other.hp -= dmg
return other.hp <= 0
def spell(self, other, name):
self.mana -= spells[name]
if name == 'missile':
other.hp -= 4
elif name == 'drain':
self.hp += 2
other.hp -= 2
elif name == 'shield':
self.ef[name] = 6
elif name == 'poison':
other.ef[name] = 6
else:
self.ef[name] = 5
return other.hp <= 0
def effects(self):
for (name, timer) in self.ef.items():
if name == 'shield':
if timer > 1:
self.arm = 7
else:
self.arm = 0
elif name == 'poison':
self.hp -= 3
elif name == 'recharge':
self.mana += 101
self.ef[name] = timer - 1
self.ef = {e: t for (e, t) in self.ef.items() if t > 0}
return self.hp <= 0
def __str__(self):
s = 'Unit(' + str(self.hp) + ', ' + str(self.att) + ', ' + str(self.arm) + ', ' + str(self.mana) + ', ' + str(self.ef) + ')'
return s
def round(hero, boss):
hero.effects()
if boss.effects():
return 0
min_spent = 10000
for (spell, cost) in spells.items():
if hero.mana >= cost and spell not in hero.ef and (spell not in boss.ef):
h_e = {e: t for (e, t) in hero.ef.items()}
b_e = {e: t for (e, t) in boss.ef.items()}
p1 = unit(hero.hp, hero.att, hero.arm, hero.mana, h_e)
p2 = unit(boss.hp, boss.att, boss.arm, boss.mana, b_e)
result = p1.spell(p2, spell)
if result:
min_spent = min(min_spent, cost)
else:
p1.effects()
if p2.effects():
min_spent = min(min_spent, cost)
continue
result = p2.basic_attack(p1)
if result:
continue
else:
min_spent = min(min_spent, cost + round(p1, p2))
return min_spent
start_hero = unit(50, 0, 0, 500, {})
start_boss = unit(71, 10, 0, 0, {})
print(round(start_hero, start_boss)) |
X, Y = [int(x) for x in input().split()]
if 2 * X <= Y <= 4 * X and Y % 2 == 0:
print("Yes")
else:
print("No")
| (x, y) = [int(x) for x in input().split()]
if 2 * X <= Y <= 4 * X and Y % 2 == 0:
print('Yes')
else:
print('No') |
#Empty List to contain user input
UserChoice = []
#Goes through C Branch options
def Cdecision(RootChoice):
opsC = True #variable was global, but made it local due to "UnboundLocalError"
while opsC:
choice = input("You can choose 'c': ")
if choice == "c":
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "c":
choice = input("You can choose 'c1': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "c1":
choice = input("You can choose 'c2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "c2":
choice = input("You can choose 'c3': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "c3":
#print(UserChoice)
opsC = False
#break
print(UserChoice)
else:
opsC = False
print("Sorry You're not a winner")
#Goes through B Branch options
def Bdecision(RootChoice):
opsB = True
while opsB:
choice = input("You can choose 'b': ")
if choice == "b":
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "b":
choice = input("You can choose 'b1' or 'b2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "b1":
choice = input("You can choose 'ab1': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == "b2":
choice = input("You can choose 'b3': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "ab1":
choice = input("You can choose 'ab2': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == "b3":
choice = input("You can choose 'b4': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "ab2" or UserChoice[-1] == "b4":
opsB = False
print(UserChoice)
else:
opsB = False
print("You put in the wrong input man")
#Goes through A Branch options
def Adecision(RootChoice):
opsA = True
while opsA:
choice = input("You can choose 'a': ")
if choice == "a":
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "a":
choice = input("You can choose 'a1' or 'a2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "a1":
choice = input("You can choose 'a3': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == "a2":
choice = input("You can choose 'ab1': ")
UserChoice.append(choice)
print(UserChoice)
#Believe I can't do this (below). Can't do a if-elif-if-elif chain.
if UserChoice[-1] == "a3":
choice = input("You can choose 'a4 or 'a5': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == "ab1":
choice = input("You can choose 'ab2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == "a4" or UserChoice[-1] == "a5" or UserChoice[-1] == "ab2": #Issues: program can end after first element been added to list
opsA = False # OR operation chain allows user to input end nodes into list. Stops while loop.
print(UserChoice)
else:
opsA = False
print("Cash in Hand")
#Presents user with Root choices of a, b, or c. Dependent on choice, will call it's associated Function
RootChoice = input("Choose a, b or c: ")
if RootChoice == "a":
Adecision(RootChoice)
elif RootChoice == "b":
Bdecision(RootChoice)
elif RootChoice == "c":
Cdecision(RootChoice)
else:
print("SORRY! Invalid choice!")
| user_choice = []
def cdecision(RootChoice):
ops_c = True
while opsC:
choice = input("You can choose 'c': ")
if choice == 'c':
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'c':
choice = input("You can choose 'c1': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'c1':
choice = input("You can choose 'c2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'c2':
choice = input("You can choose 'c3': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'c3':
ops_c = False
print(UserChoice)
else:
ops_c = False
print("Sorry You're not a winner")
def bdecision(RootChoice):
ops_b = True
while opsB:
choice = input("You can choose 'b': ")
if choice == 'b':
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'b':
choice = input("You can choose 'b1' or 'b2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'b1':
choice = input("You can choose 'ab1': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == 'b2':
choice = input("You can choose 'b3': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'ab1':
choice = input("You can choose 'ab2': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == 'b3':
choice = input("You can choose 'b4': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'ab2' or UserChoice[-1] == 'b4':
ops_b = False
print(UserChoice)
else:
ops_b = False
print('You put in the wrong input man')
def adecision(RootChoice):
ops_a = True
while opsA:
choice = input("You can choose 'a': ")
if choice == 'a':
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'a':
choice = input("You can choose 'a1' or 'a2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'a1':
choice = input("You can choose 'a3': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == 'a2':
choice = input("You can choose 'ab1': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'a3':
choice = input("You can choose 'a4 or 'a5': ")
UserChoice.append(choice)
print(UserChoice)
elif UserChoice[-1] == 'ab1':
choice = input("You can choose 'ab2': ")
UserChoice.append(choice)
print(UserChoice)
if UserChoice[-1] == 'a4' or UserChoice[-1] == 'a5' or UserChoice[-1] == 'ab2':
ops_a = False
print(UserChoice)
else:
ops_a = False
print('Cash in Hand')
root_choice = input('Choose a, b or c: ')
if RootChoice == 'a':
adecision(RootChoice)
elif RootChoice == 'b':
bdecision(RootChoice)
elif RootChoice == 'c':
cdecision(RootChoice)
else:
print('SORRY! Invalid choice!') |
test = { 'name': 'q1a',
'points': 11,
'suites': [ { 'cases': [ { 'code': '>>> '
'round(get_mape(pd.Series(np.linspace(1, '
'3, 4)), '
'pd.Series(np.linspace(1, 1, '
'4))),5) == 0.40952\n'
'True',
'hidden': False,
'locked': False}],
'scored': True,
'setup': '',
'teardown': '',
'type': 'doctest'}]}
| test = {'name': 'q1a', 'points': 11, 'suites': [{'cases': [{'code': '>>> round(get_mape(pd.Series(np.linspace(1, 3, 4)), pd.Series(np.linspace(1, 1, 4))),5) == 0.40952\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]} |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
slow, fast = head, head
if not slow and not fast: return True
while fast and fast.next:
slow = slow.next
fast = fast.next.next
n_head = slow
prev = None
while n_head:
current = n_head
n_head = n_head.next
current.next = prev
prev = current
slow = prev
while slow:
if slow.val != head.val:
return False
slow = slow.next
head = head.next
return True | class Solution:
def is_palindrome(self, head: ListNode) -> bool:
(slow, fast) = (head, head)
if not slow and (not fast):
return True
while fast and fast.next:
slow = slow.next
fast = fast.next.next
n_head = slow
prev = None
while n_head:
current = n_head
n_head = n_head.next
current.next = prev
prev = current
slow = prev
while slow:
if slow.val != head.val:
return False
slow = slow.next
head = head.next
return True |
#
# PySNMP MIB module NOVELL-IPX-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NOVELL-IPX-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:14:30 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, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibIdentifier, Integer32, Unsigned32, IpAddress, Bits, TimeTicks, Counter64, iso, ModuleIdentity, ObjectIdentity, NotificationType, Counter32, Gauge32, enterprises, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Integer32", "Unsigned32", "IpAddress", "Bits", "TimeTicks", "Counter64", "iso", "ModuleIdentity", "ObjectIdentity", "NotificationType", "Counter32", "Gauge32", "enterprises", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DisplayString, TextualConvention, PhysAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "PhysAddress")
novellMib = MibIdentifier((1, 3, 6, 1, 4, 1, 23))
mibDoc = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2))
ipx = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5))
ipxSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 1))
ipxCircuit = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 2))
ipxForwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 3))
ipxServices = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 4))
ipxTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 5))
class NetNumber(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4)
fixedLength = 4
ipxBasicSysTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1), )
if mibBuilder.loadTexts: ipxBasicSysTable.setStatus('mandatory')
ipxBasicSysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxBasicSysInstance"))
if mibBuilder.loadTexts: ipxBasicSysEntry.setStatus('mandatory')
ipxBasicSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxBasicSysInstance.setStatus('mandatory')
ipxBasicSysExistState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxBasicSysExistState.setStatus('mandatory')
ipxBasicSysNetNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 3), NetNumber()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxBasicSysNetNumber.setStatus('mandatory')
ipxBasicSysNode = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxBasicSysNode.setStatus('mandatory')
ipxBasicSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxBasicSysName.setStatus('mandatory')
ipxBasicSysInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInReceives.setStatus('mandatory')
ipxBasicSysInHdrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInHdrErrors.setStatus('mandatory')
ipxBasicSysInUnknownSockets = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInUnknownSockets.setStatus('mandatory')
ipxBasicSysInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInDiscards.setStatus('mandatory')
ipxBasicSysInBadChecksums = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInBadChecksums.setStatus('mandatory')
ipxBasicSysInDelivers = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysInDelivers.setStatus('mandatory')
ipxBasicSysNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysNoRoutes.setStatus('mandatory')
ipxBasicSysOutRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysOutRequests.setStatus('mandatory')
ipxBasicSysOutMalformedRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysOutMalformedRequests.setStatus('mandatory')
ipxBasicSysOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysOutDiscards.setStatus('mandatory')
ipxBasicSysOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysOutPackets.setStatus('mandatory')
ipxBasicSysConfigSockets = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysConfigSockets.setStatus('mandatory')
ipxBasicSysOpenSocketFails = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxBasicSysOpenSocketFails.setStatus('mandatory')
ipxAdvSysTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2), )
if mibBuilder.loadTexts: ipxAdvSysTable.setStatus('mandatory')
ipxAdvSysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxAdvSysInstance"))
if mibBuilder.loadTexts: ipxAdvSysEntry.setStatus('mandatory')
ipxAdvSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxAdvSysInstance.setStatus('mandatory')
ipxAdvSysMaxPathSplits = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxAdvSysMaxPathSplits.setStatus('mandatory')
ipxAdvSysMaxHops = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 3), Integer32().clone(64)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxAdvSysMaxHops.setStatus('mandatory')
ipxAdvSysInTooManyHops = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysInTooManyHops.setStatus('mandatory')
ipxAdvSysInFiltered = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysInFiltered.setStatus('mandatory')
ipxAdvSysInCompressDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysInCompressDiscards.setStatus('mandatory')
ipxAdvSysNETBIOSPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysNETBIOSPackets.setStatus('mandatory')
ipxAdvSysForwPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysForwPackets.setStatus('mandatory')
ipxAdvSysOutFiltered = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysOutFiltered.setStatus('mandatory')
ipxAdvSysOutCompressDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysOutCompressDiscards.setStatus('mandatory')
ipxAdvSysCircCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysCircCount.setStatus('mandatory')
ipxAdvSysDestCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysDestCount.setStatus('mandatory')
ipxAdvSysServCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxAdvSysServCount.setStatus('mandatory')
ipxCircTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1), )
if mibBuilder.loadTexts: ipxCircTable.setStatus('mandatory')
ipxCircEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxCircSysInstance"), (0, "NOVELL-IPX-MIB", "ipxCircIndex"))
if mibBuilder.loadTexts: ipxCircEntry.setStatus('mandatory')
ipxCircSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircSysInstance.setStatus('mandatory')
ipxCircIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircIndex.setStatus('mandatory')
ipxCircExistState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircExistState.setStatus('mandatory')
ipxCircOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("down", 1), ("up", 2), ("sleeping", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircOperState.setStatus('mandatory')
ipxCircIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircIfIndex.setStatus('mandatory')
ipxCircName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircName.setStatus('mandatory')
ipxCircType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("broadcast", 2), ("ptToPt", 3), ("wanRIP", 4), ("unnumberedRIP", 5), ("dynamic", 6), ("wanWS", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircType.setStatus('mandatory')
ipxCircDialName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircDialName.setStatus('mandatory')
ipxCircLocalMaxPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircLocalMaxPacketSize.setStatus('mandatory')
ipxCircCompressState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2))).clone('off')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircCompressState.setStatus('mandatory')
ipxCircCompressSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 11), Integer32().clone(16)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircCompressSlots.setStatus('mandatory')
ipxCircStaticStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("currentt", 2), ("changed", 3), ("read", 4), ("reading", 5), ("write", 6), ("writing", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxCircStaticStatus.setStatus('mandatory')
ipxCircCompressedSent = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedSent.setStatus('mandatory')
ipxCircCompressedInitSent = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedInitSent.setStatus('mandatory')
ipxCircCompressedRejectsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedRejectsSent.setStatus('mandatory')
ipxCircUncompressedSent = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircUncompressedSent.setStatus('mandatory')
ipxCircCompressedReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedReceived.setStatus('mandatory')
ipxCircCompressedInitReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedInitReceived.setStatus('mandatory')
ipxCircCompressedRejectsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircCompressedRejectsReceived.setStatus('mandatory')
ipxCircUncompressedReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircUncompressedReceived.setStatus('mandatory')
ipxCircMediaType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 21), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircMediaType.setStatus('mandatory')
ipxCircNetNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 22), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircNetNumber.setStatus('mandatory')
ipxCircStateChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircStateChanges.setStatus('mandatory')
ipxCircInitFails = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircInitFails.setStatus('mandatory')
ipxCircDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 25), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircDelay.setStatus('mandatory')
ipxCircThroughput = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 26), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircThroughput.setStatus('mandatory')
ipxCircNeighRouterName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 27), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircNeighRouterName.setStatus('mandatory')
ipxCircNeighInternalNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 28), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxCircNeighInternalNetNum.setStatus('mandatory')
ipxDestTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1), )
if mibBuilder.loadTexts: ipxDestTable.setStatus('mandatory')
ipxDestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxDestSysInstance"), (0, "NOVELL-IPX-MIB", "ipxDestNetNum"))
if mibBuilder.loadTexts: ipxDestEntry.setStatus('mandatory')
ipxDestSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestSysInstance.setStatus('mandatory')
ipxDestNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 2), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestNetNum.setStatus('mandatory')
ipxDestProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("rip", 3), ("nlsp", 4), ("static", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestProtocol.setStatus('mandatory')
ipxDestTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestTicks.setStatus('mandatory')
ipxDestHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestHopCount.setStatus('mandatory')
ipxDestNextHopCircIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestNextHopCircIndex.setStatus('mandatory')
ipxDestNextHopNICAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 7), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestNextHopNICAddress.setStatus('mandatory')
ipxDestNextHopNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 8), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestNextHopNetNum.setStatus('mandatory')
ipxStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2), )
if mibBuilder.loadTexts: ipxStaticRouteTable.setStatus('mandatory')
ipxStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxStaticRouteSysInstance"), (0, "NOVELL-IPX-MIB", "ipxStaticRouteCircIndex"), (0, "NOVELL-IPX-MIB", "ipxStaticRouteNetNum"))
if mibBuilder.loadTexts: ipxStaticRouteEntry.setStatus('mandatory')
ipxStaticRouteSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteSysInstance.setStatus('mandatory')
ipxStaticRouteCircIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteCircIndex.setStatus('mandatory')
ipxStaticRouteNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 3), NetNumber()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteNetNum.setStatus('mandatory')
ipxStaticRouteExistState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteExistState.setStatus('mandatory')
ipxStaticRouteTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteTicks.setStatus('mandatory')
ipxStaticRouteHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticRouteHopCount.setStatus('mandatory')
ipxServTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1), )
if mibBuilder.loadTexts: ipxServTable.setStatus('mandatory')
ipxServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxServSysInstance"), (0, "NOVELL-IPX-MIB", "ipxServType"), (0, "NOVELL-IPX-MIB", "ipxServName"))
if mibBuilder.loadTexts: ipxServEntry.setStatus('mandatory')
ipxServSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServSysInstance.setStatus('mandatory')
ipxServType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServType.setStatus('mandatory')
ipxServName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 48))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServName.setStatus('mandatory')
ipxServProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("nlsp", 4), ("static", 5), ("sap", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServProtocol.setStatus('mandatory')
ipxServNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 5), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServNetNum.setStatus('mandatory')
ipxServNode = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServNode.setStatus('mandatory')
ipxServSocket = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServSocket.setStatus('mandatory')
ipxServHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxServHopCount.setStatus('mandatory')
ipxDestServTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2), )
if mibBuilder.loadTexts: ipxDestServTable.setStatus('mandatory')
ipxDestServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxDestServSysInstance"), (0, "NOVELL-IPX-MIB", "ipxDestServNetNum"), (0, "NOVELL-IPX-MIB", "ipxDestServNode"), (0, "NOVELL-IPX-MIB", "ipxDestServSocket"), (0, "NOVELL-IPX-MIB", "ipxDestServName"), (0, "NOVELL-IPX-MIB", "ipxDestServType"))
if mibBuilder.loadTexts: ipxDestServEntry.setStatus('mandatory')
ipxDestServSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServSysInstance.setStatus('mandatory')
ipxDestServNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 2), NetNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServNetNum.setStatus('mandatory')
ipxDestServNode = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServNode.setStatus('mandatory')
ipxDestServSocket = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServSocket.setStatus('mandatory')
ipxDestServName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 48))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServName.setStatus('mandatory')
ipxDestServType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServType.setStatus('mandatory')
ipxDestServProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("nlsp", 4), ("static", 5), ("sap", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServProtocol.setStatus('mandatory')
ipxDestServHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipxDestServHopCount.setStatus('mandatory')
ipxStaticServTable = MibTable((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3), )
if mibBuilder.loadTexts: ipxStaticServTable.setStatus('mandatory')
ipxStaticServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1), ).setIndexNames((0, "NOVELL-IPX-MIB", "ipxStaticServSysInstance"), (0, "NOVELL-IPX-MIB", "ipxStaticServCircIndex"), (0, "NOVELL-IPX-MIB", "ipxStaticServName"), (0, "NOVELL-IPX-MIB", "ipxStaticServType"))
if mibBuilder.loadTexts: ipxStaticServEntry.setStatus('mandatory')
ipxStaticServSysInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServSysInstance.setStatus('mandatory')
ipxStaticServCircIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServCircIndex.setStatus('mandatory')
ipxStaticServName = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 48))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServName.setStatus('mandatory')
ipxStaticServType = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServType.setStatus('mandatory')
ipxStaticServExistState = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServExistState.setStatus('mandatory')
ipxStaticServNetNum = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 6), NetNumber()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServNetNum.setStatus('mandatory')
ipxStaticServNode = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServNode.setStatus('mandatory')
ipxStaticServSocket = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServSocket.setStatus('mandatory')
ipxStaticServHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipxStaticServHopCount.setStatus('mandatory')
ipxTrapCircuitDown = NotificationType((1, 3, 6, 1, 4, 1, 23, 2, 5, 5) + (0,1)).setObjects(("NOVELL-IPX-MIB", "ipxCircSysInstance"), ("NOVELL-IPX-MIB", "ipxCircIndex"))
ipxTrapCircuitUp = NotificationType((1, 3, 6, 1, 4, 1, 23, 2, 5, 5) + (0,2)).setObjects(("NOVELL-IPX-MIB", "ipxCircSysInstance"), ("NOVELL-IPX-MIB", "ipxCircIndex"))
mibBuilder.exportSymbols("NOVELL-IPX-MIB", ipxBasicSysInDelivers=ipxBasicSysInDelivers, ipxCircNetNumber=ipxCircNetNumber, ipxStaticRouteCircIndex=ipxStaticRouteCircIndex, ipxCircEntry=ipxCircEntry, ipxCircUncompressedReceived=ipxCircUncompressedReceived, ipxCircCompressedInitSent=ipxCircCompressedInitSent, ipxBasicSysOutRequests=ipxBasicSysOutRequests, NetNumber=NetNumber, ipxBasicSysTable=ipxBasicSysTable, ipxBasicSysOutDiscards=ipxBasicSysOutDiscards, ipxServices=ipxServices, ipxStaticRouteHopCount=ipxStaticRouteHopCount, ipxDestProtocol=ipxDestProtocol, ipxBasicSysInBadChecksums=ipxBasicSysInBadChecksums, ipxCircSysInstance=ipxCircSysInstance, ipxBasicSysEntry=ipxBasicSysEntry, ipxDestNetNum=ipxDestNetNum, ipxDestServNode=ipxDestServNode, ipxAdvSysMaxPathSplits=ipxAdvSysMaxPathSplits, ipxStaticServExistState=ipxStaticServExistState, ipxCircName=ipxCircName, ipxBasicSysOpenSocketFails=ipxBasicSysOpenSocketFails, ipxAdvSysOutCompressDiscards=ipxAdvSysOutCompressDiscards, ipxServType=ipxServType, ipxAdvSysInTooManyHops=ipxAdvSysInTooManyHops, ipxAdvSysInCompressDiscards=ipxAdvSysInCompressDiscards, ipxForwarding=ipxForwarding, ipxCircInitFails=ipxCircInitFails, ipxSystem=ipxSystem, ipxDestServNetNum=ipxDestServNetNum, ipxDestServEntry=ipxDestServEntry, ipxAdvSysForwPackets=ipxAdvSysForwPackets, ipxCircOperState=ipxCircOperState, ipxCircNeighInternalNetNum=ipxCircNeighInternalNetNum, ipxStaticRouteNetNum=ipxStaticRouteNetNum, ipxCircCompressedRejectsReceived=ipxCircCompressedRejectsReceived, ipxCircCompressedInitReceived=ipxCircCompressedInitReceived, ipxStaticServSocket=ipxStaticServSocket, ipxAdvSysDestCount=ipxAdvSysDestCount, ipxCircCompressState=ipxCircCompressState, ipxBasicSysNode=ipxBasicSysNode, ipxBasicSysOutMalformedRequests=ipxBasicSysOutMalformedRequests, ipxServSysInstance=ipxServSysInstance, ipxBasicSysNoRoutes=ipxBasicSysNoRoutes, ipxDestServTable=ipxDestServTable, ipxTrapCircuitUp=ipxTrapCircuitUp, ipxStaticServTable=ipxStaticServTable, ipxBasicSysInDiscards=ipxBasicSysInDiscards, ipxStaticRouteTable=ipxStaticRouteTable, ipxStaticRouteSysInstance=ipxStaticRouteSysInstance, ipxAdvSysInFiltered=ipxAdvSysInFiltered, ipxStaticServNode=ipxStaticServNode, ipxAdvSysServCount=ipxAdvSysServCount, ipxAdvSysNETBIOSPackets=ipxAdvSysNETBIOSPackets, ipxDestTicks=ipxDestTicks, ipxDestNextHopNetNum=ipxDestNextHopNetNum, ipxDestServName=ipxDestServName, ipxAdvSysOutFiltered=ipxAdvSysOutFiltered, ipxBasicSysOutPackets=ipxBasicSysOutPackets, ipxServNetNum=ipxServNetNum, ipxCircStateChanges=ipxCircStateChanges, ipxDestServHopCount=ipxDestServHopCount, ipxStaticServType=ipxStaticServType, ipxCircStaticStatus=ipxCircStaticStatus, ipxBasicSysExistState=ipxBasicSysExistState, ipxStaticRouteExistState=ipxStaticRouteExistState, ipxCircCompressedRejectsSent=ipxCircCompressedRejectsSent, ipxBasicSysInReceives=ipxBasicSysInReceives, ipxDestServSocket=ipxDestServSocket, ipxCircDialName=ipxCircDialName, ipxCircCompressedSent=ipxCircCompressedSent, ipxCircCompressedReceived=ipxCircCompressedReceived, ipxStaticServEntry=ipxStaticServEntry, ipxDestTable=ipxDestTable, ipxStaticServNetNum=ipxStaticServNetNum, ipxStaticRouteTicks=ipxStaticRouteTicks, ipxBasicSysInHdrErrors=ipxBasicSysInHdrErrors, mibDoc=mibDoc, ipxCircMediaType=ipxCircMediaType, ipxAdvSysInstance=ipxAdvSysInstance, ipxServNode=ipxServNode, ipxAdvSysTable=ipxAdvSysTable, ipxServSocket=ipxServSocket, ipxAdvSysCircCount=ipxAdvSysCircCount, ipxStaticServSysInstance=ipxStaticServSysInstance, ipxDestSysInstance=ipxDestSysInstance, ipxCircuit=ipxCircuit, ipxCircType=ipxCircType, ipxStaticServHopCount=ipxStaticServHopCount, ipxCircLocalMaxPacketSize=ipxCircLocalMaxPacketSize, ipxCircExistState=ipxCircExistState, ipxDestServType=ipxDestServType, ipxCircIndex=ipxCircIndex, ipxDestEntry=ipxDestEntry, ipxDestServSysInstance=ipxDestServSysInstance, ipxCircCompressSlots=ipxCircCompressSlots, ipxServHopCount=ipxServHopCount, ipxCircTable=ipxCircTable, ipxCircIfIndex=ipxCircIfIndex, ipxBasicSysNetNumber=ipxBasicSysNetNumber, ipxServEntry=ipxServEntry, ipxStaticServCircIndex=ipxStaticServCircIndex, ipxAdvSysEntry=ipxAdvSysEntry, ipxStaticServName=ipxStaticServName, ipxBasicSysConfigSockets=ipxBasicSysConfigSockets, ipxTraps=ipxTraps, ipxCircUncompressedSent=ipxCircUncompressedSent, ipxStaticRouteEntry=ipxStaticRouteEntry, ipxServName=ipxServName, ipxTrapCircuitDown=ipxTrapCircuitDown, ipxDestServProtocol=ipxDestServProtocol, ipxBasicSysInstance=ipxBasicSysInstance, ipxServProtocol=ipxServProtocol, ipxBasicSysName=ipxBasicSysName, novellMib=novellMib, ipxAdvSysMaxHops=ipxAdvSysMaxHops, ipxDestNextHopNICAddress=ipxDestNextHopNICAddress, ipx=ipx, ipxCircThroughput=ipxCircThroughput, ipxDestHopCount=ipxDestHopCount, ipxServTable=ipxServTable, ipxBasicSysInUnknownSockets=ipxBasicSysInUnknownSockets, ipxCircDelay=ipxCircDelay, ipxDestNextHopCircIndex=ipxDestNextHopCircIndex, ipxCircNeighRouterName=ipxCircNeighRouterName)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(mib_identifier, integer32, unsigned32, ip_address, bits, time_ticks, counter64, iso, module_identity, object_identity, notification_type, counter32, gauge32, enterprises, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Integer32', 'Unsigned32', 'IpAddress', 'Bits', 'TimeTicks', 'Counter64', 'iso', 'ModuleIdentity', 'ObjectIdentity', 'NotificationType', 'Counter32', 'Gauge32', 'enterprises', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(display_string, textual_convention, phys_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'PhysAddress')
novell_mib = mib_identifier((1, 3, 6, 1, 4, 1, 23))
mib_doc = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2))
ipx = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5))
ipx_system = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 1))
ipx_circuit = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 2))
ipx_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 3))
ipx_services = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 4))
ipx_traps = mib_identifier((1, 3, 6, 1, 4, 1, 23, 2, 5, 5))
class Netnumber(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(4, 4)
fixed_length = 4
ipx_basic_sys_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1))
if mibBuilder.loadTexts:
ipxBasicSysTable.setStatus('mandatory')
ipx_basic_sys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxBasicSysInstance'))
if mibBuilder.loadTexts:
ipxBasicSysEntry.setStatus('mandatory')
ipx_basic_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxBasicSysInstance.setStatus('mandatory')
ipx_basic_sys_exist_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxBasicSysExistState.setStatus('mandatory')
ipx_basic_sys_net_number = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 3), net_number()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxBasicSysNetNumber.setStatus('mandatory')
ipx_basic_sys_node = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxBasicSysNode.setStatus('mandatory')
ipx_basic_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxBasicSysName.setStatus('mandatory')
ipx_basic_sys_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInReceives.setStatus('mandatory')
ipx_basic_sys_in_hdr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInHdrErrors.setStatus('mandatory')
ipx_basic_sys_in_unknown_sockets = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInUnknownSockets.setStatus('mandatory')
ipx_basic_sys_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInDiscards.setStatus('mandatory')
ipx_basic_sys_in_bad_checksums = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInBadChecksums.setStatus('mandatory')
ipx_basic_sys_in_delivers = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysInDelivers.setStatus('mandatory')
ipx_basic_sys_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysNoRoutes.setStatus('mandatory')
ipx_basic_sys_out_requests = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysOutRequests.setStatus('mandatory')
ipx_basic_sys_out_malformed_requests = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysOutMalformedRequests.setStatus('mandatory')
ipx_basic_sys_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysOutDiscards.setStatus('mandatory')
ipx_basic_sys_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysOutPackets.setStatus('mandatory')
ipx_basic_sys_config_sockets = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysConfigSockets.setStatus('mandatory')
ipx_basic_sys_open_socket_fails = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxBasicSysOpenSocketFails.setStatus('mandatory')
ipx_adv_sys_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2))
if mibBuilder.loadTexts:
ipxAdvSysTable.setStatus('mandatory')
ipx_adv_sys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxAdvSysInstance'))
if mibBuilder.loadTexts:
ipxAdvSysEntry.setStatus('mandatory')
ipx_adv_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxAdvSysInstance.setStatus('mandatory')
ipx_adv_sys_max_path_splits = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 32)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxAdvSysMaxPathSplits.setStatus('mandatory')
ipx_adv_sys_max_hops = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 3), integer32().clone(64)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxAdvSysMaxHops.setStatus('mandatory')
ipx_adv_sys_in_too_many_hops = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysInTooManyHops.setStatus('mandatory')
ipx_adv_sys_in_filtered = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysInFiltered.setStatus('mandatory')
ipx_adv_sys_in_compress_discards = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysInCompressDiscards.setStatus('mandatory')
ipx_adv_sys_netbios_packets = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysNETBIOSPackets.setStatus('mandatory')
ipx_adv_sys_forw_packets = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysForwPackets.setStatus('mandatory')
ipx_adv_sys_out_filtered = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysOutFiltered.setStatus('mandatory')
ipx_adv_sys_out_compress_discards = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysOutCompressDiscards.setStatus('mandatory')
ipx_adv_sys_circ_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysCircCount.setStatus('mandatory')
ipx_adv_sys_dest_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysDestCount.setStatus('mandatory')
ipx_adv_sys_serv_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 1, 2, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxAdvSysServCount.setStatus('mandatory')
ipx_circ_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1))
if mibBuilder.loadTexts:
ipxCircTable.setStatus('mandatory')
ipx_circ_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxCircSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxCircIndex'))
if mibBuilder.loadTexts:
ipxCircEntry.setStatus('mandatory')
ipx_circ_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircSysInstance.setStatus('mandatory')
ipx_circ_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircIndex.setStatus('mandatory')
ipx_circ_exist_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircExistState.setStatus('mandatory')
ipx_circ_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('down', 1), ('up', 2), ('sleeping', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircOperState.setStatus('mandatory')
ipx_circ_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircIfIndex.setStatus('mandatory')
ipx_circ_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircName.setStatus('mandatory')
ipx_circ_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('broadcast', 2), ('ptToPt', 3), ('wanRIP', 4), ('unnumberedRIP', 5), ('dynamic', 6), ('wanWS', 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircType.setStatus('mandatory')
ipx_circ_dial_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircDialName.setStatus('mandatory')
ipx_circ_local_max_packet_size = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircLocalMaxPacketSize.setStatus('mandatory')
ipx_circ_compress_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2))).clone('off')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircCompressState.setStatus('mandatory')
ipx_circ_compress_slots = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 11), integer32().clone(16)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircCompressSlots.setStatus('mandatory')
ipx_circ_static_status = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('currentt', 2), ('changed', 3), ('read', 4), ('reading', 5), ('write', 6), ('writing', 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxCircStaticStatus.setStatus('mandatory')
ipx_circ_compressed_sent = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedSent.setStatus('mandatory')
ipx_circ_compressed_init_sent = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedInitSent.setStatus('mandatory')
ipx_circ_compressed_rejects_sent = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedRejectsSent.setStatus('mandatory')
ipx_circ_uncompressed_sent = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircUncompressedSent.setStatus('mandatory')
ipx_circ_compressed_received = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedReceived.setStatus('mandatory')
ipx_circ_compressed_init_received = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedInitReceived.setStatus('mandatory')
ipx_circ_compressed_rejects_received = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircCompressedRejectsReceived.setStatus('mandatory')
ipx_circ_uncompressed_received = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircUncompressedReceived.setStatus('mandatory')
ipx_circ_media_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 21), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircMediaType.setStatus('mandatory')
ipx_circ_net_number = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 22), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircNetNumber.setStatus('mandatory')
ipx_circ_state_changes = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircStateChanges.setStatus('mandatory')
ipx_circ_init_fails = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircInitFails.setStatus('mandatory')
ipx_circ_delay = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 25), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircDelay.setStatus('mandatory')
ipx_circ_throughput = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 26), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircThroughput.setStatus('mandatory')
ipx_circ_neigh_router_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 27), octet_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircNeighRouterName.setStatus('mandatory')
ipx_circ_neigh_internal_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 2, 1, 1, 28), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxCircNeighInternalNetNum.setStatus('mandatory')
ipx_dest_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1))
if mibBuilder.loadTexts:
ipxDestTable.setStatus('mandatory')
ipx_dest_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxDestSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxDestNetNum'))
if mibBuilder.loadTexts:
ipxDestEntry.setStatus('mandatory')
ipx_dest_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestSysInstance.setStatus('mandatory')
ipx_dest_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 2), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestNetNum.setStatus('mandatory')
ipx_dest_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('local', 2), ('rip', 3), ('nlsp', 4), ('static', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestProtocol.setStatus('mandatory')
ipx_dest_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestTicks.setStatus('mandatory')
ipx_dest_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestHopCount.setStatus('mandatory')
ipx_dest_next_hop_circ_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestNextHopCircIndex.setStatus('mandatory')
ipx_dest_next_hop_nic_address = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 7), phys_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestNextHopNICAddress.setStatus('mandatory')
ipx_dest_next_hop_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 1, 1, 8), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestNextHopNetNum.setStatus('mandatory')
ipx_static_route_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2))
if mibBuilder.loadTexts:
ipxStaticRouteTable.setStatus('mandatory')
ipx_static_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxStaticRouteSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxStaticRouteCircIndex'), (0, 'NOVELL-IPX-MIB', 'ipxStaticRouteNetNum'))
if mibBuilder.loadTexts:
ipxStaticRouteEntry.setStatus('mandatory')
ipx_static_route_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteSysInstance.setStatus('mandatory')
ipx_static_route_circ_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteCircIndex.setStatus('mandatory')
ipx_static_route_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 3), net_number()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteNetNum.setStatus('mandatory')
ipx_static_route_exist_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteExistState.setStatus('mandatory')
ipx_static_route_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteTicks.setStatus('mandatory')
ipx_static_route_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 3, 2, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticRouteHopCount.setStatus('mandatory')
ipx_serv_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1))
if mibBuilder.loadTexts:
ipxServTable.setStatus('mandatory')
ipx_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxServSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxServType'), (0, 'NOVELL-IPX-MIB', 'ipxServName'))
if mibBuilder.loadTexts:
ipxServEntry.setStatus('mandatory')
ipx_serv_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServSysInstance.setStatus('mandatory')
ipx_serv_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServType.setStatus('mandatory')
ipx_serv_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 48))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServName.setStatus('mandatory')
ipx_serv_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('local', 2), ('nlsp', 4), ('static', 5), ('sap', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServProtocol.setStatus('mandatory')
ipx_serv_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 5), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServNetNum.setStatus('mandatory')
ipx_serv_node = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServNode.setStatus('mandatory')
ipx_serv_socket = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServSocket.setStatus('mandatory')
ipx_serv_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxServHopCount.setStatus('mandatory')
ipx_dest_serv_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2))
if mibBuilder.loadTexts:
ipxDestServTable.setStatus('mandatory')
ipx_dest_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxDestServSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxDestServNetNum'), (0, 'NOVELL-IPX-MIB', 'ipxDestServNode'), (0, 'NOVELL-IPX-MIB', 'ipxDestServSocket'), (0, 'NOVELL-IPX-MIB', 'ipxDestServName'), (0, 'NOVELL-IPX-MIB', 'ipxDestServType'))
if mibBuilder.loadTexts:
ipxDestServEntry.setStatus('mandatory')
ipx_dest_serv_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServSysInstance.setStatus('mandatory')
ipx_dest_serv_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 2), net_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServNetNum.setStatus('mandatory')
ipx_dest_serv_node = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServNode.setStatus('mandatory')
ipx_dest_serv_socket = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServSocket.setStatus('mandatory')
ipx_dest_serv_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(1, 48))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServName.setStatus('mandatory')
ipx_dest_serv_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServType.setStatus('mandatory')
ipx_dest_serv_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('local', 2), ('nlsp', 4), ('static', 5), ('sap', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServProtocol.setStatus('mandatory')
ipx_dest_serv_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipxDestServHopCount.setStatus('mandatory')
ipx_static_serv_table = mib_table((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3))
if mibBuilder.loadTexts:
ipxStaticServTable.setStatus('mandatory')
ipx_static_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1)).setIndexNames((0, 'NOVELL-IPX-MIB', 'ipxStaticServSysInstance'), (0, 'NOVELL-IPX-MIB', 'ipxStaticServCircIndex'), (0, 'NOVELL-IPX-MIB', 'ipxStaticServName'), (0, 'NOVELL-IPX-MIB', 'ipxStaticServType'))
if mibBuilder.loadTexts:
ipxStaticServEntry.setStatus('mandatory')
ipx_static_serv_sys_instance = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServSysInstance.setStatus('mandatory')
ipx_static_serv_circ_index = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServCircIndex.setStatus('mandatory')
ipx_static_serv_name = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 48))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServName.setStatus('mandatory')
ipx_static_serv_type = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServType.setStatus('mandatory')
ipx_static_serv_exist_state = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServExistState.setStatus('mandatory')
ipx_static_serv_net_num = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 6), net_number()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServNetNum.setStatus('mandatory')
ipx_static_serv_node = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServNode.setStatus('mandatory')
ipx_static_serv_socket = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServSocket.setStatus('mandatory')
ipx_static_serv_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 23, 2, 5, 4, 3, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipxStaticServHopCount.setStatus('mandatory')
ipx_trap_circuit_down = notification_type((1, 3, 6, 1, 4, 1, 23, 2, 5, 5) + (0, 1)).setObjects(('NOVELL-IPX-MIB', 'ipxCircSysInstance'), ('NOVELL-IPX-MIB', 'ipxCircIndex'))
ipx_trap_circuit_up = notification_type((1, 3, 6, 1, 4, 1, 23, 2, 5, 5) + (0, 2)).setObjects(('NOVELL-IPX-MIB', 'ipxCircSysInstance'), ('NOVELL-IPX-MIB', 'ipxCircIndex'))
mibBuilder.exportSymbols('NOVELL-IPX-MIB', ipxBasicSysInDelivers=ipxBasicSysInDelivers, ipxCircNetNumber=ipxCircNetNumber, ipxStaticRouteCircIndex=ipxStaticRouteCircIndex, ipxCircEntry=ipxCircEntry, ipxCircUncompressedReceived=ipxCircUncompressedReceived, ipxCircCompressedInitSent=ipxCircCompressedInitSent, ipxBasicSysOutRequests=ipxBasicSysOutRequests, NetNumber=NetNumber, ipxBasicSysTable=ipxBasicSysTable, ipxBasicSysOutDiscards=ipxBasicSysOutDiscards, ipxServices=ipxServices, ipxStaticRouteHopCount=ipxStaticRouteHopCount, ipxDestProtocol=ipxDestProtocol, ipxBasicSysInBadChecksums=ipxBasicSysInBadChecksums, ipxCircSysInstance=ipxCircSysInstance, ipxBasicSysEntry=ipxBasicSysEntry, ipxDestNetNum=ipxDestNetNum, ipxDestServNode=ipxDestServNode, ipxAdvSysMaxPathSplits=ipxAdvSysMaxPathSplits, ipxStaticServExistState=ipxStaticServExistState, ipxCircName=ipxCircName, ipxBasicSysOpenSocketFails=ipxBasicSysOpenSocketFails, ipxAdvSysOutCompressDiscards=ipxAdvSysOutCompressDiscards, ipxServType=ipxServType, ipxAdvSysInTooManyHops=ipxAdvSysInTooManyHops, ipxAdvSysInCompressDiscards=ipxAdvSysInCompressDiscards, ipxForwarding=ipxForwarding, ipxCircInitFails=ipxCircInitFails, ipxSystem=ipxSystem, ipxDestServNetNum=ipxDestServNetNum, ipxDestServEntry=ipxDestServEntry, ipxAdvSysForwPackets=ipxAdvSysForwPackets, ipxCircOperState=ipxCircOperState, ipxCircNeighInternalNetNum=ipxCircNeighInternalNetNum, ipxStaticRouteNetNum=ipxStaticRouteNetNum, ipxCircCompressedRejectsReceived=ipxCircCompressedRejectsReceived, ipxCircCompressedInitReceived=ipxCircCompressedInitReceived, ipxStaticServSocket=ipxStaticServSocket, ipxAdvSysDestCount=ipxAdvSysDestCount, ipxCircCompressState=ipxCircCompressState, ipxBasicSysNode=ipxBasicSysNode, ipxBasicSysOutMalformedRequests=ipxBasicSysOutMalformedRequests, ipxServSysInstance=ipxServSysInstance, ipxBasicSysNoRoutes=ipxBasicSysNoRoutes, ipxDestServTable=ipxDestServTable, ipxTrapCircuitUp=ipxTrapCircuitUp, ipxStaticServTable=ipxStaticServTable, ipxBasicSysInDiscards=ipxBasicSysInDiscards, ipxStaticRouteTable=ipxStaticRouteTable, ipxStaticRouteSysInstance=ipxStaticRouteSysInstance, ipxAdvSysInFiltered=ipxAdvSysInFiltered, ipxStaticServNode=ipxStaticServNode, ipxAdvSysServCount=ipxAdvSysServCount, ipxAdvSysNETBIOSPackets=ipxAdvSysNETBIOSPackets, ipxDestTicks=ipxDestTicks, ipxDestNextHopNetNum=ipxDestNextHopNetNum, ipxDestServName=ipxDestServName, ipxAdvSysOutFiltered=ipxAdvSysOutFiltered, ipxBasicSysOutPackets=ipxBasicSysOutPackets, ipxServNetNum=ipxServNetNum, ipxCircStateChanges=ipxCircStateChanges, ipxDestServHopCount=ipxDestServHopCount, ipxStaticServType=ipxStaticServType, ipxCircStaticStatus=ipxCircStaticStatus, ipxBasicSysExistState=ipxBasicSysExistState, ipxStaticRouteExistState=ipxStaticRouteExistState, ipxCircCompressedRejectsSent=ipxCircCompressedRejectsSent, ipxBasicSysInReceives=ipxBasicSysInReceives, ipxDestServSocket=ipxDestServSocket, ipxCircDialName=ipxCircDialName, ipxCircCompressedSent=ipxCircCompressedSent, ipxCircCompressedReceived=ipxCircCompressedReceived, ipxStaticServEntry=ipxStaticServEntry, ipxDestTable=ipxDestTable, ipxStaticServNetNum=ipxStaticServNetNum, ipxStaticRouteTicks=ipxStaticRouteTicks, ipxBasicSysInHdrErrors=ipxBasicSysInHdrErrors, mibDoc=mibDoc, ipxCircMediaType=ipxCircMediaType, ipxAdvSysInstance=ipxAdvSysInstance, ipxServNode=ipxServNode, ipxAdvSysTable=ipxAdvSysTable, ipxServSocket=ipxServSocket, ipxAdvSysCircCount=ipxAdvSysCircCount, ipxStaticServSysInstance=ipxStaticServSysInstance, ipxDestSysInstance=ipxDestSysInstance, ipxCircuit=ipxCircuit, ipxCircType=ipxCircType, ipxStaticServHopCount=ipxStaticServHopCount, ipxCircLocalMaxPacketSize=ipxCircLocalMaxPacketSize, ipxCircExistState=ipxCircExistState, ipxDestServType=ipxDestServType, ipxCircIndex=ipxCircIndex, ipxDestEntry=ipxDestEntry, ipxDestServSysInstance=ipxDestServSysInstance, ipxCircCompressSlots=ipxCircCompressSlots, ipxServHopCount=ipxServHopCount, ipxCircTable=ipxCircTable, ipxCircIfIndex=ipxCircIfIndex, ipxBasicSysNetNumber=ipxBasicSysNetNumber, ipxServEntry=ipxServEntry, ipxStaticServCircIndex=ipxStaticServCircIndex, ipxAdvSysEntry=ipxAdvSysEntry, ipxStaticServName=ipxStaticServName, ipxBasicSysConfigSockets=ipxBasicSysConfigSockets, ipxTraps=ipxTraps, ipxCircUncompressedSent=ipxCircUncompressedSent, ipxStaticRouteEntry=ipxStaticRouteEntry, ipxServName=ipxServName, ipxTrapCircuitDown=ipxTrapCircuitDown, ipxDestServProtocol=ipxDestServProtocol, ipxBasicSysInstance=ipxBasicSysInstance, ipxServProtocol=ipxServProtocol, ipxBasicSysName=ipxBasicSysName, novellMib=novellMib, ipxAdvSysMaxHops=ipxAdvSysMaxHops, ipxDestNextHopNICAddress=ipxDestNextHopNICAddress, ipx=ipx, ipxCircThroughput=ipxCircThroughput, ipxDestHopCount=ipxDestHopCount, ipxServTable=ipxServTable, ipxBasicSysInUnknownSockets=ipxBasicSysInUnknownSockets, ipxCircDelay=ipxCircDelay, ipxDestNextHopCircIndex=ipxDestNextHopCircIndex, ipxCircNeighRouterName=ipxCircNeighRouterName) |
def ShoeStoreThingy(PairOfShoes, PairOfSocks, Money, time):
#shoes#
shoeBuy1 = int(input("How many Pairs of Shoe Would you like to buy, 1 pair of shoes = $800 ??? >>"))
countshoe = PairOfShoes + shoeBuy1
sureshoes = int(input("How Many shoes would you like to remove???, 0 for none >>"))
countshoe = countshoe - sureshoes
if countshoe < 0:
countshoe = 0
PairOfShoes = countshoe
print("shoes =",PairOfShoes)
#End()#
#socks#
shoeBuy2 = int(input("How many socks Would you like to buy, 1 pair of socks = $200 ??? >>"))
countsocks = PairOfSocks + shoeBuy2
suresocks = int(input("How Many socks would you like to remove???, 0 for none >>"))
countsocks = countshoe - suresocks
if countsocks < 0:
countsocks = 0
PairOfSocks = countsocks
print("socks =",PairOfSocks)
#End()#
checkPairOfSocks =int(input("Are you sure want to buy |1.Yes, 2.No| >>"))
print(Money,"Money Budget left")
if checkPairOfSocks == 1:
checkshoes0 = 800 * PairOfShoes
checkshoes1 = 200 * PairOfSocks
shoesockprice = checkshoes0 + checkshoes1
print(Money ,"= Money")
time.sleep(2)
if Money < shoesockprice:
print("You don't have enough money, Cancelling the checkout")
elif Money > shoesockprice:
Money = Money - shoesockprice
print("You have", Money ,"Budget Left")
| def shoe_store_thingy(PairOfShoes, PairOfSocks, Money, time):
shoe_buy1 = int(input('How many Pairs of Shoe Would you like to buy, 1 pair of shoes = $800 ??? >>'))
countshoe = PairOfShoes + shoeBuy1
sureshoes = int(input('How Many shoes would you like to remove???, 0 for none >>'))
countshoe = countshoe - sureshoes
if countshoe < 0:
countshoe = 0
pair_of_shoes = countshoe
print('shoes =', PairOfShoes)
shoe_buy2 = int(input('How many socks Would you like to buy, 1 pair of socks = $200 ??? >>'))
countsocks = PairOfSocks + shoeBuy2
suresocks = int(input('How Many socks would you like to remove???, 0 for none >>'))
countsocks = countshoe - suresocks
if countsocks < 0:
countsocks = 0
pair_of_socks = countsocks
print('socks =', PairOfSocks)
check_pair_of_socks = int(input('Are you sure want to buy |1.Yes, 2.No| >>'))
print(Money, 'Money Budget left')
if checkPairOfSocks == 1:
checkshoes0 = 800 * PairOfShoes
checkshoes1 = 200 * PairOfSocks
shoesockprice = checkshoes0 + checkshoes1
print(Money, '= Money')
time.sleep(2)
if Money < shoesockprice:
print("You don't have enough money, Cancelling the checkout")
elif Money > shoesockprice:
money = Money - shoesockprice
print('You have', Money, 'Budget Left') |
FNAME = 'submit'
def main():
output = ''
for p, problem in enumerate(load_input(), 1):
output += 'Case #%d: %s\n' % (p, solve(problem))
with open('%sOutput.txt' % FNAME, 'w', encoding='utf-8') as fp:
fp.write(output)
def load_input():
with open('%sInput.txt' % FNAME, 'r', encoding='utf-8') as fp:
problems = int(fp.readline())
for p in range(problems):
yield int(fp.readline())
def solve(rolls):
if rolls < simple_rolls(3): return 'IMPOSSIBLE'
h = 3
while True:
min_rolls = simple_rolls(h + 1)
if min_rolls <= rolls:
h += 1
else:
break
used_rolls = simple_rolls(h)
s = 0
while True:
min_rolls = extra_rolls(s + 1, h)
if min_rolls <= rolls - used_rolls:
s += 1
else:
break
used_rolls += extra_rolls(s, h)
print(s, h, used_rolls)
return '%d %d' % (h, used_rolls)
def simple_rolls(h):
return (16 * h**3 - 36 * h**2 - h + 24) // 3
def extra_rolls(s, h):
if s == 0: return 0
return (2 * s) * (h**2 - h) - h + h * (s // 2 - 1 + s % 2) * (s // 2 - 1)
if __name__ == '__main__':
main() | fname = 'submit'
def main():
output = ''
for (p, problem) in enumerate(load_input(), 1):
output += 'Case #%d: %s\n' % (p, solve(problem))
with open('%sOutput.txt' % FNAME, 'w', encoding='utf-8') as fp:
fp.write(output)
def load_input():
with open('%sInput.txt' % FNAME, 'r', encoding='utf-8') as fp:
problems = int(fp.readline())
for p in range(problems):
yield int(fp.readline())
def solve(rolls):
if rolls < simple_rolls(3):
return 'IMPOSSIBLE'
h = 3
while True:
min_rolls = simple_rolls(h + 1)
if min_rolls <= rolls:
h += 1
else:
break
used_rolls = simple_rolls(h)
s = 0
while True:
min_rolls = extra_rolls(s + 1, h)
if min_rolls <= rolls - used_rolls:
s += 1
else:
break
used_rolls += extra_rolls(s, h)
print(s, h, used_rolls)
return '%d %d' % (h, used_rolls)
def simple_rolls(h):
return (16 * h ** 3 - 36 * h ** 2 - h + 24) // 3
def extra_rolls(s, h):
if s == 0:
return 0
return 2 * s * (h ** 2 - h) - h + h * (s // 2 - 1 + s % 2) * (s // 2 - 1)
if __name__ == '__main__':
main() |
__author__ = 'Matt'
class PathSelection:
def __init__(self):
return
def drawPath(self, canvas, x, y, size):
ARENA_WIDTH = 100
ARENA_HEIGHT = 300
TRANSPORT_WIDTH = 10
TRANSPORT_HEIGHT = 15
EXCAVATOR_WIDTH = 10
EXCAVATOR_HEIGHT = 10
return | __author__ = 'Matt'
class Pathselection:
def __init__(self):
return
def draw_path(self, canvas, x, y, size):
arena_width = 100
arena_height = 300
transport_width = 10
transport_height = 15
excavator_width = 10
excavator_height = 10
return |
class DBRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'extoon':
return 'extoon'
if model._meta.app_label == 'emmdx':
return 'emmdx'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'extoon':
return 'extoon'
if model._meta.app_label == 'emmdx':
return 'emmdx'
return 'default'
def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label == 'extoon':
if obj2._meta.app_label != 'extoon':
return False
if obj1._meta.app_label == 'emmdx':
if obj2._meta.app_label != 'emmdx':
return False
def allow_migrate(self, db, app_label, **hints):
return False
| class Dbrouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'extoon':
return 'extoon'
if model._meta.app_label == 'emmdx':
return 'emmdx'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'extoon':
return 'extoon'
if model._meta.app_label == 'emmdx':
return 'emmdx'
return 'default'
def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label == 'extoon':
if obj2._meta.app_label != 'extoon':
return False
if obj1._meta.app_label == 'emmdx':
if obj2._meta.app_label != 'emmdx':
return False
def allow_migrate(self, db, app_label, **hints):
return False |
def binary_search(array , target):
first = 0
last = len(array) - 1
while first <= last:
midpoint = (first+last)//2
if array[midpoint] == target:
return midpoint
elif array[midpoint] > target:
last = midpoint - 1
else:
first = midpoint + 1
return -1
print(binary_search([1,2,3,4,5,6,7,8] , 6))
| def binary_search(array, target):
first = 0
last = len(array) - 1
while first <= last:
midpoint = (first + last) // 2
if array[midpoint] == target:
return midpoint
elif array[midpoint] > target:
last = midpoint - 1
else:
first = midpoint + 1
return -1
print(binary_search([1, 2, 3, 4, 5, 6, 7, 8], 6)) |
class Skill:
def __init__(self):
self.max_cooldown = 0
self.cooldown = 0
self.damage_multiplier = 0
self.damage_cap = 0
self.ally_buffs = []
self.ally_debuffs = []
self.foe_buffs = []
self.foe_debuffs = []
def use(self, attack):
self.cooldown = self.max_cooldown
#TODO: Apply damage cap lmao
return self.damage_multiplier * attack | class Skill:
def __init__(self):
self.max_cooldown = 0
self.cooldown = 0
self.damage_multiplier = 0
self.damage_cap = 0
self.ally_buffs = []
self.ally_debuffs = []
self.foe_buffs = []
self.foe_debuffs = []
def use(self, attack):
self.cooldown = self.max_cooldown
return self.damage_multiplier * attack |
# Problem Set 4A
# Name: <your name here>
# Collaborators:
# Time Spent: x:xx
def get_permutations(sequence):
'''
Enumerate all permutations of a given string
sequence (string): an arbitrary string to permute. Assume that it is a
non-empty string.
You MUST use recursion for this part. Non-recursive solutions will not be
accepted.
Returns: a list of all permutations of sequence
Example:
['abc', 'acb', 'bac', 'bca', 'cab', 'cba']
Note: depending on your implementation, you may return the permutations in
a different order than what is listed here.
'''
if len(sequence) == 1:
output = sequence
else:
output = []
for i in get_permutations(sequence[1:]):
for j in range(len(i) + 1):
tmp = list(i)
tmp.insert(j, sequence[0])
tmp = ''.join(tmp)
output.append(tmp)
return output
if __name__ == '__main__':
# #EXAMPLE
# example_input = 'abc'
# print('Input:', example_input)
# print('Expected Output:', ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'])
# print('Actual Output:', get_permutations(example_input))
# # Put three example test cases here (for your sanity, limit your inputs
# to be three characters or fewer as you will have n! permutations for a
# sequence of length n)
example_input = 'abc'
print('Input:', example_input)
print('Expected Output:', ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'])
print('Actual Output:', get_permutations(example_input))
| def get_permutations(sequence):
"""
Enumerate all permutations of a given string
sequence (string): an arbitrary string to permute. Assume that it is a
non-empty string.
You MUST use recursion for this part. Non-recursive solutions will not be
accepted.
Returns: a list of all permutations of sequence
Example:
['abc', 'acb', 'bac', 'bca', 'cab', 'cba']
Note: depending on your implementation, you may return the permutations in
a different order than what is listed here.
"""
if len(sequence) == 1:
output = sequence
else:
output = []
for i in get_permutations(sequence[1:]):
for j in range(len(i) + 1):
tmp = list(i)
tmp.insert(j, sequence[0])
tmp = ''.join(tmp)
output.append(tmp)
return output
if __name__ == '__main__':
example_input = 'abc'
print('Input:', example_input)
print('Expected Output:', ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'])
print('Actual Output:', get_permutations(example_input)) |
'''
Problem Name: HCF and LCM
Problem Code: FDGHLM
Problem Link: https://www.codechef.com/problems/FDGHLM
Solution Link: https://www.codechef.com/viewsolution/47003480
'''
def gcd(m, n):
if n == 0:
return m
return gcd(n, m%n)
def lcm(m, n):
prod = m*n
return prod//gcd(m, n)
def solve(a, b):
hcf_ = gcd(a, b)
print(hcf_, lcm(a, b))
if __name__ == '__main__':
a, b = map(int, input().split())
solve(a, b) | """
Problem Name: HCF and LCM
Problem Code: FDGHLM
Problem Link: https://www.codechef.com/problems/FDGHLM
Solution Link: https://www.codechef.com/viewsolution/47003480
"""
def gcd(m, n):
if n == 0:
return m
return gcd(n, m % n)
def lcm(m, n):
prod = m * n
return prod // gcd(m, n)
def solve(a, b):
hcf_ = gcd(a, b)
print(hcf_, lcm(a, b))
if __name__ == '__main__':
(a, b) = map(int, input().split())
solve(a, b) |
# Author: b1tank
# Email: b1tank@outlook.com
#=================================
'''
720_Longest_Word_in_Dictionary on LeetCode
Solution:
- Trie: TrieNode has a value and a hashmap of child nodes
- Depth First Search (DFS) implemented using both stack and recursive
'''
class TrieNode():
def __init__(self, c):
self.c = c
self.next = {} # key: c value of a child; value: a child TrieNode
class Trie(TrieNode):
def __init__(self):
self.c = ''
self.next = {}
def is_valid(self, word):
cur = self
for c in word:
if c in cur.next:
cur = cur.next[c]
else:
return False
return '*' in cur.next
def add_word(self, word):
cur = self
for c in word:
if c not in cur.next:
tn = TrieNode(c)
cur.next[c] = tn
cur = tn
else:
cur = cur.next[c]
if '*' not in cur.next:
cur.next['*'] = TrieNode('*') # terminating node, which can be also implemented as a bool flag in TrieNode
class Solution():
def lw_dfs(self, tn : TrieNode):
'''DFS implementation for longest word searching.'''
#********** stack DFS **********#
stack = [n for n in tn.next.values()]
max_sub_str = ''
tmp = ''
while stack:
cur = stack.pop()
if cur.c == '1':
tmp = tmp[:-1] # the last character is truncated from the tracked string when a marker TrieNode is hit
else:
if '*' in cur.next:
tmp = tmp + cur.c
stack.append(TrieNode('1')) # a marker TrieNode to separate different levels
for n in cur.next.values(): # put all children on the stack
stack.append(n)
else:
if len(tmp) > len(max_sub_str) or (len(tmp) == len(max_sub_str) and tmp < max_sub_str):
max_sub_str = tmp # update the longest word which is found
return max_sub_str
#********** recursive DFS **********#
#if tn.c == '*' or ('*' not in tn.next and tn.c != ''): # base case
# return ''
#else:
# ret_str = tn.c
# max_sub_str = ''
# for nv in tn.next.values(): # use DFS to find longest words of all children
# tmp = self.lw_dfs(nv)
# if len(tmp) > len(max_sub_str) or (len(tmp) == len(max_sub_str) and tmp < max_sub_str):
# max_sub_str = tmp
# return ret_str + max_sub_str
def longestWord(self, words):
t = Trie()
for w in words:
t.add_word(w)
return self.lw_dfs(t)
def main():
s = Solution()
words_1 = ["w","wo","wor","worl"]
output_1 = s.longestWord(words_1)
print(output_1)
answer_1 = 'worl'
print(output_1 == answer_1)
words_2 = ["a", "banana", "app", "appl", "ap", "apply", "appla", "apple"]
output_2 = s.longestWord(words_2)
print(output_2)
answer_2 = 'appla'
print(output_2 == answer_2)
if __name__ == '__main__':
main()
| """
720_Longest_Word_in_Dictionary on LeetCode
Solution:
- Trie: TrieNode has a value and a hashmap of child nodes
- Depth First Search (DFS) implemented using both stack and recursive
"""
class Trienode:
def __init__(self, c):
self.c = c
self.next = {}
class Trie(TrieNode):
def __init__(self):
self.c = ''
self.next = {}
def is_valid(self, word):
cur = self
for c in word:
if c in cur.next:
cur = cur.next[c]
else:
return False
return '*' in cur.next
def add_word(self, word):
cur = self
for c in word:
if c not in cur.next:
tn = trie_node(c)
cur.next[c] = tn
cur = tn
else:
cur = cur.next[c]
if '*' not in cur.next:
cur.next['*'] = trie_node('*')
class Solution:
def lw_dfs(self, tn: TrieNode):
"""DFS implementation for longest word searching."""
stack = [n for n in tn.next.values()]
max_sub_str = ''
tmp = ''
while stack:
cur = stack.pop()
if cur.c == '1':
tmp = tmp[:-1]
elif '*' in cur.next:
tmp = tmp + cur.c
stack.append(trie_node('1'))
for n in cur.next.values():
stack.append(n)
elif len(tmp) > len(max_sub_str) or (len(tmp) == len(max_sub_str) and tmp < max_sub_str):
max_sub_str = tmp
return max_sub_str
def longest_word(self, words):
t = trie()
for w in words:
t.add_word(w)
return self.lw_dfs(t)
def main():
s = solution()
words_1 = ['w', 'wo', 'wor', 'worl']
output_1 = s.longestWord(words_1)
print(output_1)
answer_1 = 'worl'
print(output_1 == answer_1)
words_2 = ['a', 'banana', 'app', 'appl', 'ap', 'apply', 'appla', 'apple']
output_2 = s.longestWord(words_2)
print(output_2)
answer_2 = 'appla'
print(output_2 == answer_2)
if __name__ == '__main__':
main() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.