content
stringlengths 7
1.05M
|
|---|
def get_metrics(history):
plot_metrics = [
k for k in history.keys()
if k not in ['epoch', 'batches'] and not k.startswith('val_')
]
return plot_metrics
def get_metric_vs_epoch(history, metric, batches=True):
data = []
val_metric = f'val_{metric}'
for key in [metric, val_metric]:
if key in history:
values = history[key]
if 'epoch' in history:
epochs = history['epoch']
else:
epochs = list(range(len(values)))
data.append(
{
'x': epochs,
'y': values,
'label': key
}
)
if batches:
batch_data = _get_batch_metric_vs_epoch(history, metric)
if batch_data:
data.append(batch_data)
return data
def _get_batch_metric_vs_epoch(history, metric):
if not history.get('batches') or metric not in history['batches'][0]:
return
epoch_value = [
(epoch, value)
for epoch, batch in zip(history['epoch'], history['batches'])
for value in batch[metric]
]
epoch, value = zip(*epoch_value)
return {'x': list(epoch), 'y': list(value), 'label': f'batch_{metric}'}
|
DEFAULT_JOB_CLASS = 'choreo.multirq.job.Job'
DEFAULT_QUEUE_CLASS = 'choreo.multirq.Queue'
DEFAULT_WORKER_CLASS = 'choreo.retry.RetryWorker'
DEFAULT_CONNECTION_CLASS = 'redis.StrictRedis'
DEFAULT_WORKER_TTL = 420
DEFAULT_RESULT_TTL = 500
|
#Aligam GiSAXS sample
#
def align_gisaxs_height_subh( rang = 0.3, point = 31 ,der=False ):
det_exposure_time(0.5)
sample_id(user_name='test', sample_name='test')
yield from bp.rel_scan([pil1M,pil1mroi1,pil1mroi2], piezo.y, -rang, rang, point)
ps(der=der)
yield from bps.mv(piezo.y, ps.cen)
def align_gisaxs_th_subh( rang = 0.3, point = 31 ):
det_exposure_time(0.5)
sample_id(user_name='test', sample_name='test')
yield from bp.rel_scan([pil1M], piezo.th, -rang, rang, point )
ps()
yield from bps.mv(piezo.th, ps.peak)
Att_Align1 = att2_6 #att1_12
Att_Align2 = att2_7 #att1_9
GV7 = TwoButtonShutter('XF:12IDC-VA:2{Det:1M-GV:7}', name='GV7')
alignbspossubh = 11.15
measurebspossubh = 1.15
def alignmentmodesubh():
#Att_Align1.set("Insert")
#yield from bps.sleep(1)
yield from bps.mv(att1_2, 'Insert')
yield from bps.sleep(1)
yield from bps.mv(att1_3, 'Insert')
yield from bps.sleep(1)
yield from bps.mv(GV7.open_cmd, 1 )
yield from bps.mv(pil1m_bs_rod.x, alignbspossubh)
if waxs.arc.position < 12 :
yield from bps.mv(waxs,12)
sample_id(user_name='test', sample_name='test')
def measurementmodesubh():
yield from bps.mv(pil1m_bs_rod.x,measurebspossubh)
yield from bps.sleep(1)
#Att_Align1.set("Retract")
#yield from bps.sleep(1)
yield from bps.mv(att1_2, 'Retract')
yield from bps.sleep(1)
yield from bps.mv(att1_3, 'Retract')
yield from bps.sleep(1)
yield from bps.mv(GV7.close_cmd, 1 )
yield from bps.sleep(1)
#mov(waxs,3)
def alignquick():
#Att_Align1.set("Insert")
#yield from bps.sleep(1)
yield from bps.mv(att1_2, 'Insert')
yield from bps.sleep(1)
yield from bps.mv(att1_3, 'Insert')
yield from bps.sleep(1)
yield from bps.mv(GV7.open_cmd, 1 )
yield from bps.mv(pil1m_bs_rod.x, alignbspossubh)
if waxs.arc.position < 8 :
yield from bps.mv(waxs,8)
sample_id(user_name='test', sample_name='test')
def meas_after_alignquick():
yield from bps.mv(pil1m_bs_rod.x,measurebspossubh)
yield from bps.sleep(1)
yield from bps.mv(att1_2, 'Retract')
yield from bps.sleep(1)
yield from bps.mv(att1_3, 'Retract')
yield from bps.sleep(1)
#mov(waxs,3)
def alignsubhgi():
det_exposure_time(0.5)
sample_id(user_name='test', sample_name='test')
yield from alignmentmodesubh()
yield from bps.mv(pil1M.roi1.min_xyz.min_y, 863)
yield from bps.mv(pil1M.roi1.size.y, 100)
yield from bps.mv(pil1M.roi1.size.x, 100)
yield from align_gisaxs_height_subh(1000,16,der=True)
yield from align_gisaxs_th_subh(1000,11)
yield from align_gisaxs_height_subh(500,11,der=True)
yield from align_gisaxs_th_subh(500,11)
yield from bps.mv(piezo.th, ps.peak -100)
yield from bps.mv(pil1M.roi1.min_xyz.min_y, 783)
yield from bps.mv(pil1M.roi1.size.y, 10)
yield from align_gisaxs_th_subh(300,31)
yield from align_gisaxs_height_subh(200,21)
yield from align_gisaxs_th_subh(100,21)
yield from bps.mv(piezo.th, ps.cen+12)#moves the th to 0.012 degrees positive from aligned 0.1
yield from measurementmodesubh()
def do_grazingsubh(meas_t=1):
#xlocs = [48403]
#names = ['BW30-CH-Br-1']
# Detectors, motors:
dets = [pil300KW, pil300kwroi2, xbpm3.sumY, xbpm2.sumY]
xlocs = [0]
x_offset = np.linspace(2000, -2000, 41)
names = ['btbtwo3']
prealigned = [0]
for xloc, name, aligned in zip(xlocs, names, prealigned):
yield from bps.mv(piezo.x,xloc)
yield from bps.mv(piezo.th,-1300)
if aligned==0 :
yield from alignsubhgi()
plt.close('all')
angle_offset = np.linspace(-120, 80, 41)
#angle_offset = array([-120,-115,-110,-105,-100,-95,-90,-85,-80,-75,-70,-65,-60,-55,-50,-45,-40,-35,-30,-25,-20,-15,-10,-5,0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80])
e_list = [7060]
a_off = piezo.th.position
waxs_arc = [3, 21, 4]
det_exposure_time(meas_t)
name_fmt = '{sample}_{energ}eV_{angle}deg'
offset_idx = 0
#yield from bps.mv(att2_9, 'Insert')
for i_e, e in enumerate(e_list):
#yield from bps.mv(energy, e)
for j, ang in enumerate( a_off - np.array(angle_offset) ):
yield from bps.mv(piezo.x, xloc+x_offset[offset_idx])
offset_idx += 1
real_ang = 0.200 + angle_offset[j]/1000
yield from bps.mv(piezo.th, ang)
sample_name = name_fmt.format(sample=name, angle=real_ang, energ = e)
#print(param)
sample_id(user_name='NIST', sample_name=sample_name)
print(f'\n\t=== Sample: {sample_name} ===\n')
#print(RE.md)
yield from bp.scan(dets, waxs, *waxs_arc)
sample_id(user_name='test', sample_name='test')
det_exposure_time(0.5)
#yield from bps.mv(att2_9, 'Retract')
def align_shortcut():
yield from alignquick()
yield from align_gisaxs_height_subh(100,15)
yield from meas_after_alignquick()
def do_grazingtemp(meas_t=4):
# Detectors, motors:
dets = [pil300KW, pil300kwroi2, xbpm3.sumY, xbpm2.sumY]
e_list = [20300]
det_exposure_time(meas_t)
waxs_arc = [3, 9, 2]
piezo_x1 = [0, -400, 12]
piezo_x2 = [-500, -900, 12]
piezo_x3 = [-1000, -1400, 12]
piezo_x4 = [-1500, -1900, 12]
piezo_x5 = [-2000, -2400, 12]
piezo_x6 = [-2500, -2900, 12]
piezo_x7 = [-3000, -3400, 12]
piezo_x8 = [-3500, -3900, 12]
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV1')
yield from bp.grid_scan(dets, piezo.x, *piezo_x1, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV2')
yield from bp.grid_scan(dets, piezo.x, *piezo_x2, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV3')
yield from bp.grid_scan(dets, piezo.x, *piezo_x3, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV4')
yield from bp.grid_scan(dets, piezo.x, *piezo_x4, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV5')
yield from bp.grid_scan(dets, piezo.x, *piezo_x5, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV6')
yield from bp.grid_scan(dets, piezo.x, *piezo_x6, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV7')
yield from bp.grid_scan(dets, piezo.x, *piezo_x7, waxs, *waxs_arc, 1)
yield from align_shortcut()
det_exposure_time(meas_t)
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV8')
yield from bp.grid_scan(dets, piezo.x, *piezo_x8, waxs, *waxs_arc, 1)
sample_id(user_name='test', sample_name='test')
det_exposure_time(0.5)
def do_singleimage(meas_t=4):
# Detectors, motors:
dets = [pil300KW, pil300kwroi2, xbpm3.sumY, xbpm2.sumY]
e_list = [20300]
det_exposure_time(meas_t)
waxs_arc = [3, 9, 2]
sample_id(user_name='AK', sample_name='PVDFWBcool_50C_0.088deg_20300eV1')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
def do_grazing_cool(meas_t=4):
# Detectors, motors:
dets = [pil300KW, pil300kwroi2, xbpm3.sumY, xbpm2.sumY]
waxs_arc = [3, 9, 2]
e_list = [20300]
det_exposure_time(meas_t)
xlocs = [0]
sample_id(user_name='AK', sample_name='PB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [10000]
sample_id(user_name='AK', sample_name='P50B_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [20000]
sample_id(user_name='AK', sample_name='PWB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [30000]
sample_id(user_name='AK', sample_name='P50WB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [40000]
sample_id(user_name='AK', sample_name='PVDFWB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [50000]
sample_id(user_name='AK', sample_name='P75WB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [60000]
sample_id(user_name='AK', sample_name='P75WB_100C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [70000]
sample_id(user_name='AK', sample_name='P25WB_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [80000]
sample_id(user_name='AK', sample_name='P25B_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
xlocs = [90000]
sample_id(user_name='AK', sample_name='P75B2_50C_0.088deg_20300eV_cool')
yield from bp.grid_scan(dets, waxs, *waxs_arc)
# sample_id(user_name='test', sample_name='test')
# det_exposure_time(0.5)
def do_grazing1(meas_t=2):
#xlocs = [48403]
#names = ['BW30-CH-Br-1']
# Detectors, motors:
dets = [pil300KW, pil300kwroi2, xbpm3.sumY, xbpm2.sumY]
xlocs = [-37950]
x_offset = [-200, 0, 200]
names = ['ctrl1_focused_recheckoldmacro']
prealigned = [0]
for xloc, name, aligned in zip(xlocs, names, prealigned):
yield from bps.mv(piezo.x,xloc)
yield from bps.mv(piezo.th,-500)
if aligned==0 :
yield from alignYalegi()
plt.close('all')
angle_offset = [100, 220, 300]
e_list = [2460, 2477, 2500]
a_off = piezo.th.position
waxs_arc = [3, 87, 15]
det_exposure_time(meas_t)
name_fmt = '{sample}_{energ}eV_{angle}deg'
for i_e, e in enumerate(e_list):
yield from bps.mv(energy, e)
yield from bps.mv(piezo.x, xloc+x_offset[i_e])
for j, ang in enumerate( a_off - np.array(angle_offset) ):
real_ang = 0.3 + angle_offset[j]/1000
yield from bps.mv(piezo.th, ang)
sample_name = name_fmt.format(sample=name, angle=real_ang, energ = e)
#print(param)
sample_id(user_name='FA', sample_name=sample_name)
print(f'\n\t=== Sample: {sample_name} ===\n')
#print(RE.md)
yield from bp.scan(dets, waxs, *waxs_arc)
sample_id(user_name='test', sample_name='test')
det_exposure_time(0.5)
|
# TODO: Give better variable names
# TODO: Make v3 and v4 optional arguments
def find(v1, v2, v3, v4):
return v1.index(v2, v3, v4)
|
# AUTHOR: prm1999
# Python3 Concept: Rotate the word in the list.
# GITHUB: https://github.com/prm1999
# Function
def rotate(arr, n):
n = len(arr)
i = 1
x = arr[n - 1]
for i in range(n - 1, 0, -1):
arr[i] = arr[i - 1]
arr[0] = x
return arr
#main
A = [1, 2, 3, 4, 5]
a=rotate(A,5)
print(a)
|
#
# PySNMP MIB module TERAWAVE-terasystem-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TERAWAVE-terasystem-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:16:09 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")
ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, Bits, Counter32, ObjectIdentity, NotificationType, TimeTicks, MibIdentifier, ModuleIdentity, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, iso, enterprises, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Bits", "Counter32", "ObjectIdentity", "NotificationType", "TimeTicks", "MibIdentifier", "ModuleIdentity", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "iso", "enterprises", "Gauge32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
terawave = MibIdentifier((1, 3, 6, 1, 4, 1, 4513))
teraSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5))
teraSystemTime = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemTime.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemTime.setDescription('')
teraSystemCurrTime = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSystemCurrTime.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemCurrTime.setDescription('')
teraLogGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 8))
teraLogNumberTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 8, 1), )
if mibBuilder.loadTexts: teraLogNumberTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumberTable.setDescription(' table teraLogNumberTable')
teraLogNumberTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 8, 1, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraLogNumber"))
if mibBuilder.loadTexts: teraLogNumberTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumberTableEntry.setDescription(' table entry teraLogNumberTableEntry ')
teraLogNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumber.setDescription('')
teraLogNumberDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 1, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogNumberDescr.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumberDescr.setDescription('')
teraLogNumberStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("clear", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogNumberStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumberStatus.setDescription('')
teraLogClear = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("clear", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogClear.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogClear.setDescription('')
teraLogTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3), )
if mibBuilder.loadTexts: teraLogTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogTable.setDescription(' table teraLogTable')
teraLogTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"), (0, "TERAWAVE-terasystem-MIB", "teraLogNumber"), (0, "TERAWAVE-terasystem-MIB", "teraLogMsgIndex"))
if mibBuilder.loadTexts: teraLogTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogTableEntry.setDescription(' table entry teraLogTableEntry ')
teraLogMsgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogMsgIndex.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogMsgIndex.setDescription('')
teraLogMsgNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogMsgNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogMsgNumber.setDescription('')
teraLogNumberOfParams = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogNumberOfParams.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogNumberOfParams.setDescription('')
teraLogParams = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogParams.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogParams.setDescription('')
teraLogStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("clear", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraLogStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogStatus.setDescription('')
teraAllLogsFilterGroup = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5), )
if mibBuilder.loadTexts: teraAllLogsFilterGroup.setStatus('mandatory')
if mibBuilder.loadTexts: teraAllLogsFilterGroup.setDescription(' table teraAllLogsFilterGroup')
teraAllLogsFilterGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraLogNumber"))
if mibBuilder.loadTexts: teraAllLogsFilterGroupEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraAllLogsFilterGroupEntry.setDescription(' table entry teraAllLogsFilterGroupEntry ')
teraLogFilterByNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogFilterByNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogFilterByNumber.setDescription('')
teraLogFilterBySize = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("all", 1), ("last20", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogFilterBySize.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogFilterBySize.setDescription('')
teraLogFilterBySeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5))).clone(namedValues=NamedValues(("nominal", 1), ("minor", 2), ("major", 3), ("critical", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogFilterBySeverity.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogFilterBySeverity.setDescription('')
teraLogFilterByTask = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 8, 3, 5, 1, 4), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraLogFilterByTask.setStatus('mandatory')
if mibBuilder.loadTexts: teraLogFilterByTask.setDescription('')
teraSlotInstTablePar = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 3))
teraSlotInstallTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1), )
if mibBuilder.loadTexts: teraSlotInstallTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraSlotInstallTable.setDescription(' table teraSlotInstallTable')
teraSlotInstallTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"))
if mibBuilder.loadTexts: teraSlotInstallTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraSlotInstallTableEntry.setDescription(' table entry teraSlotInstallTableEntry ')
teraInstallSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 7))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallSlotNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallSlotNumber.setDescription('')
teraInstallUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 5000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraInstallUnitType.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitType.setDescription('')
teraInstallEquippedUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallEquippedUnitType.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallEquippedUnitType.setDescription('')
teraInstallUnitAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("provision", 1), ("none", 2), ("is", 3), ("moos", 4), ("reset", 5), ("trunk", 6), ("moos-trunk", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraInstallUnitAdminStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitAdminStatus.setDescription('')
teraInstallUnitOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("empty", 1), ("is", 2), ("moos", 3), ("removed", 4), ("unprovisioned", 5), ("mismatch", 6), ("oos", 7), ("init", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitOperStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitOperStatus.setDescription('')
teraInstallUnitName = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 6), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitName.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitName.setDescription('')
teraInstallUnitRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 7), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitRevision.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitRevision.setDescription('')
teraInstallUnitSerial = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitSerial.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitSerial.setDescription('')
teraInstallUnitSWVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitSWVersion.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitSWVersion.setDescription('')
teraInstallUnitMfgData = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 1, 1, 10), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraInstallUnitMfgData.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstallUnitMfgData.setDescription('')
teraSystemInstallTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2), )
if mibBuilder.loadTexts: teraSystemInstallTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemInstallTable.setDescription(' table teraSystemInstallTable')
teraSystemInstallTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"), (0, "TERAWAVE-terasystem-MIB", "teraPonIndex"))
if mibBuilder.loadTexts: teraSystemInstallTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemInstallTableEntry.setDescription(' table entry teraSystemInstallTableEntry ')
teraSystemNEProvisionAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("provision", 1), ("none", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEProvisionAdminStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEProvisionAdminStatus.setDescription('')
teraSystemNEName = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSystemNEName.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEName.setDescription('')
teraSystemNERangingCode = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 3), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNERangingCode.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNERangingCode.setDescription('')
teraSystemNEType = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 7))).clone(namedValues=NamedValues(("unknown", 0), ("tw300", 1), ("tw600", 2), ("tw1600", 3), ("tw100", 4), ("tw150RT", 5), ("oat", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSystemNEType.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEType.setDescription('')
teraSystemNEMaxLatency = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8, 60))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEMaxLatency.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEMaxLatency.setDescription('')
teraSystemNEAponMaxLength = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEAponMaxLength.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEAponMaxLength.setDescription('')
teraSystemNEOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("empty", 1), ("provisioned", 2), ("linkDown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSystemNEOperStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEOperStatus.setDescription('')
teraSystemNEEocMinBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 1536))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEEocMinBandWidth.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEEocMinBandWidth.setDescription('')
teraSystemNEEocMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 1536))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEEocMaxBandWidth.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEEocMaxBandWidth.setDescription('')
teraSystemNEInventoryOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("olt2ont", 1), ("ont2olt", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNEInventoryOverride.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNEInventoryOverride.setDescription('')
teraSystemNERanging = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNERanging.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNERanging.setDescription('')
teraSystemNECurrentDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 3, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSystemNECurrentDistance.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNECurrentDistance.setDescription('')
teraNEInfoTableGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3))
teraNEInfoTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1))
teraNERangingCode = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1, 1), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNERangingCode.setStatus('mandatory')
if mibBuilder.loadTexts: teraNERangingCode.setDescription('')
teraNEType = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 0), ("tw300", 1), ("tw600", 2), ("tw1600", 3), ("tw100", 4), ("tw150RT-ATM", 5), ("tw150RT-TDM", 6), ("oat", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNEType.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEType.setDescription('')
teraNEModel = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNEModel.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEModel.setDescription('')
teraNESWVersion = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNESWVersion.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESWVersion.setDescription('')
teraNESWRevision = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 3, 3, 1, 5), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNESWRevision.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESWRevision.setDescription('')
teraClockSyncTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 4))
teraClockSyncPrimarySource = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("bits-A", 1), ("nim", 2), ("freerun", 3), ("holdover", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncPrimarySource.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncPrimarySource.setDescription('')
teraClockSyncPrimaryNIMSlot = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncPrimaryNIMSlot.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncPrimaryNIMSlot.setDescription('')
teraClockSyncPrimaryNIMIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncPrimaryNIMIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncPrimaryNIMIfIndex.setDescription('')
teraClockSyncSecondarySource = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("bits-B", 1), ("nim", 2), ("freerun", 3), ("holdover", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncSecondarySource.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncSecondarySource.setDescription('')
teraClockSyncSecondaryNIMSlot = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncSecondaryNIMSlot.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncSecondaryNIMSlot.setDescription('')
teraClockSyncSecondaryNIMIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncSecondaryNIMIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncSecondaryNIMIfIndex.setDescription('')
teraClockSyncLastSource = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("freerun", 1), ("holdover", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncLastSource.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncLastSource.setDescription('')
teraClockSyncRevertive = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("yes", 1), ("no", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncRevertive.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncRevertive.setDescription('')
teraClockSyncActiveSource = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("bits-A", 1), ("bits-B", 2), ("nim", 3), ("freerun", 4), ("holdover", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncActiveSource.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncActiveSource.setDescription('')
teraClockSyncActiveNIMSlot = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncActiveNIMSlot.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncActiveNIMSlot.setDescription('')
teraClockSyncActiveNIMIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncActiveNIMIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncActiveNIMIfIndex.setDescription('')
teraClockSyncActiveStatus = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auto", 1), ("manual", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncActiveStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncActiveStatus.setDescription('')
teraClockSyncPrimaryStatus = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("idle", 2), ("fail", 3), ("oos", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncPrimaryStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncPrimaryStatus.setDescription('')
teraClockSyncSecondaryStatus = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("idle", 2), ("fail", 3), ("oos", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraClockSyncSecondaryStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncSecondaryStatus.setDescription('')
teraClockSyncOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 4, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("configure", 1), ("switchToPrimary", 2), ("switchToSecondary", 3), ("switchToHoldover", 4), ("switchToFreerun", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraClockSyncOperStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraClockSyncOperStatus.setDescription('')
teraCommunityGroupTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 5))
teraPublicCommunity = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 5, 1), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraPublicCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: teraPublicCommunity.setDescription('')
teraSETCommunity = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 5, 2), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSETCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: teraSETCommunity.setDescription('')
teraGETCommunity = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 5, 3), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraGETCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: teraGETCommunity.setDescription('')
teraAdminCommunity = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 5, 4), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraAdminCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: teraAdminCommunity.setDescription('')
teraTestCommunity = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 5, 5), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraTestCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: teraTestCommunity.setDescription('')
teraMasterSlaveTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 6))
teraMasterSlotNumber = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 6, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraMasterSlotNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraMasterSlotNumber.setDescription('')
teraSlaveSlotNumber = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 6, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSlaveSlotNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraSlaveSlotNumber.setDescription('')
teraSystemIPGroupTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 7))
teraSystemIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 7, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemIPAddress.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemIPAddress.setDescription('')
teraSystemIPNetMask = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 7, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemIPNetMask.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemIPNetMask.setDescription('')
teraSystemIPGateway = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 7, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemIPGateway.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemIPGateway.setDescription('')
teraNESlotTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 9), )
if mibBuilder.loadTexts: teraNESlotTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESlotTable.setDescription(' table teraNESlotTable')
teraNESlotTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 9, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"), (0, "TERAWAVE-terasystem-MIB", "teraPonIndex"), (0, "TERAWAVE-terasystem-MIB", "teraEventSlot"))
if mibBuilder.loadTexts: teraNESlotTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESlotTableEntry.setDescription(' table entry teraNESlotTableEntry ')
teraNESlotUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNESlotUnitType.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESlotUnitType.setDescription('')
teraNESlotUnitAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("provision", 1), ("none", 2), ("is", 3), ("moos", 4), ("reset", 5), ("trunk", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNESlotUnitAdminStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESlotUnitAdminStatus.setDescription('')
teraWLinkIPTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 10), )
if mibBuilder.loadTexts: teraWLinkIPTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPTable.setDescription(' table teraWLinkIPTable')
teraWLinkIPTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 10, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"), (0, "TERAWAVE-terasystem-MIB", "teraPonIndex"))
if mibBuilder.loadTexts: teraWLinkIPTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPTableEntry.setDescription(' table entry teraWLinkIPTableEntry ')
teraWLinkIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 10, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPAddress.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPAddress.setDescription('')
teraWLinkIPNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 10, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPNetMask.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPNetMask.setDescription('')
teraWLinkIPGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 10, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPGateway.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPGateway.setDescription('')
teraWLinkIPStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("set", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPStatus.setDescription('')
teraNEMiscTableGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 11))
teraNEMiscTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1))
teraNELevel2Slot = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNELevel2Slot.setStatus('mandatory')
if mibBuilder.loadTexts: teraNELevel2Slot.setDescription('')
teraNEZipSystem = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("no", 1), ("zip-active", 2), ("zip-stby", 3), ("zip-all", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNEZipSystem.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEZipSystem.setDescription('')
teraNEReset = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("reset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNEReset.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEReset.setDescription('')
teraNETimeZone = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 4), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNETimeZone.setStatus('mandatory')
if mibBuilder.loadTexts: teraNETimeZone.setDescription('')
teraNEInventoryOverride = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNEInventoryOverride.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEInventoryOverride.setDescription('')
teraNESerialPortType = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 11, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ppp", 1), ("dbshell", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraNESerialPortType.setStatus('mandatory')
if mibBuilder.loadTexts: teraNESerialPortType.setDescription('')
teraSysObjectIdTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 12))
teraTW300 = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 1), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW300.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW300.setDescription('')
teraTW600 = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW600.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW600.setDescription('')
teraTW1600 = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 3), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW1600.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW1600.setDescription('')
teraTW100 = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 4), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW100.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW100.setDescription('')
teraTW150RTATM = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 5), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW150RTATM.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW150RTATM.setDescription('')
teraTW150RTTDM = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 6), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraTW150RTTDM.setStatus('mandatory')
if mibBuilder.loadTexts: teraTW150RTTDM.setDescription('')
teraOAT = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 12, 7), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraOAT.setStatus('mandatory')
if mibBuilder.loadTexts: teraOAT.setDescription('')
teraNEIDxTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 13), )
if mibBuilder.loadTexts: teraNEIDxTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEIDxTable.setDescription(' table teraNEIDxTable')
teraNEIDxTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 13, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "ifIndex"))
if mibBuilder.loadTexts: teraNEIDxTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEIDxTableEntry.setDescription(' table entry teraNEIDxTableEntry ')
teraNEIDxSlotLevel1 = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNEIDxSlotLevel1.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEIDxSlotLevel1.setDescription('')
teraNEIDxPonID = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 13, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraNEIDxPonID.setStatus('mandatory')
if mibBuilder.loadTexts: teraNEIDxPonID.setDescription('')
teraWLinkIPRangeTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 14), )
if mibBuilder.loadTexts: teraWLinkIPRangeTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPRangeTable.setDescription(' table teraWLinkIPRangeTable')
teraWLinkIPRangeTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 14, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "ifIndex"))
if mibBuilder.loadTexts: teraWLinkIPRangeTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPRangeTableEntry.setDescription(' table entry teraWLinkIPRangeTableEntry ')
teraWLinkIPRangeStart = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 14, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPRangeStart.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPRangeStart.setDescription('')
teraWLinkIPRangeEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 14, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPRangeEnd.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPRangeEnd.setDescription('')
teraWLinkIPRangeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 14, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraWLinkIPRangeRowStatus.setStatus('mandatory')
if mibBuilder.loadTexts: teraWLinkIPRangeRowStatus.setDescription('')
teraSecondaryMasterSlaveTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 16))
teraSecondaryMasterSlotNumber = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 16, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSecondaryMasterSlotNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraSecondaryMasterSlotNumber.setDescription('')
teraSecondarySlaveSlotNumber = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 16, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSecondarySlaveSlotNumber.setStatus('mandatory')
if mibBuilder.loadTexts: teraSecondarySlaveSlotNumber.setDescription('')
teraMasterSlaveStateTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 17), )
if mibBuilder.loadTexts: teraMasterSlaveStateTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraMasterSlaveStateTable.setDescription(' table teraMasterSlaveStateTable')
teraMasterSlaveStateTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 17, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraMasterSlaveStateIndex"))
if mibBuilder.loadTexts: teraMasterSlaveStateTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraMasterSlaveStateTableEntry.setDescription(' table entry teraMasterSlaveStateTableEntry ')
teraMasterSlaveStateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 17, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraMasterSlaveStateIndex.setStatus('mandatory')
if mibBuilder.loadTexts: teraMasterSlaveStateIndex.setDescription('')
teraMasterState = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 17, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("nobody", 1), ("master", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraMasterState.setStatus('mandatory')
if mibBuilder.loadTexts: teraMasterState.setDescription('')
teraSlaveState = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 17, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 0), ("nobody", 1), ("slave", 3), ("slaveActive", 4), ("slaveFail", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSlaveState.setStatus('mandatory')
if mibBuilder.loadTexts: teraSlaveState.setDescription('')
teraPPPBaudRateTbl = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 20))
teraPPPBaudRateTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 20, 1))
teraPPPAdminBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 20, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("baud2400", 0), ("baud4800", 1), ("baud9600", 2), ("baud19200", 3), ("baud38400", 4), ("baud57600", 5), ("baud115200", 6), ("baud230400", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraPPPAdminBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts: teraPPPAdminBaudRate.setDescription('')
teraPPPOperBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 20, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("baud2400", 0), ("baud4800", 1), ("baud9600", 2), ("baud19200", 3), ("baud38400", 4), ("baud57600", 5), ("baud115200", 6), ("baud230400", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraPPPOperBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts: teraPPPOperBaudRate.setDescription('')
teraPPPAdminFlowControl = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 20, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("xon-Xoff", 1), ("rTS-CTS", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraPPPAdminFlowControl.setStatus('mandatory')
if mibBuilder.loadTexts: teraPPPAdminFlowControl.setDescription('')
teraPPPOperFlowControl = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 20, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("xon-Xoff", 1), ("rTS-CTS", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraPPPOperFlowControl.setStatus('mandatory')
if mibBuilder.loadTexts: teraPPPOperFlowControl.setDescription('')
teraSystemNATGroupTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 24))
teraSystemNATSubnetAddress = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 24, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNATSubnetAddress.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNATSubnetAddress.setDescription('')
teraSystemNATSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 24, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNATSubnetMask.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNATSubnetMask.setDescription('')
teraSystemPCUNumTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 25))
teraSystemNumOfPCU = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 25, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("pCU4", 0), ("pCU5", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraSystemNumOfPCU.setStatus('mandatory')
if mibBuilder.loadTexts: teraSystemNumOfPCU.setDescription('')
teraInstalledSystemInfoTable = MibTable((1, 3, 6, 1, 4, 1, 4513, 5, 26), )
if mibBuilder.loadTexts: teraInstalledSystemInfoTable.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstalledSystemInfoTable.setDescription(' table teraInstalledSystemInfoTable')
teraInstalledSystemInfoTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4513, 5, 26, 1), ).setIndexNames((0, "TERAWAVE-terasystem-MIB", "teraInstallSlotNumber"), (0, "TERAWAVE-terasystem-MIB", "teraPonIndex"))
if mibBuilder.loadTexts: teraInstalledSystemInfoTableEntry.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstalledSystemInfoTableEntry.setDescription(' table entry teraInstalledSystemInfoTableEntry ')
teraInstalledSystemName = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 26, 1, 1), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraInstalledSystemName.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstalledSystemName.setDescription('')
teraInstalledSystemLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 26, 1, 2), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraInstalledSystemLocation.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstalledSystemLocation.setDescription('')
teraInstalledNEType = MibTableColumn((1, 3, 6, 1, 4, 1, 4513, 5, 26, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 7))).clone(namedValues=NamedValues(("unknown", 0), ("tw300", 1), ("tw600", 2), ("tw1600", 3), ("tw100", 4), ("tw150RT", 5), ("oat", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraInstalledNEType.setStatus('mandatory')
if mibBuilder.loadTexts: teraInstalledNEType.setDescription('')
teraCraftInterfaceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 28))
teraCraftInterfaceTable = MibIdentifier((1, 3, 6, 1, 4, 1, 4513, 5, 28, 1))
teraCraftPortStat = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 28, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraCraftPortStat.setStatus('mandatory')
if mibBuilder.loadTexts: teraCraftPortStat.setDescription('')
teraCraftDefaultAddrStat = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 28, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: teraCraftDefaultAddrStat.setStatus('mandatory')
if mibBuilder.loadTexts: teraCraftDefaultAddrStat.setDescription('')
teraSNMPState = MibScalar((1, 3, 6, 1, 4, 1, 4513, 5, 28, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("notReady", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: teraSNMPState.setStatus('mandatory')
if mibBuilder.loadTexts: teraSNMPState.setDescription('')
mibBuilder.exportSymbols("TERAWAVE-terasystem-MIB", teraClockSyncActiveNIMSlot=teraClockSyncActiveNIMSlot, teraCommunityGroupTable=teraCommunityGroupTable, teraLogMsgNumber=teraLogMsgNumber, teraSystemInstallTableEntry=teraSystemInstallTableEntry, teraNEModel=teraNEModel, teraLogNumberOfParams=teraLogNumberOfParams, teraNEInventoryOverride=teraNEInventoryOverride, teraWLinkIPGateway=teraWLinkIPGateway, teraNERangingCode=teraNERangingCode, teraLogNumber=teraLogNumber, teraClockSyncRevertive=teraClockSyncRevertive, teraNEType=teraNEType, teraWLinkIPRangeEnd=teraWLinkIPRangeEnd, teraLogFilterBySize=teraLogFilterBySize, teraSystemNECurrentDistance=teraSystemNECurrentDistance, teraNESlotUnitType=teraNESlotUnitType, teraNESerialPortType=teraNESerialPortType, teraSystemNEProvisionAdminStatus=teraSystemNEProvisionAdminStatus, teraClockSyncTable=teraClockSyncTable, teraAllLogsFilterGroupEntry=teraAllLogsFilterGroupEntry, teraInstallUnitAdminStatus=teraInstallUnitAdminStatus, teraInstallEquippedUnitType=teraInstallEquippedUnitType, teraNEInfoTableGroup=teraNEInfoTableGroup, teraLogTable=teraLogTable, teraLogGroup=teraLogGroup, teraNESlotTable=teraNESlotTable, teraPublicCommunity=teraPublicCommunity, teraNEZipSystem=teraNEZipSystem, teraPPPAdminBaudRate=teraPPPAdminBaudRate, teraNEIDxSlotLevel1=teraNEIDxSlotLevel1, teraMasterSlaveTable=teraMasterSlaveTable, teraPPPAdminFlowControl=teraPPPAdminFlowControl, teraSystemNEMaxLatency=teraSystemNEMaxLatency, teraCraftPortStat=teraCraftPortStat, teraInstallUnitOperStatus=teraInstallUnitOperStatus, teraSecondarySlaveSlotNumber=teraSecondarySlaveSlotNumber, teraPPPBaudRateTbl=teraPPPBaudRateTbl, teraNESWVersion=teraNESWVersion, teraPPPBaudRateTable=teraPPPBaudRateTable, teraLogMsgIndex=teraLogMsgIndex, teraClockSyncSecondaryStatus=teraClockSyncSecondaryStatus, teraWLinkIPRangeRowStatus=teraWLinkIPRangeRowStatus, teraNEIDxTable=teraNEIDxTable, teraWLinkIPNetMask=teraWLinkIPNetMask, teraSystemNERangingCode=teraSystemNERangingCode, teraTestCommunity=teraTestCommunity, teraSystemNATGroupTable=teraSystemNATGroupTable, teraSystemPCUNumTable=teraSystemPCUNumTable, teraCraftInterfaceGroup=teraCraftInterfaceGroup, teraSystemNumOfPCU=teraSystemNumOfPCU, teraSystemNEOperStatus=teraSystemNEOperStatus, teraSystemIPNetMask=teraSystemIPNetMask, teraInstallUnitRevision=teraInstallUnitRevision, teraMasterSlotNumber=teraMasterSlotNumber, teraClockSyncPrimarySource=teraClockSyncPrimarySource, teraCraftDefaultAddrStat=teraCraftDefaultAddrStat, teraInstalledSystemInfoTableEntry=teraInstalledSystemInfoTableEntry, teraInstallUnitName=teraInstallUnitName, teraSystemNEType=teraSystemNEType, teraInstallUnitType=teraInstallUnitType, teraLogStatus=teraLogStatus, teraOAT=teraOAT, teraMasterSlaveStateTableEntry=teraMasterSlaveStateTableEntry, teraWLinkIPTableEntry=teraWLinkIPTableEntry, teraSystem=teraSystem, teraLogFilterByNumber=teraLogFilterByNumber, teraTW1600=teraTW1600, teraClockSyncPrimaryNIMSlot=teraClockSyncPrimaryNIMSlot, teraClockSyncActiveStatus=teraClockSyncActiveStatus, teraSystemNEInventoryOverride=teraSystemNEInventoryOverride, teraAllLogsFilterGroup=teraAllLogsFilterGroup, teraLogParams=teraLogParams, teraWLinkIPTable=teraWLinkIPTable, teraWLinkIPRangeTableEntry=teraWLinkIPRangeTableEntry, teraSystemNEEocMaxBandWidth=teraSystemNEEocMaxBandWidth, terawave=terawave, teraSystemIPGroupTable=teraSystemIPGroupTable, teraLogNumberTableEntry=teraLogNumberTableEntry, teraLogFilterBySeverity=teraLogFilterBySeverity, teraWLinkIPAddress=teraWLinkIPAddress, teraSystemNERanging=teraSystemNERanging, teraInstallUnitSerial=teraInstallUnitSerial, teraInstalledNEType=teraInstalledNEType, teraInstallUnitSWVersion=teraInstallUnitSWVersion, teraInstalledSystemInfoTable=teraInstalledSystemInfoTable, teraSlotInstallTable=teraSlotInstallTable, teraSystemNEAponMaxLength=teraSystemNEAponMaxLength, teraClockSyncSecondaryNIMIfIndex=teraClockSyncSecondaryNIMIfIndex, teraSystemCurrTime=teraSystemCurrTime, teraClockSyncActiveSource=teraClockSyncActiveSource, teraClockSyncOperStatus=teraClockSyncOperStatus, teraNELevel2Slot=teraNELevel2Slot, teraMasterSlaveStateTable=teraMasterSlaveStateTable, teraAdminCommunity=teraAdminCommunity, teraWLinkIPRangeTable=teraWLinkIPRangeTable, teraSystemNATSubnetMask=teraSystemNATSubnetMask, teraSysObjectIdTable=teraSysObjectIdTable, teraTW100=teraTW100, teraSecondaryMasterSlaveTable=teraSecondaryMasterSlaveTable, teraSystemNATSubnetAddress=teraSystemNATSubnetAddress, teraTW150RTTDM=teraTW150RTTDM, teraTW300=teraTW300, teraInstalledSystemLocation=teraInstalledSystemLocation, teraNEReset=teraNEReset, teraPPPOperBaudRate=teraPPPOperBaudRate, teraSystemIPAddress=teraSystemIPAddress, teraNESlotTableEntry=teraNESlotTableEntry, teraNESlotUnitAdminStatus=teraNESlotUnitAdminStatus, teraTW600=teraTW600, teraNESWRevision=teraNESWRevision, teraInstallUnitMfgData=teraInstallUnitMfgData, teraSlotInstallTableEntry=teraSlotInstallTableEntry, teraLogTableEntry=teraLogTableEntry, teraSlotInstTablePar=teraSlotInstTablePar, teraSystemTime=teraSystemTime, teraGETCommunity=teraGETCommunity, teraSystemInstallTable=teraSystemInstallTable, teraClockSyncSecondaryNIMSlot=teraClockSyncSecondaryNIMSlot, teraClockSyncPrimaryNIMIfIndex=teraClockSyncPrimaryNIMIfIndex, teraNETimeZone=teraNETimeZone, teraLogNumberStatus=teraLogNumberStatus, teraNEIDxPonID=teraNEIDxPonID, teraClockSyncLastSource=teraClockSyncLastSource, teraLogClear=teraLogClear, teraSlaveState=teraSlaveState, teraMasterState=teraMasterState, teraCraftInterfaceTable=teraCraftInterfaceTable, teraWLinkIPStatus=teraWLinkIPStatus, teraClockSyncPrimaryStatus=teraClockSyncPrimaryStatus, teraTW150RTATM=teraTW150RTATM, teraMasterSlaveStateIndex=teraMasterSlaveStateIndex, teraPPPOperFlowControl=teraPPPOperFlowControl, teraInstallSlotNumber=teraInstallSlotNumber, teraInstalledSystemName=teraInstalledSystemName, teraNEMiscTableGroup=teraNEMiscTableGroup, teraSETCommunity=teraSETCommunity, teraClockSyncSecondarySource=teraClockSyncSecondarySource, teraClockSyncActiveNIMIfIndex=teraClockSyncActiveNIMIfIndex, teraSystemNEName=teraSystemNEName, teraSystemNEEocMinBandWidth=teraSystemNEEocMinBandWidth, teraNEMiscTable=teraNEMiscTable, teraSecondaryMasterSlotNumber=teraSecondaryMasterSlotNumber, teraSlaveSlotNumber=teraSlaveSlotNumber, teraLogNumberTable=teraLogNumberTable, teraLogNumberDescr=teraLogNumberDescr, teraNEIDxTableEntry=teraNEIDxTableEntry, teraWLinkIPRangeStart=teraWLinkIPRangeStart, teraNEInfoTable=teraNEInfoTable, teraLogFilterByTask=teraLogFilterByTask, teraSNMPState=teraSNMPState, teraSystemIPGateway=teraSystemIPGateway)
|
#!/usr/bin/python
# -*- coding:utf-8 -*-
#Filename: soreted_iter.py
colors = [ 'red', 'green', 'blue', 'yellow' ]
for color in sorted(colors):
print (color)
# >>> blue
# green
# red
# yellow
for color in sorted(colors, reverse=True):
print (color)
# >>> yellow
# red
# green
# blue
# >>>
def compare_length(c1, c2):
if len(c1) < len(c2):
return -1
if len(c1) > len(c2):
return 1
return 0
# print sorted(colors, cmp=compare_length)
print (sorted(colors, key=len))
# >>> ['red', 'blue', 'green', 'yellow']
|
#Ejercicio 2
palabra=input ("Escribe una palabra y vamos a analizar si es polindroma o no: ")
p=len(palabra)
capicua=""
while p>0:
p=p-1
capicua=capicua+palabra[p] #Concateno las letras una por una y las guardo
if palabra ==capicua:
print("La palabra escogida es polindroma")
if palabra!= capicua:
print("La palabra escogida no es polindroma")
|
print("Hello World")
# The basics
name = "joey"
age = 27
print(name + str(age))
testList = [0,1,2]
testList.append(3)
testList.append(4)
for member in testList:
print(member)
for index,member in enumerate(testList):
print("Index: " + str(index) + " item: " + str(member))
# List Combining
list1 = [1,3,5,7]
list2 = [2,4,6,8]
print(list1 + list2)
# String fun
mystring = "Hello World, I am a string!"
print(mystring[:4])
print(mystring[4:])
print(mystring[2:5])
print(mystring[-4:])
print(mystring[::2]) # skip every second character
print(mystring[::-1]) # reverse
print(mystring.split(" "))
|
days = int(input())
type_of_room = input()
feedback = input()
price = 0
nights = days - 1
if type_of_room == 'room for one person':
price = 18
cost = nights * price
elif type_of_room == 'apartment':
price = 25
cost = nights * price
if days < 10:
cost = cost - (cost * 30 /100)
elif 10 <= days <= 15:
cost = cost - (cost * 35 / 100)
elif days > 15:
cost = cost - (cost * 50 / 100)
elif type_of_room == 'president apartment':
price = 35
cost = nights * price
if days < 10:
cost = cost - (cost * 10 /100)
elif 10 <= days <= 15:
cost = cost - (cost * 15 / 100)
elif days > 15:
cost = cost - (cost * 20 / 100)
if feedback == 'positive':
cost = cost + (cost * 25 /100)
elif feedback == 'negative':
cost = cost - (cost * 10 / 100)
print (f'{cost:.2f}')
|
#!/usr/bin/env python3
# Vrátí vstupní položku item, pokud tato může být prvkem množiny v Pythonu, v opačném případě frozenset(item)
#""" Pomocí kontroly datových typů se program větví na 2 části return item a retun frozenset(item) """
def can_be_a_set_member_or_frozenset(item):
""" Pomocí kontroly datových typů se program větví na 2 části return item a retun frozenset(item) """
if type(item) == list:
return frozenset(item)
elif type(item) == dict:
return frozenset(item)
else:
return item
# Na vstupu dostane seznam a pouze s použitím vestavěných funkcí (tedy bez použití "import") z něj vytvoří seznam, odpovídající množině všech podmnožin, tedy např.
def all_subsets(lst):
''' Pomocí bitových posunů si pohlídám zprávné zapsání a pak už jen přidávám do listu '''
list = []
for i in range(1 << len(lst)):
subset = [lst[bit] for bit in range(len(lst)) if i & (1 << bit) > 0]
list.append(subset)
return list
#obdoba předchozího, ale při volání dostane prvky seznamu přímo jako argumenty a navíc má volitelný parametr exclude_empty, který, když není ve volání uveden, nebo je jeho hodnota True, vrátí výsledek bez prázdného seznamu. Pokud je hodnota tohoto argumentu False, je výsledek stejný jako u předchozí funkce.
def all_subsets_excl_empty(*args, **arg):
''' Z argumetu funkce si přečtu nejprve všechny argumenty a pak se rozhoduji. nejprve provedu funkci "all_subsets" a pak dle exclude_empty rozhoduji co vrátím '''
listtmp = all_subsets(list(args))
if not arg:
del listtmp[0]
return listtmp
elif arg['exclude_empty'] == False:
return listtmp
elif arg['exclude_empty']:
del listtmp[0]
return listtmp
def test():
''' test funkce "can_be_a_set_member_or_frozenset" '''
assert can_be_a_set_member_or_frozenset(1) == 1
assert can_be_a_set_member_or_frozenset((1,2)) == (1,2)
assert can_be_a_set_member_or_frozenset([1,2]) == frozenset([1,2])
''' test funkce "all_subsets" '''
assert all_subsets(['a', 'b', 'c']) == [[], ['a'], ['b'], ['a', 'b'], ['c'], ['a', 'c'], ['b', 'c'], ['a', 'b', 'c']]
''' test funkce "all_subsets_excl_empty" '''
assert all_subsets_excl_empty('a', 'b', 'c') == [['a'], ['b'], ['a', 'b'], ['c'], ['a', 'c'], ['b', 'c'], ['a', 'b', 'c']]
#assert all_subsets_excl_empty('a', 'b', 'c', exclude_empty = True) == [['a'], ['b'], ['a', 'b'], ['c'], ['a', 'c'], ['b', 'c'], ['a', 'b', 'c']]
assert all_subsets_excl_empty('a', 'b', 'c', exclude_empty = False) == [[], ['a'], ['b'], ['a', 'b'], ['c'], ['a', 'c'], ['b', 'c'], ['a', 'b', 'c']]
if __name__ == '__main__':
test()
|
class A(object):
def go(self):
print("go A go!")
def stop(self):
print("stop A stop!")
def pause(self):
raise Exception("Not Implemented")
class B(A):
def go(self):
super(B, self).go()
print("go B go!")
class C(A):
def go(self):
super(C, self).go()
print("go C go!")
def stop(self):
super(C, self).stop()
print("stop C stop!")
class D(B,C):
def go(self):
super(D, self).go()
print("go D go!")
def stop(self):
super(D, self).stop()
print("stop D stop!")
def pause(self):
print("wait D wait!")
class E(B,C): pass
a = A()
b = B()
c = C()
d = D()
e = E()
# specify output from here onwards
a.go()
b.go()
c.go()
d.go()
e.go()
a.stop()
b.stop()
c.stop()
d.stop()
e.stop()
a.pause()
b.pause()
c.pause()
d.pause()
e.pause()
'''
Solutions
a.go()
# go A go!
b.go()
# go A go!
# go B go!
c.go()
# go A go!
# go C go!
d.go()
# go A go!
# go C go!
# go B go!
# go D go!
e.go()
# go A go!
# go C go!
# go B go!
a.stop()
# stop A stop!
b.stop()
# stop A stop!
c.stop()
# stop A stop!
# stop C stop!
d.stop()
# stop A stop!
# stop C stop!
# stop D stop!
e.stop()
# stop A stop!
a.pause()
# ... Exception: Not Implemented
b.pause()
# ... Exception: Not Implemented
c.pause()
# ... Exception: Not Implemented
d.pause()
# wait D wait!
e.pause()
# ...Exception: Not Implemented
'''
|
#
# @lc app=leetcode id=902 lang=python3
#
# [902] Numbers At Most N Given Digit Set
#
# @lc code=start
class Solution:
def atMostNGivenDigitSet(self, D: List[str], N: int) -> int:
s = str(N)
n = len(s)
ans = sum(len(D) ** i for i in range(1, n))
for i, c in enumerate(s):
ans += len(D) ** (n - i - 1) * sum(d < c for d in D)
if c not in D:
return ans
return ans + 1
# @lc code=end
|
fields = ["one", "two", "three", "four", "five", "six"]
together = ":".join(fields)
print(together) # one:two:three:four:five:six
together = ':'.join(fields)
print(together) # one:two and three:four:five:six
mixed = ' -=<> '.join(fields)
print(mixed) # one -=<> two and three -=<> four -=<> five -=<> six
another = ''.join(fields)
print(another) # onetwo and threefourfivesix
|
# vim: set fileencoding=<utf-8> :
'''Counting k-mers'''
__version__ = '0.1.0'
|
# Registry Class
# CMD
# Refer this in Detectron2
class Registry:
def __init__(self, name):
self._name = name
self._obj_map = {}
def _do_register(self, name, obj):
assert (name not in self._obj_map), "The object named: {} was already registered in {} registry! ".format(name, self._name)
self._obj_map[name] = obj
def register(self, obj=None):
"""
Register the given object under the name obj.__name__.
Can be used as either a decorator or not.
"""
if obj is None:
# used as a decorator
def deco(func_or_class):
name = func_or_class.__name__
self._do_register(name, func_or_class)
return func_or_class
return deco
name = obj.__name__
self._do_register(name, obj)
def get(self, name):
ret = self._obj_map.get(name)
if ret is None:
raise KeyError("No object names {} found in {} registry!".format(name, self._name))
return ret
def __getitem__(self, name):
return self.get(name)
def keys(self):
return self._obj_map.keys()
|
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
res = []
for i in range(len(s)-1,-1,-1):
res.append(s[i])
return ''.join(res)
|
# Use the file name mbox-short.txt as the file name
file_name = input("Enter file name: ")
fh = open(file_name)
count = 0
total = 0
for line in fh:
if not line.startswith("X-DSPAM-Confidence:"):
continue
pos = line.find('0')
total += float(line[pos:pos + 6])
count += 1
average = total / count
print("Average spam confidence:", average)
|
print("hello")
o= input ("input operation ")
x= int(input ("x = "))
y= int(input ("y = "))
if o == "+":
print (x+y)
elif o == "-":
print (x-y)
elif o == "*" :
print (x*y)
elif o == "/" :
if y==0 :
print ("it's a simple calc, don't be too smart")
else :
print (x/y)
elif o == "//" :
if y==0 :
print ("it's a simple calc, don't be too smart")
else :
print (x//y)
elif o == "**" :
print (x**y)
elif o == "%" :
if y==0 :
print ("it's a simple calc, don't be too smart")
else :
print (x%y)
else :
print ("Unknown operational symbol. It's a simple calc, don't forget" )
|
'''
0052. N-Queens II
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return the number of distinct solutions to the n-queens puzzle.
Example:
Input: 4
Output: 2
Explanation: There are two distinct solutions to the 4-queens puzzle as shown below.
[
[".Q..", // Solution 1
"...Q",
"Q...",
"..Q."],
["..Q.", // Solution 2
"Q...",
"...Q",
".Q.."]
]
'''
class Solution:
def totalNQueens(self, n: int) -> int:
def backtrack(i):
if i == n:
return 1
res = 0
for j in range(n):
if j not in cols and i-j not in diag and i+j not in off_diag:
cols.add(j)
diag.add(i-j)
off_diag.add(i+j)
res += backtrack(i+1)
off_diag.remove(i+j)
diag.remove(i-j)
cols.remove(j)
return res
cols = set()
diag = set()
off_diag = set()
return backtrack(0)
|
wsgi_app = "tabby.wsgi:application"
workers = 4
preload_app = True
sendfile = True
max_requests = 1000
max_requests_jitter = 100
|
class ScramException(Exception):
pass
class BadChallengeException(ScramException):
pass
class ExtraChallengeException(ScramException):
pass
class ServerScramError(ScramException):
pass
class BadSuccessException(ScramException):
pass
class NotAuthorizedException(ScramException):
pass
|
sayilar = {"Bir": 1, "İki": 2, "Üç": 3, "Dört": 4, "Beş": 5}
sayilar["Altı"] = 6
sayilar[43] = "fds"
print(len(sayilar))
print()
for v in sayilar.values():
print(v)
|
# pylint: disable=missing-function-docstring, missing-module-docstring/
a = [i*j for i in range(1,3) for j in range(1,4) for k in range(i,j)]
n = 5
a = [i*j for i in range(1,n) for j in range(1,4) for k in range(i,j)]
|
"""
Syntax of while Loop
while test_condition:
body of while
"""
#Print first 5 natural numbers using while loop
count = 1
while count <= 5:
print(count)
count += 1
|
def get_lucky_numbers(self):
return self.execute("select lucky_number, count(lucky_number) as occurences, sum(case when outcome < 1 then 1 else 0 end) as negative_outcomes, sum(case when outcome > 1 then 1 else 0 end) as successful_outcomes from wager_history where lucky_number <> 0 group by lucky_number")
def get_number_occurence(self):
return self.execute("select chosen_number, count(chosen_number) as occurences, sum(case when outcome < 1 then 1 else 0 end) as negative_outcomes, sum(case when outcome > 1 then 1 else 0 end) as successful_outcomes from wager_history group by chosen_number")
def get_multiplier_occurence(self):
return self.execute("select win_multiplier, count(win_multiplier) as occurences, sum(case when outcome < 1 then 1 else 0 end) as negative_outcomes, sum(case when outcome > 1 then 1 else 0 end) as successful_outcomes from wager_history group by win_multiplier")
def get_wagers_and_outcomes_by_day(self, limit=30):
return self.execute("select date(wager_time, 'unixepoch') as wager_date, case when sum(wager) > 100000 then 100000 else sum(wager) end as amount_wagered, case when sum(outcome) > 100000 then 100000 when sum(outcome) < -100000 then -100000 else sum(outcome) end as outcome from wager_history group by date(wager_time, 'unixepoch') limit ?", [limit])
def get_wagers_by_outcome(self, limit=15):
return self.execute("select wager, sum(case when outcome > 1 then 1 else 0 end) as successful_outcomes, sum(case when outcome < 1 then 1 else 0 end) as negative_outcomes from wager_history group by wager order by count(wager) desc limit ?", [limit])
def get_lucky_and_chosen_cooccurence(self):
return self.execute("select lucky.number, lucky.lucky_numero, chosen.chosen_numero, case when coc.cooccurrence is null then 0 else coc.cooccurrence end as cooccurence from (select chosen_number as number, count(chosen_number) as chosen_numero, null as lucky_number from wager_history group by chosen_number) chosen inner join (select lucky_number as number, null as chosen_number, count(lucky_number) as lucky_numero from wager_history group by lucky_number) lucky on lucky.number=chosen.number left join (select lucky_number as number, count(*) as cooccurrence from wager_history where lucky_number = chosen_number group by number) coc on lucky.number=coc.number")
def get_aggregate_wager_stats(self, start=0, end=4000000000):
results = self.execute("""
SELECT
count(*) as spins,
AVG(wager) as avg_wgr,
AVG(outcome) as avg_out,
MAX(wager) as max_wgr,
SUM(wager) as ttl_wgr,
SUM(outcome) as net_win,
AVG(win_multiplier) as avg_multi,
SUM(cheated_death) as cheat_death
FROM
wager_history
where wager_time > ? and wager_time < ?
""", [start, end])
try:
results = results.next()
results["avg_out"] = int(round(results["avg_out"]))
results["avg_wgr"] = int(round(results["avg_wgr"]))
results["avg_multi"] = int(round(results["avg_multi"]))
results["roi"] = str(int(round(results["avg_out"] / results["avg_wgr"], 2) * 100)) + "%"
except:
results = None
pass
return results
def get_wager_history(self, limit=50):
return self.execute ("select datetime(wager_time, 'unixepoch') as time, lucky_number, wager, outcome, chosen_number, win_multiplier, cheated_death from wager_history order by wager_time desc LIMIT ?", [limit])
|
# This is not a real module, it's simply an introductory text.
"""
The Blender Game Engine Python API Reference
============================================
See U{release notes<http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.49/Game_Engine>} for updates, changes and new functionality in the Game Engine Python API.
Blender Game Engine Modules:
----------------------------
Modules that include methods for accessing GameEngine data and functions.
- L{GameLogic} utility functons for game logic.
- L{GameKeys} keyboard input and event conversion.
- L{Rasterizer} display and rendering.
- L{GameTypes} contains all the python types spesific to the GameEngine.
Modules with documentation in progress:
---------------------
- L{VideoTexture}
- L{PhysicsConstraints}
Additional Modules:
-------------------
These modules have no GameEngine specific functionality but are useful in many cases.
- L{mathutils}
- L{Geometry}
- L{BGL}
Introduction:
=============
This reference documents the Blender Python API, a growing collection of
Python modules (libraries) that give access to part of the program's internal
data and functions.
Through scripting Blender can be extended in real-time via
U{Python <www.python.org>}, an impressive high level, multi-paradigm, open
source language. Newcomers are recommended to start with the tutorial that
comes with it.
This opens many interesting possibilities not available with logic bricks.
Game Engine API Stability:
--------------------------
When writing python scripts there are a number of situations you should avoid to prevent crashes or unstable behavior.
While the API tries to prevent problems there are some situations where error checking would be too time consuming.
Known cases:
- Memory Limits.
There is nothing stopping you from filling a list or making a string so big that that causes blender to run out of memory, in this case python should rasie a MemoryError, but its likely blender will crash before this point.
- Accessing any data that has been freed.
For instance accessing a KX_GameObject after its End Object actuator runs.
This will cause a SystemError, however for L{KX_MeshProxy}, L{KX_VertexProxy} and L{KX_VertexProxy} it will crash the blender game engine.
See: L{GameTypes.PyObjectPlus.invalid} which many types inherit.
- Mixing L{KX_GameObject} between scenes.
For instance tracking/parenting an L{KX_GameObject} object to an object from other scene.
External Modules:
-----------------
Since 2.49 support for importing modules has been added.
This allows you to import any blender textblock with a .py extension.
External python scripts may be imported as modules when the script is in the same directory as the blend file.
The current blend files path is included in the sys.path for loading modules.
All linked libraries will also be included so you can be sure when linking in assets from another blend file the scripts will load too.
A note to newbie script writers:
--------------------------------
Interpreted languages are known to be much slower than compiled code, but for
many applications the difference is negligible or acceptable. Also, with
profiling (or even simple direct timing with L{Blender.sys.time<Sys.time>}) to
identify slow areas and well thought optimizations, the speed can be
I{considerably} improved in many cases. Try some of the best BPython scripts
to get an idea of what can be done, you may be surprised.
@author: The Blender Python Team
@requires: Blender 2.49 or newer.
@version: 2.49
@see: U{www.blender.org<http://www.blender.org>}: documentation and forum
@see: U{blenderartists.org<http://blenderartists.org>}: user forum
@see: U{projects.blender.org<http://projects.blender.org>}
@see: U{www.python.org<http://www.python.org>}
@see: U{www.python.org/doc<http://www.python.org/doc>}
@see: U{Blending into Python<en.wikibooks.org/wiki/Blender_3D:_Blending_Into_Python>}: User contributed documentation, featuring a blender/python cookbook with many examples.
@note: the official version of this reference guide is only updated for each
new Blender release. But you can build the current SVN
version yourself: install epydoc, grab all files in the
source/gameengine/PyDoc/ folder of Blender's SVN and use the
epy_docgen.sh script also found there to generate the html docs.
Naturally you will also need a recent Blender binary to try the new
features. If you prefer not to compile it yourself, there is a testing
builds forum at U{blender.org<http://www.blender.org>}.
"""
|
# Apr 21
class Solution(object):
def minMeetingRooms(self, intervals):
"""
:type intervals: List[List[int]]
:rtype: int
"""
result = 0
heap = []
count = 0
for start, end in intervals:
heapq.heappush(heap, [start, 1])
heapq.heappush(heap, [end, 0])
while heap:
time, status = heapq.heappop(heap)
if status == 0:
count -= 1
else:
count += 1
result = max(result, count)
return result
class Solution:
def minMeetingRooms(self, intervals: List[List[int]]) -> int:
if not intervals:
return 0
result = 0
count = 0
events = []
for start, end in intervals:
events.append((start, 1))
events.append((end, 0))
events.sort()
# events = sorted(events, key=(lambda x: [x[0], x[1]]))
for event in events:
if event[1] == 1:
count += 1
else:
count -= 1
result = max(count, result)
return result
|
class PlayerCharacter:
def __init__(self, name, age):
self.name = name
self.age = age
def run(self):
print("run")
return "done"
player1 = PlayerCharacter("Cindy", 50)
player2 = PlayerCharacter("Tom", 20)
print(player1.name)
print(player1.age)
print(player2.name)
print(player2.age)
print(player1.run())
|
def Reverse(a):
return ' '.join(map(str, a.split()[::-1])) if not a.isspace() else a
if __name__ == '__main__':
print(Reverse(" "))
|
DATA_DIR = "data/captcha_images_v2"
BATCH_SIZE = 8
IMAGE_WIDTH = 300
IMAGE_HEIGHT = 75
NUM_WORKERS = 8
EPOCHS = 200
DEVICE = "cuda"
|
with open('dataset_3363_3.txt') as inf, open('MostPopularWord.txt','w') as ouf:
maxc = 0
s = inf.read().lower().strip().split()
s.sort()
for word in s:
counter = s.count(word)
if counter > maxc:
maxc = counter
result_word = word
ouf.write(result_word +' ' + str(maxc))
|
def mpii_get_sequence_info(subject_id, sequence):
switcher = {
"1 1": [6416,25],
"1 2": [12430,50],
"2 1": [6502,25],
"2 2": [6081,25],
"3 1": [12488,50],
"3 2": [12283,50],
"4 1": [6171,25],
"4 2": [6675,25],
"5 1": [12820,50],
"5 2": [12312,50],
"6 1": [6188,25],
"6 2": [6145,25],
"7 1": [6239,25],
"7 2": [6320,25],
"8 1": [6468,25],
"8 2": [6054,25],
}
return switcher.get(subject_id+" "+sequence)
|
# by Kami Bigdely
# Extract Class
class FoodInfo:
def __init__(self, name, prep_time, is_veggie, food_type, cuisine, ingredients, recipe):
self.name = name
self.prep_time = prep_time
self.is_veggie = is_veggie
self.food_type = food_type
self.cuisine = cuisine
self.ingredients = ingredients
self.recipie = recipe
butternut_sqaush_soup = FoodInfo(
'butternut squash soup', 45, True, 'soup', 'North African',
['butter squash','onion','carrot', 'garlic','butter','black pepper', 'cinnamon','coconut milk'],
'1. Grill the butter squash, onion, carrot and garlic in the oven until '
'they get soft and golden on top. \n'
'2. Put all in blender with butter and coconut milk. Blend them till they become puree. '
'Then move the content into a pot. Add coconut milk. Simmer for 5 mintues.')
shirazi_salad = FoodInfo(
'shirazi salad', 5, True, 'salad', 'Iranian',
['cucumber', 'tomato', 'onion', 'lemon juice'],
'1. dice cucumbers, tomatoes and onions. \n'
'2. put all into a bowl. \n'
'3. pour lemon juice and add salt. \n'
'4. Mixed them thoroughly.')
homemade_beef_sausage = FoodInfo(
'Home-made Beef Sausage', 60, False, 'deli', 'All',
['sausage casing', 'regular ground beef','garlic','corriander seeds',
'black pepper seeds','fennel seed','paprika'],
'1. In a blender, blend corriander seeds, black pepper seeds, '
'fennel seeds and garlic to make the seasonings \n'
'2. In a bowl, mix ground beef with the seasoning \n'
'3. Add all the content to a sausage stuffer. Put the casing on the stuffer funnel. '
'Rotate the stuffer\'s handle (or turn it on) to make your yummy sausages!')
foods = [butternut_sqaush_soup, shirazi_salad, homemade_beef_sausage]
for food in foods:
print("Name:", food.name)
print("Prep time:", food.prep_time, "mins")
print("Is Veggie?", 'Yes' if food.is_veggie else "No")
print("Food Type:", food.food_type)
print("Cuisine:", food.cuisine)
for item in food.ingredients:
print(item, end=', ')
print()
print("recipe", food.recipie)
print("***")
|
class Solution:
def isHappy(self, n: int) -> bool:
seen = {}
while True:
if n in seen:
break
counter = 0
for i in range(len(str(n))):
counter += int(str(n)[i]) ** 2
seen[n] = 1
n = counter
counter = 0
if n == 1:
return True
break
else:
continue
return False
|
def christmas_tree(n, h):
tree = ['*', '*', '***']
start = '*****'
for i in range(n):
tree.append(start)
for j in range(1, h):
tree.append('*' * (len(tree[-1]) + 2))
start += '**'
foot = '*' * h if h % 2 == 1 else '*' * h + '*'
tree += [foot for i in range(n)]
max_width = len(max(tree, key = len))
return [i.center(max_width, ' ').rstrip() for i in tree]
if __name__ == '__main__':
num = 1
height = 3
print(christmas_tree(num, height))
|
def turn_on_lights(lights, begin, end):
for x in range(begin[0], end[0]+1):
for y in range(begin[1], end[1]+1):
lights[x][y] = True
def turn_off_lights(lights, begin, end):
for x in range(begin[0], end[0]+1):
for y in range(begin[1], end[1]+1):
lights[x][y] = False
def toggle_lights(lights, begin, end):
for x in range(begin[0], end[0]+1):
for y in range(begin[1], end[1]+1):
if lights[x][y]: lights[x][y] = False
else: lights[x][y] = True
def coordinate_from_string(s):
return tuple([int(x) for x in s.split(",")])
def lit_lights(lights):
return sum(row.count(True) for row in lights)
def all_lights_off():
return [([False] * 1000).copy() for x in range(0,1000)]
def main():
lights = all_lights_off()
with open("Day6.txt") as f:
for command in [l.rstrip() for l in f.readlines()]:
parts = command.split(" ")
begin = coordinate_from_string(parts[-3])
end = coordinate_from_string(parts[-1])
if command.startswith("toggle"): toggle_lights(lights, begin, end)
if parts[1] == "on": turn_on_lights(lights, begin, end)
if parts[1] == "off": turn_off_lights(lights, begin, end)
print("Lit lights: %d" % (lit_lights(lights),))
if __name__ == "__main__":
main()
|
#!/usr/bin/env python
''' WIP
def main():
script_main('you-get', any_download, any_download_playlist)
if __name__ == "__main__":
main()
'''
|
'''
@Date: 2019-09-10 20:36:03
@Author: ywyz
@LastModifiedBy: ywyz
@Github: https://github.com/ywyz
@LastEditors: ywyz
@LastEditTime: 2019-09-10 20:41:39
'''
for number in range(1, 7):
spacenumber = 6 - number
while spacenumber >= 0:
print(" ", end=" ")
spacenumber -= 1
n = number
while n > 0:
print(n, end=" ")
n -= 1
print("\n")
|
numeros = []
for n in range(1,101):
numeros.append(n)
print(numeros)
|
#!/usr/bin/env python
def organism(con):
con.executescript(
'''
CREATE TABLE Organisms
(
abbr TEXT PRIMARY KEY,
name TEXT
);
''')
def species(con):
con.executescript(
'''
CREATE TABLE Genes
(
gid TEXT PRIMARY KEY,
name TEXT
);
CREATE TABLE GeneEntrezGeneIds
(
gid TEXT,
entrez_gene_id TEXT,
PRIMARY KEY (gid, entrez_gene_id)
);
CREATE INDEX GeneEntrezGeneIds_idx_entrez_gene_id ON GeneEntrezGeneIds (entrez_gene_id);
CREATE TABLE GeneGis
(
gid TEXT,
gi TEXT,
PRIMARY KEY (gid, gi)
);
CREATE INDEX GeneGis_idx_gi ON GeneGis (gi);
CREATE TABLE GeneUniprotkbAcs
(
gid TEXT,
uniprotkb_ac TEXT,
PRIMARY KEY (gid, uniprotkb_ac)
);
CREATE INDEX GeneUniprotkbAcs_idx_uniprotkb_ac ON GeneUniprotkbAcs (uniprotkb_ac);
CREATE TABLE GeneEnsemblGeneIds
(
gid TEXT,
ensembl_gene_id TEXT,
PRIMARY KEY (gid, ensembl_gene_id)
);
CREATE INDEX GeneEnsemblGeneIds_idx_ensembl_gene_id ON GeneEnsemblGeneIds (ensembl_gene_id);
CREATE TABLE Orthologs
(
gid TEXT,
oid TEXT,
PRIMARY KEY (gid, oid)
);
CREATE TABLE Pathways
(
pid INTEGER PRIMARY KEY,
db TEXT,
id TEXT,
name TEXT
);
CREATE TABLE GenePathways
(
gid TEXT,
pid INTEGER,
PRIMARY KEY (gid, pid)
);
CREATE TABLE Diseases
(
did INTEGER PRIMARY KEY,
db TEXT,
id TEXT,
name TEXT
);
CREATE TABLE GeneDiseases
(
gid TEXT,
did INTEGER,
PRIMARY KEY (gid, did)
);
CREATE TABLE Gos
(
goid TEXT PRIMARY KEY,
name TEXT
);
CREATE TABLE GeneGos
(
gid TEXT,
goid TEXT,
PRIMARY KEY (gid, goid)
);
''')
def ko(con):
con.executescript(
'''
CREATE TABLE Kos
(
koid TEXT PRIMARY KEY,
name TEXT
);
CREATE TABLE KoGenes
(
koid TEXT,
gid TEXT,
PRIMARY KEY (koid, gid)
);
CREATE INDEX KoGenes_idx_gid ON KoGenes (gid);
CREATE TABLE KoEntrezGeneIds
(
koid TEXT,
entrez_gene_id TEXT,
PRIMARY KEY (koid, entrez_gene_id)
);
CREATE INDEX KoEntrezGeneIds_idx_entrez_gene_id ON KoEntrezGeneIds (entrez_gene_id);
CREATE TABLE KoGis
(
koid TEXT,
gi TEXT,
PRIMARY KEY (koid, gi)
);
CREATE INDEX KoGis_idx_gi ON KoGis (gi);
CREATE TABLE KoUniprotkbAcs
(
koid TEXT,
uniprotkb_ac TEXT,
PRIMARY KEY (koid, uniprotkb_ac)
);
CREATE INDEX KoUniprotkbAcs_idx_uniprotkb_ac ON KoUniprotkbAcs (uniprotkb_ac);
CREATE TABLE KoEnsemblGeneIds
(
koid TEXT,
ensembl_gene_id TEXT,
PRIMARY KEY (koid, ensembl_gene_id)
);
CREATE INDEX KoEnsemblGeneIds_idx_ensembl_gene_id ON KoEnsemblGeneIds (ensembl_gene_id);
CREATE TABLE Pathways
(
pid TEXT PRIMARY KEY,
name TEXT
);
CREATE TABLE KoPathways
(
koid TEXT,
pid TEXT,
PRIMARY KEY (koid, pid)
);
''')
|
"""
Module Docstring
Docstrings: http://www.python.org/dev/peps/pep-0257/
"""
__author__ = 'Yannic Schneider (v@vendetta.ch)'
__copyright__ = 'Copyright (c) 20xx Yannic Schneider'
__license__ = 'WTFPL'
__vcs_id__ = '$Id$'
__version__ = '0.1' #Versioning: http://www.python.org/dev/peps/pep-0386/
#
## Code goes here.
#
def read_file(path):
"""Read a file and return as string object"""
return open(path, encoding='latin-1')
def read_file_strip(path):
"""Read a file and strip newlines so the result is on one line"""
fobj = open(path, encoding='latin-1')
ret = ''
for line in fobj:
ret += line.strip()
return ret
|
class DoubleExpression:
def __init__(self, value):
self.value = value
def accept(self, visitor):
visitor.visit(self)
|
# Time: O(m + n)
# Space: O(1)
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
# @param two ListNodes
# @return the intersected ListNode
def getIntersectionNode(self, headA, headB):
curA, curB = headA, headB
while curA != curB:
curA = curA.next if curA else headB
curB = curB.next if curB else headA
return curA
|
#############################################
## hassioNode commandWord map
#############################################
print('Load hassioNode masterBedroom commandWord map')
wordMap = {
"Media": {
"Louder": [
{"id": 0, "type": "call_service", "domain": "media_player", "service": "volume_up", "service_data": {"entity_id": "media_player.master_bedroom"}},
],
"Softer": [
{"type": "call_service", "domain": "media_player", "service": "volume_down", "service_data": {"entity_id": "media_player.master_bedroom"}},
],
"Silence": [
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.master_bedroom", "is_volume_muted": True}},
],
"Sound": [
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.master_bedroom", "is_volume_muted": False}},
],
"Sleep": [
{"type": "call_service", "domain": "media_player", "service": "select_source", "service_data": {"entity_id": "media_player.bedroom", "source": "Blues"}},
{"type": "call_service", "domain": "media_player", "service": "volume_set", "service_data": {"entity_id": "media_player.bedroom", "volume_level": 0.14}},
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.bedroom", "is_volume_muted": False}},
{"type": "call_service", "domain": "sonos", "service": "set_sleep_timer", "service_data": {"entity_id": "media_player.bedroom", "sleep_time": 3600}},
{"type": "call_service", "domain": "sonos", "service": "unjoin", "service_data": {"entity_id": "media_player.bathroom"}},
],
"Relax": [
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.master_bedroom", "is_volume_muted": True}},
],
"Wake": [
{"type": "call_service", "domain": "media_player", "service": "select_source", "service_data": {"entity_id": "media_player.bedroom", "source": "Mix"}},
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.bedroom", "is_volume_muted": False}},
{"type": "call_service", "domain": "media_player", "service": "volume_set", "service_data": {"entity_id": "media_player.bedroom", "volume_level": 0.2}},
{"type": "call_service", "domain": "sonos", "service": "join", "service_data": {"master": "media_player.bedroom", "entity_id": "media_player.bathroom"}},
],
"Reset": [
{"type": "call_service", "domain": "switch", "service": "turn_off", "service_data": {"entity_id": "switch.31485653bcddc23a2807"}},
],
"Preset1": [
{"type": "call_service", "domain": "input_select", "service": "select_option", "service_data": {"entity_id": "input_select.masterbedroom_fireplace_duration", "option": "30 Minutes"}},
],
"Preset2": [
{"type": "call_service", "domain": "input_select", "service": "select_option", "service_data": {"entity_id": "input_select.masterbedroom_fireplace_duration", "option": "60 Minutes"}},
],
"Preset3": [
{"type": "call_service", "domain": "input_select", "service": "select_option", "service_data": {"entity_id": "input_select.masterbedroom_fireplace_duration", "option": "90 Minutes"}},
],
"Preset4": [
{"type": "call_service", "domain": "input_select", "service": "select_option", "service_data": {"entity_id": "input_select.masterbedroom_fireplace_duration", "option": "120 Minutes"}},
],
"On": [
{"type": "call_service", "domain": "media_player", "service": "select_source", "service_data": {"entity_id": "media_player.bedroom", "source": "TV"}},
{"type": "call_service", "domain": "media_player", "service": "volume_set", "service_data": {"entity_id": "media_player.bedroom", "volume_level": 0.25}},
{"type": "call_service", "domain": "media_player", "service": "volume_mute", "service_data": {"entity_id": "media_player.bedroom", "is_volume_muted": False}},
{"type": "call_service", "domain": "sonos", "service": "join", "service_data": {"master": "media_player.bedroom", "entity_id": "media_player.bathroom"}},
],
}
}
|
"""Utility functions for the testing module.
Dribia 2021/08/04, irene <irene@dribia.com>
"""
|
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def inc(x):
return x + 1
def test_add():
assert add(1, 2) == 3
def test_subtract():
assert subtract(2, 1) == 1
def test_inc():
assert inc(1) == 2
|
class lrd:
def __init__(self, waiting_time, start_lr, min_lr, factor):
self.waiting_time = waiting_time
self.start_lr = start_lr
self.min_lr = min_lr
self.factor = factor
self.min_value = 10000000000000000000
self.waited = 0
self.actual_lr = self.start_lr
self.stop = False
def set_new_lr(self, new_value):
if new_value < self.min_value:
self.waited = 0
self.min_value = new_value
return self.actual_lr
self.waited += 1
if self.waited > self.waiting_time:
self.actual_lr /= self.factor
self.waited = 0
if self.actual_lr < self.min_lr:
self.stop = True
return self.actual_lr
|
class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
MAX_INT = (1 << 31) - 1
MIN_INT = -MAX_INT - 1
if x == MIN_INT: return 0
res = 0
p = x if x >= 0 else -x
while p != 0:
digit = p % 10
if res <= MAX_INT // 10:
res = res * 10 + digit
else:
return 0
p = p // 10
return res if x >= 0 else -res
|
#!/usr/bin/env python3
def check_palindrome(num):
num = str(num)
for i in range(0, int((len(num) + 1) / 2)):
if num[i] != num[-i]:
return False
return True
def simple_palindrome(num):
num = str(num)
return num == num[::-1]
biggest = 0
for i in range(100, 999):
for j in range(100, 999):
temp = i * j
if temp > biggest:
if simple_palindrome(temp):
biggest = temp
print(biggest)
|
"""
Reverse encoding functions.
Reverse encoding is the simplest of encoding methods. It just reverses order of
text characters.
"""
def encode(text: str) -> str:
"""
Reverse order of given text characters.
:param text: Text to reverse.
:return: Reversed text.
"""
reversed_text = "".join(char for char in text[-1::-1])
return reversed_text
def decode(text: str) -> str:
"""
Obtain original text from a reversed text.
:param text: Reversed text.
:return: Original text.
"""
# Reverse of reverse is original text.
return encode(text)
|
"""
Semantic adversarial Examples
"""
__all__ = ['semantic', 'Semantic']
def semantic(x, center:bool=True, max_val:float=1.):
"""
Semantic adversarial examples.
https://arxiv.org/abs/1703.06857
Note: data must either be centered (so that the negative image can be
made by simple negation) or must be in the interval of [-1, 1]
Arguments
---------
net : nn.Module, optional
The model on which to perform the attack.
center : bool
If true, assumes data has 0 mean so the negative image is just negation.
If false, assumes data is in interval [0, max_val]
max_val : float
Maximum value allowed in the input data.
"""
if center:
return x*-1
return max_val - x
################################################################
###### Class to initialize this attack
###### mainly for the use with torchvision.transforms
class Semantic():
def __init__(self, net=None, **kwargs):
self.kwargs = kwargs
def __call__(self, x):
return semantic(x, **self.kwargs)
|
class Solution(object):
def isLongPressedName(self, name, typed):
"""
:type name: str
:type typed: str
:rtype: bool
"""
if name == typed:
return True
for c in name:
try:
index = typed.index(c)
typed = typed[index+1:]
except:
return False
return True
|
def consume_rec(xs, fn, n=0):
if n <= 0:
fn(xs)
else:
for x in xs:
consume_rec(x, fn, n=n - 1)
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: "Kairu"
# contact:
# date: "2017/11/17"
class PySubError(Exception):
"""基本错误类型"""
pass
class SubFormatError(PySubError):
"""字幕格式错误"""
pass
class AssFilePathError(PySubError):
"""文件路径错误"""
pass
class AssParseError(PySubError):
"""解析Ass内容时发生错误"""
pass
class NoExists(PySubError):
"""没有找到目标对象"""
pass
class RequestError(PySubError):
"""请求错误"""
pass
|
# Load the double pendulum from Universal Robot Description Format
#tree = RigidBodyTree(FindResource("double_pendulum/double_pendulum.urdf"), FloatingBaseType.kFixed)
#tree = RigidBodyTree(FindResource("../../notebooks/three_link.urdf"), FloatingBaseType.kFixed)
#tree = RigidBodyTree(FindResource("../../drake/examples/compass_gait/CompassGait.urdf"), FloatingBaseType.kFixed)
tree = RigidBodyTree(FindResource("../../notebooks/three_link.urdf"), FloatingBaseType.kFixed)
box_depth = 100
pi = math.pi
R = np.identity(3)
slope = 0
R[0, 0] = math.cos(slope)
R[0, 2] = math.sin(slope)
R[2, 0] = -math.sin(slope)
R[2, 2] = math.cos(slope)
X = Isometry3(rotation=R, translation=[0, 0, -5.])
color = np.array([0.9297, 0.7930, 0.6758, 1])
tree.world().AddVisualElement(VisualElement(Box([100., 1., 10.]), X, color))
tree.addCollisionElement(CollisionElement(Box([100., 1., 10.]), X), tree.world(), "the_ground")
tree.compile()
# Set up a block diagram with the robot (dynamics) and a visualization block.
builder = DiagramBuilder()
robot = builder.AddSystem(RigidBodyPlant(tree))
logger = builder.AddSystem(SignalLogger(robot.get_output_port(0).size()))
logger._DeclarePeriodicPublish(1. / 30., 0.0)
builder.Connect(robot.get_output_port(0), logger.get_input_port(0))
builder.ExportInput(robot.get_input_port(0)) #this allows the outside world to see push inputs in (or whatever)
diagram = builder.Build()
# Set up a simulator to run this diagram
simulator = Simulator(diagram)
#simulator.set_target_realtime_rate(1.0)
simulator.set_publish_every_time_step(False)
# Set the initial conditions
context = simulator.get_mutable_context()
context.FixInputPort(0, BasicVector([0., 0.])) # Zero input torques
state = context.get_mutable_continuous_state_vector()
state.SetFromVector((pi + pi/8, pi/2 + pi/4 ,3*pi/2,0.,0.,0,)) # initial condition
# Simulate for 10 seconds
simulator.StepTo(3)
prbv = PlanarRigidBodyVisualizer(tree, xlim=[-2.5, 2.5], ylim=[-5, 2.5])
ani = prbv.animate(logger, repeat=True)
#plt.close(prbv.fig)
HTML(ani.to_html5_video())
|
#071)Simular caixa eletronico, celulas 50,20,10,1 R$.EX: 100 e duas celulas de 50
#FORMA SEM O WHILE
saque = float(input('Qual valor você quer sacar? R$ '))
if saque == 0 or saque < 0:
print('Digite um valor acima de ZERO, por favor!')
cinquenta = saque//50
vinte = (saque%50)//20
dez = ((saque%50)%20)//10
um = ((saque%50)%10)
print(f'Total de {cinquenta :.2f} células de R$50')
print(f'Total de {vinte :.2f} células de R$20')
print(f'Total de {dez :.2f} células de R$10')
print(f'Total de {um :.2f} células de R$1')
|
"""
Given two binary strings a and b, return their sum as a binary string.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
Constraints:
1 <= a.length, b.length <= 104
a and b consist only of '0' or '1' characters.
Each string does not contain leading zeros except for the zero itself.
"""
#ALGORITHM -> TC (O(N + M)) & SpaceComplexity (O(max(N, M))) where N and M are length of input
"""
Convert a and b into integers x and y, x will be used to keep an answer, and y for the carry.
While carry is nonzero: y != 0:
Current answer without carry is XOR of x and y: answer = x^y.
Current carry is left-shifted AND of x and y: carry = (x & y) << 1.
Job is done, prepare the next loop: x = answer, y = carry.
Return x in the binary form.
"""
class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
temp1, temp2 = int(a, 2), int(b, 2)
while temp2:
ans = temp1 ^ temp2
carry = (temp1 & temp2) << 1
temp1, temp2 = ans, carry
return bin(temp1)[2:]
|
def info_file_parser(filename, verbose=False):
results = {}
infile = open(filename,'r')
for iline, line in enumerate(infile):
if line[0]=='#': continue
lines = line.split()
if len(lines)<2 : continue
if lines[0][0]=='#': continue
infotype = lines[0]
infotype=infotype.replace(':','')
info = lines[1]
results[infotype]=info
return results
|
class AlreadyExists(Exception):
pass
class NoRights(Exception):
pass
class EntryNotFound(Exception):
pass
class LoginFailed(Exception):
pass
# input validation
""" Input validation """
class InvalidInput(Exception):
pass
|
class Country():
def __init__(self, name='Unspecified', population=None, size_kmsq=None): #keyword argument.
self.name = name
self.population = population
self.size_kmsq = size_kmsq
def __str__(self):
return self.name
if __name__ == '__main__':
usa = Country(name='United States of America', size_kmsq=9.8e6)
print(usa.__dict__) #Dictionary output of usa object.
chad = Country(name = 'chad')
print(chad)
chad = Country(name = 'algeria')
print(chad)
|
def test_owner_register_success():
assert True
def test_owner_register_failure():
assert True
def test_worker_register_success():
assert True
def test_worker_register_failure():
assert True
def test_login_success():
assert True
def test_login_failure():
assert True
|
class MoveTurn(object):
def __init__(self):
self.end = False
self.again = False
self.move = None
if __name__ == "__main__":
Print('This class has been checked and works as expected.')
|
#
# Created on Fri Apr 10 2020
#
# Title: Leetcode - Min Stack
#
# Author: Vatsal Mistry
# Web: mistryvatsal.github.io
#
class MinStack:
def __init__(self):
# Creating 2 stacks, stack : original data; currMinimum : to hold current minimum upon each push
self.stack = list()
self.currMinimum = list()
def push(self, x: int) -> None:
if len(self.stack) == 0 and len(self.currMinimum) == 0:
self.stack.append(x)
self.currMinimum.append(x)
else:
self.currMinimum.append(min(x, self.currMinimum[len(self.currMinimum) - 1]))
self.stack.append(x)
def pop(self) -> None:
if not len(self.stack) == 0:
self.stack.pop()
self.currMinimum.pop()
def top(self) -> int:
if not len(self.stack) == 0:
return self.stack[len(self.stack) - 1]
def getMin(self) -> int:
if not len(self.currMinimum) == 0:
return self.currMinimum[len(self.currMinimum) - 1]
# Your MinStack object will be instantiated and called as such:
# obj = MinStack()
# obj.push(x)
# obj.pop()
# param_3 = obj.top()
# param_4 = obj.getMin()
|
def insertionSort(aList):
first = 0
last = len(aList)-1
for CurrentPointer in range(first+1, last+1):
CurrentValue = aList[CurrentPointer]
Pointer = CurrentPointer - 1
while aList[Pointer] > CurrentValue and Pointer >= 0:
aList[Pointer+1] = aList[Pointer]
Pointer -= 1
aList[Pointer+1] = CurrentValue
|
# 8.10) Implement a function to fill a matrix with a new color given a point and the matrix
def paint_fill(matrix, y, x, new_color):
# print(x, y)
len_x = len(matrix[0]) - 1
len_y = len(matrix[0][0]) - 1
if y < 0 or y > len_y or x < 0 or x > len_x:
return
if matrix[y][x] == new_color:
return
# set new color
matrix[y][x] = new_color
# call all adjacent points
paint_fill(matrix, y - 1, x, new_color)
paint_fill(matrix, y + 1, x, new_color)
paint_fill(matrix, y, x + 1, new_color)
paint_fill(matrix, y, x - 1, new_color)
#test code
w, h = 8, 5
Matrix = [['#fff' for x in range(w)] for y in range(h)]
paint_fill(Matrix, 2, 3, '#xoxo')
print(Matrix)
|
class Solution(object):
def sortedSquares(self, nums):
"""
:type A: List[int]
:rtype: List[int]
"""
squares = [0 for i in range(len(nums))]
# index iterator for squares array
i = len(squares) - 1
left = 0
right = len(nums) - 1
while left <= right:
# if calculate the absolute values of
if abs(nums[left]) < abs(nums[right]):
squares[i] = (nums[right])**2
right -= 1
else:
squares[i] = (nums[left])**2
left += 1
i -= 1
return squares
numbers = [-7, -3, 2, 3, 11]
obj = Solution()
result = obj.sortedSquares(numbers)
print(result)
|
"""
206. Reverse Linked List
Given the head of a singly linked list, reverse the list, and return the reversed list.
Example 1:
Input: head = [1,2,3,4,5]
Output: [5,4,3,2,1]
Example 2:
Input: head = [1,2]
Output: [2,1]
Example 3:
Input: head = []
Output: []
Constraints:
The number of nodes in the list is the range [0, 5000].
-5000 <= Node.val <= 5000
Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both?
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/reverse-linked-list
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def __str__(self) -> str:
return "{}{}".format(self.val, ", " + str(self.next) if self.next else "")
def __repr__(self) -> str:
return "ListNode[{}]".format(str(self))
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
prehead = ListNode()
while head:
prev = ListNode(head.val, prehead.next)
prehead.next = prev
head = head.next
return prehead.next
if __name__ == "__main__":
head = ListNode(1, ListNode(2, ListNode(3, ListNode(4, ListNode(5)))))
print("Input: head =", head)
print("Output:", Solution().reverseList(head))
|
fname = 'mydata.txt'
with open(fname, 'r') as md:
for line in md:
print(line)
# continue on with other code
fname = 'mydata2.txt'
with open(fname, 'w') as wr:
for i in range (20):
wr.write(str(i) + '\n')
|
class DeviceSwitch(object):
def __init__(self, device_data):
self.__device_data = device_data
def switch(self, key, value):
switcher = {
"identifier": self.__identifier,
"language": self.__language,
"timezone": self.__timezone,
"game_version": self.__game_version,
"device_model": self.__device_model,
"device_os": self.__device_os,
"ad_id": self.__ad_id,
"sdk": self.__sdk,
"session_count": self.__session_count,
"tags": self.__tags,
"amount_spent": self.__amount_spent,
"created_at": self.__created_at,
"playtime": self.__playtime,
"badge_count": self.__badge_count,
"last_active": self.__last_active,
# WARNING: Be carefull with this one
"notification_type": self.__notification_types,
# For testing only
"test_type": self.__test_type,
"long": self.__long,
"lat": self.__lat,
"country": self.__country
}
# Get the function from switcher dictionary
func = switcher.get(key, lambda: "Invalid argument")
# Execute the function
return func(value)
# val: String
@staticmethod
def __identifier(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Identifier value must be a string')
# val: String
@staticmethod
def __language(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Language value must be a string')
# val: int
@staticmethod
def __timezone(val):
if type(val) is int:
return val
else:
raise ValueError('Timezone value must be an integer')
# val: String
@staticmethod
def __game_version(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Game version value must be a string')
# val: String
@staticmethod
def __device_model(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Device model value must be a string')
# val: String
@staticmethod
def __device_os(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Device OS value must be a string')
# val: String
@staticmethod
def __ad_id(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Ad ID value must be a string')
# val: String
@staticmethod
def __sdk(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('SDK value must be a string')
# val: int
@staticmethod
def __session_count(val):
if type(val) is int:
return val
else:
raise ValueError('Session Count value must be an integer')
# val: Dictionary {}
def __tags(self, val):
if isinstance(val, dict):
temp_tags = self.__device_data['tags']
for key_data, val_data in val.iteritems():
# updating and creating the tags
temp_tags[key_data] = val_data
return temp_tags
else:
raise ValueError('Tags val must be a dictionary')
# val: String
@staticmethod
def __amount_spent(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Amount spent value must be a string')
# val: int
@staticmethod
def __created_at(val):
if type(val) is int:
return val
else:
raise ValueError('Created At value must be an integer')
# val: int
@staticmethod
def __playtime(val):
if type(val) is int:
return val
else:
raise ValueError('Playtime value must be an integer')
# val: int
@staticmethod
def __badge_count(val):
if type(val) is int:
return val
else:
raise ValueError('Badge Count value must be an integer')
# val: int
@staticmethod
def __last_active(val):
if type(val) is int:
return val
else:
raise ValueError('Last Active value must be an integer')
# val: int
@staticmethod
def __notification_types(val):
if type(val) is int:
return val
else:
raise ValueError('Notification Types value must be an integer')
# val: int
@staticmethod
def __test_type(val):
if type(val) is int:
return val
else:
raise ValueError('Test Type value must be an integer')
# val: float
@staticmethod
def __long(val):
if type(val) is float:
return val
else:
raise ValueError('Long must be float')
# val: float
@staticmethod
def __lat(val):
if type(val) is float:
return val
else:
raise ValueError('Lat must be float')
# val: String
@staticmethod
def __country(val):
if isinstance(val, basestring):
return val
else:
raise ValueError('Country value must be a string')
|
class PID(object):
def __init__(self, kp, ki, kd):
self.kp = kp
self.ki = ki
self.kd = kd
self.error_int = 0
self.error_prev = None
def control(self, error):
self.error_int += error
if self.error_prev is None:
self.error_prev = error
error_deriv = error - self.error_prev
self.error_prev = error
return self.kp*error + self.ki*self.error_int + self.kd*error_deriv
def reset(self):
self.error_prev = None
self.error_int = 0
|
class FindSumPairs:
def __init__(self, nums1: List[int], nums2: List[int]):
self.nums1 = nums1
self.nums2 = nums2
self.count2 = Counter(nums2)
def add(self, index: int, val: int) -> None:
self.count2[self.nums2[index]] -= 1
self.nums2[index] += val
self.count2[self.nums2[index]] += 1
def count(self, tot: int) -> int:
ans = 0
for num in self.nums1:
ans += self.count2[tot - num]
return ans
|
def main(request, response):
name = request.GET.first("name")
source_origin = request.headers.get("origin", None);
response.headers.set("Set-Cookie", name + "=value")
response.headers.set("Access-Control-Allow-Origin", source_origin)
response.headers.set("Access-Control-Allow-Credentials", "true")
|
__all__ = ("InputDataError",)
class InputDataError(ValueError):
pass
|
# 04. Forum Topics
line = input()
forum_dict = {}
# def unique(sequence):
# seen = set()
# return [x for x in sequence if not(x in seen or seen.add(x))]
while not line == "filter":
words = line.split(" -> ")
topic = words[0]
hashtags = words[1].split(", ")
if topic not in forum_dict.keys():
forum_dict[topic] = hashtags
else:
forum_dict[topic].extend(hashtags)
line = input()
sequence = set(input().split(', '))
for topic, hashtags in forum_dict.items():
ht_set = sorted(set(hashtags), key= hashtags.index)
if sequence.issubset(ht_set):
print(f"{topic} | {', '.join(map(lambda x: '#' + x, ht_set))}")
|
# Типы переменных
# Марка
name = 'ford'
print(name, type(name)) # class string
# Age
age = 3
print(age, type(age)) # class int
# Обьем двигателя
engine_volume = 1.6
print(engine_volume, type(engine_volume)) # class float
# Есть ли люк
see_sky = False
print(see_sky, type(see_sky)) # class bool
|
number1=10
number2=20
number4=40
number3=30
print('hello world')
print('镜湖')
|
n=int(input())%2
if n==0:
print("White")
else:
print("Black")
|
{
'targets' : [
{
'target_name' : 'hdfs3_bindings',
'sources' : [
'src/addon.cc',
'src/HDFileSystem.cc',
'src/HDFile.cc'
],
'xcode_settings': {
'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unused-result']
},
'cflags' : ['-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-result'],
'include_dirs': [
"<!(node -e \"require('nan')\")"
],
'conditions' : [
[ 'OS == "linux"', { 'libraries' : [ '-lhdfs3' ], 'cflags' : [ '-g' ] }],
[ 'OS == "mac"', { 'libraries' : [ '-lhdfs3' ] }
]
]
}
]
}
|
"""
Ler um conjunto de números reais, armazenando-o em vetor e calcular o quadrado dos componentes deste vetor,
armazenando o resultado em outro vetor. Os conjuntos têm 10 elementos cada. Imprima todos os elementos.
"""
vetor = set(range(1, 11))
vetor1 = set({})
for numero in vetor:
numero = numero ** 2
vetor1.add(numero)
print(vetor)
print(vetor1)
|
expected_output = {
"max_num_of_service_instances": 32768,
"service_instance": {
2051: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2052: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2053: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2054: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2055: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2056: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2057: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2058: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2059: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2060: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2061: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2062: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2063: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2064: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2065: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2066: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2067: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2068: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2069: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2070: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2071: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2072: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2073: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2074: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2075: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2076: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2077: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2078: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2079: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2080: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2081: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2082: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2083: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2084: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2085: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2086: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2087: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2088: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2089: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2090: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2091: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
},
}
|
def lazy_property(fn):
""" Convert function into a property where the function is
only called the first time the property is accessed """
varName = "__{0}".format(fn.__name__)
def lazyLoad(self):
if not hasattr(self, varName):
setattr(self, varName, fn(self))
return getattr(self, varName)
return property(lazyLoad)
|
STD_GAS_PRICE = int(3e9) # 3gwei
def autofund_account(web3, address, value):
""" Automatically fund an account """
assert isinstance(value, int)
net_id = int(web3.net.version)
balance = web3.eth.getBalance(address)
if net_id > 100:
# If this is the test network, make sure our deployment account is
# funded
if balance == 0:
tx = web3.eth.sendTransaction({
'from': web3.eth.accounts[0], # The pre-funded test account
'to': address,
'value': value,
'gasPrice': STD_GAS_PRICE,
})
receipt = web3.eth.waitForTransactionReceipt(tx)
assert receipt.status == 1, "Funding deployer_account failed"
balance = web3.eth.getBalance(address)
assert balance >= value, "Funding of deployer_account too low"
else:
# Make sure deployer account has at least 0.5 ether
assert balance > int(5e17), (
"deployer account needs to be funded. want: {}. has: {}".format(
int(5e17),
balance
)
)
def main(web3, contracts, deployer_account):
# Fund the deployer account if necessary(test networks only)
autofund_account(web3, deployer_account, int(1e18))
# Deploy GasVariation
GasVariation = contracts.get('GasVariation')
gv = GasVariation.deployed()
assert gv.address is not None
GasVariationCaller = contracts.get('GasVariationCaller')
gvc = GasVariationCaller.deployed(gv.address)
assert gvc.address is not None
DumbContract = contracts.get('DumbContract')
dumb = DumbContract.deployed()
assert dumb.address is not None
|
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
"""
Project Name: 'lan-map'
Version: 0.1
Description: Network map creation application
Ihor Cheberiak (c) 2021
https://www.linkedin.com/in/ihor-cheberiak/
"""
class ButtonMainWindow:
def __init__(self, main_gui) -> None:
self.main_window = main_gui
def button_new_device(self) -> None:
self.main_window.gui_new_device_controller.show()
def button_edit_device(self) -> None:
self.main_window.gui_main_windows.pushButton_3.setDisabled(True)
def button_delete_device(self) -> None:
self.main_window.gui_main_windows.pushButton_4.setDisabled(True)
def button_network_map(self) -> None:
self.main_window.gui_main_windows.pushButton_5.setDisabled(True)
|
# Generated by h2py from /usr/include/sys/socket.h
NC_TPI_CLTS = 1
NC_TPI_COTS = 2
NC_TPI_COTS_ORD = 3
NC_TPI_RAW = 4
SOCK_STREAM = NC_TPI_COTS
SOCK_DGRAM = NC_TPI_CLTS
SOCK_RAW = NC_TPI_RAW
SOCK_RDM = 5
SOCK_SEQPACKET = 6
SO_DEBUG = 0x0001
SO_ACCEPTCONN = 0x0002
SO_REUSEADDR = 0x0004
SO_KEEPALIVE = 0x0008
SO_DONTROUTE = 0x0010
SO_BROADCAST = 0x0020
SO_USELOOPBACK = 0x0040
SO_LINGER = 0x0080
SO_OOBINLINE = 0x0100
SO_DONTLINGER = (~SO_LINGER)
SO_SNDBUF = 0x1001
SO_RCVBUF = 0x1002
SO_SNDLOWAT = 0x1003
SO_RCVLOWAT = 0x1004
SO_SNDTIMEO = 0x1005
SO_RCVTIMEO = 0x1006
SO_ERROR = 0x1007
SO_TYPE = 0x1008
SO_PROTOTYPE = 0x1009
SOL_SOCKET = 0xffff
AF_UNSPEC = 0
AF_UNIX = 1
AF_INET = 2
AF_IMPLINK = 3
AF_PUP = 4
AF_CHAOS = 5
AF_NS = 6
AF_NBS = 7
AF_ECMA = 8
AF_DATAKIT = 9
AF_CCITT = 10
AF_SNA = 11
AF_DECnet = 12
AF_DLI = 13
AF_LAT = 14
AF_HYLINK = 15
AF_APPLETALK = 16
AF_NIT = 17
AF_802 = 18
AF_OSI = 19
AF_X25 = 20
AF_OSINET = 21
AF_GOSIP = 22
AF_MAX = 22
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
PF_IMPLINK = AF_IMPLINK
PF_PUP = AF_PUP
PF_CHAOS = AF_CHAOS
PF_NS = AF_NS
PF_NBS = AF_NBS
PF_ECMA = AF_ECMA
PF_DATAKIT = AF_DATAKIT
PF_CCITT = AF_CCITT
PF_SNA = AF_SNA
PF_DECnet = AF_DECnet
PF_DLI = AF_DLI
PF_LAT = AF_LAT
PF_HYLINK = AF_HYLINK
PF_APPLETALK = AF_APPLETALK
PF_NIT = AF_NIT
PF_802 = AF_802
PF_OSI = AF_OSI
PF_X25 = AF_X25
PF_OSINET = AF_OSINET
PF_GOSIP = AF_GOSIP
PF_MAX = AF_MAX
SOMAXCONN = 5
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_MAXIOVLEN = 16
SOCKETSYS = 88
SOCKETSYS = 83
SO_ACCEPT = 1
SO_BIND = 2
SO_CONNECT = 3
SO_GETPEERNAME = 4
SO_GETSOCKNAME = 5
SO_GETSOCKOPT = 6
SO_LISTEN = 7
SO_RECV = 8
SO_RECVFROM = 9
SO_SEND = 10
SO_SENDTO = 11
SO_SETSOCKOPT = 12
SO_SHUTDOWN = 13
SO_SOCKET = 14
SO_SOCKPOLL = 15
SO_GETIPDOMAIN = 16
SO_SETIPDOMAIN = 17
SO_ADJTIME = 18
|
"""
Write an algorithm to determine if a number n is happy.
A happy number is a number defined by the following process:
- Starting with any positive integer, replace the number by the sum of the squares of its digits.
- Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle without 1.
- Those numbers for which this process ends in 1 are happy.
Example 1:
Input: n = 19, Output: true
Explanation:
1^2 + 9^2 = 82
8^2 + 2^2 = 68
6^2 + 8^2 = 100
1^2 + 0^2 + 0^2 = 1
Example 2:
Input: n = 2
Output: false
Explanation:
2^2 = 4
4^2 = 16
1^2 + 6^2 = 37
3^2 + 7^2 = 58
5^2 + 8^2 = 89
8^2 + 9^2 = 145
1^2 + 4^2 + 5^2 = 42
4^2 + 2^2 = 20
2^2 + 0^2 = 4 <-- cycle without 1
"""
"""
We repeatedly perform the 'happy' determination for each number, then add it to a set, until we find a number we have
seen before. If this number is a 1, the overall number is happy.
"""
def is_happy(n):
seen = set()
while n not in seen:
seen.add(n)
new_n = 0
for char in str(n):
new_n += int(char) ** 2
n = new_n
return n == 1
assert is_happy(19) is True
assert is_happy(2) is False
|
# Desenvolva um algoritmo em Python que receba a matricula, nome, e 3 notas de um aluno e que calcule e exiba a matricula, nome, média e conceito do mesmo, conforme definido abaixo:
# Conceito A - Média maior ou igual a 7
# Conceito B - Média Menor do que 7 e maior ou igual a 5
# Conceito C - Média Menor do que 5 e maior ou igual a 3
# Conceito D - Média Menor do que 3
matricula = input("Digite a matricula: ")
nome = input("Digite a nome: ")
nota1 = float(input("Digite a nota 1: "))
nota2 = float(input("Digite a nota 2: "))
nota3 = float(input("Digite a nota 3: "))
media = (nota1 + nota2 + nota3)/3
if media >= 7:
conceito = "A"
else:
if media >= 5:
conceito = "B"
else:
if media >= 3:
conceito = "C"
else:
conceito = "D"
print("Matricula: " + matricula)
print("Nome: " + nome)
print("Média: " + str(media))
print("Conceito: " + conceito)
|
def reverseNumber(number):
result = ''
while number:
result += str(number % 10)
number = number // 10
return result
def reverseNumberForSlice(number):
return str(number[::-1])
if __name__ == '__main__':
input_num = input("数値を入力してください。>>> ")
# 数値チェックをいれる
if input_num.isdigit():
number = reverseNumber(int(input_num))
print(f"reverseNumber result : {number}")
value = reverseNumberForSlice(str(input_num))
print(f"reverseNumberForSlice result : {value}")
else:
print("数値を入力してください。")
|
pkgname = "xev"
pkgver = "1.2.4"
pkgrel = 0
build_style = "gnu_configure"
hostmakedepends = ["pkgconf"]
makedepends = ["libxrandr-devel"]
pkgdesc = "Display X events"
maintainer = "q66 <q66@chimera-linux.org>"
license = "MIT"
url = "https://xorg.freedesktop.org"
source = f"$(XORG_SITE)/app/{pkgname}-{pkgver}.tar.bz2"
sha256 = "d700e08bfe751ed2dbf802baa204b056d0e49348b6eb3c6f9cb035d8ae4885e2"
def post_install(self):
self.install_license("COPYING")
|
"""
These settings are only needed if you are planning to push to S3, GitHub or data.world.
If you only are only saving to local files, then these are not needed.
"""
S3_BUCKETS = {
# 'bucket': name of the bucket
# 'key': syntax: a_folder/another_folder
#
# For the 'scrub' bucket, one sub-folder named 'data' is created
# For the 'raw' bucket, two sub-folders are created: 'original-files' & 'raw-data'
'scrub': {'bucket': 'THE_PUBLIC_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'},
'raw': {'bucket': 'THE_PRIVATE_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'}
}
GITHUB_API_TOKEN = 'YOUR_GITHUB_TOKEN_HERE'
GITHUB_REPOS = {
# 'name': syntax: repo_owner/repo_name
'scrub': {'name': 'THE_PUBLIC_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'},
'raw': {'name': 'THE_PRIVATE_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'}
}
DATAWORLD_API_TOKEN = 'YOUR_DATAWORLD_TOKEN_HERE'
DATAWORLD_DATASETS = {
'scrub': {'owner': 'DATASET_OWNER', 'name': 'THE_PUBLIC_DATASET_YOU_WANT_TO_PUSH_TO'},
'raw': {'owner': 'DATASET_OWNER', 'name': 'THE_PRIVATE_DATASET_YOU_WANT_TO_PUSH_TO'}
}
|
class SectionModel(Query):
def __init__(self, db):
self.db = db
self.table_name = "section"
super(SectionModel, self).__init__()
|
funcs = [
"abs", "all", "any", "ascii", "bin", "callable", "chr", "compile",
"delattr", "dir", "divmod", "eval", "exec", "exit", "format", "getattr",
"globals", "hasattr", "hash", "help", "hex", "id", "input", "isinstance",
"issubclass", "iter", "len", "locals", "max", "min", "next", "oct",
"open", "ord", "pow", "print", "quit", "repr", "round", "setattr",
"sorted", "sum", "vars"
]
classes = [
"bool", "bytearray", "bytes", "classmethod", "complex", "dict", "enumerate",
"filter", "float", "frozenset", "int", "list", "map", "memoryview",
"object", "property", "range", "reversed", "set", "slice", "staticmethod",
"str", "super", "tuple", "type", "zip"
]
special_cases = "exit", "quit", "help"
for func in funcs:
if func in special_cases:
continue
assert str(getattr(__builtins__, func)) == f"<built-in function {func}>"
for kl in classes:
obj = getattr(__builtins__, kl)
assert str(obj) == f"<class '{kl}'>", f"erreur pour {kl} : {obj}"
|
#
# PySNMP MIB module CISCO-STP-EXTENSIONS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STP-EXTENSIONS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:56:28 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")
ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection")
dot1dStpPortEntry, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dStpPortEntry")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
VlanIndex, vlanTrunkPortEntry, vtpVlanEditEntry, vtpVlanEntry = mibBuilder.importSymbols("CISCO-VTP-MIB", "VlanIndex", "vlanTrunkPortEntry", "vtpVlanEditEntry", "vtpVlanEntry")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibIdentifier, Counter64, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, TimeTicks, Gauge32, IpAddress, Integer32, Bits, Counter32, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter64", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "IpAddress", "Integer32", "Bits", "Counter32", "iso", "ObjectIdentity")
DisplayString, TimeStamp, RowStatus, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "RowStatus", "TruthValue", "TextualConvention")
ciscoStpExtensionsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 82))
ciscoStpExtensionsMIB.setRevisions(('2013-03-07 00:00', '2005-12-20 00:00', '2005-04-12 00:00', '2004-07-21 00:00', '2004-04-08 00:00', '2004-01-14 00:00', '2003-10-23 00:00', '2002-07-11 00:00', '2001-12-06 00:00', '2001-09-14 00:00', '2001-06-20 00:00', '2001-04-12 00:00', '2000-05-23 00:00', '2000-03-21 00:00', '1997-11-10 12:00', '1997-08-19 12:00',))
if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setLastUpdated('201303070000Z')
if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setOrganization('Cisco Systems, Inc.')
stpxObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1))
stpxUplinkFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1))
stpxVlanObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2))
stpxInconsistencyObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3))
stpxBackboneFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4))
stpxRootGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5))
stpxSpanningTreeObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6))
stpxMISTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7))
stpxLoopGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8))
stpxFastStartObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9))
stpxBpduSkewingObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10))
stpxMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11))
stpxRSTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12))
stpxRPVSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13))
stpxSMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14))
stpxNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2))
class StpxMSTConfigurationDigest(TextualConvention, OctetString):
status = 'current'
displayHint = '1x'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16)
fixedLength = 16
stpxUplinkFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxUplinkFastEnabled.setStatus('current')
stpxUplinkFastTransitions = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 2), Counter32()).setUnits('transitions').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkFastTransitions.setStatus('current')
stpxUplinkStationLearningGenRate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setUnits('frames').setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxUplinkStationLearningGenRate.setStatus('current')
stpxUplinkStationLearningFrames = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkStationLearningFrames.setStatus('current')
stpxUplinkFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkFastOperEnabled.setStatus('current')
stpxPreferredVlansTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1), )
if mibBuilder.loadTexts: stpxPreferredVlansTable.setStatus('current')
stpxPreferredVlansEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansEntry"))
stpxPreferredVlansEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredVlansEntry.setStatus('current')
stpxPreferredVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap.setStatus('current')
stpxPreferredVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap2k.setStatus('current')
stpxPreferredVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap3k.setStatus('current')
stpxPreferredVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap4k.setStatus('current')
stpxPVSTVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2), )
if mibBuilder.loadTexts: stpxPVSTVlanTable.setStatus('current')
stpxPVSTVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanIndex"))
if mibBuilder.loadTexts: stpxPVSTVlanEntry.setStatus('current')
stpxPVSTVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxPVSTVlanIndex.setStatus('current')
stpxPVSTVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("notApplicable", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPVSTVlanEnable.setStatus('current')
stpxInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1), )
if mibBuilder.loadTexts: stpxInconsistencyTable.setStatus('current')
stpxInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxPortIndex"))
if mibBuilder.loadTexts: stpxInconsistencyEntry.setStatus('current')
stpxVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxVlanIndex.setStatus('current')
stpxPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxPortIndex.setStatus('current')
stpxInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 3), Bits().clone(namedValues=NamedValues(("typeInconsistent", 0), ("pvidInconsistent", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxInconsistentState.setStatus('current')
stpxBackboneFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxBackboneFastEnabled.setStatus('current')
stpxBackboneFastInInferiorBPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInInferiorBPDUs.setStatus('current')
stpxBackboneFastInRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInRLQRequestPDUs.setStatus('current')
stpxBackboneFastInRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInRLQResponsePDUs.setStatus('current')
stpxBackboneFastOutRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOutRLQRequestPDUs.setStatus('current')
stpxBackboneFastOutRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOutRLQResponsePDUs.setStatus('current')
stpxBackboneFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOperEnabled.setStatus('current')
stpxRootGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1), )
if mibBuilder.loadTexts: stpxRootGuardConfigTable.setStatus('current')
stpxRootGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigPortIndex"))
if mibBuilder.loadTexts: stpxRootGuardConfigEntry.setStatus('current')
stpxRootGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRootGuardConfigPortIndex.setStatus('current')
stpxRootGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRootGuardConfigEnabled.setStatus('current')
stpxRootInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2), )
if mibBuilder.loadTexts: stpxRootInconsistencyTable.setStatus('current')
stpxRootInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyPortIndex"))
if mibBuilder.loadTexts: stpxRootInconsistencyEntry.setStatus('current')
stpxRootInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxRootInconsistencyIndex.setStatus('current')
stpxRootInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRootInconsistencyPortIndex.setStatus('current')
stpxRootInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRootInconsistencyState.setStatus('current')
stpxSpanningTreeType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("pvstPlus", 1), ("mistp", 2), ("mistpPvstPlus", 3), ("mst", 4), ("rapidPvstPlus", 5))).clone('pvstPlus')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSpanningTreeType.setStatus('current')
stpxSpanningTreePathCostMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2))).clone('short')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSpanningTreePathCostMode.setStatus('current')
stpxLongStpPortPathCostTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3), )
if mibBuilder.loadTexts: stpxLongStpPortPathCostTable.setStatus('current')
stpxLongStpPortPathCostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1), )
dot1dStpPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCostEntry"))
stpxLongStpPortPathCostEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxLongStpPortPathCostEntry.setStatus('current')
stpxLongStpPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1, 1), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLongStpPortPathCost.setStatus('current')
stpxExtendedSysIDAdminEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxExtendedSysIDAdminEnabled.setStatus('current')
stpxExtendedSysIDOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxExtendedSysIDOperEnabled.setStatus('current')
stpxNotificationEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 6), Bits().clone(namedValues=NamedValues(("newRoot", 0), ("topologyChange", 1), ("inconsistency", 2), ("rootInconsistency", 3), ("loopInconsistency", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxNotificationEnable.setStatus('current')
stpxSpanningTreePathCostOperMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSpanningTreePathCostOperMode.setStatus('current')
stpxMISTPInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceNumber.setStatus('current')
stpxMISTPInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2), )
if mibBuilder.loadTexts: stpxMISTPInstanceTable.setStatus('current')
stpxMISTPInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceIndex"))
if mibBuilder.loadTexts: stpxMISTPInstanceEntry.setStatus('current')
stpxMISTPInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256)))
if mibBuilder.loadTexts: stpxMISTPInstanceIndex.setStatus('current')
stpxMISTPInstanceEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMISTPInstanceEnable.setStatus('current')
stpxMISTPInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped.setStatus('current')
stpxMISTPInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped2k.setStatus('current')
stpxMISTPInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped3k.setStatus('current')
stpxMISTPInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped4k.setStatus('current')
stpxVlanMISTPInstMapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3), )
if mibBuilder.loadTexts: stpxVlanMISTPInstMapTable.setStatus('current')
stpxVlanMISTPInstMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1), )
vtpVlanEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEntry"))
stpxVlanMISTPInstMapEntry.setIndexNames(*vtpVlanEntry.getIndexNames())
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEntry.setStatus('current')
stpxVlanMISTPInstMapInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxVlanMISTPInstMapInstIndex.setStatus('current')
stpxVlanMISTPInstMapEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4), )
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditTable.setStatus('current')
stpxVlanMISTPInstMapEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1), )
vtpVlanEditEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditEntry"))
stpxVlanMISTPInstMapEditEntry.setIndexNames(*vtpVlanEditEntry.getIndexNames())
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditEntry.setStatus('current')
stpxVlanMISTPInstMapEditInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditInstIndex.setStatus('current')
stpxPreferredMISTPInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5), )
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesTable.setStatus('current')
stpxPreferredMISTPInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesEntry"))
stpxPreferredMISTPInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesEntry.setStatus('current')
stpxPreferredMISTPInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesMap.setStatus('current')
stpxLoopGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1), )
if mibBuilder.loadTexts: stpxLoopGuardConfigTable.setStatus('current')
stpxLoopGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigPortIndex"))
if mibBuilder.loadTexts: stpxLoopGuardConfigEntry.setStatus('current')
stpxLoopGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxLoopGuardConfigPortIndex.setStatus('current')
stpxLoopGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardConfigEnabled.setStatus('deprecated')
stpxLoopGuardConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardConfigMode.setStatus('current')
stpxLoopInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2), )
if mibBuilder.loadTexts: stpxLoopInconsistencyTable.setStatus('current')
stpxLoopInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyPortIndex"))
if mibBuilder.loadTexts: stpxLoopInconsistencyEntry.setStatus('current')
stpxLoopInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxLoopInconsistencyIndex.setStatus('current')
stpxLoopInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxLoopInconsistencyPortIndex.setStatus('current')
stpxLoopInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxLoopInconsistencyState.setStatus('current')
stpxLoopGuardGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardGlobalDefaultMode.setStatus('current')
stpxFastStartBpduGuardEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartBpduGuardEnable.setStatus('current')
stpxFastStartBpduFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartBpduFilterEnable.setStatus('current')
stpxFastStartPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3), )
if mibBuilder.loadTexts: stpxFastStartPortTable.setStatus('current')
stpxFastStartPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortIndex"))
if mibBuilder.loadTexts: stpxFastStartPortEntry.setStatus('current')
stpxFastStartPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxFastStartPortIndex.setStatus('current')
stpxFastStartPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortEnable.setStatus('deprecated')
stpxFastStartPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("enableForTrunk", 3), ("default", 4), ("network", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortMode.setStatus('current')
stpxFastStartPortBpduGuardMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortBpduGuardMode.setStatus('current')
stpxFastStartPortBpduFilterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortBpduFilterMode.setStatus('current')
stpxFastStartGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartGlobalDefaultMode.setStatus('current')
stpxFastStartOperModeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5), )
if mibBuilder.loadTexts: stpxFastStartOperModeTable.setStatus('current')
stpxFastStartOperModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeInstIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModePortIndex"))
if mibBuilder.loadTexts: stpxFastStartOperModeEntry.setStatus('current')
stpxFastStartOperModeInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxFastStartOperModeInstIndex.setStatus('current')
stpxFastStartOperModePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxFastStartOperModePortIndex.setStatus('current')
stpxFastStartOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxFastStartOperMode.setStatus('current')
stpxBpduSkewingDetectionEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxBpduSkewingDetectionEnable.setStatus('current')
stpxBpduSkewingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2), )
if mibBuilder.loadTexts: stpxBpduSkewingTable.setStatus('current')
stpxBpduSkewingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingPortIndex"))
if mibBuilder.loadTexts: stpxBpduSkewingEntry.setStatus('current')
stpxBpduSkewingInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxBpduSkewingInstanceIndex.setStatus('current')
stpxBpduSkewingPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxBpduSkewingPortIndex.setStatus('current')
stpxBpduSkewingLastSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 3), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingLastSkewDuration.setStatus('current')
stpxBpduSkewingWorstSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 4), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewDuration.setStatus('current')
stpxBpduSkewingWorstSkewTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 5), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewTime.setStatus('current')
stpxMSTMaxInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTMaxInstanceNumber.setStatus('deprecated')
stpxMSTRegionName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionName.setStatus('current')
stpxMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionRevision.setStatus('deprecated')
stpxMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4), )
if mibBuilder.loadTexts: stpxMSTInstanceTable.setStatus('deprecated')
stpxMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceIndex"))
if mibBuilder.loadTexts: stpxMSTInstanceEntry.setStatus('deprecated')
stpxMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTInstanceIndex.setStatus('deprecated')
stpxMSTInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped.setStatus('deprecated')
stpxMSTInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped2k.setStatus('deprecated')
stpxMSTInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped3k.setStatus('deprecated')
stpxMSTInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped4k.setStatus('deprecated')
stpxMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceRemainingHopCount.setStatus('deprecated')
stpxMSTRegionEditBufferStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("released", 1), ("acquiredBySnmp", 2), ("acquiredByNonSnmp", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionEditBufferStatus.setStatus('current')
stpxMSTRegionEditBufferOperation = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("acquire", 2), ("releaseWithForce", 3), ("commit", 4), ("rollBack", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditBufferOperation.setStatus('current')
stpxMSTRegionEditName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditName.setStatus('current')
stpxMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditRevision.setStatus('deprecated')
stpxMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9), )
if mibBuilder.loadTexts: stpxMSTInstanceEditTable.setStatus('deprecated')
stpxMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditIndex"))
if mibBuilder.loadTexts: stpxMSTInstanceEditEntry.setStatus('deprecated')
stpxMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTInstanceEditIndex.setStatus('deprecated')
stpxMSTInstanceEditVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap.setStatus('deprecated')
stpxMSTInstanceEditVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap2k.setStatus('deprecated')
stpxMSTInstanceEditVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap3k.setStatus('deprecated')
stpxMSTInstanceEditVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap4k.setStatus('deprecated')
stpxPreferredMSTInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10), )
if mibBuilder.loadTexts: stpxPreferredMSTInstancesTable.setStatus('deprecated')
stpxPreferredMSTInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesEntry"))
stpxPreferredMSTInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredMSTInstancesEntry.setStatus('deprecated')
stpxPreferredMSTInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredMSTInstancesMap.setStatus('deprecated')
stpxMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11), )
if mibBuilder.loadTexts: stpxMSTPortTable.setStatus('deprecated')
stpxMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortIndex"))
if mibBuilder.loadTexts: stpxMSTPortEntry.setStatus('deprecated')
stpxMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxMSTPortIndex.setStatus('deprecated')
stpxMSTPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTPortAdminLinkType.setStatus('deprecated')
stpxMSTPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortOperLinkType.setStatus('deprecated')
stpxMSTPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTPortProtocolMigration.setStatus('deprecated')
stpxMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 5), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortStatus.setStatus('deprecated')
stpxMSTPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12), )
if mibBuilder.loadTexts: stpxMSTPortRoleTable.setStatus('deprecated')
stpxMSTPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRolePortIndex"))
if mibBuilder.loadTexts: stpxMSTPortRoleEntry.setStatus('deprecated')
stpxMSTPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTPortRoleInstanceIndex.setStatus('deprecated')
stpxMSTPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxMSTPortRolePortIndex.setStatus('deprecated')
stpxMSTPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortRoleValue.setStatus('deprecated')
stpxMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 40)).clone(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTMaxHopCount.setStatus('deprecated')
stpxRSTPPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1), )
if mibBuilder.loadTexts: stpxRSTPPortTable.setStatus('current')
stpxRSTPPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortIndex"))
if mibBuilder.loadTexts: stpxRSTPPortEntry.setStatus('current')
stpxRSTPPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRSTPPortIndex.setStatus('current')
stpxRSTPPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPPortAdminLinkType.setStatus('current')
stpxRSTPPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRSTPPortOperLinkType.setStatus('current')
stpxRSTPPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPPortProtocolMigration.setStatus('current')
stpxRSTPPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2), )
if mibBuilder.loadTexts: stpxRSTPPortRoleTable.setStatus('current')
stpxRSTPPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRolePortIndex"))
if mibBuilder.loadTexts: stpxRSTPPortRoleEntry.setStatus('current')
stpxRSTPPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095)))
if mibBuilder.loadTexts: stpxRSTPPortRoleInstanceIndex.setStatus('current')
stpxRSTPPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRSTPPortRolePortIndex.setStatus('current')
stpxRSTPPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRSTPPortRoleValue.setStatus('current')
stpxRSTPTransmitHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 3), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPTransmitHoldCount.setStatus('current')
stpxRPVSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1), )
if mibBuilder.loadTexts: stpxRPVSTPortTable.setStatus('current')
stpxRPVSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortIndex"))
if mibBuilder.loadTexts: stpxRPVSTPortEntry.setStatus('current')
stpxRPVSTPortVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxRPVSTPortVlanIndex.setStatus('current')
stpxRPVSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRPVSTPortIndex.setStatus('current')
stpxRPVSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 3), Bits().clone(namedValues=NamedValues(("edge", 0), ("unused1", 1), ("unused2", 2), ("stp", 3), ("dispute", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRPVSTPortStatus.setStatus('current')
stpxSMSTMaxInstances = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTMaxInstances.setStatus('current')
stpxSMSTMaxInstanceID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTMaxInstanceID.setStatus('current')
stpxSMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTRegionRevision.setStatus('current')
stpxSMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTRegionEditRevision.setStatus('current')
stpxSMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5), )
if mibBuilder.loadTexts: stpxSMSTInstanceTable.setStatus('current')
stpxSMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceIndex"))
if mibBuilder.loadTexts: stpxSMSTInstanceEntry.setStatus('current')
stpxSMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 1), Unsigned32())
if mibBuilder.loadTexts: stpxSMSTInstanceIndex.setStatus('current')
stpxSMSTInstanceVlansMapped1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped1k2k.setStatus('current')
stpxSMSTInstanceVlansMapped3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped3k4k.setStatus('current')
stpxSMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceRemainingHopCount.setStatus('current')
stpxSMSTInstanceCISTRegionalRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceCISTRegionalRoot.setStatus('current')
stpxSMSTInstanceCISTIntRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceCISTIntRootCost.setStatus('current')
stpxSMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6), )
if mibBuilder.loadTexts: stpxSMSTInstanceEditTable.setStatus('current')
stpxSMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditIndex"))
if mibBuilder.loadTexts: stpxSMSTInstanceEditEntry.setStatus('current')
stpxSMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 1), Unsigned32())
if mibBuilder.loadTexts: stpxSMSTInstanceEditIndex.setStatus('current')
stpxSMSTInstanceEditVlansMap1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap1k2k.setStatus('current')
stpxSMSTInstanceEditVlansMap3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap3k4k.setStatus('current')
stpxSMSTInstanceEditRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditRowStatus.setStatus('current')
stpxSMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7), )
if mibBuilder.loadTexts: stpxSMSTPortTable.setStatus('current')
stpxSMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortIndex"))
if mibBuilder.loadTexts: stpxSMSTPortEntry.setStatus('current')
stpxSMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxSMSTPortIndex.setStatus('current')
stpxSMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 2), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3), ("dispute", 4), ("rstp", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortStatus.setStatus('current')
stpxSMSTPortAdminHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 3), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTPortAdminHelloTime.setStatus('current')
stpxSMSTPortConfigedHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 4), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortConfigedHelloTime.setStatus('current')
stpxSMSTPortOperHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('hundredth of seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortOperHelloTime.setStatus('current')
stpxSMSTPortAdminMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("preStandard", 1), ("auto", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTPortAdminMSTMode.setStatus('current')
stpxSMSTPortOperMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("preStandard", 2), ("standard", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortOperMSTMode.setStatus('current')
stpxSMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 8), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTMaxHopCount.setStatus('current')
stpxSMSTConfigDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 9), StpxMSTConfigurationDigest()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTConfigDigest.setStatus('current')
stpxSMSTConfigPreStandardDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 10), StpxMSTConfigurationDigest()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTConfigPreStandardDigest.setStatus('current')
stpxNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0))
stpxInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState"))
if mibBuilder.loadTexts: stpxInconsistencyUpdate.setStatus('current')
stpxRootInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if mibBuilder.loadTexts: stpxRootInconsistencyUpdate.setStatus('current')
stpxLoopInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if mibBuilder.loadTexts: stpxLoopInconsistencyUpdate.setStatus('current')
stpxMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3))
stpxMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1))
stpxMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2))
stpxMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance = stpxMIBCompliance.setStatus('deprecated')
stpxMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance2 = stpxMIBCompliance2.setStatus('deprecated')
stpxMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance3 = stpxMIBCompliance3.setStatus('deprecated')
stpxMIBCompliance4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance4 = stpxMIBCompliance4.setStatus('deprecated')
stpxMIBCompliance5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance5 = stpxMIBCompliance5.setStatus('deprecated')
stpxMIBCompliance6 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance6 = stpxMIBCompliance6.setStatus('deprecated')
stpxMIBCompliance7 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance7 = stpxMIBCompliance7.setStatus('deprecated')
stpxMIBCompliance8 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance8 = stpxMIBCompliance8.setStatus('deprecated')
stpxMIBCompliance9 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance9 = stpxMIBCompliance9.setStatus('deprecated')
stpxMIBCompliance10 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance10 = stpxMIBCompliance10.setStatus('deprecated')
stpxMIBCompliance11 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance11 = stpxMIBCompliance11.setStatus('deprecated')
stpxMIBCompliance12 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup4"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortMSTModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigestGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance12 = stpxMIBCompliance12.setStatus('current')
stpxUplinkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastTransitions"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningGenRate"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningFrames"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxUplinkGroup = stpxUplinkGroup.setStatus('current')
stpxPreferredVlansGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPreferredVlansGroup = stpxPreferredVlansGroup.setStatus('current')
stpxSstpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSstpGroup = stpxSstpGroup.setStatus('current')
stpxNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxNotificationsGroup = stpxNotificationsGroup.setStatus('current')
stpxBackboneGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInInferiorBPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQResponsePDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQResponsePDUs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBackboneGroup = stpxBackboneGroup.setStatus('current')
stpxRootGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRootGuardGroup = stpxRootGuardGroup.setStatus('current')
stpxRootInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRootInconsistencyNotificationsGroup = stpxRootInconsistencyNotificationsGroup.setStatus('current')
stpx4kVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap4k"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx4kVlanGroup = stpx4kVlanGroup.setStatus('current')
stpxSpanningTreeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSpanningTreeGroup = stpxSpanningTreeGroup.setStatus('current')
stpxMISTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMISTPGroup = stpxMISTPGroup.setStatus('current')
stpxLongPathCostModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCost"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLongPathCostModeGroup = stpxLongPathCostModeGroup.setStatus('current')
stpxPVSTVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPVSTVlanGroup = stpxPVSTVlanGroup.setStatus('current')
stpxMISTPGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 13)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped4k"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMISTPGroup2 = stpxMISTPGroup2.setStatus('current')
stpxLoopGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 14)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopGuardGroup = stpxLoopGuardGroup.setStatus('deprecated')
stpxLoopInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 15)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopInconsistencyNotificationsGroup = stpxLoopInconsistencyNotificationsGroup.setStatus('current')
stpxFastStartGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 16)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup = stpxFastStartGroup.setStatus('deprecated')
stpxBpduSkewingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 17)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingDetectionEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingLastSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBpduSkewingGroup = stpxBpduSkewingGroup.setStatus('current')
stpxFastStartGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 18)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGlobalDefaultMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup2 = stpxFastStartGroup2.setStatus('current')
stpxLoopGuardGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 19)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGlobalDefaultMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopGuardGroup2 = stpxLoopGuardGroup2.setStatus('current')
stpxMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 20)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleValue"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup = stpxMSTGroup.setStatus('deprecated')
stpxPreferredMSTInstancesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 21)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPreferredMSTInstancesGroup = stpxPreferredMSTInstancesGroup.setStatus('deprecated')
stpxFastStartGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 22)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduGuardMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduFilterMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup3 = stpxFastStartGroup3.setStatus('current')
stpxUplinkGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 23)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxUplinkGroup2 = stpxUplinkGroup2.setStatus('current')
stpxBackboneGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 24)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBackboneGroup2 = stpxBackboneGroup2.setStatus('current')
stpxMSTGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 25)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup2 = stpxMSTGroup2.setStatus('deprecated')
stpxRSTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 26)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleValue"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRSTPGroup = stpxRSTPGroup.setStatus('current')
stpxRPVSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 27)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRPVSTGroup = stpxRPVSTGroup.setStatus('current')
stpxExtendedSysIDGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 28)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDAdminEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxExtendedSysIDGroup = stpxExtendedSysIDGroup.setStatus('current')
stpxNotificationEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 29)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxNotificationEnableGroup = stpxNotificationEnableGroup.setStatus('current')
stpxFastStartOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 30)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartOperModeGroup = stpxFastStartOperModeGroup.setStatus('current')
stpxMSTGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 31)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup3 = stpxMSTGroup3.setStatus('deprecated')
stpxSMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 32)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstances"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstanceID"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionEditRevision"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTGroup = stpxSMSTGroup.setStatus('current')
stpxSMSTInstanceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 33)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceRemainingHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceGroup = stpxSMSTInstanceGroup.setStatus('current')
stpxSMSTInstanceEditGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 34)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceEditGroup = stpxSMSTInstanceEditGroup.setStatus('current')
stpxSMSTPortStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 35)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortStatusGroup = stpxSMSTPortStatusGroup.setStatus('current')
stpxSMSTPortHelloTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 36)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortConfigedHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperHelloTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortHelloTimeGroup = stpxSMSTPortHelloTimeGroup.setStatus('current')
stpxSMSTInstanceCISTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 37)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTRegionalRoot"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTIntRootCost"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceCISTGroup = stpxSMSTInstanceCISTGroup.setStatus('current')
stpxPathCostOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 38)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostOperMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPathCostOperModeGroup = stpxPathCostOperModeGroup.setStatus('current')
stpxRSTPTransmitHoldCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 39)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRSTPTransmitHoldCountGroup = stpxRSTPTransmitHoldCountGroup.setStatus('current')
stpxSMSTPortMSTModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 40)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminMSTMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperMSTMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortMSTModeGroup = stpxSMSTPortMSTModeGroup.setStatus('current')
stpxSMSTMaxHopCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 41)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTMaxHopCountGroup = stpxSMSTMaxHopCountGroup.setStatus('current')
stpxSMSTConfigDigestGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 42)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigest"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigPreStandardDigest"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTConfigDigestGroup = stpxSMSTConfigDigestGroup.setStatus('current')
stpxMSTGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 43)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup4 = stpxMSTGroup4.setStatus('current')
mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxMIBCompliance2=stpxMIBCompliance2, stpxBackboneFastInRLQRequestPDUs=stpxBackboneFastInRLQRequestPDUs, stpxFastStartOperModeInstIndex=stpxFastStartOperModeInstIndex, stpxPathCostOperModeGroup=stpxPathCostOperModeGroup, stpxRootGuardConfigEntry=stpxRootGuardConfigEntry, stpxSMSTInstanceEditVlansMap3k4k=stpxSMSTInstanceEditVlansMap3k4k, stpxSMSTConfigDigest=stpxSMSTConfigDigest, stpxFastStartGroup3=stpxFastStartGroup3, stpxVlanMISTPInstMapTable=stpxVlanMISTPInstMapTable, stpxFastStartPortMode=stpxFastStartPortMode, stpxRSTPPortIndex=stpxRSTPPortIndex, stpxSpanningTreeGroup=stpxSpanningTreeGroup, stpxSMSTInstanceEditTable=stpxSMSTInstanceEditTable, PYSNMP_MODULE_ID=ciscoStpExtensionsMIB, stpxPreferredVlansMap4k=stpxPreferredVlansMap4k, stpxUplinkFastTransitions=stpxUplinkFastTransitions, stpxRSTPPortRolePortIndex=stpxRSTPPortRolePortIndex, stpxSMSTInstanceCISTGroup=stpxSMSTInstanceCISTGroup, stpxRSTPPortEntry=stpxRSTPPortEntry, stpxFastStartGroup=stpxFastStartGroup, stpxFastStartOperMode=stpxFastStartOperMode, stpxMIBCompliance8=stpxMIBCompliance8, stpxBackboneFastInInferiorBPDUs=stpxBackboneFastInInferiorBPDUs, stpxBpduSkewingWorstSkewTime=stpxBpduSkewingWorstSkewTime, stpxSstpGroup=stpxSstpGroup, stpxPreferredMSTInstancesMap=stpxPreferredMSTInstancesMap, stpxSMSTPortAdminMSTMode=stpxSMSTPortAdminMSTMode, stpxRootInconsistencyUpdate=stpxRootInconsistencyUpdate, stpxPreferredVlansEntry=stpxPreferredVlansEntry, stpxBpduSkewingWorstSkewDuration=stpxBpduSkewingWorstSkewDuration, stpxRSTPPortProtocolMigration=stpxRSTPPortProtocolMigration, stpxPreferredVlansMap3k=stpxPreferredVlansMap3k, stpxMSTGroup4=stpxMSTGroup4, stpxMSTPortRoleTable=stpxMSTPortRoleTable, stpxLoopGuardConfigEnabled=stpxLoopGuardConfigEnabled, stpxFastStartPortIndex=stpxFastStartPortIndex, stpxVlanMISTPInstMapEditEntry=stpxVlanMISTPInstMapEditEntry, stpxRootInconsistencyPortIndex=stpxRootInconsistencyPortIndex, stpxMSTInstanceVlansMapped3k=stpxMSTInstanceVlansMapped3k, stpxFastStartGroup2=stpxFastStartGroup2, stpxUplinkFastEnabled=stpxUplinkFastEnabled, stpxRootInconsistencyIndex=stpxRootInconsistencyIndex, stpxMSTPortAdminLinkType=stpxMSTPortAdminLinkType, stpxMSTPortRoleInstanceIndex=stpxMSTPortRoleInstanceIndex, stpxSMSTMaxHopCountGroup=stpxSMSTMaxHopCountGroup, stpxRootGuardObjects=stpxRootGuardObjects, stpxLoopGuardGlobalDefaultMode=stpxLoopGuardGlobalDefaultMode, stpxMSTInstanceEditVlansMap2k=stpxMSTInstanceEditVlansMap2k, stpxObjects=stpxObjects, stpxSMSTPortConfigedHelloTime=stpxSMSTPortConfigedHelloTime, stpxMSTInstanceTable=stpxMSTInstanceTable, stpxMSTRegionEditBufferOperation=stpxMSTRegionEditBufferOperation, stpxMSTPortProtocolMigration=stpxMSTPortProtocolMigration, stpxMSTRegionEditRevision=stpxMSTRegionEditRevision, stpxSMSTObjects=stpxSMSTObjects, stpxMISTPInstanceVlansMapped3k=stpxMISTPInstanceVlansMapped3k, stpxRootGuardGroup=stpxRootGuardGroup, stpxMIBCompliances=stpxMIBCompliances, stpxUplinkStationLearningGenRate=stpxUplinkStationLearningGenRate, stpxSMSTInstanceRemainingHopCount=stpxSMSTInstanceRemainingHopCount, stpxBackboneFastEnabled=stpxBackboneFastEnabled, stpxMSTInstanceEditEntry=stpxMSTInstanceEditEntry, stpxSMSTPortOperHelloTime=stpxSMSTPortOperHelloTime, stpxMSTGroup2=stpxMSTGroup2, stpxVlanMISTPInstMapInstIndex=stpxVlanMISTPInstMapInstIndex, stpxSMSTPortIndex=stpxSMSTPortIndex, stpxFastStartObjects=stpxFastStartObjects, stpxRPVSTPortEntry=stpxRPVSTPortEntry, stpxInconsistencyObjects=stpxInconsistencyObjects, stpxUplinkStationLearningFrames=stpxUplinkStationLearningFrames, stpxNotificationEnableGroup=stpxNotificationEnableGroup, stpxBackboneFastOperEnabled=stpxBackboneFastOperEnabled, stpxLongStpPortPathCostEntry=stpxLongStpPortPathCostEntry, stpxMISTPInstanceEntry=stpxMISTPInstanceEntry, stpxMSTPortRoleValue=stpxMSTPortRoleValue, stpxMISTPGroup=stpxMISTPGroup, stpxRootGuardConfigTable=stpxRootGuardConfigTable, stpxMISTPInstanceVlansMapped=stpxMISTPInstanceVlansMapped, stpxMSTInstanceEntry=stpxMSTInstanceEntry, stpxMSTInstanceVlansMapped=stpxMSTInstanceVlansMapped, stpxSMSTInstanceVlansMapped1k2k=stpxSMSTInstanceVlansMapped1k2k, stpxPortIndex=stpxPortIndex, stpxRootGuardConfigPortIndex=stpxRootGuardConfigPortIndex, stpxLoopGuardConfigMode=stpxLoopGuardConfigMode, stpxSMSTInstanceCISTRegionalRoot=stpxSMSTInstanceCISTRegionalRoot, stpxSMSTPortEntry=stpxSMSTPortEntry, stpxSMSTPortStatus=stpxSMSTPortStatus, stpxSMSTMaxHopCount=stpxSMSTMaxHopCount, stpxLoopInconsistencyNotificationsGroup=stpxLoopInconsistencyNotificationsGroup, stpxLoopInconsistencyPortIndex=stpxLoopInconsistencyPortIndex, stpxSMSTPortOperMSTMode=stpxSMSTPortOperMSTMode, stpxLoopGuardConfigTable=stpxLoopGuardConfigTable, stpxLoopGuardGroup2=stpxLoopGuardGroup2, stpxSMSTConfigPreStandardDigest=stpxSMSTConfigPreStandardDigest, stpxFastStartPortTable=stpxFastStartPortTable, stpxRSTPTransmitHoldCount=stpxRSTPTransmitHoldCount, stpxMIBCompliance5=stpxMIBCompliance5, stpxMSTInstanceVlansMapped2k=stpxMSTInstanceVlansMapped2k, stpxUplinkFastOperEnabled=stpxUplinkFastOperEnabled, stpxSMSTInstanceEditIndex=stpxSMSTInstanceEditIndex, stpxBackboneFastOutRLQRequestPDUs=stpxBackboneFastOutRLQRequestPDUs, stpxBackboneFastOutRLQResponsePDUs=stpxBackboneFastOutRLQResponsePDUs, stpxMSTRegionEditName=stpxMSTRegionEditName, stpxMISTPInstanceVlansMapped2k=stpxMISTPInstanceVlansMapped2k, stpxMSTInstanceEditVlansMap3k=stpxMSTInstanceEditVlansMap3k, stpxSMSTInstanceCISTIntRootCost=stpxSMSTInstanceCISTIntRootCost, stpxFastStartBpduFilterEnable=stpxFastStartBpduFilterEnable, stpxFastStartPortEntry=stpxFastStartPortEntry, stpxLoopInconsistencyUpdate=stpxLoopInconsistencyUpdate, stpxRootInconsistencyNotificationsGroup=stpxRootInconsistencyNotificationsGroup, stpxMSTGroup=stpxMSTGroup, stpxMISTPInstanceIndex=stpxMISTPInstanceIndex, stpxMSTPortOperLinkType=stpxMSTPortOperLinkType, stpxPreferredVlansGroup=stpxPreferredVlansGroup, stpxSMSTInstanceEditVlansMap1k2k=stpxSMSTInstanceEditVlansMap1k2k, stpxVlanMISTPInstMapEditInstIndex=stpxVlanMISTPInstMapEditInstIndex, stpxFastStartPortEnable=stpxFastStartPortEnable, stpxPreferredVlansMap=stpxPreferredVlansMap, stpxLoopInconsistencyIndex=stpxLoopInconsistencyIndex, stpxRSTPPortRoleEntry=stpxRSTPPortRoleEntry, stpxNotificationsGroup=stpxNotificationsGroup, stpxExtendedSysIDOperEnabled=stpxExtendedSysIDOperEnabled, stpxMIBCompliance4=stpxMIBCompliance4, stpxMSTRegionEditBufferStatus=stpxMSTRegionEditBufferStatus, stpxMSTPortIndex=stpxMSTPortIndex, stpxMSTPortRoleEntry=stpxMSTPortRoleEntry, stpxPVSTVlanTable=stpxPVSTVlanTable, stpxSMSTPortStatusGroup=stpxSMSTPortStatusGroup, stpxBpduSkewingTable=stpxBpduSkewingTable, stpxRPVSTPortTable=stpxRPVSTPortTable, stpxPreferredVlansMap2k=stpxPreferredVlansMap2k, stpxMSTInstanceRemainingHopCount=stpxMSTInstanceRemainingHopCount, stpxBpduSkewingInstanceIndex=stpxBpduSkewingInstanceIndex, stpxVlanMISTPInstMapEditTable=stpxVlanMISTPInstMapEditTable, stpxMSTPortStatus=stpxMSTPortStatus, stpxPVSTVlanEntry=stpxPVSTVlanEntry, stpxFastStartOperModePortIndex=stpxFastStartOperModePortIndex, stpxMSTInstanceEditTable=stpxMSTInstanceEditTable, stpxFastStartBpduGuardEnable=stpxFastStartBpduGuardEnable, stpxSMSTPortTable=stpxSMSTPortTable, stpxSMSTPortHelloTimeGroup=stpxSMSTPortHelloTimeGroup, stpxPVSTVlanGroup=stpxPVSTVlanGroup, stpx4kVlanGroup=stpx4kVlanGroup, stpxSpanningTreeType=stpxSpanningTreeType, stpxMSTPortTable=stpxMSTPortTable, stpxMSTMaxInstanceNumber=stpxMSTMaxInstanceNumber, stpxPreferredMSTInstancesEntry=stpxPreferredMSTInstancesEntry, stpxMISTPObjects=stpxMISTPObjects, stpxMISTPInstanceVlansMapped4k=stpxMISTPInstanceVlansMapped4k, stpxNotifications=stpxNotifications, stpxMISTPInstanceNumber=stpxMISTPInstanceNumber, stpxMSTInstanceIndex=stpxMSTInstanceIndex, stpxSMSTInstanceGroup=stpxSMSTInstanceGroup, stpxSMSTInstanceEditEntry=stpxSMSTInstanceEditEntry, ciscoStpExtensionsMIB=ciscoStpExtensionsMIB, stpxLoopGuardObjects=stpxLoopGuardObjects, stpxRPVSTPortStatus=stpxRPVSTPortStatus, stpxMIBCompliance3=stpxMIBCompliance3, stpxLongPathCostModeGroup=stpxLongPathCostModeGroup, stpxMISTPGroup2=stpxMISTPGroup2, stpxLoopInconsistencyTable=stpxLoopInconsistencyTable, stpxSMSTInstanceEditGroup=stpxSMSTInstanceEditGroup, stpxMSTInstanceVlansMapped4k=stpxMSTInstanceVlansMapped4k, stpxSMSTInstanceTable=stpxSMSTInstanceTable, stpxRootInconsistencyTable=stpxRootInconsistencyTable, stpxPVSTVlanIndex=stpxPVSTVlanIndex, stpxMISTPInstanceTable=stpxMISTPInstanceTable, stpxMSTInstanceEditVlansMap4k=stpxMSTInstanceEditVlansMap4k, stpxRSTPPortTable=stpxRSTPPortTable, stpxBpduSkewingPortIndex=stpxBpduSkewingPortIndex, stpxRSTPGroup=stpxRSTPGroup, stpxMIBCompliance11=stpxMIBCompliance11, stpxRSTPPortRoleInstanceIndex=stpxRSTPPortRoleInstanceIndex, stpxSpanningTreeObjects=stpxSpanningTreeObjects, stpxSMSTMaxInstances=stpxSMSTMaxInstances, stpxSMSTConfigDigestGroup=stpxSMSTConfigDigestGroup, stpxSMSTRegionEditRevision=stpxSMSTRegionEditRevision, stpxRSTPPortOperLinkType=stpxRSTPPortOperLinkType, stpxRPVSTObjects=stpxRPVSTObjects, stpxPreferredMSTInstancesTable=stpxPreferredMSTInstancesTable, stpxUplinkFastObjects=stpxUplinkFastObjects, stpxRPVSTGroup=stpxRPVSTGroup, stpxSMSTInstanceVlansMapped3k4k=stpxSMSTInstanceVlansMapped3k4k, stpxMIBConformance=stpxMIBConformance, stpxMIBCompliance=stpxMIBCompliance, stpxFastStartOperModeEntry=stpxFastStartOperModeEntry, stpxRSTPPortRoleTable=stpxRSTPPortRoleTable, stpxRSTPPortAdminLinkType=stpxRSTPPortAdminLinkType, stpxMIBCompliance9=stpxMIBCompliance9, stpxLoopGuardConfigPortIndex=stpxLoopGuardConfigPortIndex, stpxSMSTInstanceEditRowStatus=stpxSMSTInstanceEditRowStatus, stpxFastStartOperModeGroup=stpxFastStartOperModeGroup, stpxLoopGuardGroup=stpxLoopGuardGroup, stpxExtendedSysIDAdminEnabled=stpxExtendedSysIDAdminEnabled, stpxLoopGuardConfigEntry=stpxLoopGuardConfigEntry, stpxUplinkGroup2=stpxUplinkGroup2, stpxNotificationsPrefix=stpxNotificationsPrefix, stpxLongStpPortPathCost=stpxLongStpPortPathCost, stpxRootInconsistencyState=stpxRootInconsistencyState, stpxRootGuardConfigEnabled=stpxRootGuardConfigEnabled, stpxMIBCompliance6=stpxMIBCompliance6, stpxMIBCompliance10=stpxMIBCompliance10, stpxMIBCompliance12=stpxMIBCompliance12, stpxSMSTPortMSTModeGroup=stpxSMSTPortMSTModeGroup, stpxRSTPObjects=stpxRSTPObjects, stpxMSTPortRolePortIndex=stpxMSTPortRolePortIndex, stpxSpanningTreePathCostMode=stpxSpanningTreePathCostMode, stpxVlanIndex=stpxVlanIndex, stpxBpduSkewingObjects=stpxBpduSkewingObjects, stpxNotificationEnable=stpxNotificationEnable, stpxFastStartPortBpduFilterMode=stpxFastStartPortBpduFilterMode, stpxBpduSkewingDetectionEnable=stpxBpduSkewingDetectionEnable, stpxBackboneFastInRLQResponsePDUs=stpxBackboneFastInRLQResponsePDUs, stpxBackboneGroup2=stpxBackboneGroup2, stpxMSTPortEntry=stpxMSTPortEntry, stpxBackboneGroup=stpxBackboneGroup, stpxMSTInstanceEditVlansMap=stpxMSTInstanceEditVlansMap, stpxMSTInstanceEditIndex=stpxMSTInstanceEditIndex, stpxInconsistencyEntry=stpxInconsistencyEntry, stpxInconsistencyUpdate=stpxInconsistencyUpdate, stpxRPVSTPortIndex=stpxRPVSTPortIndex, stpxBackboneFastObjects=stpxBackboneFastObjects, stpxPreferredMISTPInstancesTable=stpxPreferredMISTPInstancesTable, stpxMSTRegionRevision=stpxMSTRegionRevision, stpxFastStartPortBpduGuardMode=stpxFastStartPortBpduGuardMode, stpxPreferredMISTPInstancesEntry=stpxPreferredMISTPInstancesEntry, stpxSMSTInstanceIndex=stpxSMSTInstanceIndex, stpxInconsistentState=stpxInconsistentState, stpxLongStpPortPathCostTable=stpxLongStpPortPathCostTable, stpxFastStartGlobalDefaultMode=stpxFastStartGlobalDefaultMode, stpxBpduSkewingEntry=stpxBpduSkewingEntry, stpxSMSTPortAdminHelloTime=stpxSMSTPortAdminHelloTime, stpxSMSTGroup=stpxSMSTGroup, stpxVlanObjects=stpxVlanObjects, stpxMISTPInstanceEnable=stpxMISTPInstanceEnable, stpxMIBCompliance7=stpxMIBCompliance7, stpxLoopInconsistencyEntry=stpxLoopInconsistencyEntry, stpxRPVSTPortVlanIndex=stpxRPVSTPortVlanIndex, stpxMSTGroup3=stpxMSTGroup3, StpxMSTConfigurationDigest=StpxMSTConfigurationDigest, stpxBpduSkewingLastSkewDuration=stpxBpduSkewingLastSkewDuration, stpxMSTRegionName=stpxMSTRegionName, stpxPreferredMISTPInstancesMap=stpxPreferredMISTPInstancesMap, stpxMSTObjects=stpxMSTObjects, stpxPreferredMSTInstancesGroup=stpxPreferredMSTInstancesGroup, stpxInconsistencyTable=stpxInconsistencyTable, stpxMSTMaxHopCount=stpxMSTMaxHopCount, stpxExtendedSysIDGroup=stpxExtendedSysIDGroup, stpxRootInconsistencyEntry=stpxRootInconsistencyEntry, stpxRSTPPortRoleValue=stpxRSTPPortRoleValue, stpxRSTPTransmitHoldCountGroup=stpxRSTPTransmitHoldCountGroup, stpxLoopInconsistencyState=stpxLoopInconsistencyState, stpxFastStartOperModeTable=stpxFastStartOperModeTable, stpxPVSTVlanEnable=stpxPVSTVlanEnable)
mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxSMSTRegionRevision=stpxSMSTRegionRevision, stpxBpduSkewingGroup=stpxBpduSkewingGroup, stpxPreferredVlansTable=stpxPreferredVlansTable, stpxMIBGroups=stpxMIBGroups, stpxSpanningTreePathCostOperMode=stpxSpanningTreePathCostOperMode, stpxVlanMISTPInstMapEntry=stpxVlanMISTPInstMapEntry, stpxUplinkGroup=stpxUplinkGroup, stpxSMSTMaxInstanceID=stpxSMSTMaxInstanceID, stpxSMSTInstanceEntry=stpxSMSTInstanceEntry)
|
class ParseException(Exception):
pass
class RollbackException(Exception):
pass
|
lista=[]
datos=int(input("Ingrese numero de datos: "))
for i in range(0,datos):
alt=float(input("Ingrese las alturas: "))
lista.append(alt)
print("La altura maxima es: ", max(lista))
|
#
# Building script for ipcamera application
#
{
'includes': ['build/common.gypi'],
'targets' : [
{
'target_name': 'camerartc',
'type': 'executable',
'include_dirs': [
'../third_party/webrtc/modules/interface',
],
'dependencies': [
'libjingle.gyp:libjingle_peerconnection',
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
],
'sources': [
'camerartc/main.cpp',
'camerartc/peer.h',
'camerartc/peer.cpp',
'camerartc/camerartc.h',
'camerartc/camerartc.cpp',
'camerartc/rtcstream.h',
'camerartc/rtcstream.cpp',
'camerartc/attendee.h',
'camerartc/attendee.cpp',
'camerartc/mediabuffer.h',
'camerartc/mediabuffer.cpp',
'camerartc/raptor/numberdb.h',
'camerartc/raptor/numberdb.cpp',
'camerartc/raptor/rprandom.h',
'camerartc/raptor/rprandom.cpp',
'camerartc/raptor/raptor.h',
'camerartc/raptor/aaptor.cpp',
'camerartc/g72x/g726_32.c',
'camerartc/g72x/g711.c',
'camerartc/g72x/g72x.c',
],
},
],
}
|
# -*- coding: utf-8 -*-
def test_del_first_group(app):
app.session.login(username = "admin", password = "secret")
app.group.delete_first_group()
app.session.logout()
|
class DataNotFound(RuntimeError):
pass
class DataError(RuntimeError):
pass
class InvalidAge(RuntimeError):
pass
class InvalidMeasurement(RuntimeError):
pass
|
# check modulo matches python definition
# this tests compiler constant folding
print(123 % 7)
print(-123 % 7)
print(123 % -7)
print(-123 % -7)
a = 321
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
a = 987654321987987987987987987987
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
|
# Топ-3 + Выигрышные номера последнего тиража
def test_top_3_winning_numbers_last_draw(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_top_3()
app.ResultAndPrizes.button_get_report_winners()
assert "ВЫИГРЫШНЫЕ НОМЕРА" in app.ResultAndPrizes.parser_report_text_winners()
app.ResultAndPrizes.message_id_33_top_3_last_draw()
app.ResultAndPrizes.message_id_33_top_3_winning_numbers_last_draw()
app.ResultAndPrizes.comeback_main_page()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.