content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# Author: Kay Hartmann <kg.hartma@gmail.com> def weight_filler(m): classname = m.__class__.__name__ if classname.find('MultiConv') != -1: for conv in m.convs: conv.weight.data.normal_(0.0, 1.) if conv.bias is not None: conv.bias.data.fill_(0.) elif classname.find('Conv') != -1 or classname.find('Linear') != -1: m.weight.data.normal_(0.0, 1.) # From progressive GAN paper if m.bias is not None: m.bias.data.fill_(0.) elif classname.find('BatchNorm') != -1 or classname.find('LayerNorm') != -1: if m.weight is not None: m.weight.data.normal_(1.0, 0.02) if m.bias is not None: m.bias.data.fill_(0.) def fill_weights_normal(w): if w is not None: w.data.normal_(0.0, 1.)
def weight_filler(m): classname = m.__class__.__name__ if classname.find('MultiConv') != -1: for conv in m.convs: conv.weight.data.normal_(0.0, 1.0) if conv.bias is not None: conv.bias.data.fill_(0.0) elif classname.find('Conv') != -1 or classname.find('Linear') != -1: m.weight.data.normal_(0.0, 1.0) if m.bias is not None: m.bias.data.fill_(0.0) elif classname.find('BatchNorm') != -1 or classname.find('LayerNorm') != -1: if m.weight is not None: m.weight.data.normal_(1.0, 0.02) if m.bias is not None: m.bias.data.fill_(0.0) def fill_weights_normal(w): if w is not None: w.data.normal_(0.0, 1.0)
class Figura(): def __init__(self, figura): self.__figura = figura def area(self): return self.__figura.area() def perimetro(self): return self.__figura.perimetro()
class Figura: def __init__(self, figura): self.__figura = figura def area(self): return self.__figura.area() def perimetro(self): return self.__figura.perimetro()
### ### NOTICE: this file did not exit in the original Dimorphite_DL release. ### The is newly created based on "sites_substructures.smarts" file ### - made a readable Python module from it. Andrey Frolov, 2020-09-15 ### - added last column with acid-base classification. Andrey Frolov, 2020-09-11 ### - added TATA substructure. Andrey Frolov, 2020-09-15 ### Should be consistent with the current "sites_substructures.smarts" file ### data_txt=''' TATA CC(=O)N1CN(CN(C1)C(C)=O)C(C)=O NaN NaN NaN base *Azide [N+0:1]=[N+:2]=[N+0:3]-[H] 2 4.65 0.07071067811865513 acid Nitro [C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H] 3 -1000.0 0 acid AmidineGuanidine1 [N:1]-[C:2](-[N:3])=[NX2:4]-[H:5] 3 12.025333333333334 1.5941046150769165 base AmidineGuanidine2 [C:1](-[N:2])=[NX2+0:3] 2 10.035538461538462 2.1312826469414716 base Sulfate [SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H] 5 -2.36 1.3048043093561141 acid Sulfonate [SX4:1](=[O:2])(=[O:3])(-[C,c,N,n:4])-[OX2:5]-[H] 4 -1.8184615384615386 1.4086213481855594 acid Sulfinic_acid [SX3:1](=[O:2])-[O:3]-[H] 2 1.7933333333333332 0.4372070447739835 acid Phenyl_carboxyl [c,n,o:1]-[C:2](=[O:3])-[O:4]-[H] 3 3.463441968255319 1.2518054407928614 acid Carboxyl [C:1](=[O:2])-[O:3]-[H] 2 3.456652971502591 1.2871420886834017 acid Thioic_acid [C,c,N,n:1](=[O,S:2])-[SX2,OX2:3]-[H] 2 0.678267 1.497048763660801 acid Phenyl_Thiol [c,n:1]-[SX2:2]-[H] 1 4.978235294117647 2.6137000480499806 acid Thiol [C,N:1]-[SX2:2]-[H] 1 9.12448275862069 1.3317968158171463 acid # [*]OP(=O)(O[H])O[H]. Note that this matches terminal phosphate of ATP, ADP, AMP. Phosphate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[O+0:4])-[OX2:5]-[H] 2 2.4182608695652172 1.1091177991945305 5 6.5055 0.9512787792174668 diacid # Note that Internal_phosphate_polyphos_chain and # Initial_phosphate_like_in_ATP_ADP were added on 6/2/2020 to better detail with # molecules that have polyphosphate chains (e.g., ATP, ADP, NADH, etc.). Unlike # the other protonation states, these two were not determined by analyzing a set # of many compounds with experimentally determined pKa values. # For Internal_phosphate_polyphos_chain, we use a mean pKa value of 0.9, per # DOI: 10.7554/eLife.38821. For the precision value we use 1.0, which is roughly # the precision of the two ionizable hydroxyls from Phosphate (see above). Note # that when using recursive SMARTS strings, RDKit considers only the first atom # to be a match. Subsequent atoms define the environment. Internal_phosphate_polyphos_chain [$([PX4:1](=O)([OX2][PX4](=O)([OX2])(O[H]))([OX2][PX4](=O)(O[H])([OX2])))][O:2]-[H] 1 0.9 1.0 acid # For Initial_phosphate_like_in_ATP_ADP, we use the same values found for the # lower-pKa hydroxyl of Phosphate (above). Initial_phosphate_like_in_ATP_ADP [$([PX4:1]([OX2][C,c,N,n])(=O)([OX2][PX4](=O)([OX2])(O[H])))]O-[H] 1 2.4182608695652172 1.1091177991945305 acid # [*]P(=O)(O[H])O[H]. Cannot match terminal phosphate of ATP because O not among [C,c,N,n] Phosphonate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[C,c,N,n:4])-[OX2:5]-[H] 2 1.8835714285714287 0.5925999820080644 5 7.247254901960784 0.8511476450801531 diacid Phenol [c,n,o:1]-[O:2]-[H] 1 7.065359866910526 3.277356122295936 acid Peroxide1 [O:1]([$(C=O),$(C[Cl]),$(CF),$(C[Br]),$(CC#N):2])-[O:3]-[H] 2 8.738888888888889 0.7562592839596507 acid Peroxide2 [C:1]-[O:2]-[O:3]-[H] 2 11.978235294117647 0.8697645895163075 acid O=C-C=C-OH [O:1]=[C;R:2]-[C;R:3]=[C;R:4]-[O:5]-[H] 4 3.554 0.803339458581667 acid Vinyl_alcohol [C:1]=[C:2]-[O:3]-[H] 2 8.871850714285713 1.660200255394124 acid Alcohol [C:1]-[O:2]-[H] 1 14.780384615384616 2.546464970533435 acid N-hydroxyamide [C:1](=[O:2])-[N:3]-[O:4]-[H] 3 9.301904761904762 1.2181897185891002 acid *Ringed_imide1 [O,S:1]=[C;R:2]([$([#8]),$([#7]),$([#16]),$([#6][Cl]),$([#6]F),$([#6][Br]):3])-[N;R:4]([C;R:5]=[O,S:6])-[H] 3 6.4525 0.5555627777308341 acid *Ringed_imide2 [O,S:1]=[C;R:2]-[N;R:3]([C;R:4]=[O,S:5])-[H] 2 8.681666666666667 1.8657779975741713 acid *Imide [F,Cl,Br,S,s,P,p:1][#6:2][CX3:3](=[O,S:4])-[NX3+0:5]([CX3:6]=[O,S:7])-[H] 4 2.466666666666667 1.4843629385474877 acid *Imide2 [O,S:1]=[CX3:2]-[NX3+0:3]([CX3:4]=[O,S:5])-[H] 2 10.23 1.1198214143335534 acid *Amide_electronegative [C:1](=[O:2])-[N:3](-[Br,Cl,I,F,S,O,N,P:4])-[H] 2 3.4896 2.688124315081677 acid *Amide [C:1](=[O:2])-[N:3]-[H] 2 12.00611111111111 4.512491341218857 acid *Sulfonamide [SX4:1](=[O:2])(=[O:3])-[NX3+0:4]-[H] 3 7.9160326086956525 1.9842121316708763 acid Anilines_primary [c:1]-[NX3+0:2]([H:3])[H:4] 1 3.899298673194805 2.068768503987161 base Anilines_secondary [c:1]-[NX3+0:2]([H:3])[!H:4] 1 4.335408163265306 2.1768842022330843 base Anilines_tertiary [c:1]-[NX3+0:2]([!H:3])[!H:4] 1 4.16690685045614 2.005865735782679 base Aromatic_nitrogen_unprotonated [n+0&H0:1] 0 4.3535441240733945 2.0714072661859584 base Amines_primary_secondary_tertiary [C:1]-[NX3+0:2] 1 8.159107682388349 2.5183597445318147 base # e.g., [*]P(=O)(O[H])[*]. Note that cannot match the internal phosphates of ATP, because # oxygen is not among [C,c,N,n,F,Cl,Br,I] Phosphinic_acid [PX4:1](=[O:2])(-[C,c,N,n,F,Cl,Br,I:3])(-[C,c,N,n,F,Cl,Br,I:4])-[OX2:5]-[H] 4 2.9745 0.6867886750744557 diacid # e.g., [*]OP(=O)(O[H])O[*]. Cannot match ATP because P not among [C,c,N,n,F,Cl,Br,I] Phosphate_diester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[O+0:5]-[C,c,N,n,F,Cl,Br,I:4])-[OX2:6]-[H] 6 2.7280434782608696 2.5437448856908316 acid # e.g., [*]P(=O)(O[H])O[*]. Cannot match ATP because O not among [C,c,N,n,F,Cl,Br,I]. Phosphonate_ester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[C,c,N,n,F,Cl,Br,I:5])-[OX2:6]-[H] 5 2.0868 0.4503028610465036 acid Primary_hydroxyl_amine [C,c:1]-[O:2]-[NH2:3] 2 4.035714285714286 0.8463816543155368 acid *Indole_pyrrole [c;R:1]1[c;R:2][c;R:3][c;R:4][n;R:5]1[H] 4 14.52875 4.06702491591416 acid *Aromatic_nitrogen_protonated [n:1]-[H] 0 7.17 2.94602395490212 acid '''
data_txt = '\nTATA CC(=O)N1CN(CN(C1)C(C)=O)C(C)=O NaN NaN NaN base\n\n*Azide\t[N+0:1]=[N+:2]=[N+0:3]-[H]\t2\t4.65\t0.07071067811865513 acid\nNitro\t[C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H]\t3\t-1000.0\t0 acid\nAmidineGuanidine1\t[N:1]-[C:2](-[N:3])=[NX2:4]-[H:5]\t3\t12.025333333333334\t1.5941046150769165 base\nAmidineGuanidine2\t[C:1](-[N:2])=[NX2+0:3]\t2\t10.035538461538462\t2.1312826469414716 base\nSulfate\t[SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H]\t5\t-2.36\t1.3048043093561141 acid\nSulfonate\t[SX4:1](=[O:2])(=[O:3])(-[C,c,N,n:4])-[OX2:5]-[H]\t4\t-1.8184615384615386\t1.4086213481855594 acid\nSulfinic_acid\t[SX3:1](=[O:2])-[O:3]-[H]\t2\t1.7933333333333332\t0.4372070447739835 acid\nPhenyl_carboxyl\t[c,n,o:1]-[C:2](=[O:3])-[O:4]-[H]\t3\t3.463441968255319\t1.2518054407928614 acid\nCarboxyl\t[C:1](=[O:2])-[O:3]-[H]\t2\t3.456652971502591\t1.2871420886834017 acid\nThioic_acid\t[C,c,N,n:1](=[O,S:2])-[SX2,OX2:3]-[H]\t2\t0.678267\t1.497048763660801 acid\nPhenyl_Thiol\t[c,n:1]-[SX2:2]-[H]\t1\t4.978235294117647\t2.6137000480499806 acid\nThiol\t[C,N:1]-[SX2:2]-[H]\t1\t9.12448275862069\t1.3317968158171463 acid\n\n# [*]OP(=O)(O[H])O[H]. Note that this matches terminal phosphate of ATP, ADP, AMP.\nPhosphate\t[PX4:1](=[O:2])(-[OX2:3]-[H])(-[O+0:4])-[OX2:5]-[H]\t2\t2.4182608695652172\t1.1091177991945305\t5\t6.5055\t0.9512787792174668 diacid\n\n# Note that Internal_phosphate_polyphos_chain and\n# Initial_phosphate_like_in_ATP_ADP were added on 6/2/2020 to better detail with\n# molecules that have polyphosphate chains (e.g., ATP, ADP, NADH, etc.). Unlike\n# the other protonation states, these two were not determined by analyzing a set\n# of many compounds with experimentally determined pKa values.\n\n# For Internal_phosphate_polyphos_chain, we use a mean pKa value of 0.9, per\n# DOI: 10.7554/eLife.38821. For the precision value we use 1.0, which is roughly\n# the precision of the two ionizable hydroxyls from Phosphate (see above). Note\n# that when using recursive SMARTS strings, RDKit considers only the first atom\n# to be a match. Subsequent atoms define the environment.\nInternal_phosphate_polyphos_chain\t[$([PX4:1](=O)([OX2][PX4](=O)([OX2])(O[H]))([OX2][PX4](=O)(O[H])([OX2])))][O:2]-[H]\t1\t0.9\t1.0 acid\n\n# For Initial_phosphate_like_in_ATP_ADP, we use the same values found for the\n# lower-pKa hydroxyl of Phosphate (above).\nInitial_phosphate_like_in_ATP_ADP\t[$([PX4:1]([OX2][C,c,N,n])(=O)([OX2][PX4](=O)([OX2])(O[H])))]O-[H]\t1\t2.4182608695652172\t1.1091177991945305 acid\n\n# [*]P(=O)(O[H])O[H]. Cannot match terminal phosphate of ATP because O not among [C,c,N,n]\nPhosphonate\t[PX4:1](=[O:2])(-[OX2:3]-[H])(-[C,c,N,n:4])-[OX2:5]-[H]\t2\t1.8835714285714287\t0.5925999820080644\t5\t7.247254901960784\t0.8511476450801531 diacid\n\nPhenol\t[c,n,o:1]-[O:2]-[H]\t1\t7.065359866910526\t3.277356122295936 acid\nPeroxide1\t[O:1]([$(C=O),$(C[Cl]),$(CF),$(C[Br]),$(CC#N):2])-[O:3]-[H]\t2\t8.738888888888889\t0.7562592839596507 acid\nPeroxide2\t[C:1]-[O:2]-[O:3]-[H]\t2\t11.978235294117647\t0.8697645895163075 acid\nO=C-C=C-OH\t[O:1]=[C;R:2]-[C;R:3]=[C;R:4]-[O:5]-[H]\t4\t3.554\t0.803339458581667 acid\nVinyl_alcohol\t[C:1]=[C:2]-[O:3]-[H]\t2\t8.871850714285713\t1.660200255394124 acid\nAlcohol\t[C:1]-[O:2]-[H]\t1\t14.780384615384616\t2.546464970533435 acid\nN-hydroxyamide\t[C:1](=[O:2])-[N:3]-[O:4]-[H]\t3\t9.301904761904762\t1.2181897185891002 acid\n*Ringed_imide1\t[O,S:1]=[C;R:2]([$([#8]),$([#7]),$([#16]),$([#6][Cl]),$([#6]F),$([#6][Br]):3])-[N;R:4]([C;R:5]=[O,S:6])-[H]\t3\t6.4525\t0.5555627777308341 acid\n*Ringed_imide2\t[O,S:1]=[C;R:2]-[N;R:3]([C;R:4]=[O,S:5])-[H]\t2\t8.681666666666667\t1.8657779975741713 acid\n*Imide\t[F,Cl,Br,S,s,P,p:1][#6:2][CX3:3](=[O,S:4])-[NX3+0:5]([CX3:6]=[O,S:7])-[H]\t4\t2.466666666666667\t1.4843629385474877 acid\n*Imide2\t[O,S:1]=[CX3:2]-[NX3+0:3]([CX3:4]=[O,S:5])-[H]\t2\t10.23\t1.1198214143335534 acid\n*Amide_electronegative\t[C:1](=[O:2])-[N:3](-[Br,Cl,I,F,S,O,N,P:4])-[H]\t2\t3.4896\t2.688124315081677 acid\n*Amide\t[C:1](=[O:2])-[N:3]-[H]\t2\t12.00611111111111\t4.512491341218857 acid\n*Sulfonamide\t[SX4:1](=[O:2])(=[O:3])-[NX3+0:4]-[H]\t3\t7.9160326086956525\t1.9842121316708763 acid\nAnilines_primary\t[c:1]-[NX3+0:2]([H:3])[H:4]\t1\t3.899298673194805\t2.068768503987161 base\nAnilines_secondary\t[c:1]-[NX3+0:2]([H:3])[!H:4]\t1\t4.335408163265306\t2.1768842022330843 base\nAnilines_tertiary\t[c:1]-[NX3+0:2]([!H:3])[!H:4]\t1\t4.16690685045614\t2.005865735782679 base\nAromatic_nitrogen_unprotonated\t[n+0&H0:1]\t0\t4.3535441240733945\t2.0714072661859584 base\nAmines_primary_secondary_tertiary\t[C:1]-[NX3+0:2]\t1\t8.159107682388349\t2.5183597445318147 base\n\n# e.g., [*]P(=O)(O[H])[*]. Note that cannot match the internal phosphates of ATP, because\n# oxygen is not among [C,c,N,n,F,Cl,Br,I] \nPhosphinic_acid\t[PX4:1](=[O:2])(-[C,c,N,n,F,Cl,Br,I:3])(-[C,c,N,n,F,Cl,Br,I:4])-[OX2:5]-[H]\t4\t2.9745\t0.6867886750744557 diacid\n\n# e.g., [*]OP(=O)(O[H])O[*]. Cannot match ATP because P not among [C,c,N,n,F,Cl,Br,I] \nPhosphate_diester\t[PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[O+0:5]-[C,c,N,n,F,Cl,Br,I:4])-[OX2:6]-[H]\t6\t2.7280434782608696\t2.5437448856908316 acid\n\n# e.g., [*]P(=O)(O[H])O[*]. Cannot match ATP because O not among [C,c,N,n,F,Cl,Br,I].\nPhosphonate_ester\t[PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[C,c,N,n,F,Cl,Br,I:5])-[OX2:6]-[H]\t5\t2.0868\t0.4503028610465036 acid\n\nPrimary_hydroxyl_amine\t[C,c:1]-[O:2]-[NH2:3]\t2\t4.035714285714286\t0.8463816543155368 acid\n*Indole_pyrrole\t[c;R:1]1[c;R:2][c;R:3][c;R:4][n;R:5]1[H]\t4\t14.52875\t4.06702491591416 acid\n*Aromatic_nitrogen_protonated\t[n:1]-[H]\t0\t7.17\t2.94602395490212 acid\n'
n=int(input("enter a number")) if(n%5==0 or n%7==0): print("divisible by 5 or 7") else: print("not divisible")
n = int(input('enter a number')) if n % 5 == 0 or n % 7 == 0: print('divisible by 5 or 7') else: print('not divisible')
# # PySNMP MIB module HM2-DHCPS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-DHCPS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:18:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") HmEnabledStatus, hm2ConfigurationMibs = mibBuilder.importSymbols("HM2-TC-MIB", "HmEnabledStatus", "hm2ConfigurationMibs") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, ObjectIdentity, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Unsigned32, TimeTicks, Gauge32, Counter64, MibIdentifier, NotificationType, Bits, IpAddress, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ObjectIdentity", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Unsigned32", "TimeTicks", "Gauge32", "Counter64", "MibIdentifier", "NotificationType", "Bits", "IpAddress", "Integer32") DisplayString, TextualConvention, RowStatus, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus", "MacAddress") hm2DhcpsMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91)) hm2DhcpsMib.setRevisions(('2012-03-16 00:00',)) if mibBuilder.loadTexts: hm2DhcpsMib.setLastUpdated('201203160000Z') if mibBuilder.loadTexts: hm2DhcpsMib.setOrganization('Hirschmann Automation and Control GmbH') hm2DHCPServerMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 0)) hm2DHCPServerMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1)) hm2DHCPServerSNMPExtensionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 3)) hm2DHCPServerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1)) hm2DHCPServerConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1)) hm2DHCPServerLeaseGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2)) hm2DHCPServerInterfaceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3)) hm2DHCPServerCounterGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4)) hm2DHCPServerMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerMode.setStatus('current') hm2DHCPServerMaxPoolEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerMaxPoolEntries.setStatus('current') hm2DHCPServerMaxLeaseEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerMaxLeaseEntries.setStatus('current') hm2DHCPServerPoolTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5), ) if mibBuilder.loadTexts: hm2DHCPServerPoolTable.setStatus('current') hm2DHCPServerPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerPoolIndex")) if mibBuilder.loadTexts: hm2DHCPServerPoolEntry.setStatus('current') hm2DHCPServerPoolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerPoolIndex.setStatus('current') hm2DHCPServerPoolStartIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolStartIpAddress.setStatus('current') hm2DHCPServerPoolEndIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolEndIpAddress.setStatus('current') hm2DHCPServerPoolLeaseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 4), Unsigned32().clone(86400)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolLeaseTime.setStatus('current') hm2DHCPServerPoolFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("interface", 0), ("mac", 1), ("gateway", 2), ("clientid", 3), ("remoteid", 4), ("circuitid", 5), ("dynamic", 6), ("vlanid", 7)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolFlags.setStatus('current') hm2DHCPServerPoolIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 6), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolIfIndex.setStatus('current') hm2DHCPServerPoolMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 7), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolMacAddress.setStatus('current') hm2DHCPServerPoolGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 8), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolGateway.setStatus('current') hm2DHCPServerPoolClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 9), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolClientId.setStatus('current') hm2DHCPServerPoolRemoteId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 10), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolRemoteId.setStatus('current') hm2DHCPServerPoolCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 11), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolCircuitId.setStatus('current') hm2DHCPServerPoolHirschmannClient = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 12), HmEnabledStatus().clone('disable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolHirschmannClient.setStatus('current') hm2DHCPServerPoolVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 13), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolVlanId.setStatus('current') hm2DHCPServerPoolOptionConfFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 70))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionConfFileName.setStatus('current') hm2DHCPServerPoolOptionGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 31), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionGateway.setStatus('current') hm2DHCPServerPoolOptionNetmask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 32), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionNetmask.setStatus('current') hm2DHCPServerPoolOptionWINS = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 33), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionWINS.setStatus('current') hm2DHCPServerPoolOptionDNS = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 34), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionDNS.setStatus('current') hm2DHCPServerPoolOptionHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionHostname.setStatus('current') hm2DHCPServerPoolMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("config", 2), ("ttdp", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerPoolMethod.setStatus('current') hm2DHCPServerPoolErrorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 99), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerPoolErrorStatus.setStatus('current') hm2DHCPServerPoolRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 100), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolRowStatus.setStatus('current') hm2DHCPServerLeaseTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1), ) if mibBuilder.loadTexts: hm2DHCPServerLeaseTable.setStatus('current') hm2DHCPServerLeaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerLeasePoolIndex"), (0, "HM2-DHCPS-MIB", "hm2DHCPServerLeaseIpAddress")) if mibBuilder.loadTexts: hm2DHCPServerLeaseEntry.setStatus('current') hm2DHCPServerLeasePoolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeasePoolIndex.setStatus('current') hm2DHCPServerLeaseIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseIpAddress.setStatus('current') hm2DHCPServerLeaseState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("bootp", 1), ("offering", 2), ("requesting", 3), ("bound", 4), ("renewing", 5), ("rebinding", 6), ("declined", 7), ("released", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseState.setStatus('current') hm2DHCPServerLeaseTimeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseTimeRemaining.setStatus('current') hm2DHCPServerLeaseIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseIfIndex.setStatus('current') hm2DHCPServerLeaseClientMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 6), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseClientMacAddress.setStatus('current') hm2DHCPServerLeaseGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 7), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseGateway.setStatus('current') hm2DHCPServerLeaseClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseClientId.setStatus('current') hm2DHCPServerLeaseRemoteId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseRemoteId.setStatus('current') hm2DHCPServerLeaseCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseCircuitId.setStatus('current') hm2DHCPServerLeaseStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseStartTime.setStatus('current') hm2DHCPServerLeaseAction = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("release", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerLeaseAction.setStatus('current') hm2DHCPServerLeaseVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseVlanId.setStatus('current') hm2DHCPServerIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1), ) if mibBuilder.loadTexts: hm2DHCPServerIfConfigTable.setStatus('current') hm2DHCPServerIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerIfConfigIndex")) if mibBuilder.loadTexts: hm2DHCPServerIfConfigEntry.setStatus('current') hm2DHCPServerIfConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerIfConfigIndex.setStatus('current') hm2DHCPServerIfConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 2), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerIfConfigMode.setStatus('current') hm2DHCPServerCounterIfTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2), ) if mibBuilder.loadTexts: hm2DHCPServerCounterIfTable.setStatus('current') hm2DHCPServerCounterIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerCounterIfIndex")) if mibBuilder.loadTexts: hm2DHCPServerCounterIfEntry.setStatus('current') hm2DHCPServerCounterIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterIfIndex.setStatus('current') hm2DHCPServerCounterBootpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpRequests.setStatus('current') hm2DHCPServerCounterBootpInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpInvalids.setStatus('current') hm2DHCPServerCounterBootpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpReplies.setStatus('current') hm2DHCPServerCounterBootpDroppedUnknownClients = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedUnknownClients.setStatus('current') hm2DHCPServerCounterBootpDroppedNotServingSubnet = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedNotServingSubnet.setStatus('current') hm2DHCPServerCounterDhcpv4Discovers = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Discovers.setStatus('current') hm2DHCPServerCounterDhcpv4Offers = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Offers.setStatus('current') hm2DHCPServerCounterDhcpv4Requests = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Requests.setStatus('current') hm2DHCPServerCounterDhcpv4Declines = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Declines.setStatus('current') hm2DHCPServerCounterDhcpv4Acks = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Acks.setStatus('current') hm2DHCPServerCounterDhcpv4Naks = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Naks.setStatus('current') hm2DHCPServerCounterDhcpv4Releases = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Releases.setStatus('current') hm2DHCPServerCounterDhcpv4Informs = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Informs.setStatus('current') hm2DHCPServerCounterDhcpv4ForcedRenews = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4ForcedRenews.setStatus('current') hm2DHCPServerCounterDhcpv4Invalids = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Invalids.setStatus('current') hm2DHCPServerCounterDhcpv4DroppedUnknownClient = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedUnknownClient.setStatus('current') hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet.setStatus('current') hm2DHCPServerCounterMiscOtherDhcpServer = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterMiscOtherDhcpServer.setStatus('current') hm2DHCPServerRowStatusInvalidConfigurationErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerRowStatusInvalidConfigurationErrorReturn.setStatus('current') hm2DHCPServerConflictDHCPRrelayErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 2)) if mibBuilder.loadTexts: hm2DHCPServerConflictDHCPRrelayErrorReturn.setStatus('current') mibBuilder.exportSymbols("HM2-DHCPS-MIB", hm2DHCPServerCounterGroup=hm2DHCPServerCounterGroup, hm2DHCPServerGroup=hm2DHCPServerGroup, hm2DHCPServerCounterIfEntry=hm2DHCPServerCounterIfEntry, hm2DHCPServerIfConfigEntry=hm2DHCPServerIfConfigEntry, hm2DHCPServerPoolGateway=hm2DHCPServerPoolGateway, hm2DHCPServerCounterIfTable=hm2DHCPServerCounterIfTable, hm2DhcpsMib=hm2DhcpsMib, hm2DHCPServerRowStatusInvalidConfigurationErrorReturn=hm2DHCPServerRowStatusInvalidConfigurationErrorReturn, hm2DHCPServerConfigGroup=hm2DHCPServerConfigGroup, hm2DHCPServerCounterDhcpv4Requests=hm2DHCPServerCounterDhcpv4Requests, hm2DHCPServerCounterBootpInvalids=hm2DHCPServerCounterBootpInvalids, hm2DHCPServerLeaseRemoteId=hm2DHCPServerLeaseRemoteId, hm2DHCPServerSNMPExtensionGroup=hm2DHCPServerSNMPExtensionGroup, hm2DHCPServerLeaseClientId=hm2DHCPServerLeaseClientId, hm2DHCPServerPoolOptionWINS=hm2DHCPServerPoolOptionWINS, hm2DHCPServerCounterBootpDroppedNotServingSubnet=hm2DHCPServerCounterBootpDroppedNotServingSubnet, hm2DHCPServerLeaseGroup=hm2DHCPServerLeaseGroup, hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet=hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet, hm2DHCPServerLeaseClientMacAddress=hm2DHCPServerLeaseClientMacAddress, hm2DHCPServerConflictDHCPRrelayErrorReturn=hm2DHCPServerConflictDHCPRrelayErrorReturn, hm2DHCPServerIfConfigMode=hm2DHCPServerIfConfigMode, hm2DHCPServerCounterDhcpv4ForcedRenews=hm2DHCPServerCounterDhcpv4ForcedRenews, hm2DHCPServerPoolEntry=hm2DHCPServerPoolEntry, hm2DHCPServerIfConfigTable=hm2DHCPServerIfConfigTable, hm2DHCPServerLeaseState=hm2DHCPServerLeaseState, hm2DHCPServerPoolOptionNetmask=hm2DHCPServerPoolOptionNetmask, hm2DHCPServerPoolOptionGateway=hm2DHCPServerPoolOptionGateway, hm2DHCPServerLeaseGateway=hm2DHCPServerLeaseGateway, hm2DHCPServerLeaseTimeRemaining=hm2DHCPServerLeaseTimeRemaining, hm2DHCPServerPoolIfIndex=hm2DHCPServerPoolIfIndex, hm2DHCPServerMode=hm2DHCPServerMode, hm2DHCPServerCounterDhcpv4Releases=hm2DHCPServerCounterDhcpv4Releases, hm2DHCPServerPoolEndIpAddress=hm2DHCPServerPoolEndIpAddress, hm2DHCPServerLeaseTable=hm2DHCPServerLeaseTable, hm2DHCPServerCounterDhcpv4DroppedUnknownClient=hm2DHCPServerCounterDhcpv4DroppedUnknownClient, hm2DHCPServerMibObjects=hm2DHCPServerMibObjects, hm2DHCPServerMibNotifications=hm2DHCPServerMibNotifications, hm2DHCPServerCounterIfIndex=hm2DHCPServerCounterIfIndex, hm2DHCPServerLeaseIpAddress=hm2DHCPServerLeaseIpAddress, hm2DHCPServerCounterDhcpv4Acks=hm2DHCPServerCounterDhcpv4Acks, hm2DHCPServerLeaseVlanId=hm2DHCPServerLeaseVlanId, hm2DHCPServerPoolRowStatus=hm2DHCPServerPoolRowStatus, hm2DHCPServerPoolErrorStatus=hm2DHCPServerPoolErrorStatus, hm2DHCPServerCounterBootpRequests=hm2DHCPServerCounterBootpRequests, hm2DHCPServerPoolOptionConfFileName=hm2DHCPServerPoolOptionConfFileName, hm2DHCPServerMaxPoolEntries=hm2DHCPServerMaxPoolEntries, hm2DHCPServerPoolStartIpAddress=hm2DHCPServerPoolStartIpAddress, hm2DHCPServerPoolMacAddress=hm2DHCPServerPoolMacAddress, PYSNMP_MODULE_ID=hm2DhcpsMib, hm2DHCPServerCounterDhcpv4Naks=hm2DHCPServerCounterDhcpv4Naks, hm2DHCPServerPoolClientId=hm2DHCPServerPoolClientId, hm2DHCPServerCounterBootpDroppedUnknownClients=hm2DHCPServerCounterBootpDroppedUnknownClients, hm2DHCPServerLeaseCircuitId=hm2DHCPServerLeaseCircuitId, hm2DHCPServerMaxLeaseEntries=hm2DHCPServerMaxLeaseEntries, hm2DHCPServerLeaseAction=hm2DHCPServerLeaseAction, hm2DHCPServerPoolRemoteId=hm2DHCPServerPoolRemoteId, hm2DHCPServerLeaseIfIndex=hm2DHCPServerLeaseIfIndex, hm2DHCPServerPoolIndex=hm2DHCPServerPoolIndex, hm2DHCPServerPoolVlanId=hm2DHCPServerPoolVlanId, hm2DHCPServerLeaseStartTime=hm2DHCPServerLeaseStartTime, hm2DHCPServerCounterDhcpv4Informs=hm2DHCPServerCounterDhcpv4Informs, hm2DHCPServerCounterDhcpv4Invalids=hm2DHCPServerCounterDhcpv4Invalids, hm2DHCPServerLeasePoolIndex=hm2DHCPServerLeasePoolIndex, hm2DHCPServerCounterBootpReplies=hm2DHCPServerCounterBootpReplies, hm2DHCPServerPoolMethod=hm2DHCPServerPoolMethod, hm2DHCPServerCounterMiscOtherDhcpServer=hm2DHCPServerCounterMiscOtherDhcpServer, hm2DHCPServerPoolOptionDNS=hm2DHCPServerPoolOptionDNS, hm2DHCPServerCounterDhcpv4Discovers=hm2DHCPServerCounterDhcpv4Discovers, hm2DHCPServerCounterDhcpv4Offers=hm2DHCPServerCounterDhcpv4Offers, hm2DHCPServerCounterDhcpv4Declines=hm2DHCPServerCounterDhcpv4Declines, hm2DHCPServerInterfaceGroup=hm2DHCPServerInterfaceGroup, hm2DHCPServerPoolTable=hm2DHCPServerPoolTable, hm2DHCPServerPoolCircuitId=hm2DHCPServerPoolCircuitId, hm2DHCPServerPoolLeaseTime=hm2DHCPServerPoolLeaseTime, hm2DHCPServerLeaseEntry=hm2DHCPServerLeaseEntry, hm2DHCPServerPoolOptionHostname=hm2DHCPServerPoolOptionHostname, hm2DHCPServerPoolHirschmannClient=hm2DHCPServerPoolHirschmannClient, hm2DHCPServerIfConfigIndex=hm2DHCPServerIfConfigIndex, hm2DHCPServerPoolFlags=hm2DHCPServerPoolFlags)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, single_value_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (hm_enabled_status, hm2_configuration_mibs) = mibBuilder.importSymbols('HM2-TC-MIB', 'HmEnabledStatus', 'hm2ConfigurationMibs') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, object_identity, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, unsigned32, time_ticks, gauge32, counter64, mib_identifier, notification_type, bits, ip_address, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ObjectIdentity', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Unsigned32', 'TimeTicks', 'Gauge32', 'Counter64', 'MibIdentifier', 'NotificationType', 'Bits', 'IpAddress', 'Integer32') (display_string, textual_convention, row_status, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus', 'MacAddress') hm2_dhcps_mib = module_identity((1, 3, 6, 1, 4, 1, 248, 11, 91)) hm2DhcpsMib.setRevisions(('2012-03-16 00:00',)) if mibBuilder.loadTexts: hm2DhcpsMib.setLastUpdated('201203160000Z') if mibBuilder.loadTexts: hm2DhcpsMib.setOrganization('Hirschmann Automation and Control GmbH') hm2_dhcp_server_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 0)) hm2_dhcp_server_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1)) hm2_dhcp_server_snmp_extension_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 3)) hm2_dhcp_server_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1)) hm2_dhcp_server_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1)) hm2_dhcp_server_lease_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2)) hm2_dhcp_server_interface_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3)) hm2_dhcp_server_counter_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4)) hm2_dhcp_server_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerMode.setStatus('current') hm2_dhcp_server_max_pool_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerMaxPoolEntries.setStatus('current') hm2_dhcp_server_max_lease_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerMaxLeaseEntries.setStatus('current') hm2_dhcp_server_pool_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5)) if mibBuilder.loadTexts: hm2DHCPServerPoolTable.setStatus('current') hm2_dhcp_server_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerPoolIndex')) if mibBuilder.loadTexts: hm2DHCPServerPoolEntry.setStatus('current') hm2_dhcp_server_pool_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerPoolIndex.setStatus('current') hm2_dhcp_server_pool_start_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolStartIpAddress.setStatus('current') hm2_dhcp_server_pool_end_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolEndIpAddress.setStatus('current') hm2_dhcp_server_pool_lease_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 4), unsigned32().clone(86400)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolLeaseTime.setStatus('current') hm2_dhcp_server_pool_flags = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 5), bits().clone(namedValues=named_values(('interface', 0), ('mac', 1), ('gateway', 2), ('clientid', 3), ('remoteid', 4), ('circuitid', 5), ('dynamic', 6), ('vlanid', 7)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolFlags.setStatus('current') hm2_dhcp_server_pool_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 6), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolIfIndex.setStatus('current') hm2_dhcp_server_pool_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 7), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolMacAddress.setStatus('current') hm2_dhcp_server_pool_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 8), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolGateway.setStatus('current') hm2_dhcp_server_pool_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 9), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolClientId.setStatus('current') hm2_dhcp_server_pool_remote_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 10), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolRemoteId.setStatus('current') hm2_dhcp_server_pool_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 11), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolCircuitId.setStatus('current') hm2_dhcp_server_pool_hirschmann_client = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 12), hm_enabled_status().clone('disable')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolHirschmannClient.setStatus('current') hm2_dhcp_server_pool_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 13), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolVlanId.setStatus('current') hm2_dhcp_server_pool_option_conf_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 70))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionConfFileName.setStatus('current') hm2_dhcp_server_pool_option_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 31), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionGateway.setStatus('current') hm2_dhcp_server_pool_option_netmask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 32), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionNetmask.setStatus('current') hm2_dhcp_server_pool_option_wins = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 33), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionWINS.setStatus('current') hm2_dhcp_server_pool_option_dns = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 34), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionDNS.setStatus('current') hm2_dhcp_server_pool_option_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 35), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionHostname.setStatus('current') hm2_dhcp_server_pool_method = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('config', 2), ('ttdp', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerPoolMethod.setStatus('current') hm2_dhcp_server_pool_error_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 99), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerPoolErrorStatus.setStatus('current') hm2_dhcp_server_pool_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 100), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolRowStatus.setStatus('current') hm2_dhcp_server_lease_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1)) if mibBuilder.loadTexts: hm2DHCPServerLeaseTable.setStatus('current') hm2_dhcp_server_lease_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerLeasePoolIndex'), (0, 'HM2-DHCPS-MIB', 'hm2DHCPServerLeaseIpAddress')) if mibBuilder.loadTexts: hm2DHCPServerLeaseEntry.setStatus('current') hm2_dhcp_server_lease_pool_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeasePoolIndex.setStatus('current') hm2_dhcp_server_lease_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseIpAddress.setStatus('current') hm2_dhcp_server_lease_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('bootp', 1), ('offering', 2), ('requesting', 3), ('bound', 4), ('renewing', 5), ('rebinding', 6), ('declined', 7), ('released', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseState.setStatus('current') hm2_dhcp_server_lease_time_remaining = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseTimeRemaining.setStatus('current') hm2_dhcp_server_lease_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseIfIndex.setStatus('current') hm2_dhcp_server_lease_client_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 6), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseClientMacAddress.setStatus('current') hm2_dhcp_server_lease_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 7), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseGateway.setStatus('current') hm2_dhcp_server_lease_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseClientId.setStatus('current') hm2_dhcp_server_lease_remote_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseRemoteId.setStatus('current') hm2_dhcp_server_lease_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseCircuitId.setStatus('current') hm2_dhcp_server_lease_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseStartTime.setStatus('current') hm2_dhcp_server_lease_action = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('release', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerLeaseAction.setStatus('current') hm2_dhcp_server_lease_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseVlanId.setStatus('current') hm2_dhcp_server_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerIfConfigTable.setStatus('current') hm2_dhcp_server_if_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerIfConfigIndex')) if mibBuilder.loadTexts: hm2DHCPServerIfConfigEntry.setStatus('current') hm2_dhcp_server_if_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerIfConfigIndex.setStatus('current') hm2_dhcp_server_if_config_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 2), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerIfConfigMode.setStatus('current') hm2_dhcp_server_counter_if_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2)) if mibBuilder.loadTexts: hm2DHCPServerCounterIfTable.setStatus('current') hm2_dhcp_server_counter_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerCounterIfIndex')) if mibBuilder.loadTexts: hm2DHCPServerCounterIfEntry.setStatus('current') hm2_dhcp_server_counter_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterIfIndex.setStatus('current') hm2_dhcp_server_counter_bootp_requests = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpRequests.setStatus('current') hm2_dhcp_server_counter_bootp_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpInvalids.setStatus('current') hm2_dhcp_server_counter_bootp_replies = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpReplies.setStatus('current') hm2_dhcp_server_counter_bootp_dropped_unknown_clients = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedUnknownClients.setStatus('current') hm2_dhcp_server_counter_bootp_dropped_not_serving_subnet = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedNotServingSubnet.setStatus('current') hm2_dhcp_server_counter_dhcpv4_discovers = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Discovers.setStatus('current') hm2_dhcp_server_counter_dhcpv4_offers = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Offers.setStatus('current') hm2_dhcp_server_counter_dhcpv4_requests = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Requests.setStatus('current') hm2_dhcp_server_counter_dhcpv4_declines = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Declines.setStatus('current') hm2_dhcp_server_counter_dhcpv4_acks = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Acks.setStatus('current') hm2_dhcp_server_counter_dhcpv4_naks = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Naks.setStatus('current') hm2_dhcp_server_counter_dhcpv4_releases = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Releases.setStatus('current') hm2_dhcp_server_counter_dhcpv4_informs = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Informs.setStatus('current') hm2_dhcp_server_counter_dhcpv4_forced_renews = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4ForcedRenews.setStatus('current') hm2_dhcp_server_counter_dhcpv4_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Invalids.setStatus('current') hm2_dhcp_server_counter_dhcpv4_dropped_unknown_client = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedUnknownClient.setStatus('current') hm2_dhcp_server_counter_dhcpv4_dropped_not_serving_subnet = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet.setStatus('current') hm2_dhcp_server_counter_misc_other_dhcp_server = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterMiscOtherDhcpServer.setStatus('current') hm2_dhcp_server_row_status_invalid_configuration_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerRowStatusInvalidConfigurationErrorReturn.setStatus('current') hm2_dhcp_server_conflict_dhcp_rrelay_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 2)) if mibBuilder.loadTexts: hm2DHCPServerConflictDHCPRrelayErrorReturn.setStatus('current') mibBuilder.exportSymbols('HM2-DHCPS-MIB', hm2DHCPServerCounterGroup=hm2DHCPServerCounterGroup, hm2DHCPServerGroup=hm2DHCPServerGroup, hm2DHCPServerCounterIfEntry=hm2DHCPServerCounterIfEntry, hm2DHCPServerIfConfigEntry=hm2DHCPServerIfConfigEntry, hm2DHCPServerPoolGateway=hm2DHCPServerPoolGateway, hm2DHCPServerCounterIfTable=hm2DHCPServerCounterIfTable, hm2DhcpsMib=hm2DhcpsMib, hm2DHCPServerRowStatusInvalidConfigurationErrorReturn=hm2DHCPServerRowStatusInvalidConfigurationErrorReturn, hm2DHCPServerConfigGroup=hm2DHCPServerConfigGroup, hm2DHCPServerCounterDhcpv4Requests=hm2DHCPServerCounterDhcpv4Requests, hm2DHCPServerCounterBootpInvalids=hm2DHCPServerCounterBootpInvalids, hm2DHCPServerLeaseRemoteId=hm2DHCPServerLeaseRemoteId, hm2DHCPServerSNMPExtensionGroup=hm2DHCPServerSNMPExtensionGroup, hm2DHCPServerLeaseClientId=hm2DHCPServerLeaseClientId, hm2DHCPServerPoolOptionWINS=hm2DHCPServerPoolOptionWINS, hm2DHCPServerCounterBootpDroppedNotServingSubnet=hm2DHCPServerCounterBootpDroppedNotServingSubnet, hm2DHCPServerLeaseGroup=hm2DHCPServerLeaseGroup, hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet=hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet, hm2DHCPServerLeaseClientMacAddress=hm2DHCPServerLeaseClientMacAddress, hm2DHCPServerConflictDHCPRrelayErrorReturn=hm2DHCPServerConflictDHCPRrelayErrorReturn, hm2DHCPServerIfConfigMode=hm2DHCPServerIfConfigMode, hm2DHCPServerCounterDhcpv4ForcedRenews=hm2DHCPServerCounterDhcpv4ForcedRenews, hm2DHCPServerPoolEntry=hm2DHCPServerPoolEntry, hm2DHCPServerIfConfigTable=hm2DHCPServerIfConfigTable, hm2DHCPServerLeaseState=hm2DHCPServerLeaseState, hm2DHCPServerPoolOptionNetmask=hm2DHCPServerPoolOptionNetmask, hm2DHCPServerPoolOptionGateway=hm2DHCPServerPoolOptionGateway, hm2DHCPServerLeaseGateway=hm2DHCPServerLeaseGateway, hm2DHCPServerLeaseTimeRemaining=hm2DHCPServerLeaseTimeRemaining, hm2DHCPServerPoolIfIndex=hm2DHCPServerPoolIfIndex, hm2DHCPServerMode=hm2DHCPServerMode, hm2DHCPServerCounterDhcpv4Releases=hm2DHCPServerCounterDhcpv4Releases, hm2DHCPServerPoolEndIpAddress=hm2DHCPServerPoolEndIpAddress, hm2DHCPServerLeaseTable=hm2DHCPServerLeaseTable, hm2DHCPServerCounterDhcpv4DroppedUnknownClient=hm2DHCPServerCounterDhcpv4DroppedUnknownClient, hm2DHCPServerMibObjects=hm2DHCPServerMibObjects, hm2DHCPServerMibNotifications=hm2DHCPServerMibNotifications, hm2DHCPServerCounterIfIndex=hm2DHCPServerCounterIfIndex, hm2DHCPServerLeaseIpAddress=hm2DHCPServerLeaseIpAddress, hm2DHCPServerCounterDhcpv4Acks=hm2DHCPServerCounterDhcpv4Acks, hm2DHCPServerLeaseVlanId=hm2DHCPServerLeaseVlanId, hm2DHCPServerPoolRowStatus=hm2DHCPServerPoolRowStatus, hm2DHCPServerPoolErrorStatus=hm2DHCPServerPoolErrorStatus, hm2DHCPServerCounterBootpRequests=hm2DHCPServerCounterBootpRequests, hm2DHCPServerPoolOptionConfFileName=hm2DHCPServerPoolOptionConfFileName, hm2DHCPServerMaxPoolEntries=hm2DHCPServerMaxPoolEntries, hm2DHCPServerPoolStartIpAddress=hm2DHCPServerPoolStartIpAddress, hm2DHCPServerPoolMacAddress=hm2DHCPServerPoolMacAddress, PYSNMP_MODULE_ID=hm2DhcpsMib, hm2DHCPServerCounterDhcpv4Naks=hm2DHCPServerCounterDhcpv4Naks, hm2DHCPServerPoolClientId=hm2DHCPServerPoolClientId, hm2DHCPServerCounterBootpDroppedUnknownClients=hm2DHCPServerCounterBootpDroppedUnknownClients, hm2DHCPServerLeaseCircuitId=hm2DHCPServerLeaseCircuitId, hm2DHCPServerMaxLeaseEntries=hm2DHCPServerMaxLeaseEntries, hm2DHCPServerLeaseAction=hm2DHCPServerLeaseAction, hm2DHCPServerPoolRemoteId=hm2DHCPServerPoolRemoteId, hm2DHCPServerLeaseIfIndex=hm2DHCPServerLeaseIfIndex, hm2DHCPServerPoolIndex=hm2DHCPServerPoolIndex, hm2DHCPServerPoolVlanId=hm2DHCPServerPoolVlanId, hm2DHCPServerLeaseStartTime=hm2DHCPServerLeaseStartTime, hm2DHCPServerCounterDhcpv4Informs=hm2DHCPServerCounterDhcpv4Informs, hm2DHCPServerCounterDhcpv4Invalids=hm2DHCPServerCounterDhcpv4Invalids, hm2DHCPServerLeasePoolIndex=hm2DHCPServerLeasePoolIndex, hm2DHCPServerCounterBootpReplies=hm2DHCPServerCounterBootpReplies, hm2DHCPServerPoolMethod=hm2DHCPServerPoolMethod, hm2DHCPServerCounterMiscOtherDhcpServer=hm2DHCPServerCounterMiscOtherDhcpServer, hm2DHCPServerPoolOptionDNS=hm2DHCPServerPoolOptionDNS, hm2DHCPServerCounterDhcpv4Discovers=hm2DHCPServerCounterDhcpv4Discovers, hm2DHCPServerCounterDhcpv4Offers=hm2DHCPServerCounterDhcpv4Offers, hm2DHCPServerCounterDhcpv4Declines=hm2DHCPServerCounterDhcpv4Declines, hm2DHCPServerInterfaceGroup=hm2DHCPServerInterfaceGroup, hm2DHCPServerPoolTable=hm2DHCPServerPoolTable, hm2DHCPServerPoolCircuitId=hm2DHCPServerPoolCircuitId, hm2DHCPServerPoolLeaseTime=hm2DHCPServerPoolLeaseTime, hm2DHCPServerLeaseEntry=hm2DHCPServerLeaseEntry, hm2DHCPServerPoolOptionHostname=hm2DHCPServerPoolOptionHostname, hm2DHCPServerPoolHirschmannClient=hm2DHCPServerPoolHirschmannClient, hm2DHCPServerIfConfigIndex=hm2DHCPServerIfConfigIndex, hm2DHCPServerPoolFlags=hm2DHCPServerPoolFlags)
# # PySNMP MIB module HUAWEI-UNIMNG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-UNIMNG-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:49:14 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, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") TimeTicks, IpAddress, Integer32, Counter32, Unsigned32, Gauge32, ObjectIdentity, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, MibIdentifier, iso, ModuleIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "IpAddress", "Integer32", "Counter32", "Unsigned32", "Gauge32", "ObjectIdentity", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "MibIdentifier", "iso", "ModuleIdentity", "NotificationType") DisplayString, MacAddress, RowStatus, AutonomousType, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "RowStatus", "AutonomousType", "TextualConvention") hwUnimngMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327)) hwUnimngMIB.setRevisions(('2015-07-09 14:07', '2015-01-09 14:07', '2014-11-18 15:30', '2014-10-29 16:57', '2014-10-23 15:30', '2014-09-11 15:30', '2014-08-19 15:30', '2014-07-10 12:50', '2014-03-03 20:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwUnimngMIB.setRevisionsDescriptions(('Add new node hwAsVpnInstance ', 'Add new trap node hwTplmDirectCmdRecoverFail LSWCCB-9570', 'Modify node description LSWV2R7-9213 at 2014-11-18', 'Modify node description LSWCCB-8222 at 2014-10-29', 'Modify as entity trap at 2014-10-23', 'Add new trap node at 2014-9-11', 'Modify node description LSWCCB-6116 LSWCCB-6553 LSWCCB-6908 at 2014-8-19', 'Add trap node hwTplmCmdExecuteSuccessfulNotify at 2014-7-10', 'Create mib.',)) if mibBuilder.loadTexts: hwUnimngMIB.setLastUpdated('201507091407Z') if mibBuilder.loadTexts: hwUnimngMIB.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwUnimngMIB.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com") if mibBuilder.loadTexts: hwUnimngMIB.setDescription('This MIB contains private managed object definitions for Unified Man agement Framework.') class AlarmStatus(TextualConvention, Bits): reference = "ITU Recommendation X.731, 'Information Technology - Open Systems Interconnection - System Management: State Management Function', 1992" description = 'Represents the possible values of alarm status. When no bits of this attribute are set, then none of the status conditions described below are present. When the value of under repair is set, the resource is currently being repaired. When the value of critical is set, one or more critical alarms are active against the resource. When the value of major is set, one or more major alarms are active against the resource. When the value of minor is set, one or more minor alarms are active against the resource. When the value of warning is set, one or more warning alarms are active against the resource. When the value of indeterminate is set, one or more alarms of indeterminate severity are active against the resource. When the value of alarm outstanding is set, one or more alarms is active against the resource. The fault may or may not be disabling. ' status = 'current' namedValues = NamedValues(("notSupported", 0), ("underRepair", 1), ("critical", 2), ("major", 3), ("minor", 4), ("alarmOutstanding", 5), ("warning", 6), ("indeterminate", 7)) hwUnimngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1)) hwUniMngEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwUniMngEnable.setStatus('current') if mibBuilder.loadTexts: hwUniMngEnable.setDescription('Unimng enable status.') hwAsmngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2)) hwAsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1), ) if mibBuilder.loadTexts: hwAsTable.setStatus('current') if mibBuilder.loadTexts: hwAsTable.setDescription('AS table entry. ') hwAsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex")) if mibBuilder.loadTexts: hwAsEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntry.setDescription('The entry of AS table.') hwAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIndex.setDescription('AS index.') hwAsHardwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsHardwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsHardwareVersion.setDescription('The hardware version of AS.') hwAsIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsIpAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIpAddress.setDescription('The ip address of AS.') hwAsIpNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 4), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsIpNetMask.setStatus('current') if mibBuilder.loadTexts: hwAsIpNetMask.setDescription('The ip net mask of AS.') hwAsAccessUser = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 5), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsAccessUser.setStatus('current') if mibBuilder.loadTexts: hwAsAccessUser.setDescription('The access user number of AS.') hwAsMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 6), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsMac.setDescription('The MAC address of AS.') hwAsSn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 7), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsSn.setDescription('The SN of AS.') hwAsSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsSysName.setDescription('The Name of AS.') hwAsRunState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("idle", 1), ("versionMismatch", 2), ("fault", 3), ("normal", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsRunState.setStatus('current') if mibBuilder.loadTexts: hwAsRunState.setDescription('The run state of AS.') hwAsSoftwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSoftwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsSoftwareVersion.setDescription('The software version of AS.') hwAsModel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 23))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsModel.setDescription('The model of AS. ') hwAsDns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 12), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsDns.setStatus('current') if mibBuilder.loadTexts: hwAsDns.setDescription('The DNS of AS.') hwAsOnlineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 13), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsOnlineTime.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineTime.setDescription('The online time of AS.') hwAsCpuUseage = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 14), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsCpuUseage.setStatus('current') if mibBuilder.loadTexts: hwAsCpuUseage.setDescription('The cpu usage of AS.') hwAsMemoryUseage = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 15), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMemoryUseage.setStatus('current') if mibBuilder.loadTexts: hwAsMemoryUseage.setDescription('The memory usage of AS.') hwAsSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 16), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSysMac.setStatus('current') if mibBuilder.loadTexts: hwAsSysMac.setDescription('The system MAC address of AS.') hwAsStackEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsStackEnable.setStatus('current') if mibBuilder.loadTexts: hwAsStackEnable.setDescription('Whether AS is stack enable or disable.') hwAsGatewayIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 18), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsGatewayIp.setStatus('current') if mibBuilder.loadTexts: hwAsGatewayIp.setDescription("The gateway's IP address of AS.") hwAsVpnInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 19), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsVpnInstance.setStatus('current') if mibBuilder.loadTexts: hwAsVpnInstance.setDescription('The VPN instance of AS.') hwAsRowstatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsRowstatus.setStatus('current') if mibBuilder.loadTexts: hwAsRowstatus.setDescription('The RowStatus of this table.') hwAsIfTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2), ) if mibBuilder.loadTexts: hwAsIfTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfTable.setDescription('AS interface table entry.') hwAsIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if mibBuilder.loadTexts: hwAsIfEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfEntry.setDescription('The entry of AS If table.') hwAsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIfIndex.setDescription('The interface index of AS.') hwAsIfDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfDescr.setStatus('current') if mibBuilder.loadTexts: hwAsIfDescr.setDescription('The interface description of AS.') hwAsIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsIfType.setDescription('The interface type of AS.') hwAsIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfMtu.setStatus('current') if mibBuilder.loadTexts: hwAsIfMtu.setDescription('The interface MTU of AS.') hwAsIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfSpeed.setDescription("An estimate of the as interface's current bandwidth in bits per second.") hwAsIfPhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfPhysAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIfPhysAddress.setDescription('The physical address of AS interface.') hwAsIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfAdminStatus.setDescription('The administration stauts of AS interface.') hwAsIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfOperStatus.setDescription('The operation stauts of AS interface.') hwAsIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setDescription('The number of unicast packets received on the interface of AS. ') hwAsIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setDescription('The number of unicast packets sent on the interface of AS. ') hwAsIfXTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3), ) if mibBuilder.loadTexts: hwAsIfXTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfXTable.setDescription('The extent table of AS.') hwAsIfXEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if mibBuilder.loadTexts: hwAsIfXEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfXEntry.setDescription('The entry of table.') hwAsIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsIfName.setDescription('The name of AS interface.') hwAsIfLinkUpDownTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setStatus('current') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for this as interface.') hwAsIfHighSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHighSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfHighSpeed.setDescription("An estimate of the as interface's current bandwidth in units of 1,000,000 bits per second.") hwAsIfAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfAlias.setStatus('current') if mibBuilder.loadTexts: hwAsIfAlias.setDescription("This object is an 'alias' name for the AS's interface as specified by a network manager, and provides a non-volatile 'handle' for the interface.") hwAsIfAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfAsId.setStatus('current') if mibBuilder.loadTexts: hwAsIfAsId.setDescription('The ID of AS.') hwAsIfHCOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHCOutOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setDescription('The total number of octets sent on the interface of AS.') hwAsIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setDescription('The number of multicast packets received on the interface of AS. ') hwAsIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setDescription('The number of broadcast packets received on the interface of AS. ') hwAsIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setDescription('The number of multicast packets sent on the interface of AS. ') hwAsIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setDescription('The number of broadcast packets sent on the interface of AS. ') hwAsIfHCInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHCInOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCInOctets.setDescription('The total number of octets received on the interface of AS.') hwAsSlotTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4), ) if mibBuilder.loadTexts: hwAsSlotTable.setStatus('current') if mibBuilder.loadTexts: hwAsSlotTable.setDescription('The slot table of AS.') hwAsSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsSlotId")) if mibBuilder.loadTexts: hwAsSlotEntry.setStatus('current') if mibBuilder.loadTexts: hwAsSlotEntry.setDescription('The entry of table.') hwAsSlotId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))) if mibBuilder.loadTexts: hwAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsSlotId.setDescription('The ID of AS slot.') hwAsSlotState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSlotState.setStatus('current') if mibBuilder.loadTexts: hwAsSlotState.setDescription('The state of AS slot.') hwAsSlotRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 20), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSlotRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsSlotRowStatus.setDescription('The RowStatus of this table.') hwAsmngGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5)) hwAsAutoReplaceEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setStatus('current') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setDescription('The enable status of auto replace.') hwAsAuthMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auth", 1), ("noAuth", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsAuthMode.setStatus('current') if mibBuilder.loadTexts: hwAsAuthMode.setDescription('The authentication mode of AS.') hwAsMacWhitelistTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6), ) if mibBuilder.loadTexts: hwAsMacWhitelistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistTable.setDescription('The table of whitelist.') hwAsMacWhitelistEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsMacWhitelistMacAddr")) if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setDescription('The entry of table.') hwAsMacWhitelistMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 1), MacAddress()) if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setDescription('The MAC address of white list.') hwAsMacWhitelistRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setDescription('The RowStatus of table.') hwAsMacBlacklistTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7), ) if mibBuilder.loadTexts: hwAsMacBlacklistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistTable.setDescription('The table of blacklist.') hwAsMacBlacklistEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsMacBlacklistMacAddr")) if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setDescription('The entry of table.') hwAsMacBlacklistMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 1), MacAddress()) if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setDescription('The MAC address of black list.') hwAsMacBlacklistRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setDescription('The RowStatus of table.') hwAsEntityPhysicalTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8), ) if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setDescription('The physical table of AS.') hwAsEntityPhysicalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex")) if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setDescription('The entry of table.') hwAsEntityPhysicalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 1), Integer32()) if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setDescription('The physical index of AS.') hwAsEntityPhysicalDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setDescription('A textual description of physical entity. ') hwAsEntityPhysicalVendorType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 3), AutonomousType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setDescription('An indication of the vendor-specific hardware type of the physical entity. ') hwAsEntityPhysicalContainedIn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setDescription("The value of hwAsEntityPhysicalIndex for the physical entity which 'contains' this physical entity. ") hwAsEntityPhysicalClass = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("chassis", 3), ("backplane", 4), ("container", 5), ("powerSupply", 6), ("fan", 7), ("sensor", 8), ("module", 9), ("port", 10), ("stack", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setDescription('An indication of the general hardware type of the physical entity.') hwAsEntityPhysicalParentRelPos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setDescription("An indication of the relative position of this 'child' component among all its 'sibling' components.") hwAsEntityPhysicalName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 7), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setDescription('The textual name of the physical entity. ') hwAsEntityPhysicalHardwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 8), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setDescription('The vendor-specific hardware revision string for the physical entity. ') hwAsEntityPhysicalFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 9), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setDescription('The vendor-specific firmware revision string for the physical entity.') hwAsEntityPhysicalSoftwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 10), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setDescription('The vendor-specific software revision string for the physical entity.') hwAsEntityPhysicalSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 11), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setDescription('The vendor-specific serial number string for the physical entity.') hwAsEntityPhysicalMfgName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 12), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setDescription('The name of the manufacturer of this physical component.') hwAsEntityStateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9), ) if mibBuilder.loadTexts: hwAsEntityStateTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateTable.setDescription('The entity state table.') hwAsEntityStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex")) if mibBuilder.loadTexts: hwAsEntityStateEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateEntry.setDescription('The entry of table.') hwAsEntityAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 11, 12, 13))).clone(namedValues=NamedValues(("notSupported", 1), ("locked", 2), ("shuttingDown", 3), ("unlocked", 4), ("up", 11), ("down", 12), ("loopback", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setDescription('The administrative state for this object.') hwAsEntityOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 11, 12, 13, 15, 16, 17))).clone(namedValues=NamedValues(("notSupported", 1), ("disabled", 2), ("enabled", 3), ("offline", 4), ("up", 11), ("down", 12), ("connect", 13), ("protocolUp", 15), ("linkUp", 16), ("linkDown", 17)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityOperStatus.setDescription('The operational state for this object.') hwAsEntityStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notSupported", 1), ("hotStandby", 2), ("coldStandby", 3), ("providingService", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setDescription('This object is used for monitoring standby status.') hwAsEntityAlarmLight = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 4), AlarmStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityAlarmLight.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setDescription('The alarm status for this entity.') hwAsEntityPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notSupported", 1), ("copper", 2), ("fiber100", 3), ("fiber1000", 4), ("fiber10000", 5), ("opticalnotExist", 6), ("optical", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPortType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPortType.setDescription('Indicates the type of the Ethernet interface.') hwAsEntityAliasMappingTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10), ) if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setDescription('The entity alias mapping table.') hwAsEntityAliasMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntryAliasLogicalIndexOrZero")) if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setDescription('The entry of table.') hwAsEntryAliasLogicalIndexOrZero = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 1), Integer32()) if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setDescription('The value of this object identifies the logical entity.') hwAsEntryAliasMappingIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 2), AutonomousType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setDescription('The value of this object identifies a particular conceptual row associated with the indicated entPhysicalIndex and logical index pair.') hwTopomngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3)) hwTopomngExploreTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1440)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTopomngExploreTime.setStatus('current') if mibBuilder.loadTexts: hwTopomngExploreTime.setDescription('Topology collect time in minutes.') hwTopomngLastCollectDuration = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setStatus('current') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setDescription('Duration of the latest topology collection, measured in milliseconds.') hwTopomngTopoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11), ) if mibBuilder.loadTexts: hwTopomngTopoTable.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoTable.setDescription('The topology table.') hwTopomngTopoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTopoLocalHop"), (0, "HUAWEI-UNIMNG-MIB", "hwTopoLocalMac"), (0, "HUAWEI-UNIMNG-MIB", "hwTopoPeerDeviceIndex")) if mibBuilder.loadTexts: hwTopomngTopoEntry.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoEntry.setDescription('The entry of topology table.') hwTopoLocalHop = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: hwTopoLocalHop.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalHop.setDescription('The topoloy hop.') hwTopoLocalMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 2), MacAddress()) if mibBuilder.loadTexts: hwTopoLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalMac.setDescription('The local device ID, defined by 6 bytes of MAC.') hwTopoPeerDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setDescription('The index of neighbor device.') hwTopoPeerMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerMac.setDescription('The neighbor device ID, defined by 6 bytes of MAC.') hwTopoLocalPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalPortName.setDescription('The port name of local device, same as ifName (defined in IETF RFC 2863).') hwTopoPeerPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerPortName.setDescription('The port name of neighbor device, same as ifName (defined in IETF RFC 2863).') hwTopoLocalTrunkId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setDescription('The trunk ID of local port, 65535 identify the local port is not in trunk.') hwTopoPeerTrunkId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setDescription('The trunk ID of neighbor port, 65535 identify the neighbor port is not in trunk.') hwTopoLocalRole = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("roleUC", 1), ("roleAS", 2), ("roleAP", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalRole.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalRole.setDescription('The role of local topology node.') hwTopoPeerRole = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("roleUC", 1), ("roleAS", 2), ("roleAP", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerRole.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerRole.setDescription('The role of neighbor topology node.') hwMbrmngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4)) hwMbrMngFabricPortTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2), ) if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setDescription('The table of fabric port information.') hwMbrMngFabricPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwMbrMngASId"), (0, "HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortId")) if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setDescription('The entry of the table of fabric port information.') hwMbrMngASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: hwMbrMngASId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngASId.setDescription('AS index, is used to specify thd AS. 65535 represents the parent node.') hwMbrMngFabricPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwMbrMngFabricPortId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortId.setDescription('The Fabric-port index.') hwMbrMngFabricPortMemberIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setDescription("Interface name of the Fabric-port's member.") hwMbrMngFabricPortDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("downDirection", 1), ("upDirection", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setDescription('The direction of Fabric-port.') hwMbrMngFabricPortIndirectFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("indirect", 1), ("direct", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setDescription('The indirect flag of Fabric-port.') hwMbrMngFabricPortDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setDescription('The description of Fabric-port.') hwVermngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5)) hwVermngGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1)) hwVermngFileServerType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("ftp", 1), ("sftp", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngFileServerType.setStatus('current') if mibBuilder.loadTexts: hwVermngFileServerType.setDescription('The type of file server.') hwVermngUpgradeInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2), ) if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setDescription('The table of AS upgrade information.') hwVermngUpgradeInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsIndex")) if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setDescription('The entry of the table of AS upgrade information.') hwVermngUpgradeInfoAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setDescription('The ID of AS.') hwVermngUpgradeInfoAsName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setDescription('The name of AS.') hwVermngUpgradeInfoAsSysSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setDescription('The filename of running system software of AS.') hwVermngUpgradeInfoAsSysSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setDescription('The version of running system software of AS.') hwVermngUpgradeInfoAsSysPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setDescription('The filename of running patch of AS.') hwVermngUpgradeInfoAsDownloadSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setDescription('The filename of system software which will be downloaded to AS.') hwVermngUpgradeInfoAsDownloadSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setDescription('The version of system software which will be downloaded to AS..') hwVermngUpgradeInfoAsDownloadPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setDescription('The filename of patch which will be downloaded to AS.') hwVermngUpgradeInfoAsUpgradeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("noUpgrade", 1), ("upgrading", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setDescription('The upgrade status of AS.') hwVermngUpgradeInfoAsUpgradeType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("verSync", 1), ("manual", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setDescription('The type of upgrade.') hwVermngUpgradeInfoAsFilePhase = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("systemSoftware", 1), ("patch", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setDescription('The file type which is in downloading.') hwVermngUpgradeInfoAsUpgradePhase = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 255))).clone(namedValues=NamedValues(("downloadFile", 1), ("wait", 2), ("activateFile", 3), ("reboot", 4), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setDescription('The state in downloading file.') hwVermngUpgradeInfoAsUpgradeResult = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("successfully", 1), ("failed", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setDescription('The result of upgrade.') hwVermngUpgradeInfoAsErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setDescription('The error code in upgrading.') hwVermngUpgradeInfoAsErrorDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 15), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setDescription('The eroor description in upgrading.') hwVermngAsTypeCfgInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3), ) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setDescription('The table of configuration with AS type.') hwVermngAsTypeCfgInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoAsTypeIndex")) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setDescription('The entry of AS type configuration table.') hwVermngAsTypeCfgInfoAsTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setDescription('The index of AS type.') hwVermngAsTypeCfgInfoAsTypeName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 2), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setDescription('The name of AS type.') hwVermngAsTypeCfgInfoSystemSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 3), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setDescription('The filename of system software configured.') hwVermngAsTypeCfgInfoSystemSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setDescription('The version of system software.') hwVermngAsTypeCfgInfoPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 5), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setDescription('The filename of patch configured.') hwVermngAsTypeCfgInfoRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setDescription('The RowStatus of table.') hwTplmObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6)) hwTplmASGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11), ) if mibBuilder.loadTexts: hwTplmASGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupTable.setDescription('The table of template management with AS group.') hwTplmASGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmASGroupIndex")) if mibBuilder.loadTexts: hwTplmASGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupEntry.setDescription('The entry of AS group table.') hwTplmASGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: hwTplmASGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupIndex.setDescription('The index of AS group table.') hwTplmASGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupName.setDescription('The name of AS group.') hwTplmASAdminProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASAdminProfileName.setStatus('current') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setDescription("The name of AS group's admin profile.") hwTplmASGroupProfileStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setDescription("The status of AS group's admin profile.") hwTplmASGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setDescription('The row status of as group table.') hwTplmASTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12), ) if mibBuilder.loadTexts: hwTplmASTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASTable.setDescription('The table of template management with AS.') hwTplmASEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmASId")) if mibBuilder.loadTexts: hwTplmASEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASEntry.setDescription('The entry of AS table.') hwTplmASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwTplmASId.setStatus('current') if mibBuilder.loadTexts: hwTplmASId.setDescription('AS index.') hwTplmASASGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASASGroupName.setDescription('The name of AS group which the AS belongs to.') hwTplmASRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASRowStatus.setDescription('The row status of as table.') hwTplmPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13), ) if mibBuilder.loadTexts: hwTplmPortGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupTable.setDescription('The table of template management with port group.') hwTplmPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmPortGroupIndex")) if mibBuilder.loadTexts: hwTplmPortGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupEntry.setDescription('The entry of port group table.') hwTplmPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 257))) if mibBuilder.loadTexts: hwTplmPortGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupIndex.setDescription('The index of port group table.') hwTplmPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupName.setDescription('The name of port group.') hwTplmPortGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("service", 1), ("ap", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupType.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupType.setDescription('The type of port group.') hwTplmPortGroupNetworkBasicProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setDescription("The name of port group's network basic profile.") hwTplmPortGroupNetworkEnhancedProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setDescription("The name of port group's network enhanced profile.") hwTplmPortGroupUserAccessProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setDescription("The name of port group's user access profile.") hwTplmPortGroupProfileStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setDescription("The status of port group's profile.") hwTplmPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setDescription('The row status of port group table.') hwTplmPortTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14), ) if mibBuilder.loadTexts: hwTplmPortTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortTable.setDescription("The table of template management with AS's port.") hwTplmPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmPortIfIndex")) if mibBuilder.loadTexts: hwTplmPortEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortEntry.setDescription('The entry of port table.') hwTplmPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 1), Integer32()) if mibBuilder.loadTexts: hwTplmPortIfIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortIfIndex.setDescription("The interface index of AS's port.") hwTplmPortPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setDescription("The name of port group which the AS's port belongs to.") hwTplmPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortRowStatus.setDescription('The row status of port table.') hwTplmConfigManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15)) hwTplmConfigCommitAll = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("commit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTplmConfigCommitAll.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setDescription('Apply configuration of template management to all ASs.') hwTplmConfigManagementTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2), ) if mibBuilder.loadTexts: hwTplmConfigManagementTable.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementTable.setDescription('The table of committing configuration of template management.') hwTplmConfigManagementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmConfigManagementASId")) if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setDescription('The entry of committing table.') hwTplmConfigManagementASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwTplmConfigManagementASId.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementASId.setDescription('AS index.') hwTplmConfigManagementCommit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("commit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setDescription('Apply configuration of template management to the specified AS.') hwUnimngNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31)) hwTopomngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1)) hwTopomngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1)) hwTopomngTrapLocalMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setDescription('Topomng trap message local MAC, defined as the device ID.') hwTopomngTrapLocalPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setDescription('Topomng trap message local port name.') hwTopomngTrapLocalTrunkId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setDescription('Topomng trap message local trunk ID, 65535 defines a phy port.') hwTopomngTrapPeerMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setDescription('Topomng trap message peer MAC, defined as the device ID.') hwTopomngTrapPeerPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setDescription('Topomng trap message peer port name.') hwTopomngTrapPeerTrunkId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setDescription('Topomng trap message peer trunk ID, 65535 defines a phy port.') hwTopomngTrapReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapReason.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapReason.setDescription('Topomng trap message Reason.') hwTopomngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2)) hwTopomngLinkNormal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if mibBuilder.loadTexts: hwTopomngLinkNormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkNormal.setDescription('The notification of topology link normal.') hwTopomngLinkAbnormal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setDescription('The notification of topology link abnormal.') hwAsmngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2)) hwAsmngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1)) hwAsmngTrapAsIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setDescription('The AS index.') hwAsmngTrapAsModel = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setDescription('The model of AS.') hwAsmngTrapAsSysName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 3), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setDescription('The name of AS.') hwAsmngTrapAsMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setDescription('The MAC address of AS.') hwAsmngTrapAsSn = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 5), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setDescription('The SN of AS.') hwAsmngTrapAsIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setDescription('The interface index of AS.') hwAsmngTrapAsIfOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 7), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setDescription('The operation stauts of AS.') hwAsmngTrapAsFaultTimes = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 8), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setDescription('The fault times of AS.') hwAsmngTrapAsIfAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 9), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setDescription('AS interface adminnistrator status.') hwAsmngTrapAsIfName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 10), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setDescription('The name of AS.') hwAsmngTrapAsActualeType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 11), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setDescription('The actual type of AS.') hwAsmngTrapAsVersion = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 12), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setDescription('The version of AS.') hwAsmngTrapParentVersion = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 13), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setDescription('The version of parent.') hwAsmngTrapAddedAsMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 14), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setDescription('The MAC address of added AS.') hwAsmngTrapAsSlotId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 15), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setDescription('The slot ID of AS.') hwAsmngTrapAddedAsSlotType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 16), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setDescription('The slot type of added AS.') hwAsmngTrapAsPermitNum = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 17), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setDescription('The maxium number of permitted AS.') hwAsmngTrapAsUnimngMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 18), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setDescription('The UNI-MNG mode of AS.') hwAsmngTrapParentUnimngMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 19), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setDescription('The UNI-MNG mode of parent.') hwAsmngTrapAsIfType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 20), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setDescription('The interface type of AS.') hwAsmngTrapAsOnlineFailReasonId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 21), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setDescription('The reason ID of AS online failed.') hwAsmngTrapAsOnlineFailReasonDesc = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 22), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setDescription('The description of AS online failed.') hwAsmngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2)) hwAsFaultNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsFaultTimes")) if mibBuilder.loadTexts: hwAsFaultNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFaultNotify.setDescription('This notification occurs when AS become fault.') hwAsNormalNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsNormalNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNormalNotify.setDescription('This notification occurs when AS become normal.') hwAsAddOffLineNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsAddOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsAddOffLineNotify.setDescription('This notification occurs when added an AS offline.') hwAsDelOffLineNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsDelOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsDelOffLineNotify.setDescription('This notification occurs when deleted an AS offline.') hwAsPortStateChangeToDownNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus")) if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setDescription('This notification occurs when port status changed to DOWN.') hwAsPortStateChangeToUpNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus")) if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setDescription('This notification occurs when port status changed to UP.') hwAsModelNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsActualeType")) if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setDescription('This notification occurs when the model of AS is mismatch.') hwAsVersionNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 8)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentVersion")) if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setDescription('This notification occurs when the version of AS is mismatch.') hwAsNameConflictNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 9)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsMac")) if mibBuilder.loadTexts: hwAsNameConflictNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNameConflictNotify.setDescription('This notification occurs when the name of AS is conflicted.') hwAsSlotModelNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 10)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsSlotType")) if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setDescription('This notification occurs when the slot model of AS is mismatch.') hwAsFullNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 11)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsPermitNum")) if mibBuilder.loadTexts: hwAsFullNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFullNotify.setDescription('This notification occurs when the model of a slot is different from other slots.') hwUnimngModeNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 12)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentUnimngMode")) if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setDescription("This notification occurs when the UNI-MNG mode of AS is different parent's.") hwAsBoardAddNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 13)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardAddNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardAddNotify.setDescription('This notification occurs when a slot is added.') hwAsBoardDeleteNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 14)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setDescription('This notification occurs when a slot is deleted.') hwAsBoardPlugInNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 15)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setDescription('This notification occurs when a slot is plugged in.') hwAsBoardPlugOutNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 16)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setDescription('This notification occurs when a slot is pulled out.') hwAsInBlacklistNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 17)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsInBlacklistNotify.setStatus('current') if mibBuilder.loadTexts: hwAsInBlacklistNotify.setDescription('This notification occurs when AS is in blacklist.') hwAsUnconfirmedNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 18)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setStatus('current') if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setDescription('This notification occurs when AS is not confirmed.') hwAsComboPortTypeChangeNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 19)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfType")) if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setStatus('current') if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setDescription('This notification occurs when combo type change.') hwAsOnlineFailNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 20)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonDesc")) if mibBuilder.loadTexts: hwAsOnlineFailNotify.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineFailNotify.setDescription('This notification occurs when AS online failed.') hwAsSlotIdInvalidNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 21)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setDescription('This notification occurs when the slot ID of AS is invalid.') hwAsSysmacSwitchCfgErrNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 22)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName")) if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setDescription('This notification occurs when the configuration of system MAC address switching delay is error.') hwUniMbrTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3)) hwUniMbrTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1)) hwUniMbrLinkStatTrapLocalMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setDescription('UNIMBR trap message local mac.') hwUniMbrLinkStatTrapLocalPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setDescription('UNIMBR trap message local port name.') hwUniMbrLinkStatTrapChangeType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up2down", 1), ("down2up", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setDescription('UNIMBR trap message changing type of link state.') hwUniMbrTrapConnectErrorReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 4), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setDescription('The reason of UNIMBR fabric-port connect error.') hwUniMbrTrapReceivePktRate = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 5), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setDescription('AS Discover packet rate.') hwUniMbrTrapAsIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setDescription('AS index.') hwUniMbrTrapAsSysName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 7), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setDescription('Name of AS.') hwUniMbrParaSynFailReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 8), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setDescription('The reason of UNIMBR parameter synchronization failed.') hwUniMbrTrapIllegalConfigReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 9), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setDescription('The reason of UNIMBR illegal configuration.') hwUniMbrTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2)) hwUniMbrConnectError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapConnectErrorReason")) if mibBuilder.loadTexts: hwUniMbrConnectError.setStatus('current') if mibBuilder.loadTexts: hwUniMbrConnectError.setDescription('The notification of fabric-port connect error.') hwUniMbrASDiscoverAttack = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapReceivePktRate")) if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setStatus('current') if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setDescription('An AS discover packet attack is detected.') hwUniMbrFabricPortMemberDelete = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName")) if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setStatus('current') if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setDescription('The notification of deleting member of fabric port.') hwUniMbrIllegalFabricConfig = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapIllegalConfigReason")) if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setStatus('current') if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setDescription('The notification of IllegalFabricConfig.') hwVermngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4)) hwVermngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 1)) hwVermngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2)) hwVermngUpgradeFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorCode"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorDescr")) if mibBuilder.loadTexts: hwVermngUpgradeFail.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeFail.setDescription('Upgrade failed.') hwTplmTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5)) hwTplmTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1)) hwTplmTrapASName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTplmTrapASName.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapASName.setDescription('The name of AS.') hwTplmTrapFailedReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTplmTrapFailedReason.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setDescription('The reason of failure.') hwTplmTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2)) hwTplmCmdExecuteFailedNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName"), ("HUAWEI-UNIMNG-MIB", "hwTplmTrapFailedReason")) if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setDescription('The notification of command execution failure.') hwTplmCmdExecuteSuccessfulNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName")) if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setDescription('The notification of command execution failure cleared.') hwTplmDirectCmdRecoverFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName")) if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setStatus('current') if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setDescription('The notification of direct command recovery failure.') hwUniAsBaseTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6)) hwUniAsBaseTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1)) hwUniAsBaseAsName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 1), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseAsName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsName.setDescription('The name of AS.') hwUniAsBaseAsId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseAsId.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsId.setDescription('AS id.') hwUniAsBaseEntityPhysicalIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 3), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setDescription('The index of AS physical.') hwUniAsBaseTrapSeverity = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setDescription('To describe the level of trap.') hwUniAsBaseTrapProbableCause = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 5), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setDescription('To describe the probable cause of trap.') hwUniAsBaseTrapEventType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setDescription('To describe the type of trap.') hwUniAsBaseEntPhysicalContainedIn = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 7), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setDescription('The value of entPhysicalIndex for the physical entity which contains this physical entity.') hwUniAsBaseEntPhysicalName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 8), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setDescription('The textual name of the physical entity.') hwUniAsBaseRelativeResource = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 9), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setDescription('This object may contain a key word to indicate the relative resource of an entity.') hwUniAsBaseReasonDescription = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 10), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setDescription('Reason description.') hwUniAsBaseThresholdType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 11), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setDescription('The index to indicate the type of threshold for an entry.') hwUniAsBaseThresholdValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 12), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setDescription('The current value that been measured.') hwUniAsBaseThresholdUnit = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 13), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setDescription('The unit for this threshold value.') hwUniAsBaseThresholdHighWarning = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 14), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setDescription('The normal warning threshold for rising alarm.') hwUniAsBaseThresholdHighCritical = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 15), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setDescription('The critical alarm threshold for rising alarm.') hwUniAsBaseThresholdLowWarning = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 16), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setDescription('The normal warning threshold for falling alarm.') hwUniAsBaseThresholdLowCritical = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 17), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setDescription('The critical alarm threshold for falling alarm.') hwUniAsBaseEntityTrapEntType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 18), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setDescription('The entity type.') hwUniAsBaseEntityTrapEntFaultID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 19), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setDescription('To describe the fault id of trap.') hwUniAsBaseEntityTrapCommunicateType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 20), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setDescription('The communicate type.') hwUniAsBaseThresholdEntValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 21), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setDescription('The threshold value.') hwUniAsBaseThresholdEntCurrent = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 22), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setDescription('The current value that been measured.') hwUniAsBaseEntPhysicalIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 23), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setDescription('The index of AS physical.') hwUniAsBaseThresholdHwBaseThresholdType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 24), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setDescription('The type of base threshold.') hwUniAsBaseThresholdHwBaseThresholdIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 25), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setDescription('The index of base threshold.') hwUniAsBaseTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2)) hwASEnvironmentTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2)) hwASBrdTempAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBrdTempAlarm.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempAlarm.setDescription('Temperature rise over or fall below the warning alarm threshold.') hwASBrdTempResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBrdTempResume.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempResume.setDescription('Temperature back to normal level.') hwASBoardTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3)) hwASBoardFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBoardFail.setStatus('current') if mibBuilder.loadTexts: hwASBoardFail.setDescription('Board become failure for some reason.') hwASBoardFailResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBoardFailResume.setStatus('current') if mibBuilder.loadTexts: hwASBoardFailResume.setDescription('Board resume from failure.') hwASOpticalTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4)) hwASOpticalInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASOpticalInvalid.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalid.setDescription('Optical Module is invalid for some reason.') hwASOpticalInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASOpticalInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalidResume.setDescription('Optical Module resume from invalid situation.') hwASPowerTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5)) hwASPowerRemove = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerRemove.setStatus('current') if mibBuilder.loadTexts: hwASPowerRemove.setDescription('Power has been removed.') hwASPowerInsert = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInsert.setStatus('current') if mibBuilder.loadTexts: hwASPowerInsert.setDescription('Power has been inserted.') hwASPowerInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInvalid.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalid.setDescription('Power is invalid for some reason.') hwASPowerInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalidResume.setDescription('Power resume from invalid situation.') hwASFanTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6)) hwASFanRemove = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanRemove.setStatus('current') if mibBuilder.loadTexts: hwASFanRemove.setDescription('Fan has been removed.') hwASFanInsert = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInsert.setStatus('current') if mibBuilder.loadTexts: hwASFanInsert.setDescription('Fan has been inserted.') hwASFanInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInvalid.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalid.setDescription('Fan is invalid for some reason.') hwASFanInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalidResume.setDescription('Fan resume from invalid situation.') hwASCommunicateTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7)) hwASCommunicateError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType")) if mibBuilder.loadTexts: hwASCommunicateError.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateError.setDescription('Communication error has been detected.') hwASCommunicateResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType")) if mibBuilder.loadTexts: hwASCommunicateResume.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateResume.setDescription('Resume from communication error situation.') hwASCPUTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8)) hwASCPUUtilizationRising = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASCPUUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationRising.setDescription('CPU utilization overrun.') hwASCPUUtilizationResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASCPUUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationResume.setDescription('CPU utilization back to normal level.') hwASMemoryTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9)) hwASMemUtilizationRising = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASMemUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationRising.setDescription('Memory utilization overrun.') hwASMemUtilizationResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASMemUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationResume.setDescription('Memory utilization back to normal level.') hwASMadTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10)) hwASMadConflictDetect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId")) if mibBuilder.loadTexts: hwASMadConflictDetect.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictDetect.setDescription('Notify the NMS that dual-active scenario is detected.') hwASMadConflictResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId")) if mibBuilder.loadTexts: hwASMadConflictResume.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictResume.setDescription('Notify the NMS that dual-active scenario is merged.') hwUnimngConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50)) hwTopomngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1)) hwTopomngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTopoGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngCompliance = hwTopomngCompliance.setStatus('current') if mibBuilder.loadTexts: hwTopomngCompliance.setDescription('The compliance statement for SNMP entities supporting topomng.') hwTopomngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngExploreTime"), ("HUAWEI-UNIMNG-MIB", "hwTopomngLastCollectDuration")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngObjectsGroup = hwTopomngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngObjectsGroup.setDescription('The topomng objects group.') hwTopomngTopoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopoPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalRole"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerRole")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTopoGroup = hwTopomngTopoGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoGroup.setDescription('The topology table group.') hwTopomngTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTrapObjectsGroup = hwTopomngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapObjectsGroup.setDescription('The topomng trap objects group.') hwTopomngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngLinkNormal"), ("HUAWEI-UNIMNG-MIB", "hwTopomngLinkAbnormal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTrapsGroup = hwTopomngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapsGroup.setDescription('The topomng notification objects group.') hwAsmngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2)) hwAsmngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsIfGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsIfXGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngGlobalObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngMacWhitelistGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngMacBlacklistGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityPhysicalGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityStateGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityAliasMappingGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngSlotGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngCompliance = hwAsmngCompliance.setStatus('current') if mibBuilder.loadTexts: hwAsmngCompliance.setDescription('The compliance statement for SNMP entities supporting asmng.') hwAsmngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMngEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngObjectsGroup = hwAsmngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngObjectsGroup.setDescription('The AS management objects group.') hwAsmngAsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsHardwareVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsIpAddress"), ("HUAWEI-UNIMNG-MIB", "hwAsIpNetMask"), ("HUAWEI-UNIMNG-MIB", "hwAsAccessUser"), ("HUAWEI-UNIMNG-MIB", "hwAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsSn"), ("HUAWEI-UNIMNG-MIB", "hwAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsRunState"), ("HUAWEI-UNIMNG-MIB", "hwAsSoftwareVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsDns"), ("HUAWEI-UNIMNG-MIB", "hwAsOnlineTime"), ("HUAWEI-UNIMNG-MIB", "hwAsCpuUseage"), ("HUAWEI-UNIMNG-MIB", "hwAsMemoryUseage"), ("HUAWEI-UNIMNG-MIB", "hwAsSysMac"), ("HUAWEI-UNIMNG-MIB", "hwAsStackEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsGatewayIp"), ("HUAWEI-UNIMNG-MIB", "hwAsRowstatus"), ("HUAWEI-UNIMNG-MIB", "hwAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsVpnInstance")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsGroup = hwAsmngAsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsGroup.setDescription('The as table group.') hwAsmngAsIfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsIfDescr"), ("HUAWEI-UNIMNG-MIB", "hwAsIfType"), ("HUAWEI-UNIMNG-MIB", "hwAsIfMtu"), ("HUAWEI-UNIMNG-MIB", "hwAsIfSpeed"), ("HUAWEI-UNIMNG-MIB", "hwAsIfPhysAddress"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsIfGroup = hwAsmngAsIfGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfGroup.setDescription('The as table group.') hwAsmngAsIfXGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsIfLinkUpDownTrapEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHighSpeed"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAlias"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHCOutOctets"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInMulticastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInBroadcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutMulticastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutBroadcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHCInOctets"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAsId"), ("HUAWEI-UNIMNG-MIB", "hwAsIfName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsIfXGroup = hwAsmngAsIfXGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfXGroup.setDescription('The as table group.') hwAsmngTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSn"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsFaultTimes"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsActualeType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsSlotType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsPermitNum"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonDesc")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngTrapObjectsGroup = hwAsmngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapObjectsGroup.setDescription('The AS management trap objects group.') hwAsmngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsFaultNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsNormalNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsAddOffLineNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsDelOffLineNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsPortStateChangeToDownNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsPortStateChangeToUpNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsModelNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsVersionNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsNameConflictNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotModelNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsFullNotify"), ("HUAWEI-UNIMNG-MIB", "hwUnimngModeNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardAddNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardDeleteNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardPlugInNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardPlugOutNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsInBlacklistNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsUnconfirmedNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsComboPortTypeChangeNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsOnlineFailNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotIdInvalidNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSysmacSwitchCfgErrNotify")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngTrapsGroup = hwAsmngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapsGroup.setDescription('The AS management notification objects group.') hwAsmngGlobalObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsAutoReplaceEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsAuthMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngGlobalObjectsGroup = hwAsmngGlobalObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngGlobalObjectsGroup.setDescription('Description.') hwAsmngMacWhitelistGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 8)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsMacWhitelistRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngMacWhitelistGroup = hwAsmngMacWhitelistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacWhitelistGroup.setDescription('Description.') hwAsmngMacBlacklistGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 9)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsMacBlacklistRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngMacBlacklistGroup = hwAsmngMacBlacklistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacBlacklistGroup.setDescription('Description.') hwAsmngEntityPhysicalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 10)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalDescr"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalVendorType"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalContainedIn"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalClass"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalParentRelPos"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalHardwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalFirmwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalSoftwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalSerialNum"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalMfgName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityPhysicalGroup = hwAsmngEntityPhysicalGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityPhysicalGroup.setDescription('Description.') hwAsmngEntityStateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 11)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntityAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityStandbyStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityAlarmLight"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPortType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityStateGroup = hwAsmngEntityStateGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityStateGroup.setDescription('Description.') hwAsmngEntityAliasMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 12)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntryAliasMappingIdentifier")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityAliasMappingGroup = hwAsmngEntityAliasMappingGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityAliasMappingGroup.setDescription('Description.') hwAsmngSlotGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 13)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsSlotState"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngSlotGroup = hwAsmngSlotGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngSlotGroup.setDescription('Description.') hwMbrCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3)) hwMbrCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwMbrTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwMbrTrapsGroup"), ("HUAWEI-UNIMNG-MIB", "hwMbrFabricPortGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrCompliance = hwMbrCompliance.setStatus('current') if mibBuilder.loadTexts: hwMbrCompliance.setDescription('The compliance statement for SNMP entities supporting mbrmng.') hwMbrTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapChangeType"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapConnectErrorReason"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapReceivePktRate"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrParaSynFailReason"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapIllegalConfigReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrTrapObjectsGroup = hwMbrTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapObjectsGroup.setDescription('The mbrmng trap objects group.') hwMbrTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrConnectError"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrASDiscoverAttack"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrFabricPortMemberDelete"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrIllegalFabricConfig")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrTrapsGroup = hwMbrTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapsGroup.setDescription('The mbrmng notification objects group.') hwMbrFabricPortGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortMemberIfName"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortDirection"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortIndirectFlag"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortDescription")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrFabricPortGroup = hwMbrFabricPortGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrFabricPortGroup.setDescription('The mbrmng fabric port group.') hwVermngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4)) hwVermngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngCompliance = hwVermngCompliance.setStatus('current') if mibBuilder.loadTexts: hwVermngCompliance.setDescription('The compliance of version management.') hwVermngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngFileServerType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngObjectsGroup = hwVermngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngObjectsGroup.setDescription('The group of global objects.') hwVermngUpgradeInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsName"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeState"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeType"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsFilePhase"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradePhase"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeResult"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorCode"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorDescr")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngUpgradeInfoGroup = hwVermngUpgradeInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoGroup.setDescription('The group of upgrade info.') hwVermngAsTypeCfgInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoSystemSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoRowStatus"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoSystemSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoAsTypeName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngAsTypeCfgInfoGroup = hwVermngAsTypeCfgInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoGroup.setDescription('The group of AS type.') hwVermngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeFail")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngTrapsGroup = hwVermngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngTrapsGroup.setDescription('The group of notification of version management.') hwTplmCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5)) hwTplmCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmCompliance = hwTplmCompliance.setStatus('current') if mibBuilder.loadTexts: hwTplmCompliance.setDescription('The compliance of template management.') hwTplmASGroupGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmASGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASAdminProfileName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASGroupProfileStatus"), ("HUAWEI-UNIMNG-MIB", "hwTplmASGroupRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmASGroupGoup = hwTplmASGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupGoup.setDescription('The group of as group.') hwTplmASGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmASASGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmASGoup = hwTplmASGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGoup.setDescription('The group of as.') hwTplmPortGroupGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupType"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupNetworkBasicProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupNetworkEnhancedProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupUserAccessProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupProfileStatus"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmPortGroupGoup = hwTplmPortGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupGoup.setDescription('The group of port group.') hwTplmPortGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmPortPortGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmPortGoup = hwTplmPortGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGoup.setDescription('The group of port.') hwTplmConfigManagementGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmConfigCommitAll"), ("HUAWEI-UNIMNG-MIB", "hwTplmConfigManagementCommit")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmConfigManagementGoup = hwTplmConfigManagementGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementGoup.setDescription('The group of configuration management.') hwTplmTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName"), ("HUAWEI-UNIMNG-MIB", "hwTplmTrapFailedReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmTrapObjectsGroup = hwTplmTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapObjectsGroup.setDescription('The tplm trap objects group.') hwTplmTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmCmdExecuteFailedNotify"), ("HUAWEI-UNIMNG-MIB", "hwTplmCmdExecuteSuccessfulNotify"), ("HUAWEI-UNIMNG-MIB", "hwTplmDirectCmdRecoverFail")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmTrapsGroup = hwTplmTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapsGroup.setDescription('The tplm notification objects group.') hwUniBaseTrapCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6)) hwUniBaseTrapCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniBaseTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwUniBaseTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapCompliance = hwUniBaseTrapCompliance.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapCompliance.setDescription('The compliance statement for SNMP entities supporting unimng base trap.') hwUniBaseTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapSeverity"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapProbableCause"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapEventType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalContainedIn"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseRelativeResource"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseReasonDescription"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdUnit"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHighWarning"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHighCritical"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdLowWarning"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdLowCritical"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHwBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHwBaseThresholdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapObjectsGroup = hwUniBaseTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapObjectsGroup.setDescription('The unimng base trap objects group.') hwUniBaseTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwASBoardFail"), ("HUAWEI-UNIMNG-MIB", "hwASBoardFailResume"), ("HUAWEI-UNIMNG-MIB", "hwASOpticalInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASOpticalInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASPowerRemove"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInsert"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASFanRemove"), ("HUAWEI-UNIMNG-MIB", "hwASFanInsert"), ("HUAWEI-UNIMNG-MIB", "hwASFanInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASFanInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASCommunicateError"), ("HUAWEI-UNIMNG-MIB", "hwASCommunicateResume"), ("HUAWEI-UNIMNG-MIB", "hwASCPUUtilizationRising"), ("HUAWEI-UNIMNG-MIB", "hwASCPUUtilizationResume"), ("HUAWEI-UNIMNG-MIB", "hwASMemUtilizationRising"), ("HUAWEI-UNIMNG-MIB", "hwASMemUtilizationResume"), ("HUAWEI-UNIMNG-MIB", "hwASMadConflictDetect"), ("HUAWEI-UNIMNG-MIB", "hwASMadConflictResume"), ("HUAWEI-UNIMNG-MIB", "hwASBrdTempAlarm"), ("HUAWEI-UNIMNG-MIB", "hwASBrdTempResume")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapsGroup = hwUniBaseTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapsGroup.setDescription('The unimng base notification objects group.') mibBuilder.exportSymbols("HUAWEI-UNIMNG-MIB", hwTopomngTrapReason=hwTopomngTrapReason, hwUnimngConformance=hwUnimngConformance, hwTplmPortIfIndex=hwTplmPortIfIndex, hwVermngFileServerType=hwVermngFileServerType, hwAsDns=hwAsDns, hwUniMbrTrapReceivePktRate=hwUniMbrTrapReceivePktRate, hwTopomngTrapObjects=hwTopomngTrapObjects, hwTopomngLastCollectDuration=hwTopomngLastCollectDuration, hwTopoPeerRole=hwTopoPeerRole, hwTplmTraps=hwTplmTraps, hwUniAsBaseThresholdLowWarning=hwUniAsBaseThresholdLowWarning, hwMbrCompliances=hwMbrCompliances, hwUniAsBaseReasonDescription=hwUniAsBaseReasonDescription, hwAsSlotRowStatus=hwAsSlotRowStatus, hwASPowerInvalidResume=hwASPowerInvalidResume, hwVermngCompliances=hwVermngCompliances, hwAsmngTrapParentUnimngMode=hwAsmngTrapParentUnimngMode, hwTopoLocalTrunkId=hwTopoLocalTrunkId, hwASEnvironmentTrap=hwASEnvironmentTrap, hwAsFullNotify=hwAsFullNotify, hwTplmASEntry=hwTplmASEntry, hwTopomngTrapPeerTrunkId=hwTopomngTrapPeerTrunkId, hwAsDelOffLineNotify=hwAsDelOffLineNotify, hwTplmCmdExecuteFailedNotify=hwTplmCmdExecuteFailedNotify, hwMbrMngFabricPortId=hwMbrMngFabricPortId, hwAsIfAsId=hwAsIfAsId, hwUniAsBaseThresholdEntCurrent=hwUniAsBaseThresholdEntCurrent, hwVermngAsTypeCfgInfoTable=hwVermngAsTypeCfgInfoTable, hwTplmDirectCmdRecoverFail=hwTplmDirectCmdRecoverFail, hwUniBaseTrapObjectsGroup=hwUniBaseTrapObjectsGroup, hwASPowerInsert=hwASPowerInsert, hwAsIfLinkUpDownTrapEnable=hwAsIfLinkUpDownTrapEnable, hwAsmngTrapAsUnimngMode=hwAsmngTrapAsUnimngMode, hwAsIfOutMulticastPkts=hwAsIfOutMulticastPkts, hwAsEntityPhysicalDescr=hwAsEntityPhysicalDescr, hwUniAsBaseThresholdHwBaseThresholdIndex=hwUniAsBaseThresholdHwBaseThresholdIndex, hwAsSlotIdInvalidNotify=hwAsSlotIdInvalidNotify, hwUnimngNotification=hwUnimngNotification, hwAsIfName=hwAsIfName, hwVermngUpgradeInfoAsUpgradeResult=hwVermngUpgradeInfoAsUpgradeResult, hwAsIfDescr=hwAsIfDescr, hwVermngUpgradeInfoAsSysSoftwareVer=hwVermngUpgradeInfoAsSysSoftwareVer, hwVermngUpgradeInfoAsDownloadSoftwareVer=hwVermngUpgradeInfoAsDownloadSoftwareVer, hwTopoLocalHop=hwTopoLocalHop, hwAsEntityOperStatus=hwAsEntityOperStatus, hwTplmPortRowStatus=hwTplmPortRowStatus, hwTplmPortGroupProfileStatus=hwTplmPortGroupProfileStatus, hwAsBoardPlugInNotify=hwAsBoardPlugInNotify, hwTplmPortGroupRowStatus=hwTplmPortGroupRowStatus, hwAsIpNetMask=hwAsIpNetMask, hwAsmngTrapAsSn=hwAsmngTrapAsSn, hwAsIfTable=hwAsIfTable, hwAsUnconfirmedNotify=hwAsUnconfirmedNotify, hwAsEntityPhysicalIndex=hwAsEntityPhysicalIndex, hwAsmngTrapsGroup=hwAsmngTrapsGroup, hwTplmTrap=hwTplmTrap, hwAsEntityPhysicalHardwareRev=hwAsEntityPhysicalHardwareRev, hwUniAsBaseTraps=hwUniAsBaseTraps, hwTplmASGroupProfileStatus=hwTplmASGroupProfileStatus, hwVermngCompliance=hwVermngCompliance, hwAsMacBlacklistTable=hwAsMacBlacklistTable, hwUniAsBaseEntityPhysicalIndex=hwUniAsBaseEntityPhysicalIndex, hwVermngAsTypeCfgInfoAsTypeIndex=hwVermngAsTypeCfgInfoAsTypeIndex, hwAsIfInBroadcastPkts=hwAsIfInBroadcastPkts, hwASOpticalInvalidResume=hwASOpticalInvalidResume, hwTplmCompliance=hwTplmCompliance, hwAsEntityPhysicalContainedIn=hwAsEntityPhysicalContainedIn, hwMbrmngObjects=hwMbrmngObjects, hwAsSlotState=hwAsSlotState, hwUniAsBaseThresholdHighCritical=hwUniAsBaseThresholdHighCritical, hwASPowerRemove=hwASPowerRemove, hwAsIfOutBroadcastPkts=hwAsIfOutBroadcastPkts, hwVermngAsTypeCfgInfoSystemSoftware=hwVermngAsTypeCfgInfoSystemSoftware, hwAsFaultNotify=hwAsFaultNotify, hwAsmngAsIfGroup=hwAsmngAsIfGroup, hwAsmngTrapAsActualeType=hwAsmngTrapAsActualeType, hwAsEntityPortType=hwAsEntityPortType, hwTopomngExploreTime=hwTopomngExploreTime, hwUniMbrTrapIllegalConfigReason=hwUniMbrTrapIllegalConfigReason, hwTplmPortGroupNetworkBasicProfile=hwTplmPortGroupNetworkBasicProfile, hwUniMbrTrapAsSysName=hwUniMbrTrapAsSysName, hwASFanInsert=hwASFanInsert, hwAsAutoReplaceEnable=hwAsAutoReplaceEnable, hwVermngTrapsGroup=hwVermngTrapsGroup, hwTopomngObjects=hwTopomngObjects, hwUniMbrLinkStatTrapLocalMac=hwUniMbrLinkStatTrapLocalMac, PYSNMP_MODULE_ID=hwUnimngMIB, hwUniAsBaseTrap=hwUniAsBaseTrap, hwVermngUpgradeInfoTable=hwVermngUpgradeInfoTable, hwAsMacBlacklistMacAddr=hwAsMacBlacklistMacAddr, hwTopomngCompliances=hwTopomngCompliances, hwAsEntityPhysicalName=hwAsEntityPhysicalName, hwAsMacBlacklistRowStatus=hwAsMacBlacklistRowStatus, hwVermngUpgradeInfoAsUpgradePhase=hwVermngUpgradeInfoAsUpgradePhase, hwAsRowstatus=hwAsRowstatus, hwMbrMngASId=hwMbrMngASId, hwMbrMngFabricPortEntry=hwMbrMngFabricPortEntry, hwASCommunicateResume=hwASCommunicateResume, hwAsMacWhitelistMacAddr=hwAsMacWhitelistMacAddr, hwAsIfAlias=hwAsIfAlias, hwUniMbrTrapObjects=hwUniMbrTrapObjects, hwVermngUpgradeInfoAsIndex=hwVermngUpgradeInfoAsIndex, hwTplmObjects=hwTplmObjects, hwAsIndex=hwAsIndex, hwASOpticalInvalid=hwASOpticalInvalid, hwAsIfSpeed=hwAsIfSpeed, hwAsIfHCOutOctets=hwAsIfHCOutOctets, hwTopomngTopoGroup=hwTopomngTopoGroup, hwTplmPortGroupTable=hwTplmPortGroupTable, hwAsNameConflictNotify=hwAsNameConflictNotify, hwUniMbrConnectError=hwUniMbrConnectError, hwUniBaseTrapCompliance=hwUniBaseTrapCompliance, hwAsmngMacWhitelistGroup=hwAsmngMacWhitelistGroup, hwAsPortStateChangeToDownNotify=hwAsPortStateChangeToDownNotify, hwTplmCompliances=hwTplmCompliances, hwUniAsBaseThresholdLowCritical=hwUniAsBaseThresholdLowCritical, hwUniAsBaseThresholdEntValue=hwUniAsBaseThresholdEntValue, hwUniAsBaseRelativeResource=hwUniAsBaseRelativeResource, hwTopomngObjectsGroup=hwTopomngObjectsGroup, hwAsEntry=hwAsEntry, hwAsVersionNotMatchNotify=hwAsVersionNotMatchNotify, hwVermngAsTypeCfgInfoRowStatus=hwVermngAsTypeCfgInfoRowStatus, hwMbrCompliance=hwMbrCompliance, hwAsmngTrapAsIfAdminStatus=hwAsmngTrapAsIfAdminStatus, hwUniMngEnable=hwUniMngEnable, hwVermngUpgradeInfoEntry=hwVermngUpgradeInfoEntry, hwAsEntityStateEntry=hwAsEntityStateEntry, hwAsEntityPhysicalSoftwareRev=hwAsEntityPhysicalSoftwareRev, hwTplmConfigManagementTable=hwTplmConfigManagementTable, hwAsComboPortTypeChangeNotify=hwAsComboPortTypeChangeNotify, hwAsBoardAddNotify=hwAsBoardAddNotify, hwAsMacWhitelistTable=hwAsMacWhitelistTable, hwMbrFabricPortGroup=hwMbrFabricPortGroup, hwAsmngGlobalObjects=hwAsmngGlobalObjects, hwAsIfAdminStatus=hwAsIfAdminStatus, hwUniBaseTrapsGroup=hwUniBaseTrapsGroup, hwTplmASGroupEntry=hwTplmASGroupEntry, hwUniMbrIllegalFabricConfig=hwUniMbrIllegalFabricConfig, hwAsIfInMulticastPkts=hwAsIfInMulticastPkts, hwTplmPortGoup=hwTplmPortGoup, hwVermngUpgradeInfoAsUpgradeState=hwVermngUpgradeInfoAsUpgradeState, hwUniMbrLinkStatTrapLocalPortName=hwUniMbrLinkStatTrapLocalPortName, hwVermngTrap=hwVermngTrap, hwTplmTrapsGroup=hwTplmTrapsGroup, hwAsIpAddress=hwAsIpAddress, hwASFanRemove=hwASFanRemove, hwUniAsBaseEntityTrapEntType=hwUniAsBaseEntityTrapEntType, hwUniAsBaseEntityTrapEntFaultID=hwUniAsBaseEntityTrapEntFaultID, hwAsmngTrapAsOnlineFailReasonDesc=hwAsmngTrapAsOnlineFailReasonDesc, hwVermngUpgradeInfoAsUpgradeType=hwVermngUpgradeInfoAsUpgradeType, hwUnimngMIB=hwUnimngMIB, hwAsSlotTable=hwAsSlotTable, hwAsmngTrapAsModel=hwAsmngTrapAsModel, hwAsmngObjects=hwAsmngObjects, hwVermngTrapObjects=hwVermngTrapObjects, hwAsmngTrapAsIfType=hwAsmngTrapAsIfType, hwAsEntityAliasMappingTable=hwAsEntityAliasMappingTable, hwASCommunicateError=hwASCommunicateError, hwVermngGlobalObjects=hwVermngGlobalObjects, hwAsIfPhysAddress=hwAsIfPhysAddress, hwAsmngTrapAsOnlineFailReasonId=hwAsmngTrapAsOnlineFailReasonId, hwAsEntityStandbyStatus=hwAsEntityStandbyStatus, hwTplmPortGroupGoup=hwTplmPortGroupGoup, hwUniMbrTraps=hwUniMbrTraps, hwAsEntryAliasMappingIdentifier=hwAsEntryAliasMappingIdentifier, hwAsIfInUcastPkts=hwAsIfInUcastPkts, hwUniMbrTrapConnectErrorReason=hwUniMbrTrapConnectErrorReason, hwTplmTrapFailedReason=hwTplmTrapFailedReason, hwAsmngSlotGroup=hwAsmngSlotGroup, hwTopomngTopoEntry=hwTopomngTopoEntry, hwTplmPortGroupEntry=hwTplmPortGroupEntry, hwAsEntityAdminStatus=hwAsEntityAdminStatus, hwTplmConfigManagementASId=hwTplmConfigManagementASId, hwAsEntityPhysicalEntry=hwAsEntityPhysicalEntry, hwAsHardwareVersion=hwAsHardwareVersion, hwVermngObjectsGroup=hwVermngObjectsGroup, hwAsmngTrapAsIfIndex=hwAsmngTrapAsIfIndex, hwTplmPortGroupUserAccessProfile=hwTplmPortGroupUserAccessProfile, hwAsmngTrapAsFaultTimes=hwAsmngTrapAsFaultTimes, hwTplmPortEntry=hwTplmPortEntry, hwAsmngEntityPhysicalGroup=hwAsmngEntityPhysicalGroup, hwAsAddOffLineNotify=hwAsAddOffLineNotify, hwAsCpuUseage=hwAsCpuUseage, hwAsMacBlacklistEntry=hwAsMacBlacklistEntry, hwASFanTrap=hwASFanTrap, hwTplmPortPortGroupName=hwTplmPortPortGroupName, hwAsEntityAliasMappingEntry=hwAsEntityAliasMappingEntry, hwUniAsBaseThresholdHighWarning=hwUniAsBaseThresholdHighWarning, hwTplmASId=hwTplmASId, hwAsIfOperStatus=hwAsIfOperStatus, hwAsmngEntityStateGroup=hwAsmngEntityStateGroup, hwTopoPeerMac=hwTopoPeerMac, hwASCPUTrap=hwASCPUTrap, hwTopomngTrapLocalMac=hwTopomngTrapLocalMac, hwAsmngTrap=hwAsmngTrap, hwTopoPeerTrunkId=hwTopoPeerTrunkId, hwAsRunState=hwAsRunState, hwAsMac=hwAsMac, hwVermngUpgradeInfoAsSysPatch=hwVermngUpgradeInfoAsSysPatch, hwASBrdTempResume=hwASBrdTempResume, hwAsmngGlobalObjectsGroup=hwAsmngGlobalObjectsGroup, hwVermngUpgradeInfoGroup=hwVermngUpgradeInfoGroup, hwAsAccessUser=hwAsAccessUser, hwTopoLocalPortName=hwTopoLocalPortName, hwASMemUtilizationResume=hwASMemUtilizationResume, hwTplmASAdminProfileName=hwTplmASAdminProfileName, hwAsSysmacSwitchCfgErrNotify=hwAsSysmacSwitchCfgErrNotify, hwASCPUUtilizationResume=hwASCPUUtilizationResume, hwAsIfMtu=hwAsIfMtu, hwTopoPeerDeviceIndex=hwTopoPeerDeviceIndex, hwAsSoftwareVersion=hwAsSoftwareVersion, hwASBrdTempAlarm=hwASBrdTempAlarm, hwAsmngTrapAsIndex=hwAsmngTrapAsIndex, hwAsEntityPhysicalVendorType=hwAsEntityPhysicalVendorType, hwAsmngTrapAsIfOperStatus=hwAsmngTrapAsIfOperStatus, hwASPowerInvalid=hwASPowerInvalid, hwAsGatewayIp=hwAsGatewayIp, hwUniMbrTrapAsIndex=hwUniMbrTrapAsIndex, hwTopoLocalRole=hwTopoLocalRole, hwAsIfHighSpeed=hwAsIfHighSpeed, hwTopomngTrapObjectsGroup=hwTopomngTrapObjectsGroup, hwAsmngTrapAddedAsSlotType=hwAsmngTrapAddedAsSlotType, hwVermngUpgradeInfoAsDownloadSoftware=hwVermngUpgradeInfoAsDownloadSoftware, hwTplmPortGroupType=hwTplmPortGroupType, hwUniAsBaseEntPhysicalContainedIn=hwUniAsBaseEntPhysicalContainedIn, hwTopomngTrapsGroup=hwTopomngTrapsGroup, hwAsIfOutUcastPkts=hwAsIfOutUcastPkts, hwTopomngTrap=hwTopomngTrap, hwTplmConfigCommitAll=hwTplmConfigCommitAll, hwAsmngTrapAsVersion=hwAsmngTrapAsVersion, hwTplmConfigManagementEntry=hwTplmConfigManagementEntry, hwTplmASRowStatus=hwTplmASRowStatus, hwTopomngTrapLocalPortName=hwTopomngTrapLocalPortName, hwTplmCmdExecuteSuccessfulNotify=hwTplmCmdExecuteSuccessfulNotify, hwUniAsBaseTrapProbableCause=hwUniAsBaseTrapProbableCause, hwAsSlotId=hwAsSlotId, hwTplmTrapASName=hwTplmTrapASName, hwAsIfXEntry=hwAsIfXEntry, hwTopomngTrapPeerPortName=hwTopomngTrapPeerPortName, hwTopomngLinkNormal=hwTopomngLinkNormal, hwASMemoryTrap=hwASMemoryTrap, hwUniAsBaseTrapSeverity=hwUniAsBaseTrapSeverity, hwTplmConfigManagementGoup=hwTplmConfigManagementGoup, hwTopomngTraps=hwTopomngTraps, hwVermngAsTypeCfgInfoPatch=hwVermngAsTypeCfgInfoPatch, hwUniAsBaseTrapEventType=hwUniAsBaseTrapEventType, hwAsMacWhitelistRowStatus=hwAsMacWhitelistRowStatus, hwTplmPortGroupIndex=hwTplmPortGroupIndex, hwAsEntityPhysicalParentRelPos=hwAsEntityPhysicalParentRelPos, AlarmStatus=AlarmStatus, hwMbrMngFabricPortDescription=hwMbrMngFabricPortDescription, hwAsmngTrapAsPermitNum=hwAsmngTrapAsPermitNum, hwAsEntityStateTable=hwAsEntityStateTable, hwAsVpnInstance=hwAsVpnInstance) mibBuilder.exportSymbols("HUAWEI-UNIMNG-MIB", hwTplmASGroupIndex=hwTplmASGroupIndex, hwMbrTrapsGroup=hwMbrTrapsGroup, hwTplmASGroupName=hwTplmASGroupName, hwTopomngTopoTable=hwTopomngTopoTable, hwASPowerTrap=hwASPowerTrap, hwAsEntityPhysicalMfgName=hwAsEntityPhysicalMfgName, hwVermngObjects=hwVermngObjects, hwTplmTrapObjectsGroup=hwTplmTrapObjectsGroup, hwAsStackEnable=hwAsStackEnable, hwTplmASGoup=hwTplmASGoup, hwMbrMngFabricPortDirection=hwMbrMngFabricPortDirection, hwUnimngObjects=hwUnimngObjects, hwASBoardFailResume=hwASBoardFailResume, hwVermngUpgradeInfoAsName=hwVermngUpgradeInfoAsName, hwUniAsBaseEntPhysicalName=hwUniAsBaseEntPhysicalName, hwAsOnlineTime=hwAsOnlineTime, hwAsmngTrapObjects=hwAsmngTrapObjects, hwUniBaseTrapCompliances=hwUniBaseTrapCompliances, hwVermngAsTypeCfgInfoAsTypeName=hwVermngAsTypeCfgInfoAsTypeName, hwAsEntryAliasLogicalIndexOrZero=hwAsEntryAliasLogicalIndexOrZero, hwAsSysMac=hwAsSysMac, hwAsmngTrapParentVersion=hwAsmngTrapParentVersion, hwAsInBlacklistNotify=hwAsInBlacklistNotify, hwAsPortStateChangeToUpNotify=hwAsPortStateChangeToUpNotify, hwAsMacWhitelistEntry=hwAsMacWhitelistEntry, hwUniAsBaseThresholdType=hwUniAsBaseThresholdType, hwAsEntityPhysicalFirmwareRev=hwAsEntityPhysicalFirmwareRev, hwTplmPortGroupName=hwTplmPortGroupName, hwASCommunicateTrap=hwASCommunicateTrap, hwAsmngTrapAddedAsMac=hwAsmngTrapAddedAsMac, hwTopomngCompliance=hwTopomngCompliance, hwAsNormalNotify=hwAsNormalNotify, hwVermngAsTypeCfgInfoSystemSoftwareVer=hwVermngAsTypeCfgInfoSystemSoftwareVer, hwASMemUtilizationRising=hwASMemUtilizationRising, hwASMadConflictDetect=hwASMadConflictDetect, hwAsmngCompliance=hwAsmngCompliance, hwUniAsBaseThresholdHwBaseThresholdType=hwUniAsBaseThresholdHwBaseThresholdType, hwUnimngModeNotMatchNotify=hwUnimngModeNotMatchNotify, hwAsEntityPhysicalTable=hwAsEntityPhysicalTable, hwAsEntityAlarmLight=hwAsEntityAlarmLight, hwVermngUpgradeInfoAsFilePhase=hwVermngUpgradeInfoAsFilePhase, hwTplmASASGroupName=hwTplmASASGroupName, hwAsSysName=hwAsSysName, hwVermngUpgradeFail=hwVermngUpgradeFail, hwUniAsBaseThresholdUnit=hwUniAsBaseThresholdUnit, hwAsOnlineFailNotify=hwAsOnlineFailNotify, hwMbrTrapObjectsGroup=hwMbrTrapObjectsGroup, hwTplmPortGroupNetworkEnhancedProfile=hwTplmPortGroupNetworkEnhancedProfile, hwTplmConfigManagement=hwTplmConfigManagement, hwTplmASGroupTable=hwTplmASGroupTable, hwAsmngTraps=hwAsmngTraps, hwUniAsBaseTrapObjects=hwUniAsBaseTrapObjects, hwUniAsBaseThresholdValue=hwUniAsBaseThresholdValue, hwUniMbrLinkStatTrapChangeType=hwUniMbrLinkStatTrapChangeType, hwTplmPortTable=hwTplmPortTable, hwTplmASGroupGoup=hwTplmASGroupGoup, hwASCPUUtilizationRising=hwASCPUUtilizationRising, hwTopomngTrapPeerMac=hwTopomngTrapPeerMac, hwAsmngTrapObjectsGroup=hwAsmngTrapObjectsGroup, hwAsmngTrapAsSysName=hwAsmngTrapAsSysName, hwAsmngMacBlacklistGroup=hwAsmngMacBlacklistGroup, hwAsIfType=hwAsIfType, hwAsmngTrapAsMac=hwAsmngTrapAsMac, hwUniAsBaseEntPhysicalIndex=hwUniAsBaseEntPhysicalIndex, hwAsEntityPhysicalClass=hwAsEntityPhysicalClass, hwUniAsBaseAsName=hwUniAsBaseAsName, hwAsModelNotMatchNotify=hwAsModelNotMatchNotify, hwAsEntityPhysicalSerialNum=hwAsEntityPhysicalSerialNum, hwVermngUpgradeInfoAsErrorDescr=hwVermngUpgradeInfoAsErrorDescr, hwTopomngLinkAbnormal=hwTopomngLinkAbnormal, hwAsmngTrapAsIfName=hwAsmngTrapAsIfName, hwUniMbrASDiscoverAttack=hwUniMbrASDiscoverAttack, hwAsIfHCInOctets=hwAsIfHCInOctets, hwVermngTraps=hwVermngTraps, hwASMadConflictResume=hwASMadConflictResume, hwTopoLocalMac=hwTopoLocalMac, hwAsmngCompliances=hwAsmngCompliances, hwVermngAsTypeCfgInfoGroup=hwVermngAsTypeCfgInfoGroup, hwVermngUpgradeInfoAsDownloadPatch=hwVermngUpgradeInfoAsDownloadPatch, hwAsmngTrapAsSlotId=hwAsmngTrapAsSlotId, hwTopoPeerPortName=hwTopoPeerPortName, hwAsmngEntityAliasMappingGroup=hwAsmngEntityAliasMappingGroup, hwTplmTrapObjects=hwTplmTrapObjects, hwVermngUpgradeInfoAsSysSoftware=hwVermngUpgradeInfoAsSysSoftware, hwASOpticalTrap=hwASOpticalTrap, hwMbrMngFabricPortIndirectFlag=hwMbrMngFabricPortIndirectFlag, hwAsIfEntry=hwAsIfEntry, hwUniMbrTrap=hwUniMbrTrap, hwTopomngTrapLocalTrunkId=hwTopomngTrapLocalTrunkId, hwAsMemoryUseage=hwAsMemoryUseage, hwAsModel=hwAsModel, hwUniAsBaseEntityTrapCommunicateType=hwUniAsBaseEntityTrapCommunicateType, hwUniMbrFabricPortMemberDelete=hwUniMbrFabricPortMemberDelete, hwAsSn=hwAsSn, hwTplmASTable=hwTplmASTable, hwAsIfXTable=hwAsIfXTable, hwASBoardTrap=hwASBoardTrap, hwAsmngObjectsGroup=hwAsmngObjectsGroup, hwAsBoardPlugOutNotify=hwAsBoardPlugOutNotify, hwAsmngAsIfXGroup=hwAsmngAsIfXGroup, hwASFanInvalidResume=hwASFanInvalidResume, hwAsTable=hwAsTable, hwMbrMngFabricPortMemberIfName=hwMbrMngFabricPortMemberIfName, hwASFanInvalid=hwASFanInvalid, hwVermngUpgradeInfoAsErrorCode=hwVermngUpgradeInfoAsErrorCode, hwUniMbrParaSynFailReason=hwUniMbrParaSynFailReason, hwAsmngAsGroup=hwAsmngAsGroup, hwAsAuthMode=hwAsAuthMode, hwAsSlotModelNotMatchNotify=hwAsSlotModelNotMatchNotify, hwTplmASGroupRowStatus=hwTplmASGroupRowStatus, hwTplmConfigManagementCommit=hwTplmConfigManagementCommit, hwVermngAsTypeCfgInfoEntry=hwVermngAsTypeCfgInfoEntry, hwAsBoardDeleteNotify=hwAsBoardDeleteNotify, hwAsIfIndex=hwAsIfIndex, hwAsSlotEntry=hwAsSlotEntry, hwMbrMngFabricPortTable=hwMbrMngFabricPortTable, hwASBoardFail=hwASBoardFail, hwUniAsBaseAsId=hwUniAsBaseAsId, hwASMadTrap=hwASMadTrap)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (time_ticks, ip_address, integer32, counter32, unsigned32, gauge32, object_identity, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, mib_identifier, iso, module_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'IpAddress', 'Integer32', 'Counter32', 'Unsigned32', 'Gauge32', 'ObjectIdentity', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'MibIdentifier', 'iso', 'ModuleIdentity', 'NotificationType') (display_string, mac_address, row_status, autonomous_type, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'RowStatus', 'AutonomousType', 'TextualConvention') hw_unimng_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327)) hwUnimngMIB.setRevisions(('2015-07-09 14:07', '2015-01-09 14:07', '2014-11-18 15:30', '2014-10-29 16:57', '2014-10-23 15:30', '2014-09-11 15:30', '2014-08-19 15:30', '2014-07-10 12:50', '2014-03-03 20:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwUnimngMIB.setRevisionsDescriptions(('Add new node hwAsVpnInstance ', 'Add new trap node hwTplmDirectCmdRecoverFail LSWCCB-9570', 'Modify node description LSWV2R7-9213 at 2014-11-18', 'Modify node description LSWCCB-8222 at 2014-10-29', 'Modify as entity trap at 2014-10-23', 'Add new trap node at 2014-9-11', 'Modify node description LSWCCB-6116 LSWCCB-6553 LSWCCB-6908 at 2014-8-19', 'Add trap node hwTplmCmdExecuteSuccessfulNotify at 2014-7-10', 'Create mib.')) if mibBuilder.loadTexts: hwUnimngMIB.setLastUpdated('201507091407Z') if mibBuilder.loadTexts: hwUnimngMIB.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwUnimngMIB.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com") if mibBuilder.loadTexts: hwUnimngMIB.setDescription('This MIB contains private managed object definitions for Unified Man agement Framework.') class Alarmstatus(TextualConvention, Bits): reference = "ITU Recommendation X.731, 'Information Technology - Open Systems Interconnection - System Management: State Management Function', 1992" description = 'Represents the possible values of alarm status. When no bits of this attribute are set, then none of the status conditions described below are present. When the value of under repair is set, the resource is currently being repaired. When the value of critical is set, one or more critical alarms are active against the resource. When the value of major is set, one or more major alarms are active against the resource. When the value of minor is set, one or more minor alarms are active against the resource. When the value of warning is set, one or more warning alarms are active against the resource. When the value of indeterminate is set, one or more alarms of indeterminate severity are active against the resource. When the value of alarm outstanding is set, one or more alarms is active against the resource. The fault may or may not be disabling. ' status = 'current' named_values = named_values(('notSupported', 0), ('underRepair', 1), ('critical', 2), ('major', 3), ('minor', 4), ('alarmOutstanding', 5), ('warning', 6), ('indeterminate', 7)) hw_unimng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1)) hw_uni_mng_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwUniMngEnable.setStatus('current') if mibBuilder.loadTexts: hwUniMngEnable.setDescription('Unimng enable status.') hw_asmng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2)) hw_as_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1)) if mibBuilder.loadTexts: hwAsTable.setStatus('current') if mibBuilder.loadTexts: hwAsTable.setDescription('AS table entry. ') hw_as_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex')) if mibBuilder.loadTexts: hwAsEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntry.setDescription('The entry of AS table.') hw_as_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIndex.setDescription('AS index.') hw_as_hardware_version = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsHardwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsHardwareVersion.setDescription('The hardware version of AS.') hw_as_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsIpAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIpAddress.setDescription('The ip address of AS.') hw_as_ip_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 4), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsIpNetMask.setStatus('current') if mibBuilder.loadTexts: hwAsIpNetMask.setDescription('The ip net mask of AS.') hw_as_access_user = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 5), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsAccessUser.setStatus('current') if mibBuilder.loadTexts: hwAsAccessUser.setDescription('The access user number of AS.') hw_as_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 6), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsMac.setDescription('The MAC address of AS.') hw_as_sn = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 7), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsSn.setDescription('The SN of AS.') hw_as_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsSysName.setDescription('The Name of AS.') hw_as_run_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('idle', 1), ('versionMismatch', 2), ('fault', 3), ('normal', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsRunState.setStatus('current') if mibBuilder.loadTexts: hwAsRunState.setDescription('The run state of AS.') hw_as_software_version = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSoftwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsSoftwareVersion.setDescription('The software version of AS.') hw_as_model = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(1, 23))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsModel.setDescription('The model of AS. ') hw_as_dns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 12), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsDns.setStatus('current') if mibBuilder.loadTexts: hwAsDns.setDescription('The DNS of AS.') hw_as_online_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 13), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsOnlineTime.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineTime.setDescription('The online time of AS.') hw_as_cpu_useage = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 14), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsCpuUseage.setStatus('current') if mibBuilder.loadTexts: hwAsCpuUseage.setDescription('The cpu usage of AS.') hw_as_memory_useage = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 15), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMemoryUseage.setStatus('current') if mibBuilder.loadTexts: hwAsMemoryUseage.setDescription('The memory usage of AS.') hw_as_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 16), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSysMac.setStatus('current') if mibBuilder.loadTexts: hwAsSysMac.setDescription('The system MAC address of AS.') hw_as_stack_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsStackEnable.setStatus('current') if mibBuilder.loadTexts: hwAsStackEnable.setDescription('Whether AS is stack enable or disable.') hw_as_gateway_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 18), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsGatewayIp.setStatus('current') if mibBuilder.loadTexts: hwAsGatewayIp.setDescription("The gateway's IP address of AS.") hw_as_vpn_instance = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 19), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsVpnInstance.setStatus('current') if mibBuilder.loadTexts: hwAsVpnInstance.setDescription('The VPN instance of AS.') hw_as_rowstatus = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsRowstatus.setStatus('current') if mibBuilder.loadTexts: hwAsRowstatus.setDescription('The RowStatus of this table.') hw_as_if_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2)) if mibBuilder.loadTexts: hwAsIfTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfTable.setDescription('AS interface table entry.') hw_as_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if mibBuilder.loadTexts: hwAsIfEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfEntry.setDescription('The entry of AS If table.') hw_as_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIfIndex.setDescription('The interface index of AS.') hw_as_if_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfDescr.setStatus('current') if mibBuilder.loadTexts: hwAsIfDescr.setDescription('The interface description of AS.') hw_as_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsIfType.setDescription('The interface type of AS.') hw_as_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfMtu.setStatus('current') if mibBuilder.loadTexts: hwAsIfMtu.setDescription('The interface MTU of AS.') hw_as_if_speed = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfSpeed.setDescription("An estimate of the as interface's current bandwidth in bits per second.") hw_as_if_phys_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 6), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfPhysAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIfPhysAddress.setDescription('The physical address of AS interface.') hw_as_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfAdminStatus.setDescription('The administration stauts of AS interface.') hw_as_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfOperStatus.setDescription('The operation stauts of AS interface.') hw_as_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setDescription('The number of unicast packets received on the interface of AS. ') hw_as_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setDescription('The number of unicast packets sent on the interface of AS. ') hw_as_if_x_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3)) if mibBuilder.loadTexts: hwAsIfXTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfXTable.setDescription('The extent table of AS.') hw_as_if_x_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if mibBuilder.loadTexts: hwAsIfXEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfXEntry.setDescription('The entry of table.') hw_as_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsIfName.setDescription('The name of AS interface.') hw_as_if_link_up_down_trap_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setStatus('current') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for this as interface.') hw_as_if_high_speed = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHighSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfHighSpeed.setDescription("An estimate of the as interface's current bandwidth in units of 1,000,000 bits per second.") hw_as_if_alias = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 4), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfAlias.setStatus('current') if mibBuilder.loadTexts: hwAsIfAlias.setDescription("This object is an 'alias' name for the AS's interface as specified by a network manager, and provides a non-volatile 'handle' for the interface.") hw_as_if_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfAsId.setStatus('current') if mibBuilder.loadTexts: hwAsIfAsId.setDescription('The ID of AS.') hw_as_if_hc_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setDescription('The total number of octets sent on the interface of AS.') hw_as_if_in_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setDescription('The number of multicast packets received on the interface of AS. ') hw_as_if_in_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setDescription('The number of broadcast packets received on the interface of AS. ') hw_as_if_out_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setDescription('The number of multicast packets sent on the interface of AS. ') hw_as_if_out_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setDescription('The number of broadcast packets sent on the interface of AS. ') hw_as_if_hc_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHCInOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCInOctets.setDescription('The total number of octets received on the interface of AS.') hw_as_slot_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4)) if mibBuilder.loadTexts: hwAsSlotTable.setStatus('current') if mibBuilder.loadTexts: hwAsSlotTable.setDescription('The slot table of AS.') hw_as_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsSlotId')) if mibBuilder.loadTexts: hwAsSlotEntry.setStatus('current') if mibBuilder.loadTexts: hwAsSlotEntry.setDescription('The entry of table.') hw_as_slot_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))) if mibBuilder.loadTexts: hwAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsSlotId.setDescription('The ID of AS slot.') hw_as_slot_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSlotState.setStatus('current') if mibBuilder.loadTexts: hwAsSlotState.setDescription('The state of AS slot.') hw_as_slot_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 20), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSlotRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsSlotRowStatus.setDescription('The RowStatus of this table.') hw_asmng_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5)) hw_as_auto_replace_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setStatus('current') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setDescription('The enable status of auto replace.') hw_as_auth_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('auth', 1), ('noAuth', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsAuthMode.setStatus('current') if mibBuilder.loadTexts: hwAsAuthMode.setDescription('The authentication mode of AS.') hw_as_mac_whitelist_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6)) if mibBuilder.loadTexts: hwAsMacWhitelistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistTable.setDescription('The table of whitelist.') hw_as_mac_whitelist_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsMacWhitelistMacAddr')) if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setDescription('The entry of table.') hw_as_mac_whitelist_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 1), mac_address()) if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setDescription('The MAC address of white list.') hw_as_mac_whitelist_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setDescription('The RowStatus of table.') hw_as_mac_blacklist_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7)) if mibBuilder.loadTexts: hwAsMacBlacklistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistTable.setDescription('The table of blacklist.') hw_as_mac_blacklist_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsMacBlacklistMacAddr')) if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setDescription('The entry of table.') hw_as_mac_blacklist_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 1), mac_address()) if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setDescription('The MAC address of black list.') hw_as_mac_blacklist_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setDescription('The RowStatus of table.') hw_as_entity_physical_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8)) if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setDescription('The physical table of AS.') hw_as_entity_physical_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex')) if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setDescription('The entry of table.') hw_as_entity_physical_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 1), integer32()) if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setDescription('The physical index of AS.') hw_as_entity_physical_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setDescription('A textual description of physical entity. ') hw_as_entity_physical_vendor_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 3), autonomous_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setDescription('An indication of the vendor-specific hardware type of the physical entity. ') hw_as_entity_physical_contained_in = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setDescription("The value of hwAsEntityPhysicalIndex for the physical entity which 'contains' this physical entity. ") hw_as_entity_physical_class = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('chassis', 3), ('backplane', 4), ('container', 5), ('powerSupply', 6), ('fan', 7), ('sensor', 8), ('module', 9), ('port', 10), ('stack', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setDescription('An indication of the general hardware type of the physical entity.') hw_as_entity_physical_parent_rel_pos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setDescription("An indication of the relative position of this 'child' component among all its 'sibling' components.") hw_as_entity_physical_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 7), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setDescription('The textual name of the physical entity. ') hw_as_entity_physical_hardware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 8), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setDescription('The vendor-specific hardware revision string for the physical entity. ') hw_as_entity_physical_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 9), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setDescription('The vendor-specific firmware revision string for the physical entity.') hw_as_entity_physical_software_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 10), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setDescription('The vendor-specific software revision string for the physical entity.') hw_as_entity_physical_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 11), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setDescription('The vendor-specific serial number string for the physical entity.') hw_as_entity_physical_mfg_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 12), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setDescription('The name of the manufacturer of this physical component.') hw_as_entity_state_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9)) if mibBuilder.loadTexts: hwAsEntityStateTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateTable.setDescription('The entity state table.') hw_as_entity_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex')) if mibBuilder.loadTexts: hwAsEntityStateEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateEntry.setDescription('The entry of table.') hw_as_entity_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 11, 12, 13))).clone(namedValues=named_values(('notSupported', 1), ('locked', 2), ('shuttingDown', 3), ('unlocked', 4), ('up', 11), ('down', 12), ('loopback', 13)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setDescription('The administrative state for this object.') hw_as_entity_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 11, 12, 13, 15, 16, 17))).clone(namedValues=named_values(('notSupported', 1), ('disabled', 2), ('enabled', 3), ('offline', 4), ('up', 11), ('down', 12), ('connect', 13), ('protocolUp', 15), ('linkUp', 16), ('linkDown', 17)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityOperStatus.setDescription('The operational state for this object.') hw_as_entity_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notSupported', 1), ('hotStandby', 2), ('coldStandby', 3), ('providingService', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setDescription('This object is used for monitoring standby status.') hw_as_entity_alarm_light = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 4), alarm_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setDescription('The alarm status for this entity.') hw_as_entity_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('notSupported', 1), ('copper', 2), ('fiber100', 3), ('fiber1000', 4), ('fiber10000', 5), ('opticalnotExist', 6), ('optical', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPortType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPortType.setDescription('Indicates the type of the Ethernet interface.') hw_as_entity_alias_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10)) if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setDescription('The entity alias mapping table.') hw_as_entity_alias_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntryAliasLogicalIndexOrZero')) if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setDescription('The entry of table.') hw_as_entry_alias_logical_index_or_zero = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 1), integer32()) if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setDescription('The value of this object identifies the logical entity.') hw_as_entry_alias_mapping_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 2), autonomous_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setDescription('The value of this object identifies a particular conceptual row associated with the indicated entPhysicalIndex and logical index pair.') hw_topomng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3)) hw_topomng_explore_time = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1440)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTopomngExploreTime.setStatus('current') if mibBuilder.loadTexts: hwTopomngExploreTime.setDescription('Topology collect time in minutes.') hw_topomng_last_collect_duration = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setStatus('current') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setDescription('Duration of the latest topology collection, measured in milliseconds.') hw_topomng_topo_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11)) if mibBuilder.loadTexts: hwTopomngTopoTable.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoTable.setDescription('The topology table.') hw_topomng_topo_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTopoLocalHop'), (0, 'HUAWEI-UNIMNG-MIB', 'hwTopoLocalMac'), (0, 'HUAWEI-UNIMNG-MIB', 'hwTopoPeerDeviceIndex')) if mibBuilder.loadTexts: hwTopomngTopoEntry.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoEntry.setDescription('The entry of topology table.') hw_topo_local_hop = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: hwTopoLocalHop.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalHop.setDescription('The topoloy hop.') hw_topo_local_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 2), mac_address()) if mibBuilder.loadTexts: hwTopoLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalMac.setDescription('The local device ID, defined by 6 bytes of MAC.') hw_topo_peer_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setDescription('The index of neighbor device.') hw_topo_peer_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerMac.setDescription('The neighbor device ID, defined by 6 bytes of MAC.') hw_topo_local_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalPortName.setDescription('The port name of local device, same as ifName (defined in IETF RFC 2863).') hw_topo_peer_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerPortName.setDescription('The port name of neighbor device, same as ifName (defined in IETF RFC 2863).') hw_topo_local_trunk_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setDescription('The trunk ID of local port, 65535 identify the local port is not in trunk.') hw_topo_peer_trunk_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setDescription('The trunk ID of neighbor port, 65535 identify the neighbor port is not in trunk.') hw_topo_local_role = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('roleUC', 1), ('roleAS', 2), ('roleAP', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalRole.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalRole.setDescription('The role of local topology node.') hw_topo_peer_role = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('roleUC', 1), ('roleAS', 2), ('roleAP', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerRole.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerRole.setDescription('The role of neighbor topology node.') hw_mbrmng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4)) hw_mbr_mng_fabric_port_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2)) if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setDescription('The table of fabric port information.') hw_mbr_mng_fabric_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwMbrMngASId'), (0, 'HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortId')) if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setDescription('The entry of the table of fabric port information.') hw_mbr_mng_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: hwMbrMngASId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngASId.setDescription('AS index, is used to specify thd AS. 65535 represents the parent node.') hw_mbr_mng_fabric_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwMbrMngFabricPortId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortId.setDescription('The Fabric-port index.') hw_mbr_mng_fabric_port_member_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setDescription("Interface name of the Fabric-port's member.") hw_mbr_mng_fabric_port_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('downDirection', 1), ('upDirection', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setDescription('The direction of Fabric-port.') hw_mbr_mng_fabric_port_indirect_flag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('indirect', 1), ('direct', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setDescription('The indirect flag of Fabric-port.') hw_mbr_mng_fabric_port_description = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setDescription('The description of Fabric-port.') hw_vermng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5)) hw_vermng_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1)) hw_vermng_file_server_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('ftp', 1), ('sftp', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngFileServerType.setStatus('current') if mibBuilder.loadTexts: hwVermngFileServerType.setDescription('The type of file server.') hw_vermng_upgrade_info_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2)) if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setDescription('The table of AS upgrade information.') hw_vermng_upgrade_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsIndex')) if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setDescription('The entry of the table of AS upgrade information.') hw_vermng_upgrade_info_as_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setDescription('The ID of AS.') hw_vermng_upgrade_info_as_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setDescription('The name of AS.') hw_vermng_upgrade_info_as_sys_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setDescription('The filename of running system software of AS.') hw_vermng_upgrade_info_as_sys_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setDescription('The version of running system software of AS.') hw_vermng_upgrade_info_as_sys_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setDescription('The filename of running patch of AS.') hw_vermng_upgrade_info_as_download_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setDescription('The filename of system software which will be downloaded to AS.') hw_vermng_upgrade_info_as_download_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setDescription('The version of system software which will be downloaded to AS..') hw_vermng_upgrade_info_as_download_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setDescription('The filename of patch which will be downloaded to AS.') hw_vermng_upgrade_info_as_upgrade_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('noUpgrade', 1), ('upgrading', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setDescription('The upgrade status of AS.') hw_vermng_upgrade_info_as_upgrade_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('verSync', 1), ('manual', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setDescription('The type of upgrade.') hw_vermng_upgrade_info_as_file_phase = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('systemSoftware', 1), ('patch', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setDescription('The file type which is in downloading.') hw_vermng_upgrade_info_as_upgrade_phase = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 255))).clone(namedValues=named_values(('downloadFile', 1), ('wait', 2), ('activateFile', 3), ('reboot', 4), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setDescription('The state in downloading file.') hw_vermng_upgrade_info_as_upgrade_result = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('successfully', 1), ('failed', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setDescription('The result of upgrade.') hw_vermng_upgrade_info_as_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setDescription('The error code in upgrading.') hw_vermng_upgrade_info_as_error_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 15), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setDescription('The eroor description in upgrading.') hw_vermng_as_type_cfg_info_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3)) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setDescription('The table of configuration with AS type.') hw_vermng_as_type_cfg_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoAsTypeIndex')) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setDescription('The entry of AS type configuration table.') hw_vermng_as_type_cfg_info_as_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setDescription('The index of AS type.') hw_vermng_as_type_cfg_info_as_type_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 2), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setDescription('The name of AS type.') hw_vermng_as_type_cfg_info_system_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 3), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setDescription('The filename of system software configured.') hw_vermng_as_type_cfg_info_system_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setDescription('The version of system software.') hw_vermng_as_type_cfg_info_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 5), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setDescription('The filename of patch configured.') hw_vermng_as_type_cfg_info_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setDescription('The RowStatus of table.') hw_tplm_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6)) hw_tplm_as_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11)) if mibBuilder.loadTexts: hwTplmASGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupTable.setDescription('The table of template management with AS group.') hw_tplm_as_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmASGroupIndex')) if mibBuilder.loadTexts: hwTplmASGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupEntry.setDescription('The entry of AS group table.') hw_tplm_as_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: hwTplmASGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupIndex.setDescription('The index of AS group table.') hw_tplm_as_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupName.setDescription('The name of AS group.') hw_tplm_as_admin_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setStatus('current') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setDescription("The name of AS group's admin profile.") hw_tplm_as_group_profile_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setDescription("The status of AS group's admin profile.") hw_tplm_as_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setDescription('The row status of as group table.') hw_tplm_as_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12)) if mibBuilder.loadTexts: hwTplmASTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASTable.setDescription('The table of template management with AS.') hw_tplm_as_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmASId')) if mibBuilder.loadTexts: hwTplmASEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASEntry.setDescription('The entry of AS table.') hw_tplm_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwTplmASId.setStatus('current') if mibBuilder.loadTexts: hwTplmASId.setDescription('AS index.') hw_tplm_asas_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASASGroupName.setDescription('The name of AS group which the AS belongs to.') hw_tplm_as_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASRowStatus.setDescription('The row status of as table.') hw_tplm_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13)) if mibBuilder.loadTexts: hwTplmPortGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupTable.setDescription('The table of template management with port group.') hw_tplm_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupIndex')) if mibBuilder.loadTexts: hwTplmPortGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupEntry.setDescription('The entry of port group table.') hw_tplm_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 257))) if mibBuilder.loadTexts: hwTplmPortGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupIndex.setDescription('The index of port group table.') hw_tplm_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupName.setDescription('The name of port group.') hw_tplm_port_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('service', 1), ('ap', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupType.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupType.setDescription('The type of port group.') hw_tplm_port_group_network_basic_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setDescription("The name of port group's network basic profile.") hw_tplm_port_group_network_enhanced_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setDescription("The name of port group's network enhanced profile.") hw_tplm_port_group_user_access_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setDescription("The name of port group's user access profile.") hw_tplm_port_group_profile_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setDescription("The status of port group's profile.") hw_tplm_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setDescription('The row status of port group table.') hw_tplm_port_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14)) if mibBuilder.loadTexts: hwTplmPortTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortTable.setDescription("The table of template management with AS's port.") hw_tplm_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmPortIfIndex')) if mibBuilder.loadTexts: hwTplmPortEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortEntry.setDescription('The entry of port table.') hw_tplm_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 1), integer32()) if mibBuilder.loadTexts: hwTplmPortIfIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortIfIndex.setDescription("The interface index of AS's port.") hw_tplm_port_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setDescription("The name of port group which the AS's port belongs to.") hw_tplm_port_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortRowStatus.setDescription('The row status of port table.') hw_tplm_config_management = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15)) hw_tplm_config_commit_all = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('commit', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setDescription('Apply configuration of template management to all ASs.') hw_tplm_config_management_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2)) if mibBuilder.loadTexts: hwTplmConfigManagementTable.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementTable.setDescription('The table of committing configuration of template management.') hw_tplm_config_management_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmConfigManagementASId')) if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setDescription('The entry of committing table.') hw_tplm_config_management_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwTplmConfigManagementASId.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementASId.setDescription('AS index.') hw_tplm_config_management_commit = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('commit', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setDescription('Apply configuration of template management to the specified AS.') hw_unimng_notification = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31)) hw_topomng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1)) hw_topomng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1)) hw_topomng_trap_local_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setDescription('Topomng trap message local MAC, defined as the device ID.') hw_topomng_trap_local_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setDescription('Topomng trap message local port name.') hw_topomng_trap_local_trunk_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setDescription('Topomng trap message local trunk ID, 65535 defines a phy port.') hw_topomng_trap_peer_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setDescription('Topomng trap message peer MAC, defined as the device ID.') hw_topomng_trap_peer_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setDescription('Topomng trap message peer port name.') hw_topomng_trap_peer_trunk_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setDescription('Topomng trap message peer trunk ID, 65535 defines a phy port.') hw_topomng_trap_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapReason.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapReason.setDescription('Topomng trap message Reason.') hw_topomng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2)) hw_topomng_link_normal = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if mibBuilder.loadTexts: hwTopomngLinkNormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkNormal.setDescription('The notification of topology link normal.') hw_topomng_link_abnormal = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setDescription('The notification of topology link abnormal.') hw_asmng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2)) hw_asmng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1)) hw_asmng_trap_as_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setDescription('The AS index.') hw_asmng_trap_as_model = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setDescription('The model of AS.') hw_asmng_trap_as_sys_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 3), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setDescription('The name of AS.') hw_asmng_trap_as_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setDescription('The MAC address of AS.') hw_asmng_trap_as_sn = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 5), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setDescription('The SN of AS.') hw_asmng_trap_as_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setDescription('The interface index of AS.') hw_asmng_trap_as_if_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 7), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setDescription('The operation stauts of AS.') hw_asmng_trap_as_fault_times = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 8), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setDescription('The fault times of AS.') hw_asmng_trap_as_if_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 9), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setDescription('AS interface adminnistrator status.') hw_asmng_trap_as_if_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 10), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setDescription('The name of AS.') hw_asmng_trap_as_actuale_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 11), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setDescription('The actual type of AS.') hw_asmng_trap_as_version = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 12), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setDescription('The version of AS.') hw_asmng_trap_parent_version = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 13), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setDescription('The version of parent.') hw_asmng_trap_added_as_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 14), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setDescription('The MAC address of added AS.') hw_asmng_trap_as_slot_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 15), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setDescription('The slot ID of AS.') hw_asmng_trap_added_as_slot_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 16), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setDescription('The slot type of added AS.') hw_asmng_trap_as_permit_num = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 17), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setDescription('The maxium number of permitted AS.') hw_asmng_trap_as_unimng_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 18), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setDescription('The UNI-MNG mode of AS.') hw_asmng_trap_parent_unimng_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 19), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setDescription('The UNI-MNG mode of parent.') hw_asmng_trap_as_if_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 20), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setDescription('The interface type of AS.') hw_asmng_trap_as_online_fail_reason_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 21), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setDescription('The reason ID of AS online failed.') hw_asmng_trap_as_online_fail_reason_desc = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 22), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setDescription('The description of AS online failed.') hw_asmng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2)) hw_as_fault_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsFaultTimes')) if mibBuilder.loadTexts: hwAsFaultNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFaultNotify.setDescription('This notification occurs when AS become fault.') hw_as_normal_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsNormalNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNormalNotify.setDescription('This notification occurs when AS become normal.') hw_as_add_off_line_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsAddOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsAddOffLineNotify.setDescription('This notification occurs when added an AS offline.') hw_as_del_off_line_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsDelOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsDelOffLineNotify.setDescription('This notification occurs when deleted an AS offline.') hw_as_port_state_change_to_down_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus')) if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setDescription('This notification occurs when port status changed to DOWN.') hw_as_port_state_change_to_up_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus')) if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setDescription('This notification occurs when port status changed to UP.') hw_as_model_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsActualeType')) if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setDescription('This notification occurs when the model of AS is mismatch.') hw_as_version_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 8)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentVersion')) if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setDescription('This notification occurs when the version of AS is mismatch.') hw_as_name_conflict_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 9)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsMac')) if mibBuilder.loadTexts: hwAsNameConflictNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNameConflictNotify.setDescription('This notification occurs when the name of AS is conflicted.') hw_as_slot_model_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 10)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsSlotType')) if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setDescription('This notification occurs when the slot model of AS is mismatch.') hw_as_full_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 11)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsPermitNum')) if mibBuilder.loadTexts: hwAsFullNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFullNotify.setDescription('This notification occurs when the model of a slot is different from other slots.') hw_unimng_mode_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 12)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentUnimngMode')) if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setDescription("This notification occurs when the UNI-MNG mode of AS is different parent's.") hw_as_board_add_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 13)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardAddNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardAddNotify.setDescription('This notification occurs when a slot is added.') hw_as_board_delete_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 14)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setDescription('This notification occurs when a slot is deleted.') hw_as_board_plug_in_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 15)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setDescription('This notification occurs when a slot is plugged in.') hw_as_board_plug_out_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 16)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setDescription('This notification occurs when a slot is pulled out.') hw_as_in_blacklist_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 17)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsInBlacklistNotify.setStatus('current') if mibBuilder.loadTexts: hwAsInBlacklistNotify.setDescription('This notification occurs when AS is in blacklist.') hw_as_unconfirmed_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 18)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setStatus('current') if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setDescription('This notification occurs when AS is not confirmed.') hw_as_combo_port_type_change_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 19)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfType')) if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setStatus('current') if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setDescription('This notification occurs when combo type change.') hw_as_online_fail_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 20)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonDesc')) if mibBuilder.loadTexts: hwAsOnlineFailNotify.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineFailNotify.setDescription('This notification occurs when AS online failed.') hw_as_slot_id_invalid_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 21)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setDescription('This notification occurs when the slot ID of AS is invalid.') hw_as_sysmac_switch_cfg_err_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 22)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName')) if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setDescription('This notification occurs when the configuration of system MAC address switching delay is error.') hw_uni_mbr_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3)) hw_uni_mbr_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1)) hw_uni_mbr_link_stat_trap_local_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setDescription('UNIMBR trap message local mac.') hw_uni_mbr_link_stat_trap_local_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setDescription('UNIMBR trap message local port name.') hw_uni_mbr_link_stat_trap_change_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up2down', 1), ('down2up', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setDescription('UNIMBR trap message changing type of link state.') hw_uni_mbr_trap_connect_error_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 4), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setDescription('The reason of UNIMBR fabric-port connect error.') hw_uni_mbr_trap_receive_pkt_rate = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 5), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setDescription('AS Discover packet rate.') hw_uni_mbr_trap_as_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setDescription('AS index.') hw_uni_mbr_trap_as_sys_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 7), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setDescription('Name of AS.') hw_uni_mbr_para_syn_fail_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 8), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setDescription('The reason of UNIMBR parameter synchronization failed.') hw_uni_mbr_trap_illegal_config_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 9), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setDescription('The reason of UNIMBR illegal configuration.') hw_uni_mbr_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2)) hw_uni_mbr_connect_error = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapConnectErrorReason')) if mibBuilder.loadTexts: hwUniMbrConnectError.setStatus('current') if mibBuilder.loadTexts: hwUniMbrConnectError.setDescription('The notification of fabric-port connect error.') hw_uni_mbr_as_discover_attack = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapReceivePktRate')) if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setStatus('current') if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setDescription('An AS discover packet attack is detected.') hw_uni_mbr_fabric_port_member_delete = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName')) if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setStatus('current') if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setDescription('The notification of deleting member of fabric port.') hw_uni_mbr_illegal_fabric_config = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapIllegalConfigReason')) if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setStatus('current') if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setDescription('The notification of IllegalFabricConfig.') hw_vermng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4)) hw_vermng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 1)) hw_vermng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2)) hw_vermng_upgrade_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorCode'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorDescr')) if mibBuilder.loadTexts: hwVermngUpgradeFail.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeFail.setDescription('Upgrade failed.') hw_tplm_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5)) hw_tplm_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1)) hw_tplm_trap_as_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTplmTrapASName.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapASName.setDescription('The name of AS.') hw_tplm_trap_failed_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setDescription('The reason of failure.') hw_tplm_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2)) hw_tplm_cmd_execute_failed_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmTrapFailedReason')) if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setDescription('The notification of command execution failure.') hw_tplm_cmd_execute_successful_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName')) if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setDescription('The notification of command execution failure cleared.') hw_tplm_direct_cmd_recover_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName')) if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setStatus('current') if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setDescription('The notification of direct command recovery failure.') hw_uni_as_base_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6)) hw_uni_as_base_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1)) hw_uni_as_base_as_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 1), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseAsName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsName.setDescription('The name of AS.') hw_uni_as_base_as_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseAsId.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsId.setDescription('AS id.') hw_uni_as_base_entity_physical_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 3), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setDescription('The index of AS physical.') hw_uni_as_base_trap_severity = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setDescription('To describe the level of trap.') hw_uni_as_base_trap_probable_cause = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 5), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setDescription('To describe the probable cause of trap.') hw_uni_as_base_trap_event_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setDescription('To describe the type of trap.') hw_uni_as_base_ent_physical_contained_in = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 7), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setDescription('The value of entPhysicalIndex for the physical entity which contains this physical entity.') hw_uni_as_base_ent_physical_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 8), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setDescription('The textual name of the physical entity.') hw_uni_as_base_relative_resource = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 9), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setDescription('This object may contain a key word to indicate the relative resource of an entity.') hw_uni_as_base_reason_description = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 10), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setDescription('Reason description.') hw_uni_as_base_threshold_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 11), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setDescription('The index to indicate the type of threshold for an entry.') hw_uni_as_base_threshold_value = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 12), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setDescription('The current value that been measured.') hw_uni_as_base_threshold_unit = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 13), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setDescription('The unit for this threshold value.') hw_uni_as_base_threshold_high_warning = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 14), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setDescription('The normal warning threshold for rising alarm.') hw_uni_as_base_threshold_high_critical = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 15), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setDescription('The critical alarm threshold for rising alarm.') hw_uni_as_base_threshold_low_warning = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 16), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setDescription('The normal warning threshold for falling alarm.') hw_uni_as_base_threshold_low_critical = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 17), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setDescription('The critical alarm threshold for falling alarm.') hw_uni_as_base_entity_trap_ent_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 18), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setDescription('The entity type.') hw_uni_as_base_entity_trap_ent_fault_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 19), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setDescription('To describe the fault id of trap.') hw_uni_as_base_entity_trap_communicate_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 20), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setDescription('The communicate type.') hw_uni_as_base_threshold_ent_value = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 21), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setDescription('The threshold value.') hw_uni_as_base_threshold_ent_current = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 22), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setDescription('The current value that been measured.') hw_uni_as_base_ent_physical_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 23), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setDescription('The index of AS physical.') hw_uni_as_base_threshold_hw_base_threshold_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 24), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setDescription('The type of base threshold.') hw_uni_as_base_threshold_hw_base_threshold_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 25), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setDescription('The index of base threshold.') hw_uni_as_base_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2)) hw_as_environment_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2)) hw_as_brd_temp_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBrdTempAlarm.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempAlarm.setDescription('Temperature rise over or fall below the warning alarm threshold.') hw_as_brd_temp_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBrdTempResume.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempResume.setDescription('Temperature back to normal level.') hw_as_board_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3)) hw_as_board_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBoardFail.setStatus('current') if mibBuilder.loadTexts: hwASBoardFail.setDescription('Board become failure for some reason.') hw_as_board_fail_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBoardFailResume.setStatus('current') if mibBuilder.loadTexts: hwASBoardFailResume.setDescription('Board resume from failure.') hw_as_optical_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4)) hw_as_optical_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASOpticalInvalid.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalid.setDescription('Optical Module is invalid for some reason.') hw_as_optical_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASOpticalInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalidResume.setDescription('Optical Module resume from invalid situation.') hw_as_power_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5)) hw_as_power_remove = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerRemove.setStatus('current') if mibBuilder.loadTexts: hwASPowerRemove.setDescription('Power has been removed.') hw_as_power_insert = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInsert.setStatus('current') if mibBuilder.loadTexts: hwASPowerInsert.setDescription('Power has been inserted.') hw_as_power_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInvalid.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalid.setDescription('Power is invalid for some reason.') hw_as_power_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalidResume.setDescription('Power resume from invalid situation.') hw_as_fan_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6)) hw_as_fan_remove = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanRemove.setStatus('current') if mibBuilder.loadTexts: hwASFanRemove.setDescription('Fan has been removed.') hw_as_fan_insert = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInsert.setStatus('current') if mibBuilder.loadTexts: hwASFanInsert.setDescription('Fan has been inserted.') hw_as_fan_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInvalid.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalid.setDescription('Fan is invalid for some reason.') hw_as_fan_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalidResume.setDescription('Fan resume from invalid situation.') hw_as_communicate_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7)) hw_as_communicate_error = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType')) if mibBuilder.loadTexts: hwASCommunicateError.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateError.setDescription('Communication error has been detected.') hw_as_communicate_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType')) if mibBuilder.loadTexts: hwASCommunicateResume.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateResume.setDescription('Resume from communication error situation.') hw_ascpu_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8)) hw_ascpu_utilization_rising = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASCPUUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationRising.setDescription('CPU utilization overrun.') hw_ascpu_utilization_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASCPUUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationResume.setDescription('CPU utilization back to normal level.') hw_as_memory_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9)) hw_as_mem_utilization_rising = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASMemUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationRising.setDescription('Memory utilization overrun.') hw_as_mem_utilization_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASMemUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationResume.setDescription('Memory utilization back to normal level.') hw_as_mad_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10)) hw_as_mad_conflict_detect = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId')) if mibBuilder.loadTexts: hwASMadConflictDetect.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictDetect.setDescription('Notify the NMS that dual-active scenario is detected.') hw_as_mad_conflict_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId')) if mibBuilder.loadTexts: hwASMadConflictResume.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictResume.setDescription('Notify the NMS that dual-active scenario is merged.') hw_unimng_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50)) hw_topomng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1)) hw_topomng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTopoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_compliance = hwTopomngCompliance.setStatus('current') if mibBuilder.loadTexts: hwTopomngCompliance.setDescription('The compliance statement for SNMP entities supporting topomng.') hw_topomng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngExploreTime'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngLastCollectDuration')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_objects_group = hwTopomngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngObjectsGroup.setDescription('The topomng objects group.') hw_topomng_topo_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopoPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalRole'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerRole')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_topo_group = hwTopomngTopoGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoGroup.setDescription('The topology table group.') hw_topomng_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_trap_objects_group = hwTopomngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapObjectsGroup.setDescription('The topomng trap objects group.') hw_topomng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngLinkNormal'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngLinkAbnormal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_traps_group = hwTopomngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapsGroup.setDescription('The topomng notification objects group.') hw_asmng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2)) hw_asmng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsIfGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsIfXGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngGlobalObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngMacWhitelistGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngMacBlacklistGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityPhysicalGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityStateGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityAliasMappingGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngSlotGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_compliance = hwAsmngCompliance.setStatus('current') if mibBuilder.loadTexts: hwAsmngCompliance.setDescription('The compliance statement for SNMP entities supporting asmng.') hw_asmng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMngEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_objects_group = hwAsmngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngObjectsGroup.setDescription('The AS management objects group.') hw_asmng_as_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsHardwareVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsIpAddress'), ('HUAWEI-UNIMNG-MIB', 'hwAsIpNetMask'), ('HUAWEI-UNIMNG-MIB', 'hwAsAccessUser'), ('HUAWEI-UNIMNG-MIB', 'hwAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsSn'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsRunState'), ('HUAWEI-UNIMNG-MIB', 'hwAsSoftwareVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsDns'), ('HUAWEI-UNIMNG-MIB', 'hwAsOnlineTime'), ('HUAWEI-UNIMNG-MIB', 'hwAsCpuUseage'), ('HUAWEI-UNIMNG-MIB', 'hwAsMemoryUseage'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsStackEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsGatewayIp'), ('HUAWEI-UNIMNG-MIB', 'hwAsRowstatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsVpnInstance')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_group = hwAsmngAsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsGroup.setDescription('The as table group.') hw_asmng_as_if_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsIfDescr'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfType'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfMtu'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfSpeed'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfPhysAddress'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_if_group = hwAsmngAsIfGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfGroup.setDescription('The as table group.') hw_asmng_as_if_x_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsIfLinkUpDownTrapEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHighSpeed'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAlias'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHCOutOctets'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInMulticastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInBroadcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutMulticastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutBroadcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHCInOctets'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAsId'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_if_x_group = hwAsmngAsIfXGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfXGroup.setDescription('The as table group.') hw_asmng_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSn'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsFaultTimes'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsActualeType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsSlotType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsPermitNum'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonDesc')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_trap_objects_group = hwAsmngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapObjectsGroup.setDescription('The AS management trap objects group.') hw_asmng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsFaultNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsNormalNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsAddOffLineNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsDelOffLineNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsPortStateChangeToDownNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsPortStateChangeToUpNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsModelNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsVersionNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsNameConflictNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotModelNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsFullNotify'), ('HUAWEI-UNIMNG-MIB', 'hwUnimngModeNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardAddNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardDeleteNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardPlugInNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardPlugOutNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsInBlacklistNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsUnconfirmedNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsComboPortTypeChangeNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsOnlineFailNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotIdInvalidNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysmacSwitchCfgErrNotify')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_traps_group = hwAsmngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapsGroup.setDescription('The AS management notification objects group.') hw_asmng_global_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsAutoReplaceEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsAuthMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_global_objects_group = hwAsmngGlobalObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngGlobalObjectsGroup.setDescription('Description.') hw_asmng_mac_whitelist_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 8)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsMacWhitelistRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_mac_whitelist_group = hwAsmngMacWhitelistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacWhitelistGroup.setDescription('Description.') hw_asmng_mac_blacklist_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 9)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsMacBlacklistRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_mac_blacklist_group = hwAsmngMacBlacklistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacBlacklistGroup.setDescription('Description.') hw_asmng_entity_physical_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 10)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalDescr'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalVendorType'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalContainedIn'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalClass'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalParentRelPos'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalHardwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalFirmwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalSoftwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalSerialNum'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalMfgName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_physical_group = hwAsmngEntityPhysicalGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityPhysicalGroup.setDescription('Description.') hw_asmng_entity_state_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 11)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntityAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityStandbyStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityAlarmLight'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPortType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_state_group = hwAsmngEntityStateGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityStateGroup.setDescription('Description.') hw_asmng_entity_alias_mapping_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 12)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntryAliasMappingIdentifier')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_alias_mapping_group = hwAsmngEntityAliasMappingGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityAliasMappingGroup.setDescription('Description.') hw_asmng_slot_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 13)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsSlotState'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_slot_group = hwAsmngSlotGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngSlotGroup.setDescription('Description.') hw_mbr_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3)) hw_mbr_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwMbrTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwMbrTrapsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwMbrFabricPortGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_compliance = hwMbrCompliance.setStatus('current') if mibBuilder.loadTexts: hwMbrCompliance.setDescription('The compliance statement for SNMP entities supporting mbrmng.') hw_mbr_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapChangeType'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapConnectErrorReason'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapReceivePktRate'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrParaSynFailReason'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapIllegalConfigReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_trap_objects_group = hwMbrTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapObjectsGroup.setDescription('The mbrmng trap objects group.') hw_mbr_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrConnectError'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrASDiscoverAttack'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrFabricPortMemberDelete'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrIllegalFabricConfig')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_traps_group = hwMbrTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapsGroup.setDescription('The mbrmng notification objects group.') hw_mbr_fabric_port_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortMemberIfName'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortDirection'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortIndirectFlag'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortDescription')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_fabric_port_group = hwMbrFabricPortGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrFabricPortGroup.setDescription('The mbrmng fabric port group.') hw_vermng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4)) hw_vermng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_compliance = hwVermngCompliance.setStatus('current') if mibBuilder.loadTexts: hwVermngCompliance.setDescription('The compliance of version management.') hw_vermng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngFileServerType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_objects_group = hwVermngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngObjectsGroup.setDescription('The group of global objects.') hw_vermng_upgrade_info_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsName'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeState'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeType'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsFilePhase'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradePhase'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeResult'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorCode'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorDescr')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_upgrade_info_group = hwVermngUpgradeInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoGroup.setDescription('The group of upgrade info.') hw_vermng_as_type_cfg_info_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoSystemSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoRowStatus'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoSystemSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoAsTypeName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_as_type_cfg_info_group = hwVermngAsTypeCfgInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoGroup.setDescription('The group of AS type.') hw_vermng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeFail')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_traps_group = hwVermngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngTrapsGroup.setDescription('The group of notification of version management.') hw_tplm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5)) hw_tplm_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_compliance = hwTplmCompliance.setStatus('current') if mibBuilder.loadTexts: hwTplmCompliance.setDescription('The compliance of template management.') hw_tplm_as_group_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASAdminProfileName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupProfileStatus'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_as_group_goup = hwTplmASGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupGoup.setDescription('The group of as group.') hw_tplm_as_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmASASGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_as_goup = hwTplmASGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGoup.setDescription('The group of as.') hw_tplm_port_group_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupType'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupNetworkBasicProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupNetworkEnhancedProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupUserAccessProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupProfileStatus'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_port_group_goup = hwTplmPortGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupGoup.setDescription('The group of port group.') hw_tplm_port_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmPortPortGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_port_goup = hwTplmPortGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGoup.setDescription('The group of port.') hw_tplm_config_management_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmConfigCommitAll'), ('HUAWEI-UNIMNG-MIB', 'hwTplmConfigManagementCommit')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_config_management_goup = hwTplmConfigManagementGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementGoup.setDescription('The group of configuration management.') hw_tplm_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmTrapFailedReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_trap_objects_group = hwTplmTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapObjectsGroup.setDescription('The tplm trap objects group.') hw_tplm_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmCmdExecuteFailedNotify'), ('HUAWEI-UNIMNG-MIB', 'hwTplmCmdExecuteSuccessfulNotify'), ('HUAWEI-UNIMNG-MIB', 'hwTplmDirectCmdRecoverFail')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_traps_group = hwTplmTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapsGroup.setDescription('The tplm notification objects group.') hw_uni_base_trap_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6)) hw_uni_base_trap_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniBaseTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwUniBaseTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_trap_compliance = hwUniBaseTrapCompliance.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapCompliance.setDescription('The compliance statement for SNMP entities supporting unimng base trap.') hw_uni_base_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapSeverity'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapProbableCause'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapEventType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalContainedIn'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseRelativeResource'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseReasonDescription'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdUnit'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHighWarning'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHighCritical'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdLowWarning'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdLowCritical'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHwBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHwBaseThresholdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_trap_objects_group = hwUniBaseTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapObjectsGroup.setDescription('The unimng base trap objects group.') hw_uni_base_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwASBoardFail'), ('HUAWEI-UNIMNG-MIB', 'hwASBoardFailResume'), ('HUAWEI-UNIMNG-MIB', 'hwASOpticalInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASOpticalInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerRemove'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInsert'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASFanRemove'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInsert'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASCommunicateError'), ('HUAWEI-UNIMNG-MIB', 'hwASCommunicateResume'), ('HUAWEI-UNIMNG-MIB', 'hwASCPUUtilizationRising'), ('HUAWEI-UNIMNG-MIB', 'hwASCPUUtilizationResume'), ('HUAWEI-UNIMNG-MIB', 'hwASMemUtilizationRising'), ('HUAWEI-UNIMNG-MIB', 'hwASMemUtilizationResume'), ('HUAWEI-UNIMNG-MIB', 'hwASMadConflictDetect'), ('HUAWEI-UNIMNG-MIB', 'hwASMadConflictResume'), ('HUAWEI-UNIMNG-MIB', 'hwASBrdTempAlarm'), ('HUAWEI-UNIMNG-MIB', 'hwASBrdTempResume')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_traps_group = hwUniBaseTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapsGroup.setDescription('The unimng base notification objects group.') mibBuilder.exportSymbols('HUAWEI-UNIMNG-MIB', hwTopomngTrapReason=hwTopomngTrapReason, hwUnimngConformance=hwUnimngConformance, hwTplmPortIfIndex=hwTplmPortIfIndex, hwVermngFileServerType=hwVermngFileServerType, hwAsDns=hwAsDns, hwUniMbrTrapReceivePktRate=hwUniMbrTrapReceivePktRate, hwTopomngTrapObjects=hwTopomngTrapObjects, hwTopomngLastCollectDuration=hwTopomngLastCollectDuration, hwTopoPeerRole=hwTopoPeerRole, hwTplmTraps=hwTplmTraps, hwUniAsBaseThresholdLowWarning=hwUniAsBaseThresholdLowWarning, hwMbrCompliances=hwMbrCompliances, hwUniAsBaseReasonDescription=hwUniAsBaseReasonDescription, hwAsSlotRowStatus=hwAsSlotRowStatus, hwASPowerInvalidResume=hwASPowerInvalidResume, hwVermngCompliances=hwVermngCompliances, hwAsmngTrapParentUnimngMode=hwAsmngTrapParentUnimngMode, hwTopoLocalTrunkId=hwTopoLocalTrunkId, hwASEnvironmentTrap=hwASEnvironmentTrap, hwAsFullNotify=hwAsFullNotify, hwTplmASEntry=hwTplmASEntry, hwTopomngTrapPeerTrunkId=hwTopomngTrapPeerTrunkId, hwAsDelOffLineNotify=hwAsDelOffLineNotify, hwTplmCmdExecuteFailedNotify=hwTplmCmdExecuteFailedNotify, hwMbrMngFabricPortId=hwMbrMngFabricPortId, hwAsIfAsId=hwAsIfAsId, hwUniAsBaseThresholdEntCurrent=hwUniAsBaseThresholdEntCurrent, hwVermngAsTypeCfgInfoTable=hwVermngAsTypeCfgInfoTable, hwTplmDirectCmdRecoverFail=hwTplmDirectCmdRecoverFail, hwUniBaseTrapObjectsGroup=hwUniBaseTrapObjectsGroup, hwASPowerInsert=hwASPowerInsert, hwAsIfLinkUpDownTrapEnable=hwAsIfLinkUpDownTrapEnable, hwAsmngTrapAsUnimngMode=hwAsmngTrapAsUnimngMode, hwAsIfOutMulticastPkts=hwAsIfOutMulticastPkts, hwAsEntityPhysicalDescr=hwAsEntityPhysicalDescr, hwUniAsBaseThresholdHwBaseThresholdIndex=hwUniAsBaseThresholdHwBaseThresholdIndex, hwAsSlotIdInvalidNotify=hwAsSlotIdInvalidNotify, hwUnimngNotification=hwUnimngNotification, hwAsIfName=hwAsIfName, hwVermngUpgradeInfoAsUpgradeResult=hwVermngUpgradeInfoAsUpgradeResult, hwAsIfDescr=hwAsIfDescr, hwVermngUpgradeInfoAsSysSoftwareVer=hwVermngUpgradeInfoAsSysSoftwareVer, hwVermngUpgradeInfoAsDownloadSoftwareVer=hwVermngUpgradeInfoAsDownloadSoftwareVer, hwTopoLocalHop=hwTopoLocalHop, hwAsEntityOperStatus=hwAsEntityOperStatus, hwTplmPortRowStatus=hwTplmPortRowStatus, hwTplmPortGroupProfileStatus=hwTplmPortGroupProfileStatus, hwAsBoardPlugInNotify=hwAsBoardPlugInNotify, hwTplmPortGroupRowStatus=hwTplmPortGroupRowStatus, hwAsIpNetMask=hwAsIpNetMask, hwAsmngTrapAsSn=hwAsmngTrapAsSn, hwAsIfTable=hwAsIfTable, hwAsUnconfirmedNotify=hwAsUnconfirmedNotify, hwAsEntityPhysicalIndex=hwAsEntityPhysicalIndex, hwAsmngTrapsGroup=hwAsmngTrapsGroup, hwTplmTrap=hwTplmTrap, hwAsEntityPhysicalHardwareRev=hwAsEntityPhysicalHardwareRev, hwUniAsBaseTraps=hwUniAsBaseTraps, hwTplmASGroupProfileStatus=hwTplmASGroupProfileStatus, hwVermngCompliance=hwVermngCompliance, hwAsMacBlacklistTable=hwAsMacBlacklistTable, hwUniAsBaseEntityPhysicalIndex=hwUniAsBaseEntityPhysicalIndex, hwVermngAsTypeCfgInfoAsTypeIndex=hwVermngAsTypeCfgInfoAsTypeIndex, hwAsIfInBroadcastPkts=hwAsIfInBroadcastPkts, hwASOpticalInvalidResume=hwASOpticalInvalidResume, hwTplmCompliance=hwTplmCompliance, hwAsEntityPhysicalContainedIn=hwAsEntityPhysicalContainedIn, hwMbrmngObjects=hwMbrmngObjects, hwAsSlotState=hwAsSlotState, hwUniAsBaseThresholdHighCritical=hwUniAsBaseThresholdHighCritical, hwASPowerRemove=hwASPowerRemove, hwAsIfOutBroadcastPkts=hwAsIfOutBroadcastPkts, hwVermngAsTypeCfgInfoSystemSoftware=hwVermngAsTypeCfgInfoSystemSoftware, hwAsFaultNotify=hwAsFaultNotify, hwAsmngAsIfGroup=hwAsmngAsIfGroup, hwAsmngTrapAsActualeType=hwAsmngTrapAsActualeType, hwAsEntityPortType=hwAsEntityPortType, hwTopomngExploreTime=hwTopomngExploreTime, hwUniMbrTrapIllegalConfigReason=hwUniMbrTrapIllegalConfigReason, hwTplmPortGroupNetworkBasicProfile=hwTplmPortGroupNetworkBasicProfile, hwUniMbrTrapAsSysName=hwUniMbrTrapAsSysName, hwASFanInsert=hwASFanInsert, hwAsAutoReplaceEnable=hwAsAutoReplaceEnable, hwVermngTrapsGroup=hwVermngTrapsGroup, hwTopomngObjects=hwTopomngObjects, hwUniMbrLinkStatTrapLocalMac=hwUniMbrLinkStatTrapLocalMac, PYSNMP_MODULE_ID=hwUnimngMIB, hwUniAsBaseTrap=hwUniAsBaseTrap, hwVermngUpgradeInfoTable=hwVermngUpgradeInfoTable, hwAsMacBlacklistMacAddr=hwAsMacBlacklistMacAddr, hwTopomngCompliances=hwTopomngCompliances, hwAsEntityPhysicalName=hwAsEntityPhysicalName, hwAsMacBlacklistRowStatus=hwAsMacBlacklistRowStatus, hwVermngUpgradeInfoAsUpgradePhase=hwVermngUpgradeInfoAsUpgradePhase, hwAsRowstatus=hwAsRowstatus, hwMbrMngASId=hwMbrMngASId, hwMbrMngFabricPortEntry=hwMbrMngFabricPortEntry, hwASCommunicateResume=hwASCommunicateResume, hwAsMacWhitelistMacAddr=hwAsMacWhitelistMacAddr, hwAsIfAlias=hwAsIfAlias, hwUniMbrTrapObjects=hwUniMbrTrapObjects, hwVermngUpgradeInfoAsIndex=hwVermngUpgradeInfoAsIndex, hwTplmObjects=hwTplmObjects, hwAsIndex=hwAsIndex, hwASOpticalInvalid=hwASOpticalInvalid, hwAsIfSpeed=hwAsIfSpeed, hwAsIfHCOutOctets=hwAsIfHCOutOctets, hwTopomngTopoGroup=hwTopomngTopoGroup, hwTplmPortGroupTable=hwTplmPortGroupTable, hwAsNameConflictNotify=hwAsNameConflictNotify, hwUniMbrConnectError=hwUniMbrConnectError, hwUniBaseTrapCompliance=hwUniBaseTrapCompliance, hwAsmngMacWhitelistGroup=hwAsmngMacWhitelistGroup, hwAsPortStateChangeToDownNotify=hwAsPortStateChangeToDownNotify, hwTplmCompliances=hwTplmCompliances, hwUniAsBaseThresholdLowCritical=hwUniAsBaseThresholdLowCritical, hwUniAsBaseThresholdEntValue=hwUniAsBaseThresholdEntValue, hwUniAsBaseRelativeResource=hwUniAsBaseRelativeResource, hwTopomngObjectsGroup=hwTopomngObjectsGroup, hwAsEntry=hwAsEntry, hwAsVersionNotMatchNotify=hwAsVersionNotMatchNotify, hwVermngAsTypeCfgInfoRowStatus=hwVermngAsTypeCfgInfoRowStatus, hwMbrCompliance=hwMbrCompliance, hwAsmngTrapAsIfAdminStatus=hwAsmngTrapAsIfAdminStatus, hwUniMngEnable=hwUniMngEnable, hwVermngUpgradeInfoEntry=hwVermngUpgradeInfoEntry, hwAsEntityStateEntry=hwAsEntityStateEntry, hwAsEntityPhysicalSoftwareRev=hwAsEntityPhysicalSoftwareRev, hwTplmConfigManagementTable=hwTplmConfigManagementTable, hwAsComboPortTypeChangeNotify=hwAsComboPortTypeChangeNotify, hwAsBoardAddNotify=hwAsBoardAddNotify, hwAsMacWhitelistTable=hwAsMacWhitelistTable, hwMbrFabricPortGroup=hwMbrFabricPortGroup, hwAsmngGlobalObjects=hwAsmngGlobalObjects, hwAsIfAdminStatus=hwAsIfAdminStatus, hwUniBaseTrapsGroup=hwUniBaseTrapsGroup, hwTplmASGroupEntry=hwTplmASGroupEntry, hwUniMbrIllegalFabricConfig=hwUniMbrIllegalFabricConfig, hwAsIfInMulticastPkts=hwAsIfInMulticastPkts, hwTplmPortGoup=hwTplmPortGoup, hwVermngUpgradeInfoAsUpgradeState=hwVermngUpgradeInfoAsUpgradeState, hwUniMbrLinkStatTrapLocalPortName=hwUniMbrLinkStatTrapLocalPortName, hwVermngTrap=hwVermngTrap, hwTplmTrapsGroup=hwTplmTrapsGroup, hwAsIpAddress=hwAsIpAddress, hwASFanRemove=hwASFanRemove, hwUniAsBaseEntityTrapEntType=hwUniAsBaseEntityTrapEntType, hwUniAsBaseEntityTrapEntFaultID=hwUniAsBaseEntityTrapEntFaultID, hwAsmngTrapAsOnlineFailReasonDesc=hwAsmngTrapAsOnlineFailReasonDesc, hwVermngUpgradeInfoAsUpgradeType=hwVermngUpgradeInfoAsUpgradeType, hwUnimngMIB=hwUnimngMIB, hwAsSlotTable=hwAsSlotTable, hwAsmngTrapAsModel=hwAsmngTrapAsModel, hwAsmngObjects=hwAsmngObjects, hwVermngTrapObjects=hwVermngTrapObjects, hwAsmngTrapAsIfType=hwAsmngTrapAsIfType, hwAsEntityAliasMappingTable=hwAsEntityAliasMappingTable, hwASCommunicateError=hwASCommunicateError, hwVermngGlobalObjects=hwVermngGlobalObjects, hwAsIfPhysAddress=hwAsIfPhysAddress, hwAsmngTrapAsOnlineFailReasonId=hwAsmngTrapAsOnlineFailReasonId, hwAsEntityStandbyStatus=hwAsEntityStandbyStatus, hwTplmPortGroupGoup=hwTplmPortGroupGoup, hwUniMbrTraps=hwUniMbrTraps, hwAsEntryAliasMappingIdentifier=hwAsEntryAliasMappingIdentifier, hwAsIfInUcastPkts=hwAsIfInUcastPkts, hwUniMbrTrapConnectErrorReason=hwUniMbrTrapConnectErrorReason, hwTplmTrapFailedReason=hwTplmTrapFailedReason, hwAsmngSlotGroup=hwAsmngSlotGroup, hwTopomngTopoEntry=hwTopomngTopoEntry, hwTplmPortGroupEntry=hwTplmPortGroupEntry, hwAsEntityAdminStatus=hwAsEntityAdminStatus, hwTplmConfigManagementASId=hwTplmConfigManagementASId, hwAsEntityPhysicalEntry=hwAsEntityPhysicalEntry, hwAsHardwareVersion=hwAsHardwareVersion, hwVermngObjectsGroup=hwVermngObjectsGroup, hwAsmngTrapAsIfIndex=hwAsmngTrapAsIfIndex, hwTplmPortGroupUserAccessProfile=hwTplmPortGroupUserAccessProfile, hwAsmngTrapAsFaultTimes=hwAsmngTrapAsFaultTimes, hwTplmPortEntry=hwTplmPortEntry, hwAsmngEntityPhysicalGroup=hwAsmngEntityPhysicalGroup, hwAsAddOffLineNotify=hwAsAddOffLineNotify, hwAsCpuUseage=hwAsCpuUseage, hwAsMacBlacklistEntry=hwAsMacBlacklistEntry, hwASFanTrap=hwASFanTrap, hwTplmPortPortGroupName=hwTplmPortPortGroupName, hwAsEntityAliasMappingEntry=hwAsEntityAliasMappingEntry, hwUniAsBaseThresholdHighWarning=hwUniAsBaseThresholdHighWarning, hwTplmASId=hwTplmASId, hwAsIfOperStatus=hwAsIfOperStatus, hwAsmngEntityStateGroup=hwAsmngEntityStateGroup, hwTopoPeerMac=hwTopoPeerMac, hwASCPUTrap=hwASCPUTrap, hwTopomngTrapLocalMac=hwTopomngTrapLocalMac, hwAsmngTrap=hwAsmngTrap, hwTopoPeerTrunkId=hwTopoPeerTrunkId, hwAsRunState=hwAsRunState, hwAsMac=hwAsMac, hwVermngUpgradeInfoAsSysPatch=hwVermngUpgradeInfoAsSysPatch, hwASBrdTempResume=hwASBrdTempResume, hwAsmngGlobalObjectsGroup=hwAsmngGlobalObjectsGroup, hwVermngUpgradeInfoGroup=hwVermngUpgradeInfoGroup, hwAsAccessUser=hwAsAccessUser, hwTopoLocalPortName=hwTopoLocalPortName, hwASMemUtilizationResume=hwASMemUtilizationResume, hwTplmASAdminProfileName=hwTplmASAdminProfileName, hwAsSysmacSwitchCfgErrNotify=hwAsSysmacSwitchCfgErrNotify, hwASCPUUtilizationResume=hwASCPUUtilizationResume, hwAsIfMtu=hwAsIfMtu, hwTopoPeerDeviceIndex=hwTopoPeerDeviceIndex, hwAsSoftwareVersion=hwAsSoftwareVersion, hwASBrdTempAlarm=hwASBrdTempAlarm, hwAsmngTrapAsIndex=hwAsmngTrapAsIndex, hwAsEntityPhysicalVendorType=hwAsEntityPhysicalVendorType, hwAsmngTrapAsIfOperStatus=hwAsmngTrapAsIfOperStatus, hwASPowerInvalid=hwASPowerInvalid, hwAsGatewayIp=hwAsGatewayIp, hwUniMbrTrapAsIndex=hwUniMbrTrapAsIndex, hwTopoLocalRole=hwTopoLocalRole, hwAsIfHighSpeed=hwAsIfHighSpeed, hwTopomngTrapObjectsGroup=hwTopomngTrapObjectsGroup, hwAsmngTrapAddedAsSlotType=hwAsmngTrapAddedAsSlotType, hwVermngUpgradeInfoAsDownloadSoftware=hwVermngUpgradeInfoAsDownloadSoftware, hwTplmPortGroupType=hwTplmPortGroupType, hwUniAsBaseEntPhysicalContainedIn=hwUniAsBaseEntPhysicalContainedIn, hwTopomngTrapsGroup=hwTopomngTrapsGroup, hwAsIfOutUcastPkts=hwAsIfOutUcastPkts, hwTopomngTrap=hwTopomngTrap, hwTplmConfigCommitAll=hwTplmConfigCommitAll, hwAsmngTrapAsVersion=hwAsmngTrapAsVersion, hwTplmConfigManagementEntry=hwTplmConfigManagementEntry, hwTplmASRowStatus=hwTplmASRowStatus, hwTopomngTrapLocalPortName=hwTopomngTrapLocalPortName, hwTplmCmdExecuteSuccessfulNotify=hwTplmCmdExecuteSuccessfulNotify, hwUniAsBaseTrapProbableCause=hwUniAsBaseTrapProbableCause, hwAsSlotId=hwAsSlotId, hwTplmTrapASName=hwTplmTrapASName, hwAsIfXEntry=hwAsIfXEntry, hwTopomngTrapPeerPortName=hwTopomngTrapPeerPortName, hwTopomngLinkNormal=hwTopomngLinkNormal, hwASMemoryTrap=hwASMemoryTrap, hwUniAsBaseTrapSeverity=hwUniAsBaseTrapSeverity, hwTplmConfigManagementGoup=hwTplmConfigManagementGoup, hwTopomngTraps=hwTopomngTraps, hwVermngAsTypeCfgInfoPatch=hwVermngAsTypeCfgInfoPatch, hwUniAsBaseTrapEventType=hwUniAsBaseTrapEventType, hwAsMacWhitelistRowStatus=hwAsMacWhitelistRowStatus, hwTplmPortGroupIndex=hwTplmPortGroupIndex, hwAsEntityPhysicalParentRelPos=hwAsEntityPhysicalParentRelPos, AlarmStatus=AlarmStatus, hwMbrMngFabricPortDescription=hwMbrMngFabricPortDescription, hwAsmngTrapAsPermitNum=hwAsmngTrapAsPermitNum, hwAsEntityStateTable=hwAsEntityStateTable, hwAsVpnInstance=hwAsVpnInstance) mibBuilder.exportSymbols('HUAWEI-UNIMNG-MIB', hwTplmASGroupIndex=hwTplmASGroupIndex, hwMbrTrapsGroup=hwMbrTrapsGroup, hwTplmASGroupName=hwTplmASGroupName, hwTopomngTopoTable=hwTopomngTopoTable, hwASPowerTrap=hwASPowerTrap, hwAsEntityPhysicalMfgName=hwAsEntityPhysicalMfgName, hwVermngObjects=hwVermngObjects, hwTplmTrapObjectsGroup=hwTplmTrapObjectsGroup, hwAsStackEnable=hwAsStackEnable, hwTplmASGoup=hwTplmASGoup, hwMbrMngFabricPortDirection=hwMbrMngFabricPortDirection, hwUnimngObjects=hwUnimngObjects, hwASBoardFailResume=hwASBoardFailResume, hwVermngUpgradeInfoAsName=hwVermngUpgradeInfoAsName, hwUniAsBaseEntPhysicalName=hwUniAsBaseEntPhysicalName, hwAsOnlineTime=hwAsOnlineTime, hwAsmngTrapObjects=hwAsmngTrapObjects, hwUniBaseTrapCompliances=hwUniBaseTrapCompliances, hwVermngAsTypeCfgInfoAsTypeName=hwVermngAsTypeCfgInfoAsTypeName, hwAsEntryAliasLogicalIndexOrZero=hwAsEntryAliasLogicalIndexOrZero, hwAsSysMac=hwAsSysMac, hwAsmngTrapParentVersion=hwAsmngTrapParentVersion, hwAsInBlacklistNotify=hwAsInBlacklistNotify, hwAsPortStateChangeToUpNotify=hwAsPortStateChangeToUpNotify, hwAsMacWhitelistEntry=hwAsMacWhitelistEntry, hwUniAsBaseThresholdType=hwUniAsBaseThresholdType, hwAsEntityPhysicalFirmwareRev=hwAsEntityPhysicalFirmwareRev, hwTplmPortGroupName=hwTplmPortGroupName, hwASCommunicateTrap=hwASCommunicateTrap, hwAsmngTrapAddedAsMac=hwAsmngTrapAddedAsMac, hwTopomngCompliance=hwTopomngCompliance, hwAsNormalNotify=hwAsNormalNotify, hwVermngAsTypeCfgInfoSystemSoftwareVer=hwVermngAsTypeCfgInfoSystemSoftwareVer, hwASMemUtilizationRising=hwASMemUtilizationRising, hwASMadConflictDetect=hwASMadConflictDetect, hwAsmngCompliance=hwAsmngCompliance, hwUniAsBaseThresholdHwBaseThresholdType=hwUniAsBaseThresholdHwBaseThresholdType, hwUnimngModeNotMatchNotify=hwUnimngModeNotMatchNotify, hwAsEntityPhysicalTable=hwAsEntityPhysicalTable, hwAsEntityAlarmLight=hwAsEntityAlarmLight, hwVermngUpgradeInfoAsFilePhase=hwVermngUpgradeInfoAsFilePhase, hwTplmASASGroupName=hwTplmASASGroupName, hwAsSysName=hwAsSysName, hwVermngUpgradeFail=hwVermngUpgradeFail, hwUniAsBaseThresholdUnit=hwUniAsBaseThresholdUnit, hwAsOnlineFailNotify=hwAsOnlineFailNotify, hwMbrTrapObjectsGroup=hwMbrTrapObjectsGroup, hwTplmPortGroupNetworkEnhancedProfile=hwTplmPortGroupNetworkEnhancedProfile, hwTplmConfigManagement=hwTplmConfigManagement, hwTplmASGroupTable=hwTplmASGroupTable, hwAsmngTraps=hwAsmngTraps, hwUniAsBaseTrapObjects=hwUniAsBaseTrapObjects, hwUniAsBaseThresholdValue=hwUniAsBaseThresholdValue, hwUniMbrLinkStatTrapChangeType=hwUniMbrLinkStatTrapChangeType, hwTplmPortTable=hwTplmPortTable, hwTplmASGroupGoup=hwTplmASGroupGoup, hwASCPUUtilizationRising=hwASCPUUtilizationRising, hwTopomngTrapPeerMac=hwTopomngTrapPeerMac, hwAsmngTrapObjectsGroup=hwAsmngTrapObjectsGroup, hwAsmngTrapAsSysName=hwAsmngTrapAsSysName, hwAsmngMacBlacklistGroup=hwAsmngMacBlacklistGroup, hwAsIfType=hwAsIfType, hwAsmngTrapAsMac=hwAsmngTrapAsMac, hwUniAsBaseEntPhysicalIndex=hwUniAsBaseEntPhysicalIndex, hwAsEntityPhysicalClass=hwAsEntityPhysicalClass, hwUniAsBaseAsName=hwUniAsBaseAsName, hwAsModelNotMatchNotify=hwAsModelNotMatchNotify, hwAsEntityPhysicalSerialNum=hwAsEntityPhysicalSerialNum, hwVermngUpgradeInfoAsErrorDescr=hwVermngUpgradeInfoAsErrorDescr, hwTopomngLinkAbnormal=hwTopomngLinkAbnormal, hwAsmngTrapAsIfName=hwAsmngTrapAsIfName, hwUniMbrASDiscoverAttack=hwUniMbrASDiscoverAttack, hwAsIfHCInOctets=hwAsIfHCInOctets, hwVermngTraps=hwVermngTraps, hwASMadConflictResume=hwASMadConflictResume, hwTopoLocalMac=hwTopoLocalMac, hwAsmngCompliances=hwAsmngCompliances, hwVermngAsTypeCfgInfoGroup=hwVermngAsTypeCfgInfoGroup, hwVermngUpgradeInfoAsDownloadPatch=hwVermngUpgradeInfoAsDownloadPatch, hwAsmngTrapAsSlotId=hwAsmngTrapAsSlotId, hwTopoPeerPortName=hwTopoPeerPortName, hwAsmngEntityAliasMappingGroup=hwAsmngEntityAliasMappingGroup, hwTplmTrapObjects=hwTplmTrapObjects, hwVermngUpgradeInfoAsSysSoftware=hwVermngUpgradeInfoAsSysSoftware, hwASOpticalTrap=hwASOpticalTrap, hwMbrMngFabricPortIndirectFlag=hwMbrMngFabricPortIndirectFlag, hwAsIfEntry=hwAsIfEntry, hwUniMbrTrap=hwUniMbrTrap, hwTopomngTrapLocalTrunkId=hwTopomngTrapLocalTrunkId, hwAsMemoryUseage=hwAsMemoryUseage, hwAsModel=hwAsModel, hwUniAsBaseEntityTrapCommunicateType=hwUniAsBaseEntityTrapCommunicateType, hwUniMbrFabricPortMemberDelete=hwUniMbrFabricPortMemberDelete, hwAsSn=hwAsSn, hwTplmASTable=hwTplmASTable, hwAsIfXTable=hwAsIfXTable, hwASBoardTrap=hwASBoardTrap, hwAsmngObjectsGroup=hwAsmngObjectsGroup, hwAsBoardPlugOutNotify=hwAsBoardPlugOutNotify, hwAsmngAsIfXGroup=hwAsmngAsIfXGroup, hwASFanInvalidResume=hwASFanInvalidResume, hwAsTable=hwAsTable, hwMbrMngFabricPortMemberIfName=hwMbrMngFabricPortMemberIfName, hwASFanInvalid=hwASFanInvalid, hwVermngUpgradeInfoAsErrorCode=hwVermngUpgradeInfoAsErrorCode, hwUniMbrParaSynFailReason=hwUniMbrParaSynFailReason, hwAsmngAsGroup=hwAsmngAsGroup, hwAsAuthMode=hwAsAuthMode, hwAsSlotModelNotMatchNotify=hwAsSlotModelNotMatchNotify, hwTplmASGroupRowStatus=hwTplmASGroupRowStatus, hwTplmConfigManagementCommit=hwTplmConfigManagementCommit, hwVermngAsTypeCfgInfoEntry=hwVermngAsTypeCfgInfoEntry, hwAsBoardDeleteNotify=hwAsBoardDeleteNotify, hwAsIfIndex=hwAsIfIndex, hwAsSlotEntry=hwAsSlotEntry, hwMbrMngFabricPortTable=hwMbrMngFabricPortTable, hwASBoardFail=hwASBoardFail, hwUniAsBaseAsId=hwUniAsBaseAsId, hwASMadTrap=hwASMadTrap)
''' NAME Program that calculates the percentage of a list of amino acids. VERSION [1.0] AUTHOR Rodrigo Daniel Hernandez Barrera <<rodrigoh@lcg.unam.mx>> DESCRIPTION This program takes a sequence of amino acids from a protein and a list of amino acids, looks for these in the sequence and returns the percentage, it also tests the robustness of the code, all done with functions. CATEGORY Protein sequence. INPUT A protein sequence or nothing if the user uses the example OUTPUT Returns the percentage of the amino acid list in the sequence as output. EXAMPLES Input MSRSLLLRFLLFLLLLPPLP Output The percentage of hydrophilic amino acids in the example sequence is: 65.0 GITHUB https://github.com/rod13-afk/python_class/blob/master/scripts/aminoacid_list.py ''' # This function tests the robustness of the code def testing(protein): assert get_aa_percentage(example_protein, ["M"]) == 5 assert get_aa_percentage(example_protein, ['M', 'L']) == 55 assert get_aa_percentage(example_protein, ['F', 'S', 'L']) == 70 assert get_aa_percentage(example_protein, hydrophilic_aa) == 65 # This function calculates the percentage of the amino acid list in the sequence def get_aa_percentage(protein, aa_list): percentage = 0 for aa in aa_list: percentage += protein.count(aa) * 100 / len(protein) return percentage example_protein = "MSRSLLLRFLLFLLLLPPLP" hydrophilic_aa = ['A', 'I', 'L', 'M', 'F', 'W', 'Y', 'V'] # The program asks if the user wants to use a new protein or the provided example. print("Do you want to use the protein from the example in class or do you want to enter a new protein?: ") print("To use the example enter 0") print("To enter another protein enter 1") decision = int(input("Decision: ")) # This 'if' evaluates the user's decision and calls the functions with the correct parameters if decision == 0: print("The percentage of hydrophilic amino acids in the example sequence is: " + str( get_aa_percentage(example_protein, hydrophilic_aa))) testing(example_protein) elif decision == 1: print("Enter the new protein: ") new_protein = input("Protein: ") print("The percentage of hydrophilic amino acids in the new sequence is: " + str( get_aa_percentage(new_protein.upper(), hydrophilic_aa))) testing(new_protein)
""" NAME Program that calculates the percentage of a list of amino acids. VERSION [1.0] AUTHOR Rodrigo Daniel Hernandez Barrera <<rodrigoh@lcg.unam.mx>> DESCRIPTION This program takes a sequence of amino acids from a protein and a list of amino acids, looks for these in the sequence and returns the percentage, it also tests the robustness of the code, all done with functions. CATEGORY Protein sequence. INPUT A protein sequence or nothing if the user uses the example OUTPUT Returns the percentage of the amino acid list in the sequence as output. EXAMPLES Input MSRSLLLRFLLFLLLLPPLP Output The percentage of hydrophilic amino acids in the example sequence is: 65.0 GITHUB https://github.com/rod13-afk/python_class/blob/master/scripts/aminoacid_list.py """ def testing(protein): assert get_aa_percentage(example_protein, ['M']) == 5 assert get_aa_percentage(example_protein, ['M', 'L']) == 55 assert get_aa_percentage(example_protein, ['F', 'S', 'L']) == 70 assert get_aa_percentage(example_protein, hydrophilic_aa) == 65 def get_aa_percentage(protein, aa_list): percentage = 0 for aa in aa_list: percentage += protein.count(aa) * 100 / len(protein) return percentage example_protein = 'MSRSLLLRFLLFLLLLPPLP' hydrophilic_aa = ['A', 'I', 'L', 'M', 'F', 'W', 'Y', 'V'] print('Do you want to use the protein from the example in class or do you want to enter a new protein?: ') print('To use the example enter 0') print('To enter another protein enter 1') decision = int(input('Decision: ')) if decision == 0: print('The percentage of hydrophilic amino acids in the example sequence is: ' + str(get_aa_percentage(example_protein, hydrophilic_aa))) testing(example_protein) elif decision == 1: print('Enter the new protein: ') new_protein = input('Protein: ') print('The percentage of hydrophilic amino acids in the new sequence is: ' + str(get_aa_percentage(new_protein.upper(), hydrophilic_aa))) testing(new_protein)
#Gary Cunningham. 27/03/19 #My program intends to convert the string inputted by removing every second word on the output. #Adaptation from python tutorials, class content and w3schools.com interactive tutorials. #Attempted this solution alongside the inputs from the learnings of previous solutions in this problem set. n = input("Please enter a sentence: ") secondstring = (n.split()) # Using the split() function as found in python tutorials and practiced on the w3schools tutorials to understand its uses. for words in secondstring: # Creating the loop so that the split can continue regardless of the length of the inputted sentence. print(' '.join(secondstring[::2])) # Included the (::2) so that the second word of the input is removed from the program and outputted. # Was unsure how to join the outputted list to a string and found the ' '.join() function allowed accurate output. break # Included a break in the loop to ensure accuracy during testing.
n = input('Please enter a sentence: ') secondstring = n.split() for words in secondstring: print(' '.join(secondstring[::2])) break
distance = int(input('Inform the distance: ')) if distance <= 200: price = distance * 0.5 else: price = distance * 0.45 print('Your trip cost \033[1;33;44mR$ {:.2f}\033[m.'.format(price))
distance = int(input('Inform the distance: ')) if distance <= 200: price = distance * 0.5 else: price = distance * 0.45 print('Your trip cost \x1b[1;33;44mR$ {:.2f}\x1b[m.'.format(price))
#!/usr/bin/env python imagedir = parent + "/oiio-images" command += oiiotool (imagedir+"/grid.tif --scanline -o grid.iff") command += diff_command (imagedir+"/grid.tif", "grid.iff")
imagedir = parent + '/oiio-images' command += oiiotool(imagedir + '/grid.tif --scanline -o grid.iff') command += diff_command(imagedir + '/grid.tif', 'grid.iff')
class Sang: def __init__(self, tittel, artist): self._tittel = tittel self._artist = artist def spill(self): print('\t Spiller av', self._tittel, 'av', self._artist) def sjekkArtist(self, navn): liste = navn.split() for i in liste: if i in self._artist: return True return False def sjekkTittel(self, tittel): if tittel.lower() == self._tittel.lower(): return True return False def sjekkArtistogTittel(self, artist, tittel): liste = artist.split() for i in liste: if i in self._artist and tittel.lower() == self._tittel.lower(): return True return False
class Sang: def __init__(self, tittel, artist): self._tittel = tittel self._artist = artist def spill(self): print('\t Spiller av', self._tittel, 'av', self._artist) def sjekk_artist(self, navn): liste = navn.split() for i in liste: if i in self._artist: return True return False def sjekk_tittel(self, tittel): if tittel.lower() == self._tittel.lower(): return True return False def sjekk_artistog_tittel(self, artist, tittel): liste = artist.split() for i in liste: if i in self._artist and tittel.lower() == self._tittel.lower(): return True return False
l = [6,2,5,5,4,5,6,3,7,6] for _ in range(int(input())): a,b = map(int,input().split()) ans = a + b val = 0 for i in str(ans): val += l[int(i)] print(val)
l = [6, 2, 5, 5, 4, 5, 6, 3, 7, 6] for _ in range(int(input())): (a, b) = map(int, input().split()) ans = a + b val = 0 for i in str(ans): val += l[int(i)] print(val)
def measure(bucket1, bucket2, goal, start_bucket): if start_bucket == "one": liter1 = bucket1 liter2 = 0 elif start_bucket == "two": liter1 = 0 liter2 = bucket2 return bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket) def bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket): states = [(liter1, liter2)] seen = set() move_count = 1 while states != []: new_states = [] for liter1, liter2 in states: if liter1 == goal: return (move_count, "one", liter2) elif liter2 == goal: return (move_count, "two", liter1) for liter1, liter2 in move(bucket1, bucket2, liter1, liter2): if start_bucket == "one" and liter1 == 0 and liter2 == bucket2: continue if start_bucket == "two" and liter2 == 0 and liter1 == bucket1: continue if (liter1, liter2) not in seen: new_states.append((liter1, liter2)) seen.add((liter1, liter2)) states = new_states move_count += 1 return None def move(bucket1, bucket2, liter1, liter2): return [ (0, liter2), (liter1, 0), (bucket1, liter2), (liter1, bucket2), (max(liter1 + liter2, bucket2) - bucket2, min(liter1 + liter2, bucket2)), (min(liter1 + liter2, bucket1), max(liter1 + liter2, bucket1) - bucket1) ]
def measure(bucket1, bucket2, goal, start_bucket): if start_bucket == 'one': liter1 = bucket1 liter2 = 0 elif start_bucket == 'two': liter1 = 0 liter2 = bucket2 return bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket) def bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket): states = [(liter1, liter2)] seen = set() move_count = 1 while states != []: new_states = [] for (liter1, liter2) in states: if liter1 == goal: return (move_count, 'one', liter2) elif liter2 == goal: return (move_count, 'two', liter1) for (liter1, liter2) in move(bucket1, bucket2, liter1, liter2): if start_bucket == 'one' and liter1 == 0 and (liter2 == bucket2): continue if start_bucket == 'two' and liter2 == 0 and (liter1 == bucket1): continue if (liter1, liter2) not in seen: new_states.append((liter1, liter2)) seen.add((liter1, liter2)) states = new_states move_count += 1 return None def move(bucket1, bucket2, liter1, liter2): return [(0, liter2), (liter1, 0), (bucket1, liter2), (liter1, bucket2), (max(liter1 + liter2, bucket2) - bucket2, min(liter1 + liter2, bucket2)), (min(liter1 + liter2, bucket1), max(liter1 + liter2, bucket1) - bucket1)]
class SymbolManager: def __init__(self): self.symbol_dic = {} def add_symbol(self, symbol): if symbol is None: return self.symbol_dic[symbol.symbol_code] = symbol def find_symbol(self, symbol_code): for symbol in self.symbol_dic.items(): if symbol[1].symbol_code == symbol_code: return symbol[1] return None
class Symbolmanager: def __init__(self): self.symbol_dic = {} def add_symbol(self, symbol): if symbol is None: return self.symbol_dic[symbol.symbol_code] = symbol def find_symbol(self, symbol_code): for symbol in self.symbol_dic.items(): if symbol[1].symbol_code == symbol_code: return symbol[1] return None
# Constants for the Lines and Boxes game WINDOW_WIDTH = 800 WINDOW_HEIGHT = 450 WHITE = (255, 255, 255) BLACK = (0, 0, 0) GRAY = (220, 220, 220) FRAMES_PER_SECOND = 40 NROWS = 5 NCOLS = 5 NSQUARES = NROWS * NCOLS SPACING = 43 NLINES = 60 EMPTY = 'empty' HUMAN = 'human' COMPUTER = 'computer' STARTING_X = 72 STARTING_Y = 48 BOX_SIZE = 45 LINE_SIZE = 13 BOX_AND_LINE_SIZE = BOX_SIZE + LINE_SIZE SELECT = 'select' NORMAL = 'normal'
window_width = 800 window_height = 450 white = (255, 255, 255) black = (0, 0, 0) gray = (220, 220, 220) frames_per_second = 40 nrows = 5 ncols = 5 nsquares = NROWS * NCOLS spacing = 43 nlines = 60 empty = 'empty' human = 'human' computer = 'computer' starting_x = 72 starting_y = 48 box_size = 45 line_size = 13 box_and_line_size = BOX_SIZE + LINE_SIZE select = 'select' normal = 'normal'
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def insert_node(root, value): if root.data: if value < root.data: if root.left is None: root.left = Node(value) else: insert_node(root.left, value) elif value > root.data: if root.right is None: root.right = Node(value) else: insert_node(root.right, value) else: root.data = value def delete_node(root, value): if root is None: return root if value < root.data: root.left = delete_node(root.left, value) return root if value > root.data: root.right = delete_node(root.right, value) return root if root.right is None: return root.left if root.left is None: return root.right min_larger_node = root.right while min_larger_node.left: min_larger_node = min_larger_node.left root.data = min_larger_node.data root.right = delete_node(min_larger_node.data) return root def show_tree(root): if root is None: return [] result = [] stack = [root] while len(stack) > 0: current = stack.pop() result.append(current.data) if current.left: stack.append(current.left) if current.right: stack.append(current.right) return print(result) def print_tree(root): if root.left: print_tree(root.left) print(root.data) if root.right: print_tree(root.right) def exists_in_tree(root, key): if key == root.data: return True if key < root.data: if root.left is None: return False return exists_in_tree(root.left, key) elif key > root.data: if root.right is None: return False return exists_in_tree(root.right, key) def get_min(root): current = root while current.left is not None: current = current.left return current.data def get_max(root): current = root while current.right is not None: current = current.right return current.data def get_height(root): return 1 + max( get_height(root.left) if root.left else -1, get_height(root.right) if root.right else -1 ) def is_balanced(root): def _balanced(root): if root is None: return (True, 0) leftBalanced, leftHeight = _balanced(root.left) rightBalanced, rightHeight = _balanced(root.right) if leftBalanced and rightBalanced and abs(leftHeight - rightHeight) < 2: currentHeight = max(leftHeight, rightHeight) + 1 return (True, currentHeight) return (False, None) return _balanced(root)[0] def reverse_binary_tree(root): if root is None: return root root.left, root.right = root.right, root.left reverse_binary_tree(root.left) reverse_binary_tree(root.right) return root tree = Node(20) insertion = [1, 2, 8, 9, 11, 12, 18, 19] for i in insertion: insert_node(tree, i) print_tree(tree) delete_node(tree, 11) print_tree(tree) print(is_balanced(tree))
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def insert_node(root, value): if root.data: if value < root.data: if root.left is None: root.left = node(value) else: insert_node(root.left, value) elif value > root.data: if root.right is None: root.right = node(value) else: insert_node(root.right, value) else: root.data = value def delete_node(root, value): if root is None: return root if value < root.data: root.left = delete_node(root.left, value) return root if value > root.data: root.right = delete_node(root.right, value) return root if root.right is None: return root.left if root.left is None: return root.right min_larger_node = root.right while min_larger_node.left: min_larger_node = min_larger_node.left root.data = min_larger_node.data root.right = delete_node(min_larger_node.data) return root def show_tree(root): if root is None: return [] result = [] stack = [root] while len(stack) > 0: current = stack.pop() result.append(current.data) if current.left: stack.append(current.left) if current.right: stack.append(current.right) return print(result) def print_tree(root): if root.left: print_tree(root.left) print(root.data) if root.right: print_tree(root.right) def exists_in_tree(root, key): if key == root.data: return True if key < root.data: if root.left is None: return False return exists_in_tree(root.left, key) elif key > root.data: if root.right is None: return False return exists_in_tree(root.right, key) def get_min(root): current = root while current.left is not None: current = current.left return current.data def get_max(root): current = root while current.right is not None: current = current.right return current.data def get_height(root): return 1 + max(get_height(root.left) if root.left else -1, get_height(root.right) if root.right else -1) def is_balanced(root): def _balanced(root): if root is None: return (True, 0) (left_balanced, left_height) = _balanced(root.left) (right_balanced, right_height) = _balanced(root.right) if leftBalanced and rightBalanced and (abs(leftHeight - rightHeight) < 2): current_height = max(leftHeight, rightHeight) + 1 return (True, currentHeight) return (False, None) return _balanced(root)[0] def reverse_binary_tree(root): if root is None: return root (root.left, root.right) = (root.right, root.left) reverse_binary_tree(root.left) reverse_binary_tree(root.right) return root tree = node(20) insertion = [1, 2, 8, 9, 11, 12, 18, 19] for i in insertion: insert_node(tree, i) print_tree(tree) delete_node(tree, 11) print_tree(tree) print(is_balanced(tree))
# # PySNMP MIB module A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:08:29 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, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, Integer32, Bits, Unsigned32, ObjectIdentity, Gauge32, MibIdentifier, iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter64, enterprises, ModuleIdentity, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Integer32", "Bits", "Unsigned32", "ObjectIdentity", "Gauge32", "MibIdentifier", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter64", "enterprises", "ModuleIdentity", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) a3Com = MibIdentifier((1, 3, 6, 1, 4, 1, 43)) switchingSystemsMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29)) a3ComSwitchingSystemsMib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4)) a3ComRoutePolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4, 23)) a3ComRoutePolicyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1), ) if mibBuilder.loadTexts: a3ComRoutePolicyTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyTable.setDescription('This table is used to provide routing policy facilities. The implementation allows a list of policies to be set up and matched before a given route is learned or advertised by the router, which is the device being managed.') a3ComRoutePolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setDescription('An entry used to define a routing policy. A row in this table is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). The only mandatory object in this table is the a3ComRoutePolicyProtocolType. An entry in this table is deleted by setting a3ComRoutePolicyRowStatus to destroy(6), indexed by the id of the entry about to be removed. An example of the indexing of this table is a3ComRoutePolicyType.3') a3ComRoutePolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setDescription('Unique identifier of a row in the policy table. The actual number of rows that can be created on any particular device depends on the memory and processing resources available at the time.') a3ComRoutePolicyProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("undefined", 1), ("ip-rip", 2), ("ip-ospf", 3), ("ip-bgp4", 4), ("ipx-rip", 5), ("ipx-sap", 6), ("at-rtmp", 7), ("at-kip", 8), ("at-aurp", 9))).clone('undefined')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setDescription('This mandatory object defines the protocol in which a policy will be used. Once such protocol family is defined, the agent will use this information to parse the source, route, as well as all other objects that apply. Once a policy entry is successfully made active(1), this object may not be modified. If the protocol chosen is not supported by the agent or is set to undefined(1), an error is returned.') a3ComRoutePolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("import", 1), ("export", 2))).clone('import')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyType.setDescription('This object specifies what type of policy this is. The type import regards to ingress -- where a route advertised externally is learned by the device managed. And the type export regards to egress -- where a route is advertised by the device managed. Note that the type of policy also mandates which fields are to be parsed upon entry activation. This object can be no longer modified once the entry is activated.') a3ComRoutePolicyOriginProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setDescription('This object is only used when a3ComRoutePolicyType is set to export(2). It makes up a mask of protocols, within the protocol suite, that matches the policy entry. If set to zero, the mask will be interpreted as a match, independent of how the route was learned. A value of 1 stands for matches on routes directly attached. A value of 2 stands for matches on routes that were statically defined in the routing table. All other values in the mask carry different meaning, depending on the current value of a3ComRoutePolicyProtocolType. The following tables summarizes such values: ------------------------------------- Any Protocol Family ------------------------------------- 00 | all (route learned by any way) 01 | directly attached route 02 | statically defined route ------------------------------------- ------------------------------------- IP | IPX | APPLETALK ------------------------------------- 04 | rip | rip | rtmp 08 | ospf | sap | kip 16 | bgp4 | unused | aurp 32 | unused | unused | unused ------------------------------------- Table 1: Route policy origin protocol mask The value of this object can be modified at any time. Examples: 1) When exporting from any protocol suite, any route learned in that suite will be advertised if a3ComRoutePolicyOriginProtocol is set to zero and the other preconditions apply. 2) When exporting from any protocol suite, only routes that were learned from static definition or that are directly attached would be advertised if a3ComRoutePolicyOriginProtocol is set to 3 (mask of 1 + 2) and the other preconditions apply. 3) When exporting from ip_rip(2), only routes that were learned from rip or bgp4 advertisements would be given out if a3ComRoutePolicyOriginProtocol is set to 20 (mask of 4 + 16) and the other preconditions apply. 4) If at example 3 we had a3ComRoutePolicyProtocolType set to at_rtmp(7) instead of ip_rip(2), the same value (i.e. 20) would indicate that advertisements under appleTalk rtmp would only include routes learned from rtmp(4) or aurp(16).') a3ComRoutePolicySourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setDescription('This DisplayString is the network address of the gateway to the route address. Note that when the policy is of the type import(1), this object will correspond to a neighboring router address, and for export(2) policies, this object will most likely correspond to the address of the managed device. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Also note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicySourceAddress is set to empty, which is the default value, the matching process will be independent from the address of the router that is advertising. The value of this object can be modified at any time.') a3ComRoutePolicyRouteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setDescription('This DisplayString is the network address of the route to which this policy applies. Such address will be known when a route advertisement is received by the device being managed. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format if such is an ip address. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicyRouteAddress is set to empty, which is the default value, the matching process will be independent from the route. The value of this object can be modified at any time.') a3ComRoutePolicyRouteMask = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setDescription('This DisplayString is the network mask of the route to which this policy applies. The following formats can be used: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format The agent will be smart enough to understand either one of the two formats listed, based on the size of the argument given. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format. a3ComRoutePolicyRouteMask will be ignored if the protocol family is not ip or if a3ComRoutePolicyRouteAddress is empty. On the other hand, an error will be returned if an invalid mask is existent upon entry activation. The value of this object can be modified at any time.') a3ComRoutePolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("accept", 1), ("reject", 2))).clone('accept')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAction.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setDescription('This object specifies whether the protocol rejects a route that matches the policy or accepts it. a3ComRoutePolicyAction can be modified at any time.') a3ComRoutePolicyAdjustMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noop", 1), ("add", 2), ("subtract", 3), ("multiply", 4), ("divide", 5), ("module", 6))).clone('noop')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setDescription('This object defines what type of operation that can be additionally performed at a route metric. Note that this object will be always ignored if a3ComRoutePolicyAction is of the type reject(2). Furthermore, a3ComRoutePolicyAdjustMetric will also be ignored in occasions where a3ComRoutePolicyAction is of the type accept(1) and the object a3ComRoutePolicyMetric is set to zero. a3ComRoutePolicyAdjustMetric can be modified at any time.') a3ComRoutePolicyMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setDescription('This object is the value by which an additional adjustment can be performed on a matched route metric. The actual operation performed is defined by a3ComRoutePolicyAdjustMetric. If a3ComRoutePolicyMetric is zero, no metric adjustments are made. If a3ComRoutePolicyAdjustMetric is set to noop(1) and a3ComRoutePolicyMetric is a non-zero value, such value will be unconditionally used as the route metric. Note that the a3ComRoutePolicyMetric is only used when a3ComRoutePolicyAction is set to accept(1). If this object is set with a value outside its scope, which varies depending on a3ComRoutePolicyProtocolType, the lowest or highest value will be used instead and no error will be returned. This object can be modified at any time.') a3ComRoutePolicyWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setDescription('This object assigns an administrative weight to the policy entry. A policy with a higher value takes precedence over a policy with a lower value. Usage of a3ComRoutePolicyWeight applies when an order of precedence is desired within multiple policies that match a common route. This object can be modified at any time.') a3ComRoutePolicyExportType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ip-ospf-type1", 1), ("ip-ospf-type2", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setDescription("This object describes which type of route advertisement the router will use when a given protocol can export routes in multiple ways. In situations when there is only one way routes can be exported, a3ComRoutePolicyExportType will be ignored. If a3ComRoutePolicyExportType is set to a value not supported by the router or just doesn't match the protocol family being used, the device being managed will automatically use the default advertisement type and no error will be returned.") a3ComRoutePolicyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setDescription('The status column for a routing policy. This object can be set to: active(1), createAndGo(4), createAndWait(5), destroy(6) The following values may be read: inactive(2) active(1) A new policy entry in this table is created by setting this object to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). An error will be returned when an existing policy entry is set to createAndGo(4) or createAndWait(5), and that is a mechanism to detect racing conditions. Setting this object to active(1) causes the agent to attempt to commit to row based on the contents of the object in the row. If all necessary information is present in the row and the values are acceptable to the agent, the agent will change the status to active(1). If any of the necessary objects are not available or result in error, the agent will reject the request. Once a policy entry is made active(1), most fields can still be modified. Setting this object to destroy(6) will remove the entry.') a3ComRoutePolicyNextFreeIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setDescription('The value of the next available policy entry. This object is automatically increased once a new policy is successfully made active(1). A new policy entry in a3ComRoutePolicyTable is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the value of this object.') a3ComRoutePolicyIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3), ) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setDescription("This table is used to provide a list of ip interfaces under a given policy. Thus, the list generated under this table only applies to policies under the ip suite. Furthermore, the current mib specification resorts only two conditions: 1) a3ComRoutePolicyProtocolType set to ip_rip(2) 2) a3ComRoutePolicyProtocolType set to ip_ospf(3), a3ComRoutePolicyType is set to export(2) and the route about to be advertised is from ospf's direct policy. In any condition other than these two, this table will simply be ignored and no errors are returned, even if there are entries defined. In situations where either one of the conditions listed above is true and there are no entries in this table for the policy it is indexed by, any interface will satisfy. In other words, an empty list stands for an unconditional match on the interface, given all other preconditions apply. If one or more entries in this table are present and the policy is of one of the two types listed above, a route will be advertised/learned (or not, depending on a3ComRoutePolicyAction) only through the interfaces listed.") a3ComRoutePolicyIpIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfIndex"), (0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfAddressIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setDescription('An entry used to define an ip interface under a policy. A row in this table is created by setting a3ComRoutePolicyIpIfRowStatus with createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). Entries in this table can be added or removed at any time. If an invalid address or policy index is given, an error is returned. An example of the indexing of this table is a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205 which would stand for a3ComRoutePolicyEntry of index 3 with the ip address 158.101.112.205') a3ComRoutePolicyIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setDescription('The identifier of a policy entry under a3ComRoutePolicyTable that this entry belongs to. Note that it is possible to have multiple entries in this table (a3ComRoutePolicyIpIfTable) with the same a3ComRoutePolicyIpIfIndex, and that is why this table is indexed by both a3ComRoutePolicyIpIfIndex and a3ComRoutePolicyIpIfAddressIndex.') a3ComRoutePolicyIpIfAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setDescription('The address of an existing ip interface at the device being managed.') a3ComRoutePolicyIpIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 3), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setDescription('The status column for an ip interface of a routing policy. This object can be set to: createAndGo(4), destroy(6) The following values may be read: active(1) A new ip interface entry in this table is created by setting this object to createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An error will be returned if any of the fields listed above contain invalid value. Once created successfully, this entry will automatically be made active(1). An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). If a new entry, for instance, was to be created in this table for the policy 2 with ip interface address of 158.101.112.205, this object would be set to createAndGo(4) with the oid a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205') mibBuilder.exportSymbols("A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", a3ComRoutePolicyAdjustMetric=a3ComRoutePolicyAdjustMetric, a3ComSwitchingSystemsMib=a3ComSwitchingSystemsMib, a3ComRoutePolicyIpIfRowStatus=a3ComRoutePolicyIpIfRowStatus, a3ComRoutePolicyWeight=a3ComRoutePolicyWeight, a3ComRoutePolicyIpIfTable=a3ComRoutePolicyIpIfTable, a3ComRoutePolicySourceAddress=a3ComRoutePolicySourceAddress, a3ComRoutePolicyAction=a3ComRoutePolicyAction, a3ComRoutePolicyType=a3ComRoutePolicyType, a3ComRoutePolicyNextFreeIndex=a3ComRoutePolicyNextFreeIndex, a3ComRoutePolicyMetric=a3ComRoutePolicyMetric, a3Com=a3Com, a3ComRoutePolicyIndex=a3ComRoutePolicyIndex, a3ComRoutePolicyExportType=a3ComRoutePolicyExportType, a3ComRoutePolicyRowStatus=a3ComRoutePolicyRowStatus, a3ComRoutePolicyIpIfIndex=a3ComRoutePolicyIpIfIndex, a3ComRoutePolicyEntry=a3ComRoutePolicyEntry, a3ComRoutePolicy=a3ComRoutePolicy, a3ComRoutePolicyProtocolType=a3ComRoutePolicyProtocolType, a3ComRoutePolicyRouteAddress=a3ComRoutePolicyRouteAddress, a3ComRoutePolicyIpIfAddressIndex=a3ComRoutePolicyIpIfAddressIndex, a3ComRoutePolicyRouteMask=a3ComRoutePolicyRouteMask, RowStatus=RowStatus, switchingSystemsMibs=switchingSystemsMibs, a3ComRoutePolicyOriginProtocol=a3ComRoutePolicyOriginProtocol, a3ComRoutePolicyTable=a3ComRoutePolicyTable, a3ComRoutePolicyIpIfEntry=a3ComRoutePolicyIpIfEntry)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, value_range_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, integer32, bits, unsigned32, object_identity, gauge32, mib_identifier, iso, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, counter64, enterprises, module_identity, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Integer32', 'Bits', 'Unsigned32', 'ObjectIdentity', 'Gauge32', 'MibIdentifier', 'iso', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Counter64', 'enterprises', 'ModuleIdentity', 'IpAddress') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Rowstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)) a3_com = mib_identifier((1, 3, 6, 1, 4, 1, 43)) switching_systems_mibs = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29)) a3_com_switching_systems_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29, 4)) a3_com_route_policy = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29, 4, 23)) a3_com_route_policy_table = mib_table((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1)) if mibBuilder.loadTexts: a3ComRoutePolicyTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyTable.setDescription('This table is used to provide routing policy facilities. The implementation allows a list of policies to be set up and matched before a given route is learned or advertised by the router, which is the device being managed.') a3_com_route_policy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1)).setIndexNames((0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIndex')) if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setDescription('An entry used to define a routing policy. A row in this table is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). The only mandatory object in this table is the a3ComRoutePolicyProtocolType. An entry in this table is deleted by setting a3ComRoutePolicyRowStatus to destroy(6), indexed by the id of the entry about to be removed. An example of the indexing of this table is a3ComRoutePolicyType.3') a3_com_route_policy_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setDescription('Unique identifier of a row in the policy table. The actual number of rows that can be created on any particular device depends on the memory and processing resources available at the time.') a3_com_route_policy_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('undefined', 1), ('ip-rip', 2), ('ip-ospf', 3), ('ip-bgp4', 4), ('ipx-rip', 5), ('ipx-sap', 6), ('at-rtmp', 7), ('at-kip', 8), ('at-aurp', 9))).clone('undefined')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setDescription('This mandatory object defines the protocol in which a policy will be used. Once such protocol family is defined, the agent will use this information to parse the source, route, as well as all other objects that apply. Once a policy entry is successfully made active(1), this object may not be modified. If the protocol chosen is not supported by the agent or is set to undefined(1), an error is returned.') a3_com_route_policy_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('import', 1), ('export', 2))).clone('import')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyType.setDescription('This object specifies what type of policy this is. The type import regards to ingress -- where a route advertised externally is learned by the device managed. And the type export regards to egress -- where a route is advertised by the device managed. Note that the type of policy also mandates which fields are to be parsed upon entry activation. This object can be no longer modified once the entry is activated.') a3_com_route_policy_origin_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setDescription('This object is only used when a3ComRoutePolicyType is set to export(2). It makes up a mask of protocols, within the protocol suite, that matches the policy entry. If set to zero, the mask will be interpreted as a match, independent of how the route was learned. A value of 1 stands for matches on routes directly attached. A value of 2 stands for matches on routes that were statically defined in the routing table. All other values in the mask carry different meaning, depending on the current value of a3ComRoutePolicyProtocolType. The following tables summarizes such values: ------------------------------------- Any Protocol Family ------------------------------------- 00 | all (route learned by any way) 01 | directly attached route 02 | statically defined route ------------------------------------- ------------------------------------- IP | IPX | APPLETALK ------------------------------------- 04 | rip | rip | rtmp 08 | ospf | sap | kip 16 | bgp4 | unused | aurp 32 | unused | unused | unused ------------------------------------- Table 1: Route policy origin protocol mask The value of this object can be modified at any time. Examples: 1) When exporting from any protocol suite, any route learned in that suite will be advertised if a3ComRoutePolicyOriginProtocol is set to zero and the other preconditions apply. 2) When exporting from any protocol suite, only routes that were learned from static definition or that are directly attached would be advertised if a3ComRoutePolicyOriginProtocol is set to 3 (mask of 1 + 2) and the other preconditions apply. 3) When exporting from ip_rip(2), only routes that were learned from rip or bgp4 advertisements would be given out if a3ComRoutePolicyOriginProtocol is set to 20 (mask of 4 + 16) and the other preconditions apply. 4) If at example 3 we had a3ComRoutePolicyProtocolType set to at_rtmp(7) instead of ip_rip(2), the same value (i.e. 20) would indicate that advertisements under appleTalk rtmp would only include routes learned from rtmp(4) or aurp(16).') a3_com_route_policy_source_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setDescription('This DisplayString is the network address of the gateway to the route address. Note that when the policy is of the type import(1), this object will correspond to a neighboring router address, and for export(2) policies, this object will most likely correspond to the address of the managed device. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Also note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicySourceAddress is set to empty, which is the default value, the matching process will be independent from the address of the router that is advertising. The value of this object can be modified at any time.') a3_com_route_policy_route_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setDescription('This DisplayString is the network address of the route to which this policy applies. Such address will be known when a route advertisement is received by the device being managed. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format if such is an ip address. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicyRouteAddress is set to empty, which is the default value, the matching process will be independent from the route. The value of this object can be modified at any time.') a3_com_route_policy_route_mask = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setDescription('This DisplayString is the network mask of the route to which this policy applies. The following formats can be used: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format The agent will be smart enough to understand either one of the two formats listed, based on the size of the argument given. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format. a3ComRoutePolicyRouteMask will be ignored if the protocol family is not ip or if a3ComRoutePolicyRouteAddress is empty. On the other hand, an error will be returned if an invalid mask is existent upon entry activation. The value of this object can be modified at any time.') a3_com_route_policy_action = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('accept', 1), ('reject', 2))).clone('accept')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setDescription('This object specifies whether the protocol rejects a route that matches the policy or accepts it. a3ComRoutePolicyAction can be modified at any time.') a3_com_route_policy_adjust_metric = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noop', 1), ('add', 2), ('subtract', 3), ('multiply', 4), ('divide', 5), ('module', 6))).clone('noop')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setDescription('This object defines what type of operation that can be additionally performed at a route metric. Note that this object will be always ignored if a3ComRoutePolicyAction is of the type reject(2). Furthermore, a3ComRoutePolicyAdjustMetric will also be ignored in occasions where a3ComRoutePolicyAction is of the type accept(1) and the object a3ComRoutePolicyMetric is set to zero. a3ComRoutePolicyAdjustMetric can be modified at any time.') a3_com_route_policy_metric = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setDescription('This object is the value by which an additional adjustment can be performed on a matched route metric. The actual operation performed is defined by a3ComRoutePolicyAdjustMetric. If a3ComRoutePolicyMetric is zero, no metric adjustments are made. If a3ComRoutePolicyAdjustMetric is set to noop(1) and a3ComRoutePolicyMetric is a non-zero value, such value will be unconditionally used as the route metric. Note that the a3ComRoutePolicyMetric is only used when a3ComRoutePolicyAction is set to accept(1). If this object is set with a value outside its scope, which varies depending on a3ComRoutePolicyProtocolType, the lowest or highest value will be used instead and no error will be returned. This object can be modified at any time.') a3_com_route_policy_weight = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setDescription('This object assigns an administrative weight to the policy entry. A policy with a higher value takes precedence over a policy with a lower value. Usage of a3ComRoutePolicyWeight applies when an order of precedence is desired within multiple policies that match a common route. This object can be modified at any time.') a3_com_route_policy_export_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ip-ospf-type1', 1), ('ip-ospf-type2', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setDescription("This object describes which type of route advertisement the router will use when a given protocol can export routes in multiple ways. In situations when there is only one way routes can be exported, a3ComRoutePolicyExportType will be ignored. If a3ComRoutePolicyExportType is set to a value not supported by the router or just doesn't match the protocol family being used, the device being managed will automatically use the default advertisement type and no error will be returned.") a3_com_route_policy_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setDescription('The status column for a routing policy. This object can be set to: active(1), createAndGo(4), createAndWait(5), destroy(6) The following values may be read: inactive(2) active(1) A new policy entry in this table is created by setting this object to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). An error will be returned when an existing policy entry is set to createAndGo(4) or createAndWait(5), and that is a mechanism to detect racing conditions. Setting this object to active(1) causes the agent to attempt to commit to row based on the contents of the object in the row. If all necessary information is present in the row and the values are acceptable to the agent, the agent will change the status to active(1). If any of the necessary objects are not available or result in error, the agent will reject the request. Once a policy entry is made active(1), most fields can still be modified. Setting this object to destroy(6) will remove the entry.') a3_com_route_policy_next_free_index = mib_scalar((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setDescription('The value of the next available policy entry. This object is automatically increased once a new policy is successfully made active(1). A new policy entry in a3ComRoutePolicyTable is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the value of this object.') a3_com_route_policy_ip_if_table = mib_table((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3)) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setDescription("This table is used to provide a list of ip interfaces under a given policy. Thus, the list generated under this table only applies to policies under the ip suite. Furthermore, the current mib specification resorts only two conditions: 1) a3ComRoutePolicyProtocolType set to ip_rip(2) 2) a3ComRoutePolicyProtocolType set to ip_ospf(3), a3ComRoutePolicyType is set to export(2) and the route about to be advertised is from ospf's direct policy. In any condition other than these two, this table will simply be ignored and no errors are returned, even if there are entries defined. In situations where either one of the conditions listed above is true and there are no entries in this table for the policy it is indexed by, any interface will satisfy. In other words, an empty list stands for an unconditional match on the interface, given all other preconditions apply. If one or more entries in this table are present and the policy is of one of the two types listed above, a route will be advertised/learned (or not, depending on a3ComRoutePolicyAction) only through the interfaces listed.") a3_com_route_policy_ip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1)).setIndexNames((0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIpIfIndex'), (0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIpIfAddressIndex')) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setDescription('An entry used to define an ip interface under a policy. A row in this table is created by setting a3ComRoutePolicyIpIfRowStatus with createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). Entries in this table can be added or removed at any time. If an invalid address or policy index is given, an error is returned. An example of the indexing of this table is a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205 which would stand for a3ComRoutePolicyEntry of index 3 with the ip address 158.101.112.205') a3_com_route_policy_ip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setDescription('The identifier of a policy entry under a3ComRoutePolicyTable that this entry belongs to. Note that it is possible to have multiple entries in this table (a3ComRoutePolicyIpIfTable) with the same a3ComRoutePolicyIpIfIndex, and that is why this table is indexed by both a3ComRoutePolicyIpIfIndex and a3ComRoutePolicyIpIfAddressIndex.') a3_com_route_policy_ip_if_address_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setDescription('The address of an existing ip interface at the device being managed.') a3_com_route_policy_ip_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 3), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setDescription('The status column for an ip interface of a routing policy. This object can be set to: createAndGo(4), destroy(6) The following values may be read: active(1) A new ip interface entry in this table is created by setting this object to createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An error will be returned if any of the fields listed above contain invalid value. Once created successfully, this entry will automatically be made active(1). An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). If a new entry, for instance, was to be created in this table for the policy 2 with ip interface address of 158.101.112.205, this object would be set to createAndGo(4) with the oid a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205') mibBuilder.exportSymbols('A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', a3ComRoutePolicyAdjustMetric=a3ComRoutePolicyAdjustMetric, a3ComSwitchingSystemsMib=a3ComSwitchingSystemsMib, a3ComRoutePolicyIpIfRowStatus=a3ComRoutePolicyIpIfRowStatus, a3ComRoutePolicyWeight=a3ComRoutePolicyWeight, a3ComRoutePolicyIpIfTable=a3ComRoutePolicyIpIfTable, a3ComRoutePolicySourceAddress=a3ComRoutePolicySourceAddress, a3ComRoutePolicyAction=a3ComRoutePolicyAction, a3ComRoutePolicyType=a3ComRoutePolicyType, a3ComRoutePolicyNextFreeIndex=a3ComRoutePolicyNextFreeIndex, a3ComRoutePolicyMetric=a3ComRoutePolicyMetric, a3Com=a3Com, a3ComRoutePolicyIndex=a3ComRoutePolicyIndex, a3ComRoutePolicyExportType=a3ComRoutePolicyExportType, a3ComRoutePolicyRowStatus=a3ComRoutePolicyRowStatus, a3ComRoutePolicyIpIfIndex=a3ComRoutePolicyIpIfIndex, a3ComRoutePolicyEntry=a3ComRoutePolicyEntry, a3ComRoutePolicy=a3ComRoutePolicy, a3ComRoutePolicyProtocolType=a3ComRoutePolicyProtocolType, a3ComRoutePolicyRouteAddress=a3ComRoutePolicyRouteAddress, a3ComRoutePolicyIpIfAddressIndex=a3ComRoutePolicyIpIfAddressIndex, a3ComRoutePolicyRouteMask=a3ComRoutePolicyRouteMask, RowStatus=RowStatus, switchingSystemsMibs=switchingSystemsMibs, a3ComRoutePolicyOriginProtocol=a3ComRoutePolicyOriginProtocol, a3ComRoutePolicyTable=a3ComRoutePolicyTable, a3ComRoutePolicyIpIfEntry=a3ComRoutePolicyIpIfEntry)
#Programa para saber la nota nota = int(input("Introduce tu nota: ")) if nota < 5: print("Insuficiente: esfuerzate mas") elif nota < 6: print("Suficiente") elif nota < 7: print("Bien") elif nota < 9: print("Notable") else: print("Sobresaliente: eres un/a crack")
nota = int(input('Introduce tu nota: ')) if nota < 5: print('Insuficiente: esfuerzate mas') elif nota < 6: print('Suficiente') elif nota < 7: print('Bien') elif nota < 9: print('Notable') else: print('Sobresaliente: eres un/a crack')
# Data Types a = 5 print(a, "is of type", type(a)) a = 2.0 print(a, "is of type", type(a)) a = 1+2j print(a, "is complex number?", isinstance(1+2j,complex))
a = 5 print(a, 'is of type', type(a)) a = 2.0 print(a, 'is of type', type(a)) a = 1 + 2j print(a, 'is complex number?', isinstance(1 + 2j, complex))
#! /usr/bin/python3 #Note: Binary to Decimal Calculator #Author: Khondakar choice = int(input("[1] Decimal to Binary conversion. " + "\n[2] Binary to Decimal conversion. \nEnter choice: ")) # print("1: Decimal to Binary") # print("2: Binary to Decimal") val = "" if choice == 1: numb = int(input("Enter your whole Decimal number (integer): ")) while numb > 1: val = str(numb % 2) + val numb = numb // 2 val = str(numb % 2) + val print(val) elif choice == 2: total = 0 numb = (input("Enter your whole Binary number: ")) for i in range(1, (numb.__len__())+1): if numb[-i] == str(1): total = total + (2**(i-1)) print(total)
choice = int(input('[1] Decimal to Binary conversion. ' + '\n[2] Binary to Decimal conversion. \nEnter choice: ')) val = '' if choice == 1: numb = int(input('Enter your whole Decimal number (integer): ')) while numb > 1: val = str(numb % 2) + val numb = numb // 2 val = str(numb % 2) + val print(val) elif choice == 2: total = 0 numb = input('Enter your whole Binary number: ') for i in range(1, numb.__len__() + 1): if numb[-i] == str(1): total = total + 2 ** (i - 1) print(total)
class doggy(object): def __init__(self, name, age, color): self.name = name self.age = age self.color = color def myNameIs(self): print ('%s, %s, %s' % (self.name, self.age, self.color)) def bark(self): print ("Wang Wang !!") wangcai = doggy("Wangcai Masarchik", 17, "gold") xiaoming = doggy("Ming Van Der Ryn", 16, "silver") wangcai.myNameIs() xiaoming.myNameIs() xiaoming.bark()
class Doggy(object): def __init__(self, name, age, color): self.name = name self.age = age self.color = color def my_name_is(self): print('%s, %s, %s' % (self.name, self.age, self.color)) def bark(self): print('Wang Wang !!') wangcai = doggy('Wangcai Masarchik', 17, 'gold') xiaoming = doggy('Ming Van Der Ryn', 16, 'silver') wangcai.myNameIs() xiaoming.myNameIs() xiaoming.bark()
# DFLOW LIBRARY: # dflow utilities module # with new range function # and dictenumerate def range(_from, _to, step=1): out = [] aux = _from while aux < _to: out.append(aux) aux += step return out def dictenumerate(d): return {k: v for v, k in enumerate(d)} def prod(x): res = 1 for X in x: res *= X return res
def range(_from, _to, step=1): out = [] aux = _from while aux < _to: out.append(aux) aux += step return out def dictenumerate(d): return {k: v for (v, k) in enumerate(d)} def prod(x): res = 1 for x in x: res *= X return res
class TFException(Exception): pass class TFAPIUnavailable(Exception): pass class TFLogParsingException(Exception): def __init__(self, type): self.type = type
class Tfexception(Exception): pass class Tfapiunavailable(Exception): pass class Tflogparsingexception(Exception): def __init__(self, type): self.type = type
print("Hello Aline and Basti!") print("What's up?") # We need escaping: \" cancels its meaning. print("Are you \"Monty\"?") # Alternatively you can use ': print('Are you "Monty"?') # But you will need escaping for the last: print("Can't you just pretend you were \"Monty\"?") # or print('Can\'t you just pretend you were "Monty"?')
print('Hello Aline and Basti!') print("What's up?") print('Are you "Monty"?') print('Are you "Monty"?') print('Can\'t you just pretend you were "Monty"?') print('Can\'t you just pretend you were "Monty"?')
# # PySNMP MIB module MIB-INTEL-IP (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MIB-INTEL-IP # Produced by pysmi-0.3.4 at Wed May 1 14:12:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") mib2ext, = mibBuilder.importSymbols("INTEL-GEN-MIB", "mib2ext") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Unsigned32, Counter32, ModuleIdentity, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, TimeTicks, Bits, Gauge32, MibIdentifier, Integer32, IpAddress, ObjectIdentity, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Counter32", "ModuleIdentity", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "TimeTicks", "Bits", "Gauge32", "MibIdentifier", "Integer32", "IpAddress", "ObjectIdentity", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ipr = MibIdentifier((1, 3, 6, 1, 4, 1, 343, 6, 38)) class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) rtIpRouteTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 38, 1), ) if mibBuilder.loadTexts: rtIpRouteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteTable.setDescription("This entity's IP Routing table.") rtIpRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1), ).setIndexNames((0, "MIB-INTEL-IP", "rtIpRouteChassis"), (0, "MIB-INTEL-IP", "rtIpRouteModule"), (0, "MIB-INTEL-IP", "rtIpRouteInst"), (0, "MIB-INTEL-IP", "rtIpRouteDest"), (0, "MIB-INTEL-IP", "rtIpRouteMask"), (0, "MIB-INTEL-IP", "rtIpRouteIfIndex"), (0, "MIB-INTEL-IP", "rtIpRouteNextHop")) if mibBuilder.loadTexts: rtIpRouteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteEntry.setDescription('A route to a particular destination.') rtIpRouteChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteChassis.setDescription('Chassis number in stack that contains the module.') rtIpRouteModule = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteModule.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteModule.setDescription('Module number in the chassis.') rtIpRouteInst = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteInst.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteInst.setDescription('Routing table instance number.') rtIpRouteDest = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteDest.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteDest.setDescription('The destination IP address of this route.') rtIpRouteMask = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteMask.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteMask.setDescription('Indicate the mask to be logical-ANDed with the destination address before being compared to the value in the rtIpRouteDest field.') rtIpRouteIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteIfIndex.setDescription('The interface that the frame is forwarded on.') rtIpRouteNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 7), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteNextHop.setDescription('The IP address of the next hop of this route.') rtIpRoutePref = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRoutePref.setStatus('optional') if mibBuilder.loadTexts: rtIpRoutePref.setDescription('The preference value for this route.') rtIpRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteMetric.setDescription("The routing metric for this route. The semantics of this metric are determined by the routing-protocol specified in the route's rtIpRouteProto value.") rtIpRouteProto = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("direct", 1), ("static", 2), ("ospf", 3), ("rip", 4), ("other", 5), ("all", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteProto.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteProto.setDescription('The routing mechanism via which this route was learned.') rtIpRouteAge = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRouteAge.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteAge.setDescription("The number of seconds since this route was last updated or otherwise detemined to be correct. Note that no semantics of 'too old' can be implied except through knowledge of the routing protocol by which the route was learned.") rtIpRteTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 38, 2), ) if mibBuilder.loadTexts: rtIpRteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpRteTable.setDescription('The list of all routing table entries (RTE). There may be several entries describing a route to the same destination (entries with the same IP address and mask but different preference, protocol or metric). Forwarding engine uses only the best one - this one which can be found in the Routing Table. All other entries as well the best one are available in rtIpRteTable. If for some reason the best entry has been lost then the best one will be chosen from other entries to the same destination.') rtIpRteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1), ).setIndexNames((0, "MIB-INTEL-IP", "rtIpRteChassis"), (0, "MIB-INTEL-IP", "rtIpRteModule"), (0, "MIB-INTEL-IP", "rtIpRteInst"), (0, "MIB-INTEL-IP", "rtIpRteDest"), (0, "MIB-INTEL-IP", "rtIpRteMask"), (0, "MIB-INTEL-IP", "rtIpRtePref"), (0, "MIB-INTEL-IP", "rtIpRteProto"), (0, "MIB-INTEL-IP", "rtIpRteIfIndex"), (0, "MIB-INTEL-IP", "rtIpRteNextHop")) if mibBuilder.loadTexts: rtIpRteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpRteEntry.setDescription('A route to a particular destination.') rtIpRteChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpRteChassis.setDescription('Chassis number in stack that contains the module.') rtIpRteModule = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteModule.setStatus('optional') if mibBuilder.loadTexts: rtIpRteModule.setDescription('Module number in the chassis.') rtIpRteInst = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteInst.setStatus('optional') if mibBuilder.loadTexts: rtIpRteInst.setDescription('Alternative routing table instance number.') rtIpRteDest = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteDest.setStatus('optional') if mibBuilder.loadTexts: rtIpRteDest.setDescription('The destination IP address of this route.') rtIpRteMask = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteMask.setStatus('optional') if mibBuilder.loadTexts: rtIpRteMask.setDescription('Indicate the mask to be logical-ANDed with the destination address before being compared to the value in the rtIpRteDest field.') rtIpRtePref = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRtePref.setStatus('optional') if mibBuilder.loadTexts: rtIpRtePref.setDescription('The preference value for this route.') rtIpRteProto = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("direct", 1), ("static", 2), ("ospf", 3), ("rip", 4), ("other", 5), ("all", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteProto.setStatus('optional') if mibBuilder.loadTexts: rtIpRteProto.setDescription('The routing mechanism via which this route was learned.') rtIpRteIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpRteIfIndex.setDescription('The interface that the frame is forwarded on.') rtIpRteNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpRteNextHop.setDescription('The IP address of the next hop of this route.') rtIpRteState = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpRteState.setStatus('optional') if mibBuilder.loadTexts: rtIpRteState.setDescription('The state of the route.') rtIpRteAge = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtIpRteAge.setStatus('optional') if mibBuilder.loadTexts: rtIpRteAge.setDescription("The number of seconds since this route was last updated or otherwise detemined to be correct. Note that no semantics of 'too old' can be implied except through knowledge of the routing protocol by which the route was learned.") rtIpRteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpRteMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpRteMetric.setDescription('The metric of the alternative route.') rtIpStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 38, 3), ) if mibBuilder.loadTexts: rtIpStaticRouteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpStaticRouteTable.setDescription('A table of all configured static routes.') rtIpStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1), ).setIndexNames((0, "MIB-INTEL-IP", "rtIpStRtChassis"), (0, "MIB-INTEL-IP", "rtIpStRtModule"), (0, "MIB-INTEL-IP", "rtIpStRtInst"), (0, "MIB-INTEL-IP", "rtIpStRtDest"), (0, "MIB-INTEL-IP", "rtIpStRtMask"), (0, "MIB-INTEL-IP", "rtIpStRtPref"), (0, "MIB-INTEL-IP", "rtIpStRtIfIndex"), (0, "MIB-INTEL-IP", "rtIpStRtNextHop")) if mibBuilder.loadTexts: rtIpStaticRouteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpStaticRouteEntry.setDescription('An entry describing a single static route.') rtIpStRtChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtChassis.setDescription('Chassis number in stack that contains the module.') rtIpStRtModule = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtModule.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtModule.setDescription('Module number in the chassis.') rtIpStRtInst = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtInst.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtInst.setDescription('Static routing table instance number.') rtIpStRtDest = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtDest.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtDest.setDescription('The destination IP address of this route.') rtIpStRtMask = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtMask.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtMask.setDescription('The destination IP mask of this route.') rtIpStRtPref = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtPref.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtPref.setDescription('The preference value for this route. This value should be unique (neither other static routes to the same destination nor other protocols can use this value).') rtIpStRtIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtIfIndex.setDescription('The interface that the frame is forwarded on.') rtIpStRtNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 8), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtNextHop.setDescription('The IP address of the next hop of this route.') rtIpStRtMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtMetric.setDescription('The routing metric for this route.') rtIpStRtStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 10), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtStatus.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtStatus.setDescription("The status of the route. Setting it to 'destroy'(6) removes the static route from router's configuration.") rtIpStRtState = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtIpStRtState.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtState.setDescription('The current state of the route.') mibBuilder.exportSymbols("MIB-INTEL-IP", rtIpRoutePref=rtIpRoutePref, rtIpStRtIfIndex=rtIpStRtIfIndex, rtIpRteEntry=rtIpRteEntry, rtIpRouteInst=rtIpRouteInst, rtIpStRtMask=rtIpStRtMask, rtIpRouteEntry=rtIpRouteEntry, rtIpRteMask=rtIpRteMask, rtIpRteState=rtIpRteState, rtIpRteProto=rtIpRteProto, rtIpRouteMetric=rtIpRouteMetric, rtIpRteDest=rtIpRteDest, rtIpRteInst=rtIpRteInst, ipr=ipr, rtIpRteAge=rtIpRteAge, rtIpRouteProto=rtIpRouteProto, rtIpRouteNextHop=rtIpRouteNextHop, rtIpRouteModule=rtIpRouteModule, rtIpRteNextHop=rtIpRteNextHop, rtIpRteModule=rtIpRteModule, rtIpStRtDest=rtIpStRtDest, rtIpRteIfIndex=rtIpRteIfIndex, rtIpStaticRouteEntry=rtIpStaticRouteEntry, RowStatus=RowStatus, rtIpStRtMetric=rtIpStRtMetric, rtIpRouteDest=rtIpRouteDest, rtIpRouteChassis=rtIpRouteChassis, rtIpRouteMask=rtIpRouteMask, rtIpRteTable=rtIpRteTable, rtIpRouteTable=rtIpRouteTable, rtIpStRtPref=rtIpStRtPref, rtIpStaticRouteTable=rtIpStaticRouteTable, rtIpRteChassis=rtIpRteChassis, rtIpRouteAge=rtIpRouteAge, rtIpRteMetric=rtIpRteMetric, rtIpStRtState=rtIpStRtState, rtIpRtePref=rtIpRtePref, rtIpStRtChassis=rtIpStRtChassis, rtIpStRtStatus=rtIpStRtStatus, rtIpStRtModule=rtIpStRtModule, rtIpStRtNextHop=rtIpStRtNextHop, rtIpStRtInst=rtIpStRtInst, rtIpRouteIfIndex=rtIpRouteIfIndex)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint') (mib2ext,) = mibBuilder.importSymbols('INTEL-GEN-MIB', 'mib2ext') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (unsigned32, counter32, module_identity, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, time_ticks, bits, gauge32, mib_identifier, integer32, ip_address, object_identity, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Counter32', 'ModuleIdentity', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'TimeTicks', 'Bits', 'Gauge32', 'MibIdentifier', 'Integer32', 'IpAddress', 'ObjectIdentity', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') ipr = mib_identifier((1, 3, 6, 1, 4, 1, 343, 6, 38)) class Rowstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)) rt_ip_route_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 38, 1)) if mibBuilder.loadTexts: rtIpRouteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteTable.setDescription("This entity's IP Routing table.") rt_ip_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1)).setIndexNames((0, 'MIB-INTEL-IP', 'rtIpRouteChassis'), (0, 'MIB-INTEL-IP', 'rtIpRouteModule'), (0, 'MIB-INTEL-IP', 'rtIpRouteInst'), (0, 'MIB-INTEL-IP', 'rtIpRouteDest'), (0, 'MIB-INTEL-IP', 'rtIpRouteMask'), (0, 'MIB-INTEL-IP', 'rtIpRouteIfIndex'), (0, 'MIB-INTEL-IP', 'rtIpRouteNextHop')) if mibBuilder.loadTexts: rtIpRouteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteEntry.setDescription('A route to a particular destination.') rt_ip_route_chassis = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteChassis.setDescription('Chassis number in stack that contains the module.') rt_ip_route_module = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteModule.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteModule.setDescription('Module number in the chassis.') rt_ip_route_inst = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteInst.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteInst.setDescription('Routing table instance number.') rt_ip_route_dest = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteDest.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteDest.setDescription('The destination IP address of this route.') rt_ip_route_mask = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteMask.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteMask.setDescription('Indicate the mask to be logical-ANDed with the destination address before being compared to the value in the rtIpRouteDest field.') rt_ip_route_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteIfIndex.setDescription('The interface that the frame is forwarded on.') rt_ip_route_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 7), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteNextHop.setDescription('The IP address of the next hop of this route.') rt_ip_route_pref = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRoutePref.setStatus('optional') if mibBuilder.loadTexts: rtIpRoutePref.setDescription('The preference value for this route.') rt_ip_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteMetric.setDescription("The routing metric for this route. The semantics of this metric are determined by the routing-protocol specified in the route's rtIpRouteProto value.") rt_ip_route_proto = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('direct', 1), ('static', 2), ('ospf', 3), ('rip', 4), ('other', 5), ('all', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteProto.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteProto.setDescription('The routing mechanism via which this route was learned.') rt_ip_route_age = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRouteAge.setStatus('optional') if mibBuilder.loadTexts: rtIpRouteAge.setDescription("The number of seconds since this route was last updated or otherwise detemined to be correct. Note that no semantics of 'too old' can be implied except through knowledge of the routing protocol by which the route was learned.") rt_ip_rte_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 38, 2)) if mibBuilder.loadTexts: rtIpRteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpRteTable.setDescription('The list of all routing table entries (RTE). There may be several entries describing a route to the same destination (entries with the same IP address and mask but different preference, protocol or metric). Forwarding engine uses only the best one - this one which can be found in the Routing Table. All other entries as well the best one are available in rtIpRteTable. If for some reason the best entry has been lost then the best one will be chosen from other entries to the same destination.') rt_ip_rte_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1)).setIndexNames((0, 'MIB-INTEL-IP', 'rtIpRteChassis'), (0, 'MIB-INTEL-IP', 'rtIpRteModule'), (0, 'MIB-INTEL-IP', 'rtIpRteInst'), (0, 'MIB-INTEL-IP', 'rtIpRteDest'), (0, 'MIB-INTEL-IP', 'rtIpRteMask'), (0, 'MIB-INTEL-IP', 'rtIpRtePref'), (0, 'MIB-INTEL-IP', 'rtIpRteProto'), (0, 'MIB-INTEL-IP', 'rtIpRteIfIndex'), (0, 'MIB-INTEL-IP', 'rtIpRteNextHop')) if mibBuilder.loadTexts: rtIpRteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpRteEntry.setDescription('A route to a particular destination.') rt_ip_rte_chassis = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpRteChassis.setDescription('Chassis number in stack that contains the module.') rt_ip_rte_module = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteModule.setStatus('optional') if mibBuilder.loadTexts: rtIpRteModule.setDescription('Module number in the chassis.') rt_ip_rte_inst = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteInst.setStatus('optional') if mibBuilder.loadTexts: rtIpRteInst.setDescription('Alternative routing table instance number.') rt_ip_rte_dest = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteDest.setStatus('optional') if mibBuilder.loadTexts: rtIpRteDest.setDescription('The destination IP address of this route.') rt_ip_rte_mask = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteMask.setStatus('optional') if mibBuilder.loadTexts: rtIpRteMask.setDescription('Indicate the mask to be logical-ANDed with the destination address before being compared to the value in the rtIpRteDest field.') rt_ip_rte_pref = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRtePref.setStatus('optional') if mibBuilder.loadTexts: rtIpRtePref.setDescription('The preference value for this route.') rt_ip_rte_proto = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('direct', 1), ('static', 2), ('ospf', 3), ('rip', 4), ('other', 5), ('all', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteProto.setStatus('optional') if mibBuilder.loadTexts: rtIpRteProto.setDescription('The routing mechanism via which this route was learned.') rt_ip_rte_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpRteIfIndex.setDescription('The interface that the frame is forwarded on.') rt_ip_rte_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 9), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpRteNextHop.setDescription('The IP address of the next hop of this route.') rt_ip_rte_state = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpRteState.setStatus('optional') if mibBuilder.loadTexts: rtIpRteState.setDescription('The state of the route.') rt_ip_rte_age = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rtIpRteAge.setStatus('optional') if mibBuilder.loadTexts: rtIpRteAge.setDescription("The number of seconds since this route was last updated or otherwise detemined to be correct. Note that no semantics of 'too old' can be implied except through knowledge of the routing protocol by which the route was learned.") rt_ip_rte_metric = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 2, 1, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpRteMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpRteMetric.setDescription('The metric of the alternative route.') rt_ip_static_route_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 38, 3)) if mibBuilder.loadTexts: rtIpStaticRouteTable.setStatus('optional') if mibBuilder.loadTexts: rtIpStaticRouteTable.setDescription('A table of all configured static routes.') rt_ip_static_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1)).setIndexNames((0, 'MIB-INTEL-IP', 'rtIpStRtChassis'), (0, 'MIB-INTEL-IP', 'rtIpStRtModule'), (0, 'MIB-INTEL-IP', 'rtIpStRtInst'), (0, 'MIB-INTEL-IP', 'rtIpStRtDest'), (0, 'MIB-INTEL-IP', 'rtIpStRtMask'), (0, 'MIB-INTEL-IP', 'rtIpStRtPref'), (0, 'MIB-INTEL-IP', 'rtIpStRtIfIndex'), (0, 'MIB-INTEL-IP', 'rtIpStRtNextHop')) if mibBuilder.loadTexts: rtIpStaticRouteEntry.setStatus('optional') if mibBuilder.loadTexts: rtIpStaticRouteEntry.setDescription('An entry describing a single static route.') rt_ip_st_rt_chassis = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtChassis.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtChassis.setDescription('Chassis number in stack that contains the module.') rt_ip_st_rt_module = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtModule.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtModule.setDescription('Module number in the chassis.') rt_ip_st_rt_inst = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtInst.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtInst.setDescription('Static routing table instance number.') rt_ip_st_rt_dest = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtDest.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtDest.setDescription('The destination IP address of this route.') rt_ip_st_rt_mask = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 5), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtMask.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtMask.setDescription('The destination IP mask of this route.') rt_ip_st_rt_pref = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtPref.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtPref.setDescription('The preference value for this route. This value should be unique (neither other static routes to the same destination nor other protocols can use this value).') rt_ip_st_rt_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtIfIndex.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtIfIndex.setDescription('The interface that the frame is forwarded on.') rt_ip_st_rt_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 8), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtNextHop.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtNextHop.setDescription('The IP address of the next hop of this route.') rt_ip_st_rt_metric = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtMetric.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtMetric.setDescription('The routing metric for this route.') rt_ip_st_rt_status = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 10), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtStatus.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtStatus.setDescription("The status of the route. Setting it to 'destroy'(6) removes the static route from router's configuration.") rt_ip_st_rt_state = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 38, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: rtIpStRtState.setStatus('optional') if mibBuilder.loadTexts: rtIpStRtState.setDescription('The current state of the route.') mibBuilder.exportSymbols('MIB-INTEL-IP', rtIpRoutePref=rtIpRoutePref, rtIpStRtIfIndex=rtIpStRtIfIndex, rtIpRteEntry=rtIpRteEntry, rtIpRouteInst=rtIpRouteInst, rtIpStRtMask=rtIpStRtMask, rtIpRouteEntry=rtIpRouteEntry, rtIpRteMask=rtIpRteMask, rtIpRteState=rtIpRteState, rtIpRteProto=rtIpRteProto, rtIpRouteMetric=rtIpRouteMetric, rtIpRteDest=rtIpRteDest, rtIpRteInst=rtIpRteInst, ipr=ipr, rtIpRteAge=rtIpRteAge, rtIpRouteProto=rtIpRouteProto, rtIpRouteNextHop=rtIpRouteNextHop, rtIpRouteModule=rtIpRouteModule, rtIpRteNextHop=rtIpRteNextHop, rtIpRteModule=rtIpRteModule, rtIpStRtDest=rtIpStRtDest, rtIpRteIfIndex=rtIpRteIfIndex, rtIpStaticRouteEntry=rtIpStaticRouteEntry, RowStatus=RowStatus, rtIpStRtMetric=rtIpStRtMetric, rtIpRouteDest=rtIpRouteDest, rtIpRouteChassis=rtIpRouteChassis, rtIpRouteMask=rtIpRouteMask, rtIpRteTable=rtIpRteTable, rtIpRouteTable=rtIpRouteTable, rtIpStRtPref=rtIpStRtPref, rtIpStaticRouteTable=rtIpStaticRouteTable, rtIpRteChassis=rtIpRteChassis, rtIpRouteAge=rtIpRouteAge, rtIpRteMetric=rtIpRteMetric, rtIpStRtState=rtIpStRtState, rtIpRtePref=rtIpRtePref, rtIpStRtChassis=rtIpStRtChassis, rtIpStRtStatus=rtIpStRtStatus, rtIpStRtModule=rtIpStRtModule, rtIpStRtNextHop=rtIpStRtNextHop, rtIpStRtInst=rtIpStRtInst, rtIpRouteIfIndex=rtIpRouteIfIndex)
#!/usr/bin/env python while True: pass
while True: pass
''' Get various integer numbers. In the end, show the average between all values and the lowest and the highest. Asks the user if they want to continue or not. ''' number = int(input('Choose a number: ')) again = input('Do you want to continue? [S/N]').strip().upper() total = 1 minimum = maximum = number while again == 'S': number2 = int(input('Choose another number: ')) total += 1 number += number2 again = input('Do you want to continue? [S/N]').strip().upper() if number2 > maximum: maximum = number2 elif number2 < minimum: minimum = number2 print(f'The average of these \033[34m{total}\033[m number is \033[34m{number / total:.2f}\033[m.') print(f'The highest is \033[34m{maximum}\033[m, and the lowest is \033[34m{minimum}\033[m.')
""" Get various integer numbers. In the end, show the average between all values and the lowest and the highest. Asks the user if they want to continue or not. """ number = int(input('Choose a number: ')) again = input('Do you want to continue? [S/N]').strip().upper() total = 1 minimum = maximum = number while again == 'S': number2 = int(input('Choose another number: ')) total += 1 number += number2 again = input('Do you want to continue? [S/N]').strip().upper() if number2 > maximum: maximum = number2 elif number2 < minimum: minimum = number2 print(f'The average of these \x1b[34m{total}\x1b[m number is \x1b[34m{number / total:.2f}\x1b[m.') print(f'The highest is \x1b[34m{maximum}\x1b[m, and the lowest is \x1b[34m{minimum}\x1b[m.')
print(3 * 3 == 6) print(50 % 5 == 0) Name = "Sam" print(Name == "SaM") fruits = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"] for fruit in fruits: if fruit == "apple": print("Apple is present") elif "cherry" in fruit: print("Cherry is also present")
print(3 * 3 == 6) print(50 % 5 == 0) name = 'Sam' print(Name == 'SaM') fruits = ['apple', 'banana', 'cherry', 'orange', 'kiwi', 'melon', 'mango'] for fruit in fruits: if fruit == 'apple': print('Apple is present') elif 'cherry' in fruit: print('Cherry is also present')
#!/usr/bin/python3 ''' helloworld.py Simple Hello world program. This is considered to be the first program that anyone would write when learing a new language. Author: Rich Lynch Created for merit badge college. Released to the public under the MIT license. ''' print ("Hello World")
""" helloworld.py Simple Hello world program. This is considered to be the first program that anyone would write when learing a new language. Author: Rich Lynch Created for merit badge college. Released to the public under the MIT license. """ print('Hello World')
# -*- coding: utf-8 -*- ''' Configuration of Capsul and external software operated through capsul. '''
""" Configuration of Capsul and external software operated through capsul. """
class StepsLoss: def __init__(self, loss): self.steps = None self.loss = loss def set_steps(self, steps): self.steps = steps def __call__(self, y_pred, y_true): if self.steps is not None: y_pred = y_pred[:, :, : self.steps] y_true = y_true[:, :, : self.steps] # print(f"y_pred.shape: {y_pred.shape}, y_true.shape: {y_true.shape}") return self.loss(y_pred, y_true)
class Stepsloss: def __init__(self, loss): self.steps = None self.loss = loss def set_steps(self, steps): self.steps = steps def __call__(self, y_pred, y_true): if self.steps is not None: y_pred = y_pred[:, :, :self.steps] y_true = y_true[:, :, :self.steps] return self.loss(y_pred, y_true)
class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: # O(n) time | O(n) space lst = [] startRow, endRow = 0, len(matrix) - 1 startColumn, endColumn = 0, len(matrix[0]) - 1 place = (0, 0) while startRow <= endRow and startColumn <= endColumn: if place == (0, 0): for j in range(startColumn, endColumn + 1): lst.append(matrix[startRow][j]) startRow += 1 place = (0, -1) elif place == (0, -1): for i in range(startRow, endRow + 1): lst.append(matrix[i][endColumn]) endColumn -= 1 place = (-1, -1) elif place == (-1, -1): for j in reversed(range(startColumn, endColumn + 1)): lst.append(matrix[endRow][j]) endRow -= 1 place = (-1, 0) elif place == (-1, 0): for i in reversed(range(startRow, endRow + 1)): lst.append(matrix[i][startColumn]) startColumn += 1 place = (0, 0) return lst
class Solution: def spiral_order(self, matrix: List[List[int]]) -> List[int]: lst = [] (start_row, end_row) = (0, len(matrix) - 1) (start_column, end_column) = (0, len(matrix[0]) - 1) place = (0, 0) while startRow <= endRow and startColumn <= endColumn: if place == (0, 0): for j in range(startColumn, endColumn + 1): lst.append(matrix[startRow][j]) start_row += 1 place = (0, -1) elif place == (0, -1): for i in range(startRow, endRow + 1): lst.append(matrix[i][endColumn]) end_column -= 1 place = (-1, -1) elif place == (-1, -1): for j in reversed(range(startColumn, endColumn + 1)): lst.append(matrix[endRow][j]) end_row -= 1 place = (-1, 0) elif place == (-1, 0): for i in reversed(range(startRow, endRow + 1)): lst.append(matrix[i][startColumn]) start_column += 1 place = (0, 0) return lst
# network image size IMAGE_WIDTH = 128 IMAGE_HEIGHT = 64 # license number construction DOWNSAMPLE_FACTOR = 2 ** 2 # <= pool size ** number of pool layers MAX_TEXT_LEN = 10
image_width = 128 image_height = 64 downsample_factor = 2 ** 2 max_text_len = 10
#!/usr/bin/python def readFile(fileName): paramsFile = open(fileName) paramFileLines = paramsFile.readlines() return paramFileLines #number of expected molecular lines def getExpectedLineNum(fileName): lines = readFile(fileName) print(lines[0]) return lines[0] #frequency ranges of all expected molecular lines #NOTE: deprecated in cluster environment def getExpectedLines(fileName): result = [] lines = readFile(fileName) for i in range(1, len(lines)): line = lines[i].split(" ") result.append((line[0], line[1][0:len(line[1]) - 1])) print(result) return result
def read_file(fileName): params_file = open(fileName) param_file_lines = paramsFile.readlines() return paramFileLines def get_expected_line_num(fileName): lines = read_file(fileName) print(lines[0]) return lines[0] def get_expected_lines(fileName): result = [] lines = read_file(fileName) for i in range(1, len(lines)): line = lines[i].split(' ') result.append((line[0], line[1][0:len(line[1]) - 1])) print(result) return result
#!/usr/bin/env python3 # https://abc051.contest.atcoder.jp/tasks/abc051_d INF = 10 ** 9 n, m = map(int, input().split()) a = [[INF] * n for _ in range(n)] e = [None] * m for i in range(n): a[i][i] = 0 for i in range(m): u, v, w = map(int, input().split()) u -= 1 v -= 1 e[i] = (u, v, w) a[u][v] = w a[v][u] = w for k in range(n): for i in range(n): for j in range(n): a[i][j] = min(a[i][j], a[i][k] + a[k][j]) c = 0 for u, v, w in e: if a[u][v] != w: c += 1 print(c)
inf = 10 ** 9 (n, m) = map(int, input().split()) a = [[INF] * n for _ in range(n)] e = [None] * m for i in range(n): a[i][i] = 0 for i in range(m): (u, v, w) = map(int, input().split()) u -= 1 v -= 1 e[i] = (u, v, w) a[u][v] = w a[v][u] = w for k in range(n): for i in range(n): for j in range(n): a[i][j] = min(a[i][j], a[i][k] + a[k][j]) c = 0 for (u, v, w) in e: if a[u][v] != w: c += 1 print(c)
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class ListNode: def __init__(self, x, n): self.val = x self.next = n class Solution: def mergeTwoLists(self, l1, l2): pre = tmp = None cur = l1 while cur and cur.next: if cur.val > l2.val: tmp = cur cur = l2 if pre: pre.next = cur cur.next = tmp l2 = l2.next if not l2: break cur = cur.next if l2: cur.next = l2 return l1 def createTestA(self): l1 = ListNode(1, ListNode(2, ListNode(4, None))) l2 = ListNode(1, ListNode(3, ListNode(4, None))) print(self.mergeTwoLists(l1, l2)) t = Solution() t.createTestA()
class Listnode: def __init__(self, x, n): self.val = x self.next = n class Solution: def merge_two_lists(self, l1, l2): pre = tmp = None cur = l1 while cur and cur.next: if cur.val > l2.val: tmp = cur cur = l2 if pre: pre.next = cur cur.next = tmp l2 = l2.next if not l2: break cur = cur.next if l2: cur.next = l2 return l1 def create_test_a(self): l1 = list_node(1, list_node(2, list_node(4, None))) l2 = list_node(1, list_node(3, list_node(4, None))) print(self.mergeTwoLists(l1, l2)) t = solution() t.createTestA()
def parseRaspFile(filepath): headerpassed = False data = { 'motor name':None, 'motor diameter':None, 'motor length':None, 'motor delay': None, 'propellant weight': None, 'total weight': None, 'manufacturer': None, 'thrust data': {'time':[],'thrust':[]} } with open(filepath) as enginefile: while True: line = enginefile.readline() if not line: break if not headerpassed: if line[0].isalpha(): headerpassed = True name, diam, length, delay, prop_weight, total_weight, manufacturer = parseRaspHeader(line) data['motor name'] = name data['motor diameter'] = diam data['motor length'] = length data['motor delay'] = delay data['propellant weight'] = prop_weight data['total weight'] = total_weight data['manufacturer'] = manufacturer else: try: time, thrust = parseRaspDataLine(line) data['thrust data']['time'].append(time) data['thrust data']['thrust'].append(thrust) except: break enginefile.close() return data def parseRaspDataLine(line): # first float is the time # second is the thrust (N) contents = line.split() time = float(contents[0]) thrust = float(contents[1]) return time, thrust def parseRaspHeader(header): # the content of the header is as follows: # 1. Motor Name # 2. Motor Diameter # 3. Motor Length # 4. Motor Delay # 5. Propellant Weight # 6. Total Weight # 7. Manufacturer # parse by spaces headercontents = header.split() motor_name = headercontents[0] motor_diameter = float(headercontents[1]) motor_length = float(headercontents[2]) motor_delay = float(headercontents[3]) propellant_weight = float(headercontents[4]) total_weight = float(headercontents[5]) manufacturer = headercontents[6] return motor_name, motor_diameter, motor_length, motor_delay, propellant_weight, total_weight, manufacturer
def parse_rasp_file(filepath): headerpassed = False data = {'motor name': None, 'motor diameter': None, 'motor length': None, 'motor delay': None, 'propellant weight': None, 'total weight': None, 'manufacturer': None, 'thrust data': {'time': [], 'thrust': []}} with open(filepath) as enginefile: while True: line = enginefile.readline() if not line: break if not headerpassed: if line[0].isalpha(): headerpassed = True (name, diam, length, delay, prop_weight, total_weight, manufacturer) = parse_rasp_header(line) data['motor name'] = name data['motor diameter'] = diam data['motor length'] = length data['motor delay'] = delay data['propellant weight'] = prop_weight data['total weight'] = total_weight data['manufacturer'] = manufacturer else: try: (time, thrust) = parse_rasp_data_line(line) data['thrust data']['time'].append(time) data['thrust data']['thrust'].append(thrust) except: break enginefile.close() return data def parse_rasp_data_line(line): contents = line.split() time = float(contents[0]) thrust = float(contents[1]) return (time, thrust) def parse_rasp_header(header): headercontents = header.split() motor_name = headercontents[0] motor_diameter = float(headercontents[1]) motor_length = float(headercontents[2]) motor_delay = float(headercontents[3]) propellant_weight = float(headercontents[4]) total_weight = float(headercontents[5]) manufacturer = headercontents[6] return (motor_name, motor_diameter, motor_length, motor_delay, propellant_weight, total_weight, manufacturer)
class Solution: def maxSumDivThree(self, nums: List[int]) -> int: ones = [] twos = [] ans = 0 for num in nums: ans += num if num % 3 == 1: ones.append(num) elif num % 3 == 2: twos.append(num) if ans % 3 == 0: return ans ones.sort() twos.sort() if ans % 3 == 1: best = 0 if ones: best = ans - ones[0] if len(twos) >= 2: best = max(best, ans - twos[0] - twos[1]) else: # ans % 3 == 2: best = 0 if twos: best = ans - twos[0] if len(ones) >= 2: best = max(best, ans - ones[0] - ones[1]) return best
class Solution: def max_sum_div_three(self, nums: List[int]) -> int: ones = [] twos = [] ans = 0 for num in nums: ans += num if num % 3 == 1: ones.append(num) elif num % 3 == 2: twos.append(num) if ans % 3 == 0: return ans ones.sort() twos.sort() if ans % 3 == 1: best = 0 if ones: best = ans - ones[0] if len(twos) >= 2: best = max(best, ans - twos[0] - twos[1]) else: best = 0 if twos: best = ans - twos[0] if len(ones) >= 2: best = max(best, ans - ones[0] - ones[1]) return best
def evaluate_shard(out_csv_name, pw_ji, labels_x, labels_y, d = 0.00, d_step = 0.005, d_max=1.0): h.save_to_csv(data_rows=[[ "Distance Threshhold", "True Positives", "False Positives", "True Negative", "False Negative", "Num True Same", "Num True Diff", ]], outfile_name=out_csv_name, mode="w") # calculate true accepts / false accepts based on labels n_labels = len(labels_x) tl_row = np.repeat( np.array(labels_x).reshape((n_labels,1)), n_labels, axis=1 ) tl_col = np.repeat( np.array(labels_y).reshape((1,n_labels)), n_labels, axis=0 ) p_same = np.equal(tl_row, tl_col).astype("int8") p_diff = np.not_equal(tl_row, tl_col).astype("int8") num_true_same = p_same.sum() num_true_diff = p_diff.sum() while True: calc_same = np.zeros((n_labels, n_labels)) calc_same[np.where(pw_ji<=d)]=1 tp = np.sum(np.logical_and(calc_same, p_same)) fp = np.sum(np.logical_and(calc_same, np.logical_not(p_same))) tn = np.sum(np.logical_and(np.logical_not(calc_same), np.logical_not(p_same))) fn = np.sum(np.logical_and(np.logical_not(calc_same), p_same)) h.save_to_csv(data_rows=[[d, tp, fp, tn, fn,num_true_same,num_true_diff]], outfile_name=out_csv_name, mode="a") d+=d_step if d>d_max: break def evaluate_all_shards(inputs, labels, shard_size,shard_indizes, results_fn, d_start=0.0, d_step=0.005, d_max=1.0 ): for shard_index in shard_indizes: shard_x, shard_y = shard_index print("Current shard", shard_index) start_index_x = shard_x*shard_size start_index_y = shard_y*shard_size end_index_x = min((shard_x+1)*shard_size, num_test_examples) end_index_y = min((shard_y+1)*shard_size, num_test_examples) # calcualte pairwise distances shard_inputs_x = inputs[start_index_x:end_index_x,:] shard_labels_x = labels[start_index_x:end_index_x] shard_inputs_y = inputs[start_index_y:end_index_y,:] shard_labels_y = labels[start_index_y:end_index_y] pw_ji = pairwise_distances(shard_inputs_x,shard_inputs_y, metric=jaccard_distance, n_jobs=8) # evaluate pairwise distances out_csv_name = results_fn+"_%0.2d-%0.2d"%(shard_x, shard_y) evaluate_shard(out_csv_name, pw_ji, shard_labels_x, shard_labels_y, d=d_start, d_step = d_step, d_max=d_max) def run_evaluation(inputs, labels, shard_size, results_fn, d_start=0.0, d_step=0.005, d_max=1.0): results_fn = results_fn%shard_size num_test_examples = inputs.shape[0] num_x = inputs.shape[0]//shard_size if not num_test_examples%shard_size==0 :# need to be a square matrix print("Allowed shard sizes") for i in range(100, num_test_examples): if num_test_examples%i==0: print(i) 0/0 shard_indizes = list(itertools.product(range(num_x),repeat=2)) num_shards = len(shard_indizes) num_distances = len(list(np.arange(d_start,d_max,d_step))) num_metrics = 7 evaluate_all_shards(inputs, labels, shard_size, shard_indizes, results_fn, d_start, d_step, d_max ) all_data = np.ndarray(shape=(num_shards, num_distances, num_metrics), dtype="float32") for i, shard_index in enumerate(shard_indizes): # load shard shard_x, shard_y = shard_index out_csv_name = results_fn+"_%0.2d-%0.2d"%(shard_x, shard_y) shard_data = h.load_from_csv(out_csv_name) shard_data = shard_data[1:] # cut header row all_data[i] = np.array(shard_data) final_data = np.ndarray(shape=(num_distances, 10), dtype="float32") final_data[:,0] = all_data[0,:,0] # all distances (are same over all shards) final_data[:,1] = all_data.sum(axis=0)[:,1] # True Positives final_data[:,2] = all_data.sum(axis=0)[:,2] # False Positives final_data[:,3] = all_data.sum(axis=0)[:,3] # True Negatives final_data[:,4] = all_data.sum(axis=0)[:,4] # False Negatives final_data[:,5] = all_data.sum(axis=0)[:,5] # Num true same (are same over all shards) final_data[:,6] = all_data.sum(axis=0)[:,6] # Num true diff (are same over all shards) final_data[:,7] = final_data[:,1]/final_data[:,5] # validation rate final_data[:,8] = final_data[:,2]/final_data[:,6] # false acceptance rate final_data[:,9] = (final_data[:,1] + final_data[:,3]) / (final_data[:,1:1+4].sum(axis=1)) h.save_to_csv(data_rows=[[ "Distance Threshhold", "True Positives", "False Positives", "True Negative", "False Negative", "Num true same", "Num true diff", "Validation Rate", "False Acceptance Rate", "Accuracy" ]], outfile_name=results_fn, mode="w", convert_float=False) h.save_to_csv(data_rows=final_data, outfile_name=results_fn, mode="a", convert_float=True) logger.info("Evaluation done, saved to '%s'"%results_fn) return final_data
def evaluate_shard(out_csv_name, pw_ji, labels_x, labels_y, d=0.0, d_step=0.005, d_max=1.0): h.save_to_csv(data_rows=[['Distance Threshhold', 'True Positives', 'False Positives', 'True Negative', 'False Negative', 'Num True Same', 'Num True Diff']], outfile_name=out_csv_name, mode='w') n_labels = len(labels_x) tl_row = np.repeat(np.array(labels_x).reshape((n_labels, 1)), n_labels, axis=1) tl_col = np.repeat(np.array(labels_y).reshape((1, n_labels)), n_labels, axis=0) p_same = np.equal(tl_row, tl_col).astype('int8') p_diff = np.not_equal(tl_row, tl_col).astype('int8') num_true_same = p_same.sum() num_true_diff = p_diff.sum() while True: calc_same = np.zeros((n_labels, n_labels)) calc_same[np.where(pw_ji <= d)] = 1 tp = np.sum(np.logical_and(calc_same, p_same)) fp = np.sum(np.logical_and(calc_same, np.logical_not(p_same))) tn = np.sum(np.logical_and(np.logical_not(calc_same), np.logical_not(p_same))) fn = np.sum(np.logical_and(np.logical_not(calc_same), p_same)) h.save_to_csv(data_rows=[[d, tp, fp, tn, fn, num_true_same, num_true_diff]], outfile_name=out_csv_name, mode='a') d += d_step if d > d_max: break def evaluate_all_shards(inputs, labels, shard_size, shard_indizes, results_fn, d_start=0.0, d_step=0.005, d_max=1.0): for shard_index in shard_indizes: (shard_x, shard_y) = shard_index print('Current shard', shard_index) start_index_x = shard_x * shard_size start_index_y = shard_y * shard_size end_index_x = min((shard_x + 1) * shard_size, num_test_examples) end_index_y = min((shard_y + 1) * shard_size, num_test_examples) shard_inputs_x = inputs[start_index_x:end_index_x, :] shard_labels_x = labels[start_index_x:end_index_x] shard_inputs_y = inputs[start_index_y:end_index_y, :] shard_labels_y = labels[start_index_y:end_index_y] pw_ji = pairwise_distances(shard_inputs_x, shard_inputs_y, metric=jaccard_distance, n_jobs=8) out_csv_name = results_fn + '_%0.2d-%0.2d' % (shard_x, shard_y) evaluate_shard(out_csv_name, pw_ji, shard_labels_x, shard_labels_y, d=d_start, d_step=d_step, d_max=d_max) def run_evaluation(inputs, labels, shard_size, results_fn, d_start=0.0, d_step=0.005, d_max=1.0): results_fn = results_fn % shard_size num_test_examples = inputs.shape[0] num_x = inputs.shape[0] // shard_size if not num_test_examples % shard_size == 0: print('Allowed shard sizes') for i in range(100, num_test_examples): if num_test_examples % i == 0: print(i) 0 / 0 shard_indizes = list(itertools.product(range(num_x), repeat=2)) num_shards = len(shard_indizes) num_distances = len(list(np.arange(d_start, d_max, d_step))) num_metrics = 7 evaluate_all_shards(inputs, labels, shard_size, shard_indizes, results_fn, d_start, d_step, d_max) all_data = np.ndarray(shape=(num_shards, num_distances, num_metrics), dtype='float32') for (i, shard_index) in enumerate(shard_indizes): (shard_x, shard_y) = shard_index out_csv_name = results_fn + '_%0.2d-%0.2d' % (shard_x, shard_y) shard_data = h.load_from_csv(out_csv_name) shard_data = shard_data[1:] all_data[i] = np.array(shard_data) final_data = np.ndarray(shape=(num_distances, 10), dtype='float32') final_data[:, 0] = all_data[0, :, 0] final_data[:, 1] = all_data.sum(axis=0)[:, 1] final_data[:, 2] = all_data.sum(axis=0)[:, 2] final_data[:, 3] = all_data.sum(axis=0)[:, 3] final_data[:, 4] = all_data.sum(axis=0)[:, 4] final_data[:, 5] = all_data.sum(axis=0)[:, 5] final_data[:, 6] = all_data.sum(axis=0)[:, 6] final_data[:, 7] = final_data[:, 1] / final_data[:, 5] final_data[:, 8] = final_data[:, 2] / final_data[:, 6] final_data[:, 9] = (final_data[:, 1] + final_data[:, 3]) / final_data[:, 1:1 + 4].sum(axis=1) h.save_to_csv(data_rows=[['Distance Threshhold', 'True Positives', 'False Positives', 'True Negative', 'False Negative', 'Num true same', 'Num true diff', 'Validation Rate', 'False Acceptance Rate', 'Accuracy']], outfile_name=results_fn, mode='w', convert_float=False) h.save_to_csv(data_rows=final_data, outfile_name=results_fn, mode='a', convert_float=True) logger.info("Evaluation done, saved to '%s'" % results_fn) return final_data
class EmptyRainfallError(ValueError): pass class EmptyWaterlevelError(ValueError): pass class NoMethodError(ValueError): pass
class Emptyrainfallerror(ValueError): pass class Emptywaterlevelerror(ValueError): pass class Nomethoderror(ValueError): pass
# O(n^2) time | O(1) Space # def twoNumberSum(array, targetSum): # for i in range(len(array)): # firstNum = array[i] # for j in range(i+1, array[j]): # secondNum = array[j] # if firstNum + secondNum == targetSum: # return [firstNum,secondNum] # return [] # O(n) time | O(n) space # def twoNumberSum(array, targetSum): # nums = {} # for num in array: # if targetSum - num in nums: # return [targetSum-num, num] # else: # nums[num] = True # return [] # O(nlog(n)) time | O(1) space def twoNumberSum(array, targetSum): array.sort() left = 0 right = len(array) - 1 while left < right: currentSum = array[left] + array[right] if currentSum == targetSum: return [array[left], array[right]] elif currentSum < targetSum: left += 1 elif currentSum > targetSum: right -= 1 return [] arrays = [6, 5, -1, -4, 8, 6, 11] target = 10 print(twoNumberSum(arrays, target))
def two_number_sum(array, targetSum): array.sort() left = 0 right = len(array) - 1 while left < right: current_sum = array[left] + array[right] if currentSum == targetSum: return [array[left], array[right]] elif currentSum < targetSum: left += 1 elif currentSum > targetSum: right -= 1 return [] arrays = [6, 5, -1, -4, 8, 6, 11] target = 10 print(two_number_sum(arrays, target))
class Solution: def isStrobogrammatic(self, num: str) -> bool: # create a hash table for 180 degree rotation mapping helper = {'0':'0','1':'1','6':'9','8':'8','9':'6'} # flip the given string num2 = '' n = len(num) i = n - 1 while i >= 0: if num[i] in helper: num2 += helper[num[i]] else: return False i -= 1 return num2 == num
class Solution: def is_strobogrammatic(self, num: str) -> bool: helper = {'0': '0', '1': '1', '6': '9', '8': '8', '9': '6'} num2 = '' n = len(num) i = n - 1 while i >= 0: if num[i] in helper: num2 += helper[num[i]] else: return False i -= 1 return num2 == num
## floating point class Number(Primitive): def __init__(self, V, prec=4): Primitive.__init__(self, float(V)) ## precision: digits after decimal `.` self.prec = prec
class Number(Primitive): def __init__(self, V, prec=4): Primitive.__init__(self, float(V)) self.prec = prec
#media sources dataurl_src = "'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQAAAAAAAAA'" throttler = "'../resources/range-request.php?rate=100000&fileloc="; mp4_src = throttler + "preload.mp4&nocache=' + Math.random()"; ogg_src = throttler + "preload.ogv&nocache=' + Math.random()"; webm_src = throttler + "preload.webm&nocache=' + Math.random()"; #preload="auto" event orders auto_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' auto_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata canplay canplaythrough $/g' auto_to_none_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' auto_to_none_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata canplay canplaythrough $/g' #preload="metadata" event/state orders metadata_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend $/g' metadata_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata suspend $/g' metadata_event_order_play_after_suspend = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend (progress )*canplay (progress )*canplaythrough $/g' metadata_event_order_play_after_suspend_dataurl = '/^loadstart progress loadedmetadata loadeddata suspend canplay canplaythrough $/g' metadata_networkstate_after_suspend = "HTMLMediaElement.NETWORK_IDLE" metadata_readystate_after_suspend = "HTMLMediaElement.HAVE_CURRENT_DATA" metadata_readystate_before_src = "HTMLMediaElement.HAVE_NOTHING" metadata_networkstate_order = "eval('/^(' + HTMLMediaElement.NETWORK_LOADING + ' )+(' + HTMLMediaElement.NETWORK_IDLE + ' )+$/g')" metadata_networkstate_order_dataurl = "eval('/^(' + HTMLMediaElement.NETWORK_IDLE + ' )+$/g')" metadata_readystate_order = "eval('/^(' + HTMLMediaElement.HAVE_NOTHING + ' )+' + HTMLMediaElement.HAVE_METADATA + '(' + HTMLMediaElement.HAVE_CURRENT_DATA + ' )+$/g')" metadata_readystate_order_dataurl = "eval('/^(' + HTMLMediaElement.HAVE_NOTHING + ' )+(' + HTMLMediaElement.HAVE_ENOUGH_DATA + ' )+$/g')" #preload="none" event orders none_event_order = '/^loadstart suspend $/g' none_event_order_dataurl = none_event_order none_event_order_play_after_suspend = '/^loadstart suspend (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' none_event_order_play_after_suspend_dataurl = '/^loadstart suspend progress loadedmetadata loadeddata canplay canplaythrough $/g' none_to_metadata_event_order = '/^loadstart suspend (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend $/g' none_to_metadata_event_order_dataurl = '/^loadstart suspend progress loadedmetadata loadeddata suspend $/g' timeout = 10000 timeout_dataurl = 5000 testsuite = { '*' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'timeout' : timeout}} ], #preload="auto" '../auto/preload-auto-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : auto_event_order_dataurl, 'start_state' : 'auto', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : auto_event_order, 'start_state' : 'auto', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : auto_event_order, 'start_state' : 'auto', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : auto_event_order, 'start_state' : 'auto', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../auto/preload-auto-to-none-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : auto_to_none_event_order_dataurl, 'start_state' : 'auto', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../auto/preload-auto-to-metadata-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : auto_to_none_event_order_dataurl, 'start_state' : 'auto', 'end_state' : 'metadata', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'metadata', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'metadata', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : auto_to_none_event_order, 'start_state' : 'auto', 'end_state' : 'metadata', 'start_event' : 'loadstart', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], #preload="metadata" '../metadata/preload-metadata-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : metadata_event_order_dataurl, 'start_state' : 'metadata', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'timeout' : timeout}} ], '../metadata/preload-metadata-event-order-play-after-suspend.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : metadata_event_order_play_after_suspend_dataurl, 'start_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../metadata/preload-metadata-networkstate-after-suspend.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}} ], '../metadata/preload-metadata-readystate-after-suspend.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], 'semantics/events/sync/preload-metadata-networkstate-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'states_expected' : metadata_networkstate_order_dataurl, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'states_expected' : metadata_networkstate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'states_expected' : metadata_networkstate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'states_expected' : metadata_networkstate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}} ], 'semantics/events/sync/preload-metadata-readystate-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'states_expected' : metadata_readystate_order_dataurl, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'states_expected' : metadata_readystate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'states_expected' : metadata_readystate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'states_expected' : metadata_readystate_order, 'start_state' : 'metadata', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], '../metadata/preload-metadata-buffered.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'max_buffer' : '0.0001', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'max_buffer' : '60', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'max_buffer' : '60', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-auto-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : metadata_event_order_play_after_suspend_dataurl, 'start_state' : 'metadata', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : metadata_event_order_play_after_suspend, 'start_state' : 'metadata', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : metadata_event_order_dataurl, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : metadata_event_order, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-after-src-networkstate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-after-src-readystate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-after-source-readystate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-before-src-readystate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-before-source-readystate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_before_src, 'start_state' : 'metadata', 'end_state' : 'none', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-after-loadstart-networkstate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_networkstate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'networkState', 'timeout' : timeout}} ], '../metadata/preload-metadata-to-none-after-loadstart-readystate.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'state_expected' : metadata_readystate_after_suspend, 'start_state' : 'metadata', 'end_state' : 'none', 'start_event' : 'loadstart', 'end_event' : 'suspend', 'test_state_type' : 'readyState', 'timeout' : timeout}} ], #preload="none" '../none/preload-none-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_event_order_dataurl, 'start_state' : 'none', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_event_order, 'start_state' : 'none', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_event_order, 'start_state' : 'none', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_event_order, 'start_state' : 'none', 'end_event' : 'suspend', 'timeout' : timeout}} ], '../none/preload-none-event-order-autoplay.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : auto_event_order_dataurl, 'start_state' : 'none', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : auto_event_order, 'start_state' : 'none', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : auto_event_order, 'start_state' : 'none', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : auto_event_order, 'start_state' : 'none', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../none/preload-none-event-order-autoplay-after-suspend.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_event_order_play_after_suspend_dataurl, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../none/preload-none-event-order-play-after-suspend.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_event_order_play_after_suspend_dataurl, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../none/preload-none-to-auto-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_event_order_play_after_suspend_dataurl, 'start_state' : 'none', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_event_order_play_after_suspend, 'start_state' : 'none', 'end_state' : 'auto', 'start_event' : 'suspend', 'end_event' : 'canplaythrough', 'timeout' : timeout}} ], '../none/preload-none-to-invalid-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_to_metadata_event_order_dataurl, 'start_state' : 'none', 'end_state' : 'invalid', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'invalid', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'invalid', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'invalid', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}} ], '../none/preload-none-to-metadata-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_to_metadata_event_order_dataurl, 'start_state' : 'none', 'end_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'end_state' : 'metadata', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}} ], '../none/preload-none-remove-attribute-event-order.tpl' : [ {'test_suffix' : 'dataurl', 'test_mapping' : {'media_type' : 'wave', 'media_src' : dataurl_src, 'events_expected' : none_to_metadata_event_order_dataurl, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout_dataurl}}, {'test_suffix' : 'mp4', 'test_mapping' : {'media_type' : 'mp4', 'media_src' : mp4_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'ogg', 'test_mapping' : {'media_type' : 'ogg', 'media_src' : ogg_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}}, {'test_suffix' : 'webm', 'test_mapping' : {'media_type' : 'webm', 'media_src' : webm_src, 'events_expected' : none_to_metadata_event_order, 'start_state' : 'none', 'start_event' : 'suspend', 'end_event' : 'suspend', 'timeout' : timeout}} ] }
dataurl_src = "'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQAAAAAAAAA'" throttler = "'../resources/range-request.php?rate=100000&fileloc=" mp4_src = throttler + "preload.mp4&nocache=' + Math.random()" ogg_src = throttler + "preload.ogv&nocache=' + Math.random()" webm_src = throttler + "preload.webm&nocache=' + Math.random()" auto_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' auto_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata canplay canplaythrough $/g' auto_to_none_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' auto_to_none_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata canplay canplaythrough $/g' metadata_event_order = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend $/g' metadata_event_order_dataurl = '/^loadstart progress loadedmetadata loadeddata suspend $/g' metadata_event_order_play_after_suspend = '/^loadstart (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend (progress )*canplay (progress )*canplaythrough $/g' metadata_event_order_play_after_suspend_dataurl = '/^loadstart progress loadedmetadata loadeddata suspend canplay canplaythrough $/g' metadata_networkstate_after_suspend = 'HTMLMediaElement.NETWORK_IDLE' metadata_readystate_after_suspend = 'HTMLMediaElement.HAVE_CURRENT_DATA' metadata_readystate_before_src = 'HTMLMediaElement.HAVE_NOTHING' metadata_networkstate_order = "eval('/^(' + HTMLMediaElement.NETWORK_LOADING + ' )+(' + HTMLMediaElement.NETWORK_IDLE + ' )+$/g')" metadata_networkstate_order_dataurl = "eval('/^(' + HTMLMediaElement.NETWORK_IDLE + ' )+$/g')" metadata_readystate_order = "eval('/^(' + HTMLMediaElement.HAVE_NOTHING + ' )+' + HTMLMediaElement.HAVE_METADATA + '(' + HTMLMediaElement.HAVE_CURRENT_DATA + ' )+$/g')" metadata_readystate_order_dataurl = "eval('/^(' + HTMLMediaElement.HAVE_NOTHING + ' )+(' + HTMLMediaElement.HAVE_ENOUGH_DATA + ' )+$/g')" none_event_order = '/^loadstart suspend $/g' none_event_order_dataurl = none_event_order none_event_order_play_after_suspend = '/^loadstart suspend (progress )+loadedmetadata (progress )*loadeddata (progress )*canplay (progress )*canplaythrough $/g' none_event_order_play_after_suspend_dataurl = '/^loadstart suspend progress loadedmetadata loadeddata canplay canplaythrough $/g' none_to_metadata_event_order = '/^loadstart suspend (progress )+loadedmetadata (progress )*loadeddata (progress )*suspend $/g' none_to_metadata_event_order_dataurl = '/^loadstart suspend progress loadedmetadata loadeddata suspend $/g' timeout = 10000 timeout_dataurl = 5000 testsuite = {'*': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'timeout': timeout}}], '../auto/preload-auto-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': auto_event_order_dataurl, 'start_state': 'auto', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': auto_event_order, 'start_state': 'auto', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': auto_event_order, 'start_state': 'auto', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': auto_event_order, 'start_state': 'auto', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../auto/preload-auto-to-none-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': auto_to_none_event_order_dataurl, 'start_state': 'auto', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../auto/preload-auto-to-metadata-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': auto_to_none_event_order_dataurl, 'start_state': 'auto', 'end_state': 'metadata', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'metadata', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'metadata', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': auto_to_none_event_order, 'start_state': 'auto', 'end_state': 'metadata', 'start_event': 'loadstart', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../metadata/preload-metadata-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': metadata_event_order_dataurl, 'start_state': 'metadata', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_event': 'suspend', 'timeout': timeout}}], '../metadata/preload-metadata-event-order-play-after-suspend.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': metadata_event_order_play_after_suspend_dataurl, 'start_state': 'metadata', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../metadata/preload-metadata-networkstate-after-suspend.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}], '../metadata/preload-metadata-readystate-after-suspend.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], 'semantics/events/sync/preload-metadata-networkstate-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'states_expected': metadata_networkstate_order_dataurl, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'states_expected': metadata_networkstate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'states_expected': metadata_networkstate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'states_expected': metadata_networkstate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}], 'semantics/events/sync/preload-metadata-readystate-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'states_expected': metadata_readystate_order_dataurl, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'states_expected': metadata_readystate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'states_expected': metadata_readystate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'states_expected': metadata_readystate_order, 'start_state': 'metadata', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../metadata/preload-metadata-buffered.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'max_buffer': '0.0001', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'max_buffer': '60', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'max_buffer': '60', 'timeout': timeout}}], '../metadata/preload-metadata-to-auto-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': metadata_event_order_play_after_suspend_dataurl, 'start_state': 'metadata', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': metadata_event_order_play_after_suspend, 'start_state': 'metadata', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': metadata_event_order_dataurl, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': metadata_event_order, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-after-src-networkstate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-after-src-readystate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-after-source-readystate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-before-src-readystate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-before-source-readystate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_before_src, 'start_state': 'metadata', 'end_state': 'none', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-after-loadstart-networkstate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_networkstate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'networkState', 'timeout': timeout}}], '../metadata/preload-metadata-to-none-after-loadstart-readystate.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'state_expected': metadata_readystate_after_suspend, 'start_state': 'metadata', 'end_state': 'none', 'start_event': 'loadstart', 'end_event': 'suspend', 'test_state_type': 'readyState', 'timeout': timeout}}], '../none/preload-none-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_event_order_dataurl, 'start_state': 'none', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_event_order, 'start_state': 'none', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_event_order, 'start_state': 'none', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_event_order, 'start_state': 'none', 'end_event': 'suspend', 'timeout': timeout}}], '../none/preload-none-event-order-autoplay.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': auto_event_order_dataurl, 'start_state': 'none', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': auto_event_order, 'start_state': 'none', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': auto_event_order, 'start_state': 'none', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': auto_event_order, 'start_state': 'none', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../none/preload-none-event-order-autoplay-after-suspend.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_event_order_play_after_suspend_dataurl, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../none/preload-none-event-order-play-after-suspend.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_event_order_play_after_suspend_dataurl, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../none/preload-none-to-auto-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_event_order_play_after_suspend_dataurl, 'start_state': 'none', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_event_order_play_after_suspend, 'start_state': 'none', 'end_state': 'auto', 'start_event': 'suspend', 'end_event': 'canplaythrough', 'timeout': timeout}}], '../none/preload-none-to-invalid-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_to_metadata_event_order_dataurl, 'start_state': 'none', 'end_state': 'invalid', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'invalid', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'invalid', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'invalid', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}], '../none/preload-none-to-metadata-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_to_metadata_event_order_dataurl, 'start_state': 'none', 'end_state': 'metadata', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'metadata', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'metadata', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'end_state': 'metadata', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}], '../none/preload-none-remove-attribute-event-order.tpl': [{'test_suffix': 'dataurl', 'test_mapping': {'media_type': 'wave', 'media_src': dataurl_src, 'events_expected': none_to_metadata_event_order_dataurl, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout_dataurl}}, {'test_suffix': 'mp4', 'test_mapping': {'media_type': 'mp4', 'media_src': mp4_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'ogg', 'test_mapping': {'media_type': 'ogg', 'media_src': ogg_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}, {'test_suffix': 'webm', 'test_mapping': {'media_type': 'webm', 'media_src': webm_src, 'events_expected': none_to_metadata_event_order, 'start_state': 'none', 'start_event': 'suspend', 'end_event': 'suspend', 'timeout': timeout}}]}
class SecureList(object): def __init__(self, lst): self.lst = list(lst) def __getitem__(self, item): return self.lst.pop(item) def __len__(self): return len(self.lst) def __repr__(self): tmp, self.lst = self.lst, [] return repr(tmp) def __str__(self): tmp, self.lst = self.lst, [] return str(tmp)
class Securelist(object): def __init__(self, lst): self.lst = list(lst) def __getitem__(self, item): return self.lst.pop(item) def __len__(self): return len(self.lst) def __repr__(self): (tmp, self.lst) = (self.lst, []) return repr(tmp) def __str__(self): (tmp, self.lst) = (self.lst, []) return str(tmp)
first_card = input().strip().upper() second_card = input().strip().upper() third_card = input().strip().upper() total_point = 0 if first_card == 'A': total_point += 1 elif first_card in 'JQK': total_point += 10 else: total_point += int(first_card) if second_card == 'A': total_point += 1 elif second_card in 'JQK': total_point += 10 else: total_point += int(second_card) if third_card == 'A': total_point += 1 elif third_card in 'JQK': total_point += 10 else: total_point += int(third_card) if total_point < 17: print('hit') elif total_point > 21: print('bust') else: print('stand')
first_card = input().strip().upper() second_card = input().strip().upper() third_card = input().strip().upper() total_point = 0 if first_card == 'A': total_point += 1 elif first_card in 'JQK': total_point += 10 else: total_point += int(first_card) if second_card == 'A': total_point += 1 elif second_card in 'JQK': total_point += 10 else: total_point += int(second_card) if third_card == 'A': total_point += 1 elif third_card in 'JQK': total_point += 10 else: total_point += int(third_card) if total_point < 17: print('hit') elif total_point > 21: print('bust') else: print('stand')
class Node: def __init__(self, data, next=None): self.data = data self.next = next class List: def __init__(self): self.head = None self.tail = None self.this = None def add_to_tail(self, val): new_node = Node(val) if self.empty(): self.head = self.tail = new_node else: new_node.prev = self.this if self.this.next: new_node.next = self.this.next new_node.next.prev = new_node else: self.tail = new_node new_node.prev.next = new_node self.this = self.tail # self.size += 1 def empty(self): return self.head is None def _damp(self): nodes = [] current_node = self.head while current_node: nodes.append(current_node.data) current_node = current_node.next return nodes def print(self): print(*self._damp()) def print_reverse(self): print(*(self._damp()[::-1])) n = int(input()) values = list(map(int, input().split())) linked_list = List() for v in values: linked_list.add_to_tail(v) linked_list.print() linked_list.print_reverse()
class Node: def __init__(self, data, next=None): self.data = data self.next = next class List: def __init__(self): self.head = None self.tail = None self.this = None def add_to_tail(self, val): new_node = node(val) if self.empty(): self.head = self.tail = new_node else: new_node.prev = self.this if self.this.next: new_node.next = self.this.next new_node.next.prev = new_node else: self.tail = new_node new_node.prev.next = new_node self.this = self.tail def empty(self): return self.head is None def _damp(self): nodes = [] current_node = self.head while current_node: nodes.append(current_node.data) current_node = current_node.next return nodes def print(self): print(*self._damp()) def print_reverse(self): print(*self._damp()[::-1]) n = int(input()) values = list(map(int, input().split())) linked_list = list() for v in values: linked_list.add_to_tail(v) linked_list.print() linked_list.print_reverse()
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { # GN version: //ui/events/keycodes:xkb 'target_name': 'keycodes_xkb', 'type': 'static_library', 'dependencies': [ '<(DEPTH)/base/base.gyp:base', '<(DEPTH)/ui/events/events.gyp:dom_keycode_converter', ], 'sources': [ 'keyboard_code_conversion_xkb.cc', 'keyboard_code_conversion_xkb.h', 'scoped_xkb.h', 'xkb_keysym.h', ], }, ], 'conditions': [ ['use_x11==1', { 'targets': [ { # GN version: //ui/events/keycodes:x11 'target_name': 'keycodes_x11', 'type': '<(component)', 'dependencies': [ '<(DEPTH)/base/base.gyp:base', '<(DEPTH)/build/linux/system.gyp:x11', '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11', '../events.gyp:dom_keycode_converter', 'keycodes_xkb', ], 'defines': [ 'KEYCODES_X_IMPLEMENTATION', ], 'sources': [ 'keycodes_x_export.h', 'keyboard_code_conversion_x.cc', 'keyboard_code_conversion_x.h', 'keysym_to_unicode.cc', 'keysym_to_unicode.h', ], }, ], }], ], }
{'variables': {'chromium_code': 1}, 'targets': [{'target_name': 'keycodes_xkb', 'type': 'static_library', 'dependencies': ['<(DEPTH)/base/base.gyp:base', '<(DEPTH)/ui/events/events.gyp:dom_keycode_converter'], 'sources': ['keyboard_code_conversion_xkb.cc', 'keyboard_code_conversion_xkb.h', 'scoped_xkb.h', 'xkb_keysym.h']}], 'conditions': [['use_x11==1', {'targets': [{'target_name': 'keycodes_x11', 'type': '<(component)', 'dependencies': ['<(DEPTH)/base/base.gyp:base', '<(DEPTH)/build/linux/system.gyp:x11', '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11', '../events.gyp:dom_keycode_converter', 'keycodes_xkb'], 'defines': ['KEYCODES_X_IMPLEMENTATION'], 'sources': ['keycodes_x_export.h', 'keyboard_code_conversion_x.cc', 'keyboard_code_conversion_x.h', 'keysym_to_unicode.cc', 'keysym_to_unicode.h']}]}]]}
# from typing import Any class SensorCache(object): # instance = None soil_moisture: float = 0 temperature: float = 0 humidity: float = 0 # def __init__(self): # if SensorCache.instance: # return # self.soil_moisture: float = 0 # self.temperature: int = 0 # self.humidity: float = 0 # def __get__(key: str): # def __getattribute__(self, name): # if name in attrKeys: # return externalData[name] # return super(Transform, self).__getattribute__(name) # def __setattr__(self, name, value): # if name in attrKeys: # externalData[name] = value # else: # super(Transform, self).__setattr__(name, value) # @classmethod # def __set__(cls, key: str, value: Any): # cls[key] = value
class Sensorcache(object): soil_moisture: float = 0 temperature: float = 0 humidity: float = 0
# # PySNMP MIB module NMS-ERPS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NMS-ERPS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:22:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") nmslocal, = mibBuilder.importSymbols("NMS-SMI", "nmslocal") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, Counter32, NotificationType, Bits, Gauge32, ModuleIdentity, ObjectIdentity, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, MibIdentifier, Unsigned32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Counter32", "NotificationType", "Bits", "Gauge32", "ModuleIdentity", "ObjectIdentity", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "MibIdentifier", "Unsigned32", "iso") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") nmsERPS = MibIdentifier((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231)) nmsERPSRings = MibScalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRings.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRings.setDescription('The number of ethernet ring instances.') nmsERPSInconsistenceCheck = MibScalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSInconsistenceCheck.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSInconsistenceCheck.setDescription('A value indicates that the ring-port inconsistence check is enabled or disabled.') nmsERPSPduRx = MibScalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSPduRx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduRx.setDescription('The total number of input PDUs.') nmsERPSPduRxDropped = MibScalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSPduRxDropped.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduRxDropped.setDescription('The number of input discarded PDUs.') nmsERPSPduTx = MibScalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSPduTx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduTx.setDescription('The total number of output PDUs.') nmsERPSRingTable = MibTable((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6), ) if mibBuilder.loadTexts: nmsERPSRingTable.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingTable.setDescription('A table that contains information of rings.') nmsERPSRingTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1), ).setIndexNames((0, "NMS-ERPS-MIB", "nmsERPSRingID")) if mibBuilder.loadTexts: nmsERPSRingTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingTableEntry.setDescription('A table that contains information of rings.') nmsERPSRingID = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingID.setDescription('The index of ring instances.') nmsERPSRingNodeID = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingNodeID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingNodeID.setDescription('The ring node identifier composed of a priority value and the bridge MAC address.') nmsERPSRingPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPorts.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPorts.setDescription('The number of interfaces which are configured in a ring.') nmsERPSRingRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("notRplOwner", 0), ("rplOwner", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingRole.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRole.setDescription('A value indicates whether one port of the ring node is the Ring protection link(RPL).') nmsERPSRingState = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("idle", 0), ("protection", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingState.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingState.setDescription('The ring protection state machine value.') nmsERPSRingWTR = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("notWaitToRestore", 0), ("waitToRestore", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingWTR.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWTR.setDescription('This value from the RPL-Owner indicates whether it is Waiting to restore.') nmsERPSRingWtrWhile = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingWtrWhile.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWtrWhile.setDescription('The Wait-to-restore timer value, in seconds, which is the time left before the RPL-Owner restores from Protection state.') nmsERPSRingSignalFail = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noSignalFail", 0), ("signalFail", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingSignalFail.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSignalFail.setDescription('A value indicates if a ring port is failed.') nmsERPSRingSending = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingSending.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSending.setDescription('The type of PDUs being sent.') nmsERPSRingRplOwnerID = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingRplOwnerID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRplOwnerID.setDescription("The RPL-Owner's identifier, recorded from a superior discovery PDU.") nmsERPSRingRplOwnerMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingRplOwnerMAC.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRplOwnerMAC.setDescription("The RPL-Owner's bridge MAC address, recorded from a NR-RB PDU.") nmsERPSRingDiscovering = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notDiscovering", 0), ("discovering", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingDiscovering.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscovering.setDescription('A value indicates if the ring discovery process is running.') nmsERPSRingDiscoverWhile = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingDiscoverWhile.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoverWhile.setDescription('The discovery timer value, in seconds. Remaining time of the discovery process.') nmsERPSRingPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingPriorityValue.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPriorityValue.setDescription('The configured ring node priority value. The lowest priority makes a node RPL-Owner in the ring. Available range is from 0 to 61440, in steps of 4096.') nmsERPSRingWtrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 15), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingWtrTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWtrTime.setDescription('The configured Wait-to-restore time, in seconds.') nmsERPSRingGuardTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 16), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingGuardTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingGuardTime.setDescription('The configured Guard-time, in 10ms.') nmsERPSRingSendTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingSendTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSendTime.setDescription('The configured interval of ring protection PDUs, in seconds.') nmsERPSRingDiscoveryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 18), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingDiscoveryTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryTime.setDescription('The duration configured for discovery process, in seconds.') nmsERPSRingDpduInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 19), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingDpduInterval.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDpduInterval.setDescription('The configured interval of ring discovery PDUs, in seconds.') nmsERPSRingDiscoveryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingDiscoveryCount.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryCount.setDescription('The total number of discovery process ever started.') nmsERPSRingDiscoveryLastDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastDuration.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastDuration.setDescription('Runtime of the last discovery process, in 10 ms.') nmsERPSRingDiscoveryLastElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastElapsed.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastElapsed.setDescription('Elapsed time since last discovery started, in seconds.') nmsERPSRingAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: nmsERPSRingAdminStatus.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingAdminStatus.setDescription("A read-create value that indicates the configuration status of the ring instance. Set this value to 'enabled' to start the ring or 'disabled' to stop it.") nmsERPSRingPort1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 24), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: nmsERPSRingPort1.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1.setDescription('The interface index of the first ring port. Value 0 indicates that the first port is not configured. This value is read-write.') nmsERPSRingPort1AdminType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingPort1AdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1AdminType.setDescription("The configured type of the first ring port. Set this value to 'rpl' to configure the Ring-Protection-Link.") nmsERPSRingPort1OperType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort1OperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1OperType.setDescription('The running type of the first ring port.') nmsERPSRingPort1State = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("blocking", 0), ("forwarding", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort1State.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1State.setDescription('Forwarding state of the first ring port.') nmsERPSRingPort1Status = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("link-down", 0), ("link-up", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort1Status.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1Status.setDescription('Link status of the first ring port.') nmsERPSRingPort2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 29), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: nmsERPSRingPort2.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2.setDescription('The interface index of the second ring port. Value 0 indicates that the second port is not configured. This value is read-write..') nmsERPSRingPort2AdminType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nmsERPSRingPort2AdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2AdminType.setDescription("The configured type of the second ring port. Set this value to 'rpl' to configure the Ring-Protection-Link.") nmsERPSRingPort2OperType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort2OperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2OperType.setDescription('The running type of the second ring port.') nmsERPSRingPort2State = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("blocking", 0), ("forwarding", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort2State.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2State.setDescription('Forwarding state of the second ring port.') nmsERPSRingPort2Status = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("link-down", 0), ("link-up", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort2Status.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2Status.setDescription('Link status of the second ring port.') nmsERPSRingPortTable = MibTable((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7), ) if mibBuilder.loadTexts: nmsERPSRingPortTable.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTable.setDescription('A table that contains informations of ring ports.') nmsERPSRingPortTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1), ).setIndexNames((0, "NMS-ERPS-MIB", "nmsERPSRingPortRingID"), (0, "NMS-ERPS-MIB", "nmsERPSRingPort")) if mibBuilder.loadTexts: nmsERPSRingPortTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTableEntry.setDescription('A table that contains informations of ring ports.') nmsERPSRingPortRingID = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortRingID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortRingID.setDescription('The index of ring instance, in which this port is configured.') nmsERPSRingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPort.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort.setDescription('Interface index of the ring port.') nmsERPSRingPortAdminType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortAdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortAdminType.setDescription('A value indicates that if the port is configured as the Ring Protection Link(RPL).') nmsERPSRingPortOperType = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ring-port", 0), ("rpl", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortOperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortOperType.setDescription("A value indicates that if the port is running as the Ring Protection Link(RPL). This value may be different with the value of 'nmsERPSRingPortAdminType'") nmsERPSRingPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("blocking", 0), ("forwarding", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortState.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortState.setDescription('State of a ring port, forwarding or blocking.') nmsERPSRingPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("link-down", 0), ("link-up", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortStatus.setDescription('Link status of a ring port.') nmsERPSRingPortForwards = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortForwards.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortForwards.setDescription('The number of times this port transitioned to forwarding state.') nmsERPSRingPortForwardLastElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortForwardLastElapsed.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortForwardLastElapsed.setDescription('Elapsed time since the port became forwarding, in seconds.') nmsERPSRingPortRx = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortRx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortRx.setDescription('The number of received PDUs on this port.') nmsERPSRingPortTx = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nmsERPSRingPortTx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTx.setDescription('The number of transmitted PDUs on this port.') nmsERPSRingNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8)) nmsERPSRingRoleChange = NotificationType((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8, 1)).setObjects(("NMS-ERPS-MIB", "nmsERPSRingID"), ("NMS-ERPS-MIB", "nmsERPSRingNodeID"), ("NMS-ERPS-MIB", "nmsERPSRingRole")) if mibBuilder.loadTexts: nmsERPSRingRoleChange.setStatus('current') if mibBuilder.loadTexts: nmsERPSRingRoleChange.setDescription('The notification is generated when ring node role changes.') nmsERPSRingStateChange = NotificationType((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8, 2)).setObjects(("NMS-ERPS-MIB", "nmsERPSRingID"), ("NMS-ERPS-MIB", "nmsERPSRingNodeID"), ("NMS-ERPS-MIB", "nmsERPSRingRole"), ("NMS-ERPS-MIB", "nmsERPSRingState")) if mibBuilder.loadTexts: nmsERPSRingStateChange.setStatus('current') if mibBuilder.loadTexts: nmsERPSRingStateChange.setDescription('The notification is generated when a RPL-Owner detects that the state of ring changed.') mibBuilder.exportSymbols("NMS-ERPS-MIB", nmsERPS=nmsERPS, nmsERPSRingPorts=nmsERPSRingPorts, nmsERPSInconsistenceCheck=nmsERPSInconsistenceCheck, nmsERPSRings=nmsERPSRings, nmsERPSPduRx=nmsERPSPduRx, nmsERPSRingSignalFail=nmsERPSRingSignalFail, nmsERPSRingPort1OperType=nmsERPSRingPort1OperType, nmsERPSRingPortOperType=nmsERPSRingPortOperType, nmsERPSRingDiscoverWhile=nmsERPSRingDiscoverWhile, nmsERPSRingDiscoveryTime=nmsERPSRingDiscoveryTime, nmsERPSRingNodeID=nmsERPSRingNodeID, nmsERPSRingDiscoveryCount=nmsERPSRingDiscoveryCount, nmsERPSRingPortForwards=nmsERPSRingPortForwards, nmsERPSRingTableEntry=nmsERPSRingTableEntry, nmsERPSRingTable=nmsERPSRingTable, nmsERPSRingPort=nmsERPSRingPort, nmsERPSRingPort2State=nmsERPSRingPort2State, nmsERPSRingPort2Status=nmsERPSRingPort2Status, nmsERPSRingDiscovering=nmsERPSRingDiscovering, nmsERPSRingDiscoveryLastDuration=nmsERPSRingDiscoveryLastDuration, nmsERPSRingPortAdminType=nmsERPSRingPortAdminType, nmsERPSRingID=nmsERPSRingID, nmsERPSRingNotifications=nmsERPSRingNotifications, nmsERPSRingWTR=nmsERPSRingWTR, nmsERPSRingDpduInterval=nmsERPSRingDpduInterval, nmsERPSRingPort2=nmsERPSRingPort2, nmsERPSRingPort2OperType=nmsERPSRingPort2OperType, nmsERPSRingGuardTime=nmsERPSRingGuardTime, nmsERPSRingPort1AdminType=nmsERPSRingPort1AdminType, nmsERPSRingPort1Status=nmsERPSRingPort1Status, nmsERPSPduRxDropped=nmsERPSPduRxDropped, nmsERPSRingPriorityValue=nmsERPSRingPriorityValue, nmsERPSRingState=nmsERPSRingState, nmsERPSRingSending=nmsERPSRingSending, nmsERPSRingPort1=nmsERPSRingPort1, nmsERPSRingSendTime=nmsERPSRingSendTime, nmsERPSRingPortTx=nmsERPSRingPortTx, nmsERPSRingPortRingID=nmsERPSRingPortRingID, nmsERPSRingRplOwnerID=nmsERPSRingRplOwnerID, nmsERPSRingWtrTime=nmsERPSRingWtrTime, nmsERPSRingPort1State=nmsERPSRingPort1State, nmsERPSRingPortTable=nmsERPSRingPortTable, nmsERPSRingPortState=nmsERPSRingPortState, nmsERPSRingPortForwardLastElapsed=nmsERPSRingPortForwardLastElapsed, nmsERPSRingDiscoveryLastElapsed=nmsERPSRingDiscoveryLastElapsed, nmsERPSRingPortTableEntry=nmsERPSRingPortTableEntry, nmsERPSRingWtrWhile=nmsERPSRingWtrWhile, nmsERPSRingPortStatus=nmsERPSRingPortStatus, nmsERPSRingAdminStatus=nmsERPSRingAdminStatus, nmsERPSRingPortRx=nmsERPSRingPortRx, nmsERPSRingStateChange=nmsERPSRingStateChange, nmsERPSRingPort2AdminType=nmsERPSRingPort2AdminType, nmsERPSRingRoleChange=nmsERPSRingRoleChange, nmsERPSPduTx=nmsERPSPduTx, nmsERPSRingRole=nmsERPSRingRole, nmsERPSRingRplOwnerMAC=nmsERPSRingRplOwnerMAC)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (nmslocal,) = mibBuilder.importSymbols('NMS-SMI', 'nmslocal') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, counter32, notification_type, bits, gauge32, module_identity, object_identity, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, mib_identifier, unsigned32, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Counter32', 'NotificationType', 'Bits', 'Gauge32', 'ModuleIdentity', 'ObjectIdentity', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'MibIdentifier', 'Unsigned32', 'iso') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') nms_erps = mib_identifier((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231)) nms_erps_rings = mib_scalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRings.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRings.setDescription('The number of ethernet ring instances.') nms_erps_inconsistence_check = mib_scalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSInconsistenceCheck.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSInconsistenceCheck.setDescription('A value indicates that the ring-port inconsistence check is enabled or disabled.') nms_erps_pdu_rx = mib_scalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSPduRx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduRx.setDescription('The total number of input PDUs.') nms_erps_pdu_rx_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSPduRxDropped.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduRxDropped.setDescription('The number of input discarded PDUs.') nms_erps_pdu_tx = mib_scalar((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSPduTx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSPduTx.setDescription('The total number of output PDUs.') nms_erps_ring_table = mib_table((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6)) if mibBuilder.loadTexts: nmsERPSRingTable.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingTable.setDescription('A table that contains information of rings.') nms_erps_ring_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1)).setIndexNames((0, 'NMS-ERPS-MIB', 'nmsERPSRingID')) if mibBuilder.loadTexts: nmsERPSRingTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingTableEntry.setDescription('A table that contains information of rings.') nms_erps_ring_id = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingID.setDescription('The index of ring instances.') nms_erps_ring_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingNodeID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingNodeID.setDescription('The ring node identifier composed of a priority value and the bridge MAC address.') nms_erps_ring_ports = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPorts.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPorts.setDescription('The number of interfaces which are configured in a ring.') nms_erps_ring_role = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('notRplOwner', 0), ('rplOwner', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingRole.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRole.setDescription('A value indicates whether one port of the ring node is the Ring protection link(RPL).') nms_erps_ring_state = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('idle', 0), ('protection', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingState.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingState.setDescription('The ring protection state machine value.') nms_erps_ring_wtr = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('notWaitToRestore', 0), ('waitToRestore', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingWTR.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWTR.setDescription('This value from the RPL-Owner indicates whether it is Waiting to restore.') nms_erps_ring_wtr_while = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingWtrWhile.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWtrWhile.setDescription('The Wait-to-restore timer value, in seconds, which is the time left before the RPL-Owner restores from Protection state.') nms_erps_ring_signal_fail = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noSignalFail', 0), ('signalFail', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingSignalFail.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSignalFail.setDescription('A value indicates if a ring port is failed.') nms_erps_ring_sending = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingSending.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSending.setDescription('The type of PDUs being sent.') nms_erps_ring_rpl_owner_id = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingRplOwnerID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRplOwnerID.setDescription("The RPL-Owner's identifier, recorded from a superior discovery PDU.") nms_erps_ring_rpl_owner_mac = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingRplOwnerMAC.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingRplOwnerMAC.setDescription("The RPL-Owner's bridge MAC address, recorded from a NR-RB PDU.") nms_erps_ring_discovering = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('notDiscovering', 0), ('discovering', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingDiscovering.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscovering.setDescription('A value indicates if the ring discovery process is running.') nms_erps_ring_discover_while = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingDiscoverWhile.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoverWhile.setDescription('The discovery timer value, in seconds. Remaining time of the discovery process.') nms_erps_ring_priority_value = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingPriorityValue.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPriorityValue.setDescription('The configured ring node priority value. The lowest priority makes a node RPL-Owner in the ring. Available range is from 0 to 61440, in steps of 4096.') nms_erps_ring_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 15), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingWtrTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingWtrTime.setDescription('The configured Wait-to-restore time, in seconds.') nms_erps_ring_guard_time = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 16), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingGuardTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingGuardTime.setDescription('The configured Guard-time, in 10ms.') nms_erps_ring_send_time = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingSendTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingSendTime.setDescription('The configured interval of ring protection PDUs, in seconds.') nms_erps_ring_discovery_time = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 18), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingDiscoveryTime.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryTime.setDescription('The duration configured for discovery process, in seconds.') nms_erps_ring_dpdu_interval = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 19), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingDpduInterval.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDpduInterval.setDescription('The configured interval of ring discovery PDUs, in seconds.') nms_erps_ring_discovery_count = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingDiscoveryCount.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryCount.setDescription('The total number of discovery process ever started.') nms_erps_ring_discovery_last_duration = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastDuration.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastDuration.setDescription('Runtime of the last discovery process, in 10 ms.') nms_erps_ring_discovery_last_elapsed = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastElapsed.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingDiscoveryLastElapsed.setDescription('Elapsed time since last discovery started, in seconds.') nms_erps_ring_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: nmsERPSRingAdminStatus.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingAdminStatus.setDescription("A read-create value that indicates the configuration status of the ring instance. Set this value to 'enabled' to start the ring or 'disabled' to stop it.") nms_erps_ring_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 24), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: nmsERPSRingPort1.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1.setDescription('The interface index of the first ring port. Value 0 indicates that the first port is not configured. This value is read-write.') nms_erps_ring_port1_admin_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingPort1AdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1AdminType.setDescription("The configured type of the first ring port. Set this value to 'rpl' to configure the Ring-Protection-Link.") nms_erps_ring_port1_oper_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort1OperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1OperType.setDescription('The running type of the first ring port.') nms_erps_ring_port1_state = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('blocking', 0), ('forwarding', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort1State.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1State.setDescription('Forwarding state of the first ring port.') nms_erps_ring_port1_status = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('link-down', 0), ('link-up', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort1Status.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort1Status.setDescription('Link status of the first ring port.') nms_erps_ring_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 29), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: nmsERPSRingPort2.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2.setDescription('The interface index of the second ring port. Value 0 indicates that the second port is not configured. This value is read-write..') nms_erps_ring_port2_admin_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nmsERPSRingPort2AdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2AdminType.setDescription("The configured type of the second ring port. Set this value to 'rpl' to configure the Ring-Protection-Link.") nms_erps_ring_port2_oper_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort2OperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2OperType.setDescription('The running type of the second ring port.') nms_erps_ring_port2_state = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('blocking', 0), ('forwarding', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort2State.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2State.setDescription('Forwarding state of the second ring port.') nms_erps_ring_port2_status = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 6, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('link-down', 0), ('link-up', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort2Status.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort2Status.setDescription('Link status of the second ring port.') nms_erps_ring_port_table = mib_table((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7)) if mibBuilder.loadTexts: nmsERPSRingPortTable.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTable.setDescription('A table that contains informations of ring ports.') nms_erps_ring_port_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1)).setIndexNames((0, 'NMS-ERPS-MIB', 'nmsERPSRingPortRingID'), (0, 'NMS-ERPS-MIB', 'nmsERPSRingPort')) if mibBuilder.loadTexts: nmsERPSRingPortTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTableEntry.setDescription('A table that contains informations of ring ports.') nms_erps_ring_port_ring_id = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortRingID.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortRingID.setDescription('The index of ring instance, in which this port is configured.') nms_erps_ring_port = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPort.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPort.setDescription('Interface index of the ring port.') nms_erps_ring_port_admin_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortAdminType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortAdminType.setDescription('A value indicates that if the port is configured as the Ring Protection Link(RPL).') nms_erps_ring_port_oper_type = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ring-port', 0), ('rpl', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortOperType.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortOperType.setDescription("A value indicates that if the port is running as the Ring Protection Link(RPL). This value may be different with the value of 'nmsERPSRingPortAdminType'") nms_erps_ring_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('blocking', 0), ('forwarding', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortState.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortState.setDescription('State of a ring port, forwarding or blocking.') nms_erps_ring_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('link-down', 0), ('link-up', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortStatus.setDescription('Link status of a ring port.') nms_erps_ring_port_forwards = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortForwards.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortForwards.setDescription('The number of times this port transitioned to forwarding state.') nms_erps_ring_port_forward_last_elapsed = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortForwardLastElapsed.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortForwardLastElapsed.setDescription('Elapsed time since the port became forwarding, in seconds.') nms_erps_ring_port_rx = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortRx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortRx.setDescription('The number of received PDUs on this port.') nms_erps_ring_port_tx = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 7, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nmsERPSRingPortTx.setStatus('mandatory') if mibBuilder.loadTexts: nmsERPSRingPortTx.setDescription('The number of transmitted PDUs on this port.') nms_erps_ring_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8)) nms_erps_ring_role_change = notification_type((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8, 1)).setObjects(('NMS-ERPS-MIB', 'nmsERPSRingID'), ('NMS-ERPS-MIB', 'nmsERPSRingNodeID'), ('NMS-ERPS-MIB', 'nmsERPSRingRole')) if mibBuilder.loadTexts: nmsERPSRingRoleChange.setStatus('current') if mibBuilder.loadTexts: nmsERPSRingRoleChange.setDescription('The notification is generated when ring node role changes.') nms_erps_ring_state_change = notification_type((1, 3, 6, 1, 4, 1, 11606, 10, 2, 231, 8, 2)).setObjects(('NMS-ERPS-MIB', 'nmsERPSRingID'), ('NMS-ERPS-MIB', 'nmsERPSRingNodeID'), ('NMS-ERPS-MIB', 'nmsERPSRingRole'), ('NMS-ERPS-MIB', 'nmsERPSRingState')) if mibBuilder.loadTexts: nmsERPSRingStateChange.setStatus('current') if mibBuilder.loadTexts: nmsERPSRingStateChange.setDescription('The notification is generated when a RPL-Owner detects that the state of ring changed.') mibBuilder.exportSymbols('NMS-ERPS-MIB', nmsERPS=nmsERPS, nmsERPSRingPorts=nmsERPSRingPorts, nmsERPSInconsistenceCheck=nmsERPSInconsistenceCheck, nmsERPSRings=nmsERPSRings, nmsERPSPduRx=nmsERPSPduRx, nmsERPSRingSignalFail=nmsERPSRingSignalFail, nmsERPSRingPort1OperType=nmsERPSRingPort1OperType, nmsERPSRingPortOperType=nmsERPSRingPortOperType, nmsERPSRingDiscoverWhile=nmsERPSRingDiscoverWhile, nmsERPSRingDiscoveryTime=nmsERPSRingDiscoveryTime, nmsERPSRingNodeID=nmsERPSRingNodeID, nmsERPSRingDiscoveryCount=nmsERPSRingDiscoveryCount, nmsERPSRingPortForwards=nmsERPSRingPortForwards, nmsERPSRingTableEntry=nmsERPSRingTableEntry, nmsERPSRingTable=nmsERPSRingTable, nmsERPSRingPort=nmsERPSRingPort, nmsERPSRingPort2State=nmsERPSRingPort2State, nmsERPSRingPort2Status=nmsERPSRingPort2Status, nmsERPSRingDiscovering=nmsERPSRingDiscovering, nmsERPSRingDiscoveryLastDuration=nmsERPSRingDiscoveryLastDuration, nmsERPSRingPortAdminType=nmsERPSRingPortAdminType, nmsERPSRingID=nmsERPSRingID, nmsERPSRingNotifications=nmsERPSRingNotifications, nmsERPSRingWTR=nmsERPSRingWTR, nmsERPSRingDpduInterval=nmsERPSRingDpduInterval, nmsERPSRingPort2=nmsERPSRingPort2, nmsERPSRingPort2OperType=nmsERPSRingPort2OperType, nmsERPSRingGuardTime=nmsERPSRingGuardTime, nmsERPSRingPort1AdminType=nmsERPSRingPort1AdminType, nmsERPSRingPort1Status=nmsERPSRingPort1Status, nmsERPSPduRxDropped=nmsERPSPduRxDropped, nmsERPSRingPriorityValue=nmsERPSRingPriorityValue, nmsERPSRingState=nmsERPSRingState, nmsERPSRingSending=nmsERPSRingSending, nmsERPSRingPort1=nmsERPSRingPort1, nmsERPSRingSendTime=nmsERPSRingSendTime, nmsERPSRingPortTx=nmsERPSRingPortTx, nmsERPSRingPortRingID=nmsERPSRingPortRingID, nmsERPSRingRplOwnerID=nmsERPSRingRplOwnerID, nmsERPSRingWtrTime=nmsERPSRingWtrTime, nmsERPSRingPort1State=nmsERPSRingPort1State, nmsERPSRingPortTable=nmsERPSRingPortTable, nmsERPSRingPortState=nmsERPSRingPortState, nmsERPSRingPortForwardLastElapsed=nmsERPSRingPortForwardLastElapsed, nmsERPSRingDiscoveryLastElapsed=nmsERPSRingDiscoveryLastElapsed, nmsERPSRingPortTableEntry=nmsERPSRingPortTableEntry, nmsERPSRingWtrWhile=nmsERPSRingWtrWhile, nmsERPSRingPortStatus=nmsERPSRingPortStatus, nmsERPSRingAdminStatus=nmsERPSRingAdminStatus, nmsERPSRingPortRx=nmsERPSRingPortRx, nmsERPSRingStateChange=nmsERPSRingStateChange, nmsERPSRingPort2AdminType=nmsERPSRingPort2AdminType, nmsERPSRingRoleChange=nmsERPSRingRoleChange, nmsERPSPduTx=nmsERPSPduTx, nmsERPSRingRole=nmsERPSRingRole, nmsERPSRingRplOwnerMAC=nmsERPSRingRplOwnerMAC)
def quote_info(text): return f"<blockquote class=info>{text}</blockquote>" def quote_warning(text): return f"<blockquote class=warning>{text}</blockquote>" def quote_danger(text): return f"<blockquote class=danger>{text}</blockquote>" def code(text): return f"<code>{text}</code>" def html_link(link_text, url): return f"<a href='{url}'>{link_text}</a>"
def quote_info(text): return f'<blockquote class=info>{text}</blockquote>' def quote_warning(text): return f'<blockquote class=warning>{text}</blockquote>' def quote_danger(text): return f'<blockquote class=danger>{text}</blockquote>' def code(text): return f'<code>{text}</code>' def html_link(link_text, url): return f"<a href='{url}'>{link_text}</a>"
#!/usr/bin/env python # encoding: utf-8 class postag(object): # ref: http://universaldependencies.org/u/pos/index.html # Open class words ADJ = "ADJ" ADV = "ADV" INTJ = "INTJ" NOUN = "NOUN" PROPN = "PROPN" VERB = "VERB" # Closed class words ADP = "ADP" AUX ="AUX" CCONJ = "CCONJ" DET = "DET" NUM = "NUM" PART = "PART" PRON = "PRON" SCONJ = "SCONJ" # Other PUNCT = "PUNCT" SYM = "SYM" X = "X" class dep_v1(object): # VERSION VERSION = "1.0" # subj relations nsubj = "nsubj" nsubjpass = "nsubjpass" nsubjcop = "nsubj:cop" csubj = "csubj" csubjpass = "csubjpass" # obj relations dobj = "dobj" iobj = "iobj" # copular cop = "cop" # auxiliary aux = "aux" auxpass = "auxpass" # negation neg = "neg" # non-nominal modifier amod = "amod" advmod = "advmod" # nominal modifers nmod = "nmod" nmod_poss = "nmod:poss" nmod_tmod = "nmod:tmod" nmod_npmod = "nmod:npmod" nmod_gobj = "nmod:gobj" obl = "nmod" obl_npmod = "nmod:npmod" # appositional modifier appos = "appos" # cooordination cc = "cc" conj = "conj" cc_preconj = "cc:preconj" # marker mark = "mark" case = "case" # fixed multiword expression mwe = "fixed" # parataxis parataxis = "parataxis" # punctuation punct = "punct" # clausal complement ccomp = "ccomp" xcomp = "xcomp" xcompds = "xcomp:ds" # relative clause advcl = "advcl" acl = "acl" aclrelcl = "acl:relcl" # unknown dep dep = "dep" SUBJ = {nsubj, csubj, nsubjpass, csubjpass} OBJ = {dobj, iobj} NMODS = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj} ADJ_LIKE_MODS = {amod, appos, acl, aclrelcl} ARG_LIKE = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj, nsubj, csubj, csubjpass, dobj, iobj} # trivial symbols to be stripped out TRIVIALS = {mark, cc, punct} # These dependents of a predicate root shouldn't be included in the # predicate phrase. PRED_DEPS_TO_DROP = {ccomp, csubj, advcl, acl, aclrelcl, nmod_tmod, parataxis, appos, dep} # These dependents of an argument root shouldn't be included in the # argument pharse if the argument root is the gov of the predicate root. SPECIAL_ARG_DEPS_TO_DROP = {nsubj, dobj, iobj, csubj, csubjpass, neg, aux, advcl, auxpass, ccomp, cop, mark, mwe, parataxis} # Predicates of these rels are hard to find arguments. HARD_TO_FIND_ARGS = {amod, dep, conj, acl, aclrelcl, advcl} class dep_v2(object): # VERSION VERSION = "2.0" # subj relations nsubj = "nsubj" nsubjpass = "nsubj:pass" nsubjcop = "nsubj:cop" csubj = "csubj" csubjpass = "csubj:pass" # obj relations dobj = "obj" iobj = "iobj" # auxiliary aux = "aux" auxpass = "aux:pass" # negation neg = "neg" # copular cop = "cop" # non-nominal modifier amod = "amod" advmod = "advmod" # nominal modifers nmod = "nmod" nmod_poss = "nmod:poss" nmod_tmod = "nmod:tmod" nmod_npmod = "nmod:npmod" nmod_gobj = "nmod:gobj" obl = "obl" obl_npmod = "obl:npmod" # appositional modifier appos = "appos" # cooordination cc = "cc" conj = "conj" cc_preconj = "cc:preconj" # marker mark = "mark" case = "case" # fixed multiword expression mwe = "fixed" # parataxis parataxis = "parataxis" # punctuation punct = "punct" # clausal complement ccomp = "ccomp" xcomp = "xcomp" xcompds = "xcomp:ds" # relative clause advcl = "advcl" acl = "acl" aclrelcl = "acl:relcl" # unknown dep dep = "dep" SUBJ = {nsubj, csubj, nsubjpass, csubjpass} OBJ = {dobj, iobj} NMODS = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj} ADJ_LIKE_MODS = {amod, appos, acl, aclrelcl} ARG_LIKE = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj, nsubj, csubj, csubjpass, dobj, iobj} # trivial symbols to be stripped out TRIVIALS = {mark, cc, punct} # These dependents of a predicate root shouldn't be included in the # predicate phrase. PRED_DEPS_TO_DROP = {ccomp, csubj, advcl, acl, aclrelcl, nmod_tmod, parataxis, appos, dep} # These dependents of an argument root shouldn't be included in the # argument pharse if the argument root is the gov of the predicate root. SPECIAL_ARG_DEPS_TO_DROP = {nsubj, dobj, iobj, csubj, csubjpass, neg, aux, advcl, auxpass, ccomp, cop, mark, mwe, parataxis} # Predicates of these deps are hard to find arguments. HARD_TO_FIND_ARGS = {amod, dep, conj, acl, aclrelcl, advcl}
class Postag(object): adj = 'ADJ' adv = 'ADV' intj = 'INTJ' noun = 'NOUN' propn = 'PROPN' verb = 'VERB' adp = 'ADP' aux = 'AUX' cconj = 'CCONJ' det = 'DET' num = 'NUM' part = 'PART' pron = 'PRON' sconj = 'SCONJ' punct = 'PUNCT' sym = 'SYM' x = 'X' class Dep_V1(object): version = '1.0' nsubj = 'nsubj' nsubjpass = 'nsubjpass' nsubjcop = 'nsubj:cop' csubj = 'csubj' csubjpass = 'csubjpass' dobj = 'dobj' iobj = 'iobj' cop = 'cop' aux = 'aux' auxpass = 'auxpass' neg = 'neg' amod = 'amod' advmod = 'advmod' nmod = 'nmod' nmod_poss = 'nmod:poss' nmod_tmod = 'nmod:tmod' nmod_npmod = 'nmod:npmod' nmod_gobj = 'nmod:gobj' obl = 'nmod' obl_npmod = 'nmod:npmod' appos = 'appos' cc = 'cc' conj = 'conj' cc_preconj = 'cc:preconj' mark = 'mark' case = 'case' mwe = 'fixed' parataxis = 'parataxis' punct = 'punct' ccomp = 'ccomp' xcomp = 'xcomp' xcompds = 'xcomp:ds' advcl = 'advcl' acl = 'acl' aclrelcl = 'acl:relcl' dep = 'dep' subj = {nsubj, csubj, nsubjpass, csubjpass} obj = {dobj, iobj} nmods = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj} adj_like_mods = {amod, appos, acl, aclrelcl} arg_like = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj, nsubj, csubj, csubjpass, dobj, iobj} trivials = {mark, cc, punct} pred_deps_to_drop = {ccomp, csubj, advcl, acl, aclrelcl, nmod_tmod, parataxis, appos, dep} special_arg_deps_to_drop = {nsubj, dobj, iobj, csubj, csubjpass, neg, aux, advcl, auxpass, ccomp, cop, mark, mwe, parataxis} hard_to_find_args = {amod, dep, conj, acl, aclrelcl, advcl} class Dep_V2(object): version = '2.0' nsubj = 'nsubj' nsubjpass = 'nsubj:pass' nsubjcop = 'nsubj:cop' csubj = 'csubj' csubjpass = 'csubj:pass' dobj = 'obj' iobj = 'iobj' aux = 'aux' auxpass = 'aux:pass' neg = 'neg' cop = 'cop' amod = 'amod' advmod = 'advmod' nmod = 'nmod' nmod_poss = 'nmod:poss' nmod_tmod = 'nmod:tmod' nmod_npmod = 'nmod:npmod' nmod_gobj = 'nmod:gobj' obl = 'obl' obl_npmod = 'obl:npmod' appos = 'appos' cc = 'cc' conj = 'conj' cc_preconj = 'cc:preconj' mark = 'mark' case = 'case' mwe = 'fixed' parataxis = 'parataxis' punct = 'punct' ccomp = 'ccomp' xcomp = 'xcomp' xcompds = 'xcomp:ds' advcl = 'advcl' acl = 'acl' aclrelcl = 'acl:relcl' dep = 'dep' subj = {nsubj, csubj, nsubjpass, csubjpass} obj = {dobj, iobj} nmods = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj} adj_like_mods = {amod, appos, acl, aclrelcl} arg_like = {nmod, obl, nmod_npmod, nmod_tmod, nmod_gobj, nsubj, csubj, csubjpass, dobj, iobj} trivials = {mark, cc, punct} pred_deps_to_drop = {ccomp, csubj, advcl, acl, aclrelcl, nmod_tmod, parataxis, appos, dep} special_arg_deps_to_drop = {nsubj, dobj, iobj, csubj, csubjpass, neg, aux, advcl, auxpass, ccomp, cop, mark, mwe, parataxis} hard_to_find_args = {amod, dep, conj, acl, aclrelcl, advcl}
print("-----------\nOmzetten van lengte-eenheden - Kilometers naar miles.\n") while True: print ("Geef de kilometers in die naar miles moeten omgezet.\nGebruik alleen getallen!") km = str(input("Kilometers: ")) try: km = float(km.replace(",", ".")) # replace comma with dot, if user entered a comma miles = round(km * 0.621371, 2) print ("----> [{0}] kilometers zijn gelijk aan [{1}] miles. ---".format(km, miles)) except Exception as e: print ("Opgelet gebruik enkel getallen! Geen tekst.") choice = input("Wil je nog een omzetting doen? y/n : ") if choice.lower() != "y" and choice.lower() != "yes": break
print('-----------\nOmzetten van lengte-eenheden - Kilometers naar miles.\n') while True: print('Geef de kilometers in die naar miles moeten omgezet.\nGebruik alleen getallen!') km = str(input('Kilometers: ')) try: km = float(km.replace(',', '.')) miles = round(km * 0.621371, 2) print('----> [{0}] kilometers zijn gelijk aan [{1}] miles. ---'.format(km, miles)) except Exception as e: print('Opgelet gebruik enkel getallen! Geen tekst.') choice = input('Wil je nog een omzetting doen? y/n : ') if choice.lower() != 'y' and choice.lower() != 'yes': break
class Pair(object): def __init__(self, individual1, individual2): self.ind1 = individual1 self.ind2 = individual2
class Pair(object): def __init__(self, individual1, individual2): self.ind1 = individual1 self.ind2 = individual2
class atom(object): def __init__(self,atno,x,y,z): self.atno = atno self.position = (x,y,z) # this is constructor def symbol(self): # a class method return atno__to__Symbol[atno] def __repr__(self): # a class method return '%d %10.4f %10.4f %10.4f%' (self.atno, self.position[0], self.position[1], self.position[2]) # toString
class Atom(object): def __init__(self, atno, x, y, z): self.atno = atno self.position = (x, y, z) def symbol(self): return atno__to__Symbol[atno] def __repr__(self): return '%d %10.4f %10.4f %10.4f%' (self.atno, self.position[0], self.position[1], self.position[2])
class Data: def __init__(self, startingArray): self.dict = { "Category" : 0, "Month" : 1, "Day" : 2, "RepeatType" : 3, "Time" : 4, } self.list = ["Category","Month", "Day", "RepeatMonth", "Time"] self.data = startingArray def setData(self, array): self.data = array def getData(self): return self.data def getDataIndex(self, index): return self.data[index] def getDataLen(self): return len(self.data) def getDataIndexIdentifier(self, index, identifier): return self.data[index][identifier] def getAllDataIdentifier(self, identifier): array = {} for i in self.data: array.append(i[identifier]) return array def getAllDataIDList(self, idList): out = {} for i in self.data: temp = {} for j in idList: temp.append(i[j]) out.append(temp) return out def convertData(self, dict): out = "" counter = 0 for i in dict: counter += 1 print(dict[i]) out = out + str(dict[i]) if(counter != 5): out = out + " ," return out def getDataFiltered(self, filter, filterType, dataType): # print("Filter ", filter) array = [] for i in self.data: # print("Left Side of boolean check",i[self.dict[filterType]],int(i[self.dict[filterType]]) == filter) if(int(i[self.dict[filterType]]) == filter): array.append(int(i[self.dict[dataType]])) # print("array after appending",array) return array
class Data: def __init__(self, startingArray): self.dict = {'Category': 0, 'Month': 1, 'Day': 2, 'RepeatType': 3, 'Time': 4} self.list = ['Category', 'Month', 'Day', 'RepeatMonth', 'Time'] self.data = startingArray def set_data(self, array): self.data = array def get_data(self): return self.data def get_data_index(self, index): return self.data[index] def get_data_len(self): return len(self.data) def get_data_index_identifier(self, index, identifier): return self.data[index][identifier] def get_all_data_identifier(self, identifier): array = {} for i in self.data: array.append(i[identifier]) return array def get_all_data_id_list(self, idList): out = {} for i in self.data: temp = {} for j in idList: temp.append(i[j]) out.append(temp) return out def convert_data(self, dict): out = '' counter = 0 for i in dict: counter += 1 print(dict[i]) out = out + str(dict[i]) if counter != 5: out = out + ' ,' return out def get_data_filtered(self, filter, filterType, dataType): array = [] for i in self.data: if int(i[self.dict[filterType]]) == filter: array.append(int(i[self.dict[dataType]])) return array
class Solution: def findJudge(self, n: int, trust: List[List[int]]) -> int: if not trust and n == 1: return 1 Trust = defaultdict(list) Trusted = defaultdict(list) for a, b in trust: Trust[a].append(b) Trusted[b].append(a) for i, t in Trusted.items(): if len(t) == n - 1 and Trust[i] == []: return i return -1
class Solution: def find_judge(self, n: int, trust: List[List[int]]) -> int: if not trust and n == 1: return 1 trust = defaultdict(list) trusted = defaultdict(list) for (a, b) in trust: Trust[a].append(b) Trusted[b].append(a) for (i, t) in Trusted.items(): if len(t) == n - 1 and Trust[i] == []: return i return -1
HOST = "irc.twitch.tv" PORT = 6667 NICK = "simpleaibot" PASS = "oauth:tldegtq435nf1dgdps8ik9opfw9pin" CHAN = "simpleaibot" OWNER = ["sinstr_syko", "aloeblinka"]
host = 'irc.twitch.tv' port = 6667 nick = 'simpleaibot' pass = 'oauth:tldegtq435nf1dgdps8ik9opfw9pin' chan = 'simpleaibot' owner = ['sinstr_syko', 'aloeblinka']
N,K=map(int,input().split()) L=[1]*(N+1) for j in range(2,N+1): if L[j]: key=j for i in range(key,N+1,key): if L[i]: L[i]=0 K-=1 if K==0: print(i) exit()
(n, k) = map(int, input().split()) l = [1] * (N + 1) for j in range(2, N + 1): if L[j]: key = j for i in range(key, N + 1, key): if L[i]: L[i] = 0 k -= 1 if K == 0: print(i) exit()
def fact(n = 5): if n < 2: return 1 else: return n * fact(n-1) num = input("Enter a number to get its factorial: ") if num == 'None' or num == '' or num == ' ': print("Factorial of default value is: ",fact()) else: print("Factorial of number is: ",fact(int(num)))
def fact(n=5): if n < 2: return 1 else: return n * fact(n - 1) num = input('Enter a number to get its factorial: ') if num == 'None' or num == '' or num == ' ': print('Factorial of default value is: ', fact()) else: print('Factorial of number is: ', fact(int(num)))
SUCCESS_GENERAL = 2000 SUCCESS_USER_REGISTERED = 2001 SUCCESS_USER_LOGGED_IN = 2002 ERROR_USER_ALREADY_REGISTERED = 4000 ERROR_USER_LOGIN = 4001 ERROR_LOGIN_FAILED_SYSTEM_ERROR = 4002
success_general = 2000 success_user_registered = 2001 success_user_logged_in = 2002 error_user_already_registered = 4000 error_user_login = 4001 error_login_failed_system_error = 4002
# # PySNMP MIB module AVICI-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AVICI-SMI # Produced by pysmi-0.3.4 at Wed May 1 11:32: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) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Unsigned32, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Integer32, NotificationType, Counter32, iso, TimeTicks, IpAddress, Bits, ObjectIdentity, Gauge32, ModuleIdentity, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Integer32", "NotificationType", "Counter32", "iso", "TimeTicks", "IpAddress", "Bits", "ObjectIdentity", "Gauge32", "ModuleIdentity", "Counter64") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") avici = ModuleIdentity((1, 3, 6, 1, 4, 1, 2474)) avici.setRevisions(('1970-01-01 00:00', '1970-01-01 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: avici.setRevisionsDescriptions(('Changed arc names, removed unnecessary arcs.', 'Created MIB module.',)) if mibBuilder.loadTexts: avici.setLastUpdated('990330095500Z') if mibBuilder.loadTexts: avici.setOrganization('Avici Systems, Inc.') if mibBuilder.loadTexts: avici.setContactInfo(' Avici Systems, Inc. 101 Billerica Avenue North Billerica, MA 01862-1256 (978) 964-2000 (978) 964-2100 (fax) snmp@avici.com') if mibBuilder.loadTexts: avici.setDescription('This MIB module contains the structure of management information for all vendor-specific MIBs authored by Avici Systems, Inc.') aviciMibs = ObjectIdentity((1, 3, 6, 1, 4, 1, 2474, 1)) if mibBuilder.loadTexts: aviciMibs.setStatus('current') if mibBuilder.loadTexts: aviciMibs.setDescription('aviciMibs is the root where Avici Proprietary MIB modules are defined.') aviciProducts = ObjectIdentity((1, 3, 6, 1, 4, 1, 2474, 2)) if mibBuilder.loadTexts: aviciProducts.setStatus('current') if mibBuilder.loadTexts: aviciProducts.setDescription('aviciProducts contains the sysObjectID values for all Avici products.') aviciExperimental = ObjectIdentity((1, 3, 6, 1, 4, 1, 2474, 3)) if mibBuilder.loadTexts: aviciExperimental.setStatus('current') if mibBuilder.loadTexts: aviciExperimental.setDescription('aviciExperimental is a temporary place for experimental MIBs.') aviciTypes = ObjectIdentity((1, 3, 6, 1, 4, 1, 2474, 4)) if mibBuilder.loadTexts: aviciTypes.setStatus('current') if mibBuilder.loadTexts: aviciTypes.setDescription('aviciTypes is the root where Avici textual convention MIB modules are defined.') mibBuilder.exportSymbols("AVICI-SMI", aviciProducts=aviciProducts, PYSNMP_MODULE_ID=avici, aviciTypes=aviciTypes, aviciExperimental=aviciExperimental, avici=avici, aviciMibs=aviciMibs)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (unsigned32, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, integer32, notification_type, counter32, iso, time_ticks, ip_address, bits, object_identity, gauge32, module_identity, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Integer32', 'NotificationType', 'Counter32', 'iso', 'TimeTicks', 'IpAddress', 'Bits', 'ObjectIdentity', 'Gauge32', 'ModuleIdentity', 'Counter64') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') avici = module_identity((1, 3, 6, 1, 4, 1, 2474)) avici.setRevisions(('1970-01-01 00:00', '1970-01-01 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: avici.setRevisionsDescriptions(('Changed arc names, removed unnecessary arcs.', 'Created MIB module.')) if mibBuilder.loadTexts: avici.setLastUpdated('990330095500Z') if mibBuilder.loadTexts: avici.setOrganization('Avici Systems, Inc.') if mibBuilder.loadTexts: avici.setContactInfo(' Avici Systems, Inc. 101 Billerica Avenue North Billerica, MA 01862-1256 (978) 964-2000 (978) 964-2100 (fax) snmp@avici.com') if mibBuilder.loadTexts: avici.setDescription('This MIB module contains the structure of management information for all vendor-specific MIBs authored by Avici Systems, Inc.') avici_mibs = object_identity((1, 3, 6, 1, 4, 1, 2474, 1)) if mibBuilder.loadTexts: aviciMibs.setStatus('current') if mibBuilder.loadTexts: aviciMibs.setDescription('aviciMibs is the root where Avici Proprietary MIB modules are defined.') avici_products = object_identity((1, 3, 6, 1, 4, 1, 2474, 2)) if mibBuilder.loadTexts: aviciProducts.setStatus('current') if mibBuilder.loadTexts: aviciProducts.setDescription('aviciProducts contains the sysObjectID values for all Avici products.') avici_experimental = object_identity((1, 3, 6, 1, 4, 1, 2474, 3)) if mibBuilder.loadTexts: aviciExperimental.setStatus('current') if mibBuilder.loadTexts: aviciExperimental.setDescription('aviciExperimental is a temporary place for experimental MIBs.') avici_types = object_identity((1, 3, 6, 1, 4, 1, 2474, 4)) if mibBuilder.loadTexts: aviciTypes.setStatus('current') if mibBuilder.loadTexts: aviciTypes.setDescription('aviciTypes is the root where Avici textual convention MIB modules are defined.') mibBuilder.exportSymbols('AVICI-SMI', aviciProducts=aviciProducts, PYSNMP_MODULE_ID=avici, aviciTypes=aviciTypes, aviciExperimental=aviciExperimental, avici=avici, aviciMibs=aviciMibs)
{ "uidPageJourney": { W3Const.w3PropType: W3Const.w3TypePanel, W3Const.w3PropSubUI: [ "uidJourneyTab" ] }, "uidJourneyTab": { W3Const.w3PropType: W3Const.w3TypeTab, W3Const.w3PropSubUI: [ ["uidJourneyTabJourneyLabel", "uidJourneyTabJourneyPanel"], ["uidJourneyTabMapLabel", "uidJourneyTabMapPanel"] ], W3Const.w3PropCSS: { # CSS for tab only support these format "border-width": "1px", "border-style": "solid", "background-color": "white" } }, "uidJourneyTabJourneyLabel": { W3Const.w3PropType: W3Const.w3TypeLabel, W3Const.w3PropString: "sidJourneyTabJourney", W3Const.w3PropClass: "cidLRPadding" }, "uidJourneyTabMapLabel": { W3Const.w3PropType: W3Const.w3TypeLabel, W3Const.w3PropString: "sidJourneyTabMap", W3Const.w3PropClass: "cidLRPadding" }, "JourneyTab": ImportPartial("EJUIJourneyTab.py"), "MapTab": ImportPartial("EJUIMapTab.py") }
{'uidPageJourney': {W3Const.w3PropType: W3Const.w3TypePanel, W3Const.w3PropSubUI: ['uidJourneyTab']}, 'uidJourneyTab': {W3Const.w3PropType: W3Const.w3TypeTab, W3Const.w3PropSubUI: [['uidJourneyTabJourneyLabel', 'uidJourneyTabJourneyPanel'], ['uidJourneyTabMapLabel', 'uidJourneyTabMapPanel']], W3Const.w3PropCSS: {'border-width': '1px', 'border-style': 'solid', 'background-color': 'white'}}, 'uidJourneyTabJourneyLabel': {W3Const.w3PropType: W3Const.w3TypeLabel, W3Const.w3PropString: 'sidJourneyTabJourney', W3Const.w3PropClass: 'cidLRPadding'}, 'uidJourneyTabMapLabel': {W3Const.w3PropType: W3Const.w3TypeLabel, W3Const.w3PropString: 'sidJourneyTabMap', W3Const.w3PropClass: 'cidLRPadding'}, 'JourneyTab': import_partial('EJUIJourneyTab.py'), 'MapTab': import_partial('EJUIMapTab.py')}
def custom_send(socket): socket.send("message from mod.myfunc()") def custom_recv(socket): socket.recv() def custom_measure(q): return q.measure()
def custom_send(socket): socket.send('message from mod.myfunc()') def custom_recv(socket): socket.recv() def custom_measure(q): return q.measure()
#This one is straight out the standard library. def _default_mime_types(): types_map = { '.cdf' : 'application/x-cdf', '.cdf' : 'application/x-netcdf', '.xls' : 'application/excel', '.xls' : 'application/vnd.ms-excel', }
def _default_mime_types(): types_map = {'.cdf': 'application/x-cdf', '.cdf': 'application/x-netcdf', '.xls': 'application/excel', '.xls': 'application/vnd.ms-excel'}
s = input() ret = 0 for i in range(len(s)//2): if s[i] != s[-(i+1)]: ret += 1 print(ret)
s = input() ret = 0 for i in range(len(s) // 2): if s[i] != s[-(i + 1)]: ret += 1 print(ret)
SBOX = ( (0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76), (0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0), (0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15), (0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75), (0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84), (0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF), (0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8), (0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2), (0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73), (0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB), (0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79), (0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08), (0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A), (0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E), (0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF), (0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16), ) INV_SBOX = ( (0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB), (0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB), (0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E), (0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25), (0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92), (0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84), (0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06), (0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B), (0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73), (0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E), (0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B), (0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4), (0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F), (0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF), (0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61), (0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D), ) RCON = ( (0x01, 0x00, 0x00, 0x00), (0x02, 0x00, 0x00, 0x00), (0x04, 0x00, 0x00, 0x00), (0x08, 0x00, 0x00, 0x00), (0x10, 0x00, 0x00, 0x00), (0x20, 0x00, 0x00, 0x00), (0x40, 0x00, 0x00, 0x00), (0x80, 0x00, 0x00, 0x00), (0x1B, 0x00, 0x00, 0x00), (0x36, 0x00, 0x00, 0x00), ) # ---------------------------------------------------------------------------------------------------------------------- _MULTIPLY_BY_1 = tuple(range(256)) _MULTIPLY_BY_2 = ( 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0E, 0x10, 0x12, 0x14, 0x16, 0x18, 0x1A, 0x1C, 0x1E, 0x20, 0x22, 0x24, 0x26, 0x28, 0x2A, 0x2C, 0x2E, 0x30, 0x32, 0x34, 0x36, 0x38, 0x3A, 0x3C, 0x3E, 0x40, 0x42, 0x44, 0x46, 0x48, 0x4A, 0x4C, 0x4E, 0x50, 0x52, 0x54, 0x56, 0x58, 0x5A, 0x5C, 0x5E, 0x60, 0x62, 0x64, 0x66, 0x68, 0x6A, 0x6C, 0x6E, 0x70, 0x72, 0x74, 0x76, 0x78, 0x7A, 0x7C, 0x7E, 0x80, 0x82, 0x84, 0x86, 0x88, 0x8A, 0x8C, 0x8E, 0x90, 0x92, 0x94, 0x96, 0x98, 0x9A, 0x9C, 0x9E, 0xA0, 0xA2, 0xA4, 0xA6, 0xA8, 0xAA, 0xAC, 0xAE, 0xB0, 0xB2, 0xB4, 0xB6, 0xB8, 0xBA, 0xBC, 0xBE, 0xC0, 0xC2, 0xC4, 0xC6, 0xC8, 0xCA, 0xCC, 0xCE, 0xD0, 0xD2, 0xD4, 0xD6, 0xD8, 0xDA, 0xDC, 0xDE, 0xE0, 0xE2, 0xE4, 0xE6, 0xE8, 0xEA, 0xEC, 0xEE, 0xF0, 0xF2, 0xF4, 0xF6, 0xF8, 0xFA, 0xFC, 0xFE, 0x1B, 0x19, 0x1F, 0x1D, 0x13, 0x11, 0x17, 0x15, 0x0B, 0x09, 0x0F, 0x0D, 0x03, 0x01, 0x07, 0x05, 0x3B, 0x39, 0x3F, 0x3D, 0x33, 0x31, 0x37, 0x35, 0x2B, 0x29, 0x2F, 0x2D, 0x23, 0x21, 0x27, 0x25, 0x5B, 0x59, 0x5F, 0x5D, 0x53, 0x51, 0x57, 0x55, 0x4B, 0x49, 0x4F, 0x4D, 0x43, 0x41, 0x47, 0x45, 0x7B, 0x79, 0x7F, 0x7D, 0x73, 0x71, 0x77, 0x75, 0x6B, 0x69, 0x6F, 0x6D, 0x63, 0x61, 0x67, 0x65, 0x9B, 0x99, 0x9F, 0x9D, 0x93, 0x91, 0x97, 0x95, 0x8B, 0x89, 0x8F, 0x8D, 0x83, 0x81, 0x87, 0x85, 0xBB, 0xB9, 0xBF, 0xBD, 0xB3, 0xB1, 0xB7, 0xB5, 0xAB, 0xA9, 0xAF, 0xAD, 0xA3, 0xA1, 0xA7, 0xA5, 0xDB, 0xD9, 0xDF, 0xDD, 0xD3, 0xD1, 0xD7, 0xD5, 0xCB, 0xC9, 0xCF, 0xCD, 0xC3, 0xC1, 0xC7, 0xC5, 0xFB, 0xF9, 0xFF, 0xFD, 0xF3, 0xF1, 0xF7, 0xF5, 0xEB, 0xE9, 0xEF, 0xED, 0xE3, 0xE1, 0xE7, 0xE5, ) _MULTIPLY_BY_3 = ( 0x00, 0x03, 0x06, 0x05, 0x0C, 0x0F, 0x0A, 0x09, 0x18, 0x1B, 0x1E, 0x1D, 0x14, 0x17, 0x12, 0x11, 0x30, 0x33, 0x36, 0x35, 0x3C, 0x3F, 0x3A, 0x39, 0x28, 0x2B, 0x2E, 0x2D, 0x24, 0x27, 0x22, 0x21, 0x60, 0x63, 0x66, 0x65, 0x6C, 0x6F, 0x6A, 0x69, 0x78, 0x7B, 0x7E, 0x7D, 0x74, 0x77, 0x72, 0x71, 0x50, 0x53, 0x56, 0x55, 0x5C, 0x5F, 0x5A, 0x59, 0x48, 0x4B, 0x4E, 0x4D, 0x44, 0x47, 0x42, 0x41, 0xC0, 0xC3, 0xC6, 0xC5, 0xCC, 0xCF, 0xCA, 0xC9, 0xD8, 0xDB, 0xDE, 0xDD, 0xD4, 0xD7, 0xD2, 0xD1, 0xF0, 0xF3, 0xF6, 0xF5, 0xFC, 0xFF, 0xFA, 0xF9, 0xE8, 0xEB, 0xEE, 0xED, 0xE4, 0xE7, 0xE2, 0xE1, 0xA0, 0xA3, 0xA6, 0xA5, 0xAC, 0xAF, 0xAA, 0xA9, 0xB8, 0xBB, 0xBE, 0xBD, 0xB4, 0xB7, 0xB2, 0xB1, 0x90, 0x93, 0x96, 0x95, 0x9C, 0x9F, 0x9A, 0x99, 0x88, 0x8B, 0x8E, 0x8D, 0x84, 0x87, 0x82, 0x81, 0x9B, 0x98, 0x9D, 0x9E, 0x97, 0x94, 0x91, 0x92, 0x83, 0x80, 0x85, 0x86, 0x8F, 0x8C, 0x89, 0x8A, 0xAB, 0xA8, 0xAD, 0xAE, 0xA7, 0xA4, 0xA1, 0xA2, 0xB3, 0xB0, 0xB5, 0xB6, 0xBF, 0xBC, 0xB9, 0xBA, 0xFB, 0xF8, 0xFD, 0xFE, 0xF7, 0xF4, 0xF1, 0xF2, 0xE3, 0xE0, 0xE5, 0xE6, 0xEF, 0xEC, 0xE9, 0xEA, 0xCB, 0xC8, 0xCD, 0xCE, 0xC7, 0xC4, 0xC1, 0xC2, 0xD3, 0xD0, 0xD5, 0xD6, 0xDF, 0xDC, 0xD9, 0xDA, 0x5B, 0x58, 0x5D, 0x5E, 0x57, 0x54, 0x51, 0x52, 0x43, 0x40, 0x45, 0x46, 0x4F, 0x4C, 0x49, 0x4A, 0x6B, 0x68, 0x6D, 0x6E, 0x67, 0x64, 0x61, 0x62, 0x73, 0x70, 0x75, 0x76, 0x7F, 0x7C, 0x79, 0x7A, 0x3B, 0x38, 0x3D, 0x3E, 0x37, 0x34, 0x31, 0x32, 0x23, 0x20, 0x25, 0x26, 0x2F, 0x2C, 0x29, 0x2A, 0x0B, 0x08, 0x0D, 0x0E, 0x07, 0x04, 0x01, 0x02, 0x13, 0x10, 0x15, 0x16, 0x1F, 0x1C, 0x19, 0x1A, ) _MULTIPLY_BY_9 = ( 0x00, 0x09, 0x12, 0x1B, 0x24, 0x2D, 0x36, 0x3F, 0x48, 0x41, 0x5A, 0x53, 0x6C, 0x65, 0x7E, 0x77, 0x90, 0x99, 0x82, 0x8B, 0xB4, 0xBD, 0xA6, 0xAF, 0xD8, 0xD1, 0xCA, 0xC3, 0xFC, 0xF5, 0xEE, 0xE7, 0x3B, 0x32, 0x29, 0x20, 0x1F, 0x16, 0x0D, 0x04, 0x73, 0x7A, 0x61, 0x68, 0x57, 0x5E, 0x45, 0x4C, 0xAB, 0xA2, 0xB9, 0xB0, 0x8F, 0x86, 0x9D, 0x94, 0xE3, 0xEA, 0xF1, 0xF8, 0xC7, 0xCE, 0xD5, 0xDC, 0x76, 0x7F, 0x64, 0x6D, 0x52, 0x5B, 0x40, 0x49, 0x3E, 0x37, 0x2C, 0x25, 0x1A, 0x13, 0x08, 0x01, 0xE6, 0xEF, 0xF4, 0xFD, 0xC2, 0xCB, 0xD0, 0xD9, 0xAE, 0xA7, 0xBC, 0xB5, 0x8A, 0x83, 0x98, 0x91, 0x4D, 0x44, 0x5F, 0x56, 0x69, 0x60, 0x7B, 0x72, 0x05, 0x0C, 0x17, 0x1E, 0x21, 0x28, 0x33, 0x3A, 0xDD, 0xD4, 0xCF, 0xC6, 0xF9, 0xF0, 0xEB, 0xE2, 0x95, 0x9C, 0x87, 0x8E, 0xB1, 0xB8, 0xA3, 0xAA, 0xEC, 0xE5, 0xFE, 0xF7, 0xC8, 0xC1, 0xDA, 0xD3, 0xA4, 0xAD, 0xB6, 0xBF, 0x80, 0x89, 0x92, 0x9B, 0x7C, 0x75, 0x6E, 0x67, 0x58, 0x51, 0x4A, 0x43, 0x34, 0x3D, 0x26, 0x2F, 0x10, 0x19, 0x02, 0x0B, 0xD7, 0xDE, 0xC5, 0xCC, 0xF3, 0xFA, 0xE1, 0xE8, 0x9F, 0x96, 0x8D, 0x84, 0xBB, 0xB2, 0xA9, 0xA0, 0x47, 0x4E, 0x55, 0x5C, 0x63, 0x6A, 0x71, 0x78, 0x0F, 0x06, 0x1D, 0x14, 0x2B, 0x22, 0x39, 0x30, 0x9A, 0x93, 0x88, 0x81, 0xBE, 0xB7, 0xAC, 0xA5, 0xD2, 0xDB, 0xC0, 0xC9, 0xF6, 0xFF, 0xE4, 0xED, 0x0A, 0x03, 0x18, 0x11, 0x2E, 0x27, 0x3C, 0x35, 0x42, 0x4B, 0x50, 0x59, 0x66, 0x6F, 0x74, 0x7D, 0xA1, 0xA8, 0xB3, 0xBA, 0x85, 0x8C, 0x97, 0x9E, 0xE9, 0xE0, 0xFB, 0xF2, 0xCD, 0xC4, 0xDF, 0xD6, 0x31, 0x38, 0x23, 0x2A, 0x15, 0x1C, 0x07, 0x0E, 0x79, 0x70, 0x6B, 0x62, 0x5D, 0x54, 0x4F, 0x46, ) _MULTIPLY_BY_11 = ( 0x00, 0x0B, 0x16, 0x1D, 0x2C, 0x27, 0x3A, 0x31, 0x58, 0x53, 0x4E, 0x45, 0x74, 0x7F, 0x62, 0x69, 0xB0, 0xBB, 0xA6, 0xAD, 0x9C, 0x97, 0x8A, 0x81, 0xE8, 0xE3, 0xFE, 0xF5, 0xC4, 0xCF, 0xD2, 0xD9, 0x7B, 0x70, 0x6D, 0x66, 0x57, 0x5C, 0x41, 0x4A, 0x23, 0x28, 0x35, 0x3E, 0x0F, 0x04, 0x19, 0x12, 0xCB, 0xC0, 0xDD, 0xD6, 0xE7, 0xEC, 0xF1, 0xFA, 0x93, 0x98, 0x85, 0x8E, 0xBF, 0xB4, 0xA9, 0xA2, 0xF6, 0xFD, 0xE0, 0xEB, 0xDA, 0xD1, 0xCC, 0xC7, 0xAE, 0xA5, 0xB8, 0xB3, 0x82, 0x89, 0x94, 0x9F, 0x46, 0x4D, 0x50, 0x5B, 0x6A, 0x61, 0x7C, 0x77, 0x1E, 0x15, 0x08, 0x03, 0x32, 0x39, 0x24, 0x2F, 0x8D, 0x86, 0x9B, 0x90, 0xA1, 0xAA, 0xB7, 0xBC, 0xD5, 0xDE, 0xC3, 0xC8, 0xF9, 0xF2, 0xEF, 0xE4, 0x3D, 0x36, 0x2B, 0x20, 0x11, 0x1A, 0x07, 0x0C, 0x65, 0x6E, 0x73, 0x78, 0x49, 0x42, 0x5F, 0x54, 0xF7, 0xFC, 0xE1, 0xEA, 0xDB, 0xD0, 0xCD, 0xC6, 0xAF, 0xA4, 0xB9, 0xB2, 0x83, 0x88, 0x95, 0x9E, 0x47, 0x4C, 0x51, 0x5A, 0x6B, 0x60, 0x7D, 0x76, 0x1F, 0x14, 0x09, 0x02, 0x33, 0x38, 0x25, 0x2E, 0x8C, 0x87, 0x9A, 0x91, 0xA0, 0xAB, 0xB6, 0xBD, 0xD4, 0xDF, 0xC2, 0xC9, 0xF8, 0xF3, 0xEE, 0xE5, 0x3C, 0x37, 0x2A, 0x21, 0x10, 0x1B, 0x06, 0x0D, 0x64, 0x6F, 0x72, 0x79, 0x48, 0x43, 0x5E, 0x55, 0x01, 0x0A, 0x17, 0x1C, 0x2D, 0x26, 0x3B, 0x30, 0x59, 0x52, 0x4F, 0x44, 0x75, 0x7E, 0x63, 0x68, 0xB1, 0xBA, 0xA7, 0xAC, 0x9D, 0x96, 0x8B, 0x80, 0xE9, 0xE2, 0xFF, 0xF4, 0xC5, 0xCE, 0xD3, 0xD8, 0x7A, 0x71, 0x6C, 0x67, 0x56, 0x5D, 0x40, 0x4B, 0x22, 0x29, 0x34, 0x3F, 0x0E, 0x05, 0x18, 0x13, 0xCA, 0xC1, 0xDC, 0xD7, 0xE6, 0xED, 0xF0, 0xFB, 0x92, 0x99, 0x84, 0x8F, 0xBE, 0xB5, 0xA8, 0xA3, ) _MULTIPLY_BY_13 = ( 0x00, 0x0D, 0x1A, 0x17, 0x34, 0x39, 0x2E, 0x23, 0x68, 0x65, 0x72, 0x7F, 0x5C, 0x51, 0x46, 0x4B, 0xD0, 0xDD, 0xCA, 0xC7, 0xE4, 0xE9, 0xFE, 0xF3, 0xB8, 0xB5, 0xA2, 0xAF, 0x8C, 0x81, 0x96, 0x9B, 0xBB, 0xB6, 0xA1, 0xAC, 0x8F, 0x82, 0x95, 0x98, 0xD3, 0xDE, 0xC9, 0xC4, 0xE7, 0xEA, 0xFD, 0xF0, 0x6B, 0x66, 0x71, 0x7C, 0x5F, 0x52, 0x45, 0x48, 0x03, 0x0E, 0x19, 0x14, 0x37, 0x3A, 0x2D, 0x20, 0x6D, 0x60, 0x77, 0x7A, 0x59, 0x54, 0x43, 0x4E, 0x05, 0x08, 0x1F, 0x12, 0x31, 0x3C, 0x2B, 0x26, 0xBD, 0xB0, 0xA7, 0xAA, 0x89, 0x84, 0x93, 0x9E, 0xD5, 0xD8, 0xCF, 0xC2, 0xE1, 0xEC, 0xFB, 0xF6, 0xD6, 0xDB, 0xCC, 0xC1, 0xE2, 0xEF, 0xF8, 0xF5, 0xBE, 0xB3, 0xA4, 0xA9, 0x8A, 0x87, 0x90, 0x9D, 0x06, 0x0B, 0x1C, 0x11, 0x32, 0x3F, 0x28, 0x25, 0x6E, 0x63, 0x74, 0x79, 0x5A, 0x57, 0x40, 0x4D, 0xDA, 0xD7, 0xC0, 0xCD, 0xEE, 0xE3, 0xF4, 0xF9, 0xB2, 0xBF, 0xA8, 0xA5, 0x86, 0x8B, 0x9C, 0x91, 0x0A, 0x07, 0x10, 0x1D, 0x3E, 0x33, 0x24, 0x29, 0x62, 0x6F, 0x78, 0x75, 0x56, 0x5B, 0x4C, 0x41, 0x61, 0x6C, 0x7B, 0x76, 0x55, 0x58, 0x4F, 0x42, 0x09, 0x04, 0x13, 0x1E, 0x3D, 0x30, 0x27, 0x2A, 0xB1, 0xBC, 0xAB, 0xA6, 0x85, 0x88, 0x9F, 0x92, 0xD9, 0xD4, 0xC3, 0xCE, 0xED, 0xE0, 0xF7, 0xFA, 0xB7, 0xBA, 0xAD, 0xA0, 0x83, 0x8E, 0x99, 0x94, 0xDF, 0xD2, 0xC5, 0xC8, 0xEB, 0xE6, 0xF1, 0xFC, 0x67, 0x6A, 0x7D, 0x70, 0x53, 0x5E, 0x49, 0x44, 0x0F, 0x02, 0x15, 0x18, 0x3B, 0x36, 0x21, 0x2C, 0x0C, 0x01, 0x16, 0x1B, 0x38, 0x35, 0x22, 0x2F, 0x64, 0x69, 0x7E, 0x73, 0x50, 0x5D, 0x4A, 0x47, 0xDC, 0xD1, 0xC6, 0xCB, 0xE8, 0xE5, 0xF2, 0xFF, 0xB4, 0xB9, 0xAE, 0xA3, 0x80, 0x8D, 0x9A, 0x97, ) _MULTIPLY_BY_14 = ( 0x00, 0x0E, 0x1C, 0x12, 0x38, 0x36, 0x24, 0x2A, 0x70, 0x7E, 0x6C, 0x62, 0x48, 0x46, 0x54, 0x5A, 0xE0, 0xEE, 0xFC, 0xF2, 0xD8, 0xD6, 0xC4, 0xCA, 0x90, 0x9E, 0x8C, 0x82, 0xA8, 0xA6, 0xB4, 0xBA, 0xDB, 0xD5, 0xC7, 0xC9, 0xE3, 0xED, 0xFF, 0xF1, 0xAB, 0xA5, 0xB7, 0xB9, 0x93, 0x9D, 0x8F, 0x81, 0x3B, 0x35, 0x27, 0x29, 0x03, 0x0D, 0x1F, 0x11, 0x4B, 0x45, 0x57, 0x59, 0x73, 0x7D, 0x6F, 0x61, 0xAD, 0xA3, 0xB1, 0xBF, 0x95, 0x9B, 0x89, 0x87, 0xDD, 0xD3, 0xC1, 0xCF, 0xE5, 0xEB, 0xF9, 0xF7, 0x4D, 0x43, 0x51, 0x5F, 0x75, 0x7B, 0x69, 0x67, 0x3D, 0x33, 0x21, 0x2F, 0x05, 0x0B, 0x19, 0x17, 0x76, 0x78, 0x6A, 0x64, 0x4E, 0x40, 0x52, 0x5C, 0x06, 0x08, 0x1A, 0x14, 0x3E, 0x30, 0x22, 0x2C, 0x96, 0x98, 0x8A, 0x84, 0xAE, 0xA0, 0xB2, 0xBC, 0xE6, 0xE8, 0xFA, 0xF4, 0xDE, 0xD0, 0xC2, 0xCC, 0x41, 0x4F, 0x5D, 0x53, 0x79, 0x77, 0x65, 0x6B, 0x31, 0x3F, 0x2D, 0x23, 0x09, 0x07, 0x15, 0x1B, 0xA1, 0xAF, 0xBD, 0xB3, 0x99, 0x97, 0x85, 0x8B, 0xD1, 0xDF, 0xCD, 0xC3, 0xE9, 0xE7, 0xF5, 0xFB, 0x9A, 0x94, 0x86, 0x88, 0xA2, 0xAC, 0xBE, 0xB0, 0xEA, 0xE4, 0xF6, 0xF8, 0xD2, 0xDC, 0xCE, 0xC0, 0x7A, 0x74, 0x66, 0x68, 0x42, 0x4C, 0x5E, 0x50, 0x0A, 0x04, 0x16, 0x18, 0x32, 0x3C, 0x2E, 0x20, 0xEC, 0xE2, 0xF0, 0xFE, 0xD4, 0xDA, 0xC8, 0xC6, 0x9C, 0x92, 0x80, 0x8E, 0xA4, 0xAA, 0xB8, 0xB6, 0x0C, 0x02, 0x10, 0x1E, 0x34, 0x3A, 0x28, 0x26, 0x7C, 0x72, 0x60, 0x6E, 0x44, 0x4A, 0x58, 0x56, 0x37, 0x39, 0x2B, 0x25, 0x0F, 0x01, 0x13, 0x1D, 0x47, 0x49, 0x5B, 0x55, 0x7F, 0x71, 0x63, 0x6D, 0xD7, 0xD9, 0xCB, 0xC5, 0xEF, 0xE1, 0xF3, 0xFD, 0xA7, 0xA9, 0xBB, 0xB5, 0x9F, 0x91, 0x83, 0x8D, ) MIX_COLUMNS_MATRIX = ( (_MULTIPLY_BY_2, _MULTIPLY_BY_3, _MULTIPLY_BY_1, _MULTIPLY_BY_1), (_MULTIPLY_BY_1, _MULTIPLY_BY_2, _MULTIPLY_BY_3, _MULTIPLY_BY_1), (_MULTIPLY_BY_1, _MULTIPLY_BY_1, _MULTIPLY_BY_2, _MULTIPLY_BY_3), (_MULTIPLY_BY_3, _MULTIPLY_BY_1, _MULTIPLY_BY_1, _MULTIPLY_BY_2), ) INV_MIX_COLUMNS_MATRIX = ( (_MULTIPLY_BY_14, _MULTIPLY_BY_11, _MULTIPLY_BY_13, _MULTIPLY_BY_9), (_MULTIPLY_BY_9, _MULTIPLY_BY_14, _MULTIPLY_BY_11, _MULTIPLY_BY_13), (_MULTIPLY_BY_13, _MULTIPLY_BY_9, _MULTIPLY_BY_14, _MULTIPLY_BY_11), (_MULTIPLY_BY_11, _MULTIPLY_BY_13, _MULTIPLY_BY_9, _MULTIPLY_BY_14), )
sbox = ((99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118), (202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192), (183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21), (4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117), (9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132), (83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207), (208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168), (81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210), (205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115), (96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219), (224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121), (231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8), (186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138), (112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158), (225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223), (140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22)) inv_sbox = ((82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251), (124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203), (84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78), (8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37), (114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146), (108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132), (144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6), (208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107), (58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115), (150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110), (71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27), (252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244), (31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95), (96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239), (160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97), (23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125)) rcon = ((1, 0, 0, 0), (2, 0, 0, 0), (4, 0, 0, 0), (8, 0, 0, 0), (16, 0, 0, 0), (32, 0, 0, 0), (64, 0, 0, 0), (128, 0, 0, 0), (27, 0, 0, 0), (54, 0, 0, 0)) _multiply_by_1 = tuple(range(256)) _multiply_by_2 = (0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 27, 25, 31, 29, 19, 17, 23, 21, 11, 9, 15, 13, 3, 1, 7, 5, 59, 57, 63, 61, 51, 49, 55, 53, 43, 41, 47, 45, 35, 33, 39, 37, 91, 89, 95, 93, 83, 81, 87, 85, 75, 73, 79, 77, 67, 65, 71, 69, 123, 121, 127, 125, 115, 113, 119, 117, 107, 105, 111, 109, 99, 97, 103, 101, 155, 153, 159, 157, 147, 145, 151, 149, 139, 137, 143, 141, 131, 129, 135, 133, 187, 185, 191, 189, 179, 177, 183, 181, 171, 169, 175, 173, 163, 161, 167, 165, 219, 217, 223, 221, 211, 209, 215, 213, 203, 201, 207, 205, 195, 193, 199, 197, 251, 249, 255, 253, 243, 241, 247, 245, 235, 233, 239, 237, 227, 225, 231, 229) _multiply_by_3 = (0, 3, 6, 5, 12, 15, 10, 9, 24, 27, 30, 29, 20, 23, 18, 17, 48, 51, 54, 53, 60, 63, 58, 57, 40, 43, 46, 45, 36, 39, 34, 33, 96, 99, 102, 101, 108, 111, 106, 105, 120, 123, 126, 125, 116, 119, 114, 113, 80, 83, 86, 85, 92, 95, 90, 89, 72, 75, 78, 77, 68, 71, 66, 65, 192, 195, 198, 197, 204, 207, 202, 201, 216, 219, 222, 221, 212, 215, 210, 209, 240, 243, 246, 245, 252, 255, 250, 249, 232, 235, 238, 237, 228, 231, 226, 225, 160, 163, 166, 165, 172, 175, 170, 169, 184, 187, 190, 189, 180, 183, 178, 177, 144, 147, 150, 149, 156, 159, 154, 153, 136, 139, 142, 141, 132, 135, 130, 129, 155, 152, 157, 158, 151, 148, 145, 146, 131, 128, 133, 134, 143, 140, 137, 138, 171, 168, 173, 174, 167, 164, 161, 162, 179, 176, 181, 182, 191, 188, 185, 186, 251, 248, 253, 254, 247, 244, 241, 242, 227, 224, 229, 230, 239, 236, 233, 234, 203, 200, 205, 206, 199, 196, 193, 194, 211, 208, 213, 214, 223, 220, 217, 218, 91, 88, 93, 94, 87, 84, 81, 82, 67, 64, 69, 70, 79, 76, 73, 74, 107, 104, 109, 110, 103, 100, 97, 98, 115, 112, 117, 118, 127, 124, 121, 122, 59, 56, 61, 62, 55, 52, 49, 50, 35, 32, 37, 38, 47, 44, 41, 42, 11, 8, 13, 14, 7, 4, 1, 2, 19, 16, 21, 22, 31, 28, 25, 26) _multiply_by_9 = (0, 9, 18, 27, 36, 45, 54, 63, 72, 65, 90, 83, 108, 101, 126, 119, 144, 153, 130, 139, 180, 189, 166, 175, 216, 209, 202, 195, 252, 245, 238, 231, 59, 50, 41, 32, 31, 22, 13, 4, 115, 122, 97, 104, 87, 94, 69, 76, 171, 162, 185, 176, 143, 134, 157, 148, 227, 234, 241, 248, 199, 206, 213, 220, 118, 127, 100, 109, 82, 91, 64, 73, 62, 55, 44, 37, 26, 19, 8, 1, 230, 239, 244, 253, 194, 203, 208, 217, 174, 167, 188, 181, 138, 131, 152, 145, 77, 68, 95, 86, 105, 96, 123, 114, 5, 12, 23, 30, 33, 40, 51, 58, 221, 212, 207, 198, 249, 240, 235, 226, 149, 156, 135, 142, 177, 184, 163, 170, 236, 229, 254, 247, 200, 193, 218, 211, 164, 173, 182, 191, 128, 137, 146, 155, 124, 117, 110, 103, 88, 81, 74, 67, 52, 61, 38, 47, 16, 25, 2, 11, 215, 222, 197, 204, 243, 250, 225, 232, 159, 150, 141, 132, 187, 178, 169, 160, 71, 78, 85, 92, 99, 106, 113, 120, 15, 6, 29, 20, 43, 34, 57, 48, 154, 147, 136, 129, 190, 183, 172, 165, 210, 219, 192, 201, 246, 255, 228, 237, 10, 3, 24, 17, 46, 39, 60, 53, 66, 75, 80, 89, 102, 111, 116, 125, 161, 168, 179, 186, 133, 140, 151, 158, 233, 224, 251, 242, 205, 196, 223, 214, 49, 56, 35, 42, 21, 28, 7, 14, 121, 112, 107, 98, 93, 84, 79, 70) _multiply_by_11 = (0, 11, 22, 29, 44, 39, 58, 49, 88, 83, 78, 69, 116, 127, 98, 105, 176, 187, 166, 173, 156, 151, 138, 129, 232, 227, 254, 245, 196, 207, 210, 217, 123, 112, 109, 102, 87, 92, 65, 74, 35, 40, 53, 62, 15, 4, 25, 18, 203, 192, 221, 214, 231, 236, 241, 250, 147, 152, 133, 142, 191, 180, 169, 162, 246, 253, 224, 235, 218, 209, 204, 199, 174, 165, 184, 179, 130, 137, 148, 159, 70, 77, 80, 91, 106, 97, 124, 119, 30, 21, 8, 3, 50, 57, 36, 47, 141, 134, 155, 144, 161, 170, 183, 188, 213, 222, 195, 200, 249, 242, 239, 228, 61, 54, 43, 32, 17, 26, 7, 12, 101, 110, 115, 120, 73, 66, 95, 84, 247, 252, 225, 234, 219, 208, 205, 198, 175, 164, 185, 178, 131, 136, 149, 158, 71, 76, 81, 90, 107, 96, 125, 118, 31, 20, 9, 2, 51, 56, 37, 46, 140, 135, 154, 145, 160, 171, 182, 189, 212, 223, 194, 201, 248, 243, 238, 229, 60, 55, 42, 33, 16, 27, 6, 13, 100, 111, 114, 121, 72, 67, 94, 85, 1, 10, 23, 28, 45, 38, 59, 48, 89, 82, 79, 68, 117, 126, 99, 104, 177, 186, 167, 172, 157, 150, 139, 128, 233, 226, 255, 244, 197, 206, 211, 216, 122, 113, 108, 103, 86, 93, 64, 75, 34, 41, 52, 63, 14, 5, 24, 19, 202, 193, 220, 215, 230, 237, 240, 251, 146, 153, 132, 143, 190, 181, 168, 163) _multiply_by_13 = (0, 13, 26, 23, 52, 57, 46, 35, 104, 101, 114, 127, 92, 81, 70, 75, 208, 221, 202, 199, 228, 233, 254, 243, 184, 181, 162, 175, 140, 129, 150, 155, 187, 182, 161, 172, 143, 130, 149, 152, 211, 222, 201, 196, 231, 234, 253, 240, 107, 102, 113, 124, 95, 82, 69, 72, 3, 14, 25, 20, 55, 58, 45, 32, 109, 96, 119, 122, 89, 84, 67, 78, 5, 8, 31, 18, 49, 60, 43, 38, 189, 176, 167, 170, 137, 132, 147, 158, 213, 216, 207, 194, 225, 236, 251, 246, 214, 219, 204, 193, 226, 239, 248, 245, 190, 179, 164, 169, 138, 135, 144, 157, 6, 11, 28, 17, 50, 63, 40, 37, 110, 99, 116, 121, 90, 87, 64, 77, 218, 215, 192, 205, 238, 227, 244, 249, 178, 191, 168, 165, 134, 139, 156, 145, 10, 7, 16, 29, 62, 51, 36, 41, 98, 111, 120, 117, 86, 91, 76, 65, 97, 108, 123, 118, 85, 88, 79, 66, 9, 4, 19, 30, 61, 48, 39, 42, 177, 188, 171, 166, 133, 136, 159, 146, 217, 212, 195, 206, 237, 224, 247, 250, 183, 186, 173, 160, 131, 142, 153, 148, 223, 210, 197, 200, 235, 230, 241, 252, 103, 106, 125, 112, 83, 94, 73, 68, 15, 2, 21, 24, 59, 54, 33, 44, 12, 1, 22, 27, 56, 53, 34, 47, 100, 105, 126, 115, 80, 93, 74, 71, 220, 209, 198, 203, 232, 229, 242, 255, 180, 185, 174, 163, 128, 141, 154, 151) _multiply_by_14 = (0, 14, 28, 18, 56, 54, 36, 42, 112, 126, 108, 98, 72, 70, 84, 90, 224, 238, 252, 242, 216, 214, 196, 202, 144, 158, 140, 130, 168, 166, 180, 186, 219, 213, 199, 201, 227, 237, 255, 241, 171, 165, 183, 185, 147, 157, 143, 129, 59, 53, 39, 41, 3, 13, 31, 17, 75, 69, 87, 89, 115, 125, 111, 97, 173, 163, 177, 191, 149, 155, 137, 135, 221, 211, 193, 207, 229, 235, 249, 247, 77, 67, 81, 95, 117, 123, 105, 103, 61, 51, 33, 47, 5, 11, 25, 23, 118, 120, 106, 100, 78, 64, 82, 92, 6, 8, 26, 20, 62, 48, 34, 44, 150, 152, 138, 132, 174, 160, 178, 188, 230, 232, 250, 244, 222, 208, 194, 204, 65, 79, 93, 83, 121, 119, 101, 107, 49, 63, 45, 35, 9, 7, 21, 27, 161, 175, 189, 179, 153, 151, 133, 139, 209, 223, 205, 195, 233, 231, 245, 251, 154, 148, 134, 136, 162, 172, 190, 176, 234, 228, 246, 248, 210, 220, 206, 192, 122, 116, 102, 104, 66, 76, 94, 80, 10, 4, 22, 24, 50, 60, 46, 32, 236, 226, 240, 254, 212, 218, 200, 198, 156, 146, 128, 142, 164, 170, 184, 182, 12, 2, 16, 30, 52, 58, 40, 38, 124, 114, 96, 110, 68, 74, 88, 86, 55, 57, 43, 37, 15, 1, 19, 29, 71, 73, 91, 85, 127, 113, 99, 109, 215, 217, 203, 197, 239, 225, 243, 253, 167, 169, 187, 181, 159, 145, 131, 141) mix_columns_matrix = ((_MULTIPLY_BY_2, _MULTIPLY_BY_3, _MULTIPLY_BY_1, _MULTIPLY_BY_1), (_MULTIPLY_BY_1, _MULTIPLY_BY_2, _MULTIPLY_BY_3, _MULTIPLY_BY_1), (_MULTIPLY_BY_1, _MULTIPLY_BY_1, _MULTIPLY_BY_2, _MULTIPLY_BY_3), (_MULTIPLY_BY_3, _MULTIPLY_BY_1, _MULTIPLY_BY_1, _MULTIPLY_BY_2)) inv_mix_columns_matrix = ((_MULTIPLY_BY_14, _MULTIPLY_BY_11, _MULTIPLY_BY_13, _MULTIPLY_BY_9), (_MULTIPLY_BY_9, _MULTIPLY_BY_14, _MULTIPLY_BY_11, _MULTIPLY_BY_13), (_MULTIPLY_BY_13, _MULTIPLY_BY_9, _MULTIPLY_BY_14, _MULTIPLY_BY_11), (_MULTIPLY_BY_11, _MULTIPLY_BY_13, _MULTIPLY_BY_9, _MULTIPLY_BY_14))
poem = '''There was a young lady named Bright, Whose speed was far faster than light; She started one day In a relative way, And returned on the previous night.''' print(poem) try: fout = open('relativety', 'xt') fout.write(poem) fout.close() except FileExistsError: print('relativety already exists! That was a close one.')
poem = 'There was a young lady named Bright,\nWhose speed was far faster than light;\nShe started one day In a relative way, And\nreturned on the previous night.' print(poem) try: fout = open('relativety', 'xt') fout.write(poem) fout.close() except FileExistsError: print('relativety already exists! That was a close one.')
try: with open("input.txt", "r") as fileContent: timers = [int(number) for number in fileContent.readline().split(",")] frequencies = [0] * 9 for timer in timers: frequencies[timer] = timers.count(timer) except FileNotFoundError: print("[!] The input file was not found. The program will not continue.") exit(-1) for _ in range(256): newborns, initialSixes = frequencies[-1], frequencies[6] for index in range(len(frequencies)): if index == 0 and frequencies[index] > 0: frequencies[-1] += frequencies[index] frequencies[6] += frequencies[index] frequencies[index] -= frequencies[index] if index < 8: if frequencies[6] != initialSixes and index == 5: frequencies[index] += initialSixes frequencies[index + 1] -= initialSixes elif frequencies[-1] != newborns and index == 7: frequencies[index] += newborns frequencies[index + 1] -= newborns else: frequencies[index] += frequencies[index + 1] frequencies[index + 1] -= frequencies[index + 1] print(sum(frequencies))
try: with open('input.txt', 'r') as file_content: timers = [int(number) for number in fileContent.readline().split(',')] frequencies = [0] * 9 for timer in timers: frequencies[timer] = timers.count(timer) except FileNotFoundError: print('[!] The input file was not found. The program will not continue.') exit(-1) for _ in range(256): (newborns, initial_sixes) = (frequencies[-1], frequencies[6]) for index in range(len(frequencies)): if index == 0 and frequencies[index] > 0: frequencies[-1] += frequencies[index] frequencies[6] += frequencies[index] frequencies[index] -= frequencies[index] if index < 8: if frequencies[6] != initialSixes and index == 5: frequencies[index] += initialSixes frequencies[index + 1] -= initialSixes elif frequencies[-1] != newborns and index == 7: frequencies[index] += newborns frequencies[index + 1] -= newborns else: frequencies[index] += frequencies[index + 1] frequencies[index + 1] -= frequencies[index + 1] print(sum(frequencies))
ADMINS = ( ('Admin', 'admin@tvoy_style.com'), ) EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' DEFAULT_FROM_EMAIL = 'dezigner20@gmail.com' EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'dezigner20@gmail.com' EMAIL_HOST_PASSWORD = 'SSDD24869317SSDD**' SERVER_EMAIL = DEFAULT_FROM_EMAIL EMAIL_PORT = 587
admins = (('Admin', 'admin@tvoy_style.com'),) email_backend = 'django.core.mail.backends.smtp.EmailBackend' default_from_email = 'dezigner20@gmail.com' email_use_tls = True email_host = 'smtp.gmail.com' email_host_user = 'dezigner20@gmail.com' email_host_password = 'SSDD24869317SSDD**' server_email = DEFAULT_FROM_EMAIL email_port = 587
class Solution: # @param {integer[]} nums # @return {integer[]} def productExceptSelf(self, nums): before = [] after = [] product = 1 for num in nums: before.append(product) product = product * num product = 1 for num in reversed(nums): after.append(product) product = product * num after = after[::-1] result = [] for i in range(len(nums)): result.append(before[i] * after[i]) return result
class Solution: def product_except_self(self, nums): before = [] after = [] product = 1 for num in nums: before.append(product) product = product * num product = 1 for num in reversed(nums): after.append(product) product = product * num after = after[::-1] result = [] for i in range(len(nums)): result.append(before[i] * after[i]) return result
def f(a): global n if n == 0 and a == 0: return True if n == a%10: return True if n == a//10: return True H1,M1=list(map(int,input().split())) H2,M2=list(map(int,input().split())) n=int(input()) S=0 while H1 != H2 or M1 != M2: if f(H1) or f(M1): S+=1 if M1 + 1 == 60: M1=0 H1+=1 else: M1+=1 if f(H2) or f(M2): S+=1 print(S)
def f(a): global n if n == 0 and a == 0: return True if n == a % 10: return True if n == a // 10: return True (h1, m1) = list(map(int, input().split())) (h2, m2) = list(map(int, input().split())) n = int(input()) s = 0 while H1 != H2 or M1 != M2: if f(H1) or f(M1): s += 1 if M1 + 1 == 60: m1 = 0 h1 += 1 else: m1 += 1 if f(H2) or f(M2): s += 1 print(S)
LOCATION_REPLACE = { 'USA': 'United States', 'KSA': 'Kingdom of Saudi Arabia', 'CA': 'Canada', }
location_replace = {'USA': 'United States', 'KSA': 'Kingdom of Saudi Arabia', 'CA': 'Canada'}
def count(index): print(index) if index < 2: count(index + 1) count(0)
def count(index): print(index) if index < 2: count(index + 1) count(0)
def main(): def square(n): return n * n if __name__ == '__main__': main()
def main(): def square(n): return n * n if __name__ == '__main__': main()
class Response: def __init__(self, content, private=False, file=False): self.content = content self.private = private self.file = file
class Response: def __init__(self, content, private=False, file=False): self.content = content self.private = private self.file = file
def knapsackLight(value1, weight1, value2, weight2, maxW): if weight1 + weight2 <= maxW: return value1 + value2 if weight1 <= maxW and (weight2 > maxW or value1 >= value2): return value1 if weight2 <= maxW and (weight1 > maxW or value2 >= value1): return value2 return 0
def knapsack_light(value1, weight1, value2, weight2, maxW): if weight1 + weight2 <= maxW: return value1 + value2 if weight1 <= maxW and (weight2 > maxW or value1 >= value2): return value1 if weight2 <= maxW and (weight1 > maxW or value2 >= value1): return value2 return 0
# # PySNMP MIB module A3COM0074-SMA-VLAN-SUPPORT (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM0074-SMA-VLAN-SUPPORT # Produced by pysmi-0.3.4 at Wed May 1 11:09:00 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) # smaVlanSupport, = mibBuilder.importSymbols("A3COM0004-GENERIC", "smaVlanSupport") OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection") a3ComVlanIfIndex, = mibBuilder.importSymbols("GENERIC-3COM-VLAN-MIB-1-0-7", "a3ComVlanIfIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, Counter32, Integer32, ObjectIdentity, Counter64, IpAddress, MibIdentifier, iso, ModuleIdentity, Unsigned32, Gauge32, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Counter32", "Integer32", "ObjectIdentity", "Counter64", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity", "Unsigned32", "Gauge32", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") a3ComVlanPrivateIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 10, 35, 1), ) if mibBuilder.loadTexts: a3ComVlanPrivateIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanPrivateIfTable.setDescription('Private VLAN information table for internal agent operations.') a3ComVlanPrivateIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1), ).setIndexNames((0, "GENERIC-3COM-VLAN-MIB-1-0-7", "a3ComVlanIfIndex")) if mibBuilder.loadTexts: a3ComVlanPrivateIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanPrivateIfEntry.setDescription('An individual VLAN interface entry. When an NMS wishes to create a new entry in this table, it must obtain a non-zero index from the a3ComNextAvailableVirtIfIndex object. Row creation in this table will fail if the chosen index value does not match the current value returned from the a3ComNextAvailableVirtIfIndex object.') a3ComVlanCreateType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("automatic", 1), ("dynamic", 2), ("manual", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComVlanCreateType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanCreateType.setDescription('The reason this Vlan has been created. The possible values are: automatic (1) - This VLAN was created on this unit due to replication across a stack of units. dynamic (2) - VLAN created internally by some automatic mechanism, for example GVRP. manual (3) - VLAN created by some external management application. NOTE - This MIB object may only be set by the agent. It is illegal and serves no purpose for this object to be set for some other application.') a3ComVlanMembers = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComVlanMembers.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanMembers.setDescription('Total number of members of this VLAN across the entire stack. If the value of this MIB object is zero then the VLAN is not currently in use on any device in the stack.') mibBuilder.exportSymbols("A3COM0074-SMA-VLAN-SUPPORT", a3ComVlanPrivateIfEntry=a3ComVlanPrivateIfEntry, a3ComVlanCreateType=a3ComVlanCreateType, a3ComVlanMembers=a3ComVlanMembers, a3ComVlanPrivateIfTable=a3ComVlanPrivateIfTable)
(sma_vlan_support,) = mibBuilder.importSymbols('A3COM0004-GENERIC', 'smaVlanSupport') (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (a3_com_vlan_if_index,) = mibBuilder.importSymbols('GENERIC-3COM-VLAN-MIB-1-0-7', 'a3ComVlanIfIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (notification_type, counter32, integer32, object_identity, counter64, ip_address, mib_identifier, iso, module_identity, unsigned32, gauge32, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Counter32', 'Integer32', 'ObjectIdentity', 'Counter64', 'IpAddress', 'MibIdentifier', 'iso', 'ModuleIdentity', 'Unsigned32', 'Gauge32', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') a3_com_vlan_private_if_table = mib_table((1, 3, 6, 1, 4, 1, 43, 10, 35, 1)) if mibBuilder.loadTexts: a3ComVlanPrivateIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanPrivateIfTable.setDescription('Private VLAN information table for internal agent operations.') a3_com_vlan_private_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1)).setIndexNames((0, 'GENERIC-3COM-VLAN-MIB-1-0-7', 'a3ComVlanIfIndex')) if mibBuilder.loadTexts: a3ComVlanPrivateIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanPrivateIfEntry.setDescription('An individual VLAN interface entry. When an NMS wishes to create a new entry in this table, it must obtain a non-zero index from the a3ComNextAvailableVirtIfIndex object. Row creation in this table will fail if the chosen index value does not match the current value returned from the a3ComNextAvailableVirtIfIndex object.') a3_com_vlan_create_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('automatic', 1), ('dynamic', 2), ('manual', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComVlanCreateType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanCreateType.setDescription('The reason this Vlan has been created. The possible values are: automatic (1) - This VLAN was created on this unit due to replication across a stack of units. dynamic (2) - VLAN created internally by some automatic mechanism, for example GVRP. manual (3) - VLAN created by some external management application. NOTE - This MIB object may only be set by the agent. It is illegal and serves no purpose for this object to be set for some other application.') a3_com_vlan_members = mib_table_column((1, 3, 6, 1, 4, 1, 43, 10, 35, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComVlanMembers.setStatus('mandatory') if mibBuilder.loadTexts: a3ComVlanMembers.setDescription('Total number of members of this VLAN across the entire stack. If the value of this MIB object is zero then the VLAN is not currently in use on any device in the stack.') mibBuilder.exportSymbols('A3COM0074-SMA-VLAN-SUPPORT', a3ComVlanPrivateIfEntry=a3ComVlanPrivateIfEntry, a3ComVlanCreateType=a3ComVlanCreateType, a3ComVlanMembers=a3ComVlanMembers, a3ComVlanPrivateIfTable=a3ComVlanPrivateIfTable)
def countConstruct(target, word_bank, memo = None): ''' input: target- String word_bank- array of Strings output: number of ways that the target can be constructed by concatenating elements fo the word_bank array. ''' if memo is None: memo = {} if target in memo: return memo[target] if target == '': return 1 totalCount = 0 for word in word_bank: if target.startswith(word): suffix = target[len(word):] numWaysForRest = countConstruct(suffix, word_bank, memo) totalCount += numWaysForRest memo[target] = totalCount return totalCount print(countConstruct("abcdef", ["ab","abc","cd","def","abcd"])) print(countConstruct("purple",["purp","p","ur","le","purpl"])) print(countConstruct("skateboard", ["bo","rd","ate","t","ska","sk","boar"])) print(countConstruct("enterapotentpot",["a","p","ent","enter","ot","o","t"])) print(countConstruct("eeeeeeeeeeeeeeeeeeeeeeeeeef",[ "e", "ee", "eee", "eeee", "eeeee", "eeeeee"]))
def count_construct(target, word_bank, memo=None): """ input: target- String word_bank- array of Strings output: number of ways that the target can be constructed by concatenating elements fo the word_bank array. """ if memo is None: memo = {} if target in memo: return memo[target] if target == '': return 1 total_count = 0 for word in word_bank: if target.startswith(word): suffix = target[len(word):] num_ways_for_rest = count_construct(suffix, word_bank, memo) total_count += numWaysForRest memo[target] = totalCount return totalCount print(count_construct('abcdef', ['ab', 'abc', 'cd', 'def', 'abcd'])) print(count_construct('purple', ['purp', 'p', 'ur', 'le', 'purpl'])) print(count_construct('skateboard', ['bo', 'rd', 'ate', 't', 'ska', 'sk', 'boar'])) print(count_construct('enterapotentpot', ['a', 'p', 'ent', 'enter', 'ot', 'o', 't'])) print(count_construct('eeeeeeeeeeeeeeeeeeeeeeeeeef', ['e', 'ee', 'eee', 'eeee', 'eeeee', 'eeeeee']))
# scenario of runs for MC covering 2012 with three eras, as proposed by ECAL/H2g for 2013 re-digi campaign # for reference see: https://indico.cern.ch/conferenceDisplay.py?confId=243497 runProbabilityDistribution=[(194533,5.3),(200519,7.0),(206859,7.3)]
run_probability_distribution = [(194533, 5.3), (200519, 7.0), (206859, 7.3)]
def sortStack(stack): if len(stack) == 0: return stack top = stack.pop() sortStack(stack) insertInSortedOrder(stack, top) return stack def insertInSortedOrder(stack, value): if len(stack) == 0 or stack[-1] <= value: stack.append(value) return top = stack.pop() insertInSortedOrder(stack, top) stack.append(top)
def sort_stack(stack): if len(stack) == 0: return stack top = stack.pop() sort_stack(stack) insert_in_sorted_order(stack, top) return stack def insert_in_sorted_order(stack, value): if len(stack) == 0 or stack[-1] <= value: stack.append(value) return top = stack.pop() insert_in_sorted_order(stack, top) stack.append(top)
def safe_strftime(d, format_str='%Y-%m-%d %H:%M:%S') -> str: try: return d.strftime(format_str) except Exception: return ''
def safe_strftime(d, format_str='%Y-%m-%d %H:%M:%S') -> str: try: return d.strftime(format_str) except Exception: return ''
# WebSite Name WebSiteName = 'Articles Journal' ###################################################################################### # Pages __HOST = 'http://127.0.0.1:8000' ############# # Register SignUP = __HOST + '/Register/SignUP' SignUP_Template = 'Register/SignUP.html' Login = __HOST + '/Register/Login' Login_Template = 'Register/Login.html' ############# # Articles Articles = __HOST Articles_Template = 'Articles/Articles.html' MakeArticle = __HOST + '/Articles/MakeArticle' MakeArticle_Template = 'Articles/MakeArticle.html' EditArticle = __HOST + '/Articles/EditArticle/' EditArticle_Template = 'Articles/EditArticle.html' MakeOrEditSuccess_Template = 'Articles/MakeOrEditSuccess.HTML' Article = __HOST + '/Articles/Article/' Article_Template = 'Articles/Article.html' ############# # Profile Settings = __HOST + '/Profile/Settings' Settings_Template = 'Profile/Settings/Settings.html' Settings_Name_Template = 'Profile/Settings/Name.html' Settings_Password_Template = 'Profile/Settings/Password.html' Settings_Picture_Template = 'Profile/Settings/Picture.html' Settings_DeActivate_Template = 'Profile/Settings/DeActivate.html' MyProfile = __HOST + '/Profile/MyProfile' MyProfile_Template = 'Profile/MyProfile.HTML' User = __HOST + '/Profile/User/' User_Template = 'Profile/User.HTML' Notifications = __HOST + '/Profile/MyNotifications' Notifications_Template = 'Profile/MyNotifications.HTML' ############# # Services Help = __HOST + '/Services/Help' Help_Template = 'Services/Help.html' Policy = __HOST + '/Services/Policy' Policy_Template = 'Services/Policy.html' ###################################################################################### # Status Pages __StatusPages = 'StatusPages/' UnAuthurithedUserPage = __StatusPages + 'UnAuthurithedUserPage.HTML' ErrorPage = __StatusPages + 'ErrorPage.HTML' LogOutPage = __StatusPages + 'LogOutPage.HTML' NotFoundPage = __StatusPages + '404.HTML' ###################################################################################### # Messages MessageBox = 'MessageBoxs/MessageBox.html' ###################################################################################### # Picture Folder __Pictures = 'Pictures/' # Main Pictures LOGO = __Pictures + 'LOGO.JPG' OnlineUser = __Pictures + 'OnlineUser.PNG' OfflineUser = __Pictures + 'OfflineUser.PNG' AddPicture = __Pictures + 'AddPicture.PNG' NoNotification = __Pictures + 'NoNotification.PNG' Notification = __Pictures + 'Notification.PNG' Send = __Pictures + 'Send.PNG' DropDown = __Pictures + 'DropDown.PNG' ###################################################################################### # Length # Sign UP Name_Len = 40 Email_Len = 100 Password_Len = 40 Picture_Len = 40 # Make Article Article_Len = 2000 ArticleTitle_Len = 50 ArticleTags_Len = 100 # Articles id_Len = 15 # Settings Picture_Byte_Len = 2097152 # Article Comment_Len = 500 # Notifications NotificationsType_Len = 1 NotificationsMessage_Len = 300 ###################################################################################### # Layouts Base = 'Base.html' ###################################################################################### # JavaScript Folder __JavaScript = 'JavaScript/' ################# # important functions __MainScripts = __JavaScript + 'MainScripts/' JQueryScript = __MainScripts + 'jquery-3.3.1.js' BootStrapScript = __MainScripts + 'BootStrap.js' MiniBootStrapScript = __MainScripts + 'MiniBootStrap.js' DropBoxScript = __MainScripts + 'BodyLoadScript.js' JQueryRotateScript = __MainScripts + 'JQueryRotate.js' #################### # Global Functions __Global_Scripts = __JavaScript + 'GlobalFunctions/' CheckLenScript = __Global_Scripts + 'CheckLen.js' CheckinputLenScript = __Global_Scripts + 'CheckinputLen.js' CheckPasswordScript = __Global_Scripts + 'CheckPassword.js' CheckPatternScript = __Global_Scripts + 'CheckPattern.js' TrigerMessageScript = __Global_Scripts + 'TriggerMessage.js' ErrorFunctionScript = __Global_Scripts + 'SetError_Function.js' AddPictureScript = __Global_Scripts + 'AddPicture.js' TrigerFormScript = __Global_Scripts + 'TriggerForm.js' CheckNameScript = __Global_Scripts + 'CheckName.js' ################### # Pages Scripts PagesScripts = __JavaScript + 'PagesScripts/' ###################################################################################### # CSS Folder __CSS = 'CSS/' # Main CSS Folders __MainCSS = __CSS + 'MainCSS/' AllPagesCSS = __MainCSS + 'AllPagesCSS.CSS' # Boot Strap BootStrapCSS = __MainCSS + 'BootStrap/bootstrap.css' MiniBootStrapCSS = __MainCSS + 'BootStrap/bootstrap.min.css' ################### # Pages CSS PagesCSS = __CSS + 'PagesCSS/' ###################################################################################### # BackEnd Pages __BackEnd = __HOST + '/BackEnd/' CheckName = __BackEnd + 'CheckName' CheckEmail = __BackEnd + 'CheckEmail' LogOut = __BackEnd + 'LogOut' GetPosts = __BackEnd + 'GetPosts' MakeCommentPage = __BackEnd + 'MakeComment' LikeDisLikePostPage = __BackEnd + 'LikeDisLikePost' DeletePostPage = __BackEnd + 'DeletePost' GetNotificationsPage = __BackEnd + 'GetNotifications' ###################################################################################### # Small Headers __Headers = 'Headers/' ################## __BasicHeaders = __Headers + 'BasicHeaders/' NavBar = __BasicHeaders + 'NavBar.html' UserLogged = __BasicHeaders + 'UserLogged.html' UserNotLogged = __BasicHeaders + 'UserNotLogged.html' Notifications_Header = __BasicHeaders + 'Notifications_Header.HTML' Header = __Headers + 'Header.html' def GetLinks(String): Links = [] while True: Start = String.find('[') if Start == -1: return String = String[Start:] End = String.find(']') if End == -1: return Text = String[:End+1] String = String[End+1:] for i in range(len(String)): if String[i] != ' ': if String[i] != '(': return else: String = String[i:] break Start = String.find('(') if Start == -1: return String = String[Start:] End = String.find(')') if End == -1: return Link = String[:End+1] String = String[End+1:] Links.append([Text, Link]) Test = 'My Link is ss[Hady] (http://findhouse.com) . i (Am) [Here] (Because ) Of You' Test2 = '[My Link is (HAHAHA)(] ( )' Test3 = '' GetLinks(Test3)
web_site_name = 'Articles Journal' __host = 'http://127.0.0.1:8000' sign_up = __HOST + '/Register/SignUP' sign_up__template = 'Register/SignUP.html' login = __HOST + '/Register/Login' login__template = 'Register/Login.html' articles = __HOST articles__template = 'Articles/Articles.html' make_article = __HOST + '/Articles/MakeArticle' make_article__template = 'Articles/MakeArticle.html' edit_article = __HOST + '/Articles/EditArticle/' edit_article__template = 'Articles/EditArticle.html' make_or_edit_success__template = 'Articles/MakeOrEditSuccess.HTML' article = __HOST + '/Articles/Article/' article__template = 'Articles/Article.html' settings = __HOST + '/Profile/Settings' settings__template = 'Profile/Settings/Settings.html' settings__name__template = 'Profile/Settings/Name.html' settings__password__template = 'Profile/Settings/Password.html' settings__picture__template = 'Profile/Settings/Picture.html' settings__de_activate__template = 'Profile/Settings/DeActivate.html' my_profile = __HOST + '/Profile/MyProfile' my_profile__template = 'Profile/MyProfile.HTML' user = __HOST + '/Profile/User/' user__template = 'Profile/User.HTML' notifications = __HOST + '/Profile/MyNotifications' notifications__template = 'Profile/MyNotifications.HTML' help = __HOST + '/Services/Help' help__template = 'Services/Help.html' policy = __HOST + '/Services/Policy' policy__template = 'Services/Policy.html' ___status_pages = 'StatusPages/' un_authurithed_user_page = __StatusPages + 'UnAuthurithedUserPage.HTML' error_page = __StatusPages + 'ErrorPage.HTML' log_out_page = __StatusPages + 'LogOutPage.HTML' not_found_page = __StatusPages + '404.HTML' message_box = 'MessageBoxs/MessageBox.html' ___pictures = 'Pictures/' logo = __Pictures + 'LOGO.JPG' online_user = __Pictures + 'OnlineUser.PNG' offline_user = __Pictures + 'OfflineUser.PNG' add_picture = __Pictures + 'AddPicture.PNG' no_notification = __Pictures + 'NoNotification.PNG' notification = __Pictures + 'Notification.PNG' send = __Pictures + 'Send.PNG' drop_down = __Pictures + 'DropDown.PNG' name__len = 40 email__len = 100 password__len = 40 picture__len = 40 article__len = 2000 article_title__len = 50 article_tags__len = 100 id__len = 15 picture__byte__len = 2097152 comment__len = 500 notifications_type__len = 1 notifications_message__len = 300 base = 'Base.html' ___java_script = 'JavaScript/' ___main_scripts = __JavaScript + 'MainScripts/' j_query_script = __MainScripts + 'jquery-3.3.1.js' boot_strap_script = __MainScripts + 'BootStrap.js' mini_boot_strap_script = __MainScripts + 'MiniBootStrap.js' drop_box_script = __MainScripts + 'BodyLoadScript.js' j_query_rotate_script = __MainScripts + 'JQueryRotate.js' ___global__scripts = __JavaScript + 'GlobalFunctions/' check_len_script = __Global_Scripts + 'CheckLen.js' checkinput_len_script = __Global_Scripts + 'CheckinputLen.js' check_password_script = __Global_Scripts + 'CheckPassword.js' check_pattern_script = __Global_Scripts + 'CheckPattern.js' triger_message_script = __Global_Scripts + 'TriggerMessage.js' error_function_script = __Global_Scripts + 'SetError_Function.js' add_picture_script = __Global_Scripts + 'AddPicture.js' triger_form_script = __Global_Scripts + 'TriggerForm.js' check_name_script = __Global_Scripts + 'CheckName.js' pages_scripts = __JavaScript + 'PagesScripts/' __css = 'CSS/' ___main_css = __CSS + 'MainCSS/' all_pages_css = __MainCSS + 'AllPagesCSS.CSS' boot_strap_css = __MainCSS + 'BootStrap/bootstrap.css' mini_boot_strap_css = __MainCSS + 'BootStrap/bootstrap.min.css' pages_css = __CSS + 'PagesCSS/' ___back_end = __HOST + '/BackEnd/' check_name = __BackEnd + 'CheckName' check_email = __BackEnd + 'CheckEmail' log_out = __BackEnd + 'LogOut' get_posts = __BackEnd + 'GetPosts' make_comment_page = __BackEnd + 'MakeComment' like_dis_like_post_page = __BackEnd + 'LikeDisLikePost' delete_post_page = __BackEnd + 'DeletePost' get_notifications_page = __BackEnd + 'GetNotifications' ___headers = 'Headers/' ___basic_headers = __Headers + 'BasicHeaders/' nav_bar = __BasicHeaders + 'NavBar.html' user_logged = __BasicHeaders + 'UserLogged.html' user_not_logged = __BasicHeaders + 'UserNotLogged.html' notifications__header = __BasicHeaders + 'Notifications_Header.HTML' header = __Headers + 'Header.html' def get_links(String): links = [] while True: start = String.find('[') if Start == -1: return string = String[Start:] end = String.find(']') if End == -1: return text = String[:End + 1] string = String[End + 1:] for i in range(len(String)): if String[i] != ' ': if String[i] != '(': return else: string = String[i:] break start = String.find('(') if Start == -1: return string = String[Start:] end = String.find(')') if End == -1: return link = String[:End + 1] string = String[End + 1:] Links.append([Text, Link]) test = 'My Link is ss[Hady] (http://findhouse.com) . i (Am) [Here] (Because ) Of You' test2 = '[My Link is (HAHAHA)(] ( )' test3 = '' get_links(Test3)
def compute_opt(exact_filename, preprocessing_filename): datasets = set() # Dataset names exact_solution_lookup = {} # Maps dataset names to OPT with open(exact_filename, 'r') as infile: # Discard header infile.readline() for line in infile.readlines(): line = line.split(',') if line[1] == 'ilp': datasets.add(line[0]) exact_solution_lookup[line[0]] = int(line[3]) oct_removed_lookup = {} # Maps dataset names to V_o with open(preprocessing_filename, 'r') as infile: # Discard header infile.readline() for line in infile.readlines(): line = line.split(',') oct_removed_lookup[line[0]] = int(line[5]) before_oct_lookup = {} # Maps dataset names to OCT on raw data for dataset in datasets: before_oct_lookup[dataset] = exact_solution_lookup[dataset] +\ oct_removed_lookup[dataset] clusters = ['aa-er', 'aa-cl', 'aa-ba', 'aa-to', 'j-er', 'j-cl', 'j-ba', 'j-to', 'b-50-er', 'b-50-cl', 'b-50-ba', 'b-50-to', 'b-100-er', 'b-100-cl', 'b-100-ba', 'b-100-to', 'gka-er', 'gka-cl', 'gka-ba', 'gka-to'] oct_before = {} # clustered by dataset oct_after = {} print(before_oct_lookup) for cluster in clusters: oct_before[cluster] = [] oct_after[cluster] = [] for dataset in datasets: if 'aa' in dataset: if '-er' in dataset: oct_before['aa-er'].append(before_oct_lookup[dataset]) oct_after['aa-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['aa-cl'].append(before_oct_lookup[dataset]) oct_after['aa-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['aa-ba'].append(before_oct_lookup[dataset]) oct_after['aa-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['aa-to'].append(before_oct_lookup[dataset]) oct_after['aa-to'].append(exact_solution_lookup[dataset]) elif 'j' in dataset: if '-er' in dataset: oct_before['j-er'].append(before_oct_lookup[dataset]) oct_after['j-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['j-cl'].append(before_oct_lookup[dataset]) oct_after['j-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['j-ba'].append(before_oct_lookup[dataset]) oct_after['j-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['j-to'].append(before_oct_lookup[dataset]) oct_after['j-to'].append(exact_solution_lookup[dataset]) elif 'b-50' in dataset: if '-er' in dataset: oct_before['b-50-er'].append(before_oct_lookup[dataset]) oct_after['b-50-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['b-50-cl'].append(before_oct_lookup[dataset]) oct_after['b-50-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['b-50-ba'].append(before_oct_lookup[dataset]) oct_after['b-50-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['b-50-to'].append(before_oct_lookup[dataset]) oct_after['b-50-to'].append(exact_solution_lookup[dataset]) elif 'b-100' in dataset: if '-er' in dataset: oct_before['b-100-er'].append(before_oct_lookup[dataset]) oct_after['b-100-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['b-100-cl'].append(before_oct_lookup[dataset]) oct_after['b-100-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['b-100-ba'].append(before_oct_lookup[dataset]) oct_after['b-100-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['b-100-to'].append(before_oct_lookup[dataset]) oct_after['b-100-to'].append(exact_solution_lookup[dataset]) elif 'gka' in dataset: if '-er' in dataset: oct_before['gka-er'].append(before_oct_lookup[dataset]) oct_after['gka-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['gka-cl'].append(before_oct_lookup[dataset]) oct_after['gka-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['gka-ba'].append(before_oct_lookup[dataset]) oct_after['gka-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['gka-to'].append(before_oct_lookup[dataset]) oct_after['gka-to'].append(exact_solution_lookup[dataset]) print(oct_after) for cluster in clusters: try: print('{} before'.format(cluster), min(oct_before[cluster]), max(oct_before[cluster])) print('{} after:'.format(cluster), min(oct_after[cluster]), max(oct_after[cluster])) except: pass if __name__ == "__main__": compute_opt('results/exact_results.csv', 'results/final_preprocessing.csv')
def compute_opt(exact_filename, preprocessing_filename): datasets = set() exact_solution_lookup = {} with open(exact_filename, 'r') as infile: infile.readline() for line in infile.readlines(): line = line.split(',') if line[1] == 'ilp': datasets.add(line[0]) exact_solution_lookup[line[0]] = int(line[3]) oct_removed_lookup = {} with open(preprocessing_filename, 'r') as infile: infile.readline() for line in infile.readlines(): line = line.split(',') oct_removed_lookup[line[0]] = int(line[5]) before_oct_lookup = {} for dataset in datasets: before_oct_lookup[dataset] = exact_solution_lookup[dataset] + oct_removed_lookup[dataset] clusters = ['aa-er', 'aa-cl', 'aa-ba', 'aa-to', 'j-er', 'j-cl', 'j-ba', 'j-to', 'b-50-er', 'b-50-cl', 'b-50-ba', 'b-50-to', 'b-100-er', 'b-100-cl', 'b-100-ba', 'b-100-to', 'gka-er', 'gka-cl', 'gka-ba', 'gka-to'] oct_before = {} oct_after = {} print(before_oct_lookup) for cluster in clusters: oct_before[cluster] = [] oct_after[cluster] = [] for dataset in datasets: if 'aa' in dataset: if '-er' in dataset: oct_before['aa-er'].append(before_oct_lookup[dataset]) oct_after['aa-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['aa-cl'].append(before_oct_lookup[dataset]) oct_after['aa-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['aa-ba'].append(before_oct_lookup[dataset]) oct_after['aa-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['aa-to'].append(before_oct_lookup[dataset]) oct_after['aa-to'].append(exact_solution_lookup[dataset]) elif 'j' in dataset: if '-er' in dataset: oct_before['j-er'].append(before_oct_lookup[dataset]) oct_after['j-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['j-cl'].append(before_oct_lookup[dataset]) oct_after['j-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['j-ba'].append(before_oct_lookup[dataset]) oct_after['j-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['j-to'].append(before_oct_lookup[dataset]) oct_after['j-to'].append(exact_solution_lookup[dataset]) elif 'b-50' in dataset: if '-er' in dataset: oct_before['b-50-er'].append(before_oct_lookup[dataset]) oct_after['b-50-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['b-50-cl'].append(before_oct_lookup[dataset]) oct_after['b-50-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['b-50-ba'].append(before_oct_lookup[dataset]) oct_after['b-50-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['b-50-to'].append(before_oct_lookup[dataset]) oct_after['b-50-to'].append(exact_solution_lookup[dataset]) elif 'b-100' in dataset: if '-er' in dataset: oct_before['b-100-er'].append(before_oct_lookup[dataset]) oct_after['b-100-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['b-100-cl'].append(before_oct_lookup[dataset]) oct_after['b-100-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['b-100-ba'].append(before_oct_lookup[dataset]) oct_after['b-100-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['b-100-to'].append(before_oct_lookup[dataset]) oct_after['b-100-to'].append(exact_solution_lookup[dataset]) elif 'gka' in dataset: if '-er' in dataset: oct_before['gka-er'].append(before_oct_lookup[dataset]) oct_after['gka-er'].append(exact_solution_lookup[dataset]) elif '-cl' in dataset: oct_before['gka-cl'].append(before_oct_lookup[dataset]) oct_after['gka-cl'].append(exact_solution_lookup[dataset]) elif '-ba' in dataset: oct_before['gka-ba'].append(before_oct_lookup[dataset]) oct_after['gka-ba'].append(exact_solution_lookup[dataset]) elif '-to' in dataset: oct_before['gka-to'].append(before_oct_lookup[dataset]) oct_after['gka-to'].append(exact_solution_lookup[dataset]) print(oct_after) for cluster in clusters: try: print('{} before'.format(cluster), min(oct_before[cluster]), max(oct_before[cluster])) print('{} after:'.format(cluster), min(oct_after[cluster]), max(oct_after[cluster])) except: pass if __name__ == '__main__': compute_opt('results/exact_results.csv', 'results/final_preprocessing.csv')
brd = { 'name': ('StickIt! MPU-9150 V1'), 'port': { 'pmod': { 'default' : { 'scl': 'd1', 'clkin': 'd2', 'sda': 'd3', 'int': 'd5', 'fsync': 'd7' } }, 'wing': { 'default' : { 'scl': 'd0', 'clkin': 'd3', 'sda': 'd2', 'int': 'd5', 'fsync': 'd7' } } } }
brd = {'name': 'StickIt! MPU-9150 V1', 'port': {'pmod': {'default': {'scl': 'd1', 'clkin': 'd2', 'sda': 'd3', 'int': 'd5', 'fsync': 'd7'}}, 'wing': {'default': {'scl': 'd0', 'clkin': 'd3', 'sda': 'd2', 'int': 'd5', 'fsync': 'd7'}}}}
class BlockTerminationNotice(Exception): pass class IncorrectLocationException(Exception): pass class SootMethodNotLoadedException(Exception): pass class SootFieldNotLoadedException(Exception): pass
class Blockterminationnotice(Exception): pass class Incorrectlocationexception(Exception): pass class Sootmethodnotloadedexception(Exception): pass class Sootfieldnotloadedexception(Exception): pass
class Corner(object): def __init__(self, row, column, lines): self.row = row self.column = column self.lines = lines self.done = False for line in self.lines: line.add_corner(self) self.line_number = None def check_values(self): if self.done: return empty = 0 full = 0 for line in self.lines: if line.is_full: full += 1 if line.is_empty: empty += 1 print(self.row, self.column, full, empty, len(self.lines)) if full + empty == len(self.lines): return False if full == 2: print("two lines so other empty") for line in self.lines: if not line.is_full: line.set_empty() else: print("skip ", line.column, line.row, line.horizontal) self.done = True return True elif full == 1: if len(self.lines) - empty == 2: print("One line and one option") for line in self.lines: if not line.is_empty: line.set_full() self.done = True return True else: if len(self.lines) - empty == 1: print("only one still empty") for line in self.lines: if not line.is_full: line.set_empty() self.done = True return True return False
class Corner(object): def __init__(self, row, column, lines): self.row = row self.column = column self.lines = lines self.done = False for line in self.lines: line.add_corner(self) self.line_number = None def check_values(self): if self.done: return empty = 0 full = 0 for line in self.lines: if line.is_full: full += 1 if line.is_empty: empty += 1 print(self.row, self.column, full, empty, len(self.lines)) if full + empty == len(self.lines): return False if full == 2: print('two lines so other empty') for line in self.lines: if not line.is_full: line.set_empty() else: print('skip ', line.column, line.row, line.horizontal) self.done = True return True elif full == 1: if len(self.lines) - empty == 2: print('One line and one option') for line in self.lines: if not line.is_empty: line.set_full() self.done = True return True elif len(self.lines) - empty == 1: print('only one still empty') for line in self.lines: if not line.is_full: line.set_empty() self.done = True return True return False
#Table used for the example 2split.py ################################################################################################# source_path = "/home/user/Scrivania/Ducks/"# Where the images are output_path = "/home/user/Scrivania/Ducks/"# Where the two directory with the cutted images will be stored RIGHT_CUT_DIR_NAME = "right_duck" #Name of the directory thay contains the right cuts LEFT_CUT_DIR_NAME = "left_duck" #Name of the directory thay contains the left cuts LEFT_PREFIX = "left_quacky" #Prefix for left cuts RIGHT_PREFIX = "right_quacky" #Prefix for right cuts #################################################################################################
source_path = '/home/user/Scrivania/Ducks/' output_path = '/home/user/Scrivania/Ducks/' right_cut_dir_name = 'right_duck' left_cut_dir_name = 'left_duck' left_prefix = 'left_quacky' right_prefix = 'right_quacky'
def logic(value, a, b): if value: return a return b hero.moveXY(20, 24); a = hero.findNearestFriend().getSecretA() b = hero.findNearestFriend().getSecretB() c = hero.findNearestFriend().getSecretC() hero.moveXY(30, logic(a and b and c, 33, 15)) hero.moveXY(logic(a or b or c, 20, 40), 24) hero.moveXY(30, logic(a and b and c, 33, 15))
def logic(value, a, b): if value: return a return b hero.moveXY(20, 24) a = hero.findNearestFriend().getSecretA() b = hero.findNearestFriend().getSecretB() c = hero.findNearestFriend().getSecretC() hero.moveXY(30, logic(a and b and c, 33, 15)) hero.moveXY(logic(a or b or c, 20, 40), 24) hero.moveXY(30, logic(a and b and c, 33, 15))
def a(mem): seen = set() tup = tuple(mem) count = 0 while tup not in seen: seen.add(tup) index = 0 max = 0 for i in range(len(mem)): n = mem[i] if(n > max): max = n index = i mem[index] = 0 index += 1 while(max > 0): mem[index%len(mem)] += 1 max -= 1 index += 1 count += 1 tup = tuple(mem) return count def b(mem): seen = [] tup = tuple(mem) count = 0 while tup not in seen: seen.append(tup) index = 0 max = 0 for i in range(len(mem)): n = mem[i] if(n > max): max = n index = i mem[index] = 0 index += 1 while(max > 0): mem[index%len(mem)] += 1 max -= 1 index += 1 count += 1 tup = tuple(mem) return count - seen.index(tup) with open("input.txt") as f: nums = [int(x.strip()) for x in f.read().split("\t")] print("Part A:", a(nums)) with open("input.txt") as f: nums = [int(x.strip()) for x in f.read().split("\t")] print("Part B:", b(nums))
def a(mem): seen = set() tup = tuple(mem) count = 0 while tup not in seen: seen.add(tup) index = 0 max = 0 for i in range(len(mem)): n = mem[i] if n > max: max = n index = i mem[index] = 0 index += 1 while max > 0: mem[index % len(mem)] += 1 max -= 1 index += 1 count += 1 tup = tuple(mem) return count def b(mem): seen = [] tup = tuple(mem) count = 0 while tup not in seen: seen.append(tup) index = 0 max = 0 for i in range(len(mem)): n = mem[i] if n > max: max = n index = i mem[index] = 0 index += 1 while max > 0: mem[index % len(mem)] += 1 max -= 1 index += 1 count += 1 tup = tuple(mem) return count - seen.index(tup) with open('input.txt') as f: nums = [int(x.strip()) for x in f.read().split('\t')] print('Part A:', a(nums)) with open('input.txt') as f: nums = [int(x.strip()) for x in f.read().split('\t')] print('Part B:', b(nums))
def mergeSort(l): if len(l) > 1: mid = len(l) // 2 L = l[:mid] R = l[mid:] mergeSort(L) mergeSort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: l[k] = L[i] i += 1 else: l[k] = R[j] j += 1 k += 1 while i < len(L): l[k] = L[i] i += 1 k += 1 while j < len(R): l[k] = R[j] j += 1 k += 1 l = [8, 7, 12, 10, 2, 999, 45] print(l) mergeSort(l) print(l)
def merge_sort(l): if len(l) > 1: mid = len(l) // 2 l = l[:mid] r = l[mid:] merge_sort(L) merge_sort(R) i = j = k = 0 while i < len(L) and j < len(R): if L[i] < R[j]: l[k] = L[i] i += 1 else: l[k] = R[j] j += 1 k += 1 while i < len(L): l[k] = L[i] i += 1 k += 1 while j < len(R): l[k] = R[j] j += 1 k += 1 l = [8, 7, 12, 10, 2, 999, 45] print(l) merge_sort(l) print(l)
class Solution: def minAbbreviation(self, target: str, dictionary: List[str]) -> str: m = len(target) def getMask(word: str) -> int: # mask[i] = 0 := target[i] == word[i] # mask[i] = 1 := target[i] != word[i] # e.g. target = "apple" # word = "blade" # mask = 11110 mask = 0 for i, c in enumerate(word): if c != target[i]: mask |= 1 << m - 1 - i return mask masks = [getMask(word) for word in dictionary if len(word) == m] if not masks: return str(m) abbrs = [] def getAbbr(cand: int) -> str: abbr = '' replacedCount = 0 for i, c in enumerate(target): if cand >> m - 1 - i & 1: # cand[i] = 1, abbr should show the original character if replacedCount: abbr += str(replacedCount) abbr += c replacedCount = 0 else: # cand[i] = 0, abbr can be replaced replacedCount += 1 if replacedCount: abbr += str(replacedCount) return abbr # for all candidate representation of target for cand in range(2**m): # all masks have at lease one bit different from candidate if all(cand & mask for mask in masks): abbr = getAbbr(cand) abbrs.append(abbr) def getAbbrLen(abbr: str) -> int: abbrLen = 0 i = 0 j = 0 while i < len(abbr): if abbr[j].isalpha(): j += 1 else: while j < len(abbr) and abbr[j].isdigit(): j += 1 abbrLen += 1 i = j return abbrLen return min(abbrs, key=lambda x: getAbbrLen(x))
class Solution: def min_abbreviation(self, target: str, dictionary: List[str]) -> str: m = len(target) def get_mask(word: str) -> int: mask = 0 for (i, c) in enumerate(word): if c != target[i]: mask |= 1 << m - 1 - i return mask masks = [get_mask(word) for word in dictionary if len(word) == m] if not masks: return str(m) abbrs = [] def get_abbr(cand: int) -> str: abbr = '' replaced_count = 0 for (i, c) in enumerate(target): if cand >> m - 1 - i & 1: if replacedCount: abbr += str(replacedCount) abbr += c replaced_count = 0 else: replaced_count += 1 if replacedCount: abbr += str(replacedCount) return abbr for cand in range(2 ** m): if all((cand & mask for mask in masks)): abbr = get_abbr(cand) abbrs.append(abbr) def get_abbr_len(abbr: str) -> int: abbr_len = 0 i = 0 j = 0 while i < len(abbr): if abbr[j].isalpha(): j += 1 else: while j < len(abbr) and abbr[j].isdigit(): j += 1 abbr_len += 1 i = j return abbrLen return min(abbrs, key=lambda x: get_abbr_len(x))
{ "targets": [ { "target_name": "example", "sources": [ "example.cxx", "example_wrap.cxx" ] } ] }
{'targets': [{'target_name': 'example', 'sources': ['example.cxx', 'example_wrap.cxx']}]}
# Event: LCCS Python Fundamental Skills Workshop # Date: Dec 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Solution to programming exercises 6.1 Q2 # Purpose: A program to find the GCD of any two positive integers # Determines if one number is a factor of the other def isFactor(a1, a2): if a2 % a1 == 0: return True else: return False # Returns a list containing all the factors of n def getFactors(n): factors = [] for i in range(1, n+1): if isFactor(i, n): factors.append(i) return factors # Returns the greatest common divisor # This is the largest number that is common to both lists def gcd(l1, l2): # sets don't contain duplicates set1 = set(l1) set2 = set(l2) common_factors = set1.intersection(set2) # set1 & set2 return(max(common_factors)) # Main program n1 = int(input("Enter the first number: ")) n2 = int(input("Enter the second number: ")) list_of_factors1 = getFactors(n1) list_of_factors2 = getFactors(n2) ans = gcd(list_of_factors1, list_of_factors2) print("The GCD of %d and %d is %d" %(n1, n2, ans)) ''' # Alternative solution def gcd(a, b): while b: a, b = b, a % b print(a) gcd(27, 63) '''
def is_factor(a1, a2): if a2 % a1 == 0: return True else: return False def get_factors(n): factors = [] for i in range(1, n + 1): if is_factor(i, n): factors.append(i) return factors def gcd(l1, l2): set1 = set(l1) set2 = set(l2) common_factors = set1.intersection(set2) return max(common_factors) n1 = int(input('Enter the first number: ')) n2 = int(input('Enter the second number: ')) list_of_factors1 = get_factors(n1) list_of_factors2 = get_factors(n2) ans = gcd(list_of_factors1, list_of_factors2) print('The GCD of %d and %d is %d' % (n1, n2, ans)) '\n# Alternative solution\ndef gcd(a, b):\n while b:\n a, b = b, a % b\n \n print(a)\n\ngcd(27, 63)\n'
assert format(5, "b") == "101" try: format(2, 3) except TypeError: pass else: assert False, "TypeError not raised when format is called with a number"
assert format(5, 'b') == '101' try: format(2, 3) except TypeError: pass else: assert False, 'TypeError not raised when format is called with a number'
#!/usr/bin/env python3 names = ['Alice', 'Bob', 'John'] for name in names: print(name)
names = ['Alice', 'Bob', 'John'] for name in names: print(name)
# pylint: disable=too-many-instance-attributes # number of attributes is reasonable in this case class Skills: def __init__(self): self.acrobatics = Skill() self.animal_handling = Skill() self.arcana = Skill() self.athletics = Skill() self.deception = Skill() self.history = Skill() self.insight = Skill() self.intimidation = Skill() self.investigation = Skill() self.medicine = Skill() self.nature = Skill() self.perception = Skill() self.performance = Skill() self.persuasion = Skill() self.religion = Skill() self.sleight_of_hand = Skill() self.stealth = Skill() self.survival = Skill() class Skill: def __init__(self): self._proficient = False self._modifier = 0 @property def proficient(self): return self._proficient @proficient.setter def proficient(self, proficient): self._proficient = proficient @property def modifier(self): return self._modifier @modifier.setter def modifier(self, modifier): self._modifier = modifier
class Skills: def __init__(self): self.acrobatics = skill() self.animal_handling = skill() self.arcana = skill() self.athletics = skill() self.deception = skill() self.history = skill() self.insight = skill() self.intimidation = skill() self.investigation = skill() self.medicine = skill() self.nature = skill() self.perception = skill() self.performance = skill() self.persuasion = skill() self.religion = skill() self.sleight_of_hand = skill() self.stealth = skill() self.survival = skill() class Skill: def __init__(self): self._proficient = False self._modifier = 0 @property def proficient(self): return self._proficient @proficient.setter def proficient(self, proficient): self._proficient = proficient @property def modifier(self): return self._modifier @modifier.setter def modifier(self, modifier): self._modifier = modifier
class TestResult: def __init__(self, test_case) -> None: self.__test_case = test_case self.__failed = False self.__reason = None def record_failure(self, reason: str): self.__reason = reason self.__failed = True def test_case(self) -> str: return type(self.__test_case).__name__ def test_name(self) -> str: return self.__test_case.name() def failed(self) -> bool: return self.__failed def reason(self) -> str: return self.__reason class IReport: def record_test_result(self, test_result: TestResult): raise NotImplementedError def test_results(self) -> dict[str, list]: raise NotImplementedError def run_count(self) -> int: raise NotImplementedError def failure_count(self) -> int: raise NotImplementedError class IFormatter: @classmethod def format(cls, test_report: IReport) -> any: raise NotImplementedError
class Testresult: def __init__(self, test_case) -> None: self.__test_case = test_case self.__failed = False self.__reason = None def record_failure(self, reason: str): self.__reason = reason self.__failed = True def test_case(self) -> str: return type(self.__test_case).__name__ def test_name(self) -> str: return self.__test_case.name() def failed(self) -> bool: return self.__failed def reason(self) -> str: return self.__reason class Ireport: def record_test_result(self, test_result: TestResult): raise NotImplementedError def test_results(self) -> dict[str, list]: raise NotImplementedError def run_count(self) -> int: raise NotImplementedError def failure_count(self) -> int: raise NotImplementedError class Iformatter: @classmethod def format(cls, test_report: IReport) -> any: raise NotImplementedError
#!/usr/bin/python #-*-coding:utf-8-*- '''This packge contains the UCT algorithem of the UAV searching. The algorithem conform to the standard OperateInterface defined in the PlatForm class.''' __all__ = ['UCTControl', 'UCTSearchTree', 'UCTTreeNode']
"""This packge contains the UCT algorithem of the UAV searching. The algorithem conform to the standard OperateInterface defined in the PlatForm class.""" __all__ = ['UCTControl', 'UCTSearchTree', 'UCTTreeNode']
# --- Starting python tests --- #Funct def functione(x,y): return x*y # call print(format(functione(2,3)))
def functione(x, y): return x * y print(format(functione(2, 3)))