content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
if request.isInit: lastVal = 0 elif request.isRead: request.value = lastVal elif request.isWrite: lastVal = request.value
if request.isInit: last_val = 0 elif request.isRead: request.value = lastVal elif request.isWrite: last_val = request.value
'''input 4 2 3 1 4 2 3 2 3 2 3 3 1 10 3 3 4 3 3 4 1 3 3 3 3 ''' # -*- coding: utf-8 -*- # SoundHound Inc. Programming Contest 2018 Spring # Problem B if __name__ == '__main__': n, l, r = list(map(int, input().split())) a = list(map(int, input().split())) for i in range(len(a)): if a[i] < l: a[i] = l if a[i] > r: a[i] = r print(' '.join(map(str, list(a))))
"""input 4 2 3 1 4 2 3 2 3 2 3 3 1 10 3 3 4 3 3 4 1 3 3 3 3 """ if __name__ == '__main__': (n, l, r) = list(map(int, input().split())) a = list(map(int, input().split())) for i in range(len(a)): if a[i] < l: a[i] = l if a[i] > r: a[i] = r print(' '.join(map(str, list(a))))
def cycle_fn(epoch, cycle_length=15, const_epochs=3, start=0.0, stop=1.0): cur_epoch = epoch % cycle_length grow_length = (cycle_length - const_epochs) growing = cur_epoch < grow_length rate = (stop - start) if growing: t = cur_epoch / float(grow_length) return rate * t + start else: return stop class KLCylicAnnealer: @classmethod def from_config(cls, config): return cls(config.kl_cycle_length, config.kl_cycles_constant, 0.0, 1.0) def __init__(self, cycle_length, const_epochs, w_start=0.0, w_end=1.0): self.cycle_length = cycle_length self.const_epochs = const_epochs self.w_start = w_start self.w_end = w_end def __call__(self, i): return cycle_fn(i, self.cycle_length, self.const_epochs, self.w_start, self.w_end) class WAnnealer: @classmethod def from_config(cls, config): return cls(config.y_start, config.y_end, config.y_w_start, config.y_w_end) def __init__(self, start, end, w_start, w_end): self.i_start = start self.i_end = end self.w_start = w_start self.w_end = w_end self.inc = (self.w_end - self.w_start) / (self.i_end - self.i_start) def __call__(self, i): k = (i - self.i_start) if i >= self.i_start else 0 w = min(self.w_start + k * self.inc, self.w_end) return w
def cycle_fn(epoch, cycle_length=15, const_epochs=3, start=0.0, stop=1.0): cur_epoch = epoch % cycle_length grow_length = cycle_length - const_epochs growing = cur_epoch < grow_length rate = stop - start if growing: t = cur_epoch / float(grow_length) return rate * t + start else: return stop class Klcylicannealer: @classmethod def from_config(cls, config): return cls(config.kl_cycle_length, config.kl_cycles_constant, 0.0, 1.0) def __init__(self, cycle_length, const_epochs, w_start=0.0, w_end=1.0): self.cycle_length = cycle_length self.const_epochs = const_epochs self.w_start = w_start self.w_end = w_end def __call__(self, i): return cycle_fn(i, self.cycle_length, self.const_epochs, self.w_start, self.w_end) class Wannealer: @classmethod def from_config(cls, config): return cls(config.y_start, config.y_end, config.y_w_start, config.y_w_end) def __init__(self, start, end, w_start, w_end): self.i_start = start self.i_end = end self.w_start = w_start self.w_end = w_end self.inc = (self.w_end - self.w_start) / (self.i_end - self.i_start) def __call__(self, i): k = i - self.i_start if i >= self.i_start else 0 w = min(self.w_start + k * self.inc, self.w_end) return w
x = 0 while x < 100: print(x) x += 1
x = 0 while x < 100: print(x) x += 1
# -*- coding: utf-8 -*- """ module mixin - mixes classes to augment an existing class or creat a new one http://c2.com/cgi/wiki?MixinsForPython """ def mixIn (base, addition): """ Mixes in place, i.e. the base class is modified. Tags the class with a list of names of mixed members. @param base : the base class @param addition : additional classes """ assert not hasattr(base, '_mixed_') mixed = [] for item, val in addition.__dict__.items(): if not hasattr(base, item): setattr(base, item, val) mixed.append (item) # the base class remembers what is mixed in base._mixed_ = mixed def unMix (cla): """ Undoes the effect of a mixin on a class. Removes all attributes that were mixed in -- so even if they have been redefined, they will be removed. _mixed_ must exist, or there was no mixin @param cla : class with mixed-in attributes """ try: cla._mixed_ except: return for m in cla._mixed_: delattr(cla, m) del cla._mixed_ def mixedIn (base, addition): """ Same as mixIn, but returns a new class instead of modifying the base. @param base : the base class @param addition : additional classes @return: new class """ class newClass: pass newClass.__dict__ = base.__dict__.copy() mixIn (newClass, addition) return newClass if __name__ == "__main__": class addSubMixin: def add(self, value): self.number += value return self.number def subtract(self, value): self.number -= value return self.number class myClass: def __init__(self, number): self.number = number mixIn(myClass, addSubMixin) myInstance = myClass(4) print(myInstance.add(2)) # prints "6" print(myInstance.subtract(2)) # prints "2"
""" module mixin - mixes classes to augment an existing class or creat a new one http://c2.com/cgi/wiki?MixinsForPython """ def mix_in(base, addition): """ Mixes in place, i.e. the base class is modified. Tags the class with a list of names of mixed members. @param base : the base class @param addition : additional classes """ assert not hasattr(base, '_mixed_') mixed = [] for (item, val) in addition.__dict__.items(): if not hasattr(base, item): setattr(base, item, val) mixed.append(item) base._mixed_ = mixed def un_mix(cla): """ Undoes the effect of a mixin on a class. Removes all attributes that were mixed in -- so even if they have been redefined, they will be removed. _mixed_ must exist, or there was no mixin @param cla : class with mixed-in attributes """ try: cla._mixed_ except: return for m in cla._mixed_: delattr(cla, m) del cla._mixed_ def mixed_in(base, addition): """ Same as mixIn, but returns a new class instead of modifying the base. @param base : the base class @param addition : additional classes @return: new class """ class Newclass: pass newClass.__dict__ = base.__dict__.copy() mix_in(newClass, addition) return newClass if __name__ == '__main__': class Addsubmixin: def add(self, value): self.number += value return self.number def subtract(self, value): self.number -= value return self.number class Myclass: def __init__(self, number): self.number = number mix_in(myClass, addSubMixin) my_instance = my_class(4) print(myInstance.add(2)) print(myInstance.subtract(2))
firstName = 'John' lastName = 'Smith' #message = first + ' [' + last + '] is a coder' message = f'{firstName} [{lastName}] is a coder.' print(message)
first_name = 'John' last_name = 'Smith' message = f'{firstName} [{lastName}] is a coder.' print(message)
""" Used to "iterate", or do something repeatedly, over an iterable. The loop's body is run a predefined number of times. """ cities = ['new york city', 'mountain view', 'chicago', 'los angeles'] """ Creating Lists """ capitalized_cities = [] for city in cities: capitalized_cities.append(city.title()) print(capitalized_cities) """ Modifying Lists """ print("") for index in range(len(cities)): cities[index] = cities[index].title() print(cities) """ Don't Mistake! """ print("\n=== Don't Mistake!") names = ["Joey Tribbiani", "Monica Geller", "Chandler Bing", "Phoebe Buffay"] for name in names: name = name.lower().replace(" ", "_") print(names) # The printed output for the names list will look exactly like it did in the first line
""" Used to "iterate", or do something repeatedly, over an iterable. The loop's body is run a predefined number of times. """ cities = ['new york city', 'mountain view', 'chicago', 'los angeles'] ' Creating Lists ' capitalized_cities = [] for city in cities: capitalized_cities.append(city.title()) print(capitalized_cities) ' Modifying Lists ' print('') for index in range(len(cities)): cities[index] = cities[index].title() print(cities) " Don't Mistake! " print("\n=== Don't Mistake!") names = ['Joey Tribbiani', 'Monica Geller', 'Chandler Bing', 'Phoebe Buffay'] for name in names: name = name.lower().replace(' ', '_') print(names)
#list comprehension with if statement numbers = list(range(1,11)) print(f" List of the numbers : {numbers}") print(" 1st example ") #by simple method even_num = [] for i in numbers: if i % 2 == 0: even_num.append(i) print(f"even number by list simple: {even_num} " ) #by list comprehension even_num2 = [i for i in numbers if i%2 == 0 ] print(f"even number by list comprehension: {even_num2}") #so simple method print("very simple method of list comprehension: ") even_num3 = [i for i in range(11,30) if i%2 == 0] print(f"even number by list comprehension: {even_num3}") print(" 2nd example ") #by simple method odd_num = [] for i in numbers: if i % 2 != 0: odd_num.append(i) print(f"odd number by list simple: {odd_num} " ) #by list comprehension odd_num2 = [i for i in numbers if i%2 != 0 ] print(f"odd number by list comprehension: {odd_num2}") #so simple method print("very simple method of list comprehension: ") odd_num3 = [i for i in range(11,30) if i%2 != 0] print(f"odd number by list comprehension: {odd_num3}")
numbers = list(range(1, 11)) print(f' List of the numbers : {numbers}') print(' 1st example ') even_num = [] for i in numbers: if i % 2 == 0: even_num.append(i) print(f'even number by list simple: {even_num} ') even_num2 = [i for i in numbers if i % 2 == 0] print(f'even number by list comprehension: {even_num2}') print('very simple method of list comprehension: ') even_num3 = [i for i in range(11, 30) if i % 2 == 0] print(f'even number by list comprehension: {even_num3}') print(' 2nd example ') odd_num = [] for i in numbers: if i % 2 != 0: odd_num.append(i) print(f'odd number by list simple: {odd_num} ') odd_num2 = [i for i in numbers if i % 2 != 0] print(f'odd number by list comprehension: {odd_num2}') print('very simple method of list comprehension: ') odd_num3 = [i for i in range(11, 30) if i % 2 != 0] print(f'odd number by list comprehension: {odd_num3}')
dict = {} uid =[] name = [] age = [] n = int(input("Plz Enter Number of User U Want to Add: ")) i =0 while(i<n): print() print("Enter User ",i+1," Details") uid.append(int(input("Enter User ID : "))) name.append(input("Enter User Name : ")) age.append(int(input("Enter Your Age : "))) i=i+1 dict['User Id'] = uid dict['Name'] = name dict['Age'] = age print(end="\n\n") for k,v in dict.items(): print(k," : ",v)
dict = {} uid = [] name = [] age = [] n = int(input('Plz Enter Number of User U Want to Add: ')) i = 0 while i < n: print() print('Enter User ', i + 1, ' Details') uid.append(int(input('Enter User ID : '))) name.append(input('Enter User Name : ')) age.append(int(input('Enter Your Age : '))) i = i + 1 dict['User Id'] = uid dict['Name'] = name dict['Age'] = age print(end='\n\n') for (k, v) in dict.items(): print(k, ' : ', v)
CASSANDRA_VERSION = "3.11.11" CASSANDRA_DEB_VERSION = CASSANDRA_VERSION + "_all" DNSMASQ_VERSION = "2.80-1" DNSMASQ_DEB_VERSION = DNSMASQ_VERSION + "+deb10u1" ELASTICSEARCH_VERSION = "7.3.1" ENVOY_VERSION = "1.15.5" ERLANG_VERSION = "22.3.4.9-1" ERLANG_DEB_VERSION = ERLANG_VERSION + "" GERRIT_VERSION = "3.4.0" GRAFANA_VERSION = "8.1.1" GRAFANA_DEB_VERSION = GRAFANA_VERSION JAVA_8_VERSION = "8.0.302" ZULU_8_VERSION = "8.0.302-1" JAVA_11_VERSION = "11.0.12" ZULU_11_VERSION = "11.0.12-1" GRAAL_VERSION = "21.2.0" JENKINS_VERSION = "2.289.3" JENKINS_SWARM_VERSION = "3.27" KAFKA_VERSION = "2.8.0" KIBANA_VERSION = "7.3.1" NODEJS_FOR_KIBANA_VERSION = "10.15.2" MAVEN_VERSION = "3.8.1" NEXUS_VERSION = "2.14.20-02" NGINX_VERSION = "1.21.1-1" NGINX_DEB_VERSION = NGINX_VERSION + "~buster" NODEJS_VERSION = "14.17.5" PHP_VERSION = "7.3.29-1" PHP_DEB_VERSION = PHP_VERSION + "~deb10u1" POSTGRESQL_MAJOR_VERSION = "13" POSTGRESQL_VERSION = POSTGRESQL_MAJOR_VERSION + "." + "4-1" POSTGRESQL_DEB_VERSION = POSTGRESQL_VERSION + "." + "pgdg100+1" POSTGIS_MINOR_VERSION = "3" POSTGIS_VERSION = POSTGIS_MINOR_VERSION + ".1.3" POSTGIS_CONTAINER_VERSION = POSTGRESQL_VERSION + "-" + POSTGIS_VERSION POSTGIS_DEB_VERSION = POSTGIS_VERSION + "+dfsg-1~exp1.pgdg100+1+b1" POSTGIS_POSTGRESQL_DEB_VERSION = POSTGIS_VERSION + "+dfsg-1~exp1.pgdg100+1" PROMETHEUS_VERSION = "2.27.1" PROMETHEUS_JMX_JAVAAGENT = "0.16.0" RABBITMQ_VERSION = "3.8.7" REDIS_VERSION = "5.0.3-4" REDIS_DEB_VERSION = REDIS_VERSION + "+deb10u2" SBT_VERSION = "1.5.3" TOMCAT9_VERSION = "9.0.31-1" TOMCAT9_DEB_VERSION = TOMCAT9_VERSION + "~deb10u4" YARN_VERSION = "1.22.5" ZIPKIN_VERSION = "2.23.2" ZOOKEEPER_VERSION = "3.6.3" JASPERREPORTS_SERVER_VERSION = "6.4.2" PENATHO_DI_VERSION = "7.1.0.0-12" def _version_shell_script_impl(ctx): # (.+)=(%\{.+\}) => "$2": $1, ctx.actions.expand_template( template=ctx.file._template, substitutions={ "%{CASSANDRA_VERSION}": CASSANDRA_VERSION, "%{CASSANDRA_DEB_VERSION}": CASSANDRA_DEB_VERSION, "%{DNSMASQ_VERSION}": DNSMASQ_VERSION, "%{DNSMASQ_DEB_VERSION}": DNSMASQ_DEB_VERSION, "%{ELASTICSEARCH_VERSION}": ELASTICSEARCH_VERSION, "%{ENVOY_VERSION}": ENVOY_VERSION, "%{ERLANG_VERSION}": ERLANG_VERSION, "%{ERLANG_DEB_VERSION}": ERLANG_DEB_VERSION, "%{GERRIT_VERSION}": GERRIT_VERSION, "%{GRAFANA_VERSION}": GRAFANA_VERSION, "%{GRAFANA_DEB_VERSION}": GRAFANA_DEB_VERSION, "%{JAVA_8_VERSION}": JAVA_8_VERSION, "%{ZULU_8_VERSION}": ZULU_8_VERSION, "%{JAVA_11_VERSION}": JAVA_11_VERSION, "%{ZULU_11_VERSION}": ZULU_11_VERSION, "%{GRAAL_VERSION}": GRAAL_VERSION, "%{JENKINS_VERSION}": JENKINS_VERSION, "%{JENKINS_SWARM_VERSION}": JENKINS_SWARM_VERSION, "%{KAFKA_VERSION}": KAFKA_VERSION, "%{KIBANA_VERSION}": KIBANA_VERSION, "%{NODEJS_FOR_KIBANA_VERSION}": NODEJS_FOR_KIBANA_VERSION, "%{MAVEN_VERSION}": MAVEN_VERSION, "%{NEXUS_VERSION}": NEXUS_VERSION, "%{NGINX_VERSION}": NGINX_VERSION, "%{NGINX_DEB_VERSION}": NGINX_DEB_VERSION, "%{NODEJS_VERSION}": NODEJS_VERSION, "%{PHP_VERSION}": PHP_VERSION, "%{PHP_DEB_VERSION}": PHP_DEB_VERSION, "%{POSTGRESQL_MAJOR_VERSION}": POSTGRESQL_MAJOR_VERSION, "%{POSTGRESQL_VERSION}": POSTGRESQL_VERSION, "%{POSTGRESQL_DEB_VERSION}": POSTGRESQL_DEB_VERSION, "%{POSTGIS_MINOR_VERSION}": POSTGIS_MINOR_VERSION, "%{POSTGIS_VERSION}": POSTGIS_VERSION, "%{POSTGIS_CONTAINER_VERSION}": POSTGIS_CONTAINER_VERSION, "%{POSTGIS_DEB_VERSION}": POSTGIS_DEB_VERSION, "%{POSTGIS_POSTGRESQL_DEB_VERSION}": POSTGIS_POSTGRESQL_DEB_VERSION, "%{PROMETHEUS_VERSION}": PROMETHEUS_VERSION, "%{RABBITMQ_VERSION}": RABBITMQ_VERSION, "%{REDIS_VERSION}": REDIS_VERSION, "%{REDIS_DEB_VERSION}": REDIS_DEB_VERSION, "%{SBT_VERSION}": SBT_VERSION, "%{TOMCAT9_VERSION}": TOMCAT9_VERSION, "%{TOMCAT9_DEB_VERSION}": TOMCAT9_DEB_VERSION, "%{YARN_VERSION}": YARN_VERSION, "%{ZIPKIN_VERSION}": ZIPKIN_VERSION, "%{ZOOKEEPER_VERSION}": ZOOKEEPER_VERSION, "%{JASPERREPORTS_SERVER_VERSION}": JASPERREPORTS_SERVER_VERSION, "%{PENATHO_DI_VERSION}": PENATHO_DI_VERSION, }, output=ctx.outputs.script ) version_shell_script = rule( implementation=_version_shell_script_impl, attrs={ "_template": attr.label( default=Label("//scripts/versions:template"), allow_single_file=True, ) }, outputs={ "script": "%{name}.sh" }, )
cassandra_version = '3.11.11' cassandra_deb_version = CASSANDRA_VERSION + '_all' dnsmasq_version = '2.80-1' dnsmasq_deb_version = DNSMASQ_VERSION + '+deb10u1' elasticsearch_version = '7.3.1' envoy_version = '1.15.5' erlang_version = '22.3.4.9-1' erlang_deb_version = ERLANG_VERSION + '' gerrit_version = '3.4.0' grafana_version = '8.1.1' grafana_deb_version = GRAFANA_VERSION java_8_version = '8.0.302' zulu_8_version = '8.0.302-1' java_11_version = '11.0.12' zulu_11_version = '11.0.12-1' graal_version = '21.2.0' jenkins_version = '2.289.3' jenkins_swarm_version = '3.27' kafka_version = '2.8.0' kibana_version = '7.3.1' nodejs_for_kibana_version = '10.15.2' maven_version = '3.8.1' nexus_version = '2.14.20-02' nginx_version = '1.21.1-1' nginx_deb_version = NGINX_VERSION + '~buster' nodejs_version = '14.17.5' php_version = '7.3.29-1' php_deb_version = PHP_VERSION + '~deb10u1' postgresql_major_version = '13' postgresql_version = POSTGRESQL_MAJOR_VERSION + '.' + '4-1' postgresql_deb_version = POSTGRESQL_VERSION + '.' + 'pgdg100+1' postgis_minor_version = '3' postgis_version = POSTGIS_MINOR_VERSION + '.1.3' postgis_container_version = POSTGRESQL_VERSION + '-' + POSTGIS_VERSION postgis_deb_version = POSTGIS_VERSION + '+dfsg-1~exp1.pgdg100+1+b1' postgis_postgresql_deb_version = POSTGIS_VERSION + '+dfsg-1~exp1.pgdg100+1' prometheus_version = '2.27.1' prometheus_jmx_javaagent = '0.16.0' rabbitmq_version = '3.8.7' redis_version = '5.0.3-4' redis_deb_version = REDIS_VERSION + '+deb10u2' sbt_version = '1.5.3' tomcat9_version = '9.0.31-1' tomcat9_deb_version = TOMCAT9_VERSION + '~deb10u4' yarn_version = '1.22.5' zipkin_version = '2.23.2' zookeeper_version = '3.6.3' jasperreports_server_version = '6.4.2' penatho_di_version = '7.1.0.0-12' def _version_shell_script_impl(ctx): ctx.actions.expand_template(template=ctx.file._template, substitutions={'%{CASSANDRA_VERSION}': CASSANDRA_VERSION, '%{CASSANDRA_DEB_VERSION}': CASSANDRA_DEB_VERSION, '%{DNSMASQ_VERSION}': DNSMASQ_VERSION, '%{DNSMASQ_DEB_VERSION}': DNSMASQ_DEB_VERSION, '%{ELASTICSEARCH_VERSION}': ELASTICSEARCH_VERSION, '%{ENVOY_VERSION}': ENVOY_VERSION, '%{ERLANG_VERSION}': ERLANG_VERSION, '%{ERLANG_DEB_VERSION}': ERLANG_DEB_VERSION, '%{GERRIT_VERSION}': GERRIT_VERSION, '%{GRAFANA_VERSION}': GRAFANA_VERSION, '%{GRAFANA_DEB_VERSION}': GRAFANA_DEB_VERSION, '%{JAVA_8_VERSION}': JAVA_8_VERSION, '%{ZULU_8_VERSION}': ZULU_8_VERSION, '%{JAVA_11_VERSION}': JAVA_11_VERSION, '%{ZULU_11_VERSION}': ZULU_11_VERSION, '%{GRAAL_VERSION}': GRAAL_VERSION, '%{JENKINS_VERSION}': JENKINS_VERSION, '%{JENKINS_SWARM_VERSION}': JENKINS_SWARM_VERSION, '%{KAFKA_VERSION}': KAFKA_VERSION, '%{KIBANA_VERSION}': KIBANA_VERSION, '%{NODEJS_FOR_KIBANA_VERSION}': NODEJS_FOR_KIBANA_VERSION, '%{MAVEN_VERSION}': MAVEN_VERSION, '%{NEXUS_VERSION}': NEXUS_VERSION, '%{NGINX_VERSION}': NGINX_VERSION, '%{NGINX_DEB_VERSION}': NGINX_DEB_VERSION, '%{NODEJS_VERSION}': NODEJS_VERSION, '%{PHP_VERSION}': PHP_VERSION, '%{PHP_DEB_VERSION}': PHP_DEB_VERSION, '%{POSTGRESQL_MAJOR_VERSION}': POSTGRESQL_MAJOR_VERSION, '%{POSTGRESQL_VERSION}': POSTGRESQL_VERSION, '%{POSTGRESQL_DEB_VERSION}': POSTGRESQL_DEB_VERSION, '%{POSTGIS_MINOR_VERSION}': POSTGIS_MINOR_VERSION, '%{POSTGIS_VERSION}': POSTGIS_VERSION, '%{POSTGIS_CONTAINER_VERSION}': POSTGIS_CONTAINER_VERSION, '%{POSTGIS_DEB_VERSION}': POSTGIS_DEB_VERSION, '%{POSTGIS_POSTGRESQL_DEB_VERSION}': POSTGIS_POSTGRESQL_DEB_VERSION, '%{PROMETHEUS_VERSION}': PROMETHEUS_VERSION, '%{RABBITMQ_VERSION}': RABBITMQ_VERSION, '%{REDIS_VERSION}': REDIS_VERSION, '%{REDIS_DEB_VERSION}': REDIS_DEB_VERSION, '%{SBT_VERSION}': SBT_VERSION, '%{TOMCAT9_VERSION}': TOMCAT9_VERSION, '%{TOMCAT9_DEB_VERSION}': TOMCAT9_DEB_VERSION, '%{YARN_VERSION}': YARN_VERSION, '%{ZIPKIN_VERSION}': ZIPKIN_VERSION, '%{ZOOKEEPER_VERSION}': ZOOKEEPER_VERSION, '%{JASPERREPORTS_SERVER_VERSION}': JASPERREPORTS_SERVER_VERSION, '%{PENATHO_DI_VERSION}': PENATHO_DI_VERSION}, output=ctx.outputs.script) version_shell_script = rule(implementation=_version_shell_script_impl, attrs={'_template': attr.label(default=label('//scripts/versions:template'), allow_single_file=True)}, outputs={'script': '%{name}.sh'})
DEFAULT_TRAINING_PARAMS = { 'max_depth': [5, 10, 15], 'minbucket': [1, 5, 10], 'hyperplanes': False, }
default_training_params = {'max_depth': [5, 10, 15], 'minbucket': [1, 5, 10], 'hyperplanes': False}
def bubbleSort(arr): for n in range(len(arr)-1,0,-1): for k in range(n): print(f" n {n} - k {k}") if arr[k] > arr[k+1]: temp = arr[k] arr[k] = arr[k+1] arr[k+1] = temp return arr print(bubbleSort([2,6,1,5,9,4,3]))
def bubble_sort(arr): for n in range(len(arr) - 1, 0, -1): for k in range(n): print(f' n {n} - k {k}') if arr[k] > arr[k + 1]: temp = arr[k] arr[k] = arr[k + 1] arr[k + 1] = temp return arr print(bubble_sort([2, 6, 1, 5, 9, 4, 3]))
S = input() if ('N' in S) ^ ('S' in S) or ('W' in S) ^ ('E' in S): print('No') else: print('Yes')
s = input() if ('N' in S) ^ ('S' in S) or ('W' in S) ^ ('E' in S): print('No') else: print('Yes')
long_string = lambda str: len(str) > 12 print(long_string("short")) print(long_string("photosynthesis"))
long_string = lambda str: len(str) > 12 print(long_string('short')) print(long_string('photosynthesis'))
""" Dungeon Game The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the top-left room and must fight his way through the dungeon to rescue the princess. The knight has an initial health point represented by a positive integer. If at any point his health point drops to 0 or below, he dies immediately. Some of the rooms are guarded by demons, so the knight loses health (negative integers) upon entering these rooms; other rooms are either empty (0's) or contain magic orbs that increase the knight's health (positive integers). In order to reach the princess as quickly as possible, the knight decides to move only rightward or downward in each step. Write a function to determine the knight's minimum initial health so that he is able to rescue the princess. For example, given the dungeon below, the initial health of the knight must be at least 7 if he follows the optimal path RIGHT-> RIGHT -> DOWN -> DOWN. -2 (K) -3 3 -5 -10 1 10 30 -5 (P) Note: The knight's health has no upper bound. Any room can contain threats or power-ups, even the first room the knight enters and the bottom-right room where the princess is imprisoned. """ # naive greedy attempt, fails on test #33 class Solution(object): def calculateMinimumHP(self, dungeon): """ :type dungeon: List[List[int]] :rtype: int """ health = 0 minimum = 0 n_inf = float('-inf') x = 0 y = 0 while x != len(dungeon) and y != len(dungeon[0]): print('x', x, 'y', y) health += dungeon[y][x] next_x = dungeon[y][x+1] if x + 1 < len(dungeon[0]) else n_inf next_y = dungeon[y+1][x] if y + 1 < len(dungeon) else n_inf if next_x > next_y: x += 1 else: y += 1 if health < minimum: minimum = health return abs(minimum) + 1 # dynamic attempt class Solution(object): def calculateMinimumHP(self, dungeon): """ :type dungeon: List[List[int]] :rtype: int """ m = len(dungeon) - 1 n = len(dungeon[0]) - 1 n_inf = float('-inf') for i in range(m,-1,-1): for j in range(n,-1,-1): down = dungeon[i+1][j] if i < m else n_inf # edge case right = dungeon[i][j+1] if j < n else n_inf # edge case maximum = max(down, right) if maximum == n_inf: # corner case if dungeon[i][j] > 0: dungeon[i][j] = 0 else: total = maximum + dungeon[i][j] dungeon[i][j] = 0 if total > 0 else total return abs(dungeon[0][0]) + 1
""" Dungeon Game The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the top-left room and must fight his way through the dungeon to rescue the princess. The knight has an initial health point represented by a positive integer. If at any point his health point drops to 0 or below, he dies immediately. Some of the rooms are guarded by demons, so the knight loses health (negative integers) upon entering these rooms; other rooms are either empty (0's) or contain magic orbs that increase the knight's health (positive integers). In order to reach the princess as quickly as possible, the knight decides to move only rightward or downward in each step. Write a function to determine the knight's minimum initial health so that he is able to rescue the princess. For example, given the dungeon below, the initial health of the knight must be at least 7 if he follows the optimal path RIGHT-> RIGHT -> DOWN -> DOWN. -2 (K) -3 3 -5 -10 1 10 30 -5 (P) Note: The knight's health has no upper bound. Any room can contain threats or power-ups, even the first room the knight enters and the bottom-right room where the princess is imprisoned. """ class Solution(object): def calculate_minimum_hp(self, dungeon): """ :type dungeon: List[List[int]] :rtype: int """ health = 0 minimum = 0 n_inf = float('-inf') x = 0 y = 0 while x != len(dungeon) and y != len(dungeon[0]): print('x', x, 'y', y) health += dungeon[y][x] next_x = dungeon[y][x + 1] if x + 1 < len(dungeon[0]) else n_inf next_y = dungeon[y + 1][x] if y + 1 < len(dungeon) else n_inf if next_x > next_y: x += 1 else: y += 1 if health < minimum: minimum = health return abs(minimum) + 1 class Solution(object): def calculate_minimum_hp(self, dungeon): """ :type dungeon: List[List[int]] :rtype: int """ m = len(dungeon) - 1 n = len(dungeon[0]) - 1 n_inf = float('-inf') for i in range(m, -1, -1): for j in range(n, -1, -1): down = dungeon[i + 1][j] if i < m else n_inf right = dungeon[i][j + 1] if j < n else n_inf maximum = max(down, right) if maximum == n_inf: if dungeon[i][j] > 0: dungeon[i][j] = 0 else: total = maximum + dungeon[i][j] dungeon[i][j] = 0 if total > 0 else total return abs(dungeon[0][0]) + 1
word = input() reverse_word = '' for i in range(len(word) - 1, -1 , -1): reverse_word += word[i] print(reverse_word)
word = input() reverse_word = '' for i in range(len(word) - 1, -1, -1): reverse_word += word[i] print(reverse_word)
__all__ = ['make_simple_coil', 'set_parameter', 'make_motion_component', 'get_parameter'] def make_simple_coil(doc, problem_id, array_values): """ function to make a simple coil with 'ArrayOfValues' and 'ProblemID', returns path to the coil """ coil = doc.makeSimpleCoil(problem_id, array_values) return coil def set_parameter(doc, o_path, param, value, mn_consts): """ sets parameter, 'param' of object with path 'opath' as 'value' """ if isinstance(value, str): doc.setParameter(o_path, param, value, mn_consts.infoStringParameter) elif isinstance(value, int): doc.setParameter(o_path, param, str(value), mn_consts.infoNumberParameter) elif isinstance(value, list): doc.setParameter(o_path, param, str(value), mn_consts.infoArrayParameter) def make_motion_component(doc, array_values): """makes a Motion component of 'ArrayOfValues', returns path of the Motion component """ motion = doc.makeMotionComponent(array_values) return motion def get_parameter(mn, o_path, parameter): mn.processCommand("REDIM strArray(0)") mn.processCommand("DIM pType") mn.processCommand("pType = getDocument.getParameter(\"{}\", \"{}\", strArray)" .format(o_path, parameter)) mn.processCommand('Call setVariant(0, strArray, "PYTHON")') param = mn.getVariant(0, "PYTHON") mn.processCommand('Call setVariant(0, pType,"PYTHON")') param_type = mn.getVariant(0, "PYTHON") return param, param_type
__all__ = ['make_simple_coil', 'set_parameter', 'make_motion_component', 'get_parameter'] def make_simple_coil(doc, problem_id, array_values): """ function to make a simple coil with 'ArrayOfValues' and 'ProblemID', returns path to the coil """ coil = doc.makeSimpleCoil(problem_id, array_values) return coil def set_parameter(doc, o_path, param, value, mn_consts): """ sets parameter, 'param' of object with path 'opath' as 'value' """ if isinstance(value, str): doc.setParameter(o_path, param, value, mn_consts.infoStringParameter) elif isinstance(value, int): doc.setParameter(o_path, param, str(value), mn_consts.infoNumberParameter) elif isinstance(value, list): doc.setParameter(o_path, param, str(value), mn_consts.infoArrayParameter) def make_motion_component(doc, array_values): """makes a Motion component of 'ArrayOfValues', returns path of the Motion component """ motion = doc.makeMotionComponent(array_values) return motion def get_parameter(mn, o_path, parameter): mn.processCommand('REDIM strArray(0)') mn.processCommand('DIM pType') mn.processCommand('pType = getDocument.getParameter("{}", "{}", strArray)'.format(o_path, parameter)) mn.processCommand('Call setVariant(0, strArray, "PYTHON")') param = mn.getVariant(0, 'PYTHON') mn.processCommand('Call setVariant(0, pType,"PYTHON")') param_type = mn.getVariant(0, 'PYTHON') return (param, param_type)
x = input() while len(x)>0: # print(x[:3] , x[3:]) if x[:3]=="144": x = x[3:] # print(x) elif x[:2]=="14": # print("2") x = x[2:] elif x[:1]=="1": # print("3") x = x[1:] else: print("NO") break else: print("YES")
x = input() while len(x) > 0: if x[:3] == '144': x = x[3:] elif x[:2] == '14': x = x[2:] elif x[:1] == '1': x = x[1:] else: print('NO') break else: print('YES')
while True: n = int(input('Digite um valor: ')) r = str(input('Quer continuar? [S/N] ')) if r in 'Nn': break
while True: n = int(input('Digite um valor: ')) r = str(input('Quer continuar? [S/N] ')) if r in 'Nn': break
number = int(input()) hours = int(input()) salary = float(input()) print("NUMBER =", number) print("SALARY = U$ %.2f" % (hours * salary))
number = int(input()) hours = int(input()) salary = float(input()) print('NUMBER =', number) print('SALARY = U$ %.2f' % (hours * salary))
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: # 1st solution # O(n) time | O(n) space def countNodes(self, root: Optional[TreeNode]) -> int: if not root: return 0 level = 0 stack = [root] while stack: count = 0 newStack = [] for node in stack: if node.left: newStack.append(node.left) if node.right: newStack.append(node.right) count += 1 level += 1 stack = newStack return 2**(level - 1) - 1 + count # 2nd solution # O(log(n) * log(n)) time | O(log(n)) space def countNodes(self, root: Optional[TreeNode]) -> int: if not root: return 0 leftDepth = self.getDepth(root.left) rightDepth = self.getDepth(root.right) if leftDepth == rightDepth: return pow(2, leftDepth) + self.countNodes(root.right) else: return pow(2, rightDepth) + self.countNodes(root.left) def getDepth(self, root): if not root: return 0 return 1 + self.getDepth(root.left)
class Solution: def count_nodes(self, root: Optional[TreeNode]) -> int: if not root: return 0 level = 0 stack = [root] while stack: count = 0 new_stack = [] for node in stack: if node.left: newStack.append(node.left) if node.right: newStack.append(node.right) count += 1 level += 1 stack = newStack return 2 ** (level - 1) - 1 + count def count_nodes(self, root: Optional[TreeNode]) -> int: if not root: return 0 left_depth = self.getDepth(root.left) right_depth = self.getDepth(root.right) if leftDepth == rightDepth: return pow(2, leftDepth) + self.countNodes(root.right) else: return pow(2, rightDepth) + self.countNodes(root.left) def get_depth(self, root): if not root: return 0 return 1 + self.getDepth(root.left)
print('H\'ello') print(int('8') + 5) print(8,5) '''print('Hi',5) print(3/4)''' ex=print('Hey') (x,y)=7,9 print(x,y) add=5+9 sub=9-7 print(add/sub)
print("H'ello") print(int('8') + 5) print(8, 5) "print('Hi',5)\nprint(3/4)" ex = print('Hey') (x, y) = (7, 9) print(x, y) add = 5 + 9 sub = 9 - 7 print(add / sub)
# SCENARIO: Calculator - Do an addition # GIVEN a running calculator app type(Key.WIN + "calculator" + Key.ENTER) wait("screen-home.png") # AND '5' is displayed click("button-5.png") wait("1471901563200.png") # WHEN I click on '+', '1', '=' click("1471902303880.png") click("button-1.png") click("button-equal.png") # THEN result should be '6' wait("1471902151627.png")
type(Key.WIN + 'calculator' + Key.ENTER) wait('screen-home.png') click('button-5.png') wait('1471901563200.png') click('1471902303880.png') click('button-1.png') click('button-equal.png') wait('1471902151627.png')
def calculate_score(set_of_tags_1, set_of_tags_2): """ :param set_of_tags_1: collection of unique strings :param set_of_tags_2: same as above :return: score based on hashcode scoring """ one_and_two = len(set_of_tags_1.intersection(set_of_tags_2)) one_not_two = len(set_of_tags_1.difference(set_of_tags_2)) two_not_one = len(set_of_tags_2.difference(set_of_tags_1)) return min(one_and_two, one_not_two, two_not_one) def create_slides(photos, vertical_photos_method=0): slides = [] # [([photo ids], {tag ids})] each slide is a tuple ([photo ids], {tag ids}) vertical_photos = [] for photo in photos: if photo[1] == 'h': slides.append(([photo[0]], set(photo[4]))) # tuple containing ([photo ids], {tag ids}) else: vertical_photos.append(photo) if vertical_photos_method == 1: # vertical photo matchmaking index = 0 while index + 1 < len(vertical_photos): slides.append( ( [vertical_photos[index][0], vertical_photos[index + 1][0]], # the photo ids in this slide set(vertical_photos[index][4]).union(set(vertical_photos[index + 1][4])) # the tags in this slide ) ) index += 1 else: used_photos = [] for i in range(len(vertical_photos) - 1): if vertical_photos[i] not in used_photos: low_score = sys.maxsize low_index = -1 for j in range(i + 1, len(vertical_photos)): if vertical_photos[j] not in used_photos: score = len(vertical_photos[i][3] & vertical_photos[j][3]) if score < low_score: low_score = score low_index = j slides.append(( [vertical_photos[i][0], vertical_photos[low_index][0]], vertical_photos[i][3] | vertical_photos[low_index][3] )) used_photos.append(vertical_photos[i]) used_photos.append(vertical_photos[low_index]) return slides
def calculate_score(set_of_tags_1, set_of_tags_2): """ :param set_of_tags_1: collection of unique strings :param set_of_tags_2: same as above :return: score based on hashcode scoring """ one_and_two = len(set_of_tags_1.intersection(set_of_tags_2)) one_not_two = len(set_of_tags_1.difference(set_of_tags_2)) two_not_one = len(set_of_tags_2.difference(set_of_tags_1)) return min(one_and_two, one_not_two, two_not_one) def create_slides(photos, vertical_photos_method=0): slides = [] vertical_photos = [] for photo in photos: if photo[1] == 'h': slides.append(([photo[0]], set(photo[4]))) else: vertical_photos.append(photo) if vertical_photos_method == 1: index = 0 while index + 1 < len(vertical_photos): slides.append(([vertical_photos[index][0], vertical_photos[index + 1][0]], set(vertical_photos[index][4]).union(set(vertical_photos[index + 1][4])))) index += 1 else: used_photos = [] for i in range(len(vertical_photos) - 1): if vertical_photos[i] not in used_photos: low_score = sys.maxsize low_index = -1 for j in range(i + 1, len(vertical_photos)): if vertical_photos[j] not in used_photos: score = len(vertical_photos[i][3] & vertical_photos[j][3]) if score < low_score: low_score = score low_index = j slides.append(([vertical_photos[i][0], vertical_photos[low_index][0]], vertical_photos[i][3] | vertical_photos[low_index][3])) used_photos.append(vertical_photos[i]) used_photos.append(vertical_photos[low_index]) return slides
""" Configuration of 'memos' Flask app. Edit to fit development or deployment environment. """ ### Flask settings for ix PORT=6291 # The port I run Flask on SERVER_NAME = "ix.cs.uoregon.edu:{}".format(PORT) DEBUG = False ### Flask settings for local machine PORT=5000 # The port I run Flask on DEBUG = True ### MongoDB settings MONGO_PORT=27017 # modify to where your mongodb is listening, ex: 27017 or 4570 ### The following are for a Mongo user you create for accessing your ### memos database. It should not be the same as your database administrator ### account. MONGO_PW = "iremember" MONGO_USER = "memoproj" MONGO_URL = "mongodb://{}:{}@localhost:{}/memos".format(MONGO_USER,MONGO_PW,MONGO_PORT) #MONGO_URL for ix #MONGO_URL = "mongodb://{}:{}@ix.cs.uoregon.edu:{}/memos".format(MONGO_USER,MONGO_PW,MONGO_PORT)
""" Configuration of 'memos' Flask app. Edit to fit development or deployment environment. """ port = 6291 server_name = 'ix.cs.uoregon.edu:{}'.format(PORT) debug = False port = 5000 debug = True mongo_port = 27017 mongo_pw = 'iremember' mongo_user = 'memoproj' mongo_url = 'mongodb://{}:{}@localhost:{}/memos'.format(MONGO_USER, MONGO_PW, MONGO_PORT)
class Solution(object): def romanToInt(self, s): """ :type s: str :rtype: int """ if len(s) == 0: return 0 else: ref = { "I" : 1, "V" : 5, "X" : 10, "L" : 50, "C" : 100, "D" : 500, "M" : 1000 } sum = ref[s[-1]] # print(sum) for i in range(len(s)-2,-1,-1): print(i,sum) if(ref[s[i]] < ref[s[i+1]]): sum -= ref[s[i]] else: sum += ref[s[i]] return sum
class Solution(object): def roman_to_int(self, s): """ :type s: str :rtype: int """ if len(s) == 0: return 0 else: ref = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} sum = ref[s[-1]] for i in range(len(s) - 2, -1, -1): print(i, sum) if ref[s[i]] < ref[s[i + 1]]: sum -= ref[s[i]] else: sum += ref[s[i]] return sum
def cc(M): m, n = len(M), len(M[0]) ly, lx = [], [] for j in range(1, m): for i in range(n): if M[j][i] != M[j-1][i]: ly.append(j) break for i in range(1, n): for j in range(m): if M[j][i] != M[j][i-1]: lx.append(i) break C = [] for j in range(len(ly)-1): C.append([]) for i in range(len(lx)-1): C[j].append(M[ly[j]][lx[i]]) print("\n".join("".join(c) for c in C)) print() cc(["----------", "|....x...|", "|....xxxx|", "|....x...|", "|........|", "|........|", "----------"]) cc(["XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "X X X", "X X X", "X X X", "X X X", "X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "X X X X", "X X X X", "X X X X", "X X X X", "X XXXXXXXXXXXXXXX X X", "X X X X", "X X X X", "X X X X", "X X X X", "X X X X", "X X X X", "X X X X", "XXXXXXXXXXXXXX X X", "X X X", "X X X", "X X X", "X X X", "X X X", "X X X", "X X X", "X X X", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"]) cc(["-----|", "|O |", "| XX|", "| X |", "| X |", "------"]) cc(["-----------", "|H | |", "| | | |", "|-|-|-----|", "| | | |", "| | | |", "| | | W |", "| | | |", "-----------"])
def cc(M): (m, n) = (len(M), len(M[0])) (ly, lx) = ([], []) for j in range(1, m): for i in range(n): if M[j][i] != M[j - 1][i]: ly.append(j) break for i in range(1, n): for j in range(m): if M[j][i] != M[j][i - 1]: lx.append(i) break c = [] for j in range(len(ly) - 1): C.append([]) for i in range(len(lx) - 1): C[j].append(M[ly[j]][lx[i]]) print('\n'.join((''.join(c) for c in C))) print() cc(['----------', '|....x...|', '|....xxxx|', '|....x...|', '|........|', '|........|', '----------']) cc(['XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'X X X', 'X X X', 'X X X', 'X X X', 'X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'X X X X', 'X X X X', 'X X X X', 'X X X X', 'X XXXXXXXXXXXXXXX X X', 'X X X X', 'X X X X', 'X X X X', 'X X X X', 'X X X X', 'X X X X', 'X X X X', 'XXXXXXXXXXXXXX X X', 'X X X', 'X X X', 'X X X', 'X X X', 'X X X', 'X X X', 'X X X', 'X X X', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX']) cc(['-----|', '|O |', '| XX|', '| X |', '| X |', '------']) cc(['-----------', '|H | |', '| | | |', '|-|-|-----|', '| | | |', '| | | |', '| | | W |', '| | | |', '-----------'])
""" You are given a string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome you can find by performing this transformation. Example 1: Input: s = 'aacecaaa', Output: 'aaacecaaa' Example 2: Input: s = 'abcd', Output: 'dcbabcd' """ """ Seeing as we can only add letters to the front, this is equivalent to finding the longest palindrome on the left, then adding the reversed remainder on the right to the start of the string. We thus count from the right leftwards, finding the first (largest) palindrome, and add the reversed remainder before returning. """ def shortest_palindrome(s): if not s: return s for i in reversed(range(len(s)+1)): if s[:i] == s[:i][::-1]: break return s[i:][::-1] + s assert shortest_palindrome('aacecaaa') == 'aaacecaaa' assert shortest_palindrome('abcd') == 'dcbabcd'
""" You are given a string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome you can find by performing this transformation. Example 1: Input: s = 'aacecaaa', Output: 'aaacecaaa' Example 2: Input: s = 'abcd', Output: 'dcbabcd' """ '\nSeeing as we can only add letters to the front, this is equivalent to finding the longest palindrome on the left, then\nadding the reversed remainder on the right to the start of the string. We thus count from the right leftwards, finding\nthe first (largest) palindrome, and add the reversed remainder before returning.\n' def shortest_palindrome(s): if not s: return s for i in reversed(range(len(s) + 1)): if s[:i] == s[:i][::-1]: break return s[i:][::-1] + s assert shortest_palindrome('aacecaaa') == 'aaacecaaa' assert shortest_palindrome('abcd') == 'dcbabcd'
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ Script for generating a ROM contain un aligned 512 bit data words. """ # Misalignment tuples: (amount of bus words with this misalignment, misalignment in bytes) # The amount of bus words with a certain misalignment may never be less than 2 bytes_in_bus_word = 64 misalignments = [(5, 4), (11, 63), (6, 0), (2, 30), (4, 0), (3, 55), (3, 0)] # Determine contents of ROMs misaligned_bus_words = [] aligned_bus_words = [] alignment_rom_values = [] alignment_rom_values2 = [] current_nibble = 0 for misalignment in misalignments: for i in range(misalignment[0]): next_nibble = (current_nibble + 1) % 10 misaligned_string = str(current_nibble)*misalignment[1]*2 + str(next_nibble)*(bytes_in_bus_word-misalignment[1])*2 aligned_string = str(next_nibble)*bytes_in_bus_word*2 current_nibble = next_nibble misaligned_bus_words.append(misaligned_string) # Last misaligned bus word contains the start of a bus word that can not be aligned because its end part is missing # Therefore, we only add the "aligned" version of this last bus word to the list of expected bus words if it completely present in the misaligned one, i.e. when misalignment=0 if i != misalignment[0]-1 or aligned_string == misaligned_string: aligned_bus_words.append(aligned_string) alignment_rom_values2.append(misalignment[1]) alignment_rom_values.append(misalignment[1]) # Generate rom containing misaligned bus words file = open("ShifterRecombiner_ROM.vhd", "w+") file.write("-- Misaligned input of the ShifterRecombiner\n") file.write("type mem1 is array (0 to {rom_size}) of std_logic_vector(511 downto 0);\n".format(rom_size=len(misaligned_bus_words)-1)) file.write("constant MisalignedBusWord_ROM : mem1 := (\n") numbers_counter = 0 for i, bw in enumerate(misaligned_bus_words): if i != 0: file.write(",\n") file.write(" {index} => x\"{bus_word}\"". format(index=i, bus_word=bw)) file.write("\n);") file.write("\n\n") # Generate rom containing degrees of misalignment file.write("--Alignment of all bus words in MisalignedBusWord_ROM\n") file.write("type mem2 is array (0 to {rom_size}) of integer;\n".format(rom_size=len(misaligned_bus_words)-1)) file.write("constant Alignment_ROM : mem2 := (\n") numbers_counter = 0 for i, alignment in enumerate(alignment_rom_values): if i != 0: file.write(",\n") file.write(" {index} => {alignment_value}". format(index=i, alignment_value=alignment)) file.write("\n);") file.write("\n\n") # Generate rom containing aligned bus words (for checking results) file.write("--List of aligned bus words we expect the ShifterRecombiner to produce\n") file.write("type mem3 is array (0 to {rom_size}) of std_logic_vector(511 downto 0);\n".format(rom_size=len(aligned_bus_words)-1)) file.write("constant AlignedBusWord_ROM : mem3 := (\n") numbers_counter = 0 for i, bw in enumerate(aligned_bus_words): if i != 0: file.write(",\n") file.write(" {index} => x\"{bus_word}\"". format(index=i, bus_word=bw)) file.write("\n);") file.write("\n\n") # Generate rom containing degrees of misalignment file.write("--Original alignment of all bus words in AlignedBusWord_ROM\n") file.write("type mem4 is array (0 to {rom_size}) of integer;\n".format(rom_size=len(alignment_rom_values2)-1)) file.write("constant Alignment2_ROM : mem4 := (\n") numbers_counter = 0 for i, alignment in enumerate(alignment_rom_values2): if i != 0: file.write(",\n") file.write(" {index} => {alignment_value}". format(index=i, alignment_value=alignment)) file.write("\n);") file.write("\n\n")
""" Script for generating a ROM contain un aligned 512 bit data words. """ bytes_in_bus_word = 64 misalignments = [(5, 4), (11, 63), (6, 0), (2, 30), (4, 0), (3, 55), (3, 0)] misaligned_bus_words = [] aligned_bus_words = [] alignment_rom_values = [] alignment_rom_values2 = [] current_nibble = 0 for misalignment in misalignments: for i in range(misalignment[0]): next_nibble = (current_nibble + 1) % 10 misaligned_string = str(current_nibble) * misalignment[1] * 2 + str(next_nibble) * (bytes_in_bus_word - misalignment[1]) * 2 aligned_string = str(next_nibble) * bytes_in_bus_word * 2 current_nibble = next_nibble misaligned_bus_words.append(misaligned_string) if i != misalignment[0] - 1 or aligned_string == misaligned_string: aligned_bus_words.append(aligned_string) alignment_rom_values2.append(misalignment[1]) alignment_rom_values.append(misalignment[1]) file = open('ShifterRecombiner_ROM.vhd', 'w+') file.write('-- Misaligned input of the ShifterRecombiner\n') file.write('type mem1 is array (0 to {rom_size}) of std_logic_vector(511 downto 0);\n'.format(rom_size=len(misaligned_bus_words) - 1)) file.write('constant MisalignedBusWord_ROM : mem1 := (\n') numbers_counter = 0 for (i, bw) in enumerate(misaligned_bus_words): if i != 0: file.write(',\n') file.write(' {index} => x"{bus_word}"'.format(index=i, bus_word=bw)) file.write('\n);') file.write('\n\n') file.write('--Alignment of all bus words in MisalignedBusWord_ROM\n') file.write('type mem2 is array (0 to {rom_size}) of integer;\n'.format(rom_size=len(misaligned_bus_words) - 1)) file.write('constant Alignment_ROM : mem2 := (\n') numbers_counter = 0 for (i, alignment) in enumerate(alignment_rom_values): if i != 0: file.write(',\n') file.write(' {index} => {alignment_value}'.format(index=i, alignment_value=alignment)) file.write('\n);') file.write('\n\n') file.write('--List of aligned bus words we expect the ShifterRecombiner to produce\n') file.write('type mem3 is array (0 to {rom_size}) of std_logic_vector(511 downto 0);\n'.format(rom_size=len(aligned_bus_words) - 1)) file.write('constant AlignedBusWord_ROM : mem3 := (\n') numbers_counter = 0 for (i, bw) in enumerate(aligned_bus_words): if i != 0: file.write(',\n') file.write(' {index} => x"{bus_word}"'.format(index=i, bus_word=bw)) file.write('\n);') file.write('\n\n') file.write('--Original alignment of all bus words in AlignedBusWord_ROM\n') file.write('type mem4 is array (0 to {rom_size}) of integer;\n'.format(rom_size=len(alignment_rom_values2) - 1)) file.write('constant Alignment2_ROM : mem4 := (\n') numbers_counter = 0 for (i, alignment) in enumerate(alignment_rom_values2): if i != 0: file.write(',\n') file.write(' {index} => {alignment_value}'.format(index=i, alignment_value=alignment)) file.write('\n);') file.write('\n\n')
# TODO: include seccomp # plat/nonplat files are only found on Android N (>8.0) as part of the Treble project # Treble Reference: https://source.android.com/security/selinux/images/SELinux_Treble.pdf SEPOLICY_FILES = [ 'sepolicy', 'precompiled_sepolicy', # Treble devices (if it has been compiled) 'selinux_version', # may or may not be there 'genfs_contexts', # not sure if this exists - found in binary sepolicy # file 'file_contexts', 'file_contexts.bin', # found in newer Android versions (>7.0) 'plat_file_contexts', 'nonplat_file_contexts', 'vendor_file_contexts', # seapp 'seapp_contexts', 'plat_seapp_contexts', 'nonplat_seapp_contexts', 'vendor_seapp_contexts', # property 'property_contexts', 'plat_property_contexts', 'nonplat_property_contexts', 'vendor_property_contexts', # service 'service_contexts', 'plat_service_contexts', 'nonplat_service_contexts', 'vndservice_contexts', # hwservice 'hwservice_contexts', 'plat_hwservice_contexts', 'nonplat_hwservice_contexts', 'vendor_hwservice_contexts', # TODO: also get fs_config_files and fs_config_dirs # Middleware MAC 'mac_permissions.xml', # TODO: Treble has /vendor and /system versions of this 'ifw.xml', 'eops.xml' ] # Make sure there are no duplicates assert len(SEPOLICY_FILES) == len(set(SEPOLICY_FILES)) class SELinuxContext: def __init__(self, user, role, ty, mls): self.user = user self.role = role self.type = ty self.mls = mls @staticmethod def FromString(context): parts = context.split(":") if len(parts) < 4: raise ValueError("Invalid SELinux label '%s'" % context) se_user = parts[0] se_role = parts[1] se_type = parts[2] # MLS is a special case and may also contain ':' se_mls = ":".join(parts[3:]) return SELinuxContext(se_user, se_role, se_type, se_mls) def __str__(self): return "%s:%s:%s:%s" % (self.user, self.role, self.type, self.mls) def __repr__(self): return "<SELinuxContext %s>" % (str(self)) def __eq__(self, rhs): if isinstance(rhs, SELinuxContext): return str(self) == str(rhs) return NotImplemented
sepolicy_files = ['sepolicy', 'precompiled_sepolicy', 'selinux_version', 'genfs_contexts', 'file_contexts', 'file_contexts.bin', 'plat_file_contexts', 'nonplat_file_contexts', 'vendor_file_contexts', 'seapp_contexts', 'plat_seapp_contexts', 'nonplat_seapp_contexts', 'vendor_seapp_contexts', 'property_contexts', 'plat_property_contexts', 'nonplat_property_contexts', 'vendor_property_contexts', 'service_contexts', 'plat_service_contexts', 'nonplat_service_contexts', 'vndservice_contexts', 'hwservice_contexts', 'plat_hwservice_contexts', 'nonplat_hwservice_contexts', 'vendor_hwservice_contexts', 'mac_permissions.xml', 'ifw.xml', 'eops.xml'] assert len(SEPOLICY_FILES) == len(set(SEPOLICY_FILES)) class Selinuxcontext: def __init__(self, user, role, ty, mls): self.user = user self.role = role self.type = ty self.mls = mls @staticmethod def from_string(context): parts = context.split(':') if len(parts) < 4: raise value_error("Invalid SELinux label '%s'" % context) se_user = parts[0] se_role = parts[1] se_type = parts[2] se_mls = ':'.join(parts[3:]) return se_linux_context(se_user, se_role, se_type, se_mls) def __str__(self): return '%s:%s:%s:%s' % (self.user, self.role, self.type, self.mls) def __repr__(self): return '<SELinuxContext %s>' % str(self) def __eq__(self, rhs): if isinstance(rhs, SELinuxContext): return str(self) == str(rhs) return NotImplemented
load(":pkg_config.bzl", "pkg_config_repository") def add_repositories(): pkg_config_repository( name = "glfw3", spec = "glfw3", includes = [ "GLFW/*.h", ], ) pkg_config_repository( name = "glew", spec = "glew", includes = [ "GL/glew.h", ], ) pkg_config_repository( name = "libpng", spec = "libpng", includes = [ "png.h", "pngconf.h", "pnglibconf.h", ], )
load(':pkg_config.bzl', 'pkg_config_repository') def add_repositories(): pkg_config_repository(name='glfw3', spec='glfw3', includes=['GLFW/*.h']) pkg_config_repository(name='glew', spec='glew', includes=['GL/glew.h']) pkg_config_repository(name='libpng', spec='libpng', includes=['png.h', 'pngconf.h', 'pnglibconf.h'])
ARTICLE_URL = 's/{slug}/' ARTICLE_SAVE_AS = 's/{slug}/index.html' DIRECT_TEMPLATES = (('index', 'tags', 'categories','archives', 'submit', 'search', '404')) PAGE_URL = 'content/pages/{slug}.html' PAGE_SAVE_AS = '{slug}.html' PLUGIN_PATH = 'pelican-plugins' PLUGINS = ['tipue_search'] RECENT_ARTICLES_COUNT = 5 # Sets # of articles to be shown on front page SITENAME = 'Merge Stories' SITE_DESCRIPTION = 'A project of OpenHatch' SITEURL = 'http://mergestories.com' SUMMARY_MAX_LENGTH = 100 THEME = './themes/pelican-elegant' # Specify a customized theme, via absolute path TIMEZONE = 'America/New_York'
article_url = 's/{slug}/' article_save_as = 's/{slug}/index.html' direct_templates = ('index', 'tags', 'categories', 'archives', 'submit', 'search', '404') page_url = 'content/pages/{slug}.html' page_save_as = '{slug}.html' plugin_path = 'pelican-plugins' plugins = ['tipue_search'] recent_articles_count = 5 sitename = 'Merge Stories' site_description = 'A project of OpenHatch' siteurl = 'http://mergestories.com' summary_max_length = 100 theme = './themes/pelican-elegant' timezone = 'America/New_York'
""" 39. Combination Sum Medium Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different. It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input. Example 1: Input: candidates = [2,3,6,7], target = 7 Output: [[2,2,3],[7]] Explanation: 2 and 3 are candidates, and 2 + 2 + 3 = 7. Note that 2 can be used multiple times. 7 is a candidate, and 7 = 7. These are the only two combinations. Example 2: Input: candidates = [2,3,5], target = 8 Output: [[2,2,2,2],[2,3,3],[3,5]] Example 3: Input: candidates = [2], target = 1 Output: [] Example 4: Input: candidates = [1], target = 1 Output: [[1]] Example 5: Input: candidates = [1], target = 2 Output: [[1,1]] Constraints: 1 <= candidates.length <= 30 1 <= candidates[i] <= 200 All elements of candidates are distinct. 1 <= target <= 500 """ # V0 # IDEA : DFS + BACKTRACK class Solution(object): def combinationSum(self, candidates, target): def dfs(tmp): if sum(tmp) == target: tmp.sort() if tmp not in res: res.append(tmp) return if sum(tmp) > target: return for c in candidates: ### NOTE : we can add tmp with [c] in func arg directly (as below) dfs(tmp + [c]) res = [] tmp = [] dfs(tmp) return res # V0' # IDEA : DFS + BACKTRACK class Solution(object): def combinationSum(self, candidates, target): res = [] candidates.sort() self.dfs(candidates, target, 0, res, []) return res def dfs(self, nums, target, index, res, path): if target < 0: return elif target == 0: res.append(path) return for i in range(index, len(nums)): if nums[index] > target: return self.dfs(nums, target - nums[i], i, res, path + [nums[i]]) # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/79322462 # IDEA : DFS class Solution(object): def combinationSum(self, candidates, target): """ :type candidates: List[int] :type target: int :rtype: List[List[int]] """ res = [] candidates.sort() # sort the candidates first, for the following "if nums[index] > target: return" logic n " self.dfs(candidates, target, 0, res, []) return res def dfs(self, nums, target, index, res, path): if target < 0: return elif target == 0: res.append(path) return for i in range(index, len(nums)): if nums[index] > target: # if the current value in candidates already > target, that means there is no such collection can make its sum as same as target return self.dfs(nums, target - nums[i], i, res, path + [nums[i]]) ### Test case : dev # V1' # https://leetcode.com/problems/combination-sum/discuss/16554/Share-My-Python-Solution-beating-98.17 # IDEA : BACKTRACKING class Solution(object): def combinationSum(self, candidates, target): result = [] candidates = sorted(candidates) def dfs(remain, stack): if remain == 0: result.append(stack) return for item in candidates: if item > remain: break if stack and item < stack[-1]: continue else: dfs(remain - item, stack + [item]) dfs(target, []) return result # V1'' # https://www.jiuzhang.com/solution/combination-sum/#tag-highlight-lang-python class Solution: # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationSum(self, candidates, target): candidates = sorted(list(set(candidates))) results = [] self.dfs(candidates, target, 0, [], results) return results def dfs(self, candidates, target, start, combination, results): if target < 0: return if target == 0: # deepcooy return results.append(list(combination)) for i in range(start, len(candidates)): # [2] => [2,2] combination.append(candidates[i]) self.dfs(candidates, target - candidates[i], i, combination, results) # [2,2] => [2] combination.pop() # backtracking # V2 # Time: O(k * n^k) # Space: O(k) class Solution(object): # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationSum(self, candidates, target): result = [] self.combinationSumRecu(sorted(candidates), result, 0, [], target) return result def combinationSumRecu(self, candidates, result, start, intermediate, target): if target == 0: result.append(list(intermediate)) while start < len(candidates) and candidates[start] <= target: intermediate.append(candidates[start]) self.combinationSumRecu(candidates, result, start, intermediate, target - candidates[start]) intermediate.pop() start += 1
""" 39. Combination Sum Medium Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different. It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input. Example 1: Input: candidates = [2,3,6,7], target = 7 Output: [[2,2,3],[7]] Explanation: 2 and 3 are candidates, and 2 + 2 + 3 = 7. Note that 2 can be used multiple times. 7 is a candidate, and 7 = 7. These are the only two combinations. Example 2: Input: candidates = [2,3,5], target = 8 Output: [[2,2,2,2],[2,3,3],[3,5]] Example 3: Input: candidates = [2], target = 1 Output: [] Example 4: Input: candidates = [1], target = 1 Output: [[1]] Example 5: Input: candidates = [1], target = 2 Output: [[1,1]] Constraints: 1 <= candidates.length <= 30 1 <= candidates[i] <= 200 All elements of candidates are distinct. 1 <= target <= 500 """ class Solution(object): def combination_sum(self, candidates, target): def dfs(tmp): if sum(tmp) == target: tmp.sort() if tmp not in res: res.append(tmp) return if sum(tmp) > target: return for c in candidates: dfs(tmp + [c]) res = [] tmp = [] dfs(tmp) return res class Solution(object): def combination_sum(self, candidates, target): res = [] candidates.sort() self.dfs(candidates, target, 0, res, []) return res def dfs(self, nums, target, index, res, path): if target < 0: return elif target == 0: res.append(path) return for i in range(index, len(nums)): if nums[index] > target: return self.dfs(nums, target - nums[i], i, res, path + [nums[i]]) class Solution(object): def combination_sum(self, candidates, target): """ :type candidates: List[int] :type target: int :rtype: List[List[int]] """ res = [] candidates.sort() self.dfs(candidates, target, 0, res, []) return res def dfs(self, nums, target, index, res, path): if target < 0: return elif target == 0: res.append(path) return for i in range(index, len(nums)): if nums[index] > target: return self.dfs(nums, target - nums[i], i, res, path + [nums[i]]) class Solution(object): def combination_sum(self, candidates, target): result = [] candidates = sorted(candidates) def dfs(remain, stack): if remain == 0: result.append(stack) return for item in candidates: if item > remain: break if stack and item < stack[-1]: continue else: dfs(remain - item, stack + [item]) dfs(target, []) return result class Solution: def combination_sum(self, candidates, target): candidates = sorted(list(set(candidates))) results = [] self.dfs(candidates, target, 0, [], results) return results def dfs(self, candidates, target, start, combination, results): if target < 0: return if target == 0: return results.append(list(combination)) for i in range(start, len(candidates)): combination.append(candidates[i]) self.dfs(candidates, target - candidates[i], i, combination, results) combination.pop() class Solution(object): def combination_sum(self, candidates, target): result = [] self.combinationSumRecu(sorted(candidates), result, 0, [], target) return result def combination_sum_recu(self, candidates, result, start, intermediate, target): if target == 0: result.append(list(intermediate)) while start < len(candidates) and candidates[start] <= target: intermediate.append(candidates[start]) self.combinationSumRecu(candidates, result, start, intermediate, target - candidates[start]) intermediate.pop() start += 1
print("Lyrics of the Song 99 Bottles of Beer") bottlecount = int(99) confirm = int (1) i = bottlecount while(i>1): print(f"{bottlecount} bottles of beer on the wall, {bottlecount} bottles of beer. \n") bottlecount=bottlecount-1 i-=1 print(f"Take one down and pass it around, {bottlecount} bottles of beer in the wall \n\n") print(f"{bottlecount} bottle of beer on the wall, {bottlecount} bottle of beer. \n") print("Take one down and pass it around, no more bottle of beer in the wall \n\n") print("No more bottles of beer on the wall, no more bottle of beer. \n") print("Go to store and buy some more, 99 bottles of beer.")
print('Lyrics of the Song 99 Bottles of Beer') bottlecount = int(99) confirm = int(1) i = bottlecount while i > 1: print(f'{bottlecount} bottles of beer on the wall, {bottlecount} bottles of beer. \n') bottlecount = bottlecount - 1 i -= 1 print(f'Take one down and pass it around, {bottlecount} bottles of beer in the wall \n\n') print(f'{bottlecount} bottle of beer on the wall, {bottlecount} bottle of beer. \n') print('Take one down and pass it around, no more bottle of beer in the wall \n\n') print('No more bottles of beer on the wall, no more bottle of beer. \n') print('Go to store and buy some more, 99 bottles of beer.')
#!/usr/bin/env python3 grid = [['x', 'x', 1, 'x', 'x'], ['x', 2, 3, 4, 'x'], [ 5, 6, 7, 8, 9], ['x', 'A', 'B', 'C', 'x'], ['x', 'x', 'D', 'x', 'x']] XMAX = len(grid[0]) - 1 YMAX = len(grid) - 1 x, y = 0, 2 nums = [] with open('input.txt') as f: for line in f: line = line.strip() for direction in line: nextx = x nexty = y if direction == 'U': nexty = max(y - 1, 0) elif direction == 'R': nextx = min(x + 1, XMAX) elif direction == 'D': nexty = min(y + 1, YMAX) elif direction == 'L': nextx = max(x - 1, 0) if grid[nexty][nextx] == 'x': continue x = nextx y = nexty nums.append(str(grid[y][x])) print(''.join(nums))
grid = [['x', 'x', 1, 'x', 'x'], ['x', 2, 3, 4, 'x'], [5, 6, 7, 8, 9], ['x', 'A', 'B', 'C', 'x'], ['x', 'x', 'D', 'x', 'x']] xmax = len(grid[0]) - 1 ymax = len(grid) - 1 (x, y) = (0, 2) nums = [] with open('input.txt') as f: for line in f: line = line.strip() for direction in line: nextx = x nexty = y if direction == 'U': nexty = max(y - 1, 0) elif direction == 'R': nextx = min(x + 1, XMAX) elif direction == 'D': nexty = min(y + 1, YMAX) elif direction == 'L': nextx = max(x - 1, 0) if grid[nexty][nextx] == 'x': continue x = nextx y = nexty nums.append(str(grid[y][x])) print(''.join(nums))
#!/usr/bin/env python """ Tests for the `edx_course_team_api` models module. """
""" Tests for the `edx_course_team_api` models module. """
MAX_SEED=99999999 UNK="_UNK" WORD_START="<w>" WORD_END="</w>" START_TAG=0 END_TAG=1
max_seed = 99999999 unk = '_UNK' word_start = '<w>' word_end = '</w>' start_tag = 0 end_tag = 1
#!/usr/bin/env python3 """ ZOOM POLL VIEWER v1.0 RESPONSE CLASS """ class Response: def __init__(self, student, session, poll): self._student = student self._session = session self._poll = poll self._answers = {} # Structure of _answers = { <question_A> : [<choice_1>, <choice_2>], <question_B> : [<choice_2>]} self._grade = None def get_student(self): # Returns student object return self._student def get_session(self): # Returns session object return self._session def get_poll(self): # Returns poll object return self._poll def add_answer(self, question_text, answer_texts): # Adds question and returns its object question = self._poll.get_question(question_text) choices = [] if isinstance(answer_texts, list): for answer_text in answer_texts: choice = question.add_choice(answer_text, 0) choices.append(choice) else: choice = question.add_choice(answer_texts, 0) choices.append(choice) if question not in self._answers.keys(): self._answers[question] = [] for choice in choices: self._answers[question].append(choice) def get_grade(self): # Returns grade of reponse if self._grade is None: self.calculate_grade() return self._grade def calculate_grade(self): # Calculates and sets grade true_answers = 0 false_answers = 0 for question in self._poll.get_questions(): correct_choices = question.get_correct_choices() if question in self._answers.keys(): if len(correct_choices) == len(self._answers[question]) and all(i in correct_choices for i in self._answers[question]): true_answers += 1 else: false_answers += 1 self._grade = round(true_answers / (self._poll.get_number_of_questions()) * 100, 2)
""" ZOOM POLL VIEWER v1.0 RESPONSE CLASS """ class Response: def __init__(self, student, session, poll): self._student = student self._session = session self._poll = poll self._answers = {} self._grade = None def get_student(self): return self._student def get_session(self): return self._session def get_poll(self): return self._poll def add_answer(self, question_text, answer_texts): question = self._poll.get_question(question_text) choices = [] if isinstance(answer_texts, list): for answer_text in answer_texts: choice = question.add_choice(answer_text, 0) choices.append(choice) else: choice = question.add_choice(answer_texts, 0) choices.append(choice) if question not in self._answers.keys(): self._answers[question] = [] for choice in choices: self._answers[question].append(choice) def get_grade(self): if self._grade is None: self.calculate_grade() return self._grade def calculate_grade(self): true_answers = 0 false_answers = 0 for question in self._poll.get_questions(): correct_choices = question.get_correct_choices() if question in self._answers.keys(): if len(correct_choices) == len(self._answers[question]) and all((i in correct_choices for i in self._answers[question])): true_answers += 1 else: false_answers += 1 self._grade = round(true_answers / self._poll.get_number_of_questions() * 100, 2)
map = { '0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', '7': '7', '8': '8', '9': '9', 'a': 'd', 'b': 'e', 'c': 'f', 'd': 'a', 'e': 'b', 'f': 'c'} input = ['4ab56415e91e6d5172ee79d9810e30be5da8af18', 'c19a3ca5251db76b221048ca0a445fc39ba576a0', 'fdb2c9cd51459c2cc38c92af472f3275f8a6b393', '6d586747083fb6b20e099ba962a3f5f457cbaddb', '5587adf42a547b141071cedc7f0347955516ae13'] def mapping(s): ret = '' for c in s: ret += map[c] return ret for i in input: print(mapping(i))
map = {'0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', '7': '7', '8': '8', '9': '9', 'a': 'd', 'b': 'e', 'c': 'f', 'd': 'a', 'e': 'b', 'f': 'c'} input = ['4ab56415e91e6d5172ee79d9810e30be5da8af18', 'c19a3ca5251db76b221048ca0a445fc39ba576a0', 'fdb2c9cd51459c2cc38c92af472f3275f8a6b393', '6d586747083fb6b20e099ba962a3f5f457cbaddb', '5587adf42a547b141071cedc7f0347955516ae13'] def mapping(s): ret = '' for c in s: ret += map[c] return ret for i in input: print(mapping(i))
'''Basic calculator operations using python Command Line Interface and Menu are in progress''' print(" modules | CALCULATOR | INFO | ") def arCalc(): ''' printing Menu for Showning the available operations''' print("PYTHON CALCULATOR 2.0 \n 1.Addition \n 2.Subtraction \n 3.Multiplication \n 4.Division") def add(a,b): print( a+b) def sub(a,b): print(a-b) def mul(a,b): print(a*b) def div(a,b): print (a//b) '''Accepting Input Operators and Operant selection index''' a=int(input("Enter first number: ")) b=int(input("Enter second number: ")) c=int(input("Enter the Operation Index: | 1 | 2 | 3 | 4 | \n")) '''if condition ladder executes the selected key index operation''' if (c==1): add(a,b) elif(c==2): add(a,b) elif(c==3): mul(a,b) elif(c==4): div(a,b) '''additional CLI command interface to show details about Calculator program''' def info(): print("calculator made using python language by Arjun Raghunandanan") arCalc()
"""Basic calculator operations using python Command Line Interface and Menu are in progress""" print(' modules | CALCULATOR | INFO | ') def ar_calc(): """ printing Menu for Showning the available operations""" print('PYTHON CALCULATOR 2.0 \n 1.Addition \n 2.Subtraction \n 3.Multiplication \n 4.Division') def add(a, b): print(a + b) def sub(a, b): print(a - b) def mul(a, b): print(a * b) def div(a, b): print(a // b) 'Accepting Input Operators and Operant selection index' a = int(input('Enter first number: ')) b = int(input('Enter second number: ')) c = int(input('Enter the Operation Index: | 1 | 2 | 3 | 4 | \n')) 'if condition ladder executes the selected key index operation' if c == 1: add(a, b) elif c == 2: add(a, b) elif c == 3: mul(a, b) elif c == 4: div(a, b) 'additional CLI command interface to show details about Calculator program' def info(): print('calculator made using python language by Arjun Raghunandanan') ar_calc()
''' What is Matplotlib? Matplotlib is a low level graph plotting library in python that serves as a visualization utility. Matplotlib was created by John D. Hunter. Matplotlib is open source and we can use it freely. Matplotlib is mostly written in python, a few segments are written in C, Objective-C and Javascript for Platform compatibility. Where is the Matplotlib Codebase? The source code for Matplotlib is located at this github repository https://github.com/matplotlib/matplotlib '''
""" What is Matplotlib? Matplotlib is a low level graph plotting library in python that serves as a visualization utility. Matplotlib was created by John D. Hunter. Matplotlib is open source and we can use it freely. Matplotlib is mostly written in python, a few segments are written in C, Objective-C and Javascript for Platform compatibility. Where is the Matplotlib Codebase? The source code for Matplotlib is located at this github repository https://github.com/matplotlib/matplotlib """
load("@rules_python//python/pip_install:pip_repository.bzl", "whl_library") all_requirements = ["@rules_pycross_pypi_deps_build//:pkg", "@rules_pycross_pypi_deps_dacite//:pkg", "@rules_pycross_pypi_deps_installer//:pkg", "@rules_pycross_pypi_deps_packaging//:pkg", "@rules_pycross_pypi_deps_pep517//:pkg", "@rules_pycross_pypi_deps_poetry_core//:pkg", "@rules_pycross_pypi_deps_pyparsing//:pkg", "@rules_pycross_pypi_deps_tomli//:pkg", "@rules_pycross_pypi_deps_wheel//:pkg"] all_whl_requirements = ["@rules_pycross_pypi_deps_build//:whl", "@rules_pycross_pypi_deps_dacite//:whl", "@rules_pycross_pypi_deps_installer//:whl", "@rules_pycross_pypi_deps_packaging//:whl", "@rules_pycross_pypi_deps_pep517//:whl", "@rules_pycross_pypi_deps_poetry_core//:whl", "@rules_pycross_pypi_deps_pyparsing//:whl", "@rules_pycross_pypi_deps_tomli//:whl", "@rules_pycross_pypi_deps_wheel//:whl"] _packages = [('rules_pycross_pypi_deps_build', 'build==0.7.0 --hash=sha256:1aaadcd69338252ade4f7ec1265e1a19184bf916d84c9b7df095f423948cb89f --hash=sha256:21b7ebbd1b22499c4dac536abc7606696ea4d909fd755e00f09f3c0f2c05e3c8'), ('rules_pycross_pypi_deps_dacite', 'dacite==1.6.0 --hash=sha256:4331535f7aabb505c732fa4c3c094313fc0a1d5ea19907bf4726a7819a68b93f --hash=sha256:d48125ed0a0352d3de9f493bf980038088f45f3f9d7498f090b50a847daaa6df'), ('rules_pycross_pypi_deps_installer', 'installer==0.5.1 --hash=sha256:1d6c8d916ed82771945b9c813699e6f57424ded970c9d8bf16bbc23e1e826ed3 --hash=sha256:f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445'), ('rules_pycross_pypi_deps_packaging', 'packaging==21.3 --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522'), ('rules_pycross_pypi_deps_pep517', 'pep517==0.12.0 --hash=sha256:931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0 --hash=sha256:dd884c326898e2c6e11f9e0b64940606a93eb10ea022a2e067959f3a110cf161'), ('rules_pycross_pypi_deps_poetry_core', 'poetry-core==1.0.8 --hash=sha256:54b0fab6f7b313886e547a52f8bf52b8cf43e65b2633c65117f8755289061924 --hash=sha256:951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118'), ('rules_pycross_pypi_deps_pyparsing', 'pyparsing==3.0.7 --hash=sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea --hash=sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484'), ('rules_pycross_pypi_deps_tomli', 'tomli==2.0.1 --hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc --hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f'), ('rules_pycross_pypi_deps_wheel', 'wheel==0.37.1 --hash=sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a --hash=sha256:e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4')] _config = {'python_interpreter': 'python3', 'python_interpreter_target': None, 'quiet': True, 'timeout': 600, 'repo': 'rules_pycross_pypi_deps', 'isolated': True, 'extra_pip_args': [], 'pip_data_exclude': [], 'enable_implicit_namespace_pkgs': False, 'environment': {}, 'repo_prefix': 'rules_pycross_pypi_deps_'} _annotations = {} def _clean_name(name): return name.replace("-", "_").replace(".", "_").lower() def requirement(name): return "@rules_pycross_pypi_deps_" + _clean_name(name) + "//:pkg" def whl_requirement(name): return "@rules_pycross_pypi_deps_" + _clean_name(name) + "//:whl" def data_requirement(name): return "@rules_pycross_pypi_deps_" + _clean_name(name) + "//:data" def dist_info_requirement(name): return "@rules_pycross_pypi_deps_" + _clean_name(name) + "//:dist_info" def entry_point(pkg, script = None): if not script: script = pkg return "@rules_pycross_pypi_deps_" + _clean_name(pkg) + "//:rules_python_wheel_entry_point_" + script def _get_annotation(requirement): # This expects to parse `setuptools==58.2.0 --hash=sha256:2551203ae6955b9876741a26ab3e767bb3242dafe86a32a749ea0d78b6792f11` # down wo `setuptools`. name = requirement.split(" ")[0].split("=")[0] return _annotations.get(name) def install_deps(): for name, requirement in _packages: whl_library( name = name, requirement = requirement, annotation = _get_annotation(requirement), **_config, )
load('@rules_python//python/pip_install:pip_repository.bzl', 'whl_library') all_requirements = ['@rules_pycross_pypi_deps_build//:pkg', '@rules_pycross_pypi_deps_dacite//:pkg', '@rules_pycross_pypi_deps_installer//:pkg', '@rules_pycross_pypi_deps_packaging//:pkg', '@rules_pycross_pypi_deps_pep517//:pkg', '@rules_pycross_pypi_deps_poetry_core//:pkg', '@rules_pycross_pypi_deps_pyparsing//:pkg', '@rules_pycross_pypi_deps_tomli//:pkg', '@rules_pycross_pypi_deps_wheel//:pkg'] all_whl_requirements = ['@rules_pycross_pypi_deps_build//:whl', '@rules_pycross_pypi_deps_dacite//:whl', '@rules_pycross_pypi_deps_installer//:whl', '@rules_pycross_pypi_deps_packaging//:whl', '@rules_pycross_pypi_deps_pep517//:whl', '@rules_pycross_pypi_deps_poetry_core//:whl', '@rules_pycross_pypi_deps_pyparsing//:whl', '@rules_pycross_pypi_deps_tomli//:whl', '@rules_pycross_pypi_deps_wheel//:whl'] _packages = [('rules_pycross_pypi_deps_build', 'build==0.7.0 --hash=sha256:1aaadcd69338252ade4f7ec1265e1a19184bf916d84c9b7df095f423948cb89f --hash=sha256:21b7ebbd1b22499c4dac536abc7606696ea4d909fd755e00f09f3c0f2c05e3c8'), ('rules_pycross_pypi_deps_dacite', 'dacite==1.6.0 --hash=sha256:4331535f7aabb505c732fa4c3c094313fc0a1d5ea19907bf4726a7819a68b93f --hash=sha256:d48125ed0a0352d3de9f493bf980038088f45f3f9d7498f090b50a847daaa6df'), ('rules_pycross_pypi_deps_installer', 'installer==0.5.1 --hash=sha256:1d6c8d916ed82771945b9c813699e6f57424ded970c9d8bf16bbc23e1e826ed3 --hash=sha256:f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445'), ('rules_pycross_pypi_deps_packaging', 'packaging==21.3 --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522'), ('rules_pycross_pypi_deps_pep517', 'pep517==0.12.0 --hash=sha256:931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0 --hash=sha256:dd884c326898e2c6e11f9e0b64940606a93eb10ea022a2e067959f3a110cf161'), ('rules_pycross_pypi_deps_poetry_core', 'poetry-core==1.0.8 --hash=sha256:54b0fab6f7b313886e547a52f8bf52b8cf43e65b2633c65117f8755289061924 --hash=sha256:951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118'), ('rules_pycross_pypi_deps_pyparsing', 'pyparsing==3.0.7 --hash=sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea --hash=sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484'), ('rules_pycross_pypi_deps_tomli', 'tomli==2.0.1 --hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc --hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f'), ('rules_pycross_pypi_deps_wheel', 'wheel==0.37.1 --hash=sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a --hash=sha256:e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4')] _config = {'python_interpreter': 'python3', 'python_interpreter_target': None, 'quiet': True, 'timeout': 600, 'repo': 'rules_pycross_pypi_deps', 'isolated': True, 'extra_pip_args': [], 'pip_data_exclude': [], 'enable_implicit_namespace_pkgs': False, 'environment': {}, 'repo_prefix': 'rules_pycross_pypi_deps_'} _annotations = {} def _clean_name(name): return name.replace('-', '_').replace('.', '_').lower() def requirement(name): return '@rules_pycross_pypi_deps_' + _clean_name(name) + '//:pkg' def whl_requirement(name): return '@rules_pycross_pypi_deps_' + _clean_name(name) + '//:whl' def data_requirement(name): return '@rules_pycross_pypi_deps_' + _clean_name(name) + '//:data' def dist_info_requirement(name): return '@rules_pycross_pypi_deps_' + _clean_name(name) + '//:dist_info' def entry_point(pkg, script=None): if not script: script = pkg return '@rules_pycross_pypi_deps_' + _clean_name(pkg) + '//:rules_python_wheel_entry_point_' + script def _get_annotation(requirement): name = requirement.split(' ')[0].split('=')[0] return _annotations.get(name) def install_deps(): for (name, requirement) in _packages: whl_library(name=name, requirement=requirement, annotation=_get_annotation(requirement), **_config)
def print_game(game): print(' {} {} {} '.format('0', '1', '2')) print('0 {} | {} | {} '.format(game[0][0], game[0][1], game[0][2])) print(' --- --- --- --- ') print('1 {} | {} | {} '.format(game[1][0], game[1][1], game[1][2])) print(' --- --- --- --- ') print('2 {} | {} | {} '.format(game[2][0], game[2][1], game[2][2])) print() # if __name__== '__main__': # game = [ # [' ', ' ', ' '], # [' ', 'X', ' '], # [' ', ' ', 'O'] # ] # print_game(game)
def print_game(game): print(' {} {} {} '.format('0', '1', '2')) print('0 {} | {} | {} '.format(game[0][0], game[0][1], game[0][2])) print(' --- --- --- --- ') print('1 {} | {} | {} '.format(game[1][0], game[1][1], game[1][2])) print(' --- --- --- --- ') print('2 {} | {} | {} '.format(game[2][0], game[2][1], game[2][2])) print()
def selection_sort(lst): for i in range(len(lst)-1): smallestIndex = i for j in range(i+1, len(lst)): if lst[j] < lst[smallestIndex]: smallestIndex = j if smallestIndex != i: lst[i], lst[smallestIndex] = lst[smallestIndex], lst[i] return lst list_1 = [4, 7, 1, 9, 2] print(selection_sort(list_1))
def selection_sort(lst): for i in range(len(lst) - 1): smallest_index = i for j in range(i + 1, len(lst)): if lst[j] < lst[smallestIndex]: smallest_index = j if smallestIndex != i: (lst[i], lst[smallestIndex]) = (lst[smallestIndex], lst[i]) return lst list_1 = [4, 7, 1, 9, 2] print(selection_sort(list_1))
class MenuHelper: def __init__(self, app): self.app = app def check_menu_items(self): driver = self.app.driver driver.find_element_by_partial_link_text('Dashboard').click() driver.find_element_by_partial_link_text('Feedback').click() driver.find_element_by_partial_link_text('Sales').click()
class Menuhelper: def __init__(self, app): self.app = app def check_menu_items(self): driver = self.app.driver driver.find_element_by_partial_link_text('Dashboard').click() driver.find_element_by_partial_link_text('Feedback').click() driver.find_element_by_partial_link_text('Sales').click()
class RandomizedCollection: """ dict[val] = index of val in list v when do removing, get any one index of the val to be deleted in v, and denote it as idx, then swap it with the last val in v (if with a different index), change index to idx and then pop it out """ def __init__(self): self.v = [] self.d = {} def insert(self, val: int) -> bool: self.v.append(val) if val in self.d: self.d[val].add(len(self.v)-1) return False else: self.d[val] = {len(self.v)-1} return True def remove(self, val: int) -> bool: if val not in self.d: return False last = len(self.v)-1 idx = self.d[val].pop() if not len(self.d[val]): del self.d[val] if idx != last: self.v[idx] = self.v[last] self.d[self.v[idx]].remove(last) self.d[self.v[idx]].add(idx) self.v.pop() return True def getRandom(self) -> int: if self.v: return self.v[random.randint(0, len(self.v)-1)]
class Randomizedcollection: """ dict[val] = index of val in list v when do removing, get any one index of the val to be deleted in v, and denote it as idx, then swap it with the last val in v (if with a different index), change index to idx and then pop it out """ def __init__(self): self.v = [] self.d = {} def insert(self, val: int) -> bool: self.v.append(val) if val in self.d: self.d[val].add(len(self.v) - 1) return False else: self.d[val] = {len(self.v) - 1} return True def remove(self, val: int) -> bool: if val not in self.d: return False last = len(self.v) - 1 idx = self.d[val].pop() if not len(self.d[val]): del self.d[val] if idx != last: self.v[idx] = self.v[last] self.d[self.v[idx]].remove(last) self.d[self.v[idx]].add(idx) self.v.pop() return True def get_random(self) -> int: if self.v: return self.v[random.randint(0, len(self.v) - 1)]
class TonLiteClientException(Exception): pass
class Tonliteclientexception(Exception): pass
"""Module for handling the different draw options for nodes. Used when creating a .dot file respresentation of the pipeline.""" _DEFAULT_DRAW_OPTIONS = {'shape': 'box', 'style': 'filled'} _DEFAULT_AQP_OPTIONS = {'fillcolor': '#ffffff'} _DEFAULT_VISQOL_OPTIONS = {'fillcolor': '#F0E442B3'} _DEFAULT_PESQ_OPTIONS = {'fillcolor': '#E69F00B3'} _DEFAULT_WARP_Q_OPTIONS = {'fillcolor': '#0072B2B3'} _DEFAULT_NESTED_OPTIONS = {'fillcolor': '#009E73B3'} DRAW_OPTIONS = { 'AQP': _DEFAULT_AQP_OPTIONS, 'ViSQOL': _DEFAULT_VISQOL_OPTIONS, 'PESQ': _DEFAULT_PESQ_OPTIONS, 'WARP-Q': _DEFAULT_WARP_Q_OPTIONS, 'NESTED': _DEFAULT_NESTED_OPTIONS } def create_full_options(default_options: dict=_DEFAULT_DRAW_OPTIONS, other_options: dict=None): """Merge the default options and other options to create the full dict of draw options. Merges the draw options dict passed from JSON with the default options for a particular node type. Parameters ---------- default_options : dict, optional The default options unique for a particular node type to be used. The default is _DEFAULT_DRAW_OPTIONS. other_options : dict, optional Any other draw options passed from JSON. The default is None. Returns ------- draw_options: dict Merged dict from the two dictionaries passed to the function. """ if other_options is None: other_options = {} return {**_DEFAULT_DRAW_OPTIONS, **default_options, **other_options}
"""Module for handling the different draw options for nodes. Used when creating a .dot file respresentation of the pipeline.""" _default_draw_options = {'shape': 'box', 'style': 'filled'} _default_aqp_options = {'fillcolor': '#ffffff'} _default_visqol_options = {'fillcolor': '#F0E442B3'} _default_pesq_options = {'fillcolor': '#E69F00B3'} _default_warp_q_options = {'fillcolor': '#0072B2B3'} _default_nested_options = {'fillcolor': '#009E73B3'} draw_options = {'AQP': _DEFAULT_AQP_OPTIONS, 'ViSQOL': _DEFAULT_VISQOL_OPTIONS, 'PESQ': _DEFAULT_PESQ_OPTIONS, 'WARP-Q': _DEFAULT_WARP_Q_OPTIONS, 'NESTED': _DEFAULT_NESTED_OPTIONS} def create_full_options(default_options: dict=_DEFAULT_DRAW_OPTIONS, other_options: dict=None): """Merge the default options and other options to create the full dict of draw options. Merges the draw options dict passed from JSON with the default options for a particular node type. Parameters ---------- default_options : dict, optional The default options unique for a particular node type to be used. The default is _DEFAULT_DRAW_OPTIONS. other_options : dict, optional Any other draw options passed from JSON. The default is None. Returns ------- draw_options: dict Merged dict from the two dictionaries passed to the function. """ if other_options is None: other_options = {} return {**_DEFAULT_DRAW_OPTIONS, **default_options, **other_options}
class TelepatResponse: def __init__(self, response): self.status = response.status_code self.json_data = response.json() self.content = self.json_data["content"] if "content" in self.json_data else None self.message = self.json_data["message"] if "message" in self.json_data else "" def getObjectOfType(self, class_type): if type(self.content) == list: objects = [] for json_dict in self.content: objects.append(class_type(json_dict)) return objects else: return class_type(self.content)
class Telepatresponse: def __init__(self, response): self.status = response.status_code self.json_data = response.json() self.content = self.json_data['content'] if 'content' in self.json_data else None self.message = self.json_data['message'] if 'message' in self.json_data else '' def get_object_of_type(self, class_type): if type(self.content) == list: objects = [] for json_dict in self.content: objects.append(class_type(json_dict)) return objects else: return class_type(self.content)
__author__ = 'Seqian Wang' # A class for each scan session class ScanSession: def __init__(self, study, rid, scan_type, scan_date, scan_time, s_identifier, i_identifier, download_folder, raw_folder, file_type, moved=0): self.study = study self.rid = rid self.scan_type = scan_type self.scan_date = scan_date self.scan_time = scan_time self.s_identifier = s_identifier self.i_identifier = i_identifier self.download_folder = download_folder self.raw_folder = raw_folder self.file_type = file_type self.moved = moved def printObject(self): print('{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}'.format( self.study, self.rid, self.scan_type, self.scan_date, self.scan_time, self.s_identifier, self.i_identifier, self.download_folder, self.raw_folder, self.file_type, self.moved)) def printScanType(self): print('{0}'.format(self.scan_type)) def sqlInsert(self): return ("'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d" % (self.study, self.rid, self.scan_type, self.scan_date, self.scan_time, self.s_identifier, self.i_identifier, self.file_type, self.download_folder, self.raw_folder, self.moved)) def sqlUniqueValues(self): return ("'%s', '%s', '%s', '%s', '%s'" % (self.study, self.rid, self.scan_type, self.s_identifier, self.i_identifier)) def sqlUniqueFields(self): return "'STUDY', 'RID', 'SCAN_TYPE', 'S_IDENTIFIER', 'I_IDENTIFIER'" def getValuesDict(self): return {'study': self.study, 'rid': self.rid, 'scan_type': self.scan_type, 'scan_date': self.scan_date, 'scan_time': self.scan_time, 's_identifier': self.s_identifier, 'i_identifier': self.i_identifier, 'download_folder': self.download_folder, 'raw_folder': self.raw_folder, 'file_type': self.file_type, 'moved': self.moved}
__author__ = 'Seqian Wang' class Scansession: def __init__(self, study, rid, scan_type, scan_date, scan_time, s_identifier, i_identifier, download_folder, raw_folder, file_type, moved=0): self.study = study self.rid = rid self.scan_type = scan_type self.scan_date = scan_date self.scan_time = scan_time self.s_identifier = s_identifier self.i_identifier = i_identifier self.download_folder = download_folder self.raw_folder = raw_folder self.file_type = file_type self.moved = moved def print_object(self): print('{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}'.format(self.study, self.rid, self.scan_type, self.scan_date, self.scan_time, self.s_identifier, self.i_identifier, self.download_folder, self.raw_folder, self.file_type, self.moved)) def print_scan_type(self): print('{0}'.format(self.scan_type)) def sql_insert(self): return "'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d" % (self.study, self.rid, self.scan_type, self.scan_date, self.scan_time, self.s_identifier, self.i_identifier, self.file_type, self.download_folder, self.raw_folder, self.moved) def sql_unique_values(self): return "'%s', '%s', '%s', '%s', '%s'" % (self.study, self.rid, self.scan_type, self.s_identifier, self.i_identifier) def sql_unique_fields(self): return "'STUDY', 'RID', 'SCAN_TYPE', 'S_IDENTIFIER', 'I_IDENTIFIER'" def get_values_dict(self): return {'study': self.study, 'rid': self.rid, 'scan_type': self.scan_type, 'scan_date': self.scan_date, 'scan_time': self.scan_time, 's_identifier': self.s_identifier, 'i_identifier': self.i_identifier, 'download_folder': self.download_folder, 'raw_folder': self.raw_folder, 'file_type': self.file_type, 'moved': self.moved}
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-02-29 Last_modify: 2016-02-29 ****************************************** ''' ''' Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If nums = [1,2,3], a solution is: [ [3], [1], [2], [1,2,3], [1,3], [2,3], [1,2], [] ] ''' class Solution(object): def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ nums.sort() n = 2 ** len(nums) results = [[] for _ in range(n)] for i in range(len(nums)): for j in range(n): if (j >> i) & 1: results[j].append(nums[i]) return results
""" ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-02-29 Last_modify: 2016-02-29 ****************************************** """ '\nGiven a set of distinct integers, nums, return all possible subsets.\n\nNote:\nElements in a subset must be in non-descending order.\nThe solution set must not contain duplicate subsets.\nFor example,\nIf nums = [1,2,3], a solution is:\n\n[\n [3],\n [1],\n [2],\n [1,2,3],\n [1,3],\n [2,3],\n [1,2],\n []\n]\n' class Solution(object): def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ nums.sort() n = 2 ** len(nums) results = [[] for _ in range(n)] for i in range(len(nums)): for j in range(n): if j >> i & 1: results[j].append(nums[i]) return results
def continuity(x): yes = [] m = 0 d = 1 a = int(x ** (1 / 2)) yes.append(a) while a != 2 * int(((x) ** (1 / 2))): m = d * a - m d = (x - m**2) / d a = int(((x ** (1 / 2)) + m) / d) yes.append(a) return yes def solutions(x): if x in squares: return [0, 1] else: l = continuity(x)[0:1] + (continuity(x)[1:]) c = 1 a = [l[0], 1] while True: if int((a[0]) ** 2 - x * ((a[1]) ** 2)) == 1: return [a[0], a[1]] else: if c > len(l): l.extend((continuity(x)[1:])) t = [0, 1] for i in l[c::-1]: t[0] = t[1] * i + t[0] t = t[::-1] t = t[::-1] a = t c += 1 squares = [i**2 for i in range(1, 33)] values_D = 0 high = 0 for D in range(2, 1001): if solutions(D)[0] > high: high = solutions(D)[0] values_D = D print(values_D)
def continuity(x): yes = [] m = 0 d = 1 a = int(x ** (1 / 2)) yes.append(a) while a != 2 * int(x ** (1 / 2)): m = d * a - m d = (x - m ** 2) / d a = int((x ** (1 / 2) + m) / d) yes.append(a) return yes def solutions(x): if x in squares: return [0, 1] else: l = continuity(x)[0:1] + continuity(x)[1:] c = 1 a = [l[0], 1] while True: if int(a[0] ** 2 - x * a[1] ** 2) == 1: return [a[0], a[1]] else: if c > len(l): l.extend(continuity(x)[1:]) t = [0, 1] for i in l[c::-1]: t[0] = t[1] * i + t[0] t = t[::-1] t = t[::-1] a = t c += 1 squares = [i ** 2 for i in range(1, 33)] values_d = 0 high = 0 for d in range(2, 1001): if solutions(D)[0] > high: high = solutions(D)[0] values_d = D print(values_D)
cases = [ ('Push is observable here so no actions are enabled in the initial state', 'pmt -n 10 -s 1 Stack Observables'), ('Accepts Push(3) but not Pop(3) because here Push is observable, Pop controllable', 'pmt -n 10 -s 1 Stack Observables Scenarios'), ('Accepts both Push(3) and Pop(3) because here both are observable, still doesnt accept out-of-order Pop.', 'pmt -n 10 -s 1 Stack AllObservables Scenarios'), ]
cases = [('Push is observable here so no actions are enabled in the initial state', 'pmt -n 10 -s 1 Stack Observables'), ('Accepts Push(3) but not Pop(3) because here Push is observable, Pop controllable', 'pmt -n 10 -s 1 Stack Observables Scenarios'), ('Accepts both Push(3) and Pop(3) because here both are observable, still doesnt accept out-of-order Pop.', 'pmt -n 10 -s 1 Stack AllObservables Scenarios')]
def unit_convert(value, initial_unit, convert_to_unit): units = {"cm": 0.01, "m": 1} result = value*(units[initial_unit]/units[convert_to_unit]) string = f"{result}{convert_to_unit}" print(string) return string def run_script(TEST=False): while True: try: user_input = input("Enter the string to convert [x unit1 in unit2]\nType 'exit' if you wish to quit the app:\n") if user_input == 'exit': break user_input = user_input.split() outcome = unit_convert(int(user_input[0]), user_input[1], user_input[3]) if TEST: return outcome else: continue except ValueError as e: print(f"ValueError: {e}\nFor example, type the following: 5 cm in m\n") except KeyError as e: print(f"KeyError: invalid key {e}.\nPlease enter correct unit [cm / m]\n") except KeyboardInterrupt as e: print(f"KeyboardInterrupt: {e}") except IndexError as e: print(f"IndexError: {e}") if __name__ == "__main__": run_script(False)
def unit_convert(value, initial_unit, convert_to_unit): units = {'cm': 0.01, 'm': 1} result = value * (units[initial_unit] / units[convert_to_unit]) string = f'{result}{convert_to_unit}' print(string) return string def run_script(TEST=False): while True: try: user_input = input("Enter the string to convert [x unit1 in unit2]\nType 'exit' if you wish to quit the app:\n") if user_input == 'exit': break user_input = user_input.split() outcome = unit_convert(int(user_input[0]), user_input[1], user_input[3]) if TEST: return outcome else: continue except ValueError as e: print(f'ValueError: {e}\nFor example, type the following: 5 cm in m\n') except KeyError as e: print(f'KeyError: invalid key {e}.\nPlease enter correct unit [cm / m]\n') except KeyboardInterrupt as e: print(f'KeyboardInterrupt: {e}') except IndexError as e: print(f'IndexError: {e}') if __name__ == '__main__': run_script(False)
gitignore = [ "None", "Actionscript.gitignore", "Ada.gitignore", "Agda.gitignore", "Android.gitignore", "AppEngine.gitignore", "AppceleratorTitanium.gitignore", "ArchLinuxPackages.gitignore", "Autotools.gitignore", "C++.gitignore", "C.gitignore", "CFWheels.gitignore", "CMake.gitignore", "CUDA.gitignore", "CakePHP.gitignore", "ChefCookbook.gitignore", "Clojure.gitignore", "CodeIgniter.gitignore", "CommonLisp.gitignore", "Composer.gitignore", "Concrete5.gitignore", "Coq.gitignore", "CraftCMS.gitignore", "D.gitignore", "DM.gitignore", "Dart.gitignore", "Delphi.gitignore", "Drupal.gitignore", "EPiServer.gitignore", "Eagle.gitignore", "Elisp.gitignore", "Elixir.gitignore", "Elm.gitignore", "Erlang.gitignore", "ExpressionEngine.gitignore", "ExtJs.gitignore", "Fancy.gitignore", "Finale.gitignore", "ForceDotCom.gitignore", "Fortran.gitignore", "FuelPHP.gitignore", "GWT.gitignore", "Gcov.gitignore", "GitBook.gitignore", "Go.gitignore", "Godot.gitignore", "Gradle.gitignore", "Grails.gitignore", "Haskell.gitignore", "IGORPro.gitignore", "Idris.gitignore", "JBoss.gitignore", "JENKINS_HOME.gitignore", "Java.gitignore", "Jekyll.gitignore", "Joomla.gitignore", "Julia.gitignore", "KiCad.gitignore", "Kohana.gitignore", "Kotlin.gitignore", "LabVIEW.gitignore", "Laravel.gitignore", "Leiningen.gitignore", "LemonStand.gitignore", "Lilypond.gitignore", "Lithium.gitignore", "Lua.gitignore", "Magento.gitignore", "Maven.gitignore", "Mercury.gitignore", "MetaProgrammingSystem.gitignore", "Nanoc.gitignore", "Nim.gitignore", "Node.gitignore", "OCaml.gitignore", "Objective-C.gitignore", "Opa.gitignore", "OpenCart.gitignore", "OracleForms.gitignore", "Packer.gitignore", "Perl.gitignore", "Phalcon.gitignore", "PlayFramework.gitignore", "Plone.gitignore", "Prestashop.gitignore", "Processing.gitignore", "PureScript.gitignore", "Python.gitignore", "Qooxdoo.gitignore", "Qt.gitignore", "R.gitignore", "ROS.gitignore", "Rails.gitignore", "Raku.gitignore", "RhodesRhomobile.gitignore", "Ruby.gitignore", "Rust.gitignore", "SCons.gitignore", "Sass.gitignore", "Scala.gitignore", "Scheme.gitignore", "Scrivener.gitignore", "Sdcc.gitignore", "SeamGen.gitignore", "SketchUp.gitignore", "Smalltalk.gitignore", "Stella.gitignore", "SugarCRM.gitignore", "Swift.gitignore", "Symfony.gitignore", "SymphonyCMS.gitignore", "TeX.gitignore", "Terraform.gitignore", "Textpattern.gitignore", "TurboGears2.gitignore", "TwinCAT3.gitignore", "Typo3.gitignore", "Umbraco.gitignore", "Unity.gitignore", "UnrealEngine.gitignore", "VVVV.gitignore", "VisualStudio.gitignore", "Waf.gitignore", "WordPress.gitignore", "Xojo.gitignore", "Yeoman.gitignore", "Yii.gitignore ", "ZendFramework.gitignore", "Zephir.gitignore ", ]
gitignore = ['None', 'Actionscript.gitignore', 'Ada.gitignore', 'Agda.gitignore', 'Android.gitignore', 'AppEngine.gitignore', 'AppceleratorTitanium.gitignore', 'ArchLinuxPackages.gitignore', 'Autotools.gitignore', 'C++.gitignore', 'C.gitignore', 'CFWheels.gitignore', 'CMake.gitignore', 'CUDA.gitignore', 'CakePHP.gitignore', 'ChefCookbook.gitignore', 'Clojure.gitignore', 'CodeIgniter.gitignore', 'CommonLisp.gitignore', 'Composer.gitignore', 'Concrete5.gitignore', 'Coq.gitignore', 'CraftCMS.gitignore', 'D.gitignore', 'DM.gitignore', 'Dart.gitignore', 'Delphi.gitignore', 'Drupal.gitignore', 'EPiServer.gitignore', 'Eagle.gitignore', 'Elisp.gitignore', 'Elixir.gitignore', 'Elm.gitignore', 'Erlang.gitignore', 'ExpressionEngine.gitignore', 'ExtJs.gitignore', 'Fancy.gitignore', 'Finale.gitignore', 'ForceDotCom.gitignore', 'Fortran.gitignore', 'FuelPHP.gitignore', 'GWT.gitignore', 'Gcov.gitignore', 'GitBook.gitignore', 'Go.gitignore', 'Godot.gitignore', 'Gradle.gitignore', 'Grails.gitignore', 'Haskell.gitignore', 'IGORPro.gitignore', 'Idris.gitignore', 'JBoss.gitignore', 'JENKINS_HOME.gitignore', 'Java.gitignore', 'Jekyll.gitignore', 'Joomla.gitignore', 'Julia.gitignore', 'KiCad.gitignore', 'Kohana.gitignore', 'Kotlin.gitignore', 'LabVIEW.gitignore', 'Laravel.gitignore', 'Leiningen.gitignore', 'LemonStand.gitignore', 'Lilypond.gitignore', 'Lithium.gitignore', 'Lua.gitignore', 'Magento.gitignore', 'Maven.gitignore', 'Mercury.gitignore', 'MetaProgrammingSystem.gitignore', 'Nanoc.gitignore', 'Nim.gitignore', 'Node.gitignore', 'OCaml.gitignore', 'Objective-C.gitignore', 'Opa.gitignore', 'OpenCart.gitignore', 'OracleForms.gitignore', 'Packer.gitignore', 'Perl.gitignore', 'Phalcon.gitignore', 'PlayFramework.gitignore', 'Plone.gitignore', 'Prestashop.gitignore', 'Processing.gitignore', 'PureScript.gitignore', 'Python.gitignore', 'Qooxdoo.gitignore', 'Qt.gitignore', 'R.gitignore', 'ROS.gitignore', 'Rails.gitignore', 'Raku.gitignore', 'RhodesRhomobile.gitignore', 'Ruby.gitignore', 'Rust.gitignore', 'SCons.gitignore', 'Sass.gitignore', 'Scala.gitignore', 'Scheme.gitignore', 'Scrivener.gitignore', 'Sdcc.gitignore', 'SeamGen.gitignore', 'SketchUp.gitignore', 'Smalltalk.gitignore', 'Stella.gitignore', 'SugarCRM.gitignore', 'Swift.gitignore', 'Symfony.gitignore', 'SymphonyCMS.gitignore', 'TeX.gitignore', 'Terraform.gitignore', 'Textpattern.gitignore', 'TurboGears2.gitignore', 'TwinCAT3.gitignore', 'Typo3.gitignore', 'Umbraco.gitignore', 'Unity.gitignore', 'UnrealEngine.gitignore', 'VVVV.gitignore', 'VisualStudio.gitignore', 'Waf.gitignore', 'WordPress.gitignore', 'Xojo.gitignore', 'Yeoman.gitignore', 'Yii.gitignore ', 'ZendFramework.gitignore', 'Zephir.gitignore ']
{ "targets": [ { "target_name":"binding", "sources":["png.c","jpeg.c","gif.c","imagesize.c","binding.c"], 'dependencies':['./binding.gyp:libhttp','./binding.gyp:libpng','./binding.gyp:libjpeg'], }, { "target_name":"libhttp", "type":'static_library', "sources":["http.c"] }, { "target_name": "libjpeg", "type": "static_library", 'include_dirs': [ './third-party/jpeg/' ], 'direct_dependent_settings': { 'include_dirs': [ './third-party/jpeg/' ] }, "sources": ["./third-party/jpeg/jaricom.c", "./third-party/jpeg/jcapimin.c", "./third-party/jpeg/jcapistd.c", "./third-party/jpeg/jcarith.c", "./third-party/jpeg/jccoefct.c", "./third-party/jpeg/jccolor.c", "./third-party/jpeg/jcdctmgr.c", "./third-party/jpeg/jchuff.c", "./third-party/jpeg/jcinit.c", "./third-party/jpeg/jcmainct.c", "./third-party/jpeg/jcmarker.c", "./third-party/jpeg/jcmaster.c", "./third-party/jpeg/jcomapi.c", "./third-party/jpeg/jcparam.c", "./third-party/jpeg/jcprepct.c", "./third-party/jpeg/jcsample.c", "./third-party/jpeg/jctrans.c", "./third-party/jpeg/jdapimin.c", "./third-party/jpeg/jdapistd.c", "./third-party/jpeg/jdarith.c", "./third-party/jpeg/jdatadst.c", "./third-party/jpeg/jdatasrc.c", "./third-party/jpeg/jdcoefct.c", "./third-party/jpeg/jdcolor.c", "./third-party/jpeg/jddctmgr.c", "./third-party/jpeg/jdhuff.c", "./third-party/jpeg/jdinput.c", "./third-party/jpeg/jdmainct.c", "./third-party/jpeg/jdmarker.c", "./third-party/jpeg/jdmaster.c", "./third-party/jpeg/jdmerge.c", "./third-party/jpeg/jdpostct.c", "./third-party/jpeg/jdsample.c", "./third-party/jpeg/jdtrans.c", "./third-party/jpeg/jerror.c", "./third-party/jpeg/jfdctflt.c", "./third-party/jpeg/jfdctfst.c", "./third-party/jpeg/jfdctint.c", "./third-party/jpeg/jidctflt.c", "./third-party/jpeg/jidctfst.c", "./third-party/jpeg/jidctint.c", "./third-party/jpeg/jquant1.c", "./third-party/jpeg/jquant2.c", "./third-party/jpeg/jutils.c", "./third-party/jpeg/jmemmgr.c", "./third-party/jpeg/jmemnobs.c" ] }, { 'target_name': 'libpng', 'type': 'static_library', 'include_dirs': [ './third-party/libpng', ], 'direct_dependent_settings': { 'include_dirs': ['./third-party/libpng'], }, 'dependencies': ['./binding.gyp:zlib'], 'libraries': ['-lm'], 'sources': [ "./third-party/libpng/pngerror.c", "./third-party/libpng/pngget.c", "./third-party/libpng/pngmem.c", "./third-party/libpng/pngpread.c", "./third-party/libpng/pngread.c", "./third-party/libpng/pngrio.c", "./third-party/libpng/pngrtran.c", "./third-party/libpng/pngrutil.c", "./third-party/libpng/pngset.c", "./third-party/libpng/pngtrans.c", "./third-party/libpng/pngwio.c", "./third-party/libpng/pngwrite.c", "./third-party/libpng/pngwtran.c", "./third-party/libpng/pngwutil.c", "./third-party/libpng/png.c" ] }, { 'target_name': 'zlib', 'type': 'static_library', 'include_dirs': [ './third-party/zlib/' ], 'direct_dependent_settings': { 'include_dirs': [ './third-party/zlib/' ] }, 'sources': ["./third-party/zlib/adler32.c", "./third-party/zlib/crc32.c", "./third-party/zlib/deflate.c", "./third-party/zlib/infback.c", "./third-party/zlib/inffast.c", "./third-party/zlib/inflate.c", "./third-party/zlib/inftrees.c", "./third-party/zlib/trees.c", "./third-party/zlib/zutil.c", "./third-party/zlib/compress.c", "./third-party/zlib/uncompr.c", "./third-party/zlib/gzclose.c", "./third-party/zlib/gzlib.c", "./third-party/zlib/gzread.c", "./third-party/zlib/gzwrite.c" ] }, ], 'conditions': [ ['OS=="linux"', { }] ] }
{'targets': [{'target_name': 'binding', 'sources': ['png.c', 'jpeg.c', 'gif.c', 'imagesize.c', 'binding.c'], 'dependencies': ['./binding.gyp:libhttp', './binding.gyp:libpng', './binding.gyp:libjpeg']}, {'target_name': 'libhttp', 'type': 'static_library', 'sources': ['http.c']}, {'target_name': 'libjpeg', 'type': 'static_library', 'include_dirs': ['./third-party/jpeg/'], 'direct_dependent_settings': {'include_dirs': ['./third-party/jpeg/']}, 'sources': ['./third-party/jpeg/jaricom.c', './third-party/jpeg/jcapimin.c', './third-party/jpeg/jcapistd.c', './third-party/jpeg/jcarith.c', './third-party/jpeg/jccoefct.c', './third-party/jpeg/jccolor.c', './third-party/jpeg/jcdctmgr.c', './third-party/jpeg/jchuff.c', './third-party/jpeg/jcinit.c', './third-party/jpeg/jcmainct.c', './third-party/jpeg/jcmarker.c', './third-party/jpeg/jcmaster.c', './third-party/jpeg/jcomapi.c', './third-party/jpeg/jcparam.c', './third-party/jpeg/jcprepct.c', './third-party/jpeg/jcsample.c', './third-party/jpeg/jctrans.c', './third-party/jpeg/jdapimin.c', './third-party/jpeg/jdapistd.c', './third-party/jpeg/jdarith.c', './third-party/jpeg/jdatadst.c', './third-party/jpeg/jdatasrc.c', './third-party/jpeg/jdcoefct.c', './third-party/jpeg/jdcolor.c', './third-party/jpeg/jddctmgr.c', './third-party/jpeg/jdhuff.c', './third-party/jpeg/jdinput.c', './third-party/jpeg/jdmainct.c', './third-party/jpeg/jdmarker.c', './third-party/jpeg/jdmaster.c', './third-party/jpeg/jdmerge.c', './third-party/jpeg/jdpostct.c', './third-party/jpeg/jdsample.c', './third-party/jpeg/jdtrans.c', './third-party/jpeg/jerror.c', './third-party/jpeg/jfdctflt.c', './third-party/jpeg/jfdctfst.c', './third-party/jpeg/jfdctint.c', './third-party/jpeg/jidctflt.c', './third-party/jpeg/jidctfst.c', './third-party/jpeg/jidctint.c', './third-party/jpeg/jquant1.c', './third-party/jpeg/jquant2.c', './third-party/jpeg/jutils.c', './third-party/jpeg/jmemmgr.c', './third-party/jpeg/jmemnobs.c']}, {'target_name': 'libpng', 'type': 'static_library', 'include_dirs': ['./third-party/libpng'], 'direct_dependent_settings': {'include_dirs': ['./third-party/libpng']}, 'dependencies': ['./binding.gyp:zlib'], 'libraries': ['-lm'], 'sources': ['./third-party/libpng/pngerror.c', './third-party/libpng/pngget.c', './third-party/libpng/pngmem.c', './third-party/libpng/pngpread.c', './third-party/libpng/pngread.c', './third-party/libpng/pngrio.c', './third-party/libpng/pngrtran.c', './third-party/libpng/pngrutil.c', './third-party/libpng/pngset.c', './third-party/libpng/pngtrans.c', './third-party/libpng/pngwio.c', './third-party/libpng/pngwrite.c', './third-party/libpng/pngwtran.c', './third-party/libpng/pngwutil.c', './third-party/libpng/png.c']}, {'target_name': 'zlib', 'type': 'static_library', 'include_dirs': ['./third-party/zlib/'], 'direct_dependent_settings': {'include_dirs': ['./third-party/zlib/']}, 'sources': ['./third-party/zlib/adler32.c', './third-party/zlib/crc32.c', './third-party/zlib/deflate.c', './third-party/zlib/infback.c', './third-party/zlib/inffast.c', './third-party/zlib/inflate.c', './third-party/zlib/inftrees.c', './third-party/zlib/trees.c', './third-party/zlib/zutil.c', './third-party/zlib/compress.c', './third-party/zlib/uncompr.c', './third-party/zlib/gzclose.c', './third-party/zlib/gzlib.c', './third-party/zlib/gzread.c', './third-party/zlib/gzwrite.c']}], 'conditions': [['OS=="linux"', {}]]}
names = ['Bob', 'John', 'Steve', 'Dave'] # print(len(names)) # names += ['Robert'] # print(names) # print(names[:3]) # print('Bob' in names) # names.remove('Bob') # names.remove('John') # print(names) # names.append('Don') # print(names) # names.extend(['Bob', 'John']) # print(names) # print(names) # names[1] = 'Don' # print(names) # numbers = [1, 2, 3, 4, 5] # numbers_squared = [number ** 2 for number in numbers] # print(numbers_squared) # numbers_two = numbers.copy() # numbers_two.append(6) # print(numbers, numbers_two) # Exercise namelist = ['wub_wub', 'RubyPinch', 'go|dfish', 'Nitori'] namelist.append('pb122') if 'pb122' in namelist: print("Now I know pb122!") # print("Hello!") # name = input("Enter your name: ") # print("Your name is %s." % name) namelist = ['wub_wub', 'RubyPinch', 'go|dfish', 'Nitori'] namelist.extend('theelous3') if input("Enter your name: ") in namelist: print("I know you!") else: print("I don't know you.")
names = ['Bob', 'John', 'Steve', 'Dave'] namelist = ['wub_wub', 'RubyPinch', 'go|dfish', 'Nitori'] namelist.append('pb122') if 'pb122' in namelist: print('Now I know pb122!') namelist = ['wub_wub', 'RubyPinch', 'go|dfish', 'Nitori'] namelist.extend('theelous3') if input('Enter your name: ') in namelist: print('I know you!') else: print("I don't know you.")
def duplicate(arr): tortoise = arr[0] hare = arr[0] while True: tortoise = arr[tortoise] hare = arr[arr[hare]] if tortoise == hare: break ptr1 = arr[0] ptr2 = tortoise while ptr1 != ptr2: ptr1 = arr[ptr1] ptr2 = arr[ptr2] return ptr1 arr = [3,5,1,2,4,5] print(duplicate(arr))
def duplicate(arr): tortoise = arr[0] hare = arr[0] while True: tortoise = arr[tortoise] hare = arr[arr[hare]] if tortoise == hare: break ptr1 = arr[0] ptr2 = tortoise while ptr1 != ptr2: ptr1 = arr[ptr1] ptr2 = arr[ptr2] return ptr1 arr = [3, 5, 1, 2, 4, 5] print(duplicate(arr))
process_queue = [] total_wtime = 0 total_tat=0 ct = 0 n = int(input('Enter the total no of processes: ')) for i in range(n): at = 0 bt = 0 process_queue.append([])#append a list object to the list process_queue[i].append(int(input('Enter p_id: '))) #at = int(input('Enter p_arrival: ')) process_queue[i].append(0) bt = int(input('Enter p_bust: ')) process_queue[i].append(bt) print('') process_queue.sort(key = lambda process_queue:process_queue[2]) #sort by burst time for i in range(n): ct += process_queue[i][2] process_queue[i].append(ct) tat = ct-0 #if at = 0, modify for general case process_queue[i].append(tat) total_tat += tat wt = tat - process_queue[i][2] total_wtime += wt #ct-bt process_queue[i].append(wt) print ('ProcessName\tArrivalTime\tBurstTime\tCompletionTime\tTurnAroundTime\tWaitTime') for i in range(n): print (process_queue[i][0],'\t\t',process_queue[i][1],'\t\t',process_queue[i][2],'\t\t',process_queue[i][3],'\t\t',process_queue[i][4],'\t\t',process_queue[i][5]) print ('Total waiting time: ',total_wtime) print ('Average waiting time: ',(total_wtime/n)) print ('Total turn around time: ',total_tat) print ('Average turn around time: ',(total_tat/n))
process_queue = [] total_wtime = 0 total_tat = 0 ct = 0 n = int(input('Enter the total no of processes: ')) for i in range(n): at = 0 bt = 0 process_queue.append([]) process_queue[i].append(int(input('Enter p_id: '))) process_queue[i].append(0) bt = int(input('Enter p_bust: ')) process_queue[i].append(bt) print('') process_queue.sort(key=lambda process_queue: process_queue[2]) for i in range(n): ct += process_queue[i][2] process_queue[i].append(ct) tat = ct - 0 process_queue[i].append(tat) total_tat += tat wt = tat - process_queue[i][2] total_wtime += wt process_queue[i].append(wt) print('ProcessName\tArrivalTime\tBurstTime\tCompletionTime\tTurnAroundTime\tWaitTime') for i in range(n): print(process_queue[i][0], '\t\t', process_queue[i][1], '\t\t', process_queue[i][2], '\t\t', process_queue[i][3], '\t\t', process_queue[i][4], '\t\t', process_queue[i][5]) print('Total waiting time: ', total_wtime) print('Average waiting time: ', total_wtime / n) print('Total turn around time: ', total_tat) print('Average turn around time: ', total_tat / n)
# # PySNMP MIB module HUAWEI-LINE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-LINE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:46:05 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, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, iso, NotificationType, IpAddress, TimeTicks, MibIdentifier, Counter64, Unsigned32, Gauge32, Counter32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "iso", "NotificationType", "IpAddress", "TimeTicks", "MibIdentifier", "Counter64", "Unsigned32", "Gauge32", "Counter32", "ObjectIdentity") DisplayString, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus") hwLineMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207)) if mibBuilder.loadTexts: hwLineMIB.setLastUpdated('200907311624Z') if mibBuilder.loadTexts: hwLineMIB.setOrganization('Huawei Technologies co.,Ltd.') if mibBuilder.loadTexts: hwLineMIB.setContactInfo('VRP Team Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ') if mibBuilder.loadTexts: hwLineMIB.setDescription('HUAWEI-LINE-MIB is used to configure and query attributes of connections through management interfaces by users, such as the maximum number of Telnet connections and login information about users. ') hwLineObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1)) hwTelnetSet = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 1)) hwMaxVtyNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwMaxVtyNumber.setStatus('current') if mibBuilder.loadTexts: hwMaxVtyNumber.setDescription('The value of this object identifies the maximum number of Telnet connections. The value ranges from 0 to 15. The default value is 5.') hwLoginUserInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2)) hwLoginUserInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1), ) if mibBuilder.loadTexts: hwLoginUserInfoTable.setStatus('current') if mibBuilder.loadTexts: hwLoginUserInfoTable.setDescription('This table is used to display the user information for login.') hwLoginUserInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1), ).setIndexNames((0, "HUAWEI-LINE-MIB", "hwUserInfoIndex")) if mibBuilder.loadTexts: hwLoginUserInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwLoginUserInfoEntry.setDescription('This table describes information about user login.') hwUserInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: hwUserInfoIndex.setStatus('current') if mibBuilder.loadTexts: hwUserInfoIndex.setDescription('This object indicates the index of the user information for login.') hwUserInfoName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwUserInfoName.setStatus('current') if mibBuilder.loadTexts: hwUserInfoName.setDescription('This object indicates the name of the user for login.') hwUserInfoIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwUserInfoIpAddr.setStatus('current') if mibBuilder.loadTexts: hwUserInfoIpAddr.setDescription('This object indicates the IP address of the user for login.') hwUserInfoChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwUserInfoChannel.setStatus('current') if mibBuilder.loadTexts: hwUserInfoChannel.setDescription('This object indicates the channel number of the user for login.') hwUserInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3)) hwUserInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1), ) if mibBuilder.loadTexts: hwUserInterfaceTable.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceTable.setDescription('This table describes information about user Interface.') hwUserInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1), ).setIndexNames((0, "HUAWEI-LINE-MIB", "hwInterfaceType"), (0, "HUAWEI-LINE-MIB", "hwUserInterfaceIndex")) if mibBuilder.loadTexts: hwUserInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceEntry.setDescription('This table describes information about user Interface.') hwInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("vty", 1)))) if mibBuilder.loadTexts: hwInterfaceType.setStatus('current') if mibBuilder.loadTexts: hwInterfaceType.setDescription('The type of the user interface.') hwUserInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))) if mibBuilder.loadTexts: hwUserInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceIndex.setDescription('The index of the user interface.') hwAuthenticationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("undefined", 0), ("none", 1), ("password", 2), ("aaa", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAuthenticationMode.setStatus('current') if mibBuilder.loadTexts: hwAuthenticationMode.setDescription('The authentication mode of the user interface.') hwProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("telnet", 1), ("ssh", 2), ("all", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwProtocol.setStatus('current') if mibBuilder.loadTexts: hwProtocol.setDescription('The protocol of the user interface.') hwUserInterfaceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwUserInterfaceRowStatus.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceRowStatus.setDescription('RowStatus for this Table.') hwLineNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2)) hwVtyNumExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 1)).setObjects(("HUAWEI-LINE-MIB", "hwMaxVtyNumber")) if mibBuilder.loadTexts: hwVtyNumExceed.setStatus('current') if mibBuilder.loadTexts: hwVtyNumExceed.setDescription('This object indicates the alarm reported when the number of Telnet users reaches the maximum number of Telnet connections. In addition, the maximum number of Telnet connections is displayed.') hwUserLogin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 2)).setObjects(("HUAWEI-LINE-MIB", "hwUserInfoName"), ("HUAWEI-LINE-MIB", "hwUserInfoIpAddr"), ("HUAWEI-LINE-MIB", "hwUserInfoChannel")) if mibBuilder.loadTexts: hwUserLogin.setStatus('current') if mibBuilder.loadTexts: hwUserLogin.setDescription('When a user logs in through Telnet/Stelnet, the user name, IP address for login, and used tunnel are reported.') hwUserLoginFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 3)).setObjects(("HUAWEI-LINE-MIB", "hwUserInfoName"), ("HUAWEI-LINE-MIB", "hwUserInfoIpAddr"), ("HUAWEI-LINE-MIB", "hwUserInfoChannel")) if mibBuilder.loadTexts: hwUserLoginFail.setStatus('current') if mibBuilder.loadTexts: hwUserLoginFail.setDescription('When a user fails to log in through Telnet/Stelnet, the user name, IP address for login, and used tunnel are reported.') hwUserLogout = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 4)).setObjects(("HUAWEI-LINE-MIB", "hwUserInfoName"), ("HUAWEI-LINE-MIB", "hwUserInfoIpAddr"), ("HUAWEI-LINE-MIB", "hwUserInfoChannel")) if mibBuilder.loadTexts: hwUserLogout.setStatus('current') if mibBuilder.loadTexts: hwUserLogout.setDescription('When a user logs out of the Telnet/Stelnet server, the user name, IP address for logout, and used tunnel are reported.') hwLineConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3)) hwLineCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 1)) hwLineCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 1, 1)).setObjects() if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwLineCompliance = hwLineCompliance.setStatus('current') if mibBuilder.loadTexts: hwLineCompliance.setDescription('The compliance statement for entities that support the huawei LINE MIB.') hwLineGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2)) hwLineNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 1)).setObjects(("HUAWEI-LINE-MIB", "hwVtyNumExceed"), ("HUAWEI-LINE-MIB", "hwUserLogin")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwLineNotificationGroup = hwLineNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwLineNotificationGroup.setDescription('The collection of notifications in the module.') hwLineUserInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 2)).setObjects(("HUAWEI-LINE-MIB", "hwUserInfoIndex"), ("HUAWEI-LINE-MIB", "hwUserInfoName"), ("HUAWEI-LINE-MIB", "hwUserInfoIpAddr"), ("HUAWEI-LINE-MIB", "hwUserInfoChannel")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwLineUserInfoGroup = hwLineUserInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwLineUserInfoGroup.setDescription('A collection of objects on Clock setting level information.') hwMaxVtyNumberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 3)).setObjects(("HUAWEI-LINE-MIB", "hwMaxVtyNumber")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMaxVtyNumberGroup = hwMaxVtyNumberGroup.setStatus('current') if mibBuilder.loadTexts: hwMaxVtyNumberGroup.setDescription('A collection of objects on vty number information.') mibBuilder.exportSymbols("HUAWEI-LINE-MIB", hwUserInterface=hwUserInterface, hwMaxVtyNumberGroup=hwMaxVtyNumberGroup, hwUserInterfaceEntry=hwUserInterfaceEntry, hwVtyNumExceed=hwVtyNumExceed, hwUserInfoIpAddr=hwUserInfoIpAddr, hwLoginUserInfoEntry=hwLoginUserInfoEntry, hwMaxVtyNumber=hwMaxVtyNumber, hwLoginUserInfo=hwLoginUserInfo, hwLineUserInfoGroup=hwLineUserInfoGroup, hwProtocol=hwProtocol, hwUserInterfaceRowStatus=hwUserInterfaceRowStatus, hwTelnetSet=hwTelnetSet, hwUserInterfaceTable=hwUserInterfaceTable, hwLineNotificationGroup=hwLineNotificationGroup, hwAuthenticationMode=hwAuthenticationMode, hwLineObjects=hwLineObjects, hwLineNotification=hwLineNotification, hwInterfaceType=hwInterfaceType, hwUserInterfaceIndex=hwUserInterfaceIndex, hwLoginUserInfoTable=hwLoginUserInfoTable, hwUserInfoName=hwUserInfoName, hwLineCompliance=hwLineCompliance, hwUserLoginFail=hwUserLoginFail, hwLineMIB=hwLineMIB, hwUserLogin=hwUserLogin, hwLineConformance=hwLineConformance, hwUserLogout=hwUserLogout, hwUserInfoIndex=hwUserInfoIndex, PYSNMP_MODULE_ID=hwLineMIB, hwUserInfoChannel=hwUserInfoChannel, hwLineCompliances=hwLineCompliances, hwLineGroups=hwLineGroups)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_intersection, constraints_union, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (bits, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, iso, notification_type, ip_address, time_ticks, mib_identifier, counter64, unsigned32, gauge32, counter32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'iso', 'NotificationType', 'IpAddress', 'TimeTicks', 'MibIdentifier', 'Counter64', 'Unsigned32', 'Gauge32', 'Counter32', 'ObjectIdentity') (display_string, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus') hw_line_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207)) if mibBuilder.loadTexts: hwLineMIB.setLastUpdated('200907311624Z') if mibBuilder.loadTexts: hwLineMIB.setOrganization('Huawei Technologies co.,Ltd.') if mibBuilder.loadTexts: hwLineMIB.setContactInfo('VRP Team Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ') if mibBuilder.loadTexts: hwLineMIB.setDescription('HUAWEI-LINE-MIB is used to configure and query attributes of connections through management interfaces by users, such as the maximum number of Telnet connections and login information about users. ') hw_line_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1)) hw_telnet_set = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 1)) hw_max_vty_number = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwMaxVtyNumber.setStatus('current') if mibBuilder.loadTexts: hwMaxVtyNumber.setDescription('The value of this object identifies the maximum number of Telnet connections. The value ranges from 0 to 15. The default value is 5.') hw_login_user_info = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2)) hw_login_user_info_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1)) if mibBuilder.loadTexts: hwLoginUserInfoTable.setStatus('current') if mibBuilder.loadTexts: hwLoginUserInfoTable.setDescription('This table is used to display the user information for login.') hw_login_user_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1)).setIndexNames((0, 'HUAWEI-LINE-MIB', 'hwUserInfoIndex')) if mibBuilder.loadTexts: hwLoginUserInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwLoginUserInfoEntry.setDescription('This table describes information about user login.') hw_user_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: hwUserInfoIndex.setStatus('current') if mibBuilder.loadTexts: hwUserInfoIndex.setDescription('This object indicates the index of the user information for login.') hw_user_info_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwUserInfoName.setStatus('current') if mibBuilder.loadTexts: hwUserInfoName.setDescription('This object indicates the name of the user for login.') hw_user_info_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwUserInfoIpAddr.setStatus('current') if mibBuilder.loadTexts: hwUserInfoIpAddr.setDescription('This object indicates the IP address of the user for login.') hw_user_info_channel = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwUserInfoChannel.setStatus('current') if mibBuilder.loadTexts: hwUserInfoChannel.setDescription('This object indicates the channel number of the user for login.') hw_user_interface = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3)) hw_user_interface_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1)) if mibBuilder.loadTexts: hwUserInterfaceTable.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceTable.setDescription('This table describes information about user Interface.') hw_user_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1)).setIndexNames((0, 'HUAWEI-LINE-MIB', 'hwInterfaceType'), (0, 'HUAWEI-LINE-MIB', 'hwUserInterfaceIndex')) if mibBuilder.loadTexts: hwUserInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceEntry.setDescription('This table describes information about user Interface.') hw_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('vty', 1)))) if mibBuilder.loadTexts: hwInterfaceType.setStatus('current') if mibBuilder.loadTexts: hwInterfaceType.setDescription('The type of the user interface.') hw_user_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))) if mibBuilder.loadTexts: hwUserInterfaceIndex.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceIndex.setDescription('The index of the user interface.') hw_authentication_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('undefined', 0), ('none', 1), ('password', 2), ('aaa', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAuthenticationMode.setStatus('current') if mibBuilder.loadTexts: hwAuthenticationMode.setDescription('The authentication mode of the user interface.') hw_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('telnet', 1), ('ssh', 2), ('all', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwProtocol.setStatus('current') if mibBuilder.loadTexts: hwProtocol.setDescription('The protocol of the user interface.') hw_user_interface_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 1, 3, 1, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwUserInterfaceRowStatus.setStatus('current') if mibBuilder.loadTexts: hwUserInterfaceRowStatus.setDescription('RowStatus for this Table.') hw_line_notification = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2)) hw_vty_num_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 1)).setObjects(('HUAWEI-LINE-MIB', 'hwMaxVtyNumber')) if mibBuilder.loadTexts: hwVtyNumExceed.setStatus('current') if mibBuilder.loadTexts: hwVtyNumExceed.setDescription('This object indicates the alarm reported when the number of Telnet users reaches the maximum number of Telnet connections. In addition, the maximum number of Telnet connections is displayed.') hw_user_login = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 2)).setObjects(('HUAWEI-LINE-MIB', 'hwUserInfoName'), ('HUAWEI-LINE-MIB', 'hwUserInfoIpAddr'), ('HUAWEI-LINE-MIB', 'hwUserInfoChannel')) if mibBuilder.loadTexts: hwUserLogin.setStatus('current') if mibBuilder.loadTexts: hwUserLogin.setDescription('When a user logs in through Telnet/Stelnet, the user name, IP address for login, and used tunnel are reported.') hw_user_login_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 3)).setObjects(('HUAWEI-LINE-MIB', 'hwUserInfoName'), ('HUAWEI-LINE-MIB', 'hwUserInfoIpAddr'), ('HUAWEI-LINE-MIB', 'hwUserInfoChannel')) if mibBuilder.loadTexts: hwUserLoginFail.setStatus('current') if mibBuilder.loadTexts: hwUserLoginFail.setDescription('When a user fails to log in through Telnet/Stelnet, the user name, IP address for login, and used tunnel are reported.') hw_user_logout = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 2, 4)).setObjects(('HUAWEI-LINE-MIB', 'hwUserInfoName'), ('HUAWEI-LINE-MIB', 'hwUserInfoIpAddr'), ('HUAWEI-LINE-MIB', 'hwUserInfoChannel')) if mibBuilder.loadTexts: hwUserLogout.setStatus('current') if mibBuilder.loadTexts: hwUserLogout.setDescription('When a user logs out of the Telnet/Stelnet server, the user name, IP address for logout, and used tunnel are reported.') hw_line_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3)) hw_line_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 1)) hw_line_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 1, 1)).setObjects() if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_line_compliance = hwLineCompliance.setStatus('current') if mibBuilder.loadTexts: hwLineCompliance.setDescription('The compliance statement for entities that support the huawei LINE MIB.') hw_line_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2)) hw_line_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 1)).setObjects(('HUAWEI-LINE-MIB', 'hwVtyNumExceed'), ('HUAWEI-LINE-MIB', 'hwUserLogin')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_line_notification_group = hwLineNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwLineNotificationGroup.setDescription('The collection of notifications in the module.') hw_line_user_info_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 2)).setObjects(('HUAWEI-LINE-MIB', 'hwUserInfoIndex'), ('HUAWEI-LINE-MIB', 'hwUserInfoName'), ('HUAWEI-LINE-MIB', 'hwUserInfoIpAddr'), ('HUAWEI-LINE-MIB', 'hwUserInfoChannel')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_line_user_info_group = hwLineUserInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwLineUserInfoGroup.setDescription('A collection of objects on Clock setting level information.') hw_max_vty_number_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 207, 3, 2, 3)).setObjects(('HUAWEI-LINE-MIB', 'hwMaxVtyNumber')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_max_vty_number_group = hwMaxVtyNumberGroup.setStatus('current') if mibBuilder.loadTexts: hwMaxVtyNumberGroup.setDescription('A collection of objects on vty number information.') mibBuilder.exportSymbols('HUAWEI-LINE-MIB', hwUserInterface=hwUserInterface, hwMaxVtyNumberGroup=hwMaxVtyNumberGroup, hwUserInterfaceEntry=hwUserInterfaceEntry, hwVtyNumExceed=hwVtyNumExceed, hwUserInfoIpAddr=hwUserInfoIpAddr, hwLoginUserInfoEntry=hwLoginUserInfoEntry, hwMaxVtyNumber=hwMaxVtyNumber, hwLoginUserInfo=hwLoginUserInfo, hwLineUserInfoGroup=hwLineUserInfoGroup, hwProtocol=hwProtocol, hwUserInterfaceRowStatus=hwUserInterfaceRowStatus, hwTelnetSet=hwTelnetSet, hwUserInterfaceTable=hwUserInterfaceTable, hwLineNotificationGroup=hwLineNotificationGroup, hwAuthenticationMode=hwAuthenticationMode, hwLineObjects=hwLineObjects, hwLineNotification=hwLineNotification, hwInterfaceType=hwInterfaceType, hwUserInterfaceIndex=hwUserInterfaceIndex, hwLoginUserInfoTable=hwLoginUserInfoTable, hwUserInfoName=hwUserInfoName, hwLineCompliance=hwLineCompliance, hwUserLoginFail=hwUserLoginFail, hwLineMIB=hwLineMIB, hwUserLogin=hwUserLogin, hwLineConformance=hwLineConformance, hwUserLogout=hwUserLogout, hwUserInfoIndex=hwUserInfoIndex, PYSNMP_MODULE_ID=hwLineMIB, hwUserInfoChannel=hwUserInfoChannel, hwLineCompliances=hwLineCompliances, hwLineGroups=hwLineGroups)
#simple DB API testcase class TestSimpleDBAPI(object): def test_regular_selection(self, duckdb_cursor): duckdb_cursor.execute('SELECT * FROM integers') result = duckdb_cursor.fetchall() assert result == [(0,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (None,)], "Incorrect result returned"
class Testsimpledbapi(object): def test_regular_selection(self, duckdb_cursor): duckdb_cursor.execute('SELECT * FROM integers') result = duckdb_cursor.fetchall() assert result == [(0,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (None,)], 'Incorrect result returned'
def enforce(*types): def decorator(f): def new_func(*args, **kwargs): new_args = [] for (a, t) in zip(args, types): new_args.append(t(a)) return f(*new_args, **kwargs) return new_func return decorator @enforce(str, int) def repeat_msg(msg, times): for time in range(times): print(msg) repeat_msg("hello", "3") @enforce(float, float) def divide(a, b): print(a / b) divide('1', '4')
def enforce(*types): def decorator(f): def new_func(*args, **kwargs): new_args = [] for (a, t) in zip(args, types): new_args.append(t(a)) return f(*new_args, **kwargs) return new_func return decorator @enforce(str, int) def repeat_msg(msg, times): for time in range(times): print(msg) repeat_msg('hello', '3') @enforce(float, float) def divide(a, b): print(a / b) divide('1', '4')
S = raw_input() N = input() for i in range(N): Wi = raw_input() c = 0 for x in Wi: if x in S: c+=1 else: print("No") break if c == len(Wi): print("Yes")
s = raw_input() n = input() for i in range(N): wi = raw_input() c = 0 for x in Wi: if x in S: c += 1 else: print('No') break if c == len(Wi): print('Yes')
TEXT_STYLE_INPUTS = ( 'EmailInput', 'NumberInput', 'PasswordInput', 'TextInput', 'Textarea', 'URLInput', )
text_style_inputs = ('EmailInput', 'NumberInput', 'PasswordInput', 'TextInput', 'Textarea', 'URLInput')
print ("Hello Python!") counter = 100 # An integer assignment miles = 1000.0 # A floating point name = "John" # A string print (counter) print (miles) print (name) print () # two examples of assignment which could cause confusion. a=1 b=2 # in this case b is assigned a+b where a is the original value (1) # not the newly assigned value (2) from b on the LHS a, b = b, a + b print (a) print (b) print () a=1 b=2 a = b b = a + b print (a) print (b)
print('Hello Python!') counter = 100 miles = 1000.0 name = 'John' print(counter) print(miles) print(name) print() a = 1 b = 2 (a, b) = (b, a + b) print(a) print(b) print() a = 1 b = 2 a = b b = a + b print(a) print(b)
zabbixapiurl = 'your zabbix url' zabbixapilogin = 'your zabbix login' zabbixapipasswd = 'your zabbix passwd' ecopowerstart = '20:00:00' ecopowerfinish = '09:00:00' bridgepasswd = 'PyZabbixHuePasswd' flickingperiod = 600 runinterval = 60
zabbixapiurl = 'your zabbix url' zabbixapilogin = 'your zabbix login' zabbixapipasswd = 'your zabbix passwd' ecopowerstart = '20:00:00' ecopowerfinish = '09:00:00' bridgepasswd = 'PyZabbixHuePasswd' flickingperiod = 600 runinterval = 60
class Solution: def letterCombinations(self, digits: str) -> List[str]: d = { 2:"abc", 3:"def", 4:"ghi", 5:"jkl", 6:"mno", 7:"pqrs", 8:"tuv", 9:"wxyz" } if digits == "": return [] ans = [] current = [] n = len(digits) i = 0 def f(i): if i == n: ans.append("".join(current)) return for c in d[int(digits[i])]: current.append(c) f(i+1) current.pop() f(0) return ans
class Solution: def letter_combinations(self, digits: str) -> List[str]: d = {2: 'abc', 3: 'def', 4: 'ghi', 5: 'jkl', 6: 'mno', 7: 'pqrs', 8: 'tuv', 9: 'wxyz'} if digits == '': return [] ans = [] current = [] n = len(digits) i = 0 def f(i): if i == n: ans.append(''.join(current)) return for c in d[int(digits[i])]: current.append(c) f(i + 1) current.pop() f(0) return ans
expected_output = { 'vrf': { 'default': { 'peer': { '192.168.229.3': { 'connect_source_address': '192.168.100.1', 'elapsed_time': '00:00:09', 'nsr': { 'oper_downs': 0, 'state': 'StopRead', 'up_down_time': '1d02h'}, 'password': 'None', 'peer_as': 65109, 'peer_name': '?', 'reset': '999', 'sa_filter': { 'in': { '(S,G)': { 'filter': 'none'}, 'RP': { 'filter': 'none'}}, 'out': { '(S,G)': { 'filter': 'none'}, 'RP': { 'filter': 'none'}}}, 'sa_request': { 'input_filter': 'none', 'sa_request_to_peer': 'disabled'}, 'session_state': 'Inactive', 'statistics': { 'conn_count_cleared': '00:01:25', 'output_message_discarded': 0, 'queue': { 'size_input': 0, 'size_output': 0}, 'received': { 'sa_message': 0, 'tlv_message': 0}, 'sent': { 'tlv_message': 3}}, 'timer': { 'keepalive_interval': 30, 'peer_timeout_interval': 75}, 'ttl_threshold': 2}}}}}
expected_output = {'vrf': {'default': {'peer': {'192.168.229.3': {'connect_source_address': '192.168.100.1', 'elapsed_time': '00:00:09', 'nsr': {'oper_downs': 0, 'state': 'StopRead', 'up_down_time': '1d02h'}, 'password': 'None', 'peer_as': 65109, 'peer_name': '?', 'reset': '999', 'sa_filter': {'in': {'(S,G)': {'filter': 'none'}, 'RP': {'filter': 'none'}}, 'out': {'(S,G)': {'filter': 'none'}, 'RP': {'filter': 'none'}}}, 'sa_request': {'input_filter': 'none', 'sa_request_to_peer': 'disabled'}, 'session_state': 'Inactive', 'statistics': {'conn_count_cleared': '00:01:25', 'output_message_discarded': 0, 'queue': {'size_input': 0, 'size_output': 0}, 'received': {'sa_message': 0, 'tlv_message': 0}, 'sent': {'tlv_message': 3}}, 'timer': {'keepalive_interval': 30, 'peer_timeout_interval': 75}, 'ttl_threshold': 2}}}}}
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reorderList(self, head) -> None: """ Do not return anything, modify head in-place instead. """ if head is None or head.next is None: return head memo=[] while head is not None: memo.append(head) head=head.next left=0 right=len(memo)-1 temp=None while left<=right: if temp is not None: temp.next=memo[left] memo[left].next=memo[right] memo[right].next=None temp=right left+=1 right-=1
class Solution: def reorder_list(self, head) -> None: """ Do not return anything, modify head in-place instead. """ if head is None or head.next is None: return head memo = [] while head is not None: memo.append(head) head = head.next left = 0 right = len(memo) - 1 temp = None while left <= right: if temp is not None: temp.next = memo[left] memo[left].next = memo[right] memo[right].next = None temp = right left += 1 right -= 1
up_alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" class Columnar: def col_encrypt(plaintext, key): plaintext = plaintext.replace(" ", "") cipher = "" num_key = [] key_index = [] table = [] row = [] for i in key.upper(): num_key.append(up_alpha.index(i)) for i in num_key: sorted_key = num_key.copy() sorted_key.sort() key_index.append(sorted_key.index(i) + 1) while len(plaintext) % len(key_index) != 0: plaintext = plaintext + 'X' i = 1 for char in plaintext: row.append(char) if i % len(key_index) == 0: table.append(row.copy()) row.clear() i = i + 1 for i in range(len(key_index)): for row in table: cipher = cipher + row[key_index.index(i + 1)] return cipher def col_decrypt(cipher, key): cipher = cipher.replace(" ", "") plaintext = "" num_key = [] key_index = [] table = [] col = [] for i in key.upper(): num_key.append(up_alpha.index(i)) for i in num_key: sorted_key = num_key.copy() sorted_key.sort() key_index.append(sorted_key.index(i) + 1) while len(plaintext) % len(key_index) != 0: cipher = cipher + 'X' i = 1 for char in cipher: col.append(char) if i % (len(key_index) // len(key_index)) == 0: table.append(col.copy()) col.clear() i = i + 1 for i in range(len(key_index)): for col in table: cipher = cipher + col[key_index[i]] return plaintext
up_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' class Columnar: def col_encrypt(plaintext, key): plaintext = plaintext.replace(' ', '') cipher = '' num_key = [] key_index = [] table = [] row = [] for i in key.upper(): num_key.append(up_alpha.index(i)) for i in num_key: sorted_key = num_key.copy() sorted_key.sort() key_index.append(sorted_key.index(i) + 1) while len(plaintext) % len(key_index) != 0: plaintext = plaintext + 'X' i = 1 for char in plaintext: row.append(char) if i % len(key_index) == 0: table.append(row.copy()) row.clear() i = i + 1 for i in range(len(key_index)): for row in table: cipher = cipher + row[key_index.index(i + 1)] return cipher def col_decrypt(cipher, key): cipher = cipher.replace(' ', '') plaintext = '' num_key = [] key_index = [] table = [] col = [] for i in key.upper(): num_key.append(up_alpha.index(i)) for i in num_key: sorted_key = num_key.copy() sorted_key.sort() key_index.append(sorted_key.index(i) + 1) while len(plaintext) % len(key_index) != 0: cipher = cipher + 'X' i = 1 for char in cipher: col.append(char) if i % (len(key_index) // len(key_index)) == 0: table.append(col.copy()) col.clear() i = i + 1 for i in range(len(key_index)): for col in table: cipher = cipher + col[key_index[i]] return plaintext
"""Initialization file for library.""" # pylint: disable=C0114 __version__ = "0.1.1"
"""Initialization file for library.""" __version__ = '0.1.1'
def get_mwa_eor_freq(ch): if ch > 704: print('Maximum frequency channel is 704') else: return 138.915 + 0.08 * ch
def get_mwa_eor_freq(ch): if ch > 704: print('Maximum frequency channel is 704') else: return 138.915 + 0.08 * ch
#!/usr/bin/python3 def f(l1,l2): n,m = len(l1),len(l1[0]) d = sum([l1[i][j]!=l2[i][j] for i in range(n) for j in range(m)]) if d*2 > n*m: for i in range(n): for j in range(m): l1[i][j] = 'X' if l1[i][j]=='.' else '.' return [''.join(l) for l in l1] n,m = list(map(int,input().split())) l1 = [list(input()) for i in range(n)] l2 = [list(input()) for i in range(n)] [print(l) for l in f(l1,l2)]
def f(l1, l2): (n, m) = (len(l1), len(l1[0])) d = sum([l1[i][j] != l2[i][j] for i in range(n) for j in range(m)]) if d * 2 > n * m: for i in range(n): for j in range(m): l1[i][j] = 'X' if l1[i][j] == '.' else '.' return [''.join(l) for l in l1] (n, m) = list(map(int, input().split())) l1 = [list(input()) for i in range(n)] l2 = [list(input()) for i in range(n)] [print(l) for l in f(l1, l2)]
# Open doors and collect treasures. peasant = hero.findByType("peasant")[0] goldKey = peasant.findByType("gold-key")[0] silverKey = peasant.findByType("silver-key")[0] bronzeKey = peasant.findByType("bronze-key")[0] # Command the peasant to pick up the gold and silver keys. hero.command(peasant, "pickUpItem", goldKey) hero.command(peasant, "pickUpItem", silverKey) # Now, command the peasant to pick up the last key: # Command the peasant to drop a key near the first door. hero.command(peasant, "dropItem", {"x": 40, "y": 34}) # The second key -> the second door. hero.command(peasant, "dropItem", {"x": 31, "y": 34}) # Drop the first (in the stack) key to the last door: # Hurry and collect treasures!
peasant = hero.findByType('peasant')[0] gold_key = peasant.findByType('gold-key')[0] silver_key = peasant.findByType('silver-key')[0] bronze_key = peasant.findByType('bronze-key')[0] hero.command(peasant, 'pickUpItem', goldKey) hero.command(peasant, 'pickUpItem', silverKey) hero.command(peasant, 'dropItem', {'x': 40, 'y': 34}) hero.command(peasant, 'dropItem', {'x': 31, 'y': 34})
class Base: """The base object for all top-level client objects. Parameters ---------- domain : one of rubicon.domain.* The top-level object's domain instance. config : rubicon.client.Config, optional The config, which injects the repository to use. """ def __init__(self, domain, config=None): self._config = config self._domain = domain def __str__(self): return self._domain.__str__() @property def repository(self): return self._config.repository
class Base: """The base object for all top-level client objects. Parameters ---------- domain : one of rubicon.domain.* The top-level object's domain instance. config : rubicon.client.Config, optional The config, which injects the repository to use. """ def __init__(self, domain, config=None): self._config = config self._domain = domain def __str__(self): return self._domain.__str__() @property def repository(self): return self._config.repository
"""Widget framework """ __all__ = \ [ 'animators', 'assembly_view', 'axial_plot', 'colormaps.py', 'core_axial_view', 'core_view', 'core_view_plot', 'data_analysis_view', 'detector_multi_view', 'image_ops', 'intrapin_edits_assembly_view', 'intrapin_edits_plot', 'legend3', 'plot_widget', 'raster_widget', 'subpin_len_plot', 'subpin_plot', 'subpin_view', 'table_view', 'time_plots', 'vessel_core_axial_view', 'vessel_core_view', 'widget', 'widget_config', 'widget_ops', 'widgetcontainer', ] __version__ = '2.4.0'
"""Widget framework """ __all__ = ['animators', 'assembly_view', 'axial_plot', 'colormaps.py', 'core_axial_view', 'core_view', 'core_view_plot', 'data_analysis_view', 'detector_multi_view', 'image_ops', 'intrapin_edits_assembly_view', 'intrapin_edits_plot', 'legend3', 'plot_widget', 'raster_widget', 'subpin_len_plot', 'subpin_plot', 'subpin_view', 'table_view', 'time_plots', 'vessel_core_axial_view', 'vessel_core_view', 'widget', 'widget_config', 'widget_ops', 'widgetcontainer'] __version__ = '2.4.0'
# using break to stop looping is_learning = True while is_learning: print("I'm still learning") break # using other statement to stop looping hungry = True while hungry: print("let's go eat") hungry = False ''' value that not 'false' or you input other value except 'false' is equal to true in this case, you input 'yes' or 'no' to get always loop thirsty = True while thirsty: print(input("are you thirsty? ")) to fix it, you should initiate 'yes' equal to true ''' thirsty = True while thirsty: is_thirsty = input("are you thirsty? ") thirsty = is_thirsty == "yes" # other case that convert boolean to string user_input = input("Do you wish to run program? (y/n) ") while user_input == "y": print("we are running!") user_input = input("Do you wish to run program again? (y/n) ") print("we stopped running")
is_learning = True while is_learning: print("I'm still learning") break hungry = True while hungry: print("let's go eat") hungry = False '\nvalue that not \'false\'\nor you input other value except \'false\' is equal to true\nin this case, you input \'yes\' or \'no\' to get always loop\n\nthirsty = True\n\nwhile thirsty:\n print(input("are you thirsty? "))\n\nto fix it, you should initiate \'yes\' equal to true\n' thirsty = True while thirsty: is_thirsty = input('are you thirsty? ') thirsty = is_thirsty == 'yes' user_input = input('Do you wish to run program? (y/n) ') while user_input == 'y': print('we are running!') user_input = input('Do you wish to run program again? (y/n) ') print('we stopped running')
class Keyboard: def __init__(self): self.keys = [] def add_key(self, key): self.keys.append(key) def get_key(self, index): return [key for key in self.keys if key.index == index][0] if __name__ == '__main__': exit()
class Keyboard: def __init__(self): self.keys = [] def add_key(self, key): self.keys.append(key) def get_key(self, index): return [key for key in self.keys if key.index == index][0] if __name__ == '__main__': exit()
# Write a Python function to find the maximum and minimum numbers from a sequence of numbers List = [2, 4, 6, 41, 8, 10, 5] max = 0 for i in List: if i > max: max = i print(max)
list = [2, 4, 6, 41, 8, 10, 5] max = 0 for i in List: if i > max: max = i print(max)
class Solution: def judgeSquareSum(self, c): """ :type c: int :rtype: bool """ right = int(c ** 0.5) left = 0 while left <= right: s = left * left + right * right if s == c: return True elif s < c: left += 1 elif s > c: right -= 1 return False if __name__ == '__main__': solution = Solution() print(solution.judgeSquareSum(3)) print(solution.judgeSquareSum(5)) print(solution.judgeSquareSum(7)) print(solution.judgeSquareSum(8)) else: pass
class Solution: def judge_square_sum(self, c): """ :type c: int :rtype: bool """ right = int(c ** 0.5) left = 0 while left <= right: s = left * left + right * right if s == c: return True elif s < c: left += 1 elif s > c: right -= 1 return False if __name__ == '__main__': solution = solution() print(solution.judgeSquareSum(3)) print(solution.judgeSquareSum(5)) print(solution.judgeSquareSum(7)) print(solution.judgeSquareSum(8)) else: pass
""" entrada capital-->float-->cap salida ganacia-->float-->g intereses-->float-->i """ #entrada cap=int(input("Digite capital invertido:")) #cajanegra i=cap*0.02 g=cap+i #salidas print("Ganancia despues de un mes:"+str(g))
""" entrada capital-->float-->cap salida ganacia-->float-->g intereses-->float-->i """ cap = int(input('Digite capital invertido:')) i = cap * 0.02 g = cap + i print('Ganancia despues de un mes:' + str(g))
class StreetParking: def freeParks(self, street): c, l = 0, len(street) for i in xrange(l): if ( street[i] == "-" and "B" not in street[i + 1 : i + 3] and "S" not in street[max(i - 1, 0) : i + 2] ): c += 1 return c
class Streetparking: def free_parks(self, street): (c, l) = (0, len(street)) for i in xrange(l): if street[i] == '-' and 'B' not in street[i + 1:i + 3] and ('S' not in street[max(i - 1, 0):i + 2]): c += 1 return c
# 1st brute-force solution class Solution: def maxProduct(self, nums: List[int]) -> int: largest = nums[0] for i in range(len(nums)): curProduct = 1 for j in range(i, len(nums)): curProduct *= nums[j] largest = max(largest, curProduct) return largest # 2nd solution # o(n) time | O(1) space class Solution: def maxProduct(self, nums: List[int]) -> int: r = nums[0] imax = r imin = r # imax/imin stores the max/min product of # subarray that ends with the current number A[i] for i in range(1, len(nums)): # multiplied by a negative makes big number smaller, small number bigger # so we redefine the extremums by swapping them if nums[i] < 0: imax, imin = imin, imax # max/min product for the current number is either the current number itself # or the max/min by the previous number times the current one imax = max(nums[i], imax * nums[i]) imin = min(nums[i], imin * nums[i]) # the newly computed max value is a candidate for our global result r = max(r, imax) return r
class Solution: def max_product(self, nums: List[int]) -> int: largest = nums[0] for i in range(len(nums)): cur_product = 1 for j in range(i, len(nums)): cur_product *= nums[j] largest = max(largest, curProduct) return largest class Solution: def max_product(self, nums: List[int]) -> int: r = nums[0] imax = r imin = r for i in range(1, len(nums)): if nums[i] < 0: (imax, imin) = (imin, imax) imax = max(nums[i], imax * nums[i]) imin = min(nums[i], imin * nums[i]) r = max(r, imax) return r
# ls0 = "3, 4, 1, 5" # Lengths. # # ls0 = "197, 97, 204, 108, 1, 29, 5, 71, 0, 50, 2, 255, 248, 78, 254, 63" # ls1 = list(map(int, [c[:-1] if c[-1] == ',' else c for c in ls0.split()])) # upper_bound = 5 # # upper_bound = 256 # xs = range(upper_bound) # skip_size = 0 # pos = 0 # size = len(xs) # assert all((l <= size and l >= 0 for l in ls1)), \ # 'One of the lengths exceeds the size of the list: list {} and size {}'.format(ls1, size) # # For simplicities sake. # ls = ls1 # # Man this function is a mess. # def rev_sublist(l, xs, pos): # size = len(xs) # if l == 0: # rev [] == [] # ys = [] # elif l == 1: # rev [x] == [x] # ys = [xs[pos]] # elif pos+l > size: # Needs to wrap around. # ys = (xs[pos:size+1] + xs[:(size-l+1)])[::-1] # else: # Does not need to wrap around. # ys = xs[:pos+l+1][::-1] # assert len(ys) <= len(xs) # return ys # for l in ls: # ys = rev_sublist(l, xs, pos) # for i in range(len(ys)): # xs[pos] = ys[i] # pos = (pos+1) % size # pos += skip_size % size # skip_size += 1 # print('checksum: {}'.format(xs[0] * xs[1])) # TAKE TWO: s = "3, 4, 1, 5" s = "197, 97, 204, 108, 1, 29, 5, 71, 0, 50, 2, 255, 248, 78, 254, 63" ls = list(map(lambda c: int(c) if c[-1] != ',' else int(c[:-1]), s.split())) upper_bound = 5 upper_bound = 256 assert all((l <= upper_bound and l >= 0 for l in ls)) # Why not use greek? iota = 0 # position sigma = 0 # skip size xs = list(range(upper_bound)) zeta = len(xs) for l in ls: ys = [] l_prime = 0 while l_prime != l: kappa = (l+iota-l_prime-1)%zeta ys.append(xs[kappa]) l_prime += 1 assert len(ys) <= zeta l_double_prime = 0 for y in ys: xs[iota] = y iota = (iota+1)%zeta l_double_prime += 1 iota = (iota+sigma)%zeta assert l_double_prime == l sigma += 1 print(xs) print(xs[0] * xs[1])
s = '3, 4, 1, 5' s = '197, 97, 204, 108, 1, 29, 5, 71, 0, 50, 2, 255, 248, 78, 254, 63' ls = list(map(lambda c: int(c) if c[-1] != ',' else int(c[:-1]), s.split())) upper_bound = 5 upper_bound = 256 assert all((l <= upper_bound and l >= 0 for l in ls)) iota = 0 sigma = 0 xs = list(range(upper_bound)) zeta = len(xs) for l in ls: ys = [] l_prime = 0 while l_prime != l: kappa = (l + iota - l_prime - 1) % zeta ys.append(xs[kappa]) l_prime += 1 assert len(ys) <= zeta l_double_prime = 0 for y in ys: xs[iota] = y iota = (iota + 1) % zeta l_double_prime += 1 iota = (iota + sigma) % zeta assert l_double_prime == l sigma += 1 print(xs) print(xs[0] * xs[1])
''' Project Euler Problem 18 Created: 2012-06-18 Author: William McDonald ''' ''' IDEA: For a given row, store the maximum sum to get to each element in that row by using the maximum sums for the row above it. e.g. 08 01 02 01 05 04 ==> 09 10 01 04 05 ==> 10 15 14 Now simply take the maximum. ''' FILE_NAME = 'problem18.txt' def importTri(): # Import the triangle (convert to ints) with open(FILE_NAME) as f: return [[int(x) for x in line.split()] for line in f] def getMax(lastMax, cur): # lastMax is a list of maximum sums to elements in the previous rows # Add first elements newMax = [lastMax[0] + cur[0]] for i, n in enumerate(cur[1:-1]): newMax.append(max(lastMax[i], lastMax[i+1]) + n) # Add last elements newMax.append(lastMax[-1] + cur[-1]) return newMax def getAns(): t = importTri() # Initially check last maximum lastMax = t[0] for row in t[1:]: lastMax = getMax(lastMax, row) return max(lastMax) print(getAns())
""" Project Euler Problem 18 Created: 2012-06-18 Author: William McDonald """ '\nIDEA:\nFor a given row, store the maximum sum to get to each element in that row by\nusing the maximum sums for the row above it.\n\ne.g.\n 08\n 01 02\n 01 05 04\n==>\n 09 10\n 01 04 05\n==>\n 10 15 14\n\nNow simply take the maximum.\n' file_name = 'problem18.txt' def import_tri(): with open(FILE_NAME) as f: return [[int(x) for x in line.split()] for line in f] def get_max(lastMax, cur): new_max = [lastMax[0] + cur[0]] for (i, n) in enumerate(cur[1:-1]): newMax.append(max(lastMax[i], lastMax[i + 1]) + n) newMax.append(lastMax[-1] + cur[-1]) return newMax def get_ans(): t = import_tri() last_max = t[0] for row in t[1:]: last_max = get_max(lastMax, row) return max(lastMax) print(get_ans())
def is_divisible_by_seven(x): if x % 7 == 0: return True return False def is_not_multiple_of_five(x): while x > 0: x -= 5 if x == 0: return False return True result = [x for x in range(2000, 3201) if is_divisible_by_seven(x) and is_not_multiple_of_five(x)] print(result)
def is_divisible_by_seven(x): if x % 7 == 0: return True return False def is_not_multiple_of_five(x): while x > 0: x -= 5 if x == 0: return False return True result = [x for x in range(2000, 3201) if is_divisible_by_seven(x) and is_not_multiple_of_five(x)] print(result)
# # PySNMP MIB module CAT2600-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CAT2600-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:29:39 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Bits, Gauge32, MibIdentifier, ModuleIdentity, TimeTicks, iso, ObjectIdentity, enterprises, Counter64, NotificationType, Unsigned32, Counter32, Integer32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Gauge32", "MibIdentifier", "ModuleIdentity", "TimeTicks", "iso", "ObjectIdentity", "enterprises", "Counter64", "NotificationType", "Unsigned32", "Counter32", "Integer32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class MacAddr(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 cisco = MibIdentifier((1, 3, 6, 1, 4, 1, 9)) catProd = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1)) cat2600 = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111)) cat2600Ts = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1)) cat2600TsObjectID = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 1)) cat2600TsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2)) dtrMIBs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3)) dtrConcMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3, 1)) dtrMacMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3, 2)) cat2600TsMain = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1)) cat2600TsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1)) cat2600TsSys = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2)) cat2600TsPort = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2)) cat2600TsDmns = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3)) cat2600TsPipe = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4)) cat2600TsFilter = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5)) cat2600TsUFC = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6)) cat2600TsSysObjectID = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 1, 1)) cat2600TsFwVer = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFwVer.setStatus('mandatory') cat2600TsHwVer = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsHwVer.setStatus('mandatory') cat2600TsSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsSerialNumber.setStatus('mandatory') cat2600TsInstallationDate = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsInstallationDate.setStatus('mandatory') cat2600TsFwSize = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFwSize.setStatus('mandatory') cat2600TsFwCRC = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFwCRC.setStatus('mandatory') cat2600TsFwManufacturer = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFwManufacturer.setStatus('mandatory') cat2600TsIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 8), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsIpAddr.setStatus('mandatory') cat2600TsNetMask = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 9), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsNetMask.setStatus('mandatory') cat2600TsDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 10), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDefaultGateway.setStatus('mandatory') cat2600TsTrapRcvrTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14), ) if mibBuilder.loadTexts: cat2600TsTrapRcvrTable.setStatus('mandatory') cat2600TsTrapRcvrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsTrapRcvrIndex")) if mibBuilder.loadTexts: cat2600TsTrapRcvrEntry.setStatus('mandatory') cat2600TsTrapRcvrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsTrapRcvrIndex.setStatus('mandatory') cat2600TsTrapRcvrStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("valid", 2), ("invalid", 3), ("create", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTrapRcvrStatus.setStatus('mandatory') cat2600TsTrapRcvrIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTrapRcvrIpAddress.setStatus('mandatory') cat2600TsTrapRcvrComm = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTrapRcvrComm.setStatus('mandatory') cat2600TsTrapRcvrDmns = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTrapRcvrDmns.setStatus('mandatory') cat2600TsPingInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 19), Integer32().clone(600)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPingInterval.setStatus('mandatory') cat2600TsTapPort = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTapPort.setStatus('mandatory') cat2600TsTapMonitoredPort = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTapMonitoredPort.setStatus('mandatory') cat2600TsCrcThresholdHi = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 22), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsCrcThresholdHi.setStatus('mandatory') cat2600TsCrcThresholdLow = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 23), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsCrcThresholdLow.setStatus('mandatory') cat2600TsPortSwitchModeChangeTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortSwitchModeChangeTrapEnable.setStatus('mandatory') cat2600TsTrendThreshold = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 25), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsTrendThreshold.setStatus('mandatory') cat2600TsSamplingPeriod = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsSamplingPeriod.setStatus('mandatory') cat2600TsNumberUFC = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsNumberUFC.setStatus('mandatory') cat2600TsNumPorts = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsNumPorts.setStatus('mandatory') cat2600TsNumStations = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsNumStations.setStatus('mandatory') cat2600TsMostStations = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsMostStations.setStatus('mandatory') cat2600TsMaxStations = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsMaxStations.setStatus('mandatory') cat2600TsReset = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("running", 1), ("hardReset", 2), ("softReset", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsReset.setStatus('mandatory') cat2600TsNumResets = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsNumResets.setStatus('mandatory') cat2600TsAddrAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9999))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsAddrAgingTime.setStatus('mandatory') cat2600TsSysTemperature = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("toohigh", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsSysTemperature.setStatus('mandatory') cat2600TsInstalledMemory = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsInstalledMemory.setStatus('mandatory') cat2600TsSysCurTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsSysCurTime.setStatus('mandatory') cat2600TsPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1), ) if mibBuilder.loadTexts: cat2600TsPortTable.setStatus('mandatory') cat2600TsPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsPortIndex")) if mibBuilder.loadTexts: cat2600TsPortEntry.setStatus('mandatory') cat2600TsPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortIndex.setStatus('mandatory') cat2600TsPortRcvLocalFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortRcvLocalFrames.setStatus('mandatory') cat2600TsPortForwardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortForwardedFrames.setStatus('mandatory') cat2600TsPortMostStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortMostStations.setStatus('mandatory') cat2600TsPortMaxStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortMaxStations.setStatus('mandatory') cat2600TsPortSWHandledFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortSWHandledFrames.setStatus('mandatory') cat2600TsPortLocalStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortLocalStations.setStatus('mandatory') cat2600TsPortRemoteStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortRemoteStations.setStatus('mandatory') cat2600TsPortUnknownStaFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortUnknownStaFrames.setStatus('mandatory') cat2600TsPortResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("running", 2), ("reset", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortResetStats.setStatus('mandatory') cat2600TsPortResetTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 11), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortResetTimer.setStatus('mandatory') cat2600TsPortResetAddrs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("running", 2), ("reset", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortResetAddrs.setStatus('mandatory') cat2600TsPortRcvBcasts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortRcvBcasts.setStatus('mandatory') cat2600TsPortSwitchedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortSwitchedFrames.setStatus('mandatory') cat2600TsPortLinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortLinkState.setStatus('mandatory') cat2600TsPortHashOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortHashOverflows.setStatus('mandatory') cat2600TsPortAddrAgingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortAddrAgingTime.setStatus('mandatory') cat2600TsPortSwitchMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("storeandforward", 1), ("cutthru", 2), ("auto", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortSwitchMode.setStatus('mandatory') cat2600TsPortFixedCfg = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auto-detect", 1), ("fixed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortFixedCfg.setStatus('mandatory') cat2600TsPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("adapter", 1), ("port", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortMode.setStatus('mandatory') cat2600TsPortDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("half-duplex", 1), ("full-duplex", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortDuplex.setStatus('mandatory') cat2600TsPortCfgLoss = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortCfgLoss.setStatus('mandatory') cat2600TsPortCfgLossRC = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("wire-fault", 1), ("beacon-auto-removal", 2), ("force-remove-macaddr", 3), ("connection-lost", 4), ("adapter-check", 5), ("close-srb", 6), ("fdx-protocol-failure", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortCfgLossRC.setStatus('mandatory') cat2600TsPortCRCCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortCRCCount.setStatus('mandatory') cat2600TsPortHPChannelFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortHPChannelFrames.setStatus('mandatory') cat2600TsPortLPChannelFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortLPChannelFrames.setStatus('mandatory') cat2600TsPortHPThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6)).clone(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortHPThreshold.setStatus('mandatory') cat2600TsPortCfgRingSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("speed-16megabit", 1), ("speed-4megabit", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortCfgRingSpeed.setStatus('mandatory') cat2600TsPortCfgRSA = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rsa", 1), ("fixed", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortCfgRSA.setStatus('mandatory') cat2600TsPortDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 30), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortDomain.setStatus('mandatory') cat2600TsPortCfgLossThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 31), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortCfgLossThreshold.setStatus('mandatory') cat2600TsPortCfgLossSamplingPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 32), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPortCfgLossSamplingPeriod.setStatus('mandatory') cat2600TsPortBeaconStationAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 33), MacAddr()) if mibBuilder.loadTexts: cat2600TsPortBeaconStationAddress.setStatus('mandatory') cat2600TsPortBeaconNAUN = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 34), MacAddr()) if mibBuilder.loadTexts: cat2600TsPortBeaconNAUN.setStatus('mandatory') cat2600TsPortBeaconType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 35), Integer32()) if mibBuilder.loadTexts: cat2600TsPortBeaconType.setStatus('mandatory') cat2600TsPortStnTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3), ) if mibBuilder.loadTexts: cat2600TsPortStnTable.setStatus('mandatory') cat2600TsPortStnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsPortStnPortNum"), (0, "CAT2600-MIB", "cat2600TsPortStnAddress")) if mibBuilder.loadTexts: cat2600TsPortStnEntry.setStatus('mandatory') cat2600TsPortStnPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnPortNum.setStatus('mandatory') cat2600TsPortStnAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 2), MacAddr()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnAddress.setStatus('mandatory') cat2600TsPortStnLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnLocation.setStatus('mandatory') cat2600TsPortStnSrcFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnSrcFrames.setStatus('mandatory') cat2600TsPortStnSrcBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnSrcBytes.setStatus('mandatory') cat2600TsPortStnDestnFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnDestnFrames.setStatus('mandatory') cat2600TsPortStnDestnBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPortStnDestnBytes.setStatus('mandatory') cat2600TsOptPortStaTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2), ) if mibBuilder.loadTexts: cat2600TsOptPortStaTable.setStatus('mandatory') cat2600TsOptPortStaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsPortIndex"), (0, "CAT2600-MIB", "cat2600TsOptPortStaPos")) if mibBuilder.loadTexts: cat2600TsOptPortStaEntry.setStatus('mandatory') cat2600TsOptPortStaPos = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsOptPortStaPos.setStatus('mandatory') cat2600TsOptPortStaVal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsOptPortStaVal.setStatus('mandatory') cat2600TsDmnTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1), ) if mibBuilder.loadTexts: cat2600TsDmnTable.setStatus('mandatory') cat2600TsDmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsDmnIndex")) if mibBuilder.loadTexts: cat2600TsDmnEntry.setStatus('mandatory') cat2600TsDmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnIndex.setStatus('mandatory') cat2600TsDmnPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 2), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnPorts.setStatus('mandatory') cat2600TsDmnIpState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("auto-bootp", 2), ("always-bootp", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnIpState.setStatus('mandatory') cat2600TsDmnIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnIpAddress.setStatus('mandatory') cat2600TsDmnIpSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnIpSubnetMask.setStatus('mandatory') cat2600TsDmnIpDefaultGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnIpDefaultGateway.setStatus('mandatory') cat2600TsDmnStp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnStp.setStatus('mandatory') cat2600TsDmnName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsDmnName.setStatus('mandatory') cat2600TsDmnIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnIfIndex.setStatus('mandatory') cat2600TsDmnBaseBridgeAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 10), MacAddr()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnBaseBridgeAddr.setStatus('mandatory') cat2600TsDmnNumStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnNumStations.setStatus('mandatory') cat2600TsDmnMostStations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnMostStations.setStatus('mandatory') cat2600TsDmnStationTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5), ) if mibBuilder.loadTexts: cat2600TsDmnStationTable.setStatus('mandatory') cat2600TsDmnStationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsDmnIndex"), (0, "CAT2600-MIB", "cat2600TsDmnStationAddress")) if mibBuilder.loadTexts: cat2600TsDmnStationEntry.setStatus('mandatory') cat2600TsDmnStationDmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnStationDmnIndex.setStatus('mandatory') cat2600TsDmnStationAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnStationAddress.setStatus('mandatory') cat2600TsDmnStationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnStationPort.setStatus('mandatory') cat2600TsDmnStationTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsDmnStationTraffic.setStatus('mandatory') cat2600TsOptDmnStaTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6), ) if mibBuilder.loadTexts: cat2600TsOptDmnStaTable.setStatus('mandatory') cat2600TsOptDmnStaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsDmnStationDmnIndex"), (0, "CAT2600-MIB", "cat2600TsOptDmnStaPos")) if mibBuilder.loadTexts: cat2600TsOptDmnStaEntry.setStatus('mandatory') cat2600TsOptDmnStaPos = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsOptDmnStaPos.setStatus('mandatory') cat2600TsOptDmnStaVal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsOptDmnStaVal.setStatus('mandatory') cat2600TsPipeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1), ) if mibBuilder.loadTexts: cat2600TsPipeTable.setStatus('mandatory') cat2600TsPipeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsPipeNumber")) if mibBuilder.loadTexts: cat2600TsPipeEntry.setStatus('mandatory') cat2600TsPipeNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsPipeNumber.setStatus('mandatory') cat2600TsPipePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsPipePorts.setStatus('mandatory') cat2600TsFilterTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1), ) if mibBuilder.loadTexts: cat2600TsFilterTable.setStatus('mandatory') cat2600TsFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsFilterStationAddress"), (0, "CAT2600-MIB", "cat2600TsFilterType")) if mibBuilder.loadTexts: cat2600TsFilterEntry.setStatus('mandatory') cat2600TsFilterStationAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 1), MacAddr()).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFilterStationAddress.setStatus('mandatory') cat2600TsFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("source-filter", 1), ("destination-filter", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsFilterType.setStatus('mandatory') cat2600TsFilterStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsFilterStatus.setStatus('mandatory') cat2600TsFilterPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsFilterPorts.setStatus('mandatory') cat2600TsFilterMask = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsFilterMask.setStatus('mandatory') cat2600TsUFCTable = MibTable((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1), ) if mibBuilder.loadTexts: cat2600TsUFCTable.setStatus('mandatory') cat2600TsUFCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1), ).setIndexNames((0, "CAT2600-MIB", "cat2600TsUFCSlotNum")) if mibBuilder.loadTexts: cat2600TsUFCEntry.setStatus('mandatory') cat2600TsUFCSlotNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCSlotNum.setStatus('mandatory') cat2600TsUFCNumPhysIfs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCNumPhysIfs.setStatus('mandatory') cat2600TsUFCManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCManufacturer.setStatus('mandatory') cat2600TsUFCType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCType.setStatus('mandatory') cat2600TsUFCTypeDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCTypeDesc.setStatus('mandatory') cat2600TsUFCHwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCHwVer.setStatus('mandatory') cat2600TsUFCFwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCFwVer.setStatus('mandatory') cat2600TsUFCStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("other", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cat2600TsUFCStatus.setStatus('mandatory') cat2600TsUFCReset = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("running", 1), ("hardReset", 2), ("softReset", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cat2600TsUFCReset.setStatus('mandatory') mibBuilder.exportSymbols("CAT2600-MIB", cat2600TsOptPortStaVal=cat2600TsOptPortStaVal, cat2600TsAddrAgingTime=cat2600TsAddrAgingTime, cat2600TsSysCurTime=cat2600TsSysCurTime, cat2600TsSysObjectID=cat2600TsSysObjectID, cat2600TsUFCReset=cat2600TsUFCReset, cat2600TsOptDmnStaVal=cat2600TsOptDmnStaVal, cat2600TsPortRcvBcasts=cat2600TsPortRcvBcasts, cat2600TsPortStnPortNum=cat2600TsPortStnPortNum, cat2600TsDmnIpState=cat2600TsDmnIpState, cat2600TsPortForwardedFrames=cat2600TsPortForwardedFrames, cat2600TsSerialNumber=cat2600TsSerialNumber, cat2600TsNumResets=cat2600TsNumResets, cat2600TsPortStnDestnFrames=cat2600TsPortStnDestnFrames, cat2600TsFwManufacturer=cat2600TsFwManufacturer, cat2600TsCrcThresholdHi=cat2600TsCrcThresholdHi, cat2600TsDmnIpAddress=cat2600TsDmnIpAddress, cat2600TsPortLocalStations=cat2600TsPortLocalStations, MacAddr=MacAddr, cat2600TsPortUnknownStaFrames=cat2600TsPortUnknownStaFrames, cat2600TsPipeTable=cat2600TsPipeTable, cat2600TsTrapRcvrIndex=cat2600TsTrapRcvrIndex, cat2600TsPortStnAddress=cat2600TsPortStnAddress, cat2600TsPortMode=cat2600TsPortMode, cat2600TsTrapRcvrEntry=cat2600TsTrapRcvrEntry, cat2600TsPortStnLocation=cat2600TsPortStnLocation, cat2600TsPortMaxStations=cat2600TsPortMaxStations, cat2600TsObjectID=cat2600TsObjectID, cat2600TsDmnTable=cat2600TsDmnTable, cat2600TsPortCfgRingSpeed=cat2600TsPortCfgRingSpeed, cat2600TsDmnIfIndex=cat2600TsDmnIfIndex, cat2600TsOptPortStaEntry=cat2600TsOptPortStaEntry, cat2600TsPortFixedCfg=cat2600TsPortFixedCfg, cat2600TsOptDmnStaEntry=cat2600TsOptDmnStaEntry, cat2600TsReset=cat2600TsReset, cat2600TsPortSwitchMode=cat2600TsPortSwitchMode, cat2600TsPipe=cat2600TsPipe, cat2600TsTrendThreshold=cat2600TsTrendThreshold, cat2600TsOptDmnStaTable=cat2600TsOptDmnStaTable, cat2600TsDmnName=cat2600TsDmnName, cat2600TsDmnBaseBridgeAddr=cat2600TsDmnBaseBridgeAddr, cat2600TsUFCSlotNum=cat2600TsUFCSlotNum, cat2600TsPortBeaconNAUN=cat2600TsPortBeaconNAUN, cat2600TsUFCTypeDesc=cat2600TsUFCTypeDesc, cat2600TsUFC=cat2600TsUFC, cat2600TsDmnMostStations=cat2600TsDmnMostStations, cat2600TsPipeNumber=cat2600TsPipeNumber, cat2600TsPortStnSrcBytes=cat2600TsPortStnSrcBytes, cat2600TsUFCStatus=cat2600TsUFCStatus, cat2600TsDmnIpSubnetMask=cat2600TsDmnIpSubnetMask, cat2600TsSysTemperature=cat2600TsSysTemperature, cat2600TsOptDmnStaPos=cat2600TsOptDmnStaPos, cat2600TsPortCRCCount=cat2600TsPortCRCCount, cat2600TsDefaultGateway=cat2600TsDefaultGateway, dtrMIBs=dtrMIBs, cisco=cisco, cat2600TsTapPort=cat2600TsTapPort, cat2600TsNumPorts=cat2600TsNumPorts, cat2600TsHwVer=cat2600TsHwVer, cat2600TsFilterPorts=cat2600TsFilterPorts, cat2600TsPortRemoteStations=cat2600TsPortRemoteStations, cat2600TsPipePorts=cat2600TsPipePorts, cat2600TsPortCfgLossRC=cat2600TsPortCfgLossRC, cat2600TsPortHPThreshold=cat2600TsPortHPThreshold, cat2600TsFilterEntry=cat2600TsFilterEntry, cat2600TsPortLinkState=cat2600TsPortLinkState, cat2600TsFilter=cat2600TsFilter, cat2600TsPortLPChannelFrames=cat2600TsPortLPChannelFrames, cat2600TsPortCfgRSA=cat2600TsPortCfgRSA, cat2600TsFilterStationAddress=cat2600TsFilterStationAddress, cat2600TsTrapRcvrIpAddress=cat2600TsTrapRcvrIpAddress, dtrMacMIB=dtrMacMIB, cat2600TsSys=cat2600TsSys, cat2600TsTrapRcvrTable=cat2600TsTrapRcvrTable, cat2600TsNumberUFC=cat2600TsNumberUFC, cat2600TsPortSwitchedFrames=cat2600TsPortSwitchedFrames, cat2600TsDmnPorts=cat2600TsDmnPorts, cat2600TsPortBeaconStationAddress=cat2600TsPortBeaconStationAddress, cat2600TsPortSwitchModeChangeTrapEnable=cat2600TsPortSwitchModeChangeTrapEnable, cat2600TsPortMostStations=cat2600TsPortMostStations, cat2600TsPort=cat2600TsPort, cat2600TsDmnStp=cat2600TsDmnStp, cat2600TsPortCfgLoss=cat2600TsPortCfgLoss, cat2600TsPortBeaconType=cat2600TsPortBeaconType, cat2600TsFilterTable=cat2600TsFilterTable, cat2600TsUFCNumPhysIfs=cat2600TsUFCNumPhysIfs, cat2600TsConfig=cat2600TsConfig, cat2600TsPortStnEntry=cat2600TsPortStnEntry, cat2600TsMostStations=cat2600TsMostStations, cat2600TsDmnNumStations=cat2600TsDmnNumStations, cat2600TsPortHPChannelFrames=cat2600TsPortHPChannelFrames, cat2600TsPortResetStats=cat2600TsPortResetStats, cat2600TsPortCfgLossThreshold=cat2600TsPortCfgLossThreshold, cat2600TsFwVer=cat2600TsFwVer, cat2600TsTrapRcvrDmns=cat2600TsTrapRcvrDmns, cat2600TsPortSWHandledFrames=cat2600TsPortSWHandledFrames, cat2600TsCrcThresholdLow=cat2600TsCrcThresholdLow, cat2600TsDmnEntry=cat2600TsDmnEntry, cat2600TsUFCEntry=cat2600TsUFCEntry, cat2600TsTrapRcvrStatus=cat2600TsTrapRcvrStatus, cat2600TsOptPortStaPos=cat2600TsOptPortStaPos, cat2600TsUFCManufacturer=cat2600TsUFCManufacturer, catProd=catProd, cat2600TsUFCHwVer=cat2600TsUFCHwVer, cat2600TsPortDuplex=cat2600TsPortDuplex, cat2600TsPortResetAddrs=cat2600TsPortResetAddrs, cat2600TsMain=cat2600TsMain, cat2600TsPingInterval=cat2600TsPingInterval, cat2600Ts=cat2600Ts, cat2600TsIpAddr=cat2600TsIpAddr, cat2600TsDmnIndex=cat2600TsDmnIndex, cat2600TsTrapRcvrComm=cat2600TsTrapRcvrComm, cat2600TsPipeEntry=cat2600TsPipeEntry, cat2600TsDmnStationEntry=cat2600TsDmnStationEntry, cat2600TsUFCTable=cat2600TsUFCTable, cat2600TsSamplingPeriod=cat2600TsSamplingPeriod, cat2600TsUFCType=cat2600TsUFCType, cat2600TsDmns=cat2600TsDmns, cat2600TsPortHashOverflows=cat2600TsPortHashOverflows, cat2600TsOptPortStaTable=cat2600TsOptPortStaTable, cat2600TsTapMonitoredPort=cat2600TsTapMonitoredPort, cat2600TsMaxStations=cat2600TsMaxStations, cat2600TsPortRcvLocalFrames=cat2600TsPortRcvLocalFrames, cat2600TsDmnStationAddress=cat2600TsDmnStationAddress, cat2600=cat2600, cat2600TsPortAddrAgingTime=cat2600TsPortAddrAgingTime, cat2600TsDmnStationPort=cat2600TsDmnStationPort, cat2600TsPortResetTimer=cat2600TsPortResetTimer, cat2600TsPortTable=cat2600TsPortTable, cat2600TsInstalledMemory=cat2600TsInstalledMemory, cat2600TsObjects=cat2600TsObjects, cat2600TsInstallationDate=cat2600TsInstallationDate, cat2600TsDmnIpDefaultGateway=cat2600TsDmnIpDefaultGateway, cat2600TsPortStnDestnBytes=cat2600TsPortStnDestnBytes, cat2600TsPortIndex=cat2600TsPortIndex, cat2600TsFilterMask=cat2600TsFilterMask, cat2600TsDmnStationTable=cat2600TsDmnStationTable, cat2600TsFilterStatus=cat2600TsFilterStatus, cat2600TsNetMask=cat2600TsNetMask, cat2600TsDmnStationDmnIndex=cat2600TsDmnStationDmnIndex, dtrConcMIB=dtrConcMIB, cat2600TsNumStations=cat2600TsNumStations, cat2600TsFwCRC=cat2600TsFwCRC, cat2600TsPortEntry=cat2600TsPortEntry, cat2600TsPortStnTable=cat2600TsPortStnTable, cat2600TsPortStnSrcFrames=cat2600TsPortStnSrcFrames, cat2600TsPortCfgLossSamplingPeriod=cat2600TsPortCfgLossSamplingPeriod, cat2600TsFwSize=cat2600TsFwSize, cat2600TsUFCFwVer=cat2600TsUFCFwVer, cat2600TsPortDomain=cat2600TsPortDomain, cat2600TsDmnStationTraffic=cat2600TsDmnStationTraffic, cat2600TsFilterType=cat2600TsFilterType)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (bits, gauge32, mib_identifier, module_identity, time_ticks, iso, object_identity, enterprises, counter64, notification_type, unsigned32, counter32, integer32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Gauge32', 'MibIdentifier', 'ModuleIdentity', 'TimeTicks', 'iso', 'ObjectIdentity', 'enterprises', 'Counter64', 'NotificationType', 'Unsigned32', 'Counter32', 'Integer32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Macaddr(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 cisco = mib_identifier((1, 3, 6, 1, 4, 1, 9)) cat_prod = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1)) cat2600 = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111)) cat2600_ts = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1)) cat2600_ts_object_id = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 1)) cat2600_ts_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2)) dtr_mi_bs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3)) dtr_conc_mib = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3, 1)) dtr_mac_mib = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 3, 2)) cat2600_ts_main = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1)) cat2600_ts_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1)) cat2600_ts_sys = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2)) cat2600_ts_port = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2)) cat2600_ts_dmns = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3)) cat2600_ts_pipe = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4)) cat2600_ts_filter = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5)) cat2600_ts_ufc = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6)) cat2600_ts_sys_object_id = mib_identifier((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 1, 1)) cat2600_ts_fw_ver = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFwVer.setStatus('mandatory') cat2600_ts_hw_ver = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsHwVer.setStatus('mandatory') cat2600_ts_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsSerialNumber.setStatus('mandatory') cat2600_ts_installation_date = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsInstallationDate.setStatus('mandatory') cat2600_ts_fw_size = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFwSize.setStatus('mandatory') cat2600_ts_fw_crc = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFwCRC.setStatus('mandatory') cat2600_ts_fw_manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFwManufacturer.setStatus('mandatory') cat2600_ts_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 8), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsIpAddr.setStatus('mandatory') cat2600_ts_net_mask = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 9), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsNetMask.setStatus('mandatory') cat2600_ts_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 10), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDefaultGateway.setStatus('mandatory') cat2600_ts_trap_rcvr_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14)) if mibBuilder.loadTexts: cat2600TsTrapRcvrTable.setStatus('mandatory') cat2600_ts_trap_rcvr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsTrapRcvrIndex')) if mibBuilder.loadTexts: cat2600TsTrapRcvrEntry.setStatus('mandatory') cat2600_ts_trap_rcvr_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsTrapRcvrIndex.setStatus('mandatory') cat2600_ts_trap_rcvr_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('valid', 2), ('invalid', 3), ('create', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTrapRcvrStatus.setStatus('mandatory') cat2600_ts_trap_rcvr_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTrapRcvrIpAddress.setStatus('mandatory') cat2600_ts_trap_rcvr_comm = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTrapRcvrComm.setStatus('mandatory') cat2600_ts_trap_rcvr_dmns = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 14, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTrapRcvrDmns.setStatus('mandatory') cat2600_ts_ping_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 19), integer32().clone(600)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPingInterval.setStatus('mandatory') cat2600_ts_tap_port = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTapPort.setStatus('mandatory') cat2600_ts_tap_monitored_port = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTapMonitoredPort.setStatus('mandatory') cat2600_ts_crc_threshold_hi = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 22), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsCrcThresholdHi.setStatus('mandatory') cat2600_ts_crc_threshold_low = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 23), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsCrcThresholdLow.setStatus('mandatory') cat2600_ts_port_switch_mode_change_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortSwitchModeChangeTrapEnable.setStatus('mandatory') cat2600_ts_trend_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 25), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsTrendThreshold.setStatus('mandatory') cat2600_ts_sampling_period = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(1, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsSamplingPeriod.setStatus('mandatory') cat2600_ts_number_ufc = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsNumberUFC.setStatus('mandatory') cat2600_ts_num_ports = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsNumPorts.setStatus('mandatory') cat2600_ts_num_stations = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsNumStations.setStatus('mandatory') cat2600_ts_most_stations = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsMostStations.setStatus('mandatory') cat2600_ts_max_stations = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsMaxStations.setStatus('mandatory') cat2600_ts_reset = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('running', 1), ('hardReset', 2), ('softReset', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsReset.setStatus('mandatory') cat2600_ts_num_resets = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsNumResets.setStatus('mandatory') cat2600_ts_addr_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 9999))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsAddrAgingTime.setStatus('mandatory') cat2600_ts_sys_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('toohigh', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsSysTemperature.setStatus('mandatory') cat2600_ts_installed_memory = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsInstalledMemory.setStatus('mandatory') cat2600_ts_sys_cur_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 1, 2, 13), display_string().subtype(subtypeSpec=value_size_constraint(1, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsSysCurTime.setStatus('mandatory') cat2600_ts_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1)) if mibBuilder.loadTexts: cat2600TsPortTable.setStatus('mandatory') cat2600_ts_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsPortIndex')) if mibBuilder.loadTexts: cat2600TsPortEntry.setStatus('mandatory') cat2600_ts_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortIndex.setStatus('mandatory') cat2600_ts_port_rcv_local_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortRcvLocalFrames.setStatus('mandatory') cat2600_ts_port_forwarded_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortForwardedFrames.setStatus('mandatory') cat2600_ts_port_most_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortMostStations.setStatus('mandatory') cat2600_ts_port_max_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortMaxStations.setStatus('mandatory') cat2600_ts_port_sw_handled_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortSWHandledFrames.setStatus('mandatory') cat2600_ts_port_local_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortLocalStations.setStatus('mandatory') cat2600_ts_port_remote_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortRemoteStations.setStatus('mandatory') cat2600_ts_port_unknown_sta_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortUnknownStaFrames.setStatus('mandatory') cat2600_ts_port_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('running', 2), ('reset', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortResetStats.setStatus('mandatory') cat2600_ts_port_reset_timer = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 11), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortResetTimer.setStatus('mandatory') cat2600_ts_port_reset_addrs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('running', 2), ('reset', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortResetAddrs.setStatus('mandatory') cat2600_ts_port_rcv_bcasts = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortRcvBcasts.setStatus('mandatory') cat2600_ts_port_switched_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortSwitchedFrames.setStatus('mandatory') cat2600_ts_port_link_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortLinkState.setStatus('mandatory') cat2600_ts_port_hash_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortHashOverflows.setStatus('mandatory') cat2600_ts_port_addr_aging_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortAddrAgingTime.setStatus('mandatory') cat2600_ts_port_switch_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('storeandforward', 1), ('cutthru', 2), ('auto', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortSwitchMode.setStatus('mandatory') cat2600_ts_port_fixed_cfg = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('auto-detect', 1), ('fixed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortFixedCfg.setStatus('mandatory') cat2600_ts_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('adapter', 1), ('port', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortMode.setStatus('mandatory') cat2600_ts_port_duplex = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('half-duplex', 1), ('full-duplex', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortDuplex.setStatus('mandatory') cat2600_ts_port_cfg_loss = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortCfgLoss.setStatus('mandatory') cat2600_ts_port_cfg_loss_rc = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('wire-fault', 1), ('beacon-auto-removal', 2), ('force-remove-macaddr', 3), ('connection-lost', 4), ('adapter-check', 5), ('close-srb', 6), ('fdx-protocol-failure', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortCfgLossRC.setStatus('mandatory') cat2600_ts_port_crc_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortCRCCount.setStatus('mandatory') cat2600_ts_port_hp_channel_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortHPChannelFrames.setStatus('mandatory') cat2600_ts_port_lp_channel_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortLPChannelFrames.setStatus('mandatory') cat2600_ts_port_hp_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 6)).clone(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortHPThreshold.setStatus('mandatory') cat2600_ts_port_cfg_ring_speed = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('speed-16megabit', 1), ('speed-4megabit', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortCfgRingSpeed.setStatus('mandatory') cat2600_ts_port_cfg_rsa = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rsa', 1), ('fixed', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortCfgRSA.setStatus('mandatory') cat2600_ts_port_domain = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 30), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortDomain.setStatus('mandatory') cat2600_ts_port_cfg_loss_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 31), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortCfgLossThreshold.setStatus('mandatory') cat2600_ts_port_cfg_loss_sampling_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 32), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPortCfgLossSamplingPeriod.setStatus('mandatory') cat2600_ts_port_beacon_station_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 33), mac_addr()) if mibBuilder.loadTexts: cat2600TsPortBeaconStationAddress.setStatus('mandatory') cat2600_ts_port_beacon_naun = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 34), mac_addr()) if mibBuilder.loadTexts: cat2600TsPortBeaconNAUN.setStatus('mandatory') cat2600_ts_port_beacon_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 1, 1, 35), integer32()) if mibBuilder.loadTexts: cat2600TsPortBeaconType.setStatus('mandatory') cat2600_ts_port_stn_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3)) if mibBuilder.loadTexts: cat2600TsPortStnTable.setStatus('mandatory') cat2600_ts_port_stn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsPortStnPortNum'), (0, 'CAT2600-MIB', 'cat2600TsPortStnAddress')) if mibBuilder.loadTexts: cat2600TsPortStnEntry.setStatus('mandatory') cat2600_ts_port_stn_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnPortNum.setStatus('mandatory') cat2600_ts_port_stn_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 2), mac_addr()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnAddress.setStatus('mandatory') cat2600_ts_port_stn_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnLocation.setStatus('mandatory') cat2600_ts_port_stn_src_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnSrcFrames.setStatus('mandatory') cat2600_ts_port_stn_src_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnSrcBytes.setStatus('mandatory') cat2600_ts_port_stn_destn_frames = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnDestnFrames.setStatus('mandatory') cat2600_ts_port_stn_destn_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPortStnDestnBytes.setStatus('mandatory') cat2600_ts_opt_port_sta_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2)) if mibBuilder.loadTexts: cat2600TsOptPortStaTable.setStatus('mandatory') cat2600_ts_opt_port_sta_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsPortIndex'), (0, 'CAT2600-MIB', 'cat2600TsOptPortStaPos')) if mibBuilder.loadTexts: cat2600TsOptPortStaEntry.setStatus('mandatory') cat2600_ts_opt_port_sta_pos = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsOptPortStaPos.setStatus('mandatory') cat2600_ts_opt_port_sta_val = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 2, 2, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsOptPortStaVal.setStatus('mandatory') cat2600_ts_dmn_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1)) if mibBuilder.loadTexts: cat2600TsDmnTable.setStatus('mandatory') cat2600_ts_dmn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsDmnIndex')) if mibBuilder.loadTexts: cat2600TsDmnEntry.setStatus('mandatory') cat2600_ts_dmn_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnIndex.setStatus('mandatory') cat2600_ts_dmn_ports = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 2), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnPorts.setStatus('mandatory') cat2600_ts_dmn_ip_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('auto-bootp', 2), ('always-bootp', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnIpState.setStatus('mandatory') cat2600_ts_dmn_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnIpAddress.setStatus('mandatory') cat2600_ts_dmn_ip_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 5), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnIpSubnetMask.setStatus('mandatory') cat2600_ts_dmn_ip_default_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnIpDefaultGateway.setStatus('mandatory') cat2600_ts_dmn_stp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnStp.setStatus('mandatory') cat2600_ts_dmn_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsDmnName.setStatus('mandatory') cat2600_ts_dmn_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnIfIndex.setStatus('mandatory') cat2600_ts_dmn_base_bridge_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 10), mac_addr()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnBaseBridgeAddr.setStatus('mandatory') cat2600_ts_dmn_num_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnNumStations.setStatus('mandatory') cat2600_ts_dmn_most_stations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 1, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnMostStations.setStatus('mandatory') cat2600_ts_dmn_station_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5)) if mibBuilder.loadTexts: cat2600TsDmnStationTable.setStatus('mandatory') cat2600_ts_dmn_station_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsDmnIndex'), (0, 'CAT2600-MIB', 'cat2600TsDmnStationAddress')) if mibBuilder.loadTexts: cat2600TsDmnStationEntry.setStatus('mandatory') cat2600_ts_dmn_station_dmn_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnStationDmnIndex.setStatus('mandatory') cat2600_ts_dmn_station_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnStationAddress.setStatus('mandatory') cat2600_ts_dmn_station_port = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnStationPort.setStatus('mandatory') cat2600_ts_dmn_station_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 5, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsDmnStationTraffic.setStatus('mandatory') cat2600_ts_opt_dmn_sta_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6)) if mibBuilder.loadTexts: cat2600TsOptDmnStaTable.setStatus('mandatory') cat2600_ts_opt_dmn_sta_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsDmnStationDmnIndex'), (0, 'CAT2600-MIB', 'cat2600TsOptDmnStaPos')) if mibBuilder.loadTexts: cat2600TsOptDmnStaEntry.setStatus('mandatory') cat2600_ts_opt_dmn_sta_pos = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsOptDmnStaPos.setStatus('mandatory') cat2600_ts_opt_dmn_sta_val = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 3, 6, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsOptDmnStaVal.setStatus('mandatory') cat2600_ts_pipe_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1)) if mibBuilder.loadTexts: cat2600TsPipeTable.setStatus('mandatory') cat2600_ts_pipe_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsPipeNumber')) if mibBuilder.loadTexts: cat2600TsPipeEntry.setStatus('mandatory') cat2600_ts_pipe_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsPipeNumber.setStatus('mandatory') cat2600_ts_pipe_ports = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsPipePorts.setStatus('mandatory') cat2600_ts_filter_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1)) if mibBuilder.loadTexts: cat2600TsFilterTable.setStatus('mandatory') cat2600_ts_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsFilterStationAddress'), (0, 'CAT2600-MIB', 'cat2600TsFilterType')) if mibBuilder.loadTexts: cat2600TsFilterEntry.setStatus('mandatory') cat2600_ts_filter_station_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 1), mac_addr()).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFilterStationAddress.setStatus('mandatory') cat2600_ts_filter_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('source-filter', 1), ('destination-filter', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsFilterType.setStatus('mandatory') cat2600_ts_filter_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsFilterStatus.setStatus('mandatory') cat2600_ts_filter_ports = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 4), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsFilterPorts.setStatus('mandatory') cat2600_ts_filter_mask = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 5, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsFilterMask.setStatus('mandatory') cat2600_ts_ufc_table = mib_table((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1)) if mibBuilder.loadTexts: cat2600TsUFCTable.setStatus('mandatory') cat2600_ts_ufc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1)).setIndexNames((0, 'CAT2600-MIB', 'cat2600TsUFCSlotNum')) if mibBuilder.loadTexts: cat2600TsUFCEntry.setStatus('mandatory') cat2600_ts_ufc_slot_num = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCSlotNum.setStatus('mandatory') cat2600_ts_ufc_num_phys_ifs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCNumPhysIfs.setStatus('mandatory') cat2600_ts_ufc_manufacturer = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCManufacturer.setStatus('mandatory') cat2600_ts_ufc_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCType.setStatus('mandatory') cat2600_ts_ufc_type_desc = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCTypeDesc.setStatus('mandatory') cat2600_ts_ufc_hw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCHwVer.setStatus('mandatory') cat2600_ts_ufc_fw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCFwVer.setStatus('mandatory') cat2600_ts_ufc_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('other', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cat2600TsUFCStatus.setStatus('mandatory') cat2600_ts_ufc_reset = mib_table_column((1, 3, 6, 1, 4, 1, 9, 1, 111, 1, 2, 6, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('running', 1), ('hardReset', 2), ('softReset', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cat2600TsUFCReset.setStatus('mandatory') mibBuilder.exportSymbols('CAT2600-MIB', cat2600TsOptPortStaVal=cat2600TsOptPortStaVal, cat2600TsAddrAgingTime=cat2600TsAddrAgingTime, cat2600TsSysCurTime=cat2600TsSysCurTime, cat2600TsSysObjectID=cat2600TsSysObjectID, cat2600TsUFCReset=cat2600TsUFCReset, cat2600TsOptDmnStaVal=cat2600TsOptDmnStaVal, cat2600TsPortRcvBcasts=cat2600TsPortRcvBcasts, cat2600TsPortStnPortNum=cat2600TsPortStnPortNum, cat2600TsDmnIpState=cat2600TsDmnIpState, cat2600TsPortForwardedFrames=cat2600TsPortForwardedFrames, cat2600TsSerialNumber=cat2600TsSerialNumber, cat2600TsNumResets=cat2600TsNumResets, cat2600TsPortStnDestnFrames=cat2600TsPortStnDestnFrames, cat2600TsFwManufacturer=cat2600TsFwManufacturer, cat2600TsCrcThresholdHi=cat2600TsCrcThresholdHi, cat2600TsDmnIpAddress=cat2600TsDmnIpAddress, cat2600TsPortLocalStations=cat2600TsPortLocalStations, MacAddr=MacAddr, cat2600TsPortUnknownStaFrames=cat2600TsPortUnknownStaFrames, cat2600TsPipeTable=cat2600TsPipeTable, cat2600TsTrapRcvrIndex=cat2600TsTrapRcvrIndex, cat2600TsPortStnAddress=cat2600TsPortStnAddress, cat2600TsPortMode=cat2600TsPortMode, cat2600TsTrapRcvrEntry=cat2600TsTrapRcvrEntry, cat2600TsPortStnLocation=cat2600TsPortStnLocation, cat2600TsPortMaxStations=cat2600TsPortMaxStations, cat2600TsObjectID=cat2600TsObjectID, cat2600TsDmnTable=cat2600TsDmnTable, cat2600TsPortCfgRingSpeed=cat2600TsPortCfgRingSpeed, cat2600TsDmnIfIndex=cat2600TsDmnIfIndex, cat2600TsOptPortStaEntry=cat2600TsOptPortStaEntry, cat2600TsPortFixedCfg=cat2600TsPortFixedCfg, cat2600TsOptDmnStaEntry=cat2600TsOptDmnStaEntry, cat2600TsReset=cat2600TsReset, cat2600TsPortSwitchMode=cat2600TsPortSwitchMode, cat2600TsPipe=cat2600TsPipe, cat2600TsTrendThreshold=cat2600TsTrendThreshold, cat2600TsOptDmnStaTable=cat2600TsOptDmnStaTable, cat2600TsDmnName=cat2600TsDmnName, cat2600TsDmnBaseBridgeAddr=cat2600TsDmnBaseBridgeAddr, cat2600TsUFCSlotNum=cat2600TsUFCSlotNum, cat2600TsPortBeaconNAUN=cat2600TsPortBeaconNAUN, cat2600TsUFCTypeDesc=cat2600TsUFCTypeDesc, cat2600TsUFC=cat2600TsUFC, cat2600TsDmnMostStations=cat2600TsDmnMostStations, cat2600TsPipeNumber=cat2600TsPipeNumber, cat2600TsPortStnSrcBytes=cat2600TsPortStnSrcBytes, cat2600TsUFCStatus=cat2600TsUFCStatus, cat2600TsDmnIpSubnetMask=cat2600TsDmnIpSubnetMask, cat2600TsSysTemperature=cat2600TsSysTemperature, cat2600TsOptDmnStaPos=cat2600TsOptDmnStaPos, cat2600TsPortCRCCount=cat2600TsPortCRCCount, cat2600TsDefaultGateway=cat2600TsDefaultGateway, dtrMIBs=dtrMIBs, cisco=cisco, cat2600TsTapPort=cat2600TsTapPort, cat2600TsNumPorts=cat2600TsNumPorts, cat2600TsHwVer=cat2600TsHwVer, cat2600TsFilterPorts=cat2600TsFilterPorts, cat2600TsPortRemoteStations=cat2600TsPortRemoteStations, cat2600TsPipePorts=cat2600TsPipePorts, cat2600TsPortCfgLossRC=cat2600TsPortCfgLossRC, cat2600TsPortHPThreshold=cat2600TsPortHPThreshold, cat2600TsFilterEntry=cat2600TsFilterEntry, cat2600TsPortLinkState=cat2600TsPortLinkState, cat2600TsFilter=cat2600TsFilter, cat2600TsPortLPChannelFrames=cat2600TsPortLPChannelFrames, cat2600TsPortCfgRSA=cat2600TsPortCfgRSA, cat2600TsFilterStationAddress=cat2600TsFilterStationAddress, cat2600TsTrapRcvrIpAddress=cat2600TsTrapRcvrIpAddress, dtrMacMIB=dtrMacMIB, cat2600TsSys=cat2600TsSys, cat2600TsTrapRcvrTable=cat2600TsTrapRcvrTable, cat2600TsNumberUFC=cat2600TsNumberUFC, cat2600TsPortSwitchedFrames=cat2600TsPortSwitchedFrames, cat2600TsDmnPorts=cat2600TsDmnPorts, cat2600TsPortBeaconStationAddress=cat2600TsPortBeaconStationAddress, cat2600TsPortSwitchModeChangeTrapEnable=cat2600TsPortSwitchModeChangeTrapEnable, cat2600TsPortMostStations=cat2600TsPortMostStations, cat2600TsPort=cat2600TsPort, cat2600TsDmnStp=cat2600TsDmnStp, cat2600TsPortCfgLoss=cat2600TsPortCfgLoss, cat2600TsPortBeaconType=cat2600TsPortBeaconType, cat2600TsFilterTable=cat2600TsFilterTable, cat2600TsUFCNumPhysIfs=cat2600TsUFCNumPhysIfs, cat2600TsConfig=cat2600TsConfig, cat2600TsPortStnEntry=cat2600TsPortStnEntry, cat2600TsMostStations=cat2600TsMostStations, cat2600TsDmnNumStations=cat2600TsDmnNumStations, cat2600TsPortHPChannelFrames=cat2600TsPortHPChannelFrames, cat2600TsPortResetStats=cat2600TsPortResetStats, cat2600TsPortCfgLossThreshold=cat2600TsPortCfgLossThreshold, cat2600TsFwVer=cat2600TsFwVer, cat2600TsTrapRcvrDmns=cat2600TsTrapRcvrDmns, cat2600TsPortSWHandledFrames=cat2600TsPortSWHandledFrames, cat2600TsCrcThresholdLow=cat2600TsCrcThresholdLow, cat2600TsDmnEntry=cat2600TsDmnEntry, cat2600TsUFCEntry=cat2600TsUFCEntry, cat2600TsTrapRcvrStatus=cat2600TsTrapRcvrStatus, cat2600TsOptPortStaPos=cat2600TsOptPortStaPos, cat2600TsUFCManufacturer=cat2600TsUFCManufacturer, catProd=catProd, cat2600TsUFCHwVer=cat2600TsUFCHwVer, cat2600TsPortDuplex=cat2600TsPortDuplex, cat2600TsPortResetAddrs=cat2600TsPortResetAddrs, cat2600TsMain=cat2600TsMain, cat2600TsPingInterval=cat2600TsPingInterval, cat2600Ts=cat2600Ts, cat2600TsIpAddr=cat2600TsIpAddr, cat2600TsDmnIndex=cat2600TsDmnIndex, cat2600TsTrapRcvrComm=cat2600TsTrapRcvrComm, cat2600TsPipeEntry=cat2600TsPipeEntry, cat2600TsDmnStationEntry=cat2600TsDmnStationEntry, cat2600TsUFCTable=cat2600TsUFCTable, cat2600TsSamplingPeriod=cat2600TsSamplingPeriod, cat2600TsUFCType=cat2600TsUFCType, cat2600TsDmns=cat2600TsDmns, cat2600TsPortHashOverflows=cat2600TsPortHashOverflows, cat2600TsOptPortStaTable=cat2600TsOptPortStaTable, cat2600TsTapMonitoredPort=cat2600TsTapMonitoredPort, cat2600TsMaxStations=cat2600TsMaxStations, cat2600TsPortRcvLocalFrames=cat2600TsPortRcvLocalFrames, cat2600TsDmnStationAddress=cat2600TsDmnStationAddress, cat2600=cat2600, cat2600TsPortAddrAgingTime=cat2600TsPortAddrAgingTime, cat2600TsDmnStationPort=cat2600TsDmnStationPort, cat2600TsPortResetTimer=cat2600TsPortResetTimer, cat2600TsPortTable=cat2600TsPortTable, cat2600TsInstalledMemory=cat2600TsInstalledMemory, cat2600TsObjects=cat2600TsObjects, cat2600TsInstallationDate=cat2600TsInstallationDate, cat2600TsDmnIpDefaultGateway=cat2600TsDmnIpDefaultGateway, cat2600TsPortStnDestnBytes=cat2600TsPortStnDestnBytes, cat2600TsPortIndex=cat2600TsPortIndex, cat2600TsFilterMask=cat2600TsFilterMask, cat2600TsDmnStationTable=cat2600TsDmnStationTable, cat2600TsFilterStatus=cat2600TsFilterStatus, cat2600TsNetMask=cat2600TsNetMask, cat2600TsDmnStationDmnIndex=cat2600TsDmnStationDmnIndex, dtrConcMIB=dtrConcMIB, cat2600TsNumStations=cat2600TsNumStations, cat2600TsFwCRC=cat2600TsFwCRC, cat2600TsPortEntry=cat2600TsPortEntry, cat2600TsPortStnTable=cat2600TsPortStnTable, cat2600TsPortStnSrcFrames=cat2600TsPortStnSrcFrames, cat2600TsPortCfgLossSamplingPeriod=cat2600TsPortCfgLossSamplingPeriod, cat2600TsFwSize=cat2600TsFwSize, cat2600TsUFCFwVer=cat2600TsUFCFwVer, cat2600TsPortDomain=cat2600TsPortDomain, cat2600TsDmnStationTraffic=cat2600TsDmnStationTraffic, cat2600TsFilterType=cat2600TsFilterType)
# ------------------------------ # 351. Android Unlock Patterns # # Description: # https://leetcode.com/problems/android-unlock-patterns/description/ # # Version: 1.0 # 11/11/17 by Jianfa # ------------------------------ class Solution(object): def numberOfPatterns(self, m, n): """ :type m: int :type n: int :rtype: int """ res = 0 candidate = [i for i in range(1,10)] neighbour = {1:[2,4,5,6,8], 2:[1,3,4,5,6,7,9], 3:[2,4,5,6,8], \ 4:[1,2,3,5,7,8,9], 5:[1,2,3,4,6,7,8,9], 6:[1,2,3,5,7,8,9], \ 7:[2,4,5,6,8], 8:[1,3,4,5,6,7,9], 9:[2,4,5,6,8]} for i in range(1,10): curr = [i] rest = [j for j in candidate if j != i] for targetLen in range(m, n+1): res = self.backtrack(res, curr, rest, targetLen, neighbour) return res def backtrack(self, res, curr, rest, targetLen, neighbour): currLen = len(curr) if currLen == targetLen: res += 1 return res temp_rest = [x for x in rest] # It's necessary so that when operating rest, won't affect iteration for i in temp_rest: if i in neighbour[curr[-1]] or (curr[-1] + i) / 2 in curr: curr.append(i) rest.remove(i) res = self.backtrack(res, curr, rest, targetLen, neighbour) rest.append(i) curr.remove(i) return res # ------------------------------ # Summary: # I use backtrack method with dictionary, traverse every possible situation. Complexity is N^k
class Solution(object): def number_of_patterns(self, m, n): """ :type m: int :type n: int :rtype: int """ res = 0 candidate = [i for i in range(1, 10)] neighbour = {1: [2, 4, 5, 6, 8], 2: [1, 3, 4, 5, 6, 7, 9], 3: [2, 4, 5, 6, 8], 4: [1, 2, 3, 5, 7, 8, 9], 5: [1, 2, 3, 4, 6, 7, 8, 9], 6: [1, 2, 3, 5, 7, 8, 9], 7: [2, 4, 5, 6, 8], 8: [1, 3, 4, 5, 6, 7, 9], 9: [2, 4, 5, 6, 8]} for i in range(1, 10): curr = [i] rest = [j for j in candidate if j != i] for target_len in range(m, n + 1): res = self.backtrack(res, curr, rest, targetLen, neighbour) return res def backtrack(self, res, curr, rest, targetLen, neighbour): curr_len = len(curr) if currLen == targetLen: res += 1 return res temp_rest = [x for x in rest] for i in temp_rest: if i in neighbour[curr[-1]] or (curr[-1] + i) / 2 in curr: curr.append(i) rest.remove(i) res = self.backtrack(res, curr, rest, targetLen, neighbour) rest.append(i) curr.remove(i) return res
class Solution(object): def canJump(self, nums): cur, last = 0, 0 for i in nums: last, cur = max(last, cur + i), cur + 1 if cur > last: break return True if cur == len(nums) else False
class Solution(object): def can_jump(self, nums): (cur, last) = (0, 0) for i in nums: (last, cur) = (max(last, cur + i), cur + 1) if cur > last: break return True if cur == len(nums) else False
class Kite(object): def __init__(self): self.code = "kite" def foo(self): print("bar!")
class Kite(object): def __init__(self): self.code = 'kite' def foo(self): print('bar!')
def combinations(A): """ Just as an exercise to think about all combinations... Powerset: all subsets of A, including empty set. Grab the first value in A, then find all combinations for the remaining elements. The result is those combinations plus those combinations prefixed with A[0]. """ if len(A)==0: return [[]] pre = A[0] r = combinations(A[1:]) return r + [[pre] + v for v in r] A = [1,2,3,4] print(list(combinations(A)), "len =", len(combinations(A)))
def combinations(A): """ Just as an exercise to think about all combinations... Powerset: all subsets of A, including empty set. Grab the first value in A, then find all combinations for the remaining elements. The result is those combinations plus those combinations prefixed with A[0]. """ if len(A) == 0: return [[]] pre = A[0] r = combinations(A[1:]) return r + [[pre] + v for v in r] a = [1, 2, 3, 4] print(list(combinations(A)), 'len =', len(combinations(A)))
# # PySNMP MIB module HPN-ICF-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-EPON-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:26:17 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") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") hpnicfLswSlotIndex, hpnicfLswFrameIndex = mibBuilder.importSymbols("HPN-ICF-LSW-DEV-ADM-MIB", "hpnicfLswSlotIndex", "hpnicfLswFrameIndex") hpnicfEpon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfEpon") ifDescr, ifIndex = mibBuilder.importSymbols("IF-MIB", "ifDescr", "ifIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, ModuleIdentity, iso, ObjectIdentity, NotificationType, Counter32, TimeTicks, Counter64, Gauge32, Unsigned32, Bits, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "ModuleIdentity", "iso", "ObjectIdentity", "NotificationType", "Counter32", "TimeTicks", "Counter64", "Gauge32", "Unsigned32", "Bits", "MibIdentifier") DateAndTime, DisplayString, MacAddress, TextualConvention, RowStatus, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "DisplayString", "MacAddress", "TextualConvention", "RowStatus", "TruthValue") hpnicfEponMibObjects = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1)) if mibBuilder.loadTexts: hpnicfEponMibObjects.setLastUpdated('200705221008Z') if mibBuilder.loadTexts: hpnicfEponMibObjects.setOrganization('') hpnicfEponSysMan = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1)) hpnicfEponAutoAuthorize = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoAuthorize.setStatus('current') hpnicfEponMonitorCycle = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponMonitorCycle.setStatus('current') hpnicfEponMsgTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 3), Integer32().clone(600)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponMsgTimeOut.setStatus('current') hpnicfEponMsgLoseNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 4), Integer32().clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponMsgLoseNum.setStatus('current') hpnicfEponSysHasEPONBoard = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponSysHasEPONBoard.setStatus('current') hpnicfEponMonitorCycleEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponMonitorCycleEnable.setStatus('current') hpnicfEponOltSoftwareErrAlmEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponOltSoftwareErrAlmEnable.setStatus('current') hpnicfEponPortLoopBackAlmEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 8), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponPortLoopBackAlmEnable.setStatus('current') hpnicfEponMonitorCycleMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMonitorCycleMinVal.setStatus('current') hpnicfEponMonitorCycleMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMonitorCycleMaxVal.setStatus('current') hpnicfEponMsgTimeOutMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMsgTimeOutMinVal.setStatus('current') hpnicfEponMsgTimeOutMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMsgTimeOutMaxVal.setStatus('current') hpnicfEponMsgLoseNumMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMsgLoseNumMinVal.setStatus('current') hpnicfEponMsgLoseNumMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponMsgLoseNumMaxVal.setStatus('current') hpnicfEponSysScalarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 15)) hpnicfEponSysManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16), ) if mibBuilder.loadTexts: hpnicfEponSysManTable.setStatus('current') hpnicfEponSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponSlotIndex")) if mibBuilder.loadTexts: hpnicfEponSysManEntry.setStatus('current') hpnicfEponSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfEponSlotIndex.setStatus('current') hpnicfEponModeSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cmode", 1), ("hmode", 2))).clone('cmode')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponModeSwitch.setStatus('current') hpnicfEponAutomaticMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutomaticMode.setStatus('current') hpnicfEponOamDiscoveryTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 4), Integer32().clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponOamDiscoveryTimeout.setStatus('current') hpnicfEponEncryptionNoReplyTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 5), Integer32().clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponEncryptionNoReplyTimeOut.setStatus('current') hpnicfEponEncryptionUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 6), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponEncryptionUpdateTime.setStatus('current') hpnicfEponAutoBindStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoBindStatus.setStatus('current') hpnicfEponAutoUpdateTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17), ) if mibBuilder.loadTexts: hpnicfEponAutoUpdateTable.setStatus('current') hpnicfEponAutoUpdateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponSlotIndex")) if mibBuilder.loadTexts: hpnicfEponAutoUpdateEntry.setStatus('current') hpnicfEponAutoUpdateFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoUpdateFileName.setStatus('current') hpnicfEponAutoUpdateSchedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedStatus.setStatus('current') hpnicfEponAutoUpdateSchedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedTime.setStatus('current') hpnicfEponAutoUpdateSchedType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("daily", 1), ("weekly", 2), ("comingdate", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedType.setStatus('current') hpnicfEponAutoUpdateRealTimeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponAutoUpdateRealTimeStatus.setStatus('current') hpnicfEponOuiIndexNextTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18), ) if mibBuilder.loadTexts: hpnicfEponOuiIndexNextTable.setStatus('current') hpnicfEponOuiIndexNextEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponSlotIndex")) if mibBuilder.loadTexts: hpnicfEponOuiIndexNextEntry.setStatus('current') hpnicfEponOuiIndexNext = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponOuiIndexNext.setStatus('current') hpnicfEponOuiTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19), ) if mibBuilder.loadTexts: hpnicfEponOuiTable.setStatus('current') hpnicfEponOuiEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponSlotIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfEponOuiIndex")) if mibBuilder.loadTexts: hpnicfEponOuiEntry.setStatus('current') hpnicfEponOuiIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfEponOuiIndex.setStatus('current') hpnicfEponOuiValue = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 512))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfEponOuiValue.setStatus('current') hpnicfEponOamVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfEponOamVersion.setStatus('current') hpnicfEponOuiRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfEponOuiRowStatus.setStatus('current') hpnicfEponMulticastControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20), ) if mibBuilder.loadTexts: hpnicfEponMulticastControlTable.setStatus('current') hpnicfEponMulticastControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponMulticastVlanId")) if mibBuilder.loadTexts: hpnicfEponMulticastControlEntry.setStatus('current') hpnicfEponMulticastVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfEponMulticastVlanId.setStatus('current') hpnicfEponMulticastAddressList = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfEponMulticastAddressList.setStatus('current') hpnicfEponMulticastStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfEponMulticastStatus.setStatus('current') hpnicfEponFileName = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2)) hpnicfEponDbaUpdateFileName = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponDbaUpdateFileName.setStatus('current') hpnicfEponOnuUpdateFileName = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponOnuUpdateFileName.setStatus('current') hpnicfEponOltMan = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3)) hpnicfOltSysManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1), ) if mibBuilder.loadTexts: hpnicfOltSysManTable.setStatus('current') hpnicfOltSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOltSysManEntry.setStatus('current') hpnicfOltLaserOnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 1), Integer32().clone(96)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltLaserOnTime.setStatus('current') hpnicfOltLaserOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 2), Integer32().clone(96)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltLaserOffTime.setStatus('current') hpnicfOltMultiCopyBrdCast = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltMultiCopyBrdCast.setStatus('current') hpnicfOltEnableDiscardPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltEnableDiscardPacket.setStatus('current') hpnicfOltSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("selftest", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltSelfTest.setStatus('current') hpnicfOltSelfTestResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("fail", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltSelfTestResult.setStatus('current') hpnicfOltMaxRtt = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltMaxRtt.setStatus('current') hpnicfOltInfoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2), ) if mibBuilder.loadTexts: hpnicfOltInfoTable.setStatus('current') hpnicfOltInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOltInfoEntry.setStatus('current') hpnicfOltFirmMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltFirmMajorVersion.setStatus('current') hpnicfOltFirmMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltFirmMinorVersion.setStatus('current') hpnicfOltHardMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltHardMajorVersion.setStatus('current') hpnicfOltHardMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltHardMinorVersion.setStatus('current') hpnicfOltAgcLockTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltAgcLockTime.setStatus('current') hpnicfOltAgcCdrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltAgcCdrTime.setStatus('current') hpnicfOltMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltMacAddress.setStatus('current') hpnicfOltWorkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("open", 2), ("reset", 3), ("closed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltWorkMode.setStatus('current') hpnicfOltOpticalPowerTx = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltOpticalPowerTx.setStatus('current') hpnicfOltOpticalPowerRx = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltOpticalPowerRx.setStatus('current') hpnicfOltDbaManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3), ) if mibBuilder.loadTexts: hpnicfOltDbaManTable.setStatus('current') hpnicfOltDbaManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOltDbaManEntry.setStatus('current') hpnicfOltDbaEnabledType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("internal", 1), ("external", 2))).clone('internal')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltDbaEnabledType.setStatus('current') hpnicfOltDbaDiscoveryLength = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 2), Integer32().clone(41500)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLength.setStatus('current') hpnicfOltDbaDiscovryFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 3), Integer32().clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequency.setStatus('current') hpnicfOltDbaCycleLength = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 4), Integer32().clone(65535)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltDbaCycleLength.setStatus('current') hpnicfOltDbaVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 5), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaVersion.setStatus('current') hpnicfOltDbaUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("update", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltDbaUpdate.setStatus('current') hpnicfOltDbaUpdateResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("fail", 3), ("fileNotExist", 4), ("notSetFilename", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaUpdateResult.setStatus('current') hpnicfOltPortAlarmThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4), ) if mibBuilder.loadTexts: hpnicfOltPortAlarmThresholdTable.setStatus('current') hpnicfOltPortAlarmThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOltPortAlarmThresholdEntry.setStatus('current') hpnicfOltPortAlarmBerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmBerEnabled.setStatus('current') hpnicfOltPortAlarmBerDirect = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("berUplink", 1), ("berDownlink", 2), ("berAll", 3))).clone('berAll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmBerDirect.setStatus('current') hpnicfOltPortAlarmBerThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 3), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmBerThreshold.setStatus('current') hpnicfOltPortAlarmFerEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmFerEnabled.setStatus('current') hpnicfOltPortAlarmFerDirect = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ferUplink", 1), ("ferDownlink", 2), ("ferAll", 3))).clone('ferAll')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmFerDirect.setStatus('current') hpnicfOltPortAlarmFerThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 6), Integer32().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmFerThreshold.setStatus('current') hpnicfOltPortAlarmLlidMismatchEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMismatchEnabled.setStatus('current') hpnicfOltPortAlarmLlidMismatchThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 8), Integer32().clone(5000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMismatchThreshold.setStatus('current') hpnicfOltPortAlarmRemoteStableEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 9), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmRemoteStableEnabled.setStatus('current') hpnicfOltPortAlarmLocalStableEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 10), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmLocalStableEnabled.setStatus('current') hpnicfOltPortAlarmRegistrationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 11), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmRegistrationEnabled.setStatus('current') hpnicfOltPortAlarmOamDisconnectionEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 12), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmOamDisconnectionEnabled.setStatus('current') hpnicfOltPortAlarmEncryptionKeyEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 13), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmEncryptionKeyEnabled.setStatus('current') hpnicfOltPortAlarmVendorSpecificEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 14), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmVendorSpecificEnabled.setStatus('current') hpnicfOltPortAlarmRegExcessEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 15), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmRegExcessEnabled.setStatus('current') hpnicfOltPortAlarmDFEEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 16), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOltPortAlarmDFEEnabled.setStatus('current') hpnicfOltLaserOnTimeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltLaserOnTimeMinVal.setStatus('current') hpnicfOltLaserOnTimeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltLaserOnTimeMaxVal.setStatus('current') hpnicfOltLaserOffTimeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltLaserOffTimeMinVal.setStatus('current') hpnicfOltLaserOffTimeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltLaserOffTimeMaxVal.setStatus('current') hpnicfOltDbaDiscoveryLengthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLengthMinVal.setStatus('current') hpnicfOltDbaDiscoveryLengthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLengthMaxVal.setStatus('current') hpnicfOltDbaDiscovryFrequencyMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequencyMinVal.setStatus('current') hpnicfOltDbaDiscovryFrequencyMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequencyMaxVal.setStatus('current') hpnicfOltDbaCycleLengthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaCycleLengthMinVal.setStatus('current') hpnicfOltDbaCycleLengthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltDbaCycleLengthMaxVal.setStatus('current') hpnicfOltPortAlarmLlidMisMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisMinVal.setStatus('current') hpnicfOltPortAlarmLlidMisMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisMaxVal.setStatus('current') hpnicfOltPortAlarmBerMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmBerMinVal.setStatus('current') hpnicfOltPortAlarmBerMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmBerMaxVal.setStatus('current') hpnicfOltPortAlarmFerMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmFerMinVal.setStatus('current') hpnicfOltPortAlarmFerMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltPortAlarmFerMaxVal.setStatus('current') hpnicfOnuSilentTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21), ) if mibBuilder.loadTexts: hpnicfOnuSilentTable.setStatus('current') hpnicfOnuSilentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuSilentMacAddr")) if mibBuilder.loadTexts: hpnicfOnuSilentEntry.setStatus('current') hpnicfOnuSilentMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1, 1), MacAddress()) if mibBuilder.loadTexts: hpnicfOnuSilentMacAddr.setStatus('current') hpnicfOnuSilentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSilentTime.setStatus('current') hpnicfOltUsingOnuTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22), ) if mibBuilder.loadTexts: hpnicfOltUsingOnuTable.setStatus('current') hpnicfOltUsingOnuEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOltUsingOnuNum")) if mibBuilder.loadTexts: hpnicfOltUsingOnuEntry.setStatus('current') hpnicfOltUsingOnuNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hpnicfOltUsingOnuNum.setStatus('current') hpnicfOltUsingOnuIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOltUsingOnuIfIndex.setStatus('current') hpnicfOltUsingOnuRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOltUsingOnuRowStatus.setStatus('current') hpnicfEponOnuMan = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5)) hpnicfOnuSysManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1), ) if mibBuilder.loadTexts: hpnicfOnuSysManTable.setStatus('current') hpnicfOnuSysManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuSysManEntry.setStatus('current') hpnicfOnuEncryptMan = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("downlink", 2), ("updownlink", 3))).clone('downlink')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuEncryptMan.setStatus('current') hpnicfOnuReAuthorize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reAuthorize", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuReAuthorize.setStatus('current') hpnicfOnuMulticastFilterStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuMulticastFilterStatus.setStatus('current') hpnicfOnuDbaReportQueueSetNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 4), Integer32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDbaReportQueueSetNumber.setStatus('current') hpnicfOnuRemoteFecStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRemoteFecStatus.setStatus('current') hpnicfOnuPortBerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuPortBerStatus.setStatus('current') hpnicfOnuReset = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuReset.setStatus('current') hpnicfOnuMulticastControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("igmpsnooping", 1), ("multicastcontrol", 2))).clone('igmpsnooping')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuMulticastControlMode.setStatus('current') hpnicfOnuAccessVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuAccessVlan.setStatus('current') hpnicfOnuEncryptKey = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuEncryptKey.setStatus('current') hpnicfOnuUniUpDownTrapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuUniUpDownTrapStatus.setStatus('current') hpnicfOnuFecStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuFecStatus.setStatus('current') hpnicfOnuMcastCtrlHostAgingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuMcastCtrlHostAgingTime.setStatus('current') hpnicfOnuMulticastFastLeaveEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 14), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuMulticastFastLeaveEnable.setStatus('current') hpnicfOnuPortIsolateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 15), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuPortIsolateEnable.setStatus('current') hpnicfOnuLinkTestTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2), ) if mibBuilder.loadTexts: hpnicfOnuLinkTestTable.setStatus('current') hpnicfOnuLinkTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuLinkTestEntry.setStatus('current') hpnicfOnuLinkTestFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 1), Integer32().clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNum.setStatus('current') hpnicfOnuLinkTestFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 1514)).clone(1000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameSize.setStatus('current') hpnicfOnuLinkTestDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestDelay.setStatus('current') hpnicfOnuLinkTestVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanTag.setStatus('current') hpnicfOnuLinkTestVlanPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanPriority.setStatus('current') hpnicfOnuLinkTestVlanTagID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanTagID.setStatus('current') hpnicfOnuLinkTestResultSentFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultSentFrameNum.setStatus('current') hpnicfOnuLinkTestResultRetFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultRetFrameNum.setStatus('current') hpnicfOnuLinkTestResultRetErrFrameNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultRetErrFrameNum.setStatus('current') hpnicfOnuLinkTestResultMinDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMinDelay.setStatus('current') hpnicfOnuLinkTestResultMeanDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMeanDelay.setStatus('current') hpnicfOnuLinkTestResultMaxDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMaxDelay.setStatus('current') hpnicfOnuBandWidthTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3), ) if mibBuilder.loadTexts: hpnicfOnuBandWidthTable.setStatus('current') hpnicfOnuBandWidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuBandWidthEntry.setStatus('current') hpnicfOnuDownStreamBandWidthPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDownStreamBandWidthPolicy.setStatus('current') hpnicfOnuDownStreamMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000)).clone(1000000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDownStreamMaxBandWidth.setStatus('current') hpnicfOnuDownStreamMaxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388480)).clone(8388480)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDownStreamMaxBurstSize.setStatus('current') hpnicfOnuDownStreamHighPriorityFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDownStreamHighPriorityFirst.setStatus('current') hpnicfOnuDownStreamShortFrameFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDownStreamShortFrameFirst.setStatus('current') hpnicfOnuP2PBandWidthPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuP2PBandWidthPolicy.setStatus('current') hpnicfOnuP2PMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000)).clone(1000000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuP2PMaxBandWidth.setStatus('current') hpnicfOnuP2PMaxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388480)).clone(8388480)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuP2PMaxBurstSize.setStatus('current') hpnicfOnuP2PHighPriorityFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuP2PHighPriorityFirst.setStatus('current') hpnicfOnuP2PShortFrameFirst = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 10), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuP2PShortFrameFirst.setStatus('current') hpnicfOnuSlaManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4), ) if mibBuilder.loadTexts: hpnicfOnuSlaManTable.setStatus('current') hpnicfOnuSlaManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuSlaManEntry.setStatus('current') hpnicfOnuSlaMaxBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidth.setStatus('current') hpnicfOnuSlaMinBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidth.setStatus('current') hpnicfOnuSlaBandWidthStepVal = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSlaBandWidthStepVal.setStatus('current') hpnicfOnuSlaDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("low", 1), ("high", 2))).clone('low')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaDelay.setStatus('current') hpnicfOnuSlaFixedBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaFixedBandWidth.setStatus('current') hpnicfOnuSlaPriorityClass = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaPriorityClass.setStatus('current') hpnicfOnuSlaFixedPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuSlaFixedPacketSize.setStatus('current') hpnicfOnuInfoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5), ) if mibBuilder.loadTexts: hpnicfOnuInfoTable.setStatus('current') hpnicfOnuInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuInfoEntry.setStatus('current') hpnicfOnuHardMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuHardMajorVersion.setStatus('current') hpnicfOnuHardMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuHardMinorVersion.setStatus('current') hpnicfOnuSoftwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSoftwareVersion.setStatus('current') hpnicfOnuUniMacType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("mii", 2), ("gmii", 3), ("tbi", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuUniMacType.setStatus('current') hpnicfOnuLaserOnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLaserOnTime.setStatus('current') hpnicfOnuLaserOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLaserOffTime.setStatus('current') hpnicfOnuGrantFifoDep = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(1, 255), ValueRangeConstraint(2147483647, 2147483647), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuGrantFifoDep.setStatus('current') hpnicfOnuWorkMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("on", 2), ("pending", 3), ("off", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuWorkMode.setStatus('current') hpnicfOnuPCBVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 9), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPCBVersion.setStatus('current') hpnicfOnuRtt = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRtt.setStatus('current') hpnicfOnuEEPROMVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 11), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuEEPROMVersion.setStatus('current') hpnicfOnuRegType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 12), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRegType.setStatus('current') hpnicfOnuHostType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 13), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuHostType.setStatus('current') hpnicfOnuDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuDistance.setStatus('current') hpnicfOnuLlid = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLlid.setStatus('current') hpnicfOnuVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuVendorId.setStatus('current') hpnicfOnuFirmwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 17), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuFirmwareVersion.setStatus('current') hpnicfOnuOpticalPowerReceivedByOlt = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuOpticalPowerReceivedByOlt.setStatus('current') hpnicfOnuMacAddrInfoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6), ) if mibBuilder.loadTexts: hpnicfOnuMacAddrInfoTable.setStatus('current') hpnicfOnuMacAddrInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuMacIndex")) if mibBuilder.loadTexts: hpnicfOnuMacAddrInfoEntry.setStatus('current') hpnicfOnuMacIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfOnuMacIndex.setStatus('current') hpnicfOnuMacAddrFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("bound", 1), ("registered", 2), ("run", 3), ("regIncorrect", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuMacAddrFlag.setStatus('current') hpnicfOnuMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuMacAddress.setStatus('current') hpnicfOnuBindMacAddrTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7), ) if mibBuilder.loadTexts: hpnicfOnuBindMacAddrTable.setStatus('current') hpnicfOnuBindMacAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuBindMacAddrEntry.setStatus('current') hpnicfOnuBindMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1, 1), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuBindMacAddress.setStatus('current') hpnicfOnuBindType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuBindType.setStatus('current') hpnicfOnuFirmwareUpdateTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8), ) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateTable.setStatus('current') hpnicfOnuFirmwareUpdateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateEntry.setStatus('current') hpnicfOnuUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("update", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuUpdate.setStatus('current') hpnicfOnuUpdateResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("updating", 1), ("ok", 2), ("fail", 3), ("fileNotExist", 4), ("notSetFilename", 5), ("fileNotMatchONU", 6), ("timeout", 7), ("otherError", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuUpdateResult.setStatus('current') hpnicfOnuUpdateFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuUpdateFileName.setStatus('current') hpnicfOnuLinkTestFrameNumMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNumMinVal.setStatus('current') hpnicfOnuLinkTestFrameNumMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNumMaxVal.setStatus('current') hpnicfOnuSlaMaxBandWidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidthMinVal.setStatus('current') hpnicfOnuSlaMaxBandWidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidthMaxVal.setStatus('current') hpnicfOnuSlaMinBandWidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidthMinVal.setStatus('current') hpnicfOnuSlaMinBandWidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidthMaxVal.setStatus('current') hpnicfEponOnuTypeManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15), ) if mibBuilder.loadTexts: hpnicfEponOnuTypeManTable.setStatus('current') hpnicfEponOnuTypeManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponOnuTypeIndex")) if mibBuilder.loadTexts: hpnicfEponOnuTypeManEntry.setStatus('current') hpnicfEponOnuTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfEponOnuTypeIndex.setStatus('current') hpnicfEponOnuTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponOnuTypeDescr.setStatus('current') hpnicfOnuPacketManTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16), ) if mibBuilder.loadTexts: hpnicfOnuPacketManTable.setStatus('current') hpnicfOnuPacketManEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuPacketManEntry.setStatus('current') hpnicfOnuPriorityTrust = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("dscp", 1), ("ipprecedence", 2), ("cos", 3))).clone('cos')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuPriorityTrust.setStatus('current') hpnicfOnuQueueScheduler = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("spq", 1), ("wfq", 2))).clone('spq')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuQueueScheduler.setStatus('current') hpnicfOnuProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17), ) if mibBuilder.loadTexts: hpnicfOnuProtocolTable.setStatus('current') hpnicfOnuProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuProtocolEntry.setStatus('current') hpnicfOnuStpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 1), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuStpStatus.setStatus('current') hpnicfOnuIgmpSnoopingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingStatus.setStatus('current') hpnicfOnuDhcpsnoopingOption82 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDhcpsnoopingOption82.setStatus('current') hpnicfOnuDhcpsnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDhcpsnooping.setStatus('current') hpnicfOnuPppoe = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuPppoe.setStatus('current') hpnicfOnuIgmpSnoopingHostAgingT = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingHostAgingT.setStatus('current') hpnicfOnuIgmpSnoopingMaxRespT = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingMaxRespT.setStatus('current') hpnicfOnuIgmpSnoopingRouterAgingT = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingRouterAgingT.setStatus('current') hpnicfOnuIgmpSnoopingAggReportS = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingAggReportS.setStatus('current') hpnicfOnuIgmpSnoopingAggLeaveS = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 10), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingAggLeaveS.setStatus('current') hpnicfOnuDot1xTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18), ) if mibBuilder.loadTexts: hpnicfOnuDot1xTable.setStatus('current') hpnicfOnuDot1xEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuDot1xEntry.setStatus('current') hpnicfOnuDot1xAccount = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDot1xAccount.setStatus('current') hpnicfOnuDot1xPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1, 2), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDot1xPassword.setStatus('current') hpnicfEponBatchOperationMan = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6)) hpnicfOnuPriorityQueueTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19), ) if mibBuilder.loadTexts: hpnicfOnuPriorityQueueTable.setStatus('current') hpnicfOnuPriorityQueueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuQueueDirection"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuQueueId")) if mibBuilder.loadTexts: hpnicfOnuPriorityQueueEntry.setStatus('current') hpnicfOnuQueueDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inbound", 1), ("outbound", 2)))) if mibBuilder.loadTexts: hpnicfOnuQueueDirection.setStatus('current') hpnicfOnuQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: hpnicfOnuQueueId.setStatus('current') hpnicfOnuQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuQueueSize.setStatus('current') hpnicfOnuCountTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20), ) if mibBuilder.loadTexts: hpnicfOnuCountTable.setStatus('current') hpnicfOnuCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuCountEntry.setStatus('current') hpnicfOnuInCRCErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuInCRCErrPkts.setStatus('current') hpnicfOnuOutDroppedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuOutDroppedFrames.setStatus('current') hpnicfEponOnuScalarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21)) hpnicfOnuPriorityQueueSizeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueSizeMinVal.setStatus('current') hpnicfOnuPriorityQueueSizeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueSizeMaxVal.setStatus('current') hpnicfOnuPriorityQueueBandwidthMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBandwidthMinVal.setStatus('current') hpnicfOnuPriorityQueueBandwidthMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBandwidthMaxVal.setStatus('current') hpnicfOnuPriorityQueueBurstsizeMinVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBurstsizeMinVal.setStatus('current') hpnicfOnuPriorityQueueBurstsizeMaxVal = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBurstsizeMaxVal.setStatus('current') hpnicfOnuUpdateByTypeNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeNextIndex.setStatus('current') hpnicfOnuQueueBandwidthTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22), ) if mibBuilder.loadTexts: hpnicfOnuQueueBandwidthTable.setStatus('current') hpnicfOnuQueueBandwidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuQueueDirection"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuQueueId")) if mibBuilder.loadTexts: hpnicfOnuQueueBandwidthEntry.setStatus('current') hpnicfOnuQueueMaxBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuQueueMaxBandwidth.setStatus('current') hpnicfOnuQueueMaxBurstsize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuQueueMaxBurstsize.setStatus('current') hpnicfOnuQueuePolicyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuQueuePolicyStatus.setStatus('current') hpnicfOnuIpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23), ) if mibBuilder.loadTexts: hpnicfOnuIpAddressTable.setStatus('current') hpnicfOnuIpAddressEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuIpAddressEntry.setStatus('current') hpnicfOnuIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIpAddress.setStatus('current') hpnicfOnuIpAddressMask = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIpAddressMask.setStatus('current') hpnicfOnuIpAddressGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuIpAddressGateway.setStatus('current') hpnicfOnuDhcpallocate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDhcpallocate.setStatus('current') hpnicfOnuManageVID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuManageVID.setStatus('current') hpnicfOnuManageVlanIntfS = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuManageVlanIntfS.setStatus('current') hpnicfOnuChipSetInfoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24), ) if mibBuilder.loadTexts: hpnicfOnuChipSetInfoTable.setStatus('current') hpnicfOnuChipSetInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuChipSetInfoEntry.setStatus('current') hpnicfOnuChipSetVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuChipSetVendorId.setStatus('current') hpnicfOnuChipSetModel = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuChipSetModel.setStatus('current') hpnicfOnuChipSetRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuChipSetRevision.setStatus('current') hpnicfOnuChipSetDesignDate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuChipSetDesignDate.setStatus('current') hpnicfOnuCapabilityTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25), ) if mibBuilder.loadTexts: hpnicfOnuCapabilityTable.setStatus('current') hpnicfOnuCapabilityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuCapabilityEntry.setStatus('current') hpnicfOnuServiceSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 1), Bits().clone(namedValues=NamedValues(("geinterfacesupport", 0), ("feinterfacesupport", 1), ("voipservicesupport", 2), ("tdmservicesupport", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuServiceSupported.setStatus('current') hpnicfOnuGEPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuGEPortNumber.setStatus('current') hpnicfOnuFEPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuFEPortNumber.setStatus('current') hpnicfOnuPOTSPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuPOTSPortNumber.setStatus('current') hpnicfOnuE1PortsNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuE1PortsNumber.setStatus('current') hpnicfOnuUpstreamQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuUpstreamQueueNumber.setStatus('current') hpnicfOnuMaxUpstreamQueuePerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuMaxUpstreamQueuePerPort.setStatus('current') hpnicfOnuDownstreamQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuDownstreamQueueNumber.setStatus('current') hpnicfOnuMaxDownstreamQueuePerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuMaxDownstreamQueuePerPort.setStatus('current') hpnicfOnuBatteryBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuBatteryBackup.setStatus('current') hpnicfOnuIgspFastLeaveSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuIgspFastLeaveSupported.setStatus('current') hpnicfOnuMCtrlFastLeaveSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuMCtrlFastLeaveSupported.setStatus('current') hpnicfOnuDbaReportTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26), ) if mibBuilder.loadTexts: hpnicfOnuDbaReportTable.setStatus('current') hpnicfOnuDbaReportEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuDbaReportQueueId")) if mibBuilder.loadTexts: hpnicfOnuDbaReportEntry.setStatus('current') hpnicfOnuDbaReportQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfOnuDbaReportQueueId.setStatus('current') hpnicfOnuDbaReportThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDbaReportThreshold.setStatus('current') hpnicfOnuDbaReportStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuDbaReportStatus.setStatus('current') hpnicfOnuCosToLocalPrecedenceTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27), ) if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceTable.setStatus('current') hpnicfOnuCosToLocalPrecedenceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuCosToLocalPrecedenceCosIndex")) if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceEntry.setStatus('current') hpnicfOnuCosToLocalPrecedenceCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceCosIndex.setStatus('current') hpnicfOnuCosToLocalPrecedenceValue = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceValue.setStatus('current') hpnicfEponOnuStpPortTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28), ) if mibBuilder.loadTexts: hpnicfEponOnuStpPortTable.setStatus('current') hpnicfEponOnuStpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfEponStpPortIndex")) if mibBuilder.loadTexts: hpnicfEponOnuStpPortEntry.setStatus('current') hpnicfEponStpPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 144))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponStpPortIndex.setStatus('current') hpnicfEponStpPortDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponStpPortDescr.setStatus('current') hpnicfEponStpPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("discarding", 2), ("learning", 3), ("forwarding", 4)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponStpPortState.setStatus('current') hpnicfOnuPhysicalTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29), ) if mibBuilder.loadTexts: hpnicfOnuPhysicalTable.setStatus('current') hpnicfOnuPhysicalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfOnuPhysicalEntry.setStatus('current') hpnicfOnuBridgeMac = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuBridgeMac.setStatus('current') hpnicfOnuFirstPonMac = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuFirstPonMac.setStatus('current') hpnicfOnuFirstPonRegState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notExist", 1), ("absent", 2), ("offline", 3), ("silent", 4), ("down", 5), ("up", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuFirstPonRegState.setStatus('current') hpnicfOnuSecondPonMac = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSecondPonMac.setStatus('current') hpnicfOnuSecondPonRegState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notExist", 1), ("absent", 2), ("offline", 3), ("silent", 4), ("down", 5), ("up", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSecondPonRegState.setStatus('current') hpnicfOnuSmlkTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30), ) if mibBuilder.loadTexts: hpnicfOnuSmlkTable.setStatus('current') hpnicfOnuSmlkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuSmlkGroupID")) if mibBuilder.loadTexts: hpnicfOnuSmlkEntry.setStatus('current') hpnicfOnuSmlkGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSmlkGroupID.setStatus('current') hpnicfOnuSmlkFirstPonRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("null", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSmlkFirstPonRole.setStatus('current') hpnicfOnuSmlkFirstPonStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("standby", 2), ("down", 3), ("null", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSmlkFirstPonStatus.setStatus('current') hpnicfOnuSmlkSecondPonRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("slave", 2), ("null", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSmlkSecondPonRole.setStatus('current') hpnicfOnuSmlkSecondPonStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("active", 1), ("standby", 2), ("down", 3), ("null", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuSmlkSecondPonStatus.setStatus('current') hpnicfOnuRS485PropertiesTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31), ) if mibBuilder.loadTexts: hpnicfOnuRS485PropertiesTable.setStatus('current') hpnicfOnuRS485PropertiesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SerialIndex")) if mibBuilder.loadTexts: hpnicfOnuRS485PropertiesEntry.setStatus('current') hpnicfOnuRS485SerialIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hpnicfOnuRS485SerialIndex.setStatus('current') hpnicfOnuRS485BaudRate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("baudRate300", 1), ("baudRate600", 2), ("baudRate1200", 3), ("baudRate2400", 4), ("baudRate4800", 5), ("baudRate9600", 6), ("baudRate19200", 7), ("baudRate38400", 8), ("baudRate57600", 9), ("baudRate115200", 10))).clone('baudRate9600')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485BaudRate.setStatus('current') hpnicfOnuRS485DataBits = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("five", 1), ("six", 2), ("seven", 3), ("eight", 4))).clone('eight')).setUnits('bit').setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485DataBits.setStatus('current') hpnicfOnuRS485Parity = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("even", 3), ("mark", 4), ("space", 5))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485Parity.setStatus('current') hpnicfOnuRS485StopBits = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("one", 1), ("two", 2), ("oneAndHalf", 3))).clone('one')).setUnits('bit').setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485StopBits.setStatus('current') hpnicfOnuRS485FlowControl = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("hardware", 2), ("xonOrxoff", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485FlowControl.setStatus('current') hpnicfOnuRS485TXOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485TXOctets.setStatus('current') hpnicfOnuRS485RXOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485RXOctets.setStatus('current') hpnicfOnuRS485TXErrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485TXErrOctets.setStatus('current') hpnicfOnuRS485RXErrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485RXErrOctets.setStatus('current') hpnicfOnuRS485ResetStatistics = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("counting", 1), ("clear", 2))).clone('counting')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfOnuRS485ResetStatistics.setStatus('current') hpnicfOnuRS485SessionSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32), ) if mibBuilder.loadTexts: hpnicfOnuRS485SessionSummaryTable.setStatus('current') hpnicfOnuRS485SessionSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SerialIndex")) if mibBuilder.loadTexts: hpnicfOnuRS485SessionSummaryEntry.setStatus('current') hpnicfOnuRS485SessionMaxNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485SessionMaxNum.setStatus('current') hpnicfOnuRS485SessionNextIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485SessionNextIndex.setStatus('current') hpnicfOnuRS485SessionTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33), ) if mibBuilder.loadTexts: hpnicfOnuRS485SessionTable.setStatus('current') hpnicfOnuRS485SessionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SerialIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SessionIndex")) if mibBuilder.loadTexts: hpnicfOnuRS485SessionEntry.setStatus('current') hpnicfOnuRS485SessionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hpnicfOnuRS485SessionIndex.setStatus('current') hpnicfOnuRS485SessionType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("udp", 1), ("tcpClient", 2), ("tcpServer", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionType.setStatus('current') hpnicfOnuRS485SessionAddType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 3), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionAddType.setStatus('current') hpnicfOnuRS485SessionRemoteIP = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 4), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionRemoteIP.setStatus('current') hpnicfOnuRS485SessionRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1024, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionRemotePort.setStatus('current') hpnicfOnuRS485SessionLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1024, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionLocalPort.setStatus('current') hpnicfOnuRS485SessionRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuRS485SessionRowStatus.setStatus('current') hpnicfOnuRS485SessionErrInfoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34), ) if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfoTable.setStatus('current') hpnicfOnuRS485SessionErrInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SerialIndex"), (0, "HPN-ICF-EPON-MIB", "hpnicfOnuRS485SessionIndex")) if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfoEntry.setStatus('current') hpnicfOnuRS485SessionErrInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfo.setStatus('current') hpnicfEponBatchOperationBySlotTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1), ) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotTable.setStatus('current') hpnicfEponBatchOperationBySlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfEponBatchOperationBySlotIndex")) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotEntry.setStatus('current') hpnicfEponBatchOperationBySlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotIndex.setStatus('current') hpnicfEponBatchOperationBySlotType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 9, 10))).clone(namedValues=NamedValues(("resetUnknown", 1), ("updateDba", 9), ("updateONU", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotType.setStatus('current') hpnicfEponBatchOperationBySlot = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("batOpBySlot", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlot.setStatus('current') hpnicfEponBatchOperationBySlotResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotResult.setStatus('current') hpnicfEponBatchOperationByOLTTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2), ) if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTTable.setStatus('current') hpnicfEponBatchOperationByOLTEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTEntry.setStatus('current') hpnicfEponBatchOperationByOLTType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5))).clone(namedValues=NamedValues(("resetUnknown", 1), ("updateONU", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTType.setStatus('current') hpnicfEponBatchOperationByOLT = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("batOpByOlt", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLT.setStatus('current') hpnicfEponBatchOperationByOLTResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTResult.setStatus('current') hpnicfOnuFirmwareUpdateByTypeTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3), ) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateByTypeTable.setStatus('current') hpnicfOnuFirmwareUpdateByTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1), ).setIndexNames((0, "HPN-ICF-EPON-MIB", "hpnicfOnuUpdateByOnuTypeIndex")) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateByTypeEntry.setStatus('current') hpnicfOnuUpdateByOnuTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: hpnicfOnuUpdateByOnuTypeIndex.setStatus('current') hpnicfOnuUpdateByTypeOnuType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeOnuType.setStatus('current') hpnicfOnuUpdateByTypeFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeFileName.setStatus('current') hpnicfOnuUpdateByTypeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeRowStatus.setStatus('current') hpnicfEponErrorInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7)) hpnicfEponSoftwareErrorCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponSoftwareErrorCode.setStatus('current') hpnicfOamVendorSpecificAlarmCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOamVendorSpecificAlarmCode.setStatus('current') hpnicfEponOnuRegErrorMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 3), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponOnuRegErrorMacAddr.setStatus('current') hpnicfOamEventLogType = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 4), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOamEventLogType.setStatus('current') hpnicfOamEventLogLocation = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOamEventLogLocation.setStatus('current') hpnicfEponLoopbackPortIndex = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponLoopbackPortIndex.setStatus('current') hpnicfEponLoopbackPortDescr = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponLoopbackPortDescr.setStatus('current') hpnicfOltPortAlarmLlidMisFrames = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 8), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisFrames.setStatus('current') hpnicfOltPortAlarmBer = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 9), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOltPortAlarmBer.setStatus('current') hpnicfOltPortAlarmFer = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 10), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfOltPortAlarmFer.setStatus('current') hpnicfEponOnuRegSilentMac = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 11), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponOnuRegSilentMac.setStatus('current') hpnicfEponOperationResult = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponOperationResult.setStatus('current') hpnicfEponOnuLaserState = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("normal", 1), ("laserAlwaysOn", 2), ("signalDegradation", 3), ("endOfLife", 4)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfEponOnuLaserState.setStatus('current') hpnicfEponTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8)) hpnicfEponTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0)) hpnicfEponPortAlarmBerTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 1)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmBerDirect"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmBer"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmBerThreshold")) if mibBuilder.loadTexts: hpnicfEponPortAlarmBerTrap.setStatus('current') hpnicfEponPortAlarmFerTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 2)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmFerDirect"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmFer"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmFerThreshold")) if mibBuilder.loadTexts: hpnicfEponPortAlarmFerTrap.setStatus('current') hpnicfEponErrorLLIDFrameTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmLlidMisFrames"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmLlidMismatchThreshold")) if mibBuilder.loadTexts: hpnicfEponErrorLLIDFrameTrap.setStatus('current') hpnicfEponLoopBackEnableTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponLoopbackPortIndex"), ("HPN-ICF-EPON-MIB", "hpnicfEponLoopbackPortDescr")) if mibBuilder.loadTexts: hpnicfEponLoopBackEnableTrap.setStatus('current') hpnicfEponOnuRegistrationErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 5)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponOnuRegErrorMacAddr")) if mibBuilder.loadTexts: hpnicfEponOnuRegistrationErrTrap.setStatus('current') hpnicfEponOamDisconnectionTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 6)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOamDisconnectionTrap.setStatus('current') hpnicfEponEncryptionKeyErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 7)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponEncryptionKeyErrTrap.setStatus('current') hpnicfEponRemoteStableTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 8)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponRemoteStableTrap.setStatus('current') hpnicfEponLocalStableTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 9)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponLocalStableTrap.setStatus('current') hpnicfEponOamVendorSpecificTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 10)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOamVendorSpecificAlarmCode")) if mibBuilder.loadTexts: hpnicfEponOamVendorSpecificTrap.setStatus('current') hpnicfEponSoftwareErrTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 11)).setObjects(("HPN-ICF-LSW-DEV-ADM-MIB", "hpnicfLswFrameIndex"), ("HPN-ICF-LSW-DEV-ADM-MIB", "hpnicfLswSlotIndex"), ("HPN-ICF-EPON-MIB", "hpnicfEponSoftwareErrorCode")) if mibBuilder.loadTexts: hpnicfEponSoftwareErrTrap.setStatus('current') hpnicfEponPortAlarmBerRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 12)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmBerDirect")) if mibBuilder.loadTexts: hpnicfEponPortAlarmBerRecoverTrap.setStatus('current') hpnicfEponPortAlarmFerRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 13)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOltPortAlarmFerDirect")) if mibBuilder.loadTexts: hpnicfEponPortAlarmFerRecoverTrap.setStatus('current') hpnicfEponErrorLLIDFrameRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 14)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponErrorLLIDFrameRecoverTrap.setStatus('current') hpnicfEponLoopBackEnableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 15)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponLoopBackEnableRecoverTrap.setStatus('current') hpnicfEponOnuRegistrationErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 16)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponOnuRegErrorMacAddr")) if mibBuilder.loadTexts: hpnicfEponOnuRegistrationErrRecoverTrap.setStatus('current') hpnicfEponOamDisconnectionRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 17)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOamDisconnectionRecoverTrap.setStatus('current') hpnicfEponEncryptionKeyErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 18)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponEncryptionKeyErrRecoverTrap.setStatus('current') hpnicfEponRemoteStableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 19)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponRemoteStableRecoverTrap.setStatus('current') hpnicfEponLocalStableRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 20)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponLocalStableRecoverTrap.setStatus('current') hpnicfEponOamVendorSpecificRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 21)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOamVendorSpecificAlarmCode")) if mibBuilder.loadTexts: hpnicfEponOamVendorSpecificRecoverTrap.setStatus('current') hpnicfEponSoftwareErrRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 22)).setObjects(("HPN-ICF-LSW-DEV-ADM-MIB", "hpnicfLswFrameIndex"), ("HPN-ICF-LSW-DEV-ADM-MIB", "hpnicfLswSlotIndex"), ("HPN-ICF-EPON-MIB", "hpnicfEponSoftwareErrorCode")) if mibBuilder.loadTexts: hpnicfEponSoftwareErrRecoverTrap.setStatus('current') hpnicfDot3OamThresholdRecoverEvent = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 23)).setObjects(("IF-MIB", "ifIndex"), ("HPN-ICF-EPON-MIB", "hpnicfOamEventLogType"), ("HPN-ICF-EPON-MIB", "hpnicfOamEventLogLocation")) if mibBuilder.loadTexts: hpnicfDot3OamThresholdRecoverEvent.setStatus('current') hpnicfDot3OamNonThresholdRecoverEvent = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 24)).setObjects(("IF-MIB", "ifIndex"), ("HPN-ICF-EPON-MIB", "hpnicfOamEventLogType"), ("HPN-ICF-EPON-MIB", "hpnicfOamEventLogLocation")) if mibBuilder.loadTexts: hpnicfDot3OamNonThresholdRecoverEvent.setStatus('current') hpnicfEponOnuRegExcessTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 25)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOnuRegExcessTrap.setStatus('current') hpnicfEponOnuRegExcessRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 26)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOnuRegExcessRecoverTrap.setStatus('current') hpnicfEponOnuPowerOffTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 27)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOnuPowerOffTrap.setStatus('current') hpnicfEponOltSwitchoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 28)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOltSwitchoverTrap.setStatus('current') hpnicfEponOltDFETrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 29)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOltDFETrap.setStatus('current') hpnicfEponOltDFERecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 30)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr")) if mibBuilder.loadTexts: hpnicfEponOltDFERecoverTrap.setStatus('current') hpnicfEponOnuSilenceTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 31)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponOnuRegSilentMac")) if mibBuilder.loadTexts: hpnicfEponOnuSilenceTrap.setStatus('current') hpnicfEponOnuSilenceRecoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 32)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponOnuRegSilentMac")) if mibBuilder.loadTexts: hpnicfEponOnuSilenceRecoverTrap.setStatus('current') hpnicfEponOnuUpdateResultTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 33)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOnuBindMacAddress"), ("HPN-ICF-EPON-MIB", "hpnicfOnuUpdateResult"), ("HPN-ICF-EPON-MIB", "hpnicfOnuRegType"), ("HPN-ICF-EPON-MIB", "hpnicfOnuUpdateFileName")) if mibBuilder.loadTexts: hpnicfEponOnuUpdateResultTrap.setStatus('current') hpnicfEponOnuAutoBindTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 34)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOnuBindMacAddress"), ("HPN-ICF-EPON-MIB", "hpnicfEponOperationResult")) if mibBuilder.loadTexts: hpnicfEponOnuAutoBindTrap.setStatus('current') hpnicfEponOnuPortStpStateTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 35)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponStpPortIndex"), ("HPN-ICF-EPON-MIB", "hpnicfEponStpPortDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponStpPortState")) if mibBuilder.loadTexts: hpnicfEponOnuPortStpStateTrap.setStatus('current') hpnicfEponOnuLaserFailedTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 36)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfEponOnuLaserState")) if mibBuilder.loadTexts: hpnicfEponOnuLaserFailedTrap.setStatus('current') hpnicfOnuSmlkSwitchoverTrap = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 37)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("HPN-ICF-EPON-MIB", "hpnicfOnuSmlkGroupID"), ("HPN-ICF-EPON-MIB", "hpnicfOnuSmlkFirstPonStatus"), ("HPN-ICF-EPON-MIB", "hpnicfOnuSmlkSecondPonStatus")) if mibBuilder.loadTexts: hpnicfOnuSmlkSwitchoverTrap.setStatus('current') hpnicfEponStat = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9)) hpnicfEponStatTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1), ) if mibBuilder.loadTexts: hpnicfEponStatTable.setStatus('current') hpnicfEponStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfEponStatEntry.setStatus('current') hpnicfEponStatFER = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponStatFER.setStatus('current') hpnicfEponStatBER = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfEponStatBER.setStatus('current') mibBuilder.exportSymbols("HPN-ICF-EPON-MIB", hpnicfEponBatchOperationByOLTEntry=hpnicfEponBatchOperationByOLTEntry, hpnicfEponStatBER=hpnicfEponStatBER, hpnicfOnuQueueBandwidthTable=hpnicfOnuQueueBandwidthTable, hpnicfOnuPhysicalTable=hpnicfOnuPhysicalTable, hpnicfOltPortAlarmBer=hpnicfOltPortAlarmBer, hpnicfEponBatchOperationBySlotIndex=hpnicfEponBatchOperationBySlotIndex, hpnicfEponLocalStableRecoverTrap=hpnicfEponLocalStableRecoverTrap, hpnicfOnuRS485SerialIndex=hpnicfOnuRS485SerialIndex, hpnicfOnuRS485TXErrOctets=hpnicfOnuRS485TXErrOctets, hpnicfEponMonitorCycle=hpnicfEponMonitorCycle, hpnicfOnuSlaMinBandWidthMinVal=hpnicfOnuSlaMinBandWidthMinVal, hpnicfEponOuiEntry=hpnicfEponOuiEntry, hpnicfOltAgcCdrTime=hpnicfOltAgcCdrTime, hpnicfOamEventLogType=hpnicfOamEventLogType, hpnicfEponTrap=hpnicfEponTrap, hpnicfOltDbaDiscovryFrequencyMinVal=hpnicfOltDbaDiscovryFrequencyMinVal, hpnicfEponOnuMan=hpnicfEponOnuMan, hpnicfEponOnuRegSilentMac=hpnicfEponOnuRegSilentMac, hpnicfEponOnuLaserState=hpnicfEponOnuLaserState, hpnicfOnuIgmpSnoopingHostAgingT=hpnicfOnuIgmpSnoopingHostAgingT, hpnicfOnuDbaReportTable=hpnicfOnuDbaReportTable, hpnicfOnuUpdateByTypeRowStatus=hpnicfOnuUpdateByTypeRowStatus, hpnicfEponAutoUpdateSchedStatus=hpnicfEponAutoUpdateSchedStatus, hpnicfEponEncryptionKeyErrTrap=hpnicfEponEncryptionKeyErrTrap, hpnicfEponAutoUpdateFileName=hpnicfEponAutoUpdateFileName, hpnicfOnuUniMacType=hpnicfOnuUniMacType, hpnicfOnuSlaMaxBandWidthMinVal=hpnicfOnuSlaMaxBandWidthMinVal, hpnicfEponMsgLoseNumMinVal=hpnicfEponMsgLoseNumMinVal, hpnicfOltPortAlarmRemoteStableEnabled=hpnicfOltPortAlarmRemoteStableEnabled, hpnicfOnuCountTable=hpnicfOnuCountTable, hpnicfOnuIgmpSnoopingAggLeaveS=hpnicfOnuIgmpSnoopingAggLeaveS, hpnicfEponPortAlarmBerRecoverTrap=hpnicfEponPortAlarmBerRecoverTrap, hpnicfOnuRS485RXErrOctets=hpnicfOnuRS485RXErrOctets, hpnicfEponSysHasEPONBoard=hpnicfEponSysHasEPONBoard, hpnicfEponMulticastAddressList=hpnicfEponMulticastAddressList, hpnicfOltLaserOnTime=hpnicfOltLaserOnTime, hpnicfOnuFirstPonMac=hpnicfOnuFirstPonMac, hpnicfOnuRS485RXOctets=hpnicfOnuRS485RXOctets, hpnicfOnuRS485TXOctets=hpnicfOnuRS485TXOctets, hpnicfEponOnuRegErrorMacAddr=hpnicfEponOnuRegErrorMacAddr, hpnicfEponMonitorCycleMaxVal=hpnicfEponMonitorCycleMaxVal, hpnicfOnuCosToLocalPrecedenceValue=hpnicfOnuCosToLocalPrecedenceValue, hpnicfOnuDot1xAccount=hpnicfOnuDot1xAccount, hpnicfOltPortAlarmFer=hpnicfOltPortAlarmFer, hpnicfOnuSmlkSecondPonRole=hpnicfOnuSmlkSecondPonRole, hpnicfEponLoopbackPortDescr=hpnicfEponLoopbackPortDescr, hpnicfOnuRS485SessionRowStatus=hpnicfOnuRS485SessionRowStatus, hpnicfOltPortAlarmThresholdEntry=hpnicfOltPortAlarmThresholdEntry, hpnicfOnuSmlkSecondPonStatus=hpnicfOnuSmlkSecondPonStatus, hpnicfOltPortAlarmFerThreshold=hpnicfOltPortAlarmFerThreshold, hpnicfOnuLinkTestResultSentFrameNum=hpnicfOnuLinkTestResultSentFrameNum, hpnicfOltOpticalPowerTx=hpnicfOltOpticalPowerTx, hpnicfOnuP2PMaxBurstSize=hpnicfOnuP2PMaxBurstSize, hpnicfOltPortAlarmVendorSpecificEnabled=hpnicfOltPortAlarmVendorSpecificEnabled, hpnicfOnuBindMacAddress=hpnicfOnuBindMacAddress, hpnicfOltHardMajorVersion=hpnicfOltHardMajorVersion, hpnicfEponBatchOperationBySlotType=hpnicfEponBatchOperationBySlotType, hpnicfOnuRegType=hpnicfOnuRegType, hpnicfOnuSmlkFirstPonRole=hpnicfOnuSmlkFirstPonRole, hpnicfOnuDbaReportEntry=hpnicfOnuDbaReportEntry, hpnicfEponOnuPowerOffTrap=hpnicfEponOnuPowerOffTrap, hpnicfOnuLinkTestFrameNumMinVal=hpnicfOnuLinkTestFrameNumMinVal, hpnicfOnuPriorityQueueEntry=hpnicfOnuPriorityQueueEntry, hpnicfOnuChipSetInfoTable=hpnicfOnuChipSetInfoTable, hpnicfEponSlotIndex=hpnicfEponSlotIndex, hpnicfOnuSoftwareVersion=hpnicfOnuSoftwareVersion, hpnicfOnuCountEntry=hpnicfOnuCountEntry, hpnicfOnuMacAddress=hpnicfOnuMacAddress, hpnicfOnuMacIndex=hpnicfOnuMacIndex, hpnicfOnuQueueDirection=hpnicfOnuQueueDirection, hpnicfOnuQueueMaxBandwidth=hpnicfOnuQueueMaxBandwidth, hpnicfOnuFecStatus=hpnicfOnuFecStatus, hpnicfOltPortAlarmRegExcessEnabled=hpnicfOltPortAlarmRegExcessEnabled, hpnicfOnuSmlkSwitchoverTrap=hpnicfOnuSmlkSwitchoverTrap, hpnicfOamEventLogLocation=hpnicfOamEventLogLocation, hpnicfOnuRS485StopBits=hpnicfOnuRS485StopBits, hpnicfOamVendorSpecificAlarmCode=hpnicfOamVendorSpecificAlarmCode, hpnicfEponStatEntry=hpnicfEponStatEntry, hpnicfEponAutoAuthorize=hpnicfEponAutoAuthorize, hpnicfEponOnuTypeManTable=hpnicfEponOnuTypeManTable, hpnicfOnuRS485SessionErrInfoTable=hpnicfOnuRS485SessionErrInfoTable, hpnicfOnuBandWidthTable=hpnicfOnuBandWidthTable, hpnicfEponSysScalarGroup=hpnicfEponSysScalarGroup, hpnicfOltAgcLockTime=hpnicfOltAgcLockTime, hpnicfOltUsingOnuEntry=hpnicfOltUsingOnuEntry, hpnicfOnuP2PShortFrameFirst=hpnicfOnuP2PShortFrameFirst, hpnicfOltDbaDiscoveryLengthMinVal=hpnicfOltDbaDiscoveryLengthMinVal, hpnicfOnuPCBVersion=hpnicfOnuPCBVersion, hpnicfOnuLinkTestVlanPriority=hpnicfOnuLinkTestVlanPriority, hpnicfOnuUpdateByOnuTypeIndex=hpnicfOnuUpdateByOnuTypeIndex, hpnicfEponOnuUpdateResultTrap=hpnicfEponOnuUpdateResultTrap, hpnicfOltPortAlarmLlidMisMinVal=hpnicfOltPortAlarmLlidMisMinVal, hpnicfEponEncryptionUpdateTime=hpnicfEponEncryptionUpdateTime, hpnicfOnuQueueScheduler=hpnicfOnuQueueScheduler, hpnicfEponOltDFERecoverTrap=hpnicfEponOltDFERecoverTrap, hpnicfOnuBandWidthEntry=hpnicfOnuBandWidthEntry, hpnicfEponStpPortDescr=hpnicfEponStpPortDescr, hpnicfOnuSilentTable=hpnicfOnuSilentTable, hpnicfEponBatchOperationMan=hpnicfEponBatchOperationMan, hpnicfOnuSilentMacAddr=hpnicfOnuSilentMacAddr, hpnicfOnuChipSetModel=hpnicfOnuChipSetModel, hpnicfOltPortAlarmBerDirect=hpnicfOltPortAlarmBerDirect, hpnicfEponSysManTable=hpnicfEponSysManTable, hpnicfOltSelfTestResult=hpnicfOltSelfTestResult, hpnicfEponLoopBackEnableTrap=hpnicfEponLoopBackEnableTrap, hpnicfEponAutoBindStatus=hpnicfEponAutoBindStatus, hpnicfOnuSmlkTable=hpnicfOnuSmlkTable, hpnicfOnuDhcpsnoopingOption82=hpnicfOnuDhcpsnoopingOption82, hpnicfEponMulticastVlanId=hpnicfEponMulticastVlanId, hpnicfEponOamDisconnectionRecoverTrap=hpnicfEponOamDisconnectionRecoverTrap, hpnicfEponPortLoopBackAlmEnable=hpnicfEponPortLoopBackAlmEnable, hpnicfOltPortAlarmBerMaxVal=hpnicfOltPortAlarmBerMaxVal, hpnicfOnuRS485SessionMaxNum=hpnicfOnuRS485SessionMaxNum, hpnicfEponMsgTimeOutMaxVal=hpnicfEponMsgTimeOutMaxVal, hpnicfOnuSlaManEntry=hpnicfOnuSlaManEntry, hpnicfOnuBindMacAddrEntry=hpnicfOnuBindMacAddrEntry, hpnicfEponOltMan=hpnicfEponOltMan, hpnicfOnuRS485SessionSummaryEntry=hpnicfOnuRS485SessionSummaryEntry, hpnicfEponMibObjects=hpnicfEponMibObjects, hpnicfOnuP2PHighPriorityFirst=hpnicfOnuP2PHighPriorityFirst, hpnicfOnuBindType=hpnicfOnuBindType, hpnicfEponMsgTimeOutMinVal=hpnicfEponMsgTimeOutMinVal, hpnicfEponBatchOperationByOLTTable=hpnicfEponBatchOperationByOLTTable, hpnicfEponStat=hpnicfEponStat, hpnicfOnuBatteryBackup=hpnicfOnuBatteryBackup, hpnicfEponOltSoftwareErrAlmEnable=hpnicfEponOltSoftwareErrAlmEnable, hpnicfOnuDhcpsnooping=hpnicfOnuDhcpsnooping, hpnicfOnuManageVlanIntfS=hpnicfOnuManageVlanIntfS, hpnicfEponOnuPortStpStateTrap=hpnicfEponOnuPortStpStateTrap, hpnicfOnuSlaMaxBandWidth=hpnicfOnuSlaMaxBandWidth, hpnicfOltPortAlarmBerEnabled=hpnicfOltPortAlarmBerEnabled, hpnicfEponOamDiscoveryTimeout=hpnicfEponOamDiscoveryTimeout, hpnicfEponOnuRegExcessRecoverTrap=hpnicfEponOnuRegExcessRecoverTrap, hpnicfEponOnuTypeManEntry=hpnicfEponOnuTypeManEntry, hpnicfOnuQueueMaxBurstsize=hpnicfOnuQueueMaxBurstsize, hpnicfOltDbaCycleLengthMaxVal=hpnicfOltDbaCycleLengthMaxVal, hpnicfOnuDownstreamQueueNumber=hpnicfOnuDownstreamQueueNumber, hpnicfOnuRS485SessionType=hpnicfOnuRS485SessionType, hpnicfDot3OamThresholdRecoverEvent=hpnicfDot3OamThresholdRecoverEvent, hpnicfEponOnuRegExcessTrap=hpnicfEponOnuRegExcessTrap, hpnicfOnuHostType=hpnicfOnuHostType, hpnicfOnuLlid=hpnicfOnuLlid, hpnicfOnuInfoEntry=hpnicfOnuInfoEntry, hpnicfOnuManageVID=hpnicfOnuManageVID, hpnicfOltPortAlarmOamDisconnectionEnabled=hpnicfOltPortAlarmOamDisconnectionEnabled, hpnicfOnuRS485SessionSummaryTable=hpnicfOnuRS485SessionSummaryTable, hpnicfOnuRS485SessionAddType=hpnicfOnuRS485SessionAddType, hpnicfOltDbaCycleLengthMinVal=hpnicfOltDbaCycleLengthMinVal, hpnicfOnuGEPortNumber=hpnicfOnuGEPortNumber, hpnicfOltPortAlarmLlidMisMaxVal=hpnicfOltPortAlarmLlidMisMaxVal, hpnicfOnuDownStreamShortFrameFirst=hpnicfOnuDownStreamShortFrameFirst, hpnicfOnuPppoe=hpnicfOnuPppoe, hpnicfOltPortAlarmBerMinVal=hpnicfOltPortAlarmBerMinVal, hpnicfEponRemoteStableTrap=hpnicfEponRemoteStableTrap, hpnicfOnuUpdate=hpnicfOnuUpdate, hpnicfEponTrapPrefix=hpnicfEponTrapPrefix, hpnicfEponErrorLLIDFrameRecoverTrap=hpnicfEponErrorLLIDFrameRecoverTrap, hpnicfOltDbaDiscoveryLengthMaxVal=hpnicfOltDbaDiscoveryLengthMaxVal, hpnicfEponAutoUpdateSchedTime=hpnicfEponAutoUpdateSchedTime, hpnicfOnuDownStreamMaxBandWidth=hpnicfOnuDownStreamMaxBandWidth, hpnicfEponOamDisconnectionTrap=hpnicfEponOamDisconnectionTrap, hpnicfOnuQueueBandwidthEntry=hpnicfOnuQueueBandwidthEntry, hpnicfOnuP2PMaxBandWidth=hpnicfOnuP2PMaxBandWidth, hpnicfOltMacAddress=hpnicfOltMacAddress, hpnicfOltUsingOnuTable=hpnicfOltUsingOnuTable, hpnicfOnuRS485DataBits=hpnicfOnuRS485DataBits, hpnicfOnuMaxUpstreamQueuePerPort=hpnicfOnuMaxUpstreamQueuePerPort, hpnicfOltPortAlarmLlidMismatchThreshold=hpnicfOltPortAlarmLlidMismatchThreshold, hpnicfOltDbaEnabledType=hpnicfOltDbaEnabledType, hpnicfOnuSlaFixedPacketSize=hpnicfOnuSlaFixedPacketSize, hpnicfOnuRS485SessionLocalPort=hpnicfOnuRS485SessionLocalPort, hpnicfEponMonitorCycleMinVal=hpnicfEponMonitorCycleMinVal, hpnicfOltPortAlarmLlidMismatchEnabled=hpnicfOltPortAlarmLlidMismatchEnabled, hpnicfEponEncryptionKeyErrRecoverTrap=hpnicfEponEncryptionKeyErrRecoverTrap, hpnicfOnuHardMinorVersion=hpnicfOnuHardMinorVersion, hpnicfOnuChipSetVendorId=hpnicfOnuChipSetVendorId, hpnicfOnuFEPortNumber=hpnicfOnuFEPortNumber, hpnicfOnuLinkTestFrameSize=hpnicfOnuLinkTestFrameSize, hpnicfEponPortAlarmFerTrap=hpnicfEponPortAlarmFerTrap, hpnicfOnuWorkMode=hpnicfOnuWorkMode, hpnicfOnuLinkTestResultMinDelay=hpnicfOnuLinkTestResultMinDelay, hpnicfEponDbaUpdateFileName=hpnicfEponDbaUpdateFileName, hpnicfOnuMcastCtrlHostAgingTime=hpnicfOnuMcastCtrlHostAgingTime, hpnicfOnuEncryptKey=hpnicfOnuEncryptKey, hpnicfOnuSlaMinBandWidthMaxVal=hpnicfOnuSlaMinBandWidthMaxVal, hpnicfOnuFirmwareUpdateByTypeTable=hpnicfOnuFirmwareUpdateByTypeTable, hpnicfEponOnuRegistrationErrTrap=hpnicfEponOnuRegistrationErrTrap, hpnicfOltPortAlarmFerMaxVal=hpnicfOltPortAlarmFerMaxVal, hpnicfEponBatchOperationBySlotResult=hpnicfEponBatchOperationBySlotResult, hpnicfOnuHardMajorVersion=hpnicfOnuHardMajorVersion, hpnicfOnuDownStreamHighPriorityFirst=hpnicfOnuDownStreamHighPriorityFirst, hpnicfOltDbaDiscoveryLength=hpnicfOltDbaDiscoveryLength, hpnicfOltDbaDiscovryFrequency=hpnicfOltDbaDiscovryFrequency, hpnicfEponMulticastControlTable=hpnicfEponMulticastControlTable, hpnicfOnuSlaMinBandWidth=hpnicfOnuSlaMinBandWidth, hpnicfEponStpPortState=hpnicfEponStpPortState, hpnicfOltHardMinorVersion=hpnicfOltHardMinorVersion, hpnicfOnuSlaFixedBandWidth=hpnicfOnuSlaFixedBandWidth, hpnicfOltDbaCycleLength=hpnicfOltDbaCycleLength, hpnicfEponOamVersion=hpnicfEponOamVersion, hpnicfEponAutomaticMode=hpnicfEponAutomaticMode, hpnicfOnuAccessVlan=hpnicfOnuAccessVlan, hpnicfEponBatchOperationByOLTType=hpnicfEponBatchOperationByOLTType, hpnicfEponMsgLoseNum=hpnicfEponMsgLoseNum, hpnicfOnuGrantFifoDep=hpnicfOnuGrantFifoDep, hpnicfOnuSilentEntry=hpnicfOnuSilentEntry, hpnicfOnuSlaMaxBandWidthMaxVal=hpnicfOnuSlaMaxBandWidthMaxVal, hpnicfEponOnuRegistrationErrRecoverTrap=hpnicfEponOnuRegistrationErrRecoverTrap, hpnicfOltDbaUpdateResult=hpnicfOltDbaUpdateResult, hpnicfOnuFirmwareUpdateEntry=hpnicfOnuFirmwareUpdateEntry, hpnicfOnuIpAddressEntry=hpnicfOnuIpAddressEntry, hpnicfEponOnuTypeDescr=hpnicfEponOnuTypeDescr, hpnicfOnuP2PBandWidthPolicy=hpnicfOnuP2PBandWidthPolicy, hpnicfOltLaserOnTimeMaxVal=hpnicfOltLaserOnTimeMaxVal, hpnicfEponLoopBackEnableRecoverTrap=hpnicfEponLoopBackEnableRecoverTrap, hpnicfOnuRS485FlowControl=hpnicfOnuRS485FlowControl, hpnicfEponOnuAutoBindTrap=hpnicfEponOnuAutoBindTrap, hpnicfOnuBindMacAddrTable=hpnicfOnuBindMacAddrTable, hpnicfEponMonitorCycleEnable=hpnicfEponMonitorCycleEnable, hpnicfOnuEncryptMan=hpnicfOnuEncryptMan, hpnicfEponOuiRowStatus=hpnicfEponOuiRowStatus, hpnicfOnuPOTSPortNumber=hpnicfOnuPOTSPortNumber, hpnicfOnuDownStreamBandWidthPolicy=hpnicfOnuDownStreamBandWidthPolicy, hpnicfOnuFirmwareVersion=hpnicfOnuFirmwareVersion, hpnicfOnuRS485SessionErrInfoEntry=hpnicfOnuRS485SessionErrInfoEntry, hpnicfOnuRS485SessionErrInfo=hpnicfOnuRS485SessionErrInfo, hpnicfOnuQueueSize=hpnicfOnuQueueSize, hpnicfOnuSmlkGroupID=hpnicfOnuSmlkGroupID, hpnicfOnuRS485SessionEntry=hpnicfOnuRS485SessionEntry, hpnicfOnuMacAddrInfoEntry=hpnicfOnuMacAddrInfoEntry, hpnicfOnuLinkTestResultRetFrameNum=hpnicfOnuLinkTestResultRetFrameNum, hpnicfOnuSlaPriorityClass=hpnicfOnuSlaPriorityClass, hpnicfEponOuiIndex=hpnicfEponOuiIndex, hpnicfOltPortAlarmFerDirect=hpnicfOltPortAlarmFerDirect, hpnicfOnuPacketManEntry=hpnicfOnuPacketManEntry, hpnicfOnuChipSetRevision=hpnicfOnuChipSetRevision, hpnicfOnuInfoTable=hpnicfOnuInfoTable, hpnicfOnuRS485SessionRemotePort=hpnicfOnuRS485SessionRemotePort, hpnicfOnuFirstPonRegState=hpnicfOnuFirstPonRegState, hpnicfOnuProtocolEntry=hpnicfOnuProtocolEntry, hpnicfOnuLinkTestResultMeanDelay=hpnicfOnuLinkTestResultMeanDelay, hpnicfOnuIgmpSnoopingStatus=hpnicfOnuIgmpSnoopingStatus, hpnicfOnuPriorityQueueBandwidthMinVal=hpnicfOnuPriorityQueueBandwidthMinVal, hpnicfOltFirmMinorVersion=hpnicfOltFirmMinorVersion, hpnicfOltInfoTable=hpnicfOltInfoTable, hpnicfOltPortAlarmBerThreshold=hpnicfOltPortAlarmBerThreshold, hpnicfEponErrorLLIDFrameTrap=hpnicfEponErrorLLIDFrameTrap, hpnicfOltMaxRtt=hpnicfOltMaxRtt, hpnicfOltPortAlarmThresholdTable=hpnicfOltPortAlarmThresholdTable, hpnicfOnuCosToLocalPrecedenceEntry=hpnicfOnuCosToLocalPrecedenceEntry, hpnicfOnuIgmpSnoopingAggReportS=hpnicfOnuIgmpSnoopingAggReportS, hpnicfOnuPriorityTrust=hpnicfOnuPriorityTrust, hpnicfOnuEEPROMVersion=hpnicfOnuEEPROMVersion, hpnicfOnuPriorityQueueBurstsizeMaxVal=hpnicfOnuPriorityQueueBurstsizeMaxVal) mibBuilder.exportSymbols("HPN-ICF-EPON-MIB", hpnicfOltPortAlarmLlidMisFrames=hpnicfOltPortAlarmLlidMisFrames, hpnicfEponSoftwareErrTrap=hpnicfEponSoftwareErrTrap, hpnicfOnuUpstreamQueueNumber=hpnicfOnuUpstreamQueueNumber, hpnicfOnuFirmwareUpdateTable=hpnicfOnuFirmwareUpdateTable, hpnicfOnuChipSetDesignDate=hpnicfOnuChipSetDesignDate, hpnicfEponOnuSilenceRecoverTrap=hpnicfEponOnuSilenceRecoverTrap, hpnicfOltEnableDiscardPacket=hpnicfOltEnableDiscardPacket, hpnicfOnuCosToLocalPrecedenceTable=hpnicfOnuCosToLocalPrecedenceTable, hpnicfOnuMaxDownstreamQueuePerPort=hpnicfOnuMaxDownstreamQueuePerPort, hpnicfEponAutoUpdateSchedType=hpnicfEponAutoUpdateSchedType, hpnicfEponOnuTypeIndex=hpnicfEponOnuTypeIndex, hpnicfEponOuiIndexNext=hpnicfEponOuiIndexNext, hpnicfOnuSilentTime=hpnicfOnuSilentTime, hpnicfOnuSlaBandWidthStepVal=hpnicfOnuSlaBandWidthStepVal, hpnicfOnuLinkTestResultRetErrFrameNum=hpnicfOnuLinkTestResultRetErrFrameNum, hpnicfOnuMacAddrFlag=hpnicfOnuMacAddrFlag, hpnicfOnuRS485PropertiesEntry=hpnicfOnuRS485PropertiesEntry, hpnicfOnuIpAddressTable=hpnicfOnuIpAddressTable, hpnicfOltWorkMode=hpnicfOltWorkMode, hpnicfEponSoftwareErrorCode=hpnicfEponSoftwareErrorCode, hpnicfEponMsgTimeOut=hpnicfEponMsgTimeOut, hpnicfEponOuiTable=hpnicfEponOuiTable, hpnicfOltPortAlarmFerEnabled=hpnicfOltPortAlarmFerEnabled, hpnicfOnuRtt=hpnicfOnuRtt, hpnicfEponOltDFETrap=hpnicfEponOltDFETrap, hpnicfOnuIpAddressGateway=hpnicfOnuIpAddressGateway, hpnicfEponOperationResult=hpnicfEponOperationResult, hpnicfOnuLinkTestVlanTag=hpnicfOnuLinkTestVlanTag, hpnicfOnuMCtrlFastLeaveSupported=hpnicfOnuMCtrlFastLeaveSupported, hpnicfOnuServiceSupported=hpnicfOnuServiceSupported, hpnicfOnuDhcpallocate=hpnicfOnuDhcpallocate, hpnicfOnuPriorityQueueTable=hpnicfOnuPriorityQueueTable, hpnicfEponLoopbackPortIndex=hpnicfEponLoopbackPortIndex, hpnicfEponMulticastControlEntry=hpnicfEponMulticastControlEntry, hpnicfOnuBridgeMac=hpnicfOnuBridgeMac, hpnicfOnuIpAddressMask=hpnicfOnuIpAddressMask, hpnicfOnuPriorityQueueBurstsizeMinVal=hpnicfOnuPriorityQueueBurstsizeMinVal, hpnicfEponAutoUpdateEntry=hpnicfEponAutoUpdateEntry, hpnicfOnuPriorityQueueSizeMinVal=hpnicfOnuPriorityQueueSizeMinVal, hpnicfOnuRS485BaudRate=hpnicfOnuRS485BaudRate, hpnicfOnuDistance=hpnicfOnuDistance, hpnicfOnuInCRCErrPkts=hpnicfOnuInCRCErrPkts, hpnicfEponRemoteStableRecoverTrap=hpnicfEponRemoteStableRecoverTrap, hpnicfOnuCapabilityEntry=hpnicfOnuCapabilityEntry, hpnicfOnuSysManEntry=hpnicfOnuSysManEntry, hpnicfOltDbaManEntry=hpnicfOltDbaManEntry, hpnicfOnuPortBerStatus=hpnicfOnuPortBerStatus, hpnicfOnuSlaManTable=hpnicfOnuSlaManTable, hpnicfOnuMulticastFastLeaveEnable=hpnicfOnuMulticastFastLeaveEnable, hpnicfOltUsingOnuRowStatus=hpnicfOltUsingOnuRowStatus, hpnicfOnuSecondPonRegState=hpnicfOnuSecondPonRegState, hpnicfOnuSlaDelay=hpnicfOnuSlaDelay, hpnicfOnuLinkTestEntry=hpnicfOnuLinkTestEntry, hpnicfEponStpPortIndex=hpnicfEponStpPortIndex, hpnicfOnuSmlkEntry=hpnicfOnuSmlkEntry, hpnicfEponAutoUpdateRealTimeStatus=hpnicfEponAutoUpdateRealTimeStatus, hpnicfOnuMulticastControlMode=hpnicfOnuMulticastControlMode, hpnicfOltLaserOffTimeMinVal=hpnicfOltLaserOffTimeMinVal, hpnicfEponOnuStpPortTable=hpnicfEponOnuStpPortTable, hpnicfEponAutoUpdateTable=hpnicfEponAutoUpdateTable, hpnicfOnuPhysicalEntry=hpnicfOnuPhysicalEntry, hpnicfOnuDbaReportThreshold=hpnicfOnuDbaReportThreshold, hpnicfOnuRemoteFecStatus=hpnicfOnuRemoteFecStatus, hpnicfOltDbaVersion=hpnicfOltDbaVersion, hpnicfOnuDownStreamMaxBurstSize=hpnicfOnuDownStreamMaxBurstSize, hpnicfOnuPriorityQueueSizeMaxVal=hpnicfOnuPriorityQueueSizeMaxVal, hpnicfEponStatFER=hpnicfEponStatFER, hpnicfEponMsgLoseNumMaxVal=hpnicfEponMsgLoseNumMaxVal, hpnicfOnuLinkTestTable=hpnicfOnuLinkTestTable, hpnicfOnuE1PortsNumber=hpnicfOnuE1PortsNumber, hpnicfOltDbaManTable=hpnicfOltDbaManTable, hpnicfOltPortAlarmRegistrationEnabled=hpnicfOltPortAlarmRegistrationEnabled, hpnicfEponModeSwitch=hpnicfEponModeSwitch, hpnicfEponLocalStableTrap=hpnicfEponLocalStableTrap, hpnicfOltPortAlarmLocalStableEnabled=hpnicfOltPortAlarmLocalStableEnabled, hpnicfOltOpticalPowerRx=hpnicfOltOpticalPowerRx, hpnicfEponSysMan=hpnicfEponSysMan, hpnicfOnuUpdateByTypeOnuType=hpnicfOnuUpdateByTypeOnuType, hpnicfEponSysManEntry=hpnicfEponSysManEntry, hpnicfEponBatchOperationByOLTResult=hpnicfEponBatchOperationByOLTResult, hpnicfEponOnuUpdateFileName=hpnicfEponOnuUpdateFileName, hpnicfEponOnuLaserFailedTrap=hpnicfEponOnuLaserFailedTrap, hpnicfOnuIgmpSnoopingMaxRespT=hpnicfOnuIgmpSnoopingMaxRespT, hpnicfOnuRS485PropertiesTable=hpnicfOnuRS485PropertiesTable, hpnicfEponBatchOperationBySlotTable=hpnicfEponBatchOperationBySlotTable, hpnicfOnuChipSetInfoEntry=hpnicfOnuChipSetInfoEntry, hpnicfOnuLinkTestResultMaxDelay=hpnicfOnuLinkTestResultMaxDelay, hpnicfEponBatchOperationByOLT=hpnicfEponBatchOperationByOLT, hpnicfOnuDbaReportStatus=hpnicfOnuDbaReportStatus, hpnicfEponOnuSilenceTrap=hpnicfEponOnuSilenceTrap, hpnicfEponOltSwitchoverTrap=hpnicfEponOltSwitchoverTrap, hpnicfOnuSecondPonMac=hpnicfOnuSecondPonMac, hpnicfOnuVendorId=hpnicfOnuVendorId, hpnicfOltLaserOffTime=hpnicfOltLaserOffTime, hpnicfEponOnuStpPortEntry=hpnicfEponOnuStpPortEntry, hpnicfOltDbaUpdate=hpnicfOltDbaUpdate, hpnicfOnuOpticalPowerReceivedByOlt=hpnicfOnuOpticalPowerReceivedByOlt, hpnicfOnuDbaReportQueueId=hpnicfOnuDbaReportQueueId, hpnicfEponOnuScalarGroup=hpnicfEponOnuScalarGroup, hpnicfOnuCapabilityTable=hpnicfOnuCapabilityTable, hpnicfOltDbaDiscovryFrequencyMaxVal=hpnicfOltDbaDiscovryFrequencyMaxVal, hpnicfEponOamVendorSpecificTrap=hpnicfEponOamVendorSpecificTrap, hpnicfOnuRS485SessionTable=hpnicfOnuRS485SessionTable, hpnicfOltUsingOnuNum=hpnicfOltUsingOnuNum, hpnicfOnuProtocolTable=hpnicfOnuProtocolTable, hpnicfOltSelfTest=hpnicfOltSelfTest, hpnicfEponOuiValue=hpnicfEponOuiValue, hpnicfOnuIpAddress=hpnicfOnuIpAddress, hpnicfOnuRS485SessionRemoteIP=hpnicfOnuRS485SessionRemoteIP, hpnicfOnuUniUpDownTrapStatus=hpnicfOnuUniUpDownTrapStatus, hpnicfOnuOutDroppedFrames=hpnicfOnuOutDroppedFrames, hpnicfEponPortAlarmFerRecoverTrap=hpnicfEponPortAlarmFerRecoverTrap, hpnicfEponEncryptionNoReplyTimeOut=hpnicfEponEncryptionNoReplyTimeOut, hpnicfOltPortAlarmEncryptionKeyEnabled=hpnicfOltPortAlarmEncryptionKeyEnabled, hpnicfOnuDbaReportQueueSetNumber=hpnicfOnuDbaReportQueueSetNumber, hpnicfOltUsingOnuIfIndex=hpnicfOltUsingOnuIfIndex, hpnicfOnuMacAddrInfoTable=hpnicfOnuMacAddrInfoTable, hpnicfOnuMulticastFilterStatus=hpnicfOnuMulticastFilterStatus, hpnicfOnuDot1xPassword=hpnicfOnuDot1xPassword, hpnicfOnuPriorityQueueBandwidthMaxVal=hpnicfOnuPriorityQueueBandwidthMaxVal, hpnicfOnuQueueId=hpnicfOnuQueueId, hpnicfOnuSmlkFirstPonStatus=hpnicfOnuSmlkFirstPonStatus, hpnicfOnuUpdateFileName=hpnicfOnuUpdateFileName, hpnicfEponSoftwareErrRecoverTrap=hpnicfEponSoftwareErrRecoverTrap, hpnicfEponBatchOperationBySlotEntry=hpnicfEponBatchOperationBySlotEntry, hpnicfOnuSysManTable=hpnicfOnuSysManTable, hpnicfOltMultiCopyBrdCast=hpnicfOltMultiCopyBrdCast, hpnicfOnuFirmwareUpdateByTypeEntry=hpnicfOnuFirmwareUpdateByTypeEntry, hpnicfOltPortAlarmFerMinVal=hpnicfOltPortAlarmFerMinVal, hpnicfOnuUpdateByTypeNextIndex=hpnicfOnuUpdateByTypeNextIndex, hpnicfEponPortAlarmBerTrap=hpnicfEponPortAlarmBerTrap, hpnicfOnuDot1xTable=hpnicfOnuDot1xTable, hpnicfEponMulticastStatus=hpnicfEponMulticastStatus, hpnicfOnuLinkTestFrameNum=hpnicfOnuLinkTestFrameNum, hpnicfOltSysManEntry=hpnicfOltSysManEntry, hpnicfOnuRS485Parity=hpnicfOnuRS485Parity, hpnicfOnuQueuePolicyStatus=hpnicfOnuQueuePolicyStatus, hpnicfOltLaserOnTimeMinVal=hpnicfOltLaserOnTimeMinVal, hpnicfOnuReAuthorize=hpnicfOnuReAuthorize, hpnicfOnuLinkTestDelay=hpnicfOnuLinkTestDelay, hpnicfOnuIgmpSnoopingRouterAgingT=hpnicfOnuIgmpSnoopingRouterAgingT, hpnicfOnuLaserOffTime=hpnicfOnuLaserOffTime, hpnicfOltInfoEntry=hpnicfOltInfoEntry, hpnicfEponOuiIndexNextTable=hpnicfEponOuiIndexNextTable, hpnicfOnuLaserOnTime=hpnicfOnuLaserOnTime, hpnicfEponOuiIndexNextEntry=hpnicfEponOuiIndexNextEntry, hpnicfEponOamVendorSpecificRecoverTrap=hpnicfEponOamVendorSpecificRecoverTrap, hpnicfOnuLinkTestFrameNumMaxVal=hpnicfOnuLinkTestFrameNumMaxVal, hpnicfEponFileName=hpnicfEponFileName, hpnicfOnuIgspFastLeaveSupported=hpnicfOnuIgspFastLeaveSupported, hpnicfOltSysManTable=hpnicfOltSysManTable, hpnicfOnuPacketManTable=hpnicfOnuPacketManTable, hpnicfOnuRS485ResetStatistics=hpnicfOnuRS485ResetStatistics, hpnicfOnuLinkTestVlanTagID=hpnicfOnuLinkTestVlanTagID, hpnicfOnuRS485SessionNextIndex=hpnicfOnuRS485SessionNextIndex, hpnicfOltLaserOffTimeMaxVal=hpnicfOltLaserOffTimeMaxVal, hpnicfOnuUpdateResult=hpnicfOnuUpdateResult, hpnicfOltPortAlarmDFEEnabled=hpnicfOltPortAlarmDFEEnabled, hpnicfOnuStpStatus=hpnicfOnuStpStatus, hpnicfOnuCosToLocalPrecedenceCosIndex=hpnicfOnuCosToLocalPrecedenceCosIndex, PYSNMP_MODULE_ID=hpnicfEponMibObjects, hpnicfOnuUpdateByTypeFileName=hpnicfOnuUpdateByTypeFileName, hpnicfEponBatchOperationBySlot=hpnicfEponBatchOperationBySlot, hpnicfOnuPortIsolateEnable=hpnicfOnuPortIsolateEnable, hpnicfEponStatTable=hpnicfEponStatTable, hpnicfOnuReset=hpnicfOnuReset, hpnicfEponErrorInfo=hpnicfEponErrorInfo, hpnicfOltFirmMajorVersion=hpnicfOltFirmMajorVersion, hpnicfOnuRS485SessionIndex=hpnicfOnuRS485SessionIndex, hpnicfOnuDot1xEntry=hpnicfOnuDot1xEntry, hpnicfDot3OamNonThresholdRecoverEvent=hpnicfDot3OamNonThresholdRecoverEvent)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (hpnicf_lsw_slot_index, hpnicf_lsw_frame_index) = mibBuilder.importSymbols('HPN-ICF-LSW-DEV-ADM-MIB', 'hpnicfLswSlotIndex', 'hpnicfLswFrameIndex') (hpnicf_epon,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfEpon') (if_descr, if_index) = mibBuilder.importSymbols('IF-MIB', 'ifDescr', 'ifIndex') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, module_identity, iso, object_identity, notification_type, counter32, time_ticks, counter64, gauge32, unsigned32, bits, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'NotificationType', 'Counter32', 'TimeTicks', 'Counter64', 'Gauge32', 'Unsigned32', 'Bits', 'MibIdentifier') (date_and_time, display_string, mac_address, textual_convention, row_status, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'DisplayString', 'MacAddress', 'TextualConvention', 'RowStatus', 'TruthValue') hpnicf_epon_mib_objects = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1)) if mibBuilder.loadTexts: hpnicfEponMibObjects.setLastUpdated('200705221008Z') if mibBuilder.loadTexts: hpnicfEponMibObjects.setOrganization('') hpnicf_epon_sys_man = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1)) hpnicf_epon_auto_authorize = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoAuthorize.setStatus('current') hpnicf_epon_monitor_cycle = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponMonitorCycle.setStatus('current') hpnicf_epon_msg_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 3), integer32().clone(600)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponMsgTimeOut.setStatus('current') hpnicf_epon_msg_lose_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 4), integer32().clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponMsgLoseNum.setStatus('current') hpnicf_epon_sys_has_epon_board = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponSysHasEPONBoard.setStatus('current') hpnicf_epon_monitor_cycle_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponMonitorCycleEnable.setStatus('current') hpnicf_epon_olt_software_err_alm_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 7), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponOltSoftwareErrAlmEnable.setStatus('current') hpnicf_epon_port_loop_back_alm_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 8), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponPortLoopBackAlmEnable.setStatus('current') hpnicf_epon_monitor_cycle_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMonitorCycleMinVal.setStatus('current') hpnicf_epon_monitor_cycle_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMonitorCycleMaxVal.setStatus('current') hpnicf_epon_msg_time_out_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMsgTimeOutMinVal.setStatus('current') hpnicf_epon_msg_time_out_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMsgTimeOutMaxVal.setStatus('current') hpnicf_epon_msg_lose_num_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMsgLoseNumMinVal.setStatus('current') hpnicf_epon_msg_lose_num_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponMsgLoseNumMaxVal.setStatus('current') hpnicf_epon_sys_scalar_group = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 15)) hpnicf_epon_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16)) if mibBuilder.loadTexts: hpnicfEponSysManTable.setStatus('current') hpnicf_epon_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponSlotIndex')) if mibBuilder.loadTexts: hpnicfEponSysManEntry.setStatus('current') hpnicf_epon_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfEponSlotIndex.setStatus('current') hpnicf_epon_mode_switch = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cmode', 1), ('hmode', 2))).clone('cmode')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponModeSwitch.setStatus('current') hpnicf_epon_automatic_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutomaticMode.setStatus('current') hpnicf_epon_oam_discovery_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 4), integer32().clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponOamDiscoveryTimeout.setStatus('current') hpnicf_epon_encryption_no_reply_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 5), integer32().clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponEncryptionNoReplyTimeOut.setStatus('current') hpnicf_epon_encryption_update_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 6), integer32().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponEncryptionUpdateTime.setStatus('current') hpnicf_epon_auto_bind_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 16, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoBindStatus.setStatus('current') hpnicf_epon_auto_update_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17)) if mibBuilder.loadTexts: hpnicfEponAutoUpdateTable.setStatus('current') hpnicf_epon_auto_update_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponSlotIndex')) if mibBuilder.loadTexts: hpnicfEponAutoUpdateEntry.setStatus('current') hpnicf_epon_auto_update_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoUpdateFileName.setStatus('current') hpnicf_epon_auto_update_sched_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedStatus.setStatus('current') hpnicf_epon_auto_update_sched_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedTime.setStatus('current') hpnicf_epon_auto_update_sched_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('daily', 1), ('weekly', 2), ('comingdate', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoUpdateSchedType.setStatus('current') hpnicf_epon_auto_update_real_time_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 17, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponAutoUpdateRealTimeStatus.setStatus('current') hpnicf_epon_oui_index_next_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18)) if mibBuilder.loadTexts: hpnicfEponOuiIndexNextTable.setStatus('current') hpnicf_epon_oui_index_next_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponSlotIndex')) if mibBuilder.loadTexts: hpnicfEponOuiIndexNextEntry.setStatus('current') hpnicf_epon_oui_index_next = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 18, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponOuiIndexNext.setStatus('current') hpnicf_epon_oui_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19)) if mibBuilder.loadTexts: hpnicfEponOuiTable.setStatus('current') hpnicf_epon_oui_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponSlotIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfEponOuiIndex')) if mibBuilder.loadTexts: hpnicfEponOuiEntry.setStatus('current') hpnicf_epon_oui_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfEponOuiIndex.setStatus('current') hpnicf_epon_oui_value = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 512))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfEponOuiValue.setStatus('current') hpnicf_epon_oam_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfEponOamVersion.setStatus('current') hpnicf_epon_oui_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 19, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfEponOuiRowStatus.setStatus('current') hpnicf_epon_multicast_control_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20)) if mibBuilder.loadTexts: hpnicfEponMulticastControlTable.setStatus('current') hpnicf_epon_multicast_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponMulticastVlanId')) if mibBuilder.loadTexts: hpnicfEponMulticastControlEntry.setStatus('current') hpnicf_epon_multicast_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfEponMulticastVlanId.setStatus('current') hpnicf_epon_multicast_address_list = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfEponMulticastAddressList.setStatus('current') hpnicf_epon_multicast_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 1, 20, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfEponMulticastStatus.setStatus('current') hpnicf_epon_file_name = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2)) hpnicf_epon_dba_update_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponDbaUpdateFileName.setStatus('current') hpnicf_epon_onu_update_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 2, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponOnuUpdateFileName.setStatus('current') hpnicf_epon_olt_man = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3)) hpnicf_olt_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1)) if mibBuilder.loadTexts: hpnicfOltSysManTable.setStatus('current') hpnicf_olt_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOltSysManEntry.setStatus('current') hpnicf_olt_laser_on_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 1), integer32().clone(96)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltLaserOnTime.setStatus('current') hpnicf_olt_laser_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 2), integer32().clone(96)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltLaserOffTime.setStatus('current') hpnicf_olt_multi_copy_brd_cast = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltMultiCopyBrdCast.setStatus('current') hpnicf_olt_enable_discard_packet = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltEnableDiscardPacket.setStatus('current') hpnicf_olt_self_test = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('selftest', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltSelfTest.setStatus('current') hpnicf_olt_self_test_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('fail', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltSelfTestResult.setStatus('current') hpnicf_olt_max_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltMaxRtt.setStatus('current') hpnicf_olt_info_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2)) if mibBuilder.loadTexts: hpnicfOltInfoTable.setStatus('current') hpnicf_olt_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOltInfoEntry.setStatus('current') hpnicf_olt_firm_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltFirmMajorVersion.setStatus('current') hpnicf_olt_firm_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltFirmMinorVersion.setStatus('current') hpnicf_olt_hard_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltHardMajorVersion.setStatus('current') hpnicf_olt_hard_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltHardMinorVersion.setStatus('current') hpnicf_olt_agc_lock_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltAgcLockTime.setStatus('current') hpnicf_olt_agc_cdr_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltAgcCdrTime.setStatus('current') hpnicf_olt_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 7), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltMacAddress.setStatus('current') hpnicf_olt_work_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('open', 2), ('reset', 3), ('closed', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltWorkMode.setStatus('current') hpnicf_olt_optical_power_tx = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltOpticalPowerTx.setStatus('current') hpnicf_olt_optical_power_rx = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltOpticalPowerRx.setStatus('current') hpnicf_olt_dba_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3)) if mibBuilder.loadTexts: hpnicfOltDbaManTable.setStatus('current') hpnicf_olt_dba_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOltDbaManEntry.setStatus('current') hpnicf_olt_dba_enabled_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('internal', 1), ('external', 2))).clone('internal')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltDbaEnabledType.setStatus('current') hpnicf_olt_dba_discovery_length = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 2), integer32().clone(41500)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLength.setStatus('current') hpnicf_olt_dba_discovry_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 3), integer32().clone(50)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequency.setStatus('current') hpnicf_olt_dba_cycle_length = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 4), integer32().clone(65535)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltDbaCycleLength.setStatus('current') hpnicf_olt_dba_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 5), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaVersion.setStatus('current') hpnicf_olt_dba_update = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('update', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltDbaUpdate.setStatus('current') hpnicf_olt_dba_update_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ok', 2), ('fail', 3), ('fileNotExist', 4), ('notSetFilename', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaUpdateResult.setStatus('current') hpnicf_olt_port_alarm_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4)) if mibBuilder.loadTexts: hpnicfOltPortAlarmThresholdTable.setStatus('current') hpnicf_olt_port_alarm_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOltPortAlarmThresholdEntry.setStatus('current') hpnicf_olt_port_alarm_ber_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmBerEnabled.setStatus('current') hpnicf_olt_port_alarm_ber_direct = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('berUplink', 1), ('berDownlink', 2), ('berAll', 3))).clone('berAll')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmBerDirect.setStatus('current') hpnicf_olt_port_alarm_ber_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 3), integer32().clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmBerThreshold.setStatus('current') hpnicf_olt_port_alarm_fer_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmFerEnabled.setStatus('current') hpnicf_olt_port_alarm_fer_direct = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ferUplink', 1), ('ferDownlink', 2), ('ferAll', 3))).clone('ferAll')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmFerDirect.setStatus('current') hpnicf_olt_port_alarm_fer_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 6), integer32().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmFerThreshold.setStatus('current') hpnicf_olt_port_alarm_llid_mismatch_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMismatchEnabled.setStatus('current') hpnicf_olt_port_alarm_llid_mismatch_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 8), integer32().clone(5000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMismatchThreshold.setStatus('current') hpnicf_olt_port_alarm_remote_stable_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 9), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmRemoteStableEnabled.setStatus('current') hpnicf_olt_port_alarm_local_stable_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 10), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmLocalStableEnabled.setStatus('current') hpnicf_olt_port_alarm_registration_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 11), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmRegistrationEnabled.setStatus('current') hpnicf_olt_port_alarm_oam_disconnection_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 12), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmOamDisconnectionEnabled.setStatus('current') hpnicf_olt_port_alarm_encryption_key_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 13), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmEncryptionKeyEnabled.setStatus('current') hpnicf_olt_port_alarm_vendor_specific_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 14), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmVendorSpecificEnabled.setStatus('current') hpnicf_olt_port_alarm_reg_excess_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 15), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmRegExcessEnabled.setStatus('current') hpnicf_olt_port_alarm_dfe_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 4, 1, 16), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOltPortAlarmDFEEnabled.setStatus('current') hpnicf_olt_laser_on_time_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltLaserOnTimeMinVal.setStatus('current') hpnicf_olt_laser_on_time_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltLaserOnTimeMaxVal.setStatus('current') hpnicf_olt_laser_off_time_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltLaserOffTimeMinVal.setStatus('current') hpnicf_olt_laser_off_time_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltLaserOffTimeMaxVal.setStatus('current') hpnicf_olt_dba_discovery_length_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLengthMinVal.setStatus('current') hpnicf_olt_dba_discovery_length_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaDiscoveryLengthMaxVal.setStatus('current') hpnicf_olt_dba_discovry_frequency_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequencyMinVal.setStatus('current') hpnicf_olt_dba_discovry_frequency_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaDiscovryFrequencyMaxVal.setStatus('current') hpnicf_olt_dba_cycle_length_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaCycleLengthMinVal.setStatus('current') hpnicf_olt_dba_cycle_length_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltDbaCycleLengthMaxVal.setStatus('current') hpnicf_olt_port_alarm_llid_mis_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisMinVal.setStatus('current') hpnicf_olt_port_alarm_llid_mis_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisMaxVal.setStatus('current') hpnicf_olt_port_alarm_ber_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmBerMinVal.setStatus('current') hpnicf_olt_port_alarm_ber_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmBerMaxVal.setStatus('current') hpnicf_olt_port_alarm_fer_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmFerMinVal.setStatus('current') hpnicf_olt_port_alarm_fer_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltPortAlarmFerMaxVal.setStatus('current') hpnicf_onu_silent_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21)) if mibBuilder.loadTexts: hpnicfOnuSilentTable.setStatus('current') hpnicf_onu_silent_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuSilentMacAddr')) if mibBuilder.loadTexts: hpnicfOnuSilentEntry.setStatus('current') hpnicf_onu_silent_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1, 1), mac_address()) if mibBuilder.loadTexts: hpnicfOnuSilentMacAddr.setStatus('current') hpnicf_onu_silent_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 21, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSilentTime.setStatus('current') hpnicf_olt_using_onu_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22)) if mibBuilder.loadTexts: hpnicfOltUsingOnuTable.setStatus('current') hpnicf_olt_using_onu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOltUsingOnuNum')) if mibBuilder.loadTexts: hpnicfOltUsingOnuEntry.setStatus('current') hpnicf_olt_using_onu_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hpnicfOltUsingOnuNum.setStatus('current') hpnicf_olt_using_onu_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOltUsingOnuIfIndex.setStatus('current') hpnicf_olt_using_onu_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 3, 22, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOltUsingOnuRowStatus.setStatus('current') hpnicf_epon_onu_man = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5)) hpnicf_onu_sys_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1)) if mibBuilder.loadTexts: hpnicfOnuSysManTable.setStatus('current') hpnicf_onu_sys_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuSysManEntry.setStatus('current') hpnicf_onu_encrypt_man = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('downlink', 2), ('updownlink', 3))).clone('downlink')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuEncryptMan.setStatus('current') hpnicf_onu_re_authorize = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reAuthorize', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuReAuthorize.setStatus('current') hpnicf_onu_multicast_filter_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuMulticastFilterStatus.setStatus('current') hpnicf_onu_dba_report_queue_set_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 4), integer32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDbaReportQueueSetNumber.setStatus('current') hpnicf_onu_remote_fec_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRemoteFecStatus.setStatus('current') hpnicf_onu_port_ber_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuPortBerStatus.setStatus('current') hpnicf_onu_reset = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuReset.setStatus('current') hpnicf_onu_multicast_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('igmpsnooping', 1), ('multicastcontrol', 2))).clone('igmpsnooping')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuMulticastControlMode.setStatus('current') hpnicf_onu_access_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuAccessVlan.setStatus('current') hpnicf_onu_encrypt_key = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuEncryptKey.setStatus('current') hpnicf_onu_uni_up_down_trap_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 11), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuUniUpDownTrapStatus.setStatus('current') hpnicf_onu_fec_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuFecStatus.setStatus('current') hpnicf_onu_mcast_ctrl_host_aging_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuMcastCtrlHostAgingTime.setStatus('current') hpnicf_onu_multicast_fast_leave_enable = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 14), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuMulticastFastLeaveEnable.setStatus('current') hpnicf_onu_port_isolate_enable = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 1, 1, 15), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuPortIsolateEnable.setStatus('current') hpnicf_onu_link_test_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2)) if mibBuilder.loadTexts: hpnicfOnuLinkTestTable.setStatus('current') hpnicf_onu_link_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuLinkTestEntry.setStatus('current') hpnicf_onu_link_test_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 1), integer32().clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNum.setStatus('current') hpnicf_onu_link_test_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(60, 1514)).clone(1000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameSize.setStatus('current') hpnicf_onu_link_test_delay = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestDelay.setStatus('current') hpnicf_onu_link_test_vlan_tag = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanTag.setStatus('current') hpnicf_onu_link_test_vlan_priority = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanPriority.setStatus('current') hpnicf_onu_link_test_vlan_tag_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuLinkTestVlanTagID.setStatus('current') hpnicf_onu_link_test_result_sent_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultSentFrameNum.setStatus('current') hpnicf_onu_link_test_result_ret_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultRetFrameNum.setStatus('current') hpnicf_onu_link_test_result_ret_err_frame_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultRetErrFrameNum.setStatus('current') hpnicf_onu_link_test_result_min_delay = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMinDelay.setStatus('current') hpnicf_onu_link_test_result_mean_delay = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMeanDelay.setStatus('current') hpnicf_onu_link_test_result_max_delay = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 2, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestResultMaxDelay.setStatus('current') hpnicf_onu_band_width_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3)) if mibBuilder.loadTexts: hpnicfOnuBandWidthTable.setStatus('current') hpnicf_onu_band_width_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuBandWidthEntry.setStatus('current') hpnicf_onu_down_stream_band_width_policy = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDownStreamBandWidthPolicy.setStatus('current') hpnicf_onu_down_stream_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000)).clone(1000000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDownStreamMaxBandWidth.setStatus('current') hpnicf_onu_down_stream_max_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 8388480)).clone(8388480)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDownStreamMaxBurstSize.setStatus('current') hpnicf_onu_down_stream_high_priority_first = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDownStreamHighPriorityFirst.setStatus('current') hpnicf_onu_down_stream_short_frame_first = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDownStreamShortFrameFirst.setStatus('current') hpnicf_onu_p2_p_band_width_policy = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuP2PBandWidthPolicy.setStatus('current') hpnicf_onu_p2_p_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000)).clone(1000000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuP2PMaxBandWidth.setStatus('current') hpnicf_onu_p2_p_max_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 8388480)).clone(8388480)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuP2PMaxBurstSize.setStatus('current') hpnicf_onu_p2_p_high_priority_first = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuP2PHighPriorityFirst.setStatus('current') hpnicf_onu_p2_p_short_frame_first = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 3, 1, 10), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuP2PShortFrameFirst.setStatus('current') hpnicf_onu_sla_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4)) if mibBuilder.loadTexts: hpnicfOnuSlaManTable.setStatus('current') hpnicf_onu_sla_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuSlaManEntry.setStatus('current') hpnicf_onu_sla_max_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidth.setStatus('current') hpnicf_onu_sla_min_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidth.setStatus('current') hpnicf_onu_sla_band_width_step_val = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSlaBandWidthStepVal.setStatus('current') hpnicf_onu_sla_delay = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('low', 1), ('high', 2))).clone('low')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaDelay.setStatus('current') hpnicf_onu_sla_fixed_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaFixedBandWidth.setStatus('current') hpnicf_onu_sla_priority_class = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaPriorityClass.setStatus('current') hpnicf_onu_sla_fixed_packet_size = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 4, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuSlaFixedPacketSize.setStatus('current') hpnicf_onu_info_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5)) if mibBuilder.loadTexts: hpnicfOnuInfoTable.setStatus('current') hpnicf_onu_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuInfoEntry.setStatus('current') hpnicf_onu_hard_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuHardMajorVersion.setStatus('current') hpnicf_onu_hard_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuHardMinorVersion.setStatus('current') hpnicf_onu_software_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 3), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSoftwareVersion.setStatus('current') hpnicf_onu_uni_mac_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('mii', 2), ('gmii', 3), ('tbi', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuUniMacType.setStatus('current') hpnicf_onu_laser_on_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLaserOnTime.setStatus('current') hpnicf_onu_laser_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLaserOffTime.setStatus('current') hpnicf_onu_grant_fifo_dep = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(1, 255), value_range_constraint(2147483647, 2147483647)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuGrantFifoDep.setStatus('current') hpnicf_onu_work_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('on', 2), ('pending', 3), ('off', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuWorkMode.setStatus('current') hpnicf_onu_pcb_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 9), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPCBVersion.setStatus('current') hpnicf_onu_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRtt.setStatus('current') hpnicf_onu_eeprom_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 11), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuEEPROMVersion.setStatus('current') hpnicf_onu_reg_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 12), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRegType.setStatus('current') hpnicf_onu_host_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 13), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuHostType.setStatus('current') hpnicf_onu_distance = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuDistance.setStatus('current') hpnicf_onu_llid = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLlid.setStatus('current') hpnicf_onu_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 16), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuVendorId.setStatus('current') hpnicf_onu_firmware_version = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 17), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuFirmwareVersion.setStatus('current') hpnicf_onu_optical_power_received_by_olt = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 5, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuOpticalPowerReceivedByOlt.setStatus('current') hpnicf_onu_mac_addr_info_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6)) if mibBuilder.loadTexts: hpnicfOnuMacAddrInfoTable.setStatus('current') hpnicf_onu_mac_addr_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuMacIndex')) if mibBuilder.loadTexts: hpnicfOnuMacAddrInfoEntry.setStatus('current') hpnicf_onu_mac_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfOnuMacIndex.setStatus('current') hpnicf_onu_mac_addr_flag = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('bound', 1), ('registered', 2), ('run', 3), ('regIncorrect', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuMacAddrFlag.setStatus('current') hpnicf_onu_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 6, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuMacAddress.setStatus('current') hpnicf_onu_bind_mac_addr_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7)) if mibBuilder.loadTexts: hpnicfOnuBindMacAddrTable.setStatus('current') hpnicf_onu_bind_mac_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuBindMacAddrEntry.setStatus('current') hpnicf_onu_bind_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1, 1), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuBindMacAddress.setStatus('current') hpnicf_onu_bind_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 7, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuBindType.setStatus('current') hpnicf_onu_firmware_update_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8)) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateTable.setStatus('current') hpnicf_onu_firmware_update_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateEntry.setStatus('current') hpnicf_onu_update = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('update', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuUpdate.setStatus('current') hpnicf_onu_update_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('updating', 1), ('ok', 2), ('fail', 3), ('fileNotExist', 4), ('notSetFilename', 5), ('fileNotMatchONU', 6), ('timeout', 7), ('otherError', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuUpdateResult.setStatus('current') hpnicf_onu_update_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 8, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuUpdateFileName.setStatus('current') hpnicf_onu_link_test_frame_num_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNumMinVal.setStatus('current') hpnicf_onu_link_test_frame_num_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuLinkTestFrameNumMaxVal.setStatus('current') hpnicf_onu_sla_max_band_width_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidthMinVal.setStatus('current') hpnicf_onu_sla_max_band_width_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSlaMaxBandWidthMaxVal.setStatus('current') hpnicf_onu_sla_min_band_width_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidthMinVal.setStatus('current') hpnicf_onu_sla_min_band_width_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSlaMinBandWidthMaxVal.setStatus('current') hpnicf_epon_onu_type_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15)) if mibBuilder.loadTexts: hpnicfEponOnuTypeManTable.setStatus('current') hpnicf_epon_onu_type_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponOnuTypeIndex')) if mibBuilder.loadTexts: hpnicfEponOnuTypeManEntry.setStatus('current') hpnicf_epon_onu_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfEponOnuTypeIndex.setStatus('current') hpnicf_epon_onu_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 15, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponOnuTypeDescr.setStatus('current') hpnicf_onu_packet_man_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16)) if mibBuilder.loadTexts: hpnicfOnuPacketManTable.setStatus('current') hpnicf_onu_packet_man_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuPacketManEntry.setStatus('current') hpnicf_onu_priority_trust = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('dscp', 1), ('ipprecedence', 2), ('cos', 3))).clone('cos')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuPriorityTrust.setStatus('current') hpnicf_onu_queue_scheduler = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('spq', 1), ('wfq', 2))).clone('spq')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuQueueScheduler.setStatus('current') hpnicf_onu_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17)) if mibBuilder.loadTexts: hpnicfOnuProtocolTable.setStatus('current') hpnicf_onu_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuProtocolEntry.setStatus('current') hpnicf_onu_stp_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 1), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuStpStatus.setStatus('current') hpnicf_onu_igmp_snooping_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 2), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingStatus.setStatus('current') hpnicf_onu_dhcpsnooping_option82 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDhcpsnoopingOption82.setStatus('current') hpnicf_onu_dhcpsnooping = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDhcpsnooping.setStatus('current') hpnicf_onu_pppoe = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuPppoe.setStatus('current') hpnicf_onu_igmp_snooping_host_aging_t = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingHostAgingT.setStatus('current') hpnicf_onu_igmp_snooping_max_resp_t = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingMaxRespT.setStatus('current') hpnicf_onu_igmp_snooping_router_aging_t = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingRouterAgingT.setStatus('current') hpnicf_onu_igmp_snooping_agg_report_s = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingAggReportS.setStatus('current') hpnicf_onu_igmp_snooping_agg_leave_s = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 17, 1, 10), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIgmpSnoopingAggLeaveS.setStatus('current') hpnicf_onu_dot1x_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18)) if mibBuilder.loadTexts: hpnicfOnuDot1xTable.setStatus('current') hpnicf_onu_dot1x_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuDot1xEntry.setStatus('current') hpnicf_onu_dot1x_account = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1, 1), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDot1xAccount.setStatus('current') hpnicf_onu_dot1x_password = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 18, 1, 2), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDot1xPassword.setStatus('current') hpnicf_epon_batch_operation_man = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6)) hpnicf_onu_priority_queue_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19)) if mibBuilder.loadTexts: hpnicfOnuPriorityQueueTable.setStatus('current') hpnicf_onu_priority_queue_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuQueueDirection'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuQueueId')) if mibBuilder.loadTexts: hpnicfOnuPriorityQueueEntry.setStatus('current') hpnicf_onu_queue_direction = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inbound', 1), ('outbound', 2)))) if mibBuilder.loadTexts: hpnicfOnuQueueDirection.setStatus('current') hpnicf_onu_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: hpnicfOnuQueueId.setStatus('current') hpnicf_onu_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 19, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuQueueSize.setStatus('current') hpnicf_onu_count_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20)) if mibBuilder.loadTexts: hpnicfOnuCountTable.setStatus('current') hpnicf_onu_count_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuCountEntry.setStatus('current') hpnicf_onu_in_crc_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuInCRCErrPkts.setStatus('current') hpnicf_onu_out_dropped_frames = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 20, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuOutDroppedFrames.setStatus('current') hpnicf_epon_onu_scalar_group = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21)) hpnicf_onu_priority_queue_size_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueSizeMinVal.setStatus('current') hpnicf_onu_priority_queue_size_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueSizeMaxVal.setStatus('current') hpnicf_onu_priority_queue_bandwidth_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBandwidthMinVal.setStatus('current') hpnicf_onu_priority_queue_bandwidth_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBandwidthMaxVal.setStatus('current') hpnicf_onu_priority_queue_burstsize_min_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBurstsizeMinVal.setStatus('current') hpnicf_onu_priority_queue_burstsize_max_val = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPriorityQueueBurstsizeMaxVal.setStatus('current') hpnicf_onu_update_by_type_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 21, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeNextIndex.setStatus('current') hpnicf_onu_queue_bandwidth_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22)) if mibBuilder.loadTexts: hpnicfOnuQueueBandwidthTable.setStatus('current') hpnicf_onu_queue_bandwidth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuQueueDirection'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuQueueId')) if mibBuilder.loadTexts: hpnicfOnuQueueBandwidthEntry.setStatus('current') hpnicf_onu_queue_max_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuQueueMaxBandwidth.setStatus('current') hpnicf_onu_queue_max_burstsize = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuQueueMaxBurstsize.setStatus('current') hpnicf_onu_queue_policy_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 22, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuQueuePolicyStatus.setStatus('current') hpnicf_onu_ip_address_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23)) if mibBuilder.loadTexts: hpnicfOnuIpAddressTable.setStatus('current') hpnicf_onu_ip_address_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuIpAddressEntry.setStatus('current') hpnicf_onu_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIpAddress.setStatus('current') hpnicf_onu_ip_address_mask = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIpAddressMask.setStatus('current') hpnicf_onu_ip_address_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuIpAddressGateway.setStatus('current') hpnicf_onu_dhcpallocate = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDhcpallocate.setStatus('current') hpnicf_onu_manage_vid = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuManageVID.setStatus('current') hpnicf_onu_manage_vlan_intf_s = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 23, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuManageVlanIntfS.setStatus('current') hpnicf_onu_chip_set_info_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24)) if mibBuilder.loadTexts: hpnicfOnuChipSetInfoTable.setStatus('current') hpnicf_onu_chip_set_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuChipSetInfoEntry.setStatus('current') hpnicf_onu_chip_set_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuChipSetVendorId.setStatus('current') hpnicf_onu_chip_set_model = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuChipSetModel.setStatus('current') hpnicf_onu_chip_set_revision = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuChipSetRevision.setStatus('current') hpnicf_onu_chip_set_design_date = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 24, 1, 4), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuChipSetDesignDate.setStatus('current') hpnicf_onu_capability_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25)) if mibBuilder.loadTexts: hpnicfOnuCapabilityTable.setStatus('current') hpnicf_onu_capability_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuCapabilityEntry.setStatus('current') hpnicf_onu_service_supported = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 1), bits().clone(namedValues=named_values(('geinterfacesupport', 0), ('feinterfacesupport', 1), ('voipservicesupport', 2), ('tdmservicesupport', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuServiceSupported.setStatus('current') hpnicf_onu_ge_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuGEPortNumber.setStatus('current') hpnicf_onu_fe_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuFEPortNumber.setStatus('current') hpnicf_onu_pots_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuPOTSPortNumber.setStatus('current') hpnicf_onu_e1_ports_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuE1PortsNumber.setStatus('current') hpnicf_onu_upstream_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuUpstreamQueueNumber.setStatus('current') hpnicf_onu_max_upstream_queue_per_port = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuMaxUpstreamQueuePerPort.setStatus('current') hpnicf_onu_downstream_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuDownstreamQueueNumber.setStatus('current') hpnicf_onu_max_downstream_queue_per_port = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuMaxDownstreamQueuePerPort.setStatus('current') hpnicf_onu_battery_backup = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuBatteryBackup.setStatus('current') hpnicf_onu_igsp_fast_leave_supported = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 11), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuIgspFastLeaveSupported.setStatus('current') hpnicf_onu_m_ctrl_fast_leave_supported = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 25, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuMCtrlFastLeaveSupported.setStatus('current') hpnicf_onu_dba_report_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26)) if mibBuilder.loadTexts: hpnicfOnuDbaReportTable.setStatus('current') hpnicf_onu_dba_report_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuDbaReportQueueId')) if mibBuilder.loadTexts: hpnicfOnuDbaReportEntry.setStatus('current') hpnicf_onu_dba_report_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfOnuDbaReportQueueId.setStatus('current') hpnicf_onu_dba_report_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDbaReportThreshold.setStatus('current') hpnicf_onu_dba_report_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 26, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuDbaReportStatus.setStatus('current') hpnicf_onu_cos_to_local_precedence_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27)) if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceTable.setStatus('current') hpnicf_onu_cos_to_local_precedence_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuCosToLocalPrecedenceCosIndex')) if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceEntry.setStatus('current') hpnicf_onu_cos_to_local_precedence_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceCosIndex.setStatus('current') hpnicf_onu_cos_to_local_precedence_value = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 27, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuCosToLocalPrecedenceValue.setStatus('current') hpnicf_epon_onu_stp_port_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28)) if mibBuilder.loadTexts: hpnicfEponOnuStpPortTable.setStatus('current') hpnicf_epon_onu_stp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfEponStpPortIndex')) if mibBuilder.loadTexts: hpnicfEponOnuStpPortEntry.setStatus('current') hpnicf_epon_stp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 144))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponStpPortIndex.setStatus('current') hpnicf_epon_stp_port_descr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponStpPortDescr.setStatus('current') hpnicf_epon_stp_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 28, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('discarding', 2), ('learning', 3), ('forwarding', 4)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponStpPortState.setStatus('current') hpnicf_onu_physical_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29)) if mibBuilder.loadTexts: hpnicfOnuPhysicalTable.setStatus('current') hpnicf_onu_physical_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfOnuPhysicalEntry.setStatus('current') hpnicf_onu_bridge_mac = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuBridgeMac.setStatus('current') hpnicf_onu_first_pon_mac = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuFirstPonMac.setStatus('current') hpnicf_onu_first_pon_reg_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notExist', 1), ('absent', 2), ('offline', 3), ('silent', 4), ('down', 5), ('up', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuFirstPonRegState.setStatus('current') hpnicf_onu_second_pon_mac = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSecondPonMac.setStatus('current') hpnicf_onu_second_pon_reg_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 29, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notExist', 1), ('absent', 2), ('offline', 3), ('silent', 4), ('down', 5), ('up', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSecondPonRegState.setStatus('current') hpnicf_onu_smlk_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30)) if mibBuilder.loadTexts: hpnicfOnuSmlkTable.setStatus('current') hpnicf_onu_smlk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuSmlkGroupID')) if mibBuilder.loadTexts: hpnicfOnuSmlkEntry.setStatus('current') hpnicf_onu_smlk_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSmlkGroupID.setStatus('current') hpnicf_onu_smlk_first_pon_role = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('null', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSmlkFirstPonRole.setStatus('current') hpnicf_onu_smlk_first_pon_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('active', 1), ('standby', 2), ('down', 3), ('null', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSmlkFirstPonStatus.setStatus('current') hpnicf_onu_smlk_second_pon_role = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('slave', 2), ('null', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSmlkSecondPonRole.setStatus('current') hpnicf_onu_smlk_second_pon_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 30, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('active', 1), ('standby', 2), ('down', 3), ('null', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuSmlkSecondPonStatus.setStatus('current') hpnicf_onu_rs485_properties_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31)) if mibBuilder.loadTexts: hpnicfOnuRS485PropertiesTable.setStatus('current') hpnicf_onu_rs485_properties_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SerialIndex')) if mibBuilder.loadTexts: hpnicfOnuRS485PropertiesEntry.setStatus('current') hpnicf_onu_rs485_serial_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hpnicfOnuRS485SerialIndex.setStatus('current') hpnicf_onu_rs485_baud_rate = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('baudRate300', 1), ('baudRate600', 2), ('baudRate1200', 3), ('baudRate2400', 4), ('baudRate4800', 5), ('baudRate9600', 6), ('baudRate19200', 7), ('baudRate38400', 8), ('baudRate57600', 9), ('baudRate115200', 10))).clone('baudRate9600')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485BaudRate.setStatus('current') hpnicf_onu_rs485_data_bits = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('five', 1), ('six', 2), ('seven', 3), ('eight', 4))).clone('eight')).setUnits('bit').setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485DataBits.setStatus('current') hpnicf_onu_rs485_parity = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('even', 3), ('mark', 4), ('space', 5))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485Parity.setStatus('current') hpnicf_onu_rs485_stop_bits = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('one', 1), ('two', 2), ('oneAndHalf', 3))).clone('one')).setUnits('bit').setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485StopBits.setStatus('current') hpnicf_onu_rs485_flow_control = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('hardware', 2), ('xonOrxoff', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485FlowControl.setStatus('current') hpnicf_onu_rs485_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485TXOctets.setStatus('current') hpnicf_onu_rs485_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485RXOctets.setStatus('current') hpnicf_onu_rs485_tx_err_octets = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485TXErrOctets.setStatus('current') hpnicf_onu_rs485_rx_err_octets = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485RXErrOctets.setStatus('current') hpnicf_onu_rs485_reset_statistics = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 31, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('counting', 1), ('clear', 2))).clone('counting')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfOnuRS485ResetStatistics.setStatus('current') hpnicf_onu_rs485_session_summary_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32)) if mibBuilder.loadTexts: hpnicfOnuRS485SessionSummaryTable.setStatus('current') hpnicf_onu_rs485_session_summary_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SerialIndex')) if mibBuilder.loadTexts: hpnicfOnuRS485SessionSummaryEntry.setStatus('current') hpnicf_onu_rs485_session_max_num = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485SessionMaxNum.setStatus('current') hpnicf_onu_rs485_session_next_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 32, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485SessionNextIndex.setStatus('current') hpnicf_onu_rs485_session_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33)) if mibBuilder.loadTexts: hpnicfOnuRS485SessionTable.setStatus('current') hpnicf_onu_rs485_session_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SerialIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SessionIndex')) if mibBuilder.loadTexts: hpnicfOnuRS485SessionEntry.setStatus('current') hpnicf_onu_rs485_session_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hpnicfOnuRS485SessionIndex.setStatus('current') hpnicf_onu_rs485_session_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('udp', 1), ('tcpClient', 2), ('tcpServer', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionType.setStatus('current') hpnicf_onu_rs485_session_add_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 3), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionAddType.setStatus('current') hpnicf_onu_rs485_session_remote_ip = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 4), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionRemoteIP.setStatus('current') hpnicf_onu_rs485_session_remote_port = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1024, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionRemotePort.setStatus('current') hpnicf_onu_rs485_session_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1024, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionLocalPort.setStatus('current') hpnicf_onu_rs485_session_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 33, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuRS485SessionRowStatus.setStatus('current') hpnicf_onu_rs485_session_err_info_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34)) if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfoTable.setStatus('current') hpnicf_onu_rs485_session_err_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SerialIndex'), (0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuRS485SessionIndex')) if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfoEntry.setStatus('current') hpnicf_onu_rs485_session_err_info = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 5, 34, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfOnuRS485SessionErrInfo.setStatus('current') hpnicf_epon_batch_operation_by_slot_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1)) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotTable.setStatus('current') hpnicf_epon_batch_operation_by_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfEponBatchOperationBySlotIndex')) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotEntry.setStatus('current') hpnicf_epon_batch_operation_by_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotIndex.setStatus('current') hpnicf_epon_batch_operation_by_slot_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 9, 10))).clone(namedValues=named_values(('resetUnknown', 1), ('updateDba', 9), ('updateONU', 10)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotType.setStatus('current') hpnicf_epon_batch_operation_by_slot = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('batOpBySlot', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlot.setStatus('current') hpnicf_epon_batch_operation_by_slot_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponBatchOperationBySlotResult.setStatus('current') hpnicf_epon_batch_operation_by_olt_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2)) if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTTable.setStatus('current') hpnicf_epon_batch_operation_by_olt_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTEntry.setStatus('current') hpnicf_epon_batch_operation_by_olt_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 5))).clone(namedValues=named_values(('resetUnknown', 1), ('updateONU', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTType.setStatus('current') hpnicf_epon_batch_operation_by_olt = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('batOpByOlt', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLT.setStatus('current') hpnicf_epon_batch_operation_by_olt_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponBatchOperationByOLTResult.setStatus('current') hpnicf_onu_firmware_update_by_type_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3)) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateByTypeTable.setStatus('current') hpnicf_onu_firmware_update_by_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1)).setIndexNames((0, 'HPN-ICF-EPON-MIB', 'hpnicfOnuUpdateByOnuTypeIndex')) if mibBuilder.loadTexts: hpnicfOnuFirmwareUpdateByTypeEntry.setStatus('current') hpnicf_onu_update_by_onu_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 1), integer32()) if mibBuilder.loadTexts: hpnicfOnuUpdateByOnuTypeIndex.setStatus('current') hpnicf_onu_update_by_type_onu_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeOnuType.setStatus('current') hpnicf_onu_update_by_type_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeFileName.setStatus('current') hpnicf_onu_update_by_type_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 6, 3, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfOnuUpdateByTypeRowStatus.setStatus('current') hpnicf_epon_error_info = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7)) hpnicf_epon_software_error_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponSoftwareErrorCode.setStatus('current') hpnicf_oam_vendor_specific_alarm_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOamVendorSpecificAlarmCode.setStatus('current') hpnicf_epon_onu_reg_error_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 3), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponOnuRegErrorMacAddr.setStatus('current') hpnicf_oam_event_log_type = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 4), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOamEventLogType.setStatus('current') hpnicf_oam_event_log_location = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOamEventLogLocation.setStatus('current') hpnicf_epon_loopback_port_index = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponLoopbackPortIndex.setStatus('current') hpnicf_epon_loopback_port_descr = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponLoopbackPortDescr.setStatus('current') hpnicf_olt_port_alarm_llid_mis_frames = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 8), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOltPortAlarmLlidMisFrames.setStatus('current') hpnicf_olt_port_alarm_ber = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 9), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOltPortAlarmBer.setStatus('current') hpnicf_olt_port_alarm_fer = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 10), unsigned32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfOltPortAlarmFer.setStatus('current') hpnicf_epon_onu_reg_silent_mac = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 11), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponOnuRegSilentMac.setStatus('current') hpnicf_epon_operation_result = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponOperationResult.setStatus('current') hpnicf_epon_onu_laser_state = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 7, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('normal', 1), ('laserAlwaysOn', 2), ('signalDegradation', 3), ('endOfLife', 4)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfEponOnuLaserState.setStatus('current') hpnicf_epon_trap = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8)) hpnicf_epon_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0)) hpnicf_epon_port_alarm_ber_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 1)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmBerDirect'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmBer'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmBerThreshold')) if mibBuilder.loadTexts: hpnicfEponPortAlarmBerTrap.setStatus('current') hpnicf_epon_port_alarm_fer_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 2)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmFerDirect'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmFer'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmFerThreshold')) if mibBuilder.loadTexts: hpnicfEponPortAlarmFerTrap.setStatus('current') hpnicf_epon_error_llid_frame_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmLlidMisFrames'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmLlidMismatchThreshold')) if mibBuilder.loadTexts: hpnicfEponErrorLLIDFrameTrap.setStatus('current') hpnicf_epon_loop_back_enable_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponLoopbackPortIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfEponLoopbackPortDescr')) if mibBuilder.loadTexts: hpnicfEponLoopBackEnableTrap.setStatus('current') hpnicf_epon_onu_registration_err_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 5)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOnuRegErrorMacAddr')) if mibBuilder.loadTexts: hpnicfEponOnuRegistrationErrTrap.setStatus('current') hpnicf_epon_oam_disconnection_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 6)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOamDisconnectionTrap.setStatus('current') hpnicf_epon_encryption_key_err_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 7)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponEncryptionKeyErrTrap.setStatus('current') hpnicf_epon_remote_stable_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 8)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponRemoteStableTrap.setStatus('current') hpnicf_epon_local_stable_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 9)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponLocalStableTrap.setStatus('current') hpnicf_epon_oam_vendor_specific_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 10)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOamVendorSpecificAlarmCode')) if mibBuilder.loadTexts: hpnicfEponOamVendorSpecificTrap.setStatus('current') hpnicf_epon_software_err_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 11)).setObjects(('HPN-ICF-LSW-DEV-ADM-MIB', 'hpnicfLswFrameIndex'), ('HPN-ICF-LSW-DEV-ADM-MIB', 'hpnicfLswSlotIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfEponSoftwareErrorCode')) if mibBuilder.loadTexts: hpnicfEponSoftwareErrTrap.setStatus('current') hpnicf_epon_port_alarm_ber_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 12)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmBerDirect')) if mibBuilder.loadTexts: hpnicfEponPortAlarmBerRecoverTrap.setStatus('current') hpnicf_epon_port_alarm_fer_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 13)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOltPortAlarmFerDirect')) if mibBuilder.loadTexts: hpnicfEponPortAlarmFerRecoverTrap.setStatus('current') hpnicf_epon_error_llid_frame_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 14)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponErrorLLIDFrameRecoverTrap.setStatus('current') hpnicf_epon_loop_back_enable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 15)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponLoopBackEnableRecoverTrap.setStatus('current') hpnicf_epon_onu_registration_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 16)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOnuRegErrorMacAddr')) if mibBuilder.loadTexts: hpnicfEponOnuRegistrationErrRecoverTrap.setStatus('current') hpnicf_epon_oam_disconnection_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 17)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOamDisconnectionRecoverTrap.setStatus('current') hpnicf_epon_encryption_key_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 18)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponEncryptionKeyErrRecoverTrap.setStatus('current') hpnicf_epon_remote_stable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 19)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponRemoteStableRecoverTrap.setStatus('current') hpnicf_epon_local_stable_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 20)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponLocalStableRecoverTrap.setStatus('current') hpnicf_epon_oam_vendor_specific_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 21)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOamVendorSpecificAlarmCode')) if mibBuilder.loadTexts: hpnicfEponOamVendorSpecificRecoverTrap.setStatus('current') hpnicf_epon_software_err_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 22)).setObjects(('HPN-ICF-LSW-DEV-ADM-MIB', 'hpnicfLswFrameIndex'), ('HPN-ICF-LSW-DEV-ADM-MIB', 'hpnicfLswSlotIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfEponSoftwareErrorCode')) if mibBuilder.loadTexts: hpnicfEponSoftwareErrRecoverTrap.setStatus('current') hpnicf_dot3_oam_threshold_recover_event = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 23)).setObjects(('IF-MIB', 'ifIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfOamEventLogType'), ('HPN-ICF-EPON-MIB', 'hpnicfOamEventLogLocation')) if mibBuilder.loadTexts: hpnicfDot3OamThresholdRecoverEvent.setStatus('current') hpnicf_dot3_oam_non_threshold_recover_event = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 24)).setObjects(('IF-MIB', 'ifIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfOamEventLogType'), ('HPN-ICF-EPON-MIB', 'hpnicfOamEventLogLocation')) if mibBuilder.loadTexts: hpnicfDot3OamNonThresholdRecoverEvent.setStatus('current') hpnicf_epon_onu_reg_excess_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 25)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOnuRegExcessTrap.setStatus('current') hpnicf_epon_onu_reg_excess_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 26)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOnuRegExcessRecoverTrap.setStatus('current') hpnicf_epon_onu_power_off_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 27)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOnuPowerOffTrap.setStatus('current') hpnicf_epon_olt_switchover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 28)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOltSwitchoverTrap.setStatus('current') hpnicf_epon_olt_dfe_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 29)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOltDFETrap.setStatus('current') hpnicf_epon_olt_dfe_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 30)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr')) if mibBuilder.loadTexts: hpnicfEponOltDFERecoverTrap.setStatus('current') hpnicf_epon_onu_silence_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 31)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOnuRegSilentMac')) if mibBuilder.loadTexts: hpnicfEponOnuSilenceTrap.setStatus('current') hpnicf_epon_onu_silence_recover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 32)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOnuRegSilentMac')) if mibBuilder.loadTexts: hpnicfEponOnuSilenceRecoverTrap.setStatus('current') hpnicf_epon_onu_update_result_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 33)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuBindMacAddress'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuUpdateResult'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuRegType'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuUpdateFileName')) if mibBuilder.loadTexts: hpnicfEponOnuUpdateResultTrap.setStatus('current') hpnicf_epon_onu_auto_bind_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 34)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuBindMacAddress'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOperationResult')) if mibBuilder.loadTexts: hpnicfEponOnuAutoBindTrap.setStatus('current') hpnicf_epon_onu_port_stp_state_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 35)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponStpPortIndex'), ('HPN-ICF-EPON-MIB', 'hpnicfEponStpPortDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponStpPortState')) if mibBuilder.loadTexts: hpnicfEponOnuPortStpStateTrap.setStatus('current') hpnicf_epon_onu_laser_failed_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 36)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfEponOnuLaserState')) if mibBuilder.loadTexts: hpnicfEponOnuLaserFailedTrap.setStatus('current') hpnicf_onu_smlk_switchover_trap = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 8, 0, 37)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuSmlkGroupID'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuSmlkFirstPonStatus'), ('HPN-ICF-EPON-MIB', 'hpnicfOnuSmlkSecondPonStatus')) if mibBuilder.loadTexts: hpnicfOnuSmlkSwitchoverTrap.setStatus('current') hpnicf_epon_stat = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9)) hpnicf_epon_stat_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1)) if mibBuilder.loadTexts: hpnicfEponStatTable.setStatus('current') hpnicf_epon_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfEponStatEntry.setStatus('current') hpnicf_epon_stat_fer = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponStatFER.setStatus('current') hpnicf_epon_stat_ber = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 1, 9, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfEponStatBER.setStatus('current') mibBuilder.exportSymbols('HPN-ICF-EPON-MIB', hpnicfEponBatchOperationByOLTEntry=hpnicfEponBatchOperationByOLTEntry, hpnicfEponStatBER=hpnicfEponStatBER, hpnicfOnuQueueBandwidthTable=hpnicfOnuQueueBandwidthTable, hpnicfOnuPhysicalTable=hpnicfOnuPhysicalTable, hpnicfOltPortAlarmBer=hpnicfOltPortAlarmBer, hpnicfEponBatchOperationBySlotIndex=hpnicfEponBatchOperationBySlotIndex, hpnicfEponLocalStableRecoverTrap=hpnicfEponLocalStableRecoverTrap, hpnicfOnuRS485SerialIndex=hpnicfOnuRS485SerialIndex, hpnicfOnuRS485TXErrOctets=hpnicfOnuRS485TXErrOctets, hpnicfEponMonitorCycle=hpnicfEponMonitorCycle, hpnicfOnuSlaMinBandWidthMinVal=hpnicfOnuSlaMinBandWidthMinVal, hpnicfEponOuiEntry=hpnicfEponOuiEntry, hpnicfOltAgcCdrTime=hpnicfOltAgcCdrTime, hpnicfOamEventLogType=hpnicfOamEventLogType, hpnicfEponTrap=hpnicfEponTrap, hpnicfOltDbaDiscovryFrequencyMinVal=hpnicfOltDbaDiscovryFrequencyMinVal, hpnicfEponOnuMan=hpnicfEponOnuMan, hpnicfEponOnuRegSilentMac=hpnicfEponOnuRegSilentMac, hpnicfEponOnuLaserState=hpnicfEponOnuLaserState, hpnicfOnuIgmpSnoopingHostAgingT=hpnicfOnuIgmpSnoopingHostAgingT, hpnicfOnuDbaReportTable=hpnicfOnuDbaReportTable, hpnicfOnuUpdateByTypeRowStatus=hpnicfOnuUpdateByTypeRowStatus, hpnicfEponAutoUpdateSchedStatus=hpnicfEponAutoUpdateSchedStatus, hpnicfEponEncryptionKeyErrTrap=hpnicfEponEncryptionKeyErrTrap, hpnicfEponAutoUpdateFileName=hpnicfEponAutoUpdateFileName, hpnicfOnuUniMacType=hpnicfOnuUniMacType, hpnicfOnuSlaMaxBandWidthMinVal=hpnicfOnuSlaMaxBandWidthMinVal, hpnicfEponMsgLoseNumMinVal=hpnicfEponMsgLoseNumMinVal, hpnicfOltPortAlarmRemoteStableEnabled=hpnicfOltPortAlarmRemoteStableEnabled, hpnicfOnuCountTable=hpnicfOnuCountTable, hpnicfOnuIgmpSnoopingAggLeaveS=hpnicfOnuIgmpSnoopingAggLeaveS, hpnicfEponPortAlarmBerRecoverTrap=hpnicfEponPortAlarmBerRecoverTrap, hpnicfOnuRS485RXErrOctets=hpnicfOnuRS485RXErrOctets, hpnicfEponSysHasEPONBoard=hpnicfEponSysHasEPONBoard, hpnicfEponMulticastAddressList=hpnicfEponMulticastAddressList, hpnicfOltLaserOnTime=hpnicfOltLaserOnTime, hpnicfOnuFirstPonMac=hpnicfOnuFirstPonMac, hpnicfOnuRS485RXOctets=hpnicfOnuRS485RXOctets, hpnicfOnuRS485TXOctets=hpnicfOnuRS485TXOctets, hpnicfEponOnuRegErrorMacAddr=hpnicfEponOnuRegErrorMacAddr, hpnicfEponMonitorCycleMaxVal=hpnicfEponMonitorCycleMaxVal, hpnicfOnuCosToLocalPrecedenceValue=hpnicfOnuCosToLocalPrecedenceValue, hpnicfOnuDot1xAccount=hpnicfOnuDot1xAccount, hpnicfOltPortAlarmFer=hpnicfOltPortAlarmFer, hpnicfOnuSmlkSecondPonRole=hpnicfOnuSmlkSecondPonRole, hpnicfEponLoopbackPortDescr=hpnicfEponLoopbackPortDescr, hpnicfOnuRS485SessionRowStatus=hpnicfOnuRS485SessionRowStatus, hpnicfOltPortAlarmThresholdEntry=hpnicfOltPortAlarmThresholdEntry, hpnicfOnuSmlkSecondPonStatus=hpnicfOnuSmlkSecondPonStatus, hpnicfOltPortAlarmFerThreshold=hpnicfOltPortAlarmFerThreshold, hpnicfOnuLinkTestResultSentFrameNum=hpnicfOnuLinkTestResultSentFrameNum, hpnicfOltOpticalPowerTx=hpnicfOltOpticalPowerTx, hpnicfOnuP2PMaxBurstSize=hpnicfOnuP2PMaxBurstSize, hpnicfOltPortAlarmVendorSpecificEnabled=hpnicfOltPortAlarmVendorSpecificEnabled, hpnicfOnuBindMacAddress=hpnicfOnuBindMacAddress, hpnicfOltHardMajorVersion=hpnicfOltHardMajorVersion, hpnicfEponBatchOperationBySlotType=hpnicfEponBatchOperationBySlotType, hpnicfOnuRegType=hpnicfOnuRegType, hpnicfOnuSmlkFirstPonRole=hpnicfOnuSmlkFirstPonRole, hpnicfOnuDbaReportEntry=hpnicfOnuDbaReportEntry, hpnicfEponOnuPowerOffTrap=hpnicfEponOnuPowerOffTrap, hpnicfOnuLinkTestFrameNumMinVal=hpnicfOnuLinkTestFrameNumMinVal, hpnicfOnuPriorityQueueEntry=hpnicfOnuPriorityQueueEntry, hpnicfOnuChipSetInfoTable=hpnicfOnuChipSetInfoTable, hpnicfEponSlotIndex=hpnicfEponSlotIndex, hpnicfOnuSoftwareVersion=hpnicfOnuSoftwareVersion, hpnicfOnuCountEntry=hpnicfOnuCountEntry, hpnicfOnuMacAddress=hpnicfOnuMacAddress, hpnicfOnuMacIndex=hpnicfOnuMacIndex, hpnicfOnuQueueDirection=hpnicfOnuQueueDirection, hpnicfOnuQueueMaxBandwidth=hpnicfOnuQueueMaxBandwidth, hpnicfOnuFecStatus=hpnicfOnuFecStatus, hpnicfOltPortAlarmRegExcessEnabled=hpnicfOltPortAlarmRegExcessEnabled, hpnicfOnuSmlkSwitchoverTrap=hpnicfOnuSmlkSwitchoverTrap, hpnicfOamEventLogLocation=hpnicfOamEventLogLocation, hpnicfOnuRS485StopBits=hpnicfOnuRS485StopBits, hpnicfOamVendorSpecificAlarmCode=hpnicfOamVendorSpecificAlarmCode, hpnicfEponStatEntry=hpnicfEponStatEntry, hpnicfEponAutoAuthorize=hpnicfEponAutoAuthorize, hpnicfEponOnuTypeManTable=hpnicfEponOnuTypeManTable, hpnicfOnuRS485SessionErrInfoTable=hpnicfOnuRS485SessionErrInfoTable, hpnicfOnuBandWidthTable=hpnicfOnuBandWidthTable, hpnicfEponSysScalarGroup=hpnicfEponSysScalarGroup, hpnicfOltAgcLockTime=hpnicfOltAgcLockTime, hpnicfOltUsingOnuEntry=hpnicfOltUsingOnuEntry, hpnicfOnuP2PShortFrameFirst=hpnicfOnuP2PShortFrameFirst, hpnicfOltDbaDiscoveryLengthMinVal=hpnicfOltDbaDiscoveryLengthMinVal, hpnicfOnuPCBVersion=hpnicfOnuPCBVersion, hpnicfOnuLinkTestVlanPriority=hpnicfOnuLinkTestVlanPriority, hpnicfOnuUpdateByOnuTypeIndex=hpnicfOnuUpdateByOnuTypeIndex, hpnicfEponOnuUpdateResultTrap=hpnicfEponOnuUpdateResultTrap, hpnicfOltPortAlarmLlidMisMinVal=hpnicfOltPortAlarmLlidMisMinVal, hpnicfEponEncryptionUpdateTime=hpnicfEponEncryptionUpdateTime, hpnicfOnuQueueScheduler=hpnicfOnuQueueScheduler, hpnicfEponOltDFERecoverTrap=hpnicfEponOltDFERecoverTrap, hpnicfOnuBandWidthEntry=hpnicfOnuBandWidthEntry, hpnicfEponStpPortDescr=hpnicfEponStpPortDescr, hpnicfOnuSilentTable=hpnicfOnuSilentTable, hpnicfEponBatchOperationMan=hpnicfEponBatchOperationMan, hpnicfOnuSilentMacAddr=hpnicfOnuSilentMacAddr, hpnicfOnuChipSetModel=hpnicfOnuChipSetModel, hpnicfOltPortAlarmBerDirect=hpnicfOltPortAlarmBerDirect, hpnicfEponSysManTable=hpnicfEponSysManTable, hpnicfOltSelfTestResult=hpnicfOltSelfTestResult, hpnicfEponLoopBackEnableTrap=hpnicfEponLoopBackEnableTrap, hpnicfEponAutoBindStatus=hpnicfEponAutoBindStatus, hpnicfOnuSmlkTable=hpnicfOnuSmlkTable, hpnicfOnuDhcpsnoopingOption82=hpnicfOnuDhcpsnoopingOption82, hpnicfEponMulticastVlanId=hpnicfEponMulticastVlanId, hpnicfEponOamDisconnectionRecoverTrap=hpnicfEponOamDisconnectionRecoverTrap, hpnicfEponPortLoopBackAlmEnable=hpnicfEponPortLoopBackAlmEnable, hpnicfOltPortAlarmBerMaxVal=hpnicfOltPortAlarmBerMaxVal, hpnicfOnuRS485SessionMaxNum=hpnicfOnuRS485SessionMaxNum, hpnicfEponMsgTimeOutMaxVal=hpnicfEponMsgTimeOutMaxVal, hpnicfOnuSlaManEntry=hpnicfOnuSlaManEntry, hpnicfOnuBindMacAddrEntry=hpnicfOnuBindMacAddrEntry, hpnicfEponOltMan=hpnicfEponOltMan, hpnicfOnuRS485SessionSummaryEntry=hpnicfOnuRS485SessionSummaryEntry, hpnicfEponMibObjects=hpnicfEponMibObjects, hpnicfOnuP2PHighPriorityFirst=hpnicfOnuP2PHighPriorityFirst, hpnicfOnuBindType=hpnicfOnuBindType, hpnicfEponMsgTimeOutMinVal=hpnicfEponMsgTimeOutMinVal, hpnicfEponBatchOperationByOLTTable=hpnicfEponBatchOperationByOLTTable, hpnicfEponStat=hpnicfEponStat, hpnicfOnuBatteryBackup=hpnicfOnuBatteryBackup, hpnicfEponOltSoftwareErrAlmEnable=hpnicfEponOltSoftwareErrAlmEnable, hpnicfOnuDhcpsnooping=hpnicfOnuDhcpsnooping, hpnicfOnuManageVlanIntfS=hpnicfOnuManageVlanIntfS, hpnicfEponOnuPortStpStateTrap=hpnicfEponOnuPortStpStateTrap, hpnicfOnuSlaMaxBandWidth=hpnicfOnuSlaMaxBandWidth, hpnicfOltPortAlarmBerEnabled=hpnicfOltPortAlarmBerEnabled, hpnicfEponOamDiscoveryTimeout=hpnicfEponOamDiscoveryTimeout, hpnicfEponOnuRegExcessRecoverTrap=hpnicfEponOnuRegExcessRecoverTrap, hpnicfEponOnuTypeManEntry=hpnicfEponOnuTypeManEntry, hpnicfOnuQueueMaxBurstsize=hpnicfOnuQueueMaxBurstsize, hpnicfOltDbaCycleLengthMaxVal=hpnicfOltDbaCycleLengthMaxVal, hpnicfOnuDownstreamQueueNumber=hpnicfOnuDownstreamQueueNumber, hpnicfOnuRS485SessionType=hpnicfOnuRS485SessionType, hpnicfDot3OamThresholdRecoverEvent=hpnicfDot3OamThresholdRecoverEvent, hpnicfEponOnuRegExcessTrap=hpnicfEponOnuRegExcessTrap, hpnicfOnuHostType=hpnicfOnuHostType, hpnicfOnuLlid=hpnicfOnuLlid, hpnicfOnuInfoEntry=hpnicfOnuInfoEntry, hpnicfOnuManageVID=hpnicfOnuManageVID, hpnicfOltPortAlarmOamDisconnectionEnabled=hpnicfOltPortAlarmOamDisconnectionEnabled, hpnicfOnuRS485SessionSummaryTable=hpnicfOnuRS485SessionSummaryTable, hpnicfOnuRS485SessionAddType=hpnicfOnuRS485SessionAddType, hpnicfOltDbaCycleLengthMinVal=hpnicfOltDbaCycleLengthMinVal, hpnicfOnuGEPortNumber=hpnicfOnuGEPortNumber, hpnicfOltPortAlarmLlidMisMaxVal=hpnicfOltPortAlarmLlidMisMaxVal, hpnicfOnuDownStreamShortFrameFirst=hpnicfOnuDownStreamShortFrameFirst, hpnicfOnuPppoe=hpnicfOnuPppoe, hpnicfOltPortAlarmBerMinVal=hpnicfOltPortAlarmBerMinVal, hpnicfEponRemoteStableTrap=hpnicfEponRemoteStableTrap, hpnicfOnuUpdate=hpnicfOnuUpdate, hpnicfEponTrapPrefix=hpnicfEponTrapPrefix, hpnicfEponErrorLLIDFrameRecoverTrap=hpnicfEponErrorLLIDFrameRecoverTrap, hpnicfOltDbaDiscoveryLengthMaxVal=hpnicfOltDbaDiscoveryLengthMaxVal, hpnicfEponAutoUpdateSchedTime=hpnicfEponAutoUpdateSchedTime, hpnicfOnuDownStreamMaxBandWidth=hpnicfOnuDownStreamMaxBandWidth, hpnicfEponOamDisconnectionTrap=hpnicfEponOamDisconnectionTrap, hpnicfOnuQueueBandwidthEntry=hpnicfOnuQueueBandwidthEntry, hpnicfOnuP2PMaxBandWidth=hpnicfOnuP2PMaxBandWidth, hpnicfOltMacAddress=hpnicfOltMacAddress, hpnicfOltUsingOnuTable=hpnicfOltUsingOnuTable, hpnicfOnuRS485DataBits=hpnicfOnuRS485DataBits, hpnicfOnuMaxUpstreamQueuePerPort=hpnicfOnuMaxUpstreamQueuePerPort, hpnicfOltPortAlarmLlidMismatchThreshold=hpnicfOltPortAlarmLlidMismatchThreshold, hpnicfOltDbaEnabledType=hpnicfOltDbaEnabledType, hpnicfOnuSlaFixedPacketSize=hpnicfOnuSlaFixedPacketSize, hpnicfOnuRS485SessionLocalPort=hpnicfOnuRS485SessionLocalPort, hpnicfEponMonitorCycleMinVal=hpnicfEponMonitorCycleMinVal, hpnicfOltPortAlarmLlidMismatchEnabled=hpnicfOltPortAlarmLlidMismatchEnabled, hpnicfEponEncryptionKeyErrRecoverTrap=hpnicfEponEncryptionKeyErrRecoverTrap, hpnicfOnuHardMinorVersion=hpnicfOnuHardMinorVersion, hpnicfOnuChipSetVendorId=hpnicfOnuChipSetVendorId, hpnicfOnuFEPortNumber=hpnicfOnuFEPortNumber, hpnicfOnuLinkTestFrameSize=hpnicfOnuLinkTestFrameSize, hpnicfEponPortAlarmFerTrap=hpnicfEponPortAlarmFerTrap, hpnicfOnuWorkMode=hpnicfOnuWorkMode, hpnicfOnuLinkTestResultMinDelay=hpnicfOnuLinkTestResultMinDelay, hpnicfEponDbaUpdateFileName=hpnicfEponDbaUpdateFileName, hpnicfOnuMcastCtrlHostAgingTime=hpnicfOnuMcastCtrlHostAgingTime, hpnicfOnuEncryptKey=hpnicfOnuEncryptKey, hpnicfOnuSlaMinBandWidthMaxVal=hpnicfOnuSlaMinBandWidthMaxVal, hpnicfOnuFirmwareUpdateByTypeTable=hpnicfOnuFirmwareUpdateByTypeTable, hpnicfEponOnuRegistrationErrTrap=hpnicfEponOnuRegistrationErrTrap, hpnicfOltPortAlarmFerMaxVal=hpnicfOltPortAlarmFerMaxVal, hpnicfEponBatchOperationBySlotResult=hpnicfEponBatchOperationBySlotResult, hpnicfOnuHardMajorVersion=hpnicfOnuHardMajorVersion, hpnicfOnuDownStreamHighPriorityFirst=hpnicfOnuDownStreamHighPriorityFirst, hpnicfOltDbaDiscoveryLength=hpnicfOltDbaDiscoveryLength, hpnicfOltDbaDiscovryFrequency=hpnicfOltDbaDiscovryFrequency, hpnicfEponMulticastControlTable=hpnicfEponMulticastControlTable, hpnicfOnuSlaMinBandWidth=hpnicfOnuSlaMinBandWidth, hpnicfEponStpPortState=hpnicfEponStpPortState, hpnicfOltHardMinorVersion=hpnicfOltHardMinorVersion, hpnicfOnuSlaFixedBandWidth=hpnicfOnuSlaFixedBandWidth, hpnicfOltDbaCycleLength=hpnicfOltDbaCycleLength, hpnicfEponOamVersion=hpnicfEponOamVersion, hpnicfEponAutomaticMode=hpnicfEponAutomaticMode, hpnicfOnuAccessVlan=hpnicfOnuAccessVlan, hpnicfEponBatchOperationByOLTType=hpnicfEponBatchOperationByOLTType, hpnicfEponMsgLoseNum=hpnicfEponMsgLoseNum, hpnicfOnuGrantFifoDep=hpnicfOnuGrantFifoDep, hpnicfOnuSilentEntry=hpnicfOnuSilentEntry, hpnicfOnuSlaMaxBandWidthMaxVal=hpnicfOnuSlaMaxBandWidthMaxVal, hpnicfEponOnuRegistrationErrRecoverTrap=hpnicfEponOnuRegistrationErrRecoverTrap, hpnicfOltDbaUpdateResult=hpnicfOltDbaUpdateResult, hpnicfOnuFirmwareUpdateEntry=hpnicfOnuFirmwareUpdateEntry, hpnicfOnuIpAddressEntry=hpnicfOnuIpAddressEntry, hpnicfEponOnuTypeDescr=hpnicfEponOnuTypeDescr, hpnicfOnuP2PBandWidthPolicy=hpnicfOnuP2PBandWidthPolicy, hpnicfOltLaserOnTimeMaxVal=hpnicfOltLaserOnTimeMaxVal, hpnicfEponLoopBackEnableRecoverTrap=hpnicfEponLoopBackEnableRecoverTrap, hpnicfOnuRS485FlowControl=hpnicfOnuRS485FlowControl, hpnicfEponOnuAutoBindTrap=hpnicfEponOnuAutoBindTrap, hpnicfOnuBindMacAddrTable=hpnicfOnuBindMacAddrTable, hpnicfEponMonitorCycleEnable=hpnicfEponMonitorCycleEnable, hpnicfOnuEncryptMan=hpnicfOnuEncryptMan, hpnicfEponOuiRowStatus=hpnicfEponOuiRowStatus, hpnicfOnuPOTSPortNumber=hpnicfOnuPOTSPortNumber, hpnicfOnuDownStreamBandWidthPolicy=hpnicfOnuDownStreamBandWidthPolicy, hpnicfOnuFirmwareVersion=hpnicfOnuFirmwareVersion, hpnicfOnuRS485SessionErrInfoEntry=hpnicfOnuRS485SessionErrInfoEntry, hpnicfOnuRS485SessionErrInfo=hpnicfOnuRS485SessionErrInfo, hpnicfOnuQueueSize=hpnicfOnuQueueSize, hpnicfOnuSmlkGroupID=hpnicfOnuSmlkGroupID, hpnicfOnuRS485SessionEntry=hpnicfOnuRS485SessionEntry, hpnicfOnuMacAddrInfoEntry=hpnicfOnuMacAddrInfoEntry, hpnicfOnuLinkTestResultRetFrameNum=hpnicfOnuLinkTestResultRetFrameNum, hpnicfOnuSlaPriorityClass=hpnicfOnuSlaPriorityClass, hpnicfEponOuiIndex=hpnicfEponOuiIndex, hpnicfOltPortAlarmFerDirect=hpnicfOltPortAlarmFerDirect, hpnicfOnuPacketManEntry=hpnicfOnuPacketManEntry, hpnicfOnuChipSetRevision=hpnicfOnuChipSetRevision, hpnicfOnuInfoTable=hpnicfOnuInfoTable, hpnicfOnuRS485SessionRemotePort=hpnicfOnuRS485SessionRemotePort, hpnicfOnuFirstPonRegState=hpnicfOnuFirstPonRegState, hpnicfOnuProtocolEntry=hpnicfOnuProtocolEntry, hpnicfOnuLinkTestResultMeanDelay=hpnicfOnuLinkTestResultMeanDelay, hpnicfOnuIgmpSnoopingStatus=hpnicfOnuIgmpSnoopingStatus, hpnicfOnuPriorityQueueBandwidthMinVal=hpnicfOnuPriorityQueueBandwidthMinVal, hpnicfOltFirmMinorVersion=hpnicfOltFirmMinorVersion, hpnicfOltInfoTable=hpnicfOltInfoTable, hpnicfOltPortAlarmBerThreshold=hpnicfOltPortAlarmBerThreshold, hpnicfEponErrorLLIDFrameTrap=hpnicfEponErrorLLIDFrameTrap, hpnicfOltMaxRtt=hpnicfOltMaxRtt, hpnicfOltPortAlarmThresholdTable=hpnicfOltPortAlarmThresholdTable, hpnicfOnuCosToLocalPrecedenceEntry=hpnicfOnuCosToLocalPrecedenceEntry, hpnicfOnuIgmpSnoopingAggReportS=hpnicfOnuIgmpSnoopingAggReportS, hpnicfOnuPriorityTrust=hpnicfOnuPriorityTrust, hpnicfOnuEEPROMVersion=hpnicfOnuEEPROMVersion, hpnicfOnuPriorityQueueBurstsizeMaxVal=hpnicfOnuPriorityQueueBurstsizeMaxVal) mibBuilder.exportSymbols('HPN-ICF-EPON-MIB', hpnicfOltPortAlarmLlidMisFrames=hpnicfOltPortAlarmLlidMisFrames, hpnicfEponSoftwareErrTrap=hpnicfEponSoftwareErrTrap, hpnicfOnuUpstreamQueueNumber=hpnicfOnuUpstreamQueueNumber, hpnicfOnuFirmwareUpdateTable=hpnicfOnuFirmwareUpdateTable, hpnicfOnuChipSetDesignDate=hpnicfOnuChipSetDesignDate, hpnicfEponOnuSilenceRecoverTrap=hpnicfEponOnuSilenceRecoverTrap, hpnicfOltEnableDiscardPacket=hpnicfOltEnableDiscardPacket, hpnicfOnuCosToLocalPrecedenceTable=hpnicfOnuCosToLocalPrecedenceTable, hpnicfOnuMaxDownstreamQueuePerPort=hpnicfOnuMaxDownstreamQueuePerPort, hpnicfEponAutoUpdateSchedType=hpnicfEponAutoUpdateSchedType, hpnicfEponOnuTypeIndex=hpnicfEponOnuTypeIndex, hpnicfEponOuiIndexNext=hpnicfEponOuiIndexNext, hpnicfOnuSilentTime=hpnicfOnuSilentTime, hpnicfOnuSlaBandWidthStepVal=hpnicfOnuSlaBandWidthStepVal, hpnicfOnuLinkTestResultRetErrFrameNum=hpnicfOnuLinkTestResultRetErrFrameNum, hpnicfOnuMacAddrFlag=hpnicfOnuMacAddrFlag, hpnicfOnuRS485PropertiesEntry=hpnicfOnuRS485PropertiesEntry, hpnicfOnuIpAddressTable=hpnicfOnuIpAddressTable, hpnicfOltWorkMode=hpnicfOltWorkMode, hpnicfEponSoftwareErrorCode=hpnicfEponSoftwareErrorCode, hpnicfEponMsgTimeOut=hpnicfEponMsgTimeOut, hpnicfEponOuiTable=hpnicfEponOuiTable, hpnicfOltPortAlarmFerEnabled=hpnicfOltPortAlarmFerEnabled, hpnicfOnuRtt=hpnicfOnuRtt, hpnicfEponOltDFETrap=hpnicfEponOltDFETrap, hpnicfOnuIpAddressGateway=hpnicfOnuIpAddressGateway, hpnicfEponOperationResult=hpnicfEponOperationResult, hpnicfOnuLinkTestVlanTag=hpnicfOnuLinkTestVlanTag, hpnicfOnuMCtrlFastLeaveSupported=hpnicfOnuMCtrlFastLeaveSupported, hpnicfOnuServiceSupported=hpnicfOnuServiceSupported, hpnicfOnuDhcpallocate=hpnicfOnuDhcpallocate, hpnicfOnuPriorityQueueTable=hpnicfOnuPriorityQueueTable, hpnicfEponLoopbackPortIndex=hpnicfEponLoopbackPortIndex, hpnicfEponMulticastControlEntry=hpnicfEponMulticastControlEntry, hpnicfOnuBridgeMac=hpnicfOnuBridgeMac, hpnicfOnuIpAddressMask=hpnicfOnuIpAddressMask, hpnicfOnuPriorityQueueBurstsizeMinVal=hpnicfOnuPriorityQueueBurstsizeMinVal, hpnicfEponAutoUpdateEntry=hpnicfEponAutoUpdateEntry, hpnicfOnuPriorityQueueSizeMinVal=hpnicfOnuPriorityQueueSizeMinVal, hpnicfOnuRS485BaudRate=hpnicfOnuRS485BaudRate, hpnicfOnuDistance=hpnicfOnuDistance, hpnicfOnuInCRCErrPkts=hpnicfOnuInCRCErrPkts, hpnicfEponRemoteStableRecoverTrap=hpnicfEponRemoteStableRecoverTrap, hpnicfOnuCapabilityEntry=hpnicfOnuCapabilityEntry, hpnicfOnuSysManEntry=hpnicfOnuSysManEntry, hpnicfOltDbaManEntry=hpnicfOltDbaManEntry, hpnicfOnuPortBerStatus=hpnicfOnuPortBerStatus, hpnicfOnuSlaManTable=hpnicfOnuSlaManTable, hpnicfOnuMulticastFastLeaveEnable=hpnicfOnuMulticastFastLeaveEnable, hpnicfOltUsingOnuRowStatus=hpnicfOltUsingOnuRowStatus, hpnicfOnuSecondPonRegState=hpnicfOnuSecondPonRegState, hpnicfOnuSlaDelay=hpnicfOnuSlaDelay, hpnicfOnuLinkTestEntry=hpnicfOnuLinkTestEntry, hpnicfEponStpPortIndex=hpnicfEponStpPortIndex, hpnicfOnuSmlkEntry=hpnicfOnuSmlkEntry, hpnicfEponAutoUpdateRealTimeStatus=hpnicfEponAutoUpdateRealTimeStatus, hpnicfOnuMulticastControlMode=hpnicfOnuMulticastControlMode, hpnicfOltLaserOffTimeMinVal=hpnicfOltLaserOffTimeMinVal, hpnicfEponOnuStpPortTable=hpnicfEponOnuStpPortTable, hpnicfEponAutoUpdateTable=hpnicfEponAutoUpdateTable, hpnicfOnuPhysicalEntry=hpnicfOnuPhysicalEntry, hpnicfOnuDbaReportThreshold=hpnicfOnuDbaReportThreshold, hpnicfOnuRemoteFecStatus=hpnicfOnuRemoteFecStatus, hpnicfOltDbaVersion=hpnicfOltDbaVersion, hpnicfOnuDownStreamMaxBurstSize=hpnicfOnuDownStreamMaxBurstSize, hpnicfOnuPriorityQueueSizeMaxVal=hpnicfOnuPriorityQueueSizeMaxVal, hpnicfEponStatFER=hpnicfEponStatFER, hpnicfEponMsgLoseNumMaxVal=hpnicfEponMsgLoseNumMaxVal, hpnicfOnuLinkTestTable=hpnicfOnuLinkTestTable, hpnicfOnuE1PortsNumber=hpnicfOnuE1PortsNumber, hpnicfOltDbaManTable=hpnicfOltDbaManTable, hpnicfOltPortAlarmRegistrationEnabled=hpnicfOltPortAlarmRegistrationEnabled, hpnicfEponModeSwitch=hpnicfEponModeSwitch, hpnicfEponLocalStableTrap=hpnicfEponLocalStableTrap, hpnicfOltPortAlarmLocalStableEnabled=hpnicfOltPortAlarmLocalStableEnabled, hpnicfOltOpticalPowerRx=hpnicfOltOpticalPowerRx, hpnicfEponSysMan=hpnicfEponSysMan, hpnicfOnuUpdateByTypeOnuType=hpnicfOnuUpdateByTypeOnuType, hpnicfEponSysManEntry=hpnicfEponSysManEntry, hpnicfEponBatchOperationByOLTResult=hpnicfEponBatchOperationByOLTResult, hpnicfEponOnuUpdateFileName=hpnicfEponOnuUpdateFileName, hpnicfEponOnuLaserFailedTrap=hpnicfEponOnuLaserFailedTrap, hpnicfOnuIgmpSnoopingMaxRespT=hpnicfOnuIgmpSnoopingMaxRespT, hpnicfOnuRS485PropertiesTable=hpnicfOnuRS485PropertiesTable, hpnicfEponBatchOperationBySlotTable=hpnicfEponBatchOperationBySlotTable, hpnicfOnuChipSetInfoEntry=hpnicfOnuChipSetInfoEntry, hpnicfOnuLinkTestResultMaxDelay=hpnicfOnuLinkTestResultMaxDelay, hpnicfEponBatchOperationByOLT=hpnicfEponBatchOperationByOLT, hpnicfOnuDbaReportStatus=hpnicfOnuDbaReportStatus, hpnicfEponOnuSilenceTrap=hpnicfEponOnuSilenceTrap, hpnicfEponOltSwitchoverTrap=hpnicfEponOltSwitchoverTrap, hpnicfOnuSecondPonMac=hpnicfOnuSecondPonMac, hpnicfOnuVendorId=hpnicfOnuVendorId, hpnicfOltLaserOffTime=hpnicfOltLaserOffTime, hpnicfEponOnuStpPortEntry=hpnicfEponOnuStpPortEntry, hpnicfOltDbaUpdate=hpnicfOltDbaUpdate, hpnicfOnuOpticalPowerReceivedByOlt=hpnicfOnuOpticalPowerReceivedByOlt, hpnicfOnuDbaReportQueueId=hpnicfOnuDbaReportQueueId, hpnicfEponOnuScalarGroup=hpnicfEponOnuScalarGroup, hpnicfOnuCapabilityTable=hpnicfOnuCapabilityTable, hpnicfOltDbaDiscovryFrequencyMaxVal=hpnicfOltDbaDiscovryFrequencyMaxVal, hpnicfEponOamVendorSpecificTrap=hpnicfEponOamVendorSpecificTrap, hpnicfOnuRS485SessionTable=hpnicfOnuRS485SessionTable, hpnicfOltUsingOnuNum=hpnicfOltUsingOnuNum, hpnicfOnuProtocolTable=hpnicfOnuProtocolTable, hpnicfOltSelfTest=hpnicfOltSelfTest, hpnicfEponOuiValue=hpnicfEponOuiValue, hpnicfOnuIpAddress=hpnicfOnuIpAddress, hpnicfOnuRS485SessionRemoteIP=hpnicfOnuRS485SessionRemoteIP, hpnicfOnuUniUpDownTrapStatus=hpnicfOnuUniUpDownTrapStatus, hpnicfOnuOutDroppedFrames=hpnicfOnuOutDroppedFrames, hpnicfEponPortAlarmFerRecoverTrap=hpnicfEponPortAlarmFerRecoverTrap, hpnicfEponEncryptionNoReplyTimeOut=hpnicfEponEncryptionNoReplyTimeOut, hpnicfOltPortAlarmEncryptionKeyEnabled=hpnicfOltPortAlarmEncryptionKeyEnabled, hpnicfOnuDbaReportQueueSetNumber=hpnicfOnuDbaReportQueueSetNumber, hpnicfOltUsingOnuIfIndex=hpnicfOltUsingOnuIfIndex, hpnicfOnuMacAddrInfoTable=hpnicfOnuMacAddrInfoTable, hpnicfOnuMulticastFilterStatus=hpnicfOnuMulticastFilterStatus, hpnicfOnuDot1xPassword=hpnicfOnuDot1xPassword, hpnicfOnuPriorityQueueBandwidthMaxVal=hpnicfOnuPriorityQueueBandwidthMaxVal, hpnicfOnuQueueId=hpnicfOnuQueueId, hpnicfOnuSmlkFirstPonStatus=hpnicfOnuSmlkFirstPonStatus, hpnicfOnuUpdateFileName=hpnicfOnuUpdateFileName, hpnicfEponSoftwareErrRecoverTrap=hpnicfEponSoftwareErrRecoverTrap, hpnicfEponBatchOperationBySlotEntry=hpnicfEponBatchOperationBySlotEntry, hpnicfOnuSysManTable=hpnicfOnuSysManTable, hpnicfOltMultiCopyBrdCast=hpnicfOltMultiCopyBrdCast, hpnicfOnuFirmwareUpdateByTypeEntry=hpnicfOnuFirmwareUpdateByTypeEntry, hpnicfOltPortAlarmFerMinVal=hpnicfOltPortAlarmFerMinVal, hpnicfOnuUpdateByTypeNextIndex=hpnicfOnuUpdateByTypeNextIndex, hpnicfEponPortAlarmBerTrap=hpnicfEponPortAlarmBerTrap, hpnicfOnuDot1xTable=hpnicfOnuDot1xTable, hpnicfEponMulticastStatus=hpnicfEponMulticastStatus, hpnicfOnuLinkTestFrameNum=hpnicfOnuLinkTestFrameNum, hpnicfOltSysManEntry=hpnicfOltSysManEntry, hpnicfOnuRS485Parity=hpnicfOnuRS485Parity, hpnicfOnuQueuePolicyStatus=hpnicfOnuQueuePolicyStatus, hpnicfOltLaserOnTimeMinVal=hpnicfOltLaserOnTimeMinVal, hpnicfOnuReAuthorize=hpnicfOnuReAuthorize, hpnicfOnuLinkTestDelay=hpnicfOnuLinkTestDelay, hpnicfOnuIgmpSnoopingRouterAgingT=hpnicfOnuIgmpSnoopingRouterAgingT, hpnicfOnuLaserOffTime=hpnicfOnuLaserOffTime, hpnicfOltInfoEntry=hpnicfOltInfoEntry, hpnicfEponOuiIndexNextTable=hpnicfEponOuiIndexNextTable, hpnicfOnuLaserOnTime=hpnicfOnuLaserOnTime, hpnicfEponOuiIndexNextEntry=hpnicfEponOuiIndexNextEntry, hpnicfEponOamVendorSpecificRecoverTrap=hpnicfEponOamVendorSpecificRecoverTrap, hpnicfOnuLinkTestFrameNumMaxVal=hpnicfOnuLinkTestFrameNumMaxVal, hpnicfEponFileName=hpnicfEponFileName, hpnicfOnuIgspFastLeaveSupported=hpnicfOnuIgspFastLeaveSupported, hpnicfOltSysManTable=hpnicfOltSysManTable, hpnicfOnuPacketManTable=hpnicfOnuPacketManTable, hpnicfOnuRS485ResetStatistics=hpnicfOnuRS485ResetStatistics, hpnicfOnuLinkTestVlanTagID=hpnicfOnuLinkTestVlanTagID, hpnicfOnuRS485SessionNextIndex=hpnicfOnuRS485SessionNextIndex, hpnicfOltLaserOffTimeMaxVal=hpnicfOltLaserOffTimeMaxVal, hpnicfOnuUpdateResult=hpnicfOnuUpdateResult, hpnicfOltPortAlarmDFEEnabled=hpnicfOltPortAlarmDFEEnabled, hpnicfOnuStpStatus=hpnicfOnuStpStatus, hpnicfOnuCosToLocalPrecedenceCosIndex=hpnicfOnuCosToLocalPrecedenceCosIndex, PYSNMP_MODULE_ID=hpnicfEponMibObjects, hpnicfOnuUpdateByTypeFileName=hpnicfOnuUpdateByTypeFileName, hpnicfEponBatchOperationBySlot=hpnicfEponBatchOperationBySlot, hpnicfOnuPortIsolateEnable=hpnicfOnuPortIsolateEnable, hpnicfEponStatTable=hpnicfEponStatTable, hpnicfOnuReset=hpnicfOnuReset, hpnicfEponErrorInfo=hpnicfEponErrorInfo, hpnicfOltFirmMajorVersion=hpnicfOltFirmMajorVersion, hpnicfOnuRS485SessionIndex=hpnicfOnuRS485SessionIndex, hpnicfOnuDot1xEntry=hpnicfOnuDot1xEntry, hpnicfDot3OamNonThresholdRecoverEvent=hpnicfDot3OamNonThresholdRecoverEvent)
# cribbing from matplotlib's approach # by default DeprecationWarnings are ignored. Define our own class to make sure they are seen __all__ = ["mpl_interactions_DeprecationWarning"] class mpl_interactions_DeprecationWarning(DeprecationWarning): """A class for issuing deprecation warnings for mpl-interactions users."""
__all__ = ['mpl_interactions_DeprecationWarning'] class Mpl_Interactions_Deprecationwarning(DeprecationWarning): """A class for issuing deprecation warnings for mpl-interactions users."""
class RepositoryNotFoundError(Exception): pass class MissingFilesError(Exception): pass
class Repositorynotfounderror(Exception): pass class Missingfileserror(Exception): pass
#LAB X #Due Date: 04/07/2019, 11:59PM ######################################## # # Name: # Collaboration Statement: # ######################################## # use the code for max heap class MaxHeapPriorityQueue: def __init__(self): self.heap=[] self.size = 0 def __len__(self): # return the length by using len function return len(self.heap) def parent(self,index): if index == 0 or index > len(self.heap) -1: return None else: return (index -1) >> 1 def leftChild(self,index): # set the requirement of the index if index >= 1 and len(self.heap)+1 > 2*index: # else return the index of the left child return self.heap[(2*index)-1] return None def rightChild(self,index): # set the requirement of the index if index >= 1 and len(self.heap)+1 > (2*index)+1: # else return the index of the left child return self.heap[2*index] return None def swap(self,index_a,index_b): self.heap[index_a],self.heap[index_b] = self.heap[index_b],self.heap[index_a] def insert(self,data): self.heap.append(data) index = len(self.heap) -1 parent = self.parent(index) while parent is not None and self.heap[parent] < self.heap[index]: self.swap(parent,index) index = parent parent = self.parent(parent) def deleteMax(self): index = 0 remove_data = self.heap[0] self.heap[0] = self.heap[-1] del self.heap[-1] total_index = len(self.heap) -1 while True: maxvalue_index = index if 2*index +1 <= total_index and self.heap[2*index +1] > self.heap[maxvalue_index]: maxvalue_index = 2*index +1 if 2*index +2 <= total_index and self.heap[2*index +2] > self.heap[maxvalue_index]: maxvalue_index = 2*index +2 if maxvalue_index == index: break self.swap(index,maxvalue_index) index = maxvalue_index return remove_data def heapSort(numList): ''' >>> heapSort([9,7,4,1,2,4,8,7,0,-1]) [-1, 0, 1, 2, 4, 4, 7, 7, 8, 9] ''' # set the max heap sort_heap = MaxHeapPriorityQueue() #write your code here # set the empty list sorted_list = [] # insert the value in max heap for i in numList: sort_heap.insert(i) # pop the value from max heap and append it to list for i in range(len(numList)): y = sort_heap.deleteMax() sorted_list.append(y) # reverse the list sorted_list.reverse() # return the value return sorted_list
class Maxheappriorityqueue: def __init__(self): self.heap = [] self.size = 0 def __len__(self): return len(self.heap) def parent(self, index): if index == 0 or index > len(self.heap) - 1: return None else: return index - 1 >> 1 def left_child(self, index): if index >= 1 and len(self.heap) + 1 > 2 * index: return self.heap[2 * index - 1] return None def right_child(self, index): if index >= 1 and len(self.heap) + 1 > 2 * index + 1: return self.heap[2 * index] return None def swap(self, index_a, index_b): (self.heap[index_a], self.heap[index_b]) = (self.heap[index_b], self.heap[index_a]) def insert(self, data): self.heap.append(data) index = len(self.heap) - 1 parent = self.parent(index) while parent is not None and self.heap[parent] < self.heap[index]: self.swap(parent, index) index = parent parent = self.parent(parent) def delete_max(self): index = 0 remove_data = self.heap[0] self.heap[0] = self.heap[-1] del self.heap[-1] total_index = len(self.heap) - 1 while True: maxvalue_index = index if 2 * index + 1 <= total_index and self.heap[2 * index + 1] > self.heap[maxvalue_index]: maxvalue_index = 2 * index + 1 if 2 * index + 2 <= total_index and self.heap[2 * index + 2] > self.heap[maxvalue_index]: maxvalue_index = 2 * index + 2 if maxvalue_index == index: break self.swap(index, maxvalue_index) index = maxvalue_index return remove_data def heap_sort(numList): """ >>> heapSort([9,7,4,1,2,4,8,7,0,-1]) [-1, 0, 1, 2, 4, 4, 7, 7, 8, 9] """ sort_heap = max_heap_priority_queue() sorted_list = [] for i in numList: sort_heap.insert(i) for i in range(len(numList)): y = sort_heap.deleteMax() sorted_list.append(y) sorted_list.reverse() return sorted_list
""" Datos de entrada monto de la compra-->m-->float nombre del cliente-->n-->str Datos de salida nombre del cliente-->n-->str monto de la compra-->m-->float monto a pagar-->mp-->float descuento-->d-->float """ n=str(input("Ingrese el nombre del cliente ")) m=float(input("Digite el monto de la compra ")) if(m<=50000): d=0 mp=m print((n)+", monto de la compra: $"+str(m)+", monto a pagar: $"+str(mp)+", descuento recibido: $"+str(d)) elif(m>50000 and m<=100000): d=m*0.05 mp=m-d print((n)+", monto de la compra: $"+str(m)+", monto a pagar: $"+str(mp)+", descuento recibido: $"+str(d)) elif(m>100000 and m<=700000): d=m*0.11 mp=m-d print((n)+", monto de la compra: $"+str(m)+", monto a pagar: $"+str(mp)+", descuento recibido: $"+str(d)) elif(m>700000 and m<=1500000): d=m*0.18 mp=m-d print((n)+", monto de la compra: $"+str(m)+", monto a pagar: $"+str(mp)+", descuento recibido: $"+str(d)) elif(m>1500000): d=m*0.25 mp=m-d print((n)+", monto de la compra: $"+str(m)+", monto a pagar: $"+str(mp)+", descuento recibido: $"+str(d))
""" Datos de entrada monto de la compra-->m-->float nombre del cliente-->n-->str Datos de salida nombre del cliente-->n-->str monto de la compra-->m-->float monto a pagar-->mp-->float descuento-->d-->float """ n = str(input('Ingrese el nombre del cliente ')) m = float(input('Digite el monto de la compra ')) if m <= 50000: d = 0 mp = m print(n + ', monto de la compra: $' + str(m) + ', monto a pagar: $' + str(mp) + ', descuento recibido: $' + str(d)) elif m > 50000 and m <= 100000: d = m * 0.05 mp = m - d print(n + ', monto de la compra: $' + str(m) + ', monto a pagar: $' + str(mp) + ', descuento recibido: $' + str(d)) elif m > 100000 and m <= 700000: d = m * 0.11 mp = m - d print(n + ', monto de la compra: $' + str(m) + ', monto a pagar: $' + str(mp) + ', descuento recibido: $' + str(d)) elif m > 700000 and m <= 1500000: d = m * 0.18 mp = m - d print(n + ', monto de la compra: $' + str(m) + ', monto a pagar: $' + str(mp) + ', descuento recibido: $' + str(d)) elif m > 1500000: d = m * 0.25 mp = m - d print(n + ', monto de la compra: $' + str(m) + ', monto a pagar: $' + str(mp) + ', descuento recibido: $' + str(d))
""" Module for processing and saving data for processing in the API. """ selected = None class Selection: def __init__(self, objtype: str, data): self.type = objtype self.data = data
""" Module for processing and saving data for processing in the API. """ selected = None class Selection: def __init__(self, objtype: str, data): self.type = objtype self.data = data
"""Utils for handling biological data""" genomeBuild2genMapSfx = { 'hg17': 'b35', 'hg18': 'b36', 'hg19': 'b37' }
"""Utils for handling biological data""" genome_build2gen_map_sfx = {'hg17': 'b35', 'hg18': 'b36', 'hg19': 'b37'}
#INCOMPLETE to_sort = [230, 6, 3, 234565, 9, 13000] def ins_sort(): for i in range(0, len(to_sort)): j=i for j in range(1, j+1): if to_sort[j+1]<to_sort[j]: val=to_sort[j+1] to_sort[j+1]=to_sort[j] to_sort[j]=val print(to_sort)
to_sort = [230, 6, 3, 234565, 9, 13000] def ins_sort(): for i in range(0, len(to_sort)): j = i for j in range(1, j + 1): if to_sort[j + 1] < to_sort[j]: val = to_sort[j + 1] to_sort[j + 1] = to_sort[j] to_sort[j] = val print(to_sort)
# ******************************************************************************************* # ******************************************************************************************* # # Name : gencpu.py # Purpose : Generate the CPU core (not B) in C # Date : 27th August 2019 # Author : Paul Robson (paul@robsons.org.uk) # # ******************************************************************************************* # ******************************************************************************************* # # Work out the mnemonic for Non-B opcode. # def getMnemonic(opcode): m = ["ldr","str","add","sub","and","xor","ror","skb"][opcode >> 4] m = m + ("f" if (opcode & 0x08) != 0 else "") m = m + " ra," if (opcode & 0x04) != 0: m = m + "#nnn" else: m = m + ["rb","(rb)","-(rb)","(rb)+"][opcode & 3] return m # # EAC on mode (01,10,11) # def effectiveAddress(mode): if (mode == 2): print("\tR[RB]--;") print("\tMA = R[RB];") if (mode == 3): print("\tR[RB]++;") # # Generate opcodes to STDOUT. # for opcode in range(0,128): # High opcode byte. isStore = (opcode >> 4) == 1 # Store is a little different reject = isStore and (opcode & 0x04) != 0 if not reject: mnemonic = getMnemonic(opcode) # print("case 0x{0:02x}: /*** ${0:02x} {1:12} ***/".format(opcode,mnemonic)) # print("\tRA = (IR & 0x0F);") if (opcode & 0x04) != 0: # immediate mode. print("\tMB = (IR >> 4) & 0x3F;") # immediate constant. else: print("\tRB = (IR >> 4) & 0x0F;") # working RHS register if not isStore: # store is handled seperately. if (opcode & 0x03) == 0: # direct mode. print("\tMB = R[RB];") # data is register direct else: effectiveAddress(opcode & 0x03) # do EAC. print("\tREAD();") # and read it. # if (opcode >> 4) == 0: # LDR print("\tR[RA] = MB;") # if (opcode >> 4) == 1: # STR if (opcode & 3) == 0: # Direct print("\tR[RB] = R[RA];") else: effectiveAddress(opcode & 3) print("\tMB = R[RA];") print("\tWRITE();") # if (opcode >> 4) == 2: # ADD if (opcode & 0x08) == 0: print("\tR[RA] += MB;") else: print("\tADD32(MB,0);") # if (opcode >> 4) == 3: # SUB if (opcode & 0x08) == 0: print("\tR[RA] -= MB;") else: print("\tADD32(MB^0xFFFF,1);") # if (opcode >> 4) == 4: # AND print("\tR[RA] &= MB;") # if (opcode >> 4) == 5: # XOR print("\tR[RA] ^= MB;") # if (opcode >> 4) == 6: # ROR print("\tR[RA] = (MB >> 1)|(MB << 15);") # if (opcode >> 4) == 7: # SKB print("\tif ((R[RA] & MB) == MB) R[15]++;") # if (opcode & 0x08) != 0: # Flag bit set. if (opcode >> 4) == 2 or (opcode >> 4) == 3: # Handle C NC M P Z NZ print("\tSETFLAGS_CNZ();") else: # Handle 0 1 M P Z NZ print("\tSETFLAGS_NZ();") # print("\tbreak;\n")
def get_mnemonic(opcode): m = ['ldr', 'str', 'add', 'sub', 'and', 'xor', 'ror', 'skb'][opcode >> 4] m = m + ('f' if opcode & 8 != 0 else '') m = m + ' ra,' if opcode & 4 != 0: m = m + '#nnn' else: m = m + ['rb', '(rb)', '-(rb)', '(rb)+'][opcode & 3] return m def effective_address(mode): if mode == 2: print('\tR[RB]--;') print('\tMA = R[RB];') if mode == 3: print('\tR[RB]++;') for opcode in range(0, 128): is_store = opcode >> 4 == 1 reject = isStore and opcode & 4 != 0 if not reject: mnemonic = get_mnemonic(opcode) print('case 0x{0:02x}: /*** ${0:02x} {1:12} ***/'.format(opcode, mnemonic)) print('\tRA = (IR & 0x0F);') if opcode & 4 != 0: print('\tMB = (IR >> 4) & 0x3F;') else: print('\tRB = (IR >> 4) & 0x0F;') if not isStore: if opcode & 3 == 0: print('\tMB = R[RB];') else: effective_address(opcode & 3) print('\tREAD();') if opcode >> 4 == 0: print('\tR[RA] = MB;') if opcode >> 4 == 1: if opcode & 3 == 0: print('\tR[RB] = R[RA];') else: effective_address(opcode & 3) print('\tMB = R[RA];') print('\tWRITE();') if opcode >> 4 == 2: if opcode & 8 == 0: print('\tR[RA] += MB;') else: print('\tADD32(MB,0);') if opcode >> 4 == 3: if opcode & 8 == 0: print('\tR[RA] -= MB;') else: print('\tADD32(MB^0xFFFF,1);') if opcode >> 4 == 4: print('\tR[RA] &= MB;') if opcode >> 4 == 5: print('\tR[RA] ^= MB;') if opcode >> 4 == 6: print('\tR[RA] = (MB >> 1)|(MB << 15);') if opcode >> 4 == 7: print('\tif ((R[RA] & MB) == MB) R[15]++;') if opcode & 8 != 0: if opcode >> 4 == 2 or opcode >> 4 == 3: print('\tSETFLAGS_CNZ();') else: print('\tSETFLAGS_NZ();') print('\tbreak;\n')