content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
"""Scale a group of active objects up/down as required""" class ScalingGroup: """Scale collection of objects up/down to meet criteria""" def __init__(self, object_pool): self.object_pool = object_pool self.instances = [] def scale_to(self, number): """Adjust number of instances to match number""" current_number = len(self.instances) if current_number < number: # Scale up for _ in range(number - current_number): obj = self.object_pool.acquire() self.instances.append(obj) elif current_number > number: # Scale down for obj in self.instances[number:]: self.object_pool.release(obj) self.instances = self.instances[:number]
"""Scale a group of active objects up/down as required""" class Scalinggroup: """Scale collection of objects up/down to meet criteria""" def __init__(self, object_pool): self.object_pool = object_pool self.instances = [] def scale_to(self, number): """Adjust number of instances to match number""" current_number = len(self.instances) if current_number < number: for _ in range(number - current_number): obj = self.object_pool.acquire() self.instances.append(obj) elif current_number > number: for obj in self.instances[number:]: self.object_pool.release(obj) self.instances = self.instances[:number]
num_acc=int(input()) accounts={} for i in range(num_acc): p,b = input().split() accounts[p] = int(b) #print (accounts) num_t=int(input()) trans=[] for i in range(num_t): pf,pt,c,t = input().split() trans.append((int(t),pf,pt,int(c))) trans = sorted(trans) for i in trans: accounts[i[1]]-=i[3] accounts[i[2]]+=i[3] print (num_acc) for i in accounts.keys(): print(i,accounts[i])
num_acc = int(input()) accounts = {} for i in range(num_acc): (p, b) = input().split() accounts[p] = int(b) num_t = int(input()) trans = [] for i in range(num_t): (pf, pt, c, t) = input().split() trans.append((int(t), pf, pt, int(c))) trans = sorted(trans) for i in trans: accounts[i[1]] -= i[3] accounts[i[2]] += i[3] print(num_acc) for i in accounts.keys(): print(i, accounts[i])
count = 1 def show_title(msg): global count print('\n') print('#' * 30) print(count, '.', msg) print('#' * 30) count += 1
count = 1 def show_title(msg): global count print('\n') print('#' * 30) print(count, '.', msg) print('#' * 30) count += 1
# result = 5/3 # if result: data = ['asdf', '123', 'Aa'] names = ['asdf', '123', 'Aa'] # builtin functions that operate on sequences # zip # max # min # sum sum([1, 2, 3]) # generator expressions print(sum(len(x) for x in data)) # all # any print(all(len(x) > 2 for x in data)) print(any(len(x) > 2 for x in data)) # enumerate # reversed for x in reversed(data): pass get_len = lambda x: len(x) def get_length(x): # equiv to "len" or "lambda x: len(x)" return len(x) def get_second_item(x): # equiv to lambda x: x[1] return x[1] # sorted print(sorted(data)) print(sorted(data, key=len)) print(sorted(data, key=get_len)) print(sorted(data, key=get_length)) print(sorted(data, key=(lambda x: len(x)))) print(sorted(names, key=lambda name: name[1])) # result = [] # for x in data: # if len(x) > 3: # result.append(x) # functional programming type functions # filter print(list(filter((lambda x: len(x) > 3), data))) # comprehension syntax is sometimes preferred to using filter print([x for x in data if len(x) > 3]) # map print(list(map((lambda x: len(x) > 3), data))) print(list(map((lambda x: len(x)), data))) print([len(x) for x in data if len(x) > 2]) # reduce def get_length_and_first_two_chars(string): return len(string), string[0], string[1] l, *_ = get_length_and_first_two_chars('abcdef') print(get_length_and_first_two_chars('abcdef')) one_million = 1_000_000 # sometimes you want to define a function # that can take in any of many optional parameters def print_all_args(*args, do_thing = False, **kwargs): # if len(args) == 1 and type(args[0]) == 'int': print(args) print(kwargs) def helper_function(commonly_used_arg, *args, **kwargs): print_all_args(1, commonly_used_arg, 3, '45', *args, myarg=5, do_thing=True, custom_option=False, **kwargs)
data = ['asdf', '123', 'Aa'] names = ['asdf', '123', 'Aa'] sum([1, 2, 3]) print(sum((len(x) for x in data))) print(all((len(x) > 2 for x in data))) print(any((len(x) > 2 for x in data))) for x in reversed(data): pass get_len = lambda x: len(x) def get_length(x): return len(x) def get_second_item(x): return x[1] print(sorted(data)) print(sorted(data, key=len)) print(sorted(data, key=get_len)) print(sorted(data, key=get_length)) print(sorted(data, key=lambda x: len(x))) print(sorted(names, key=lambda name: name[1])) print(list(filter(lambda x: len(x) > 3, data))) print([x for x in data if len(x) > 3]) print(list(map(lambda x: len(x) > 3, data))) print(list(map(lambda x: len(x), data))) print([len(x) for x in data if len(x) > 2]) def get_length_and_first_two_chars(string): return (len(string), string[0], string[1]) (l, *_) = get_length_and_first_two_chars('abcdef') print(get_length_and_first_two_chars('abcdef')) one_million = 1000000 def print_all_args(*args, do_thing=False, **kwargs): print(args) print(kwargs) def helper_function(commonly_used_arg, *args, **kwargs): print_all_args(1, commonly_used_arg, 3, '45', *args, myarg=5, do_thing=True, custom_option=False, **kwargs)
__copyright__ = "2015 Cisco Systems, Inc." # Define your areas here. you can add or remove area in areas_container areas_container = [ { "areaId": "area1", "areaName": "Area Name 1", "dimension": { "length": 100, "offsetX": 0, "offsetY": 0, "unit": "FEET", "width": 100 }, "floorRefId": "723402329507758200" }, { "areaId": "area2", "areaName": "Area Name 2", "dimension": { "length": 500, "offsetX": 0, "offsetY": 100, "unit": "FEET", "width": 500 }, "floorRefId": "723402329507758200" }, { "areaId": "area3", "areaName": "Area Name 3", "dimension": { "length": 100, "offsetX": 100, "offsetY": 0, "unit": "FEET", "width": 100 }, "floorRefId": "723402329507758200" } ] # none area area_none = { "areaId": "none" }
__copyright__ = '2015 Cisco Systems, Inc.' areas_container = [{'areaId': 'area1', 'areaName': 'Area Name 1', 'dimension': {'length': 100, 'offsetX': 0, 'offsetY': 0, 'unit': 'FEET', 'width': 100}, 'floorRefId': '723402329507758200'}, {'areaId': 'area2', 'areaName': 'Area Name 2', 'dimension': {'length': 500, 'offsetX': 0, 'offsetY': 100, 'unit': 'FEET', 'width': 500}, 'floorRefId': '723402329507758200'}, {'areaId': 'area3', 'areaName': 'Area Name 3', 'dimension': {'length': 100, 'offsetX': 100, 'offsetY': 0, 'unit': 'FEET', 'width': 100}, 'floorRefId': '723402329507758200'}] area_none = {'areaId': 'none'}
# apis_v1/documentation_source/voter_guide_possibility_retrieve_doc.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- def voter_guide_possibility_retrieve_doc_template_values(url_root): """ Show documentation about voterGuidePossibilityRetrieve """ required_query_parameter_list = [ { 'name': 'voter_device_id', 'value': 'string', # boolean, integer, long, string 'description': 'An 88 character unique identifier linked to a voter record on the server', }, { 'name': 'api_key', 'value': 'string (from post, cookie, or get (in that order))', # boolean, integer, long, string 'description': 'The unique key provided to any organization using the WeVoteServer APIs', }, ] optional_query_parameter_list = [ { 'name': 'url_to_scan', 'value': 'string', # boolean, integer, long, string 'description': 'The url where a voter guide can be found. ' 'Either this url or the voter_guide_possibility_id is required.', }, { 'name': 'voter_guide_possibility_id', 'value': 'integer', # boolean, integer, long, string 'description': 'Either this id or a url_to_scan is required.', }, ] potential_status_codes_list = [ { 'code': 'VALID_VOTER_DEVICE_ID_MISSING', 'description': 'Cannot proceed. A valid voter_device_id parameter was not included.', }, { 'code': 'VALID_VOTER_ID_MISSING', 'description': 'Cannot proceed. A valid voter_id was not found.', }, { 'code': 'VOTER_GUIDE_POSSIBILITY_NOT_FOUND', 'description': 'A voter guide possibility was not found at that URL.', }, { 'code': 'VOTER_GUIDE_POSSIBILITY_FOUND_WITH_URL', 'description': 'A voter guide possibility entry was found.', }, # { # 'code': '', # 'description': '', # }, ] try_now_link_variables_dict = { 'url_to_scan': 'https://projects.sfchronicle.com/2018/voter-guide/endorsements-list/', } api_response = '{\n' \ ' "status": string,\n' \ ' "success": boolean,\n' \ ' "candidate": dict\n' \ ' {\n' \ ' "candidate_we_vote_id": string,\n' \ ' "candidate_name": string,\n' \ ' "candidate_website": string,\n' \ ' "candidate_twitter_handle": string,\n' \ ' "candidate_email": string,\n' \ ' "candidate_facebook": string,\n' \ ' "we_vote_hosted_profile_image_url_medium": string,\n'\ ' "we_vote_hosted_profile_image_url_tiny": string,\n' \ ' },\n' \ ' "candidates_missing_from_we_vote": boolean,\n' \ ' "cannot_find_endorsements": boolean,\n' \ ' "capture_detailed_comments": boolean,\n' \ ' "contributor_comments": string,\n' \ ' "contributor_email": string,\n' \ ' "hide_from_active_review": boolean,\n' \ ' "ignore_this_source": boolean,\n' \ ' "internal_notes": string,\n' \ ' "organization": dict\n' \ ' {\n' \ ' "organization_we_vote_id": string,\n' \ ' "organization_name": string,\n' \ ' "organization_website": string,\n' \ ' "organization_twitter_handle": string,\n' \ ' "organization_email": string,\n' \ ' "organization_facebook": string,\n' \ ' "we_vote_hosted_profile_image_url_medium": string,\n'\ ' "we_vote_hosted_profile_image_url_tiny": string,\n' \ ' },\n' \ ' "possible_candidate_name": string,\n' \ ' "possible_candidate_twitter_handle": string,\n' \ ' "possible_owner_of_website_candidates_list": list,\n' \ ' [\n' \ ' {\n' \ ' "candidate_we_vote_id": string,\n' \ ' "candidate_name": string,\n' \ ' "candidate_website": string,\n' \ ' "candidate_twitter_handle": string,\n' \ ' "candidate_email": string,\n' \ ' "candidate_facebook": string,\n' \ ' "candidate_photo_url_medium": string,\n'\ ' "candidate_photo_url_tiny": string,\n' \ ' },\n' \ ' ]\n' \ ' "possible_organization_name": string,\n' \ ' "possible_organization_twitter_handle": string,\n' \ ' "possible_owner_of_website_organizations_list": list,\n' \ ' [\n' \ ' {\n' \ ' "organization_id": integer,\n' \ ' "organization_we_vote_id": string,\n' \ ' "organization_name": string,\n' \ ' "organization_website": string,\n' \ ' "organization_twitter_handle": string,\n' \ ' "organization_email": string,\n' \ ' "organization_facebook": string,\n' \ ' "organization_photo_url_medium": string,\n'\ ' "organization_photo_url_tiny": string,\n' \ ' },\n' \ ' ]\n' \ ' "limit_to_this_state_code": string,\n' \ ' "url_to_scan": string,\n' \ ' "voter_device_id": string (88 characters long),\n' \ ' "voter_guide_possibility_edit": string,\n' \ ' "voter_guide_possibility_id": integer,\n' \ ' "voter_guide_possibility_type": string,\n' \ '}' template_values = { 'api_name': 'voterGuidePossibilityRetrieve', 'api_slug': 'voterGuidePossibilityRetrieve', 'api_introduction': "Has a particular web page URL been captured as a possible voter guide?", 'try_now_link': 'apis_v1:voterGuidePossibilityRetrieveView', 'try_now_link_variables_dict': try_now_link_variables_dict, 'url_root': url_root, 'get_or_post': 'GET', 'required_query_parameter_list': required_query_parameter_list, 'optional_query_parameter_list': optional_query_parameter_list, 'api_response': api_response, 'api_response_notes': "", 'potential_status_codes_list': potential_status_codes_list, } return template_values
def voter_guide_possibility_retrieve_doc_template_values(url_root): """ Show documentation about voterGuidePossibilityRetrieve """ required_query_parameter_list = [{'name': 'voter_device_id', 'value': 'string', 'description': 'An 88 character unique identifier linked to a voter record on the server'}, {'name': 'api_key', 'value': 'string (from post, cookie, or get (in that order))', 'description': 'The unique key provided to any organization using the WeVoteServer APIs'}] optional_query_parameter_list = [{'name': 'url_to_scan', 'value': 'string', 'description': 'The url where a voter guide can be found. Either this url or the voter_guide_possibility_id is required.'}, {'name': 'voter_guide_possibility_id', 'value': 'integer', 'description': 'Either this id or a url_to_scan is required.'}] potential_status_codes_list = [{'code': 'VALID_VOTER_DEVICE_ID_MISSING', 'description': 'Cannot proceed. A valid voter_device_id parameter was not included.'}, {'code': 'VALID_VOTER_ID_MISSING', 'description': 'Cannot proceed. A valid voter_id was not found.'}, {'code': 'VOTER_GUIDE_POSSIBILITY_NOT_FOUND', 'description': 'A voter guide possibility was not found at that URL.'}, {'code': 'VOTER_GUIDE_POSSIBILITY_FOUND_WITH_URL', 'description': 'A voter guide possibility entry was found.'}] try_now_link_variables_dict = {'url_to_scan': 'https://projects.sfchronicle.com/2018/voter-guide/endorsements-list/'} api_response = '{\n "status": string,\n "success": boolean,\n "candidate": dict\n {\n "candidate_we_vote_id": string,\n "candidate_name": string,\n "candidate_website": string,\n "candidate_twitter_handle": string,\n "candidate_email": string,\n "candidate_facebook": string,\n "we_vote_hosted_profile_image_url_medium": string,\n "we_vote_hosted_profile_image_url_tiny": string,\n },\n "candidates_missing_from_we_vote": boolean,\n "cannot_find_endorsements": boolean,\n "capture_detailed_comments": boolean,\n "contributor_comments": string,\n "contributor_email": string,\n "hide_from_active_review": boolean,\n "ignore_this_source": boolean,\n "internal_notes": string,\n "organization": dict\n {\n "organization_we_vote_id": string,\n "organization_name": string,\n "organization_website": string,\n "organization_twitter_handle": string,\n "organization_email": string,\n "organization_facebook": string,\n "we_vote_hosted_profile_image_url_medium": string,\n "we_vote_hosted_profile_image_url_tiny": string,\n },\n "possible_candidate_name": string,\n "possible_candidate_twitter_handle": string,\n "possible_owner_of_website_candidates_list": list,\n [\n {\n "candidate_we_vote_id": string,\n "candidate_name": string,\n "candidate_website": string,\n "candidate_twitter_handle": string,\n "candidate_email": string,\n "candidate_facebook": string,\n "candidate_photo_url_medium": string,\n "candidate_photo_url_tiny": string,\n },\n ]\n "possible_organization_name": string,\n "possible_organization_twitter_handle": string,\n "possible_owner_of_website_organizations_list": list,\n [\n {\n "organization_id": integer,\n "organization_we_vote_id": string,\n "organization_name": string,\n "organization_website": string,\n "organization_twitter_handle": string,\n "organization_email": string,\n "organization_facebook": string,\n "organization_photo_url_medium": string,\n "organization_photo_url_tiny": string,\n },\n ]\n "limit_to_this_state_code": string,\n "url_to_scan": string,\n "voter_device_id": string (88 characters long),\n "voter_guide_possibility_edit": string,\n "voter_guide_possibility_id": integer,\n "voter_guide_possibility_type": string,\n}' template_values = {'api_name': 'voterGuidePossibilityRetrieve', 'api_slug': 'voterGuidePossibilityRetrieve', 'api_introduction': 'Has a particular web page URL been captured as a possible voter guide?', 'try_now_link': 'apis_v1:voterGuidePossibilityRetrieveView', 'try_now_link_variables_dict': try_now_link_variables_dict, 'url_root': url_root, 'get_or_post': 'GET', 'required_query_parameter_list': required_query_parameter_list, 'optional_query_parameter_list': optional_query_parameter_list, 'api_response': api_response, 'api_response_notes': '', 'potential_status_codes_list': potential_status_codes_list} return template_values
Errors = { 400: "BAD_REQUEST_BODY", 401: "UNAUTHORIZED", 403: "ACCESS_DENIED", 404: "NotFoundError", 406: "NotAcceptableError", 409: "ConflictError", 415: "UnsupportedMediaTypeError", 422: "UnprocessableEntityError", 429: "TooManyRequestsError", 500: "API_CONFIGURATION_ERROR", 502: "BadGatewayError", 503: "ServiceUnavailableError", 504: "GatewayTimeoutError" }
errors = {400: 'BAD_REQUEST_BODY', 401: 'UNAUTHORIZED', 403: 'ACCESS_DENIED', 404: 'NotFoundError', 406: 'NotAcceptableError', 409: 'ConflictError', 415: 'UnsupportedMediaTypeError', 422: 'UnprocessableEntityError', 429: 'TooManyRequestsError', 500: 'API_CONFIGURATION_ERROR', 502: 'BadGatewayError', 503: 'ServiceUnavailableError', 504: 'GatewayTimeoutError'}
response = {"username": "username", "password": "pass"} db = list() def add_user(user_obj): password = response.get("password") if len(password) < 5: return "Password is shorter than 5 characters." else: db.append(user_obj) return "User has been added." print(add_user(response)) print(db)
response = {'username': 'username', 'password': 'pass'} db = list() def add_user(user_obj): password = response.get('password') if len(password) < 5: return 'Password is shorter than 5 characters.' else: db.append(user_obj) return 'User has been added.' print(add_user(response)) print(db)
#errorcodes.py #version 2.0.6 errorList = ["no error", "error code 1", "mrBayes.py: Could not open quartets file", "mrBayes.py: Could not interpret quartets file", "mrBayes.py: Could not open translate file", "mrBayes.py: Could not interpret translate file", "mrBayes.py: Could not interpret condor job name", "mrBayes.py: Could not find tarfile", "mrBayes.py: Could not create data subdirectory", "mrBayes.py: Could not open tarfile", "mrBayes.py: Could not open list of gene files", "mrBayes.py: Could not get gene files from tarfile", "mrBayes.py: Could not get gene files from data directory", "mrBayes.py: Could not interpret read tar.gz", "mrBayes.py: Could not extract file from tar.gz", "mrBayes.py: Could not open gene file", "mrBayes.py: Could not interpret gene file", "mrBayes.py: Could not initialize quartet subset of gene file", "mrBayes.py: Could not write quartet subset of gene file", "mrBayes.py: Could not run mrBayes", "mrBayes.py: Filename mismatch", "mrBayes.py: Could not find expected mcmc output", "mrBayes.py: Could not run mbsum", "mrBayes.py: Could not delete temporary files", "mrBayes.py: Could not create or write results file", "mrBayes.py: Could not create gene group zip file", "mrBayes.py: Could not delete file after zipping", "mrBayes.py: Statistics do not add", "mrBayes.py: Could not write gene group zip file" "zip_mb_output.py: Could not interpret condor job name", "zip_mb_output.py: Could not open target tar file", "zip_mb_output.py: Could not open input tar.gz", "zip_mb_output.py: Could not extract .in file", "zip_mb_output.py: Could not add .in file", "zip_mb_output.py: Could not delete .in file", "zip_mb_output.py: Could not delete input tar.gz", "zip_mb_output.py: Could not get directory.", "zip_mb_output.py: No input tar.gz found", "post_organize: missing node return status", "post_organize: organize.submit returned an error value", "post_organize: Could not update QuartetAnalysis metafile", "post_organize: Could not interpret QuartetAnalysis metafile", "post_organize: missing output suffix", "report_results: missing node return status" "report_results: missing job name", "report_results: run_mrbayes.submit returned a non-zero value", "report_results: Could not read new stats from file", "report_results: Could not open QuartetAnalysis metafile", "report_results: Could not create new statistics line", "report_results: Could not interpret QuartetAnalysis metafile", "report_results: Could not delete stats file", "report_results: missing output suffix", "delete_mb_output: missing node return status", "delete_mb_output: missing job name", "delete_mb_output: error finding quartet index", "delete_mb_output: Could not open QuartetAnalysis metafile", "delete_mb_output: Could not interpret QuartetAnalysis metafile", "delete_mb_output: Could not delete bucky results file", "delete_mb_output: missing output suffix", "fileWriter_condor: Could not initialize", "fileWriter_condor: Less than four taxa found", "fileWriter_condor: Could not open new nexus file", "fileWriter_condor: Could not create or write header", "fileWriter_condor: Could not write data", "fileWriter_condor: Could not write END to data block", "fileWriter_condor: Could not write MrBayes Block", "fileWriter_condor: Could not close new nexus file", "run_bucky.py: Could not open/interpret translate file", "run_bucky.py: Could not interpret job name", "run_bucky.py: Could not interpret gene file", "run_bucky.py: could not open/interpret quartet file in mrBayes.py", "run_bucky.py: number of gene files is zero", "run_bucky.py: could not open/interpret QuartetAnalysis metafile", "run_bucky.py: could not open tar file with mrBayes/mbsum results", "run_bucky.py: mrBayes/mbsum results empty", "run_bucky.py: mrBayes/mbsum results too few", "run_bucky.py: could not extract files from .tar.gz", "run_bucky.py: error in BUCKy", "run_bucky.py: could not write gene stats", "run_bucky.py: could not make gene dictionary", "run_bucky.py: error writing results", "run_bucky.py: error deleting files.", "mrBayes.py: Execution failed", "mrBayes.py: Unknown mrBayes execution error" ] def findErrorCode(errorString): try: errorCode = errorList.index(errorString) except: errorCode = -1 return errorCode def errorString(errorCode): if( errorCode == -1 ): return "unknown error code" try: errorString = errorList[errorCode] except: errorString = "unknown error code" return errorString
error_list = ['no error', 'error code 1', 'mrBayes.py: Could not open quartets file', 'mrBayes.py: Could not interpret quartets file', 'mrBayes.py: Could not open translate file', 'mrBayes.py: Could not interpret translate file', 'mrBayes.py: Could not interpret condor job name', 'mrBayes.py: Could not find tarfile', 'mrBayes.py: Could not create data subdirectory', 'mrBayes.py: Could not open tarfile', 'mrBayes.py: Could not open list of gene files', 'mrBayes.py: Could not get gene files from tarfile', 'mrBayes.py: Could not get gene files from data directory', 'mrBayes.py: Could not interpret read tar.gz', 'mrBayes.py: Could not extract file from tar.gz', 'mrBayes.py: Could not open gene file', 'mrBayes.py: Could not interpret gene file', 'mrBayes.py: Could not initialize quartet subset of gene file', 'mrBayes.py: Could not write quartet subset of gene file', 'mrBayes.py: Could not run mrBayes', 'mrBayes.py: Filename mismatch', 'mrBayes.py: Could not find expected mcmc output', 'mrBayes.py: Could not run mbsum', 'mrBayes.py: Could not delete temporary files', 'mrBayes.py: Could not create or write results file', 'mrBayes.py: Could not create gene group zip file', 'mrBayes.py: Could not delete file after zipping', 'mrBayes.py: Statistics do not add', 'mrBayes.py: Could not write gene group zip filezip_mb_output.py: Could not interpret condor job name', 'zip_mb_output.py: Could not open target tar file', 'zip_mb_output.py: Could not open input tar.gz', 'zip_mb_output.py: Could not extract .in file', 'zip_mb_output.py: Could not add .in file', 'zip_mb_output.py: Could not delete .in file', 'zip_mb_output.py: Could not delete input tar.gz', 'zip_mb_output.py: Could not get directory.', 'zip_mb_output.py: No input tar.gz found', 'post_organize: missing node return status', 'post_organize: organize.submit returned an error value', 'post_organize: Could not update QuartetAnalysis metafile', 'post_organize: Could not interpret QuartetAnalysis metafile', 'post_organize: missing output suffix', 'report_results: missing node return statusreport_results: missing job name', 'report_results: run_mrbayes.submit returned a non-zero value', 'report_results: Could not read new stats from file', 'report_results: Could not open QuartetAnalysis metafile', 'report_results: Could not create new statistics line', 'report_results: Could not interpret QuartetAnalysis metafile', 'report_results: Could not delete stats file', 'report_results: missing output suffix', 'delete_mb_output: missing node return status', 'delete_mb_output: missing job name', 'delete_mb_output: error finding quartet index', 'delete_mb_output: Could not open QuartetAnalysis metafile', 'delete_mb_output: Could not interpret QuartetAnalysis metafile', 'delete_mb_output: Could not delete bucky results file', 'delete_mb_output: missing output suffix', 'fileWriter_condor: Could not initialize', 'fileWriter_condor: Less than four taxa found', 'fileWriter_condor: Could not open new nexus file', 'fileWriter_condor: Could not create or write header', 'fileWriter_condor: Could not write data', 'fileWriter_condor: Could not write END to data block', 'fileWriter_condor: Could not write MrBayes Block', 'fileWriter_condor: Could not close new nexus file', 'run_bucky.py: Could not open/interpret translate file', 'run_bucky.py: Could not interpret job name', 'run_bucky.py: Could not interpret gene file', 'run_bucky.py: could not open/interpret quartet file in mrBayes.py', 'run_bucky.py: number of gene files is zero', 'run_bucky.py: could not open/interpret QuartetAnalysis metafile', 'run_bucky.py: could not open tar file with mrBayes/mbsum results', 'run_bucky.py: mrBayes/mbsum results empty', 'run_bucky.py: mrBayes/mbsum results too few', 'run_bucky.py: could not extract files from .tar.gz', 'run_bucky.py: error in BUCKy', 'run_bucky.py: could not write gene stats', 'run_bucky.py: could not make gene dictionary', 'run_bucky.py: error writing results', 'run_bucky.py: error deleting files.', 'mrBayes.py: Execution failed', 'mrBayes.py: Unknown mrBayes execution error'] def find_error_code(errorString): try: error_code = errorList.index(errorString) except: error_code = -1 return errorCode def error_string(errorCode): if errorCode == -1: return 'unknown error code' try: error_string = errorList[errorCode] except: error_string = 'unknown error code' return errorString
size_matrix = int(input()) matrix = [] pls = [] for i in range(size_matrix): matrix.append([x for x in input()]) for row in range(size_matrix): for col in range(size_matrix): if matrix[row][col] == 'B': pls.append((row, col)) count_food = 0 for row in range(size_matrix): for col in range(size_matrix): if matrix[row][col] == '*': count_food += 1 row_s = 0 col_s = 0 for search_s in matrix: if "S" in search_s: col_s = search_s.index("S") break else: row_s += 1 first_position_s = matrix[row_s][col_s] countar_stop_food = 0 if pls: exit_B_row = int(pls[1][0]) exit_B_col = int(pls[1][1]) while True: command = input() if not command: break if command == "up": if row_s - 1 >= 0: if matrix[row_s - 1][col_s] == "B": matrix[row_s][col_s] = "." matrix[row_s - 1][col_s] = "." matrix[exit_B_row][exit_B_col] = "S" row_s = exit_B_row col_s = exit_B_col elif matrix[row_s - 1][col_s] == "*": matrix[row_s][col_s] = "." matrix[row_s - 1][col_s] = "S" countar_stop_food += 1 row_s -= 1 if countar_stop_food == 10: print("You won! You fed the snake.") print("Food eaten: 10") for d in matrix: print(''.join(d)) exit() elif matrix[row_s - 1][col_s] == "-": matrix[row_s - 1][col_s] = "S" matrix[row_s][col_s] = "." row_s -= 1 else: matrix[row_s][col_s] = "." print("Game over!") print(f"Food eaten: {countar_stop_food}") for d in matrix: print(''.join(d)) exit() elif command == "down": if row_s + 1 < len(matrix): if matrix[row_s + 1][col_s] == "B": matrix[row_s][col_s] = "." matrix[row_s + 1][col_s] = "." matrix[exit_B_row][exit_B_col] = "S" row_s = exit_B_row col_s = exit_B_col elif matrix[row_s + 1][col_s] == "*": matrix[row_s][col_s] = "." matrix[row_s + 1][col_s] = "S" countar_stop_food += 1 row_s += 1 if countar_stop_food == 10: print("You won! You fed the snake.") print("Food eaten: 10") for d in matrix: print(''.join(d)) exit() elif matrix[row_s + 1][col_s] == "-": matrix[row_s + 1][col_s] = "S" matrix[row_s][col_s] = "." row_s += 1 else: matrix[row_s][col_s] = "." print("Game over!") print(f"Food eaten: {countar_stop_food}") for d in matrix: print(''.join(d)) exit() elif command == "left": if col_s - 1 >= 0: if matrix[row_s][col_s - 1] == "B": matrix[row_s][col_s] = "." matrix[row_s][col_s - 1] = "." matrix[exit_B_row][exit_B_col] = "S" row_s = exit_B_row col_s = exit_B_col elif matrix[row_s][col_s - 1] == "*": matrix[row_s][col_s] = "." matrix[row_s][col_s - 1] = "S" countar_stop_food += 1 col_s -= 1 if countar_stop_food == 10: print("You won! You fed the snake.") print("Food eaten: 10") for d in matrix: print(''.join(d)) exit() elif matrix[row_s][col_s - 1] == "-": matrix[row_s][col_s - 1] = "S" matrix[row_s][col_s] = "." col_s -= 1 else: matrix[row_s][col_s] = "." print("Game over!") print(f"Food eaten: {countar_stop_food}") for l in matrix: print(''.join(l)) exit() elif command == "right": if col_s + 1 < len(matrix): if matrix[row_s][col_s + 1] == "B": matrix[row_s][col_s] = "." matrix[row_s][col_s + 1] = "." matrix[exit_B_row][exit_B_col] = "S" row_s = exit_B_row col_s = exit_B_col elif matrix[row_s][col_s + 1] == "*": matrix[row_s][col_s] = "." matrix[row_s][col_s + 1] = "S" countar_stop_food += 1 col_s += 1 if countar_stop_food == 10: print("You won! You fed the snake.") print("Food eaten: 10") for r in matrix: print(''.join(r)) exit() elif matrix[row_s][col_s + 1] == "-": matrix[row_s][col_s + 1] = "S" matrix[row_s][col_s] = "." col_s += 1 else: matrix[row_s][col_s] = "." print("Game over!") print(f"Food eaten: {countar_stop_food}") for r in matrix: print(''.join(r)) exit()
size_matrix = int(input()) matrix = [] pls = [] for i in range(size_matrix): matrix.append([x for x in input()]) for row in range(size_matrix): for col in range(size_matrix): if matrix[row][col] == 'B': pls.append((row, col)) count_food = 0 for row in range(size_matrix): for col in range(size_matrix): if matrix[row][col] == '*': count_food += 1 row_s = 0 col_s = 0 for search_s in matrix: if 'S' in search_s: col_s = search_s.index('S') break else: row_s += 1 first_position_s = matrix[row_s][col_s] countar_stop_food = 0 if pls: exit_b_row = int(pls[1][0]) exit_b_col = int(pls[1][1]) while True: command = input() if not command: break if command == 'up': if row_s - 1 >= 0: if matrix[row_s - 1][col_s] == 'B': matrix[row_s][col_s] = '.' matrix[row_s - 1][col_s] = '.' matrix[exit_B_row][exit_B_col] = 'S' row_s = exit_B_row col_s = exit_B_col elif matrix[row_s - 1][col_s] == '*': matrix[row_s][col_s] = '.' matrix[row_s - 1][col_s] = 'S' countar_stop_food += 1 row_s -= 1 if countar_stop_food == 10: print('You won! You fed the snake.') print('Food eaten: 10') for d in matrix: print(''.join(d)) exit() elif matrix[row_s - 1][col_s] == '-': matrix[row_s - 1][col_s] = 'S' matrix[row_s][col_s] = '.' row_s -= 1 else: matrix[row_s][col_s] = '.' print('Game over!') print(f'Food eaten: {countar_stop_food}') for d in matrix: print(''.join(d)) exit() elif command == 'down': if row_s + 1 < len(matrix): if matrix[row_s + 1][col_s] == 'B': matrix[row_s][col_s] = '.' matrix[row_s + 1][col_s] = '.' matrix[exit_B_row][exit_B_col] = 'S' row_s = exit_B_row col_s = exit_B_col elif matrix[row_s + 1][col_s] == '*': matrix[row_s][col_s] = '.' matrix[row_s + 1][col_s] = 'S' countar_stop_food += 1 row_s += 1 if countar_stop_food == 10: print('You won! You fed the snake.') print('Food eaten: 10') for d in matrix: print(''.join(d)) exit() elif matrix[row_s + 1][col_s] == '-': matrix[row_s + 1][col_s] = 'S' matrix[row_s][col_s] = '.' row_s += 1 else: matrix[row_s][col_s] = '.' print('Game over!') print(f'Food eaten: {countar_stop_food}') for d in matrix: print(''.join(d)) exit() elif command == 'left': if col_s - 1 >= 0: if matrix[row_s][col_s - 1] == 'B': matrix[row_s][col_s] = '.' matrix[row_s][col_s - 1] = '.' matrix[exit_B_row][exit_B_col] = 'S' row_s = exit_B_row col_s = exit_B_col elif matrix[row_s][col_s - 1] == '*': matrix[row_s][col_s] = '.' matrix[row_s][col_s - 1] = 'S' countar_stop_food += 1 col_s -= 1 if countar_stop_food == 10: print('You won! You fed the snake.') print('Food eaten: 10') for d in matrix: print(''.join(d)) exit() elif matrix[row_s][col_s - 1] == '-': matrix[row_s][col_s - 1] = 'S' matrix[row_s][col_s] = '.' col_s -= 1 else: matrix[row_s][col_s] = '.' print('Game over!') print(f'Food eaten: {countar_stop_food}') for l in matrix: print(''.join(l)) exit() elif command == 'right': if col_s + 1 < len(matrix): if matrix[row_s][col_s + 1] == 'B': matrix[row_s][col_s] = '.' matrix[row_s][col_s + 1] = '.' matrix[exit_B_row][exit_B_col] = 'S' row_s = exit_B_row col_s = exit_B_col elif matrix[row_s][col_s + 1] == '*': matrix[row_s][col_s] = '.' matrix[row_s][col_s + 1] = 'S' countar_stop_food += 1 col_s += 1 if countar_stop_food == 10: print('You won! You fed the snake.') print('Food eaten: 10') for r in matrix: print(''.join(r)) exit() elif matrix[row_s][col_s + 1] == '-': matrix[row_s][col_s + 1] = 'S' matrix[row_s][col_s] = '.' col_s += 1 else: matrix[row_s][col_s] = '.' print('Game over!') print(f'Food eaten: {countar_stop_food}') for r in matrix: print(''.join(r)) exit()
"""createwxdb configuration information. """ #: MongoDb URI where fisb_location DB is located. MONGO_URI = 'mongodb://localhost:27017/'
"""createwxdb configuration information. """ mongo_uri = 'mongodb://localhost:27017/'
+ utility('transmissionMgmt',50) + requiresFunction('transmissionMgmt','transmissionF') + utility('transmissionF',100) + requiresFunction('transmissionF','opcF') + implements('opcF','opc',0) + consumesData('transmissionMgmt','engineerWorkstation','statusRestData',False,0,True,1,True,0.5) #Allocation/Deployments +isType('opc','service') +isType('switchA','switch') + networkConnectsToWithAttributes('opc','switchA',True,True,True) #Style validConnection(SourceService,TargetService) <= isType(SourceService,'switch') & isType(TargetService,'service')
+utility('transmissionMgmt', 50) +requires_function('transmissionMgmt', 'transmissionF') +utility('transmissionF', 100) +requires_function('transmissionF', 'opcF') +implements('opcF', 'opc', 0) +consumes_data('transmissionMgmt', 'engineerWorkstation', 'statusRestData', False, 0, True, 1, True, 0.5) +is_type('opc', 'service') +is_type('switchA', 'switch') +network_connects_to_with_attributes('opc', 'switchA', True, True, True) valid_connection(SourceService, TargetService) <= is_type(SourceService, 'switch') & is_type(TargetService, 'service')
class AsyncSerialPy3Mixin: async def read_exactly(self, n): data = bytearray() while len(data) < n: remaining = n - len(data) data += await self.read(remaining) return data async def write_exactly(self, data): while data: res = await self.write(data) data = data[res:]
class Asyncserialpy3Mixin: async def read_exactly(self, n): data = bytearray() while len(data) < n: remaining = n - len(data) data += await self.read(remaining) return data async def write_exactly(self, data): while data: res = await self.write(data) data = data[res:]
def test_clear_group(app): while 0 != app.group.count_groups(): app.group.delete_first_group() else: print("Group list is already empty")
def test_clear_group(app): while 0 != app.group.count_groups(): app.group.delete_first_group() else: print('Group list is already empty')
def attritems(class_): def _getitem(self, key): return getattr(self, key) setattr(class_, '__getitem__', _getitem) if getattr(class_, '__setitem__', None): delattr(class_, '__setitem__') if getattr(class_, '__delitem__', None): delattr(class_, '__delitem__') return class_ @attritems class Foo: def __init__(self): self.a = 'hello' self.b = 'world' f = Foo() assert f['a'] == 'hello' assert f['b'] == 'world'
def attritems(class_): def _getitem(self, key): return getattr(self, key) setattr(class_, '__getitem__', _getitem) if getattr(class_, '__setitem__', None): delattr(class_, '__setitem__') if getattr(class_, '__delitem__', None): delattr(class_, '__delitem__') return class_ @attritems class Foo: def __init__(self): self.a = 'hello' self.b = 'world' f = foo() assert f['a'] == 'hello' assert f['b'] == 'world'
""" # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ class Solution: def postorder(self, root: 'Node') -> List[int]: if not root: return [] result, q = [], [root] while q: node = q.pop() result.append(node.val) q.extend(node.children) return result[::-1]
""" # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ class Solution: def postorder(self, root: 'Node') -> List[int]: if not root: return [] (result, q) = ([], [root]) while q: node = q.pop() result.append(node.val) q.extend(node.children) return result[::-1]
BINGO_BOARD_LENGTH = 5 class BingoField: def __init__(self, number): self.number = number self.marked = False class BingoBoard: def __init__(self, numbers: list): self.board = [[], [], [], [], []] self.already_won = False for row_idx, _ in enumerate(numbers): for number in numbers[row_idx]: self.board[row_idx].append(BingoField(int(number))) def mark_number(self, number): for row in self.board: for bingo_field in row: if bingo_field.number == number: bingo_field.marked = True self.check_for_win() def check_for_win(self): for row in self.board: all_marked = True for bingo_field in row: if not bingo_field.marked: all_marked = False if all_marked: self.already_won = True for col_idx in range(len(self.board[0])): all_marked = True for row_idx in range(len(self.board)): if not self.board[row_idx][col_idx].marked: all_marked = False if all_marked: self.already_won = True def calculate_score(self, last_marked_number): score = 0 for row in self.board: for bingo_field in row: if not bingo_field.marked: score += bingo_field.number return score * last_marked_number def read_bingo_boards(lines: list): bingo_boards = [] current_board_numbers = [] for line in lines: if not line.strip() == '': current_board_numbers.append(line.strip().split()) if len(current_board_numbers) == BINGO_BOARD_LENGTH: bingo_boards.append(BingoBoard(current_board_numbers)) current_board_numbers = [] return bingo_boards def main(): lines = open('input.txt', 'r').readlines() drawn_numbers = lines[0].split(',') bingo_boards = read_bingo_boards(lines[2:]) board_to_check = None score_printed = False for drawn_number in drawn_numbers: if not score_printed: for bingo_board in bingo_boards: bingo_board.mark_number(int(drawn_number)) boards_not_yet_won = [] for bingo_board in bingo_boards: if board_to_check is None and not bingo_board.already_won: boards_not_yet_won.append(bingo_board) if board_to_check is None and len(boards_not_yet_won) == 1: board_to_check = boards_not_yet_won[0] if board_to_check is not None: if board_to_check.already_won: print(board_to_check.calculate_score(int(drawn_number))) score_printed = True if __name__ == '__main__': main()
bingo_board_length = 5 class Bingofield: def __init__(self, number): self.number = number self.marked = False class Bingoboard: def __init__(self, numbers: list): self.board = [[], [], [], [], []] self.already_won = False for (row_idx, _) in enumerate(numbers): for number in numbers[row_idx]: self.board[row_idx].append(bingo_field(int(number))) def mark_number(self, number): for row in self.board: for bingo_field in row: if bingo_field.number == number: bingo_field.marked = True self.check_for_win() def check_for_win(self): for row in self.board: all_marked = True for bingo_field in row: if not bingo_field.marked: all_marked = False if all_marked: self.already_won = True for col_idx in range(len(self.board[0])): all_marked = True for row_idx in range(len(self.board)): if not self.board[row_idx][col_idx].marked: all_marked = False if all_marked: self.already_won = True def calculate_score(self, last_marked_number): score = 0 for row in self.board: for bingo_field in row: if not bingo_field.marked: score += bingo_field.number return score * last_marked_number def read_bingo_boards(lines: list): bingo_boards = [] current_board_numbers = [] for line in lines: if not line.strip() == '': current_board_numbers.append(line.strip().split()) if len(current_board_numbers) == BINGO_BOARD_LENGTH: bingo_boards.append(bingo_board(current_board_numbers)) current_board_numbers = [] return bingo_boards def main(): lines = open('input.txt', 'r').readlines() drawn_numbers = lines[0].split(',') bingo_boards = read_bingo_boards(lines[2:]) board_to_check = None score_printed = False for drawn_number in drawn_numbers: if not score_printed: for bingo_board in bingo_boards: bingo_board.mark_number(int(drawn_number)) boards_not_yet_won = [] for bingo_board in bingo_boards: if board_to_check is None and (not bingo_board.already_won): boards_not_yet_won.append(bingo_board) if board_to_check is None and len(boards_not_yet_won) == 1: board_to_check = boards_not_yet_won[0] if board_to_check is not None: if board_to_check.already_won: print(board_to_check.calculate_score(int(drawn_number))) score_printed = True if __name__ == '__main__': main()
x=input('first number?') y=input('second number?') outcome=int(x)*int(y) print (outcome)
x = input('first number?') y = input('second number?') outcome = int(x) * int(y) print(outcome)
# -*- coding: utf-8 -*- # ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### ''' ui_utils.py Some UI utility functions ''' class GUI: @classmethod def drawIconButton(cls, enabled, layout, iconName, operator, frame=True): col = layout.column() col.enabled = enabled bt = col.operator(operator, text='', icon=iconName, emboss=frame) @classmethod def drawTextButton(cls, enabled, layout, text, operator, frame=True): col = layout.column() col.enabled = enabled bt = col.operator(operator, text=text, emboss=frame)
""" ui_utils.py Some UI utility functions """ class Gui: @classmethod def draw_icon_button(cls, enabled, layout, iconName, operator, frame=True): col = layout.column() col.enabled = enabled bt = col.operator(operator, text='', icon=iconName, emboss=frame) @classmethod def draw_text_button(cls, enabled, layout, text, operator, frame=True): col = layout.column() col.enabled = enabled bt = col.operator(operator, text=text, emboss=frame)
def validate_extension(filename: str) -> bool: """ Validate file extension :param filename: file name as string :return: True if extension is allowed """ allowed_extensions = {'png', 'jpg', 'jpeg'} return '.' in filename and filename.rsplit('.', 1)[1].lower() in allowed_extensions
def validate_extension(filename: str) -> bool: """ Validate file extension :param filename: file name as string :return: True if extension is allowed """ allowed_extensions = {'png', 'jpg', 'jpeg'} return '.' in filename and filename.rsplit('.', 1)[1].lower() in allowed_extensions
''' Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. Implement KthLargest class: KthLargest(int k, int[] nums) Initializes the object with the integer k and the stream of integers nums. int add(int val) Appends the integer val to the stream and returns the element representing the kth largest element in the stream. ''' class TreeNode: def __init__(self, val, cnt=1, left=None, right=None): self.val = val self.cnt = cnt self.left = left self.right = right class KthLargest: def __init__(self, k: int, nums: List[int]): self.k = k if nums == []: self.root = None else: self.root = TreeNode(nums[0], ) for num in nums[1:]: self.add(num) def add(self, val: int) -> int: k = self.k if not self.root: self.root = TreeNode(val) else: stack = [self.root] while stack: node = stack.pop() node.cnt += 1 if node.left and node.val > val: stack.append(node.left) elif not node.left and node.val > val: node.left = TreeNode(val) elif node.right and node.val <= val: stack.append(node.right) elif not node.right and node.val <= val: node.right = TreeNode(val) ## search for the k-largest element stack = [self.root] if self.k > self.root.cnt: return while stack: root = stack.pop() if root.right and k > root.right.cnt + 1: stack.append(root.left) k -= root.right.cnt + 1 elif root.right and k == root.right.cnt + 1: return root.val elif not root.right and k > 1: stack.append(root.left) k -= 1 elif not root.right and k == 1: return root.val else: stack.append(root.right) # Your KthLargest object will be instantiated and called as such: # obj = KthLargest(k, nums) # param_1 = obj.add(val)
""" Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. Implement KthLargest class: KthLargest(int k, int[] nums) Initializes the object with the integer k and the stream of integers nums. int add(int val) Appends the integer val to the stream and returns the element representing the kth largest element in the stream. """ class Treenode: def __init__(self, val, cnt=1, left=None, right=None): self.val = val self.cnt = cnt self.left = left self.right = right class Kthlargest: def __init__(self, k: int, nums: List[int]): self.k = k if nums == []: self.root = None else: self.root = tree_node(nums[0]) for num in nums[1:]: self.add(num) def add(self, val: int) -> int: k = self.k if not self.root: self.root = tree_node(val) else: stack = [self.root] while stack: node = stack.pop() node.cnt += 1 if node.left and node.val > val: stack.append(node.left) elif not node.left and node.val > val: node.left = tree_node(val) elif node.right and node.val <= val: stack.append(node.right) elif not node.right and node.val <= val: node.right = tree_node(val) stack = [self.root] if self.k > self.root.cnt: return while stack: root = stack.pop() if root.right and k > root.right.cnt + 1: stack.append(root.left) k -= root.right.cnt + 1 elif root.right and k == root.right.cnt + 1: return root.val elif not root.right and k > 1: stack.append(root.left) k -= 1 elif not root.right and k == 1: return root.val else: stack.append(root.right)
# Challenge 9 : Write a function named same_values() that takes two lists of numbers of equal size as parameters. # The function should return a list of the indices where the values were equal in lst1 and lst2. # Date : Sun 07 Jun 2020 09:28:38 AM IST def same_values(lst1, lst2): newList = [] for i in range(len(lst1)): if lst1[i] == lst2[i]: newList.append(i) return newList print(same_values([5, 1, -10, 3, 3], [5, 10, -10, 3, 5]))
def same_values(lst1, lst2): new_list = [] for i in range(len(lst1)): if lst1[i] == lst2[i]: newList.append(i) return newList print(same_values([5, 1, -10, 3, 3], [5, 10, -10, 3, 5]))
def info(a): a = raw_input("type your height here: ") return a
def info(a): a = raw_input('type your height here: ') return a
class Solution(object): def toHex(self, num): """ :type num: int :rtype: str """ if num == 0: return '0' elif num < 0: num += 2**32 hex_chars, res = '0123456789abcdef', '' while num: res = hex_chars[num % 16] + res num /= 16 return res
class Solution(object): def to_hex(self, num): """ :type num: int :rtype: str """ if num == 0: return '0' elif num < 0: num += 2 ** 32 (hex_chars, res) = ('0123456789abcdef', '') while num: res = hex_chars[num % 16] + res num /= 16 return res
def strategy(history, memory): if memory is None: memory = (0, 0) defections = memory[0] count = memory[1] choice = 1 if count > 0: if count < defections: choice = 0 count += 1 elif count == defections: count += 1 elif count > defections: count = 0 elif history.shape[1] >= 1 and history[1,-1] == 0: # Choose to defect if and only if the opponent just defected. defections += 1 choice = 0 count = 1 return choice, (defections, count)
def strategy(history, memory): if memory is None: memory = (0, 0) defections = memory[0] count = memory[1] choice = 1 if count > 0: if count < defections: choice = 0 count += 1 elif count == defections: count += 1 elif count > defections: count = 0 elif history.shape[1] >= 1 and history[1, -1] == 0: defections += 1 choice = 0 count = 1 return (choice, (defections, count))
def get_2(digits, one, seven, four): for digit in digits: if len(digit - one - seven - four) == 2: return digit assert False, f"2 cannot be calculated from {digits=} using {one=}, {seven=} and {four=}" def get_3(digits, two): for digit in digits: if len(digit - two) == 1: return digit assert False, f"3 cannot be calculated from {digits=} using {two=}" def get_9(digits, three): for digit in digits: if len(digit - three) == 1: return digit assert False, f"9 cannot be calculated from {digits=} using {three=}" def get_0(digits, five): for digit in digits: if len(digit - five) == 2: return digit assert False, f"0 cannot be calculated from {digits=} using {five=}" def process_entry(patterns: list, output: list): one = [set(p) for p in patterns if len(p) == 2][0] seven = [set(p) for p in patterns if len(p) == 3][0] four = [set(p) for p in patterns if len(p) == 4][0] eight = [set(p) for p in patterns if len(p) == 7][0] two_three_five = [set(p) for p in patterns if len(p) == 5] zero_six_nine = [set(p) for p in patterns if len(p) == 6] two = get_2(two_three_five, one, seven, four) three_five = [digit for digit in two_three_five if digit != two] three = get_3(three_five, two) five = [digit for digit in three_five if digit != three][0] nine = get_9(zero_six_nine, three) zero = get_0(zero_six_nine, five) zero_six_nine.remove(zero) zero_six_nine.remove(nine) six = zero_six_nine[0] digits = [zero, one, two, three, four, five, six, seven, eight, nine] value = ''.join(str(digits.index(set(d))) for d in output) return int(value) with open("inp8.txt") as file: data = file.read() p1, p2 = 0, 0 for line in data.splitlines(): patterns, output = line.split(' | ') patterns, output = patterns.split(), output.split() p1 += sum(1 for digit in output if len(digit) in (2, 3, 4, 7)) p2 += process_entry(patterns, output) print(f"Part 1: {p1}") assert p1 == 344 print(f"Part 2: {p2}") assert p2 == 1048410
def get_2(digits, one, seven, four): for digit in digits: if len(digit - one - seven - four) == 2: return digit assert False, f'2 cannot be calculated from digits={digits!r} using one={one!r}, seven={seven!r} and four={four!r}' def get_3(digits, two): for digit in digits: if len(digit - two) == 1: return digit assert False, f'3 cannot be calculated from digits={digits!r} using two={two!r}' def get_9(digits, three): for digit in digits: if len(digit - three) == 1: return digit assert False, f'9 cannot be calculated from digits={digits!r} using three={three!r}' def get_0(digits, five): for digit in digits: if len(digit - five) == 2: return digit assert False, f'0 cannot be calculated from digits={digits!r} using five={five!r}' def process_entry(patterns: list, output: list): one = [set(p) for p in patterns if len(p) == 2][0] seven = [set(p) for p in patterns if len(p) == 3][0] four = [set(p) for p in patterns if len(p) == 4][0] eight = [set(p) for p in patterns if len(p) == 7][0] two_three_five = [set(p) for p in patterns if len(p) == 5] zero_six_nine = [set(p) for p in patterns if len(p) == 6] two = get_2(two_three_five, one, seven, four) three_five = [digit for digit in two_three_five if digit != two] three = get_3(three_five, two) five = [digit for digit in three_five if digit != three][0] nine = get_9(zero_six_nine, three) zero = get_0(zero_six_nine, five) zero_six_nine.remove(zero) zero_six_nine.remove(nine) six = zero_six_nine[0] digits = [zero, one, two, three, four, five, six, seven, eight, nine] value = ''.join((str(digits.index(set(d))) for d in output)) return int(value) with open('inp8.txt') as file: data = file.read() (p1, p2) = (0, 0) for line in data.splitlines(): (patterns, output) = line.split(' | ') (patterns, output) = (patterns.split(), output.split()) p1 += sum((1 for digit in output if len(digit) in (2, 3, 4, 7))) p2 += process_entry(patterns, output) print(f'Part 1: {p1}') assert p1 == 344 print(f'Part 2: {p2}') assert p2 == 1048410
# Firstly, get the flatfile from the user. def getFile(): file_path = input("Input the path to the flat file: ") try: keypath = open(file_path, "r") return keypath except: print("No file found there.") # Secondly, iterate through the file and update a state dictionary containing string and grid states. # Also, the nested if statement checks for out of bounds and resets it accordingly. def analyzeFile(file): state_dict = { "string_state": "", "grid_state": [0, 0], } nav_grid = [ ['A', 'B', 'C', 'D', 'E', 'F'], ['G', 'H', 'I', 'J', 'K', 'L'], ['M', 'N', 'O', 'P', 'Q', 'R'], ['S', 'T', 'U', 'V', 'W', 'X'], ['Y', 'Z', '1', '2', '3', '4'], ['5', '6', '7', '8', '9', '0'] ] for character in file.read(): if character == "U": if state_dict["grid_state"][0] == -6: # Out of bounds check state_dict["grid_state"][0] = 0 state_dict["grid_state"][0] -= 1 elif character == "D": if state_dict["grid_state"][0] == 5: # Out of bounds check state_dict["grid_state"][0] = -1 state_dict["grid_state"][0] += 1 elif character == "L": if state_dict["grid_state"][1] == -6: # Out of bounds check state_dict["grid_state"][1] = 0 state_dict["grid_state"][1] -= 1 elif character == "R": if state_dict["grid_state"][1] == 5: # Out of bounds check state_dict["grid_state"][1] = -1 state_dict["grid_state"][1] += 1 elif character == "*": indexOne = state_dict["grid_state"][0] indexTwo = state_dict["grid_state"][1] state_dict["string_state"] += nav_grid[indexOne][indexTwo] elif character == "S": state_dict["string_state"] += " " elif character == "\n": state_dict.update({"grid_state": [0, 0]}) state_dict["string_state"] += "\n" return state_dict["string_state"] # Lastly, open a new file to return and give it your search term string. def outputSearchTerm(textToNewFile): searchTermFile = open("SearchTerm", "w") searchTermFile.write(textToNewFile) searchTermFile.close() def main(): try: outputSearchTerm(analyzeFile(getFile())) print("--Text from Keypath Complete.--") print("--File Created--") except: print("An error occurred. Refer to the above message for more information.") main()
def get_file(): file_path = input('Input the path to the flat file: ') try: keypath = open(file_path, 'r') return keypath except: print('No file found there.') def analyze_file(file): state_dict = {'string_state': '', 'grid_state': [0, 0]} nav_grid = [['A', 'B', 'C', 'D', 'E', 'F'], ['G', 'H', 'I', 'J', 'K', 'L'], ['M', 'N', 'O', 'P', 'Q', 'R'], ['S', 'T', 'U', 'V', 'W', 'X'], ['Y', 'Z', '1', '2', '3', '4'], ['5', '6', '7', '8', '9', '0']] for character in file.read(): if character == 'U': if state_dict['grid_state'][0] == -6: state_dict['grid_state'][0] = 0 state_dict['grid_state'][0] -= 1 elif character == 'D': if state_dict['grid_state'][0] == 5: state_dict['grid_state'][0] = -1 state_dict['grid_state'][0] += 1 elif character == 'L': if state_dict['grid_state'][1] == -6: state_dict['grid_state'][1] = 0 state_dict['grid_state'][1] -= 1 elif character == 'R': if state_dict['grid_state'][1] == 5: state_dict['grid_state'][1] = -1 state_dict['grid_state'][1] += 1 elif character == '*': index_one = state_dict['grid_state'][0] index_two = state_dict['grid_state'][1] state_dict['string_state'] += nav_grid[indexOne][indexTwo] elif character == 'S': state_dict['string_state'] += ' ' elif character == '\n': state_dict.update({'grid_state': [0, 0]}) state_dict['string_state'] += '\n' return state_dict['string_state'] def output_search_term(textToNewFile): search_term_file = open('SearchTerm', 'w') searchTermFile.write(textToNewFile) searchTermFile.close() def main(): try: output_search_term(analyze_file(get_file())) print('--Text from Keypath Complete.--') print('--File Created--') except: print('An error occurred. Refer to the above message for more information.') main()
def linear_service_fee(principal, fee=0.0): """Calculate service fee proportional to the principal. If :math:`S` is the principal and :math:`g` is the fee aliquot, then the fee is given by :math:`gS`. """ return float(principal * fee)
def linear_service_fee(principal, fee=0.0): """Calculate service fee proportional to the principal. If :math:`S` is the principal and :math:`g` is the fee aliquot, then the fee is given by :math:`gS`. """ return float(principal * fee)
#!/usr/bin/env python """ generated source for module Event """ # package: org.ggp.base.util.observer class Event(object): """ generated source for class Event """
""" generated source for module Event """ class Event(object): """ generated source for class Event """
# # @lc app=leetcode id=83 lang=python3 # # [83] Remove Duplicates from Sorted List # # https://leetcode.com/problems/remove-duplicates-from-sorted-list/description/ # # algorithms # Easy (41.95%) # Likes: 774 # Dislikes: 82 # Total Accepted: 333.1K # Total Submissions: 779.9K # Testcase Example: '[1,1,2]' # # Given a sorted linked list, delete all duplicates such that each element # appear only once. # # Example 1: # # # Input: 1->1->2 # Output: 1->2 # # # Example 2: # # # Input: 1->1->2->3->3 # Output: 1->2->3 # # # # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: if not head: return head p, q = head, head.next while q: if p.val == q.val: p.next = q.next q = q.next else: p = p.next return head
class Solution: def delete_duplicates(self, head: ListNode) -> ListNode: if not head: return head (p, q) = (head, head.next) while q: if p.val == q.val: p.next = q.next q = q.next else: p = p.next return head
def high_and_low(numbers): numbers = list((max(map(int,numbers.split())),min(map(int,numbers.split())))) return ' '.join(map(str,numbers)) def high_and_lowB(numbers): nn = [int(s) for s in numbers.split(" ")] return "%i %i" % (max(nn),min(nn))
def high_and_low(numbers): numbers = list((max(map(int, numbers.split())), min(map(int, numbers.split())))) return ' '.join(map(str, numbers)) def high_and_low_b(numbers): nn = [int(s) for s in numbers.split(' ')] return '%i %i' % (max(nn), min(nn))
""" Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. Example 1: Input: 11110 11010 11000 00000 Output: 1 Example 2: Input: 11000 11000 00100 00011 Output: 3 """ class Solution: def numIslands(self, grid: List[List[str]]) -> int: def find_neighbors(grid, curr): deltas = [(-1, 0), (0, -1), (1, 0), (0, 1)] for y_delta, x_delta in deltas: y, x = curr[0] + y_delta, curr[1] + x_delta if not (0 <= y < len(grid)): continue if not (0 <= x < len(grid[0])): continue if grid[y][x] == '1': yield (y, x) if not grid: return 0 count = 0 visited = set() for i, row in enumerate(grid): for j, elem in enumerate(row): if elem == '0': continue position = (i, j) if position in visited: continue count += 1 stack = [position] while stack: curr = stack.pop() if curr in visited: continue visited.add(curr) for ne in find_neighbors(grid, curr): if ne in visited: continue stack.append(ne) return count
""" Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. Example 1: Input: 11110 11010 11000 00000 Output: 1 Example 2: Input: 11000 11000 00100 00011 Output: 3 """ class Solution: def num_islands(self, grid: List[List[str]]) -> int: def find_neighbors(grid, curr): deltas = [(-1, 0), (0, -1), (1, 0), (0, 1)] for (y_delta, x_delta) in deltas: (y, x) = (curr[0] + y_delta, curr[1] + x_delta) if not 0 <= y < len(grid): continue if not 0 <= x < len(grid[0]): continue if grid[y][x] == '1': yield (y, x) if not grid: return 0 count = 0 visited = set() for (i, row) in enumerate(grid): for (j, elem) in enumerate(row): if elem == '0': continue position = (i, j) if position in visited: continue count += 1 stack = [position] while stack: curr = stack.pop() if curr in visited: continue visited.add(curr) for ne in find_neighbors(grid, curr): if ne in visited: continue stack.append(ne) return count
grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] def gridOutput(grid): for s in range(len(grid[0])): print() for i in range(len(grid)): print(grid[i][s],end='') gridOutput(grid)
grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] def grid_output(grid): for s in range(len(grid[0])): print() for i in range(len(grid)): print(grid[i][s], end='') grid_output(grid)
# TYPES = [('int', 'INT'), ('varchar', 'VARCHAR'), ('boolean', 'BOOLEAN'), ('json', 'JSON'), ('timestamp', 'TIMESTAMP'), ('enum', 'ENUM')] class UnknownType(Exception): pass class NotImplementeD(Exception): pass class SQLTypes(object): __slots__ = ['_type', '_init'] def __new__(cls, *args, **kwargs): nm = cls.__name__ is_type = True in [nm in e for e in TYPES] + [nm == 'SQLTypes'] if not is_type: raise UnknownType() obj = object.__new__(cls) obj.__init__(*args, **kwargs) return obj def __init__(self, t): self._type = t self._init = None def __str__(self): return self._printf() __repr__ = __str__ @classmethod def decode(cls, obj): if not isinstance(obj, cls): raise Exception() return obj.printf def _printf(self): """ """ raise NotImplementeD() @staticmethod def eval(obj): return obj.printf @property def printf(self): return self._printf()
types = [('int', 'INT'), ('varchar', 'VARCHAR'), ('boolean', 'BOOLEAN'), ('json', 'JSON'), ('timestamp', 'TIMESTAMP'), ('enum', 'ENUM')] class Unknowntype(Exception): pass class Notimplemented(Exception): pass class Sqltypes(object): __slots__ = ['_type', '_init'] def __new__(cls, *args, **kwargs): nm = cls.__name__ is_type = True in [nm in e for e in TYPES] + [nm == 'SQLTypes'] if not is_type: raise unknown_type() obj = object.__new__(cls) obj.__init__(*args, **kwargs) return obj def __init__(self, t): self._type = t self._init = None def __str__(self): return self._printf() __repr__ = __str__ @classmethod def decode(cls, obj): if not isinstance(obj, cls): raise exception() return obj.printf def _printf(self): """ """ raise not_implemente_d() @staticmethod def eval(obj): return obj.printf @property def printf(self): return self._printf()
t = int(input()) for i in range(t): b,c=map(int,input().split()) ans = (2*b-c-1)//2 print(2*ans)
t = int(input()) for i in range(t): (b, c) = map(int, input().split()) ans = (2 * b - c - 1) // 2 print(2 * ans)
def moveZeroes(nums): lastNonZero = 0 for i in range(len(nums)): if nums[i] != 0: nums[lastNonZero], nums[i] = nums[i], nums[lastNonZero] lastNonZero += 1 nums = [0, 1, 0, 3, 12] moveZeroes(nums) print(nums) # [1, 3, 12, 0, 0] nums = [4, 2, 4, 0, 0, 3, 0, 5, 1, 0] moveZeroes(nums) print(nums) # [4, 2, 4, 3, 5, 1, 0, 0, 0, 0]
def move_zeroes(nums): last_non_zero = 0 for i in range(len(nums)): if nums[i] != 0: (nums[lastNonZero], nums[i]) = (nums[i], nums[lastNonZero]) last_non_zero += 1 nums = [0, 1, 0, 3, 12] move_zeroes(nums) print(nums) nums = [4, 2, 4, 0, 0, 3, 0, 5, 1, 0] move_zeroes(nums) print(nums)
def move(n, a, b, c): if n == 1: print(str(a) + " " + str(c)) else: move(n - 1, a, c, b) print(str(a) + " " + str(c)) move(n - 1, b, a, c) def Num11729(): n = int(input()) print(2 ** n -1) move(n, 1, 2, 3) Num11729()
def move(n, a, b, c): if n == 1: print(str(a) + ' ' + str(c)) else: move(n - 1, a, c, b) print(str(a) + ' ' + str(c)) move(n - 1, b, a, c) def num11729(): n = int(input()) print(2 ** n - 1) move(n, 1, 2, 3) num11729()
def get_synset(path='../data/imagenet_synset_words.txt'): with open(path, 'r') as f: # Strip off the first word (until space, maxsplit=1), then synset is remainder return [ line.strip().split(' ', 1)[1] for line in f]
def get_synset(path='../data/imagenet_synset_words.txt'): with open(path, 'r') as f: return [line.strip().split(' ', 1)[1] for line in f]
""" Cloudless Package Information """ __title__ = 'cloudless' __description__ = 'The cloudless infrastructure project.' __url__ = 'https://github.com/sverch/cloudless' __version__ = '0.0.5' __author__ = 'Shaun Verch' __author_email__ = 'shaun@getcloudless.com' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2018 Shaun Verch' __requires_python__ = '>=3.6.0'
""" Cloudless Package Information """ __title__ = 'cloudless' __description__ = 'The cloudless infrastructure project.' __url__ = 'https://github.com/sverch/cloudless' __version__ = '0.0.5' __author__ = 'Shaun Verch' __author_email__ = 'shaun@getcloudless.com' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2018 Shaun Verch' __requires_python__ = '>=3.6.0'
""" [2015-12-16] Challenge #245 [Intermediate] Ggggggg gggg Ggggg-ggggg! https://www.reddit.com/r/dailyprogrammer/comments/3x3hqa/20151216_challenge_245_intermediate_ggggggg_gggg/ We have discovered a new species of aliens! They look like [this](https://www.redditstatic.com/about/assets/reddit-alien.png) and are trying to communicate with us using the /r/ggggg subreddit! As you might have been able to tell, though, it is awfully hard to understand what they're saying since their super-advanced alphabet only makes use of two letters: "g" and "G". Fortunately, their numbers, spacing and punctuation are the same. We are going to write a program to translate to and from our alphabet to theirs, so we can be enlightened by their intelligence. Feel free to code either the encoding program, the decoding program, or both. ^Also, ^please ^do ^not ^actually ^harass ^the ^residents ^of ^/r/ggggg. # Part 1: Decoding First, we need to be able to understand what the Ggggg aliens are saying. Fortunately, they are cooperative in this matter, and they helpfully include a "key" to translate between their g-based letters and our Latin letters. Your decoder program needs to read this key from the first line of the input, then use it to translate the rest of the input. ## Sample decoder input 1 H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! ## Sample decoder output 1 Hello, world! **Explanation:** Reading the input, the key is: * H = GgG * d = gGg * e = ggG * l = GGg * o = gGG * r = Ggg * w = ggg When we read the message from left to right, we can divide it into letters like so (alternating letters bolded): &gt; **GgG**ggG**GGg**GGg**gGG**, **ggg**gGG**Ggg**GGg**gGg**! Take those letter groups and turn them into letters using the key, and you get "Hello, world!" ## Sample decoder input 2 a GgG d GggGg e GggGG g GGGgg h GGGgG i GGGGg l GGGGG m ggg o GGg p Gggg r gG y ggG GGGgGGGgGGggGGgGggG /gG/GggGgGgGGGGGgGGGGGggGGggggGGGgGGGgggGGgGggggggGggGGgG! Note that the letters are *not* guaranteed to be of equal length. ## Sample decoder output 2 hooray /r/dailyprogrammer! # Part 2: Encoding Next, we will go in the other direction. Come up with a key based on the letters "g" and "G" that maps all the letters in a given message to Ggggg equivalents, use it to translate the message, then output both the key and the translated message. You can double-check your work using the decoding script from part 1. ## Sample input Hello, world! ## Sample output H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! Your key (and thus message) may end up being completely different than the one provided here. That's fine, as long as it can be translated back. # Part 2.1 (Bonus points): Compression Just as it annoys us to see someone typing "llliiiiikkkeeee ttttthhhiiiisssss", the Ggggg aliens don't actually enjoy unnecessary verbosity. Modify your encoding script to create a key that results in the *shortest possible Ggggg message*. You should be able to decode the output using the same decoder used in part 1 (the second sample input/output in part 1 is actually compressed). Here's a [hint](https://en.wikipedia.org/wiki/Variable-length_code). ## Sample input: Here's the thing. You said a "jackdaw is a crow." Is it in the same family? Yes. No one's arguing that. As someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. If you want to be "specific" like you said, then you shouldn't either. They're not the same thing. If you're saying "crow family" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. So your reasoning for calling a jackdaw a crow is because random people "call the black ones crows?" Let's get grackles and blackbirds in there, then, too. Also, calling someone a human or an ape? It's not one or the other, that's not how taxonomy works. They're both. A jackdaw is a jackdaw and a member of the crow family. But that's not what you said. You said a jackdaw is a crow, which is not true unless you're okay with calling all members of the crow family crows, which means you'd call blue jays, ravens, and other birds crows, too. Which you said you don't. It's okay to just admit you're wrong, you know? ## Sample output: Found here (a bit too big to paste in the challenge itself): http://www.hastebin.com/raw/inihibehux.txt Remember you can test your decoder on this message, too! -------- C GgggGgg H GgggGgG T GgggGGg a gGg c GGggG d GggG e GgG g ggGgG h GGgGg i gGGg j GgggGGG l gGGG m ggGGg n GGgGG o ggg p ggGGG r GGGg s GGGG t GGgggG u ggGgg v Ggggg w GGggggg y GGggggG GgggGGgGGgGggGGgGGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG GGggggggGgGGGG ggGGGGGGggggggGGGgggGGGGGgGGggG gGgGGgGGGggG GggGgGGgGGGGGGggGggGggGGGGGGGGGgGGggG gggGggggGgGGGGg gGgGGgggG /GGGg/GggGgGggGGggGGGGGggggGggGGGGGGggggggGgGGGGggGgggGGgggGGgGgGGGGg_gGGgGggGGgGgGgGGGG. GgggGgGgGgGggggGgG gGg GGggGgggggggGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG gGGgGggGGgGgGg? GgggGgggggggGGgGgG GgggGGGggggGGgGGgGG ggGggGGGG gggGggggGgGGGGg GGgggGGGgGgGgGGGGgGgG! """ def main(): pass if __name__ == "__main__": main()
""" [2015-12-16] Challenge #245 [Intermediate] Ggggggg gggg Ggggg-ggggg! https://www.reddit.com/r/dailyprogrammer/comments/3x3hqa/20151216_challenge_245_intermediate_ggggggg_gggg/ We have discovered a new species of aliens! They look like [this](https://www.redditstatic.com/about/assets/reddit-alien.png) and are trying to communicate with us using the /r/ggggg subreddit! As you might have been able to tell, though, it is awfully hard to understand what they're saying since their super-advanced alphabet only makes use of two letters: "g" and "G". Fortunately, their numbers, spacing and punctuation are the same. We are going to write a program to translate to and from our alphabet to theirs, so we can be enlightened by their intelligence. Feel free to code either the encoding program, the decoding program, or both. ^Also, ^please ^do ^not ^actually ^harass ^the ^residents ^of ^/r/ggggg. # Part 1: Decoding First, we need to be able to understand what the Ggggg aliens are saying. Fortunately, they are cooperative in this matter, and they helpfully include a "key" to translate between their g-based letters and our Latin letters. Your decoder program needs to read this key from the first line of the input, then use it to translate the rest of the input. ## Sample decoder input 1 H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! ## Sample decoder output 1 Hello, world! **Explanation:** Reading the input, the key is: * H = GgG * d = gGg * e = ggG * l = GGg * o = gGG * r = Ggg * w = ggg When we read the message from left to right, we can divide it into letters like so (alternating letters bolded): &gt; **GgG**ggG**GGg**GGg**gGG**, **ggg**gGG**Ggg**GGg**gGg**! Take those letter groups and turn them into letters using the key, and you get "Hello, world!" ## Sample decoder input 2 a GgG d GggGg e GggGG g GGGgg h GGGgG i GGGGg l GGGGG m ggg o GGg p Gggg r gG y ggG GGGgGGGgGGggGGgGggG /gG/GggGgGgGGGGGgGGGGGggGGggggGGGgGGGgggGGgGggggggGggGGgG! Note that the letters are *not* guaranteed to be of equal length. ## Sample decoder output 2 hooray /r/dailyprogrammer! # Part 2: Encoding Next, we will go in the other direction. Come up with a key based on the letters "g" and "G" that maps all the letters in a given message to Ggggg equivalents, use it to translate the message, then output both the key and the translated message. You can double-check your work using the decoding script from part 1. ## Sample input Hello, world! ## Sample output H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! Your key (and thus message) may end up being completely different than the one provided here. That's fine, as long as it can be translated back. # Part 2.1 (Bonus points): Compression Just as it annoys us to see someone typing "llliiiiikkkeeee ttttthhhiiiisssss", the Ggggg aliens don't actually enjoy unnecessary verbosity. Modify your encoding script to create a key that results in the *shortest possible Ggggg message*. You should be able to decode the output using the same decoder used in part 1 (the second sample input/output in part 1 is actually compressed). Here's a [hint](https://en.wikipedia.org/wiki/Variable-length_code). ## Sample input: Here's the thing. You said a "jackdaw is a crow." Is it in the same family? Yes. No one's arguing that. As someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. If you want to be "specific" like you said, then you shouldn't either. They're not the same thing. If you're saying "crow family" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. So your reasoning for calling a jackdaw a crow is because random people "call the black ones crows?" Let's get grackles and blackbirds in there, then, too. Also, calling someone a human or an ape? It's not one or the other, that's not how taxonomy works. They're both. A jackdaw is a jackdaw and a member of the crow family. But that's not what you said. You said a jackdaw is a crow, which is not true unless you're okay with calling all members of the crow family crows, which means you'd call blue jays, ravens, and other birds crows, too. Which you said you don't. It's okay to just admit you're wrong, you know? ## Sample output: Found here (a bit too big to paste in the challenge itself): http://www.hastebin.com/raw/inihibehux.txt Remember you can test your decoder on this message, too! -------- C GgggGgg H GgggGgG T GgggGGg a gGg c GGggG d GggG e GgG g ggGgG h GGgGg i gGGg j GgggGGG l gGGG m ggGGg n GGgGG o ggg p ggGGG r GGGg s GGGG t GGgggG u ggGgg v Ggggg w GGggggg y GGggggG GgggGGgGGgGggGGgGGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG GGggggggGgGGGG ggGGGGGGggggggGGGgggGGGGGgGGggG gGgGGgGGGggG GggGgGGgGGGGGGggGggGggGGGGGGGGGgGGggG gggGggggGgGGGGg gGgGGgggG /GGGg/GggGgGggGGggGGGGGggggGggGGGGGGggggggGgGGGGggGgggGGgggGGgGgGGGGg_gGGgGggGGgGgGgGGGG. GgggGgGgGgGggggGgG gGg GGggGgggggggGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG gGGgGggGGgGgGg? GgggGgggggggGGgGgG GgggGGGggggGGgGGgGG ggGggGGGG gggGggggGgGGGGg GGgggGGGgGgGgGGGGgGgG! """ def main(): pass if __name__ == '__main__': main()
class Deque: def __init__(self): self.deque =[] def addFront(self,element): self.deque.append(element) print("After adding from front the deque value is : ", self.deque) def addRear(self,element): self.deque.insert(0,element) print("After adding from end the deque value is : ", self.deque) def removeFront(self): self.deque.pop() print("After removing from the front the deque value is : ", self.deque) def removeRear(self): self.deque.pop(0) print("After removing from the end the deque value is : ", self.deque) D = Deque() print("Adding from front") D.addFront(1) print("Adding from front") D.addFront(2) print("Adding from Rear") D.addRear(3) print("Adding from Rear") D.addRear(4) print("Removing from Front") D.removeFront() print("Removing from Rear") D.removeRear()
class Deque: def __init__(self): self.deque = [] def add_front(self, element): self.deque.append(element) print('After adding from front the deque value is : ', self.deque) def add_rear(self, element): self.deque.insert(0, element) print('After adding from end the deque value is : ', self.deque) def remove_front(self): self.deque.pop() print('After removing from the front the deque value is : ', self.deque) def remove_rear(self): self.deque.pop(0) print('After removing from the end the deque value is : ', self.deque) d = deque() print('Adding from front') D.addFront(1) print('Adding from front') D.addFront(2) print('Adding from Rear') D.addRear(3) print('Adding from Rear') D.addRear(4) print('Removing from Front') D.removeFront() print('Removing from Rear') D.removeRear()
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) class Metric(object): """ Metric object contains: - the metric sub prefix, - metrics mapping (response JSON key to metric name and metric type) - tags mapping (response JSON key to tag name) - field_to_name (response JSON key to metric name) """ def __init__(self, prefix, metrics, tags=None, field_to_name=None): self.prefix = prefix for key, name_method in metrics.items(): if isinstance(name_method, tuple): continue else: metrics[key] = (name_method, 'gauge') self.metrics = metrics self.tags = tags if tags else {} self.field_to_name = field_to_name if field_to_name else {} METRICS = { 'hosts': Metric(prefix='system', metrics={'views_count': 'views_count', 'volumes_count': 'volumes_count'}), 'volumes': Metric( prefix='volume', metrics={ 'avg_compressed_ratio': 'compressed_ratio.avg', 'logical_capacity': 'logical_capacity', 'no_dedup': 'no_dedup', 'size': 'size', 'snapshots_logical_capacity': 'snapshots_logical_capacity', 'stream_avg_compressed_size_in_bytes': 'stream_average_compressed_bytes', }, tags={ 'name': 'volume_raw_name', 'node_id': 'node_id', }, ), 'stats/system': Metric( prefix='system', metrics={ 'iops_avg': 'io_ops.avg', 'iops_max': 'io_ops.max', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', 'throughput_max': 'throughput.max', }, tags={ 'resolution': 'resolution', }, ), 'stats/volumes': Metric( prefix='volume', metrics={ 'iops_avg': ('io_ops.avg', 'gauge'), 'iops_max': 'io_ops.max', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', 'throughput_max': 'throughput.max', }, tags={ 'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution', }, ), 'system/capacity': Metric( prefix='system.capacity', metrics={ 'allocated': 'allocated', 'allocated_snapshots_and_views': 'allocated_snapshots_and_views', 'allocated_volumes': 'allocated_volumes', 'curr_dt_chunk': 'curr_dt_chunk', 'free': 'free', 'logical': 'logical', 'physical': 'physical', 'provisioned': 'provisioned', 'provisioned_snapshots': 'provisioned_snapshots', 'provisioned_views': 'provisioned_views', 'provisioned_volumes': 'provisioned_volumes', 'reserved': 'reserved', 'total': 'total', }, tags={ 'state': 'capacity_state', }, ), 'replication/stats/system': Metric( prefix='replication.system', metrics={ "logical_in": "logical_in", "logical_out": "logical_out", "physical_in": "physical_in", "physical_out": "physical_out", }, tags={ 'resolution': 'resolution', }, ), 'replication/stats/volumes': Metric( prefix='replication.volume', metrics={ "logical_in": "logical_in", "logical_out": "logical_out", "physical_in": "physical_in", "physical_out": "physical_out", }, tags={ 'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution', }, ), } BLOCKSIZE_METRICS = { 'stats/system?__bs_breakdown=True': Metric( prefix='system.block_size', metrics={ 'iops_avg': 'io_ops.avg', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', }, tags={ 'resolution': 'resolution', 'bs': 'block_size', }, ), 'stats/volumes?__bs_breakdown=True': Metric( prefix='volume.block_size', metrics={ 'iops_avg': ('io_ops.avg', 'gauge'), 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', }, tags={ 'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution', 'bs': 'block_size', }, ), } READ_WRITE_METRICS = { 'stats/volumes?__rw_breakdown=True': Metric( prefix='volume', metrics={ 'iops_avg': ('io_ops.avg', 'gauge'), 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', }, tags={ 'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution', }, field_to_name={ 'rw': { 'r': 'read', 'w': 'write', } }, ), 'stats/system?__rw_breakdown=True': Metric( prefix='system', metrics={ 'iops_avg': 'io_ops.avg', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', }, tags={ 'resolution': 'resolution', }, field_to_name={ 'rw': { 'r': 'read', 'w': 'write', } }, ), }
class Metric(object): """ Metric object contains: - the metric sub prefix, - metrics mapping (response JSON key to metric name and metric type) - tags mapping (response JSON key to tag name) - field_to_name (response JSON key to metric name) """ def __init__(self, prefix, metrics, tags=None, field_to_name=None): self.prefix = prefix for (key, name_method) in metrics.items(): if isinstance(name_method, tuple): continue else: metrics[key] = (name_method, 'gauge') self.metrics = metrics self.tags = tags if tags else {} self.field_to_name = field_to_name if field_to_name else {} metrics = {'hosts': metric(prefix='system', metrics={'views_count': 'views_count', 'volumes_count': 'volumes_count'}), 'volumes': metric(prefix='volume', metrics={'avg_compressed_ratio': 'compressed_ratio.avg', 'logical_capacity': 'logical_capacity', 'no_dedup': 'no_dedup', 'size': 'size', 'snapshots_logical_capacity': 'snapshots_logical_capacity', 'stream_avg_compressed_size_in_bytes': 'stream_average_compressed_bytes'}, tags={'name': 'volume_raw_name', 'node_id': 'node_id'}), 'stats/system': metric(prefix='system', metrics={'iops_avg': 'io_ops.avg', 'iops_max': 'io_ops.max', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', 'throughput_max': 'throughput.max'}, tags={'resolution': 'resolution'}), 'stats/volumes': metric(prefix='volume', metrics={'iops_avg': ('io_ops.avg', 'gauge'), 'iops_max': 'io_ops.max', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg', 'throughput_max': 'throughput.max'}, tags={'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution'}), 'system/capacity': metric(prefix='system.capacity', metrics={'allocated': 'allocated', 'allocated_snapshots_and_views': 'allocated_snapshots_and_views', 'allocated_volumes': 'allocated_volumes', 'curr_dt_chunk': 'curr_dt_chunk', 'free': 'free', 'logical': 'logical', 'physical': 'physical', 'provisioned': 'provisioned', 'provisioned_snapshots': 'provisioned_snapshots', 'provisioned_views': 'provisioned_views', 'provisioned_volumes': 'provisioned_volumes', 'reserved': 'reserved', 'total': 'total'}, tags={'state': 'capacity_state'}), 'replication/stats/system': metric(prefix='replication.system', metrics={'logical_in': 'logical_in', 'logical_out': 'logical_out', 'physical_in': 'physical_in', 'physical_out': 'physical_out'}, tags={'resolution': 'resolution'}), 'replication/stats/volumes': metric(prefix='replication.volume', metrics={'logical_in': 'logical_in', 'logical_out': 'logical_out', 'physical_in': 'physical_in', 'physical_out': 'physical_out'}, tags={'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution'})} blocksize_metrics = {'stats/system?__bs_breakdown=True': metric(prefix='system.block_size', metrics={'iops_avg': 'io_ops.avg', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg'}, tags={'resolution': 'resolution', 'bs': 'block_size'}), 'stats/volumes?__bs_breakdown=True': metric(prefix='volume.block_size', metrics={'iops_avg': ('io_ops.avg', 'gauge'), 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg'}, tags={'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution', 'bs': 'block_size'})} read_write_metrics = {'stats/volumes?__rw_breakdown=True': metric(prefix='volume', metrics={'iops_avg': ('io_ops.avg', 'gauge'), 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg'}, tags={'peer_k2_name': 'peer_name', 'volume_name': 'volume_name', 'resolution': 'resolution'}, field_to_name={'rw': {'r': 'read', 'w': 'write'}}), 'stats/system?__rw_breakdown=True': metric(prefix='system', metrics={'iops_avg': 'io_ops.avg', 'latency_inner': 'latency.inner', 'latency_outer': 'latency.outer', 'throughput_avg': 'throughput.avg'}, tags={'resolution': 'resolution'}, field_to_name={'rw': {'r': 'read', 'w': 'write'}})}
things = [ 'An old Box', 'Ancient Knife', 'Oppenheimer Blue Diamond', '1962 Ferrari 250 GTO Berlinetta', 'Hindoostan Antique Map 1826', 'Rare 19th C. Mughal Indian ZANGHAL Axe with Strong', '1850 $5 Baldwin Gold Half Eagle UNCIRCULATED', 'Chevrolet Corvette 1963' ]
things = ['An old Box', 'Ancient Knife', 'Oppenheimer Blue Diamond', '1962 Ferrari 250 GTO Berlinetta', 'Hindoostan Antique Map 1826', 'Rare 19th C. Mughal Indian ZANGHAL Axe with Strong', '1850 $5 Baldwin Gold Half Eagle UNCIRCULATED', 'Chevrolet Corvette 1963']
x,y=0,0 for i in range(5): b=input("").split() for j in range(5): if(b[j]=='1'): x=i+1 y=j+1 x=x-3; y=y-3; if(x<0): x=-x if(y<0): y=-y print(x+y) a=[[],[],[]] b=len(a[1])//2 a[b][b],a[i][j]=a[i][j],a[b][b] a=tan(3.33)
(x, y) = (0, 0) for i in range(5): b = input('').split() for j in range(5): if b[j] == '1': x = i + 1 y = j + 1 x = x - 3 y = y - 3 if x < 0: x = -x if y < 0: y = -y print(x + y) a = [[], [], []] b = len(a[1]) // 2 (a[b][b], a[i][j]) = (a[i][j], a[b][b]) a = tan(3.33)
class Salary: def __init__(self, pay): self._pay = pay def get_total(self): return (self._pay * 12) // 4.9545 class SalarySenior: def __init__(self, pay): self._pay = pay def get_total(self): return (self._pay * 24) // 4.9545 class Employee: def __init__(self, pay, bonus): self._bonus = bonus self._pay = pay def annual_salary(self): return f'Total salary is: {self._pay.get_total() + self._bonus}' emp_middle = Employee(Salary(10000), 500) emp_senior = Employee(SalarySenior(10000), 600) print(emp_middle.annual_salary())
class Salary: def __init__(self, pay): self._pay = pay def get_total(self): return self._pay * 12 // 4.9545 class Salarysenior: def __init__(self, pay): self._pay = pay def get_total(self): return self._pay * 24 // 4.9545 class Employee: def __init__(self, pay, bonus): self._bonus = bonus self._pay = pay def annual_salary(self): return f'Total salary is: {self._pay.get_total() + self._bonus}' emp_middle = employee(salary(10000), 500) emp_senior = employee(salary_senior(10000), 600) print(emp_middle.annual_salary())
changes = {'.': 0, ',': 1, '+': 2, '-': 3, '>':4, '<': 5, '[': 6, ']': 7} def convert(code): current = 0 x = "" for i in code: dest = changes.get(i) if dest is None: continue diff = (dest - current) % 8 x += "+" * diff + "!" current = dest print(current) return x
changes = {'.': 0, ',': 1, '+': 2, '-': 3, '>': 4, '<': 5, '[': 6, ']': 7} def convert(code): current = 0 x = '' for i in code: dest = changes.get(i) if dest is None: continue diff = (dest - current) % 8 x += '+' * diff + '!' current = dest print(current) return x
{'application':{'type':'Application', 'name':'webgrabber', 'backgrounds': [ {'type':'Background', 'name':'bgGrabber', 'title':'webgrabber PythonCard Application', 'size':(540, 172), 'statusBar':1, 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit\tAlt+X', 'command':'exit', }, ] }, ] }, 'components': [ {'type':'TextField', 'name':'fldURL', 'position':(65, 0), 'size':(466, -1), }, {'type':'TextField', 'name':'fldDirectory', 'position':(65, 30), 'size':(370, -1), }, {'type':'StaticText', 'name':'stcDirectory', 'position':(0, 30), 'text':'Directory:', }, {'type':'StaticText', 'name':'stcURL', 'position':(0, 5), 'text':'URL:', }, {'type':'Button', 'name':'btnDirectory', 'position':(455, 30), 'label':'Directory...', }, {'type':'Button', 'name':'btnGo', 'position':(360, 70), 'label':'Go', 'default':1, }, {'type':'Button', 'name':'btnCancel', 'position':(455, 70), 'label':'Cancel', }, ] # end components } # end background ] # end backgrounds } }
{'application': {'type': 'Application', 'name': 'webgrabber', 'backgrounds': [{'type': 'Background', 'name': 'bgGrabber', 'title': 'webgrabber PythonCard Application', 'size': (540, 172), 'statusBar': 1, 'menubar': {'type': 'MenuBar', 'menus': [{'type': 'Menu', 'name': 'menuFile', 'label': '&File', 'items': [{'type': 'MenuItem', 'name': 'menuFileExit', 'label': 'E&xit\tAlt+X', 'command': 'exit'}]}]}, 'components': [{'type': 'TextField', 'name': 'fldURL', 'position': (65, 0), 'size': (466, -1)}, {'type': 'TextField', 'name': 'fldDirectory', 'position': (65, 30), 'size': (370, -1)}, {'type': 'StaticText', 'name': 'stcDirectory', 'position': (0, 30), 'text': 'Directory:'}, {'type': 'StaticText', 'name': 'stcURL', 'position': (0, 5), 'text': 'URL:'}, {'type': 'Button', 'name': 'btnDirectory', 'position': (455, 30), 'label': 'Directory...'}, {'type': 'Button', 'name': 'btnGo', 'position': (360, 70), 'label': 'Go', 'default': 1}, {'type': 'Button', 'name': 'btnCancel', 'position': (455, 70), 'label': 'Cancel'}]}]}}
# ------------------------------------------------------------------------------------ # Tutorial: The replace method replaces a specified string with another specified string. # ------------------------------------------------------------------------------------ # Example 1. # Replace all occurences of "dog" with "cat" dog_txt = "I always wanted a dog! My dog is awsome :) My dog\'s name is Taco" cat_txt = dog_txt.replace("dog", "cat") print("\nExample 1. - Replace all occurences of \"dog\" with \"cat\"") print(f'Old String: {dog_txt}') print(f'New String: {cat_txt}') # Example 2. # Replace the two first occurences of "dog" with "cat" dog_txt = "I always wanted a dog! My dog is awsome :) My dog\'s name is Taco" cat_txt = dog_txt.replace("dog", "cat", 2) print("\nExample 2. - Replace first two occurences of \"dog\" with \"cat\"") print(f'Old String: {dog_txt}') print(f'New String: {cat_txt}\n') # ------------------------------------------------------------------------------------ # Challenge: # 1. From the string "Teach me Python like Im 5" produce the string "Teach me Java like Im 10". # 2. From the string "Im 10 years old" produce the string "How old are you?". # ------------------------------------------------------------------------------------
dog_txt = "I always wanted a dog! My dog is awsome :) My dog's name is Taco" cat_txt = dog_txt.replace('dog', 'cat') print('\nExample 1. - Replace all occurences of "dog" with "cat"') print(f'Old String: {dog_txt}') print(f'New String: {cat_txt}') dog_txt = "I always wanted a dog! My dog is awsome :) My dog's name is Taco" cat_txt = dog_txt.replace('dog', 'cat', 2) print('\nExample 2. - Replace first two occurences of "dog" with "cat"') print(f'Old String: {dog_txt}') print(f'New String: {cat_txt}\n')
is_day = False lights_on = not is_day print("Daytime?") print(is_day) print("Lights on?") print(lights_on)
is_day = False lights_on = not is_day print('Daytime?') print(is_day) print('Lights on?') print(lights_on)
def insertionSort(arr): output = arr[:] #go through each element for index in range(1, len(output)): #grab current element current = output[index] #get last index of sorted output j = index #shift up all sorted elements that are greater than current one while j > 0 and output[j - 1] > current: output[j] = output[j - 1] j = j - 1 #insert current element at newly created space output[j] = current return output
def insertion_sort(arr): output = arr[:] for index in range(1, len(output)): current = output[index] j = index while j > 0 and output[j - 1] > current: output[j] = output[j - 1] j = j - 1 output[j] = current return output
"""Namespace of all tag system in tvm Each operator can be tagged by a tag, which indicate its type. Generic categories - tag.ELEMWISE="elemwise": Elementwise operator, for example :code:`out[i, j] = input[i, j]` - tag.BROADCAST="broadcast": Broadcasting operator, can always map output axis to the input in order. for example :code:`out[i, ax1, j, ax2] = input[i, j]`. Note that the axis need to be in order so transpose is not a bcast operator. If an input of broadcast operator has same shape as output, we can ensure that it is elementwise relation. - tag.INJECTIVE="injective": Injective operator, can always injectively map output axis to a single input axis. All injective operator can still be safely fused similar to ewise to reduction. - tag.COMM_REDUCE="comm_reduce": Communicative reduction operator - If an op does not belong to these generic categories, it should have a special tag. Note ---- When we add a new topi operator, the op need to be tagged as generic as possible. We can also compose tags like "injective,pad" to give generic and specific information. When we use composed tags, we must always put generic tag in the first location. """ ELEMWISE = "elemwise" BROADCAST = "broadcast" INJECTIVE = "injective" COMM_REDUCE = "comm_reduce" COMM_REDUCE_IDX = "comm_reduce_idx" def is_broadcast(tag): """Check if a tag is bcast Parameters ---------- tag : str The input tag Returns ------- ret : bool Whether a tag is broadcast """ if tag in (ELEMWISE, BROADCAST): return True return tag.startswith(ELEMWISE) or tag.startswith(BROADCAST) def is_injective(tag): """Check if a tag is injective Parameters ---------- tag : str The input tag Returns ------- ret : bool Whether a tag is injective """ if tag in (ELEMWISE, BROADCAST, INJECTIVE): return True return (tag.startswith(ELEMWISE) or tag.startswith(BROADCAST) or tag.startswith(INJECTIVE))
"""Namespace of all tag system in tvm Each operator can be tagged by a tag, which indicate its type. Generic categories - tag.ELEMWISE="elemwise": Elementwise operator, for example :code:`out[i, j] = input[i, j]` - tag.BROADCAST="broadcast": Broadcasting operator, can always map output axis to the input in order. for example :code:`out[i, ax1, j, ax2] = input[i, j]`. Note that the axis need to be in order so transpose is not a bcast operator. If an input of broadcast operator has same shape as output, we can ensure that it is elementwise relation. - tag.INJECTIVE="injective": Injective operator, can always injectively map output axis to a single input axis. All injective operator can still be safely fused similar to ewise to reduction. - tag.COMM_REDUCE="comm_reduce": Communicative reduction operator - If an op does not belong to these generic categories, it should have a special tag. Note ---- When we add a new topi operator, the op need to be tagged as generic as possible. We can also compose tags like "injective,pad" to give generic and specific information. When we use composed tags, we must always put generic tag in the first location. """ elemwise = 'elemwise' broadcast = 'broadcast' injective = 'injective' comm_reduce = 'comm_reduce' comm_reduce_idx = 'comm_reduce_idx' def is_broadcast(tag): """Check if a tag is bcast Parameters ---------- tag : str The input tag Returns ------- ret : bool Whether a tag is broadcast """ if tag in (ELEMWISE, BROADCAST): return True return tag.startswith(ELEMWISE) or tag.startswith(BROADCAST) def is_injective(tag): """Check if a tag is injective Parameters ---------- tag : str The input tag Returns ------- ret : bool Whether a tag is injective """ if tag in (ELEMWISE, BROADCAST, INJECTIVE): return True return tag.startswith(ELEMWISE) or tag.startswith(BROADCAST) or tag.startswith(INJECTIVE)
SCHEMA_URL = "https://raw.githubusercontent.com/vz-risk/veris/master/verisc-merged.json" VARIETY_AMT_ENUMS = ['asset.assets', 'attribute.confidentiality.data', 'impact.loss'] VARIETY_AMT = ['variety', 'amount'] ASSETMAP = {'S ' : 'Server', 'N ' : 'Network', 'U ' : 'User Dev', 'M ' : 'Media', 'P ' : 'Person', 'T ' : 'Kiosk/Term', 'Un' : 'Unknown', 'E ' : 'Embedded'} A4NAMES = {'actor': ['External', 'Internal', 'Partner', 'Unknown'], 'action': ['Malware', 'Hacking', 'Social', 'Physical', 'Misuse', 'Error', 'Environmental', 'Unknown'], 'attribute': ['Confidentiality', 'Integrity', 'Availability'], 'asset': {'variety': list(ASSETMAP.values()), 'assets.variety': list(ASSETMAP.keys())}} SMALL_ORG_SUFFIXES = ['1 to 10', '11 to 100', '101 to 1000', 'Small'] LARGE_ORG_SUFFIXES = ['1001 to 10000', '10001 to 25000', '25001 to 50000', '50001 to 100000', 'Over 100000', 'Large'] SMALL_ORG = ['.'.join(('victim.employee_count', suffix)) for suffix in SMALL_ORG_SUFFIXES] LARGE_ORG = ['.'.join(('victim.employee_count', suffix)) for suffix in LARGE_ORG_SUFFIXES] ORG_SMALL_LARGE = {'victim.orgsize.Small' : SMALL_ORG, 'victim.orgsize.Large' : LARGE_ORG} # MATRIX CONSTANTS MATRIX_ENUMS = ['actor', 'action', 'victim.employee_count', 'security_incident', 'asset.assets', "asset.assets.variety", "asset.cloud", "asset.hosting", "asset.management", "asset.ownership", "attribute.confidentiality.data.variety", "attribute.confidentiality.data_disclosure", "discovery_method", "targeted", "attribute.integrity.variety", "attribute.availability.variety"] MATRIX_IGNORE = ['cve', 'name', 'notes', 'country', 'industry']
schema_url = 'https://raw.githubusercontent.com/vz-risk/veris/master/verisc-merged.json' variety_amt_enums = ['asset.assets', 'attribute.confidentiality.data', 'impact.loss'] variety_amt = ['variety', 'amount'] assetmap = {'S ': 'Server', 'N ': 'Network', 'U ': 'User Dev', 'M ': 'Media', 'P ': 'Person', 'T ': 'Kiosk/Term', 'Un': 'Unknown', 'E ': 'Embedded'} a4_names = {'actor': ['External', 'Internal', 'Partner', 'Unknown'], 'action': ['Malware', 'Hacking', 'Social', 'Physical', 'Misuse', 'Error', 'Environmental', 'Unknown'], 'attribute': ['Confidentiality', 'Integrity', 'Availability'], 'asset': {'variety': list(ASSETMAP.values()), 'assets.variety': list(ASSETMAP.keys())}} small_org_suffixes = ['1 to 10', '11 to 100', '101 to 1000', 'Small'] large_org_suffixes = ['1001 to 10000', '10001 to 25000', '25001 to 50000', '50001 to 100000', 'Over 100000', 'Large'] small_org = ['.'.join(('victim.employee_count', suffix)) for suffix in SMALL_ORG_SUFFIXES] large_org = ['.'.join(('victim.employee_count', suffix)) for suffix in LARGE_ORG_SUFFIXES] org_small_large = {'victim.orgsize.Small': SMALL_ORG, 'victim.orgsize.Large': LARGE_ORG} matrix_enums = ['actor', 'action', 'victim.employee_count', 'security_incident', 'asset.assets', 'asset.assets.variety', 'asset.cloud', 'asset.hosting', 'asset.management', 'asset.ownership', 'attribute.confidentiality.data.variety', 'attribute.confidentiality.data_disclosure', 'discovery_method', 'targeted', 'attribute.integrity.variety', 'attribute.availability.variety'] matrix_ignore = ['cve', 'name', 'notes', 'country', 'industry']
N = int(input()) ans = min(9, N) + max(0, min(999, N) - 99) + max(0, min(99999, N) - 9999) print(ans)
n = int(input()) ans = min(9, N) + max(0, min(999, N) - 99) + max(0, min(99999, N) - 9999) print(ans)
__author__ = 'vlosing' class BaseClassifier(object): """ Base class for classifier. """ def __init__(self): pass def fit(self, samples, labels, epochs): raise NotImplementedError() def partial_fit(self, samples, labels, classes): raise NotImplementedError() def alternateFitPredict(self, samples, labels, classes): raise NotImplementedError() def predict(self, samples): raise NotImplementedError() def predict_proba(self, samples): raise NotImplementedError() def getInfos(self): raise NotImplementedError() def getComplexity(self): raise NotImplementedError() def getComplexityNumParameterMetric(self): raise NotImplementedError() def trainOnline(self, X, y, classes): predictedLabels = self.alternateFitPredict(X, y, classes) return predictedLabels, self.getComplexity(), self.getComplexityNumParameterMetric()
__author__ = 'vlosing' class Baseclassifier(object): """ Base class for classifier. """ def __init__(self): pass def fit(self, samples, labels, epochs): raise not_implemented_error() def partial_fit(self, samples, labels, classes): raise not_implemented_error() def alternate_fit_predict(self, samples, labels, classes): raise not_implemented_error() def predict(self, samples): raise not_implemented_error() def predict_proba(self, samples): raise not_implemented_error() def get_infos(self): raise not_implemented_error() def get_complexity(self): raise not_implemented_error() def get_complexity_num_parameter_metric(self): raise not_implemented_error() def train_online(self, X, y, classes): predicted_labels = self.alternateFitPredict(X, y, classes) return (predictedLabels, self.getComplexity(), self.getComplexityNumParameterMetric())
''' done ''' def Jumlah(a, b): return a + b print(Jumlah(2, 8))
""" done """ def jumlah(a, b): return a + b print(jumlah(2, 8))
greetings = ["hello", "world", "Jenn"] for greeting in greetings: print(f"{greeting}, World") def add_number(x, y): return x + y add_number(1, 2) things_to_do = ["pickup meds", "shower", "change bandage", "python", "brush Baby and pack dogs", "Whole Foods", "Jocelyn"]
greetings = ['hello', 'world', 'Jenn'] for greeting in greetings: print(f'{greeting}, World') def add_number(x, y): return x + y add_number(1, 2) things_to_do = ['pickup meds', 'shower', 'change bandage', 'python', 'brush Baby and pack dogs', 'Whole Foods', 'Jocelyn']
class Solution: #Function to convert a binary tree into its mirror tree. def mirror(self,root): # Code here if(root == None): return else: self.mirror(root.left) self.mirror(root.right) root.left, root.right = root.right, root.left
class Solution: def mirror(self, root): if root == None: return else: self.mirror(root.left) self.mirror(root.right) (root.left, root.right) = (root.right, root.left)
class InvalidTableIdException(Exception): """ Indicate that the table id was not 0xFC as required """ pass class ReservedBitsException(Exception): """ Indicate that bits reserved by the specification were not set to 1 as required """ pass class SectionParsingErrorException(Exception): pass class NotAnHLSCueTag(Exception): pass class NotImplementedException(Exception): pass class NoSegmentationDescriptorException(Exception): pass class FieldNotDefinedException(Exception): pass class MissingCueException(Exception): pass
class Invalidtableidexception(Exception): """ Indicate that the table id was not 0xFC as required """ pass class Reservedbitsexception(Exception): """ Indicate that bits reserved by the specification were not set to 1 as required """ pass class Sectionparsingerrorexception(Exception): pass class Notanhlscuetag(Exception): pass class Notimplementedexception(Exception): pass class Nosegmentationdescriptorexception(Exception): pass class Fieldnotdefinedexception(Exception): pass class Missingcueexception(Exception): pass
## robot_servant.py ## This code implements a search space model for a robot ## that can move around a house and pick up and put down ## objects. ## The function calls provided for a general search algorithm are: ## robot_print_problem_info() ## robot_initial_state ## robot_possible_actions(state) ## robot_successor_state(action,state) ## robot_goal_state( state ) ## robot_display_state( state ) ## not yet implemented print( "Loading robot_servant.py" ) ROBOT_GOAL = "undefined" ## will be defined when problem is initialised def robot_initialise_1(): global permanent_facts, initial_state, ROBOT_GOAL permanent_facts = robot_permanent_facts_1 initial_state = robot_initial_state_1 ROBOT_GOAL = robot_goal_1 robot_permanent_facts_1 = [ ('connected', 'kitchen', 'garage', 'door_kg'), ('connected', 'kitchen', 'larder', 'door_kl'), ] robot_initial_state_1 = [ ('locked', 'door_kl'), ('unlocked', 'door_kg'), ('located', 'robot', 'kitchen'), ('located', 'key', 'garage' ), ('located', 'spade', 'garage' ), ('located', 'ring', 'larder' ), ('located', 'sausages', 'larder') ] robot_goal_1 = ('and', ('carrying','ring'), ('located', 'sausages', 'kitchen')) robot_goal_easy = ('carrying','ring') def robot_possible_actions(state): pickup_actions = possible_pickup_actions(state) move_actions = possible_move_actions(state) drop_actions = possible_drop_actions(state) unlock_actions = possible_unlock_actions(state) return pickup_actions + move_actions + drop_actions + unlock_actions def robot_successor_state( action, state ): newstate = list(state) ## set newstate to a copy of state robloc = get_robot_location(state) if action[0] == 'pickup': item = action[1] newstate.remove(('located', item, robloc)) newstate.append(('carrying', item)) newstate.sort() return newstate if action[0] == 'drop': item = action[1] newstate.remove(('carrying', item)) newstate.append(('located', item, robloc)) newstate.sort() return newstate if action[0] == 'move': dest = action[1] newstate.remove(('located', 'robot', robloc)) newstate.append(('located', 'robot', dest)) newstate.sort() return newstate if action[0] == 'unlock': door = action[1] newstate.remove(('locked', door)) newstate.append(('unlocked', door)) newstate.sort() return newstate print( "ERROR: unrecognised action: " + action ) return ['error'] def possible_pickup_actions(state): loc = get_robot_location(state) items = get_location_items(loc, state) items.remove('robot') return [('pickup', item) for item in items] def possible_move_actions(state): robloc = get_robot_location(state) destinations = [] for fact in permanent_facts: ##print fact if (fact[0] == 'connected'): r1 = fact[1] r2 = fact[2] door = fact[3] if holds(('unlocked', door), state): if r1 == robloc: destinations = destinations + [r2] if r2 == robloc: destinations = destinations + [r1] return [('move', dest) for dest in destinations] def possible_drop_actions(state): items = [] for fact in state: if fact[0]=='carrying': items = items + [fact[1]] return [('drop',i) for i in items] def possible_unlock_actions(state): if not(holds( ('carrying', 'key'), state)): return [] robloc = get_robot_location(state) doors = [] for fact in permanent_facts: if (fact[0] == 'connected'): r1 = fact[1] r2 = fact[2] door = fact[3] if holds(('locked', door), state): if (r1 == robloc) | (r2 == robloc): doors = doors + [door] return [('unlock', d) for d in doors] def get_robot_location(state): for fact in state: if ((fact[0] == 'located') & (fact[1] == 'robot')): return fact[2] def get_location_items( loc, state ): items = [] for fact in state: if (fact[0] == 'located'): if (fact[2] == loc): items = items + [ fact[1] ] return items def goal_string(): global ROBOT_GOAL ##return " ".join(ROBOT_GOAL) return str(ROBOT_GOAL) def robot_print_problem_info(): print( "Problem: Robot in the Kitchen" ) print( "Goal: " + goal_string() ) def set_robot_goal( goal ): global ROBOT_GOAL ROBOT_GOAL = goal return robot_goal_state def robot_goal_state( state ): global ROBOT_GOAL return holds( ROBOT_GOAL, state ) def holds(fact,state): if fact[0] == 'and': return conjunction_holds( fact, state ) if fact in permanent_facts: return True if fact in state: return True return False def conjunction_holds( conjunction, state ): for i in range(1, len(conjunction)): if not( holds(conjunction[i],state) ): return False return True robot_search_problem_1 = ( robot_initialise_1, robot_print_problem_info, robot_initial_state_1, robot_possible_actions, robot_successor_state, robot_goal_state, )
print('Loading robot_servant.py') robot_goal = 'undefined' def robot_initialise_1(): global permanent_facts, initial_state, ROBOT_GOAL permanent_facts = robot_permanent_facts_1 initial_state = robot_initial_state_1 robot_goal = robot_goal_1 robot_permanent_facts_1 = [('connected', 'kitchen', 'garage', 'door_kg'), ('connected', 'kitchen', 'larder', 'door_kl')] robot_initial_state_1 = [('locked', 'door_kl'), ('unlocked', 'door_kg'), ('located', 'robot', 'kitchen'), ('located', 'key', 'garage'), ('located', 'spade', 'garage'), ('located', 'ring', 'larder'), ('located', 'sausages', 'larder')] robot_goal_1 = ('and', ('carrying', 'ring'), ('located', 'sausages', 'kitchen')) robot_goal_easy = ('carrying', 'ring') def robot_possible_actions(state): pickup_actions = possible_pickup_actions(state) move_actions = possible_move_actions(state) drop_actions = possible_drop_actions(state) unlock_actions = possible_unlock_actions(state) return pickup_actions + move_actions + drop_actions + unlock_actions def robot_successor_state(action, state): newstate = list(state) robloc = get_robot_location(state) if action[0] == 'pickup': item = action[1] newstate.remove(('located', item, robloc)) newstate.append(('carrying', item)) newstate.sort() return newstate if action[0] == 'drop': item = action[1] newstate.remove(('carrying', item)) newstate.append(('located', item, robloc)) newstate.sort() return newstate if action[0] == 'move': dest = action[1] newstate.remove(('located', 'robot', robloc)) newstate.append(('located', 'robot', dest)) newstate.sort() return newstate if action[0] == 'unlock': door = action[1] newstate.remove(('locked', door)) newstate.append(('unlocked', door)) newstate.sort() return newstate print('ERROR: unrecognised action: ' + action) return ['error'] def possible_pickup_actions(state): loc = get_robot_location(state) items = get_location_items(loc, state) items.remove('robot') return [('pickup', item) for item in items] def possible_move_actions(state): robloc = get_robot_location(state) destinations = [] for fact in permanent_facts: if fact[0] == 'connected': r1 = fact[1] r2 = fact[2] door = fact[3] if holds(('unlocked', door), state): if r1 == robloc: destinations = destinations + [r2] if r2 == robloc: destinations = destinations + [r1] return [('move', dest) for dest in destinations] def possible_drop_actions(state): items = [] for fact in state: if fact[0] == 'carrying': items = items + [fact[1]] return [('drop', i) for i in items] def possible_unlock_actions(state): if not holds(('carrying', 'key'), state): return [] robloc = get_robot_location(state) doors = [] for fact in permanent_facts: if fact[0] == 'connected': r1 = fact[1] r2 = fact[2] door = fact[3] if holds(('locked', door), state): if (r1 == robloc) | (r2 == robloc): doors = doors + [door] return [('unlock', d) for d in doors] def get_robot_location(state): for fact in state: if (fact[0] == 'located') & (fact[1] == 'robot'): return fact[2] def get_location_items(loc, state): items = [] for fact in state: if fact[0] == 'located': if fact[2] == loc: items = items + [fact[1]] return items def goal_string(): global ROBOT_GOAL return str(ROBOT_GOAL) def robot_print_problem_info(): print('Problem: Robot in the Kitchen') print('Goal: ' + goal_string()) def set_robot_goal(goal): global ROBOT_GOAL robot_goal = goal return robot_goal_state def robot_goal_state(state): global ROBOT_GOAL return holds(ROBOT_GOAL, state) def holds(fact, state): if fact[0] == 'and': return conjunction_holds(fact, state) if fact in permanent_facts: return True if fact in state: return True return False def conjunction_holds(conjunction, state): for i in range(1, len(conjunction)): if not holds(conjunction[i], state): return False return True robot_search_problem_1 = (robot_initialise_1, robot_print_problem_info, robot_initial_state_1, robot_possible_actions, robot_successor_state, robot_goal_state)
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # Invenio-Files-Transformer is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Invenio module for transforming and/or processing files.""" # TODO: This is an example file. Remove it if your package does not use any # extra configuration variables. FILES_TRANSFORMER_DEFAULT_VALUE = 'foobar' """Default value for the application.""" FILES_TRANSFORMER_BASE_TEMPLATE = 'invenio_files_transformer/base.html' """Default base template for the demo page."""
"""Invenio module for transforming and/or processing files.""" files_transformer_default_value = 'foobar' 'Default value for the application.' files_transformer_base_template = 'invenio_files_transformer/base.html' 'Default base template for the demo page.'
# [Root Abyss] The World Girl MYSTERIOUS_GIRL = 1064001 # npc Id sm.removeEscapeButton() sm.lockInGameUI(True) sm.setPlayerAsSpeaker() sm.sendNext("If you're really the World Tree, can't you just like... magic yourself outta here?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("No! Those bad people did this to me!") sm.setPlayerAsSpeaker() sm.sendNext("Oh, here we go...") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("Before I laid down to rest, I set up a barrier to keep me safe here, but some creeps broke in. " "One of them even tried to kidnap me!") sm.setPlayerAsSpeaker() sm.sendNext("Were they the Black Mage's minions?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("I don't know, they were all wearing hoods. One of them was this nasty little demon-faced guy with an eye patch. " "I think he was their boss.") sm.showFieldBackgroundEffect("Effect/Direction11.img/effect/meet/frame0/0") sm.showFieldEffect("Map/Effect.img/rootabyss/demian") sm.invokeAfterDelay(1000, "showFadeTransition", 1500, 0, 1000) sm.setPlayerAsSpeaker() sm.invokeAfterDelay(4500, "sendNext", "A demon with an eyepatch tried to kidnap you? Do you realise how crazy that sounds?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("It's true! He was dragging me out of here until he found out I wasn't fully recovered. Then he sealed me up in here.") sm.setPlayerAsSpeaker() sm.sendNext("Is that why you couldn't get through the gateway?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("I think so. I'm pretty sure he was the one who corrupted Root Abyss too. " "I just can't use my powers with all of this dark energy around.") sm.sendNext("I'm worried that the darkness will swallow me whole at this rate. Will you help me?") sm.lockInGameUI(False) sm.completeQuest(parentID)
mysterious_girl = 1064001 sm.removeEscapeButton() sm.lockInGameUI(True) sm.setPlayerAsSpeaker() sm.sendNext("If you're really the World Tree, can't you just like... magic yourself outta here?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext('No! Those bad people did this to me!') sm.setPlayerAsSpeaker() sm.sendNext('Oh, here we go...') sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext('Before I laid down to rest, I set up a barrier to keep me safe here, but some creeps broke in. One of them even tried to kidnap me!') sm.setPlayerAsSpeaker() sm.sendNext("Were they the Black Mage's minions?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("I don't know, they were all wearing hoods. One of them was this nasty little demon-faced guy with an eye patch. I think he was their boss.") sm.showFieldBackgroundEffect('Effect/Direction11.img/effect/meet/frame0/0') sm.showFieldEffect('Map/Effect.img/rootabyss/demian') sm.invokeAfterDelay(1000, 'showFadeTransition', 1500, 0, 1000) sm.setPlayerAsSpeaker() sm.invokeAfterDelay(4500, 'sendNext', 'A demon with an eyepatch tried to kidnap you? Do you realise how crazy that sounds?') sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("It's true! He was dragging me out of here until he found out I wasn't fully recovered. Then he sealed me up in here.") sm.setPlayerAsSpeaker() sm.sendNext("Is that why you couldn't get through the gateway?") sm.setSpeakerID(MYSTERIOUS_GIRL) sm.sendNext("I think so. I'm pretty sure he was the one who corrupted Root Abyss too. I just can't use my powers with all of this dark energy around.") sm.sendNext("I'm worried that the darkness will swallow me whole at this rate. Will you help me?") sm.lockInGameUI(False) sm.completeQuest(parentID)
#!usr/bin/python # -*- coding:utf8 -*- class MyException(Exception): pass try: raise MyException('my exception') # exception MyException as e: except Exception as e: print(e)
class Myexception(Exception): pass try: raise my_exception('my exception') except Exception as e: print(e)
# Author: Kay Hartmann <kg.hartma@gmail.com> def weight_filler(m): classname = m.__class__.__name__ if classname.find('MultiConv') != -1: for conv in m.convs: conv.weight.data.normal_(0.0, 1.) if conv.bias is not None: conv.bias.data.fill_(0.) elif classname.find('Conv') != -1 or classname.find('Linear') != -1: m.weight.data.normal_(0.0, 1.) # From progressive GAN paper if m.bias is not None: m.bias.data.fill_(0.) elif classname.find('BatchNorm') != -1 or classname.find('LayerNorm') != -1: if m.weight is not None: m.weight.data.normal_(1.0, 0.02) if m.bias is not None: m.bias.data.fill_(0.) def fill_weights_normal(w): if w is not None: w.data.normal_(0.0, 1.)
def weight_filler(m): classname = m.__class__.__name__ if classname.find('MultiConv') != -1: for conv in m.convs: conv.weight.data.normal_(0.0, 1.0) if conv.bias is not None: conv.bias.data.fill_(0.0) elif classname.find('Conv') != -1 or classname.find('Linear') != -1: m.weight.data.normal_(0.0, 1.0) if m.bias is not None: m.bias.data.fill_(0.0) elif classname.find('BatchNorm') != -1 or classname.find('LayerNorm') != -1: if m.weight is not None: m.weight.data.normal_(1.0, 0.02) if m.bias is not None: m.bias.data.fill_(0.0) def fill_weights_normal(w): if w is not None: w.data.normal_(0.0, 1.0)
# Copyright (c) 2021 Arm Limited. # # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. _TFLITE_TYPECODE2ACLNAME = { 0: "fp32", # Float32 1: "fp16", # Float16 2: "integer", # Int32 3: "qasymm8", # Uint8 # 4: "Unsupported", # Int64 # 5: "Unsupported", # String 6: "integer", # Bool 7: "qsymm16", # Int16 # 8: "Unsupported", # Complex64 9: "qasymm8_signed", # Int8 } _TFLITE_TYPECODE2NAME = { 0: "Float32", 1: "Float16", 2: "Int32", 3: "Uint8", 4: "Int64", 5: "String", 6: "Bool", 7: "Int16", 8: "Complex64", 9: "Int8", } _TFLITE_TO_ACL = { "ADD": "Add", # 0 "AVERAGE_POOL_2D": "Pool2d", # 1 "CONCATENATION": "Concatenate", # 2 "CONV_2D": "Conv2d", # 3 "DEPTHWISE_CONV_2D": "DepthwiseConv2d", # 4 "DEPTH_TO_SPACE": "DepthToSpace", # 5 "DEQUANTIZE": "Dequantize", # 6 # "EMBEDDING_LOOKUP" : "Unsupported", #7 "FLOOR": "Floor", # 8 "FULLY_CONNECTED": "FullyConnected", # 9 # "HASHTABLE_LOOKUP" : "Unsupported", #10 "L2_NORMALIZATION": "L2Normalize", # 11 "L2_POOL_2D": "Pool2d", # 12 "LOCAL_RESPONSE_NORMALIZATION": "Normalize", # 13 "LOGISTIC": "Activation", # 14 # "LSH_PROJECTION" : "Unsupported", #15 "LSTM": "LSTM", # 16 "MAX_POOL_2D": "Pool2d", # 17 "MUL": "Mul", # 18 "RELU": "Activation", # 19 "RELU_N1_TO_1": "Activation", # 20 "RELU6": "Activation", # 21 "RESHAPE": "Reshape", # 22 "RESIZE_BILINEAR": "Scale", # 23 "RNN": "RNN", # 24 "SOFTMAX": "Softmax", # 25 "SPACE_TO_DEPTH": "SpaceToDepth", # 26 # "SVDF" : "Unsupported", #27 "TANH": "Activation", # 28 # "CONCAT_EMBEDDINGS" : "Unsupported", #29 # "SKIP_GRAM" : "Unsupported", #30 # "CALL" : "Unsupported", #31 # "CUSTOM" : "Unsupported", #32 # "EMBEDDING_LOOKUP_SPARSE" : "Unsupported", #33 "PAD": "Pad", # 34 # "UNIDIRECTIONAL_SEQUENCE_RNN" : "Unsupported", #35 "GATHER": "Gather", # 36 "BATCH_TO_SPACE_ND": "BatchToSpace", # 37 "SPACE_TO_BATCH_ND": "SpaceToBatch", # 38 "TRANSPOSE": "Permute", # 39 "MEAN": "Reduction", # 40 "SUB": "Sub", # 41 "DIV": "Div", # 42 "SQUEEZE": "Reshape", # 43 # "UNIDIRECTIONAL_SEQUENCE_LSTM" : "Unsupported", #44 "STRIDED_SLICE": "StridedSlice", # 45 # "BIDIRECTIONAL_SEQUENCE_RNN" : "Unsupported", #46 "EXP": "ElementwiseUnary", # 47 # "TOPK_V2" : "Unsupported", #48 "SPLIT": "Split", # 49 "LOG_SOFTMAX": "Softmax", # 50 # "DELEGATE" : "Unuspported", #51 # "BIDIRECTIONAL_SEQUENCE_LSTM" : "Unsupported", #52 "CAST": "Cast", # 53 "PRELU": "PRelu", # 54 "MAXIMUM": "ElementwiseBinary", # 55 "ARG_MAX": "Reduction", # 56 "MINIMUM": "ElementwiseBinary", # 57 "LESS": "ElementwiseBinary", # 58 "NEG": "ElementwiseUnary", # 59 "PADV2": "Pad", # 60 "GREATER": "ElementwiseBinary", # 61 "GREATER_EQUAL": "ElementwiseBinary", # 62 "LESS_EQUAL": "ElementwiseBinary", # 63 "SELECT": "Select", # 64 "SLICE": "Slice", # 65 "SIN": "ElementwiseUnary", # 66 "TRANSPOSE_CONV": "TransposeConv2d", # 67 # "SPARSE_TO_DENSE" : "Unsupported", #68 "TILE": "Tile", # 69 "EXPAND_DIMS": "Reshape", # 70 "EQUAL": "ElementwiseBinary", # 71 "NOT_EQUAL": "ElementwiseBinary", # 72 "LOG": "ElementwiseUnary", # 73 "SUM": "Reduction", # 74 "SQRT": "Activation", # 75 "RSQRT": "ElementwiseUnary", # 76 "SHAPE": "", # 77 "POW": "ElementwiseBinary", # 78 "ARG_MIN": "Reduction", # 79 # "FAKE_QUANT" : "Unsupported", #80 "REDUCE_PROD": "Reduction", # 81 "REDUCE_MAX": "Reduction", # 82 "PACK": "Stack", # 83 "LOGICAL_OR": "ElementwiseBinary", # 84 "ONE_HOT": "Unsupported", # 85 "LOGICAL_AND": "ElementwiseBinary", # 86 "LOGICAL_NOT": "ElementwiseUnary", # 87 "UNPACK": "Unstack", # 88 "REDUCE_MIN": "Reduction", # 89 # "FLOOR_DIV" : "Unsupported", #90 # "REDUCE_ANY" : "Unsupported", #91 "SQUARE": "Activation", # 92 "ZEROS_LIKE": "", # 93 "FILL": "Fill", # 94 # "FLOOR_MOD" : "Unsupported", #95 "RANGE": "", # 96 "RESIZE_NEAREST_NEIGHBOR": "Scale", # 97 "LEAKY_RELU": "Activation", # 98 "SQUARED_DIFFERENCE": "ElementwiseBinary", # 99 "MIRROR_PAD": "Pad", # 100 "ABS": "ElementwiseUnary", # 101 "SPLIT_V": "Split", # 102 # "UNIQUE" : "Unsupported", #103 # "CEIL" : "Unsupported", #104 "REVERSE_V2": "Reverse", # 105 "ADD_N": "Add", # 106 "GATHER_ND": "Gather", # 107 "COS" : "ElementwiseUnary", #108 # "WHERE" : "Unsupported", #109 "RANK": "", # 110 "ELU": "Activation", # 111 # "REVERSE_SEQUENCE" : "Unsupported", #112 # "MATRIX_DIAG" : "Unsupported", #113 "QUANTIZE": "Quantize", # 114 # "MATRIX_SET_DIAG" : "Unsupported", #115 "ROUND": "ElementwiseUnary", # 116 "HARD_SWISH": "Activation", # 117 # "IF" : "Unsupported", #118 # "WHILE" : "Unsupported", #119 # "NON_MAX_SUPPRESSION_V4" : "Unsupported", #120 # "NON_MAX_SUPPRESSION_V5" : "Unsupported", #121 # "SCATTER_ND" : "Unsupported", #122 "SELECT_V2": "Select", # 123 "DENSIFY": "Cast", # 124 # "SEGMENT_SUM" : "Unsupported", #125 "BATCH_MATMUL": "GEMM", # 126 # "PLACEHOLDER_FOR_GREATER_OP_CODES" : "Unsupported", #127 # "CUMSUM" : "Unsupported", #128 # "CALL_ONCE" : "Unsupported", #129 # "BROADCAST_TO" : "Unsupported", #130 # "RFFT2D" : "Unsupported", #131 # "CONV_3D" : "Unsupported", #132 # "IMAG" : "Unsupported", #133 # "REAL" : "Unsupported", #134 # "COMPLEX_ABS" : "Unsupported", #135 # "HASHTABLE" : "Unsupported", #136 # "HASHTABLE_FIND" : "Unsupported", #137 # "HASHTABLE_IMPORT" : "Unsupported", #138 # "HASHTABLE_SIZE" : "Unsupported", #139 # "REDUCE_ALL" : "Unsupported", #140 # "CONV_3D_TRANSPOSE" : "Unsupported", #141 # "VAR_HANDLE" : "Unsupported", #142 # "READ_VARIABLE" : "Unsupported", #143 # "ASSIGN_VARIABLE" : "Unsupported", #144 } def tflite_typecode2aclname(toc): """Stringify TFLite data-type opcodes to ACL versions Parameters: ---------- toc: int TFLite type opcode Returns ---------- str Stringified opcode Raises ------ ValueError If opcode does not exist in the map """ if toc in _TFLITE_TYPECODE2ACLNAME: return _TFLITE_TYPECODE2ACLNAME[toc] else: raise ValueError("Unknown ACL typecode %d" % toc) def tflite_typecode2name(toc): """Stringify TFLite data-type opcodes Parameters: ---------- toc: int TFLite type opcode Returns ---------- str Stringified opcode Raises ------ ValueError If opcode does not exist in the map """ if toc in _TFLITE_TYPECODE2NAME: return _TFLITE_TYPECODE2NAME[toc] else: raise ValueError("Unknown typecode %d" % toc) def tflite_op2acl(top): """Map TFLite operators to ComputeLibrary ones Parameters: ---------- top: str TFLite operator name Returns ---------- str Relevant ComputeLibrary operator name Raises ------ ValueError If operator cannot be mapped """ if top in _TFLITE_TO_ACL: return _TFLITE_TO_ACL[top] else: raise ValueError("Operator {} does not exist in ComputeLibrary" % top)
_tflite_typecode2_aclname = {0: 'fp32', 1: 'fp16', 2: 'integer', 3: 'qasymm8', 6: 'integer', 7: 'qsymm16', 9: 'qasymm8_signed'} _tflite_typecode2_name = {0: 'Float32', 1: 'Float16', 2: 'Int32', 3: 'Uint8', 4: 'Int64', 5: 'String', 6: 'Bool', 7: 'Int16', 8: 'Complex64', 9: 'Int8'} _tflite_to_acl = {'ADD': 'Add', 'AVERAGE_POOL_2D': 'Pool2d', 'CONCATENATION': 'Concatenate', 'CONV_2D': 'Conv2d', 'DEPTHWISE_CONV_2D': 'DepthwiseConv2d', 'DEPTH_TO_SPACE': 'DepthToSpace', 'DEQUANTIZE': 'Dequantize', 'FLOOR': 'Floor', 'FULLY_CONNECTED': 'FullyConnected', 'L2_NORMALIZATION': 'L2Normalize', 'L2_POOL_2D': 'Pool2d', 'LOCAL_RESPONSE_NORMALIZATION': 'Normalize', 'LOGISTIC': 'Activation', 'LSTM': 'LSTM', 'MAX_POOL_2D': 'Pool2d', 'MUL': 'Mul', 'RELU': 'Activation', 'RELU_N1_TO_1': 'Activation', 'RELU6': 'Activation', 'RESHAPE': 'Reshape', 'RESIZE_BILINEAR': 'Scale', 'RNN': 'RNN', 'SOFTMAX': 'Softmax', 'SPACE_TO_DEPTH': 'SpaceToDepth', 'TANH': 'Activation', 'PAD': 'Pad', 'GATHER': 'Gather', 'BATCH_TO_SPACE_ND': 'BatchToSpace', 'SPACE_TO_BATCH_ND': 'SpaceToBatch', 'TRANSPOSE': 'Permute', 'MEAN': 'Reduction', 'SUB': 'Sub', 'DIV': 'Div', 'SQUEEZE': 'Reshape', 'STRIDED_SLICE': 'StridedSlice', 'EXP': 'ElementwiseUnary', 'SPLIT': 'Split', 'LOG_SOFTMAX': 'Softmax', 'CAST': 'Cast', 'PRELU': 'PRelu', 'MAXIMUM': 'ElementwiseBinary', 'ARG_MAX': 'Reduction', 'MINIMUM': 'ElementwiseBinary', 'LESS': 'ElementwiseBinary', 'NEG': 'ElementwiseUnary', 'PADV2': 'Pad', 'GREATER': 'ElementwiseBinary', 'GREATER_EQUAL': 'ElementwiseBinary', 'LESS_EQUAL': 'ElementwiseBinary', 'SELECT': 'Select', 'SLICE': 'Slice', 'SIN': 'ElementwiseUnary', 'TRANSPOSE_CONV': 'TransposeConv2d', 'TILE': 'Tile', 'EXPAND_DIMS': 'Reshape', 'EQUAL': 'ElementwiseBinary', 'NOT_EQUAL': 'ElementwiseBinary', 'LOG': 'ElementwiseUnary', 'SUM': 'Reduction', 'SQRT': 'Activation', 'RSQRT': 'ElementwiseUnary', 'SHAPE': '', 'POW': 'ElementwiseBinary', 'ARG_MIN': 'Reduction', 'REDUCE_PROD': 'Reduction', 'REDUCE_MAX': 'Reduction', 'PACK': 'Stack', 'LOGICAL_OR': 'ElementwiseBinary', 'ONE_HOT': 'Unsupported', 'LOGICAL_AND': 'ElementwiseBinary', 'LOGICAL_NOT': 'ElementwiseUnary', 'UNPACK': 'Unstack', 'REDUCE_MIN': 'Reduction', 'SQUARE': 'Activation', 'ZEROS_LIKE': '', 'FILL': 'Fill', 'RANGE': '', 'RESIZE_NEAREST_NEIGHBOR': 'Scale', 'LEAKY_RELU': 'Activation', 'SQUARED_DIFFERENCE': 'ElementwiseBinary', 'MIRROR_PAD': 'Pad', 'ABS': 'ElementwiseUnary', 'SPLIT_V': 'Split', 'REVERSE_V2': 'Reverse', 'ADD_N': 'Add', 'GATHER_ND': 'Gather', 'COS': 'ElementwiseUnary', 'RANK': '', 'ELU': 'Activation', 'QUANTIZE': 'Quantize', 'ROUND': 'ElementwiseUnary', 'HARD_SWISH': 'Activation', 'SELECT_V2': 'Select', 'DENSIFY': 'Cast', 'BATCH_MATMUL': 'GEMM'} def tflite_typecode2aclname(toc): """Stringify TFLite data-type opcodes to ACL versions Parameters: ---------- toc: int TFLite type opcode Returns ---------- str Stringified opcode Raises ------ ValueError If opcode does not exist in the map """ if toc in _TFLITE_TYPECODE2ACLNAME: return _TFLITE_TYPECODE2ACLNAME[toc] else: raise value_error('Unknown ACL typecode %d' % toc) def tflite_typecode2name(toc): """Stringify TFLite data-type opcodes Parameters: ---------- toc: int TFLite type opcode Returns ---------- str Stringified opcode Raises ------ ValueError If opcode does not exist in the map """ if toc in _TFLITE_TYPECODE2NAME: return _TFLITE_TYPECODE2NAME[toc] else: raise value_error('Unknown typecode %d' % toc) def tflite_op2acl(top): """Map TFLite operators to ComputeLibrary ones Parameters: ---------- top: str TFLite operator name Returns ---------- str Relevant ComputeLibrary operator name Raises ------ ValueError If operator cannot be mapped """ if top in _TFLITE_TO_ACL: return _TFLITE_TO_ACL[top] else: raise value_error('Operator {} does not exist in ComputeLibrary' % top)
class Solution: def orderOfLargestPlusSign(self, N: int, mines: List[List[int]]) -> int: """DP. Running time: O(N*N). """ mines = set(tuple(mine) for mine in mines) counts = [[0] * N for i in range(N)] res = 0 for i in range(N): c = 0 for j in range(N): c = 0 if (i, j) in mines else c + 1 counts[i][j] = c c = 0 for j in range(N - 1, -1, -1): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) for j in range(N): c = 0 for i in range(N): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) c = 0 for i in range(N - 1, -1, -1): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) res = max(res, counts[i][j]) return res
class Solution: def order_of_largest_plus_sign(self, N: int, mines: List[List[int]]) -> int: """DP. Running time: O(N*N). """ mines = set((tuple(mine) for mine in mines)) counts = [[0] * N for i in range(N)] res = 0 for i in range(N): c = 0 for j in range(N): c = 0 if (i, j) in mines else c + 1 counts[i][j] = c c = 0 for j in range(N - 1, -1, -1): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) for j in range(N): c = 0 for i in range(N): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) c = 0 for i in range(N - 1, -1, -1): c = 0 if (i, j) in mines else c + 1 counts[i][j] = min(counts[i][j], c) res = max(res, counts[i][j]) return res
class Figura(): def __init__(self, figura): self.__figura = figura def area(self): return self.__figura.area() def perimetro(self): return self.__figura.perimetro()
class Figura: def __init__(self, figura): self.__figura = figura def area(self): return self.__figura.area() def perimetro(self): return self.__figura.perimetro()
### ### NOTICE: this file did not exit in the original Dimorphite_DL release. ### The is newly created based on "sites_substructures.smarts" file ### - made a readable Python module from it. Andrey Frolov, 2020-09-15 ### - added last column with acid-base classification. Andrey Frolov, 2020-09-11 ### - added TATA substructure. Andrey Frolov, 2020-09-15 ### Should be consistent with the current "sites_substructures.smarts" file ### data_txt=''' TATA CC(=O)N1CN(CN(C1)C(C)=O)C(C)=O NaN NaN NaN base *Azide [N+0:1]=[N+:2]=[N+0:3]-[H] 2 4.65 0.07071067811865513 acid Nitro [C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H] 3 -1000.0 0 acid AmidineGuanidine1 [N:1]-[C:2](-[N:3])=[NX2:4]-[H:5] 3 12.025333333333334 1.5941046150769165 base AmidineGuanidine2 [C:1](-[N:2])=[NX2+0:3] 2 10.035538461538462 2.1312826469414716 base Sulfate [SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H] 5 -2.36 1.3048043093561141 acid Sulfonate [SX4:1](=[O:2])(=[O:3])(-[C,c,N,n:4])-[OX2:5]-[H] 4 -1.8184615384615386 1.4086213481855594 acid Sulfinic_acid [SX3:1](=[O:2])-[O:3]-[H] 2 1.7933333333333332 0.4372070447739835 acid Phenyl_carboxyl [c,n,o:1]-[C:2](=[O:3])-[O:4]-[H] 3 3.463441968255319 1.2518054407928614 acid Carboxyl [C:1](=[O:2])-[O:3]-[H] 2 3.456652971502591 1.2871420886834017 acid Thioic_acid [C,c,N,n:1](=[O,S:2])-[SX2,OX2:3]-[H] 2 0.678267 1.497048763660801 acid Phenyl_Thiol [c,n:1]-[SX2:2]-[H] 1 4.978235294117647 2.6137000480499806 acid Thiol [C,N:1]-[SX2:2]-[H] 1 9.12448275862069 1.3317968158171463 acid # [*]OP(=O)(O[H])O[H]. Note that this matches terminal phosphate of ATP, ADP, AMP. Phosphate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[O+0:4])-[OX2:5]-[H] 2 2.4182608695652172 1.1091177991945305 5 6.5055 0.9512787792174668 diacid # Note that Internal_phosphate_polyphos_chain and # Initial_phosphate_like_in_ATP_ADP were added on 6/2/2020 to better detail with # molecules that have polyphosphate chains (e.g., ATP, ADP, NADH, etc.). Unlike # the other protonation states, these two were not determined by analyzing a set # of many compounds with experimentally determined pKa values. # For Internal_phosphate_polyphos_chain, we use a mean pKa value of 0.9, per # DOI: 10.7554/eLife.38821. For the precision value we use 1.0, which is roughly # the precision of the two ionizable hydroxyls from Phosphate (see above). Note # that when using recursive SMARTS strings, RDKit considers only the first atom # to be a match. Subsequent atoms define the environment. Internal_phosphate_polyphos_chain [$([PX4:1](=O)([OX2][PX4](=O)([OX2])(O[H]))([OX2][PX4](=O)(O[H])([OX2])))][O:2]-[H] 1 0.9 1.0 acid # For Initial_phosphate_like_in_ATP_ADP, we use the same values found for the # lower-pKa hydroxyl of Phosphate (above). Initial_phosphate_like_in_ATP_ADP [$([PX4:1]([OX2][C,c,N,n])(=O)([OX2][PX4](=O)([OX2])(O[H])))]O-[H] 1 2.4182608695652172 1.1091177991945305 acid # [*]P(=O)(O[H])O[H]. Cannot match terminal phosphate of ATP because O not among [C,c,N,n] Phosphonate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[C,c,N,n:4])-[OX2:5]-[H] 2 1.8835714285714287 0.5925999820080644 5 7.247254901960784 0.8511476450801531 diacid Phenol [c,n,o:1]-[O:2]-[H] 1 7.065359866910526 3.277356122295936 acid Peroxide1 [O:1]([$(C=O),$(C[Cl]),$(CF),$(C[Br]),$(CC#N):2])-[O:3]-[H] 2 8.738888888888889 0.7562592839596507 acid Peroxide2 [C:1]-[O:2]-[O:3]-[H] 2 11.978235294117647 0.8697645895163075 acid O=C-C=C-OH [O:1]=[C;R:2]-[C;R:3]=[C;R:4]-[O:5]-[H] 4 3.554 0.803339458581667 acid Vinyl_alcohol [C:1]=[C:2]-[O:3]-[H] 2 8.871850714285713 1.660200255394124 acid Alcohol [C:1]-[O:2]-[H] 1 14.780384615384616 2.546464970533435 acid N-hydroxyamide [C:1](=[O:2])-[N:3]-[O:4]-[H] 3 9.301904761904762 1.2181897185891002 acid *Ringed_imide1 [O,S:1]=[C;R:2]([$([#8]),$([#7]),$([#16]),$([#6][Cl]),$([#6]F),$([#6][Br]):3])-[N;R:4]([C;R:5]=[O,S:6])-[H] 3 6.4525 0.5555627777308341 acid *Ringed_imide2 [O,S:1]=[C;R:2]-[N;R:3]([C;R:4]=[O,S:5])-[H] 2 8.681666666666667 1.8657779975741713 acid *Imide [F,Cl,Br,S,s,P,p:1][#6:2][CX3:3](=[O,S:4])-[NX3+0:5]([CX3:6]=[O,S:7])-[H] 4 2.466666666666667 1.4843629385474877 acid *Imide2 [O,S:1]=[CX3:2]-[NX3+0:3]([CX3:4]=[O,S:5])-[H] 2 10.23 1.1198214143335534 acid *Amide_electronegative [C:1](=[O:2])-[N:3](-[Br,Cl,I,F,S,O,N,P:4])-[H] 2 3.4896 2.688124315081677 acid *Amide [C:1](=[O:2])-[N:3]-[H] 2 12.00611111111111 4.512491341218857 acid *Sulfonamide [SX4:1](=[O:2])(=[O:3])-[NX3+0:4]-[H] 3 7.9160326086956525 1.9842121316708763 acid Anilines_primary [c:1]-[NX3+0:2]([H:3])[H:4] 1 3.899298673194805 2.068768503987161 base Anilines_secondary [c:1]-[NX3+0:2]([H:3])[!H:4] 1 4.335408163265306 2.1768842022330843 base Anilines_tertiary [c:1]-[NX3+0:2]([!H:3])[!H:4] 1 4.16690685045614 2.005865735782679 base Aromatic_nitrogen_unprotonated [n+0&H0:1] 0 4.3535441240733945 2.0714072661859584 base Amines_primary_secondary_tertiary [C:1]-[NX3+0:2] 1 8.159107682388349 2.5183597445318147 base # e.g., [*]P(=O)(O[H])[*]. Note that cannot match the internal phosphates of ATP, because # oxygen is not among [C,c,N,n,F,Cl,Br,I] Phosphinic_acid [PX4:1](=[O:2])(-[C,c,N,n,F,Cl,Br,I:3])(-[C,c,N,n,F,Cl,Br,I:4])-[OX2:5]-[H] 4 2.9745 0.6867886750744557 diacid # e.g., [*]OP(=O)(O[H])O[*]. Cannot match ATP because P not among [C,c,N,n,F,Cl,Br,I] Phosphate_diester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[O+0:5]-[C,c,N,n,F,Cl,Br,I:4])-[OX2:6]-[H] 6 2.7280434782608696 2.5437448856908316 acid # e.g., [*]P(=O)(O[H])O[*]. Cannot match ATP because O not among [C,c,N,n,F,Cl,Br,I]. Phosphonate_ester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[C,c,N,n,F,Cl,Br,I:5])-[OX2:6]-[H] 5 2.0868 0.4503028610465036 acid Primary_hydroxyl_amine [C,c:1]-[O:2]-[NH2:3] 2 4.035714285714286 0.8463816543155368 acid *Indole_pyrrole [c;R:1]1[c;R:2][c;R:3][c;R:4][n;R:5]1[H] 4 14.52875 4.06702491591416 acid *Aromatic_nitrogen_protonated [n:1]-[H] 0 7.17 2.94602395490212 acid '''
data_txt = '\nTATA CC(=O)N1CN(CN(C1)C(C)=O)C(C)=O NaN NaN NaN base\n\n*Azide\t[N+0:1]=[N+:2]=[N+0:3]-[H]\t2\t4.65\t0.07071067811865513 acid\nNitro\t[C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H]\t3\t-1000.0\t0 acid\nAmidineGuanidine1\t[N:1]-[C:2](-[N:3])=[NX2:4]-[H:5]\t3\t12.025333333333334\t1.5941046150769165 base\nAmidineGuanidine2\t[C:1](-[N:2])=[NX2+0:3]\t2\t10.035538461538462\t2.1312826469414716 base\nSulfate\t[SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H]\t5\t-2.36\t1.3048043093561141 acid\nSulfonate\t[SX4:1](=[O:2])(=[O:3])(-[C,c,N,n:4])-[OX2:5]-[H]\t4\t-1.8184615384615386\t1.4086213481855594 acid\nSulfinic_acid\t[SX3:1](=[O:2])-[O:3]-[H]\t2\t1.7933333333333332\t0.4372070447739835 acid\nPhenyl_carboxyl\t[c,n,o:1]-[C:2](=[O:3])-[O:4]-[H]\t3\t3.463441968255319\t1.2518054407928614 acid\nCarboxyl\t[C:1](=[O:2])-[O:3]-[H]\t2\t3.456652971502591\t1.2871420886834017 acid\nThioic_acid\t[C,c,N,n:1](=[O,S:2])-[SX2,OX2:3]-[H]\t2\t0.678267\t1.497048763660801 acid\nPhenyl_Thiol\t[c,n:1]-[SX2:2]-[H]\t1\t4.978235294117647\t2.6137000480499806 acid\nThiol\t[C,N:1]-[SX2:2]-[H]\t1\t9.12448275862069\t1.3317968158171463 acid\n\n# [*]OP(=O)(O[H])O[H]. Note that this matches terminal phosphate of ATP, ADP, AMP.\nPhosphate\t[PX4:1](=[O:2])(-[OX2:3]-[H])(-[O+0:4])-[OX2:5]-[H]\t2\t2.4182608695652172\t1.1091177991945305\t5\t6.5055\t0.9512787792174668 diacid\n\n# Note that Internal_phosphate_polyphos_chain and\n# Initial_phosphate_like_in_ATP_ADP were added on 6/2/2020 to better detail with\n# molecules that have polyphosphate chains (e.g., ATP, ADP, NADH, etc.). Unlike\n# the other protonation states, these two were not determined by analyzing a set\n# of many compounds with experimentally determined pKa values.\n\n# For Internal_phosphate_polyphos_chain, we use a mean pKa value of 0.9, per\n# DOI: 10.7554/eLife.38821. For the precision value we use 1.0, which is roughly\n# the precision of the two ionizable hydroxyls from Phosphate (see above). Note\n# that when using recursive SMARTS strings, RDKit considers only the first atom\n# to be a match. Subsequent atoms define the environment.\nInternal_phosphate_polyphos_chain\t[$([PX4:1](=O)([OX2][PX4](=O)([OX2])(O[H]))([OX2][PX4](=O)(O[H])([OX2])))][O:2]-[H]\t1\t0.9\t1.0 acid\n\n# For Initial_phosphate_like_in_ATP_ADP, we use the same values found for the\n# lower-pKa hydroxyl of Phosphate (above).\nInitial_phosphate_like_in_ATP_ADP\t[$([PX4:1]([OX2][C,c,N,n])(=O)([OX2][PX4](=O)([OX2])(O[H])))]O-[H]\t1\t2.4182608695652172\t1.1091177991945305 acid\n\n# [*]P(=O)(O[H])O[H]. Cannot match terminal phosphate of ATP because O not among [C,c,N,n]\nPhosphonate\t[PX4:1](=[O:2])(-[OX2:3]-[H])(-[C,c,N,n:4])-[OX2:5]-[H]\t2\t1.8835714285714287\t0.5925999820080644\t5\t7.247254901960784\t0.8511476450801531 diacid\n\nPhenol\t[c,n,o:1]-[O:2]-[H]\t1\t7.065359866910526\t3.277356122295936 acid\nPeroxide1\t[O:1]([$(C=O),$(C[Cl]),$(CF),$(C[Br]),$(CC#N):2])-[O:3]-[H]\t2\t8.738888888888889\t0.7562592839596507 acid\nPeroxide2\t[C:1]-[O:2]-[O:3]-[H]\t2\t11.978235294117647\t0.8697645895163075 acid\nO=C-C=C-OH\t[O:1]=[C;R:2]-[C;R:3]=[C;R:4]-[O:5]-[H]\t4\t3.554\t0.803339458581667 acid\nVinyl_alcohol\t[C:1]=[C:2]-[O:3]-[H]\t2\t8.871850714285713\t1.660200255394124 acid\nAlcohol\t[C:1]-[O:2]-[H]\t1\t14.780384615384616\t2.546464970533435 acid\nN-hydroxyamide\t[C:1](=[O:2])-[N:3]-[O:4]-[H]\t3\t9.301904761904762\t1.2181897185891002 acid\n*Ringed_imide1\t[O,S:1]=[C;R:2]([$([#8]),$([#7]),$([#16]),$([#6][Cl]),$([#6]F),$([#6][Br]):3])-[N;R:4]([C;R:5]=[O,S:6])-[H]\t3\t6.4525\t0.5555627777308341 acid\n*Ringed_imide2\t[O,S:1]=[C;R:2]-[N;R:3]([C;R:4]=[O,S:5])-[H]\t2\t8.681666666666667\t1.8657779975741713 acid\n*Imide\t[F,Cl,Br,S,s,P,p:1][#6:2][CX3:3](=[O,S:4])-[NX3+0:5]([CX3:6]=[O,S:7])-[H]\t4\t2.466666666666667\t1.4843629385474877 acid\n*Imide2\t[O,S:1]=[CX3:2]-[NX3+0:3]([CX3:4]=[O,S:5])-[H]\t2\t10.23\t1.1198214143335534 acid\n*Amide_electronegative\t[C:1](=[O:2])-[N:3](-[Br,Cl,I,F,S,O,N,P:4])-[H]\t2\t3.4896\t2.688124315081677 acid\n*Amide\t[C:1](=[O:2])-[N:3]-[H]\t2\t12.00611111111111\t4.512491341218857 acid\n*Sulfonamide\t[SX4:1](=[O:2])(=[O:3])-[NX3+0:4]-[H]\t3\t7.9160326086956525\t1.9842121316708763 acid\nAnilines_primary\t[c:1]-[NX3+0:2]([H:3])[H:4]\t1\t3.899298673194805\t2.068768503987161 base\nAnilines_secondary\t[c:1]-[NX3+0:2]([H:3])[!H:4]\t1\t4.335408163265306\t2.1768842022330843 base\nAnilines_tertiary\t[c:1]-[NX3+0:2]([!H:3])[!H:4]\t1\t4.16690685045614\t2.005865735782679 base\nAromatic_nitrogen_unprotonated\t[n+0&H0:1]\t0\t4.3535441240733945\t2.0714072661859584 base\nAmines_primary_secondary_tertiary\t[C:1]-[NX3+0:2]\t1\t8.159107682388349\t2.5183597445318147 base\n\n# e.g., [*]P(=O)(O[H])[*]. Note that cannot match the internal phosphates of ATP, because\n# oxygen is not among [C,c,N,n,F,Cl,Br,I] \nPhosphinic_acid\t[PX4:1](=[O:2])(-[C,c,N,n,F,Cl,Br,I:3])(-[C,c,N,n,F,Cl,Br,I:4])-[OX2:5]-[H]\t4\t2.9745\t0.6867886750744557 diacid\n\n# e.g., [*]OP(=O)(O[H])O[*]. Cannot match ATP because P not among [C,c,N,n,F,Cl,Br,I] \nPhosphate_diester\t[PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[O+0:5]-[C,c,N,n,F,Cl,Br,I:4])-[OX2:6]-[H]\t6\t2.7280434782608696\t2.5437448856908316 acid\n\n# e.g., [*]P(=O)(O[H])O[*]. Cannot match ATP because O not among [C,c,N,n,F,Cl,Br,I].\nPhosphonate_ester\t[PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[C,c,N,n,F,Cl,Br,I:5])-[OX2:6]-[H]\t5\t2.0868\t0.4503028610465036 acid\n\nPrimary_hydroxyl_amine\t[C,c:1]-[O:2]-[NH2:3]\t2\t4.035714285714286\t0.8463816543155368 acid\n*Indole_pyrrole\t[c;R:1]1[c;R:2][c;R:3][c;R:4][n;R:5]1[H]\t4\t14.52875\t4.06702491591416 acid\n*Aromatic_nitrogen_protonated\t[n:1]-[H]\t0\t7.17\t2.94602395490212 acid\n'
""" Modification of existing parameters in this file is NOT encouraged. """ Sct_Cen = {'B-begin': 0, 'B-end': 430, 'R-kink': 4.91, 'B-kink': 67, 'psi-before': -12.5, 'psi-between': -15, 'psi-after': -11.7, 'l-tangency': 145, 'w-kink': 0.23} Norma = {'B-begin': 30, 'B-end': 481, 'R-kink': 4.46, 'B-kink': 72, 'psi-before': 5, 'psi-between': -10, 'psi-after': -5, 'l-tangency': 153.5, 'w-kink': 0.14} Outer = {'R-kink': 12.24, 'B-kink': 72+360, 'psi-before': -15, 'psi-after': -15, 'w-kink': 0.65} Local = {'B-begin': 50, 'B-end': 123, 'R-kink': 8.26, 'B-kink': 81, 'psi': -11.4, 'w-kink': 0.31} Sgr_Car = {'B-begin': -140, 'B-end': 260, 'R-kink': 6.04, 'B-kink': 66, 'psi-before': -7.5, 'psi-between': -16.8, 'psi-after': -10.5, 'l-tangency': 126.5, 'w-kink': 0.27} Perseus = {'B-begin': 188, 'B-end': 482, 'R-kink': 8.87, 'B-kink': 410, 'psi-before': -13, 'psi-after': -10.3, 'w-kink': 0.35} Three_Kpc = {'B-begin-near': 75, 'B-end-near': 225, 'B-begin-far': 260, 'B-end-far': 400, 'R-kink': 3.25, 'B-kink': 75, 'psi': 0.0, 'w-kink': 0.18}
""" Modification of existing parameters in this file is NOT encouraged. """ sct__cen = {'B-begin': 0, 'B-end': 430, 'R-kink': 4.91, 'B-kink': 67, 'psi-before': -12.5, 'psi-between': -15, 'psi-after': -11.7, 'l-tangency': 145, 'w-kink': 0.23} norma = {'B-begin': 30, 'B-end': 481, 'R-kink': 4.46, 'B-kink': 72, 'psi-before': 5, 'psi-between': -10, 'psi-after': -5, 'l-tangency': 153.5, 'w-kink': 0.14} outer = {'R-kink': 12.24, 'B-kink': 72 + 360, 'psi-before': -15, 'psi-after': -15, 'w-kink': 0.65} local = {'B-begin': 50, 'B-end': 123, 'R-kink': 8.26, 'B-kink': 81, 'psi': -11.4, 'w-kink': 0.31} sgr__car = {'B-begin': -140, 'B-end': 260, 'R-kink': 6.04, 'B-kink': 66, 'psi-before': -7.5, 'psi-between': -16.8, 'psi-after': -10.5, 'l-tangency': 126.5, 'w-kink': 0.27} perseus = {'B-begin': 188, 'B-end': 482, 'R-kink': 8.87, 'B-kink': 410, 'psi-before': -13, 'psi-after': -10.3, 'w-kink': 0.35} three__kpc = {'B-begin-near': 75, 'B-end-near': 225, 'B-begin-far': 260, 'B-end-far': 400, 'R-kink': 3.25, 'B-kink': 75, 'psi': 0.0, 'w-kink': 0.18}
n=int(input("enter a number")) if(n%5==0 or n%7==0): print("divisible by 5 or 7") else: print("not divisible")
n = int(input('enter a number')) if n % 5 == 0 or n % 7 == 0: print('divisible by 5 or 7') else: print('not divisible')
# # PySNMP MIB module HM2-DHCPS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-DHCPS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:18:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") HmEnabledStatus, hm2ConfigurationMibs = mibBuilder.importSymbols("HM2-TC-MIB", "HmEnabledStatus", "hm2ConfigurationMibs") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, ObjectIdentity, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Unsigned32, TimeTicks, Gauge32, Counter64, MibIdentifier, NotificationType, Bits, IpAddress, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ObjectIdentity", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Unsigned32", "TimeTicks", "Gauge32", "Counter64", "MibIdentifier", "NotificationType", "Bits", "IpAddress", "Integer32") DisplayString, TextualConvention, RowStatus, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus", "MacAddress") hm2DhcpsMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91)) hm2DhcpsMib.setRevisions(('2012-03-16 00:00',)) if mibBuilder.loadTexts: hm2DhcpsMib.setLastUpdated('201203160000Z') if mibBuilder.loadTexts: hm2DhcpsMib.setOrganization('Hirschmann Automation and Control GmbH') hm2DHCPServerMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 0)) hm2DHCPServerMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1)) hm2DHCPServerSNMPExtensionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 3)) hm2DHCPServerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1)) hm2DHCPServerConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1)) hm2DHCPServerLeaseGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2)) hm2DHCPServerInterfaceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3)) hm2DHCPServerCounterGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4)) hm2DHCPServerMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerMode.setStatus('current') hm2DHCPServerMaxPoolEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerMaxPoolEntries.setStatus('current') hm2DHCPServerMaxLeaseEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerMaxLeaseEntries.setStatus('current') hm2DHCPServerPoolTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5), ) if mibBuilder.loadTexts: hm2DHCPServerPoolTable.setStatus('current') hm2DHCPServerPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerPoolIndex")) if mibBuilder.loadTexts: hm2DHCPServerPoolEntry.setStatus('current') hm2DHCPServerPoolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerPoolIndex.setStatus('current') hm2DHCPServerPoolStartIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolStartIpAddress.setStatus('current') hm2DHCPServerPoolEndIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolEndIpAddress.setStatus('current') hm2DHCPServerPoolLeaseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 4), Unsigned32().clone(86400)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolLeaseTime.setStatus('current') hm2DHCPServerPoolFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("interface", 0), ("mac", 1), ("gateway", 2), ("clientid", 3), ("remoteid", 4), ("circuitid", 5), ("dynamic", 6), ("vlanid", 7)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolFlags.setStatus('current') hm2DHCPServerPoolIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 6), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolIfIndex.setStatus('current') hm2DHCPServerPoolMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 7), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolMacAddress.setStatus('current') hm2DHCPServerPoolGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 8), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolGateway.setStatus('current') hm2DHCPServerPoolClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 9), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolClientId.setStatus('current') hm2DHCPServerPoolRemoteId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 10), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolRemoteId.setStatus('current') hm2DHCPServerPoolCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 11), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolCircuitId.setStatus('current') hm2DHCPServerPoolHirschmannClient = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 12), HmEnabledStatus().clone('disable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolHirschmannClient.setStatus('current') hm2DHCPServerPoolVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 13), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolVlanId.setStatus('current') hm2DHCPServerPoolOptionConfFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 30), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 70))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionConfFileName.setStatus('current') hm2DHCPServerPoolOptionGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 31), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionGateway.setStatus('current') hm2DHCPServerPoolOptionNetmask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 32), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionNetmask.setStatus('current') hm2DHCPServerPoolOptionWINS = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 33), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionWINS.setStatus('current') hm2DHCPServerPoolOptionDNS = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 34), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionDNS.setStatus('current') hm2DHCPServerPoolOptionHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolOptionHostname.setStatus('current') hm2DHCPServerPoolMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("config", 2), ("ttdp", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerPoolMethod.setStatus('current') hm2DHCPServerPoolErrorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 99), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerPoolErrorStatus.setStatus('current') hm2DHCPServerPoolRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 100), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2DHCPServerPoolRowStatus.setStatus('current') hm2DHCPServerLeaseTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1), ) if mibBuilder.loadTexts: hm2DHCPServerLeaseTable.setStatus('current') hm2DHCPServerLeaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerLeasePoolIndex"), (0, "HM2-DHCPS-MIB", "hm2DHCPServerLeaseIpAddress")) if mibBuilder.loadTexts: hm2DHCPServerLeaseEntry.setStatus('current') hm2DHCPServerLeasePoolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeasePoolIndex.setStatus('current') hm2DHCPServerLeaseIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseIpAddress.setStatus('current') hm2DHCPServerLeaseState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("bootp", 1), ("offering", 2), ("requesting", 3), ("bound", 4), ("renewing", 5), ("rebinding", 6), ("declined", 7), ("released", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseState.setStatus('current') hm2DHCPServerLeaseTimeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseTimeRemaining.setStatus('current') hm2DHCPServerLeaseIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseIfIndex.setStatus('current') hm2DHCPServerLeaseClientMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 6), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseClientMacAddress.setStatus('current') hm2DHCPServerLeaseGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 7), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseGateway.setStatus('current') hm2DHCPServerLeaseClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseClientId.setStatus('current') hm2DHCPServerLeaseRemoteId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseRemoteId.setStatus('current') hm2DHCPServerLeaseCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseCircuitId.setStatus('current') hm2DHCPServerLeaseStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseStartTime.setStatus('current') hm2DHCPServerLeaseAction = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("release", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerLeaseAction.setStatus('current') hm2DHCPServerLeaseVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerLeaseVlanId.setStatus('current') hm2DHCPServerIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1), ) if mibBuilder.loadTexts: hm2DHCPServerIfConfigTable.setStatus('current') hm2DHCPServerIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerIfConfigIndex")) if mibBuilder.loadTexts: hm2DHCPServerIfConfigEntry.setStatus('current') hm2DHCPServerIfConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerIfConfigIndex.setStatus('current') hm2DHCPServerIfConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 2), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2DHCPServerIfConfigMode.setStatus('current') hm2DHCPServerCounterIfTable = MibTable((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2), ) if mibBuilder.loadTexts: hm2DHCPServerCounterIfTable.setStatus('current') hm2DHCPServerCounterIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1), ).setIndexNames((0, "HM2-DHCPS-MIB", "hm2DHCPServerCounterIfIndex")) if mibBuilder.loadTexts: hm2DHCPServerCounterIfEntry.setStatus('current') hm2DHCPServerCounterIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterIfIndex.setStatus('current') hm2DHCPServerCounterBootpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpRequests.setStatus('current') hm2DHCPServerCounterBootpInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpInvalids.setStatus('current') hm2DHCPServerCounterBootpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpReplies.setStatus('current') hm2DHCPServerCounterBootpDroppedUnknownClients = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedUnknownClients.setStatus('current') hm2DHCPServerCounterBootpDroppedNotServingSubnet = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedNotServingSubnet.setStatus('current') hm2DHCPServerCounterDhcpv4Discovers = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Discovers.setStatus('current') hm2DHCPServerCounterDhcpv4Offers = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Offers.setStatus('current') hm2DHCPServerCounterDhcpv4Requests = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Requests.setStatus('current') hm2DHCPServerCounterDhcpv4Declines = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Declines.setStatus('current') hm2DHCPServerCounterDhcpv4Acks = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Acks.setStatus('current') hm2DHCPServerCounterDhcpv4Naks = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Naks.setStatus('current') hm2DHCPServerCounterDhcpv4Releases = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Releases.setStatus('current') hm2DHCPServerCounterDhcpv4Informs = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Informs.setStatus('current') hm2DHCPServerCounterDhcpv4ForcedRenews = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4ForcedRenews.setStatus('current') hm2DHCPServerCounterDhcpv4Invalids = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Invalids.setStatus('current') hm2DHCPServerCounterDhcpv4DroppedUnknownClient = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedUnknownClient.setStatus('current') hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet.setStatus('current') hm2DHCPServerCounterMiscOtherDhcpServer = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2DHCPServerCounterMiscOtherDhcpServer.setStatus('current') hm2DHCPServerRowStatusInvalidConfigurationErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerRowStatusInvalidConfigurationErrorReturn.setStatus('current') hm2DHCPServerConflictDHCPRrelayErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 2)) if mibBuilder.loadTexts: hm2DHCPServerConflictDHCPRrelayErrorReturn.setStatus('current') mibBuilder.exportSymbols("HM2-DHCPS-MIB", hm2DHCPServerCounterGroup=hm2DHCPServerCounterGroup, hm2DHCPServerGroup=hm2DHCPServerGroup, hm2DHCPServerCounterIfEntry=hm2DHCPServerCounterIfEntry, hm2DHCPServerIfConfigEntry=hm2DHCPServerIfConfigEntry, hm2DHCPServerPoolGateway=hm2DHCPServerPoolGateway, hm2DHCPServerCounterIfTable=hm2DHCPServerCounterIfTable, hm2DhcpsMib=hm2DhcpsMib, hm2DHCPServerRowStatusInvalidConfigurationErrorReturn=hm2DHCPServerRowStatusInvalidConfigurationErrorReturn, hm2DHCPServerConfigGroup=hm2DHCPServerConfigGroup, hm2DHCPServerCounterDhcpv4Requests=hm2DHCPServerCounterDhcpv4Requests, hm2DHCPServerCounterBootpInvalids=hm2DHCPServerCounterBootpInvalids, hm2DHCPServerLeaseRemoteId=hm2DHCPServerLeaseRemoteId, hm2DHCPServerSNMPExtensionGroup=hm2DHCPServerSNMPExtensionGroup, hm2DHCPServerLeaseClientId=hm2DHCPServerLeaseClientId, hm2DHCPServerPoolOptionWINS=hm2DHCPServerPoolOptionWINS, hm2DHCPServerCounterBootpDroppedNotServingSubnet=hm2DHCPServerCounterBootpDroppedNotServingSubnet, hm2DHCPServerLeaseGroup=hm2DHCPServerLeaseGroup, hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet=hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet, hm2DHCPServerLeaseClientMacAddress=hm2DHCPServerLeaseClientMacAddress, hm2DHCPServerConflictDHCPRrelayErrorReturn=hm2DHCPServerConflictDHCPRrelayErrorReturn, hm2DHCPServerIfConfigMode=hm2DHCPServerIfConfigMode, hm2DHCPServerCounterDhcpv4ForcedRenews=hm2DHCPServerCounterDhcpv4ForcedRenews, hm2DHCPServerPoolEntry=hm2DHCPServerPoolEntry, hm2DHCPServerIfConfigTable=hm2DHCPServerIfConfigTable, hm2DHCPServerLeaseState=hm2DHCPServerLeaseState, hm2DHCPServerPoolOptionNetmask=hm2DHCPServerPoolOptionNetmask, hm2DHCPServerPoolOptionGateway=hm2DHCPServerPoolOptionGateway, hm2DHCPServerLeaseGateway=hm2DHCPServerLeaseGateway, hm2DHCPServerLeaseTimeRemaining=hm2DHCPServerLeaseTimeRemaining, hm2DHCPServerPoolIfIndex=hm2DHCPServerPoolIfIndex, hm2DHCPServerMode=hm2DHCPServerMode, hm2DHCPServerCounterDhcpv4Releases=hm2DHCPServerCounterDhcpv4Releases, hm2DHCPServerPoolEndIpAddress=hm2DHCPServerPoolEndIpAddress, hm2DHCPServerLeaseTable=hm2DHCPServerLeaseTable, hm2DHCPServerCounterDhcpv4DroppedUnknownClient=hm2DHCPServerCounterDhcpv4DroppedUnknownClient, hm2DHCPServerMibObjects=hm2DHCPServerMibObjects, hm2DHCPServerMibNotifications=hm2DHCPServerMibNotifications, hm2DHCPServerCounterIfIndex=hm2DHCPServerCounterIfIndex, hm2DHCPServerLeaseIpAddress=hm2DHCPServerLeaseIpAddress, hm2DHCPServerCounterDhcpv4Acks=hm2DHCPServerCounterDhcpv4Acks, hm2DHCPServerLeaseVlanId=hm2DHCPServerLeaseVlanId, hm2DHCPServerPoolRowStatus=hm2DHCPServerPoolRowStatus, hm2DHCPServerPoolErrorStatus=hm2DHCPServerPoolErrorStatus, hm2DHCPServerCounterBootpRequests=hm2DHCPServerCounterBootpRequests, hm2DHCPServerPoolOptionConfFileName=hm2DHCPServerPoolOptionConfFileName, hm2DHCPServerMaxPoolEntries=hm2DHCPServerMaxPoolEntries, hm2DHCPServerPoolStartIpAddress=hm2DHCPServerPoolStartIpAddress, hm2DHCPServerPoolMacAddress=hm2DHCPServerPoolMacAddress, PYSNMP_MODULE_ID=hm2DhcpsMib, hm2DHCPServerCounterDhcpv4Naks=hm2DHCPServerCounterDhcpv4Naks, hm2DHCPServerPoolClientId=hm2DHCPServerPoolClientId, hm2DHCPServerCounterBootpDroppedUnknownClients=hm2DHCPServerCounterBootpDroppedUnknownClients, hm2DHCPServerLeaseCircuitId=hm2DHCPServerLeaseCircuitId, hm2DHCPServerMaxLeaseEntries=hm2DHCPServerMaxLeaseEntries, hm2DHCPServerLeaseAction=hm2DHCPServerLeaseAction, hm2DHCPServerPoolRemoteId=hm2DHCPServerPoolRemoteId, hm2DHCPServerLeaseIfIndex=hm2DHCPServerLeaseIfIndex, hm2DHCPServerPoolIndex=hm2DHCPServerPoolIndex, hm2DHCPServerPoolVlanId=hm2DHCPServerPoolVlanId, hm2DHCPServerLeaseStartTime=hm2DHCPServerLeaseStartTime, hm2DHCPServerCounterDhcpv4Informs=hm2DHCPServerCounterDhcpv4Informs, hm2DHCPServerCounterDhcpv4Invalids=hm2DHCPServerCounterDhcpv4Invalids, hm2DHCPServerLeasePoolIndex=hm2DHCPServerLeasePoolIndex, hm2DHCPServerCounterBootpReplies=hm2DHCPServerCounterBootpReplies, hm2DHCPServerPoolMethod=hm2DHCPServerPoolMethod, hm2DHCPServerCounterMiscOtherDhcpServer=hm2DHCPServerCounterMiscOtherDhcpServer, hm2DHCPServerPoolOptionDNS=hm2DHCPServerPoolOptionDNS, hm2DHCPServerCounterDhcpv4Discovers=hm2DHCPServerCounterDhcpv4Discovers, hm2DHCPServerCounterDhcpv4Offers=hm2DHCPServerCounterDhcpv4Offers, hm2DHCPServerCounterDhcpv4Declines=hm2DHCPServerCounterDhcpv4Declines, hm2DHCPServerInterfaceGroup=hm2DHCPServerInterfaceGroup, hm2DHCPServerPoolTable=hm2DHCPServerPoolTable, hm2DHCPServerPoolCircuitId=hm2DHCPServerPoolCircuitId, hm2DHCPServerPoolLeaseTime=hm2DHCPServerPoolLeaseTime, hm2DHCPServerLeaseEntry=hm2DHCPServerLeaseEntry, hm2DHCPServerPoolOptionHostname=hm2DHCPServerPoolOptionHostname, hm2DHCPServerPoolHirschmannClient=hm2DHCPServerPoolHirschmannClient, hm2DHCPServerIfConfigIndex=hm2DHCPServerIfConfigIndex, hm2DHCPServerPoolFlags=hm2DHCPServerPoolFlags)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, single_value_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (hm_enabled_status, hm2_configuration_mibs) = mibBuilder.importSymbols('HM2-TC-MIB', 'HmEnabledStatus', 'hm2ConfigurationMibs') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, object_identity, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, unsigned32, time_ticks, gauge32, counter64, mib_identifier, notification_type, bits, ip_address, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ObjectIdentity', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Unsigned32', 'TimeTicks', 'Gauge32', 'Counter64', 'MibIdentifier', 'NotificationType', 'Bits', 'IpAddress', 'Integer32') (display_string, textual_convention, row_status, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus', 'MacAddress') hm2_dhcps_mib = module_identity((1, 3, 6, 1, 4, 1, 248, 11, 91)) hm2DhcpsMib.setRevisions(('2012-03-16 00:00',)) if mibBuilder.loadTexts: hm2DhcpsMib.setLastUpdated('201203160000Z') if mibBuilder.loadTexts: hm2DhcpsMib.setOrganization('Hirschmann Automation and Control GmbH') hm2_dhcp_server_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 0)) hm2_dhcp_server_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1)) hm2_dhcp_server_snmp_extension_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 3)) hm2_dhcp_server_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1)) hm2_dhcp_server_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1)) hm2_dhcp_server_lease_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2)) hm2_dhcp_server_interface_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3)) hm2_dhcp_server_counter_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4)) hm2_dhcp_server_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerMode.setStatus('current') hm2_dhcp_server_max_pool_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerMaxPoolEntries.setStatus('current') hm2_dhcp_server_max_lease_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerMaxLeaseEntries.setStatus('current') hm2_dhcp_server_pool_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5)) if mibBuilder.loadTexts: hm2DHCPServerPoolTable.setStatus('current') hm2_dhcp_server_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerPoolIndex')) if mibBuilder.loadTexts: hm2DHCPServerPoolEntry.setStatus('current') hm2_dhcp_server_pool_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerPoolIndex.setStatus('current') hm2_dhcp_server_pool_start_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolStartIpAddress.setStatus('current') hm2_dhcp_server_pool_end_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolEndIpAddress.setStatus('current') hm2_dhcp_server_pool_lease_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 4), unsigned32().clone(86400)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolLeaseTime.setStatus('current') hm2_dhcp_server_pool_flags = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 5), bits().clone(namedValues=named_values(('interface', 0), ('mac', 1), ('gateway', 2), ('clientid', 3), ('remoteid', 4), ('circuitid', 5), ('dynamic', 6), ('vlanid', 7)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolFlags.setStatus('current') hm2_dhcp_server_pool_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 6), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolIfIndex.setStatus('current') hm2_dhcp_server_pool_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 7), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolMacAddress.setStatus('current') hm2_dhcp_server_pool_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 8), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolGateway.setStatus('current') hm2_dhcp_server_pool_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 9), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolClientId.setStatus('current') hm2_dhcp_server_pool_remote_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 10), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolRemoteId.setStatus('current') hm2_dhcp_server_pool_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 11), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolCircuitId.setStatus('current') hm2_dhcp_server_pool_hirschmann_client = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 12), hm_enabled_status().clone('disable')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolHirschmannClient.setStatus('current') hm2_dhcp_server_pool_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 13), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolVlanId.setStatus('current') hm2_dhcp_server_pool_option_conf_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 30), display_string().subtype(subtypeSpec=value_size_constraint(0, 70))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionConfFileName.setStatus('current') hm2_dhcp_server_pool_option_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 31), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionGateway.setStatus('current') hm2_dhcp_server_pool_option_netmask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 32), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionNetmask.setStatus('current') hm2_dhcp_server_pool_option_wins = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 33), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionWINS.setStatus('current') hm2_dhcp_server_pool_option_dns = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 34), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionDNS.setStatus('current') hm2_dhcp_server_pool_option_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 35), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolOptionHostname.setStatus('current') hm2_dhcp_server_pool_method = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('config', 2), ('ttdp', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerPoolMethod.setStatus('current') hm2_dhcp_server_pool_error_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 99), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerPoolErrorStatus.setStatus('current') hm2_dhcp_server_pool_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 100), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2DHCPServerPoolRowStatus.setStatus('current') hm2_dhcp_server_lease_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1)) if mibBuilder.loadTexts: hm2DHCPServerLeaseTable.setStatus('current') hm2_dhcp_server_lease_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerLeasePoolIndex'), (0, 'HM2-DHCPS-MIB', 'hm2DHCPServerLeaseIpAddress')) if mibBuilder.loadTexts: hm2DHCPServerLeaseEntry.setStatus('current') hm2_dhcp_server_lease_pool_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeasePoolIndex.setStatus('current') hm2_dhcp_server_lease_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseIpAddress.setStatus('current') hm2_dhcp_server_lease_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('bootp', 1), ('offering', 2), ('requesting', 3), ('bound', 4), ('renewing', 5), ('rebinding', 6), ('declined', 7), ('released', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseState.setStatus('current') hm2_dhcp_server_lease_time_remaining = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseTimeRemaining.setStatus('current') hm2_dhcp_server_lease_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseIfIndex.setStatus('current') hm2_dhcp_server_lease_client_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 6), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseClientMacAddress.setStatus('current') hm2_dhcp_server_lease_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 7), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseGateway.setStatus('current') hm2_dhcp_server_lease_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseClientId.setStatus('current') hm2_dhcp_server_lease_remote_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseRemoteId.setStatus('current') hm2_dhcp_server_lease_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseCircuitId.setStatus('current') hm2_dhcp_server_lease_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseStartTime.setStatus('current') hm2_dhcp_server_lease_action = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('release', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerLeaseAction.setStatus('current') hm2_dhcp_server_lease_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 2, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerLeaseVlanId.setStatus('current') hm2_dhcp_server_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerIfConfigTable.setStatus('current') hm2_dhcp_server_if_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerIfConfigIndex')) if mibBuilder.loadTexts: hm2DHCPServerIfConfigEntry.setStatus('current') hm2_dhcp_server_if_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerIfConfigIndex.setStatus('current') hm2_dhcp_server_if_config_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 3, 1, 1, 2), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2DHCPServerIfConfigMode.setStatus('current') hm2_dhcp_server_counter_if_table = mib_table((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2)) if mibBuilder.loadTexts: hm2DHCPServerCounterIfTable.setStatus('current') hm2_dhcp_server_counter_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1)).setIndexNames((0, 'HM2-DHCPS-MIB', 'hm2DHCPServerCounterIfIndex')) if mibBuilder.loadTexts: hm2DHCPServerCounterIfEntry.setStatus('current') hm2_dhcp_server_counter_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterIfIndex.setStatus('current') hm2_dhcp_server_counter_bootp_requests = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpRequests.setStatus('current') hm2_dhcp_server_counter_bootp_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpInvalids.setStatus('current') hm2_dhcp_server_counter_bootp_replies = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpReplies.setStatus('current') hm2_dhcp_server_counter_bootp_dropped_unknown_clients = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedUnknownClients.setStatus('current') hm2_dhcp_server_counter_bootp_dropped_not_serving_subnet = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterBootpDroppedNotServingSubnet.setStatus('current') hm2_dhcp_server_counter_dhcpv4_discovers = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Discovers.setStatus('current') hm2_dhcp_server_counter_dhcpv4_offers = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Offers.setStatus('current') hm2_dhcp_server_counter_dhcpv4_requests = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Requests.setStatus('current') hm2_dhcp_server_counter_dhcpv4_declines = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Declines.setStatus('current') hm2_dhcp_server_counter_dhcpv4_acks = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Acks.setStatus('current') hm2_dhcp_server_counter_dhcpv4_naks = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Naks.setStatus('current') hm2_dhcp_server_counter_dhcpv4_releases = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Releases.setStatus('current') hm2_dhcp_server_counter_dhcpv4_informs = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Informs.setStatus('current') hm2_dhcp_server_counter_dhcpv4_forced_renews = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4ForcedRenews.setStatus('current') hm2_dhcp_server_counter_dhcpv4_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4Invalids.setStatus('current') hm2_dhcp_server_counter_dhcpv4_dropped_unknown_client = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedUnknownClient.setStatus('current') hm2_dhcp_server_counter_dhcpv4_dropped_not_serving_subnet = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet.setStatus('current') hm2_dhcp_server_counter_misc_other_dhcp_server = mib_table_column((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 4, 2, 1, 40), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2DHCPServerCounterMiscOtherDhcpServer.setStatus('current') hm2_dhcp_server_row_status_invalid_configuration_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 1)) if mibBuilder.loadTexts: hm2DHCPServerRowStatusInvalidConfigurationErrorReturn.setStatus('current') hm2_dhcp_server_conflict_dhcp_rrelay_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 11, 91, 3, 2)) if mibBuilder.loadTexts: hm2DHCPServerConflictDHCPRrelayErrorReturn.setStatus('current') mibBuilder.exportSymbols('HM2-DHCPS-MIB', hm2DHCPServerCounterGroup=hm2DHCPServerCounterGroup, hm2DHCPServerGroup=hm2DHCPServerGroup, hm2DHCPServerCounterIfEntry=hm2DHCPServerCounterIfEntry, hm2DHCPServerIfConfigEntry=hm2DHCPServerIfConfigEntry, hm2DHCPServerPoolGateway=hm2DHCPServerPoolGateway, hm2DHCPServerCounterIfTable=hm2DHCPServerCounterIfTable, hm2DhcpsMib=hm2DhcpsMib, hm2DHCPServerRowStatusInvalidConfigurationErrorReturn=hm2DHCPServerRowStatusInvalidConfigurationErrorReturn, hm2DHCPServerConfigGroup=hm2DHCPServerConfigGroup, hm2DHCPServerCounterDhcpv4Requests=hm2DHCPServerCounterDhcpv4Requests, hm2DHCPServerCounterBootpInvalids=hm2DHCPServerCounterBootpInvalids, hm2DHCPServerLeaseRemoteId=hm2DHCPServerLeaseRemoteId, hm2DHCPServerSNMPExtensionGroup=hm2DHCPServerSNMPExtensionGroup, hm2DHCPServerLeaseClientId=hm2DHCPServerLeaseClientId, hm2DHCPServerPoolOptionWINS=hm2DHCPServerPoolOptionWINS, hm2DHCPServerCounterBootpDroppedNotServingSubnet=hm2DHCPServerCounterBootpDroppedNotServingSubnet, hm2DHCPServerLeaseGroup=hm2DHCPServerLeaseGroup, hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet=hm2DHCPServerCounterDhcpv4DroppedNotServingSubnet, hm2DHCPServerLeaseClientMacAddress=hm2DHCPServerLeaseClientMacAddress, hm2DHCPServerConflictDHCPRrelayErrorReturn=hm2DHCPServerConflictDHCPRrelayErrorReturn, hm2DHCPServerIfConfigMode=hm2DHCPServerIfConfigMode, hm2DHCPServerCounterDhcpv4ForcedRenews=hm2DHCPServerCounterDhcpv4ForcedRenews, hm2DHCPServerPoolEntry=hm2DHCPServerPoolEntry, hm2DHCPServerIfConfigTable=hm2DHCPServerIfConfigTable, hm2DHCPServerLeaseState=hm2DHCPServerLeaseState, hm2DHCPServerPoolOptionNetmask=hm2DHCPServerPoolOptionNetmask, hm2DHCPServerPoolOptionGateway=hm2DHCPServerPoolOptionGateway, hm2DHCPServerLeaseGateway=hm2DHCPServerLeaseGateway, hm2DHCPServerLeaseTimeRemaining=hm2DHCPServerLeaseTimeRemaining, hm2DHCPServerPoolIfIndex=hm2DHCPServerPoolIfIndex, hm2DHCPServerMode=hm2DHCPServerMode, hm2DHCPServerCounterDhcpv4Releases=hm2DHCPServerCounterDhcpv4Releases, hm2DHCPServerPoolEndIpAddress=hm2DHCPServerPoolEndIpAddress, hm2DHCPServerLeaseTable=hm2DHCPServerLeaseTable, hm2DHCPServerCounterDhcpv4DroppedUnknownClient=hm2DHCPServerCounterDhcpv4DroppedUnknownClient, hm2DHCPServerMibObjects=hm2DHCPServerMibObjects, hm2DHCPServerMibNotifications=hm2DHCPServerMibNotifications, hm2DHCPServerCounterIfIndex=hm2DHCPServerCounterIfIndex, hm2DHCPServerLeaseIpAddress=hm2DHCPServerLeaseIpAddress, hm2DHCPServerCounterDhcpv4Acks=hm2DHCPServerCounterDhcpv4Acks, hm2DHCPServerLeaseVlanId=hm2DHCPServerLeaseVlanId, hm2DHCPServerPoolRowStatus=hm2DHCPServerPoolRowStatus, hm2DHCPServerPoolErrorStatus=hm2DHCPServerPoolErrorStatus, hm2DHCPServerCounterBootpRequests=hm2DHCPServerCounterBootpRequests, hm2DHCPServerPoolOptionConfFileName=hm2DHCPServerPoolOptionConfFileName, hm2DHCPServerMaxPoolEntries=hm2DHCPServerMaxPoolEntries, hm2DHCPServerPoolStartIpAddress=hm2DHCPServerPoolStartIpAddress, hm2DHCPServerPoolMacAddress=hm2DHCPServerPoolMacAddress, PYSNMP_MODULE_ID=hm2DhcpsMib, hm2DHCPServerCounterDhcpv4Naks=hm2DHCPServerCounterDhcpv4Naks, hm2DHCPServerPoolClientId=hm2DHCPServerPoolClientId, hm2DHCPServerCounterBootpDroppedUnknownClients=hm2DHCPServerCounterBootpDroppedUnknownClients, hm2DHCPServerLeaseCircuitId=hm2DHCPServerLeaseCircuitId, hm2DHCPServerMaxLeaseEntries=hm2DHCPServerMaxLeaseEntries, hm2DHCPServerLeaseAction=hm2DHCPServerLeaseAction, hm2DHCPServerPoolRemoteId=hm2DHCPServerPoolRemoteId, hm2DHCPServerLeaseIfIndex=hm2DHCPServerLeaseIfIndex, hm2DHCPServerPoolIndex=hm2DHCPServerPoolIndex, hm2DHCPServerPoolVlanId=hm2DHCPServerPoolVlanId, hm2DHCPServerLeaseStartTime=hm2DHCPServerLeaseStartTime, hm2DHCPServerCounterDhcpv4Informs=hm2DHCPServerCounterDhcpv4Informs, hm2DHCPServerCounterDhcpv4Invalids=hm2DHCPServerCounterDhcpv4Invalids, hm2DHCPServerLeasePoolIndex=hm2DHCPServerLeasePoolIndex, hm2DHCPServerCounterBootpReplies=hm2DHCPServerCounterBootpReplies, hm2DHCPServerPoolMethod=hm2DHCPServerPoolMethod, hm2DHCPServerCounterMiscOtherDhcpServer=hm2DHCPServerCounterMiscOtherDhcpServer, hm2DHCPServerPoolOptionDNS=hm2DHCPServerPoolOptionDNS, hm2DHCPServerCounterDhcpv4Discovers=hm2DHCPServerCounterDhcpv4Discovers, hm2DHCPServerCounterDhcpv4Offers=hm2DHCPServerCounterDhcpv4Offers, hm2DHCPServerCounterDhcpv4Declines=hm2DHCPServerCounterDhcpv4Declines, hm2DHCPServerInterfaceGroup=hm2DHCPServerInterfaceGroup, hm2DHCPServerPoolTable=hm2DHCPServerPoolTable, hm2DHCPServerPoolCircuitId=hm2DHCPServerPoolCircuitId, hm2DHCPServerPoolLeaseTime=hm2DHCPServerPoolLeaseTime, hm2DHCPServerLeaseEntry=hm2DHCPServerLeaseEntry, hm2DHCPServerPoolOptionHostname=hm2DHCPServerPoolOptionHostname, hm2DHCPServerPoolHirschmannClient=hm2DHCPServerPoolHirschmannClient, hm2DHCPServerIfConfigIndex=hm2DHCPServerIfConfigIndex, hm2DHCPServerPoolFlags=hm2DHCPServerPoolFlags)
# # PySNMP MIB module HUAWEI-UNIMNG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-UNIMNG-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:49:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") TimeTicks, IpAddress, Integer32, Counter32, Unsigned32, Gauge32, ObjectIdentity, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, MibIdentifier, iso, ModuleIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "IpAddress", "Integer32", "Counter32", "Unsigned32", "Gauge32", "ObjectIdentity", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "MibIdentifier", "iso", "ModuleIdentity", "NotificationType") DisplayString, MacAddress, RowStatus, AutonomousType, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "RowStatus", "AutonomousType", "TextualConvention") hwUnimngMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327)) hwUnimngMIB.setRevisions(('2015-07-09 14:07', '2015-01-09 14:07', '2014-11-18 15:30', '2014-10-29 16:57', '2014-10-23 15:30', '2014-09-11 15:30', '2014-08-19 15:30', '2014-07-10 12:50', '2014-03-03 20:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwUnimngMIB.setRevisionsDescriptions(('Add new node hwAsVpnInstance ', 'Add new trap node hwTplmDirectCmdRecoverFail LSWCCB-9570', 'Modify node description LSWV2R7-9213 at 2014-11-18', 'Modify node description LSWCCB-8222 at 2014-10-29', 'Modify as entity trap at 2014-10-23', 'Add new trap node at 2014-9-11', 'Modify node description LSWCCB-6116 LSWCCB-6553 LSWCCB-6908 at 2014-8-19', 'Add trap node hwTplmCmdExecuteSuccessfulNotify at 2014-7-10', 'Create mib.',)) if mibBuilder.loadTexts: hwUnimngMIB.setLastUpdated('201507091407Z') if mibBuilder.loadTexts: hwUnimngMIB.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwUnimngMIB.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com") if mibBuilder.loadTexts: hwUnimngMIB.setDescription('This MIB contains private managed object definitions for Unified Man agement Framework.') class AlarmStatus(TextualConvention, Bits): reference = "ITU Recommendation X.731, 'Information Technology - Open Systems Interconnection - System Management: State Management Function', 1992" description = 'Represents the possible values of alarm status. When no bits of this attribute are set, then none of the status conditions described below are present. When the value of under repair is set, the resource is currently being repaired. When the value of critical is set, one or more critical alarms are active against the resource. When the value of major is set, one or more major alarms are active against the resource. When the value of minor is set, one or more minor alarms are active against the resource. When the value of warning is set, one or more warning alarms are active against the resource. When the value of indeterminate is set, one or more alarms of indeterminate severity are active against the resource. When the value of alarm outstanding is set, one or more alarms is active against the resource. The fault may or may not be disabling. ' status = 'current' namedValues = NamedValues(("notSupported", 0), ("underRepair", 1), ("critical", 2), ("major", 3), ("minor", 4), ("alarmOutstanding", 5), ("warning", 6), ("indeterminate", 7)) hwUnimngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1)) hwUniMngEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwUniMngEnable.setStatus('current') if mibBuilder.loadTexts: hwUniMngEnable.setDescription('Unimng enable status.') hwAsmngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2)) hwAsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1), ) if mibBuilder.loadTexts: hwAsTable.setStatus('current') if mibBuilder.loadTexts: hwAsTable.setDescription('AS table entry. ') hwAsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex")) if mibBuilder.loadTexts: hwAsEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntry.setDescription('The entry of AS table.') hwAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIndex.setDescription('AS index.') hwAsHardwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsHardwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsHardwareVersion.setDescription('The hardware version of AS.') hwAsIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsIpAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIpAddress.setDescription('The ip address of AS.') hwAsIpNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 4), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsIpNetMask.setStatus('current') if mibBuilder.loadTexts: hwAsIpNetMask.setDescription('The ip net mask of AS.') hwAsAccessUser = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 5), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsAccessUser.setStatus('current') if mibBuilder.loadTexts: hwAsAccessUser.setDescription('The access user number of AS.') hwAsMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 6), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsMac.setDescription('The MAC address of AS.') hwAsSn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 7), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsSn.setDescription('The SN of AS.') hwAsSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsSysName.setDescription('The Name of AS.') hwAsRunState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("idle", 1), ("versionMismatch", 2), ("fault", 3), ("normal", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsRunState.setStatus('current') if mibBuilder.loadTexts: hwAsRunState.setDescription('The run state of AS.') hwAsSoftwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSoftwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsSoftwareVersion.setDescription('The software version of AS.') hwAsModel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 23))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsModel.setDescription('The model of AS. ') hwAsDns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 12), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsDns.setStatus('current') if mibBuilder.loadTexts: hwAsDns.setDescription('The DNS of AS.') hwAsOnlineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 13), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsOnlineTime.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineTime.setDescription('The online time of AS.') hwAsCpuUseage = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 14), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsCpuUseage.setStatus('current') if mibBuilder.loadTexts: hwAsCpuUseage.setDescription('The cpu usage of AS.') hwAsMemoryUseage = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 15), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMemoryUseage.setStatus('current') if mibBuilder.loadTexts: hwAsMemoryUseage.setDescription('The memory usage of AS.') hwAsSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 16), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSysMac.setStatus('current') if mibBuilder.loadTexts: hwAsSysMac.setDescription('The system MAC address of AS.') hwAsStackEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsStackEnable.setStatus('current') if mibBuilder.loadTexts: hwAsStackEnable.setDescription('Whether AS is stack enable or disable.') hwAsGatewayIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 18), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsGatewayIp.setStatus('current') if mibBuilder.loadTexts: hwAsGatewayIp.setDescription("The gateway's IP address of AS.") hwAsVpnInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 19), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsVpnInstance.setStatus('current') if mibBuilder.loadTexts: hwAsVpnInstance.setDescription('The VPN instance of AS.') hwAsRowstatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsRowstatus.setStatus('current') if mibBuilder.loadTexts: hwAsRowstatus.setDescription('The RowStatus of this table.') hwAsIfTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2), ) if mibBuilder.loadTexts: hwAsIfTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfTable.setDescription('AS interface table entry.') hwAsIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if mibBuilder.loadTexts: hwAsIfEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfEntry.setDescription('The entry of AS If table.') hwAsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIfIndex.setDescription('The interface index of AS.') hwAsIfDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfDescr.setStatus('current') if mibBuilder.loadTexts: hwAsIfDescr.setDescription('The interface description of AS.') hwAsIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsIfType.setDescription('The interface type of AS.') hwAsIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfMtu.setStatus('current') if mibBuilder.loadTexts: hwAsIfMtu.setDescription('The interface MTU of AS.') hwAsIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfSpeed.setDescription("An estimate of the as interface's current bandwidth in bits per second.") hwAsIfPhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfPhysAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIfPhysAddress.setDescription('The physical address of AS interface.') hwAsIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfAdminStatus.setDescription('The administration stauts of AS interface.') hwAsIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfOperStatus.setDescription('The operation stauts of AS interface.') hwAsIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setDescription('The number of unicast packets received on the interface of AS. ') hwAsIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setDescription('The number of unicast packets sent on the interface of AS. ') hwAsIfXTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3), ) if mibBuilder.loadTexts: hwAsIfXTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfXTable.setDescription('The extent table of AS.') hwAsIfXEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if mibBuilder.loadTexts: hwAsIfXEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfXEntry.setDescription('The entry of table.') hwAsIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsIfName.setDescription('The name of AS interface.') hwAsIfLinkUpDownTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setStatus('current') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for this as interface.') hwAsIfHighSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHighSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfHighSpeed.setDescription("An estimate of the as interface's current bandwidth in units of 1,000,000 bits per second.") hwAsIfAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsIfAlias.setStatus('current') if mibBuilder.loadTexts: hwAsIfAlias.setDescription("This object is an 'alias' name for the AS's interface as specified by a network manager, and provides a non-volatile 'handle' for the interface.") hwAsIfAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfAsId.setStatus('current') if mibBuilder.loadTexts: hwAsIfAsId.setDescription('The ID of AS.') hwAsIfHCOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHCOutOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setDescription('The total number of octets sent on the interface of AS.') hwAsIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setDescription('The number of multicast packets received on the interface of AS. ') hwAsIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setDescription('The number of broadcast packets received on the interface of AS. ') hwAsIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setDescription('The number of multicast packets sent on the interface of AS. ') hwAsIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setDescription('The number of broadcast packets sent on the interface of AS. ') hwAsIfHCInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsIfHCInOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCInOctets.setDescription('The total number of octets received on the interface of AS.') hwAsSlotTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4), ) if mibBuilder.loadTexts: hwAsSlotTable.setStatus('current') if mibBuilder.loadTexts: hwAsSlotTable.setDescription('The slot table of AS.') hwAsSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsSlotId")) if mibBuilder.loadTexts: hwAsSlotEntry.setStatus('current') if mibBuilder.loadTexts: hwAsSlotEntry.setDescription('The entry of table.') hwAsSlotId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))) if mibBuilder.loadTexts: hwAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsSlotId.setDescription('The ID of AS slot.') hwAsSlotState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSlotState.setStatus('current') if mibBuilder.loadTexts: hwAsSlotState.setDescription('The state of AS slot.') hwAsSlotRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 20), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsSlotRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsSlotRowStatus.setDescription('The RowStatus of this table.') hwAsmngGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5)) hwAsAutoReplaceEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setStatus('current') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setDescription('The enable status of auto replace.') hwAsAuthMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auth", 1), ("noAuth", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwAsAuthMode.setStatus('current') if mibBuilder.loadTexts: hwAsAuthMode.setDescription('The authentication mode of AS.') hwAsMacWhitelistTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6), ) if mibBuilder.loadTexts: hwAsMacWhitelistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistTable.setDescription('The table of whitelist.') hwAsMacWhitelistEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsMacWhitelistMacAddr")) if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setDescription('The entry of table.') hwAsMacWhitelistMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 1), MacAddress()) if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setDescription('The MAC address of white list.') hwAsMacWhitelistRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setDescription('The RowStatus of table.') hwAsMacBlacklistTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7), ) if mibBuilder.loadTexts: hwAsMacBlacklistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistTable.setDescription('The table of blacklist.') hwAsMacBlacklistEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsMacBlacklistMacAddr")) if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setDescription('The entry of table.') hwAsMacBlacklistMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 1), MacAddress()) if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setDescription('The MAC address of black list.') hwAsMacBlacklistRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setDescription('The RowStatus of table.') hwAsEntityPhysicalTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8), ) if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setDescription('The physical table of AS.') hwAsEntityPhysicalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex")) if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setDescription('The entry of table.') hwAsEntityPhysicalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 1), Integer32()) if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setDescription('The physical index of AS.') hwAsEntityPhysicalDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setDescription('A textual description of physical entity. ') hwAsEntityPhysicalVendorType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 3), AutonomousType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setDescription('An indication of the vendor-specific hardware type of the physical entity. ') hwAsEntityPhysicalContainedIn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setDescription("The value of hwAsEntityPhysicalIndex for the physical entity which 'contains' this physical entity. ") hwAsEntityPhysicalClass = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("chassis", 3), ("backplane", 4), ("container", 5), ("powerSupply", 6), ("fan", 7), ("sensor", 8), ("module", 9), ("port", 10), ("stack", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setDescription('An indication of the general hardware type of the physical entity.') hwAsEntityPhysicalParentRelPos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setDescription("An indication of the relative position of this 'child' component among all its 'sibling' components.") hwAsEntityPhysicalName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 7), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setDescription('The textual name of the physical entity. ') hwAsEntityPhysicalHardwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 8), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setDescription('The vendor-specific hardware revision string for the physical entity. ') hwAsEntityPhysicalFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 9), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setDescription('The vendor-specific firmware revision string for the physical entity.') hwAsEntityPhysicalSoftwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 10), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setDescription('The vendor-specific software revision string for the physical entity.') hwAsEntityPhysicalSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 11), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setDescription('The vendor-specific serial number string for the physical entity.') hwAsEntityPhysicalMfgName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 12), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setDescription('The name of the manufacturer of this physical component.') hwAsEntityStateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9), ) if mibBuilder.loadTexts: hwAsEntityStateTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateTable.setDescription('The entity state table.') hwAsEntityStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex")) if mibBuilder.loadTexts: hwAsEntityStateEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateEntry.setDescription('The entry of table.') hwAsEntityAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 11, 12, 13))).clone(namedValues=NamedValues(("notSupported", 1), ("locked", 2), ("shuttingDown", 3), ("unlocked", 4), ("up", 11), ("down", 12), ("loopback", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setDescription('The administrative state for this object.') hwAsEntityOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 11, 12, 13, 15, 16, 17))).clone(namedValues=NamedValues(("notSupported", 1), ("disabled", 2), ("enabled", 3), ("offline", 4), ("up", 11), ("down", 12), ("connect", 13), ("protocolUp", 15), ("linkUp", 16), ("linkDown", 17)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityOperStatus.setDescription('The operational state for this object.') hwAsEntityStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notSupported", 1), ("hotStandby", 2), ("coldStandby", 3), ("providingService", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setDescription('This object is used for monitoring standby status.') hwAsEntityAlarmLight = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 4), AlarmStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityAlarmLight.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setDescription('The alarm status for this entity.') hwAsEntityPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notSupported", 1), ("copper", 2), ("fiber100", 3), ("fiber1000", 4), ("fiber10000", 5), ("opticalnotExist", 6), ("optical", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntityPortType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPortType.setDescription('Indicates the type of the Ethernet interface.') hwAsEntityAliasMappingTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10), ) if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setDescription('The entity alias mapping table.') hwAsEntityAliasMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwAsIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalIndex"), (0, "HUAWEI-UNIMNG-MIB", "hwAsEntryAliasLogicalIndexOrZero")) if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setDescription('The entry of table.') hwAsEntryAliasLogicalIndexOrZero = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 1), Integer32()) if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setDescription('The value of this object identifies the logical entity.') hwAsEntryAliasMappingIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 2), AutonomousType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setDescription('The value of this object identifies a particular conceptual row associated with the indicated entPhysicalIndex and logical index pair.') hwTopomngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3)) hwTopomngExploreTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1440)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTopomngExploreTime.setStatus('current') if mibBuilder.loadTexts: hwTopomngExploreTime.setDescription('Topology collect time in minutes.') hwTopomngLastCollectDuration = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setStatus('current') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setDescription('Duration of the latest topology collection, measured in milliseconds.') hwTopomngTopoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11), ) if mibBuilder.loadTexts: hwTopomngTopoTable.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoTable.setDescription('The topology table.') hwTopomngTopoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTopoLocalHop"), (0, "HUAWEI-UNIMNG-MIB", "hwTopoLocalMac"), (0, "HUAWEI-UNIMNG-MIB", "hwTopoPeerDeviceIndex")) if mibBuilder.loadTexts: hwTopomngTopoEntry.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoEntry.setDescription('The entry of topology table.') hwTopoLocalHop = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))) if mibBuilder.loadTexts: hwTopoLocalHop.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalHop.setDescription('The topoloy hop.') hwTopoLocalMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 2), MacAddress()) if mibBuilder.loadTexts: hwTopoLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalMac.setDescription('The local device ID, defined by 6 bytes of MAC.') hwTopoPeerDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setDescription('The index of neighbor device.') hwTopoPeerMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerMac.setDescription('The neighbor device ID, defined by 6 bytes of MAC.') hwTopoLocalPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalPortName.setDescription('The port name of local device, same as ifName (defined in IETF RFC 2863).') hwTopoPeerPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerPortName.setDescription('The port name of neighbor device, same as ifName (defined in IETF RFC 2863).') hwTopoLocalTrunkId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setDescription('The trunk ID of local port, 65535 identify the local port is not in trunk.') hwTopoPeerTrunkId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setDescription('The trunk ID of neighbor port, 65535 identify the neighbor port is not in trunk.') hwTopoLocalRole = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("roleUC", 1), ("roleAS", 2), ("roleAP", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoLocalRole.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalRole.setDescription('The role of local topology node.') hwTopoPeerRole = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("roleUC", 1), ("roleAS", 2), ("roleAP", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwTopoPeerRole.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerRole.setDescription('The role of neighbor topology node.') hwMbrmngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4)) hwMbrMngFabricPortTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2), ) if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setDescription('The table of fabric port information.') hwMbrMngFabricPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwMbrMngASId"), (0, "HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortId")) if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setDescription('The entry of the table of fabric port information.') hwMbrMngASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: hwMbrMngASId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngASId.setDescription('AS index, is used to specify thd AS. 65535 represents the parent node.') hwMbrMngFabricPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwMbrMngFabricPortId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortId.setDescription('The Fabric-port index.') hwMbrMngFabricPortMemberIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setDescription("Interface name of the Fabric-port's member.") hwMbrMngFabricPortDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("downDirection", 1), ("upDirection", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setDescription('The direction of Fabric-port.') hwMbrMngFabricPortIndirectFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("indirect", 1), ("direct", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setDescription('The indirect flag of Fabric-port.') hwMbrMngFabricPortDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setDescription('The description of Fabric-port.') hwVermngObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5)) hwVermngGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1)) hwVermngFileServerType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("ftp", 1), ("sftp", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngFileServerType.setStatus('current') if mibBuilder.loadTexts: hwVermngFileServerType.setDescription('The type of file server.') hwVermngUpgradeInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2), ) if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setDescription('The table of AS upgrade information.') hwVermngUpgradeInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsIndex")) if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setDescription('The entry of the table of AS upgrade information.') hwVermngUpgradeInfoAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setDescription('The ID of AS.') hwVermngUpgradeInfoAsName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setDescription('The name of AS.') hwVermngUpgradeInfoAsSysSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setDescription('The filename of running system software of AS.') hwVermngUpgradeInfoAsSysSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setDescription('The version of running system software of AS.') hwVermngUpgradeInfoAsSysPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setDescription('The filename of running patch of AS.') hwVermngUpgradeInfoAsDownloadSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setDescription('The filename of system software which will be downloaded to AS.') hwVermngUpgradeInfoAsDownloadSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setDescription('The version of system software which will be downloaded to AS..') hwVermngUpgradeInfoAsDownloadPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setDescription('The filename of patch which will be downloaded to AS.') hwVermngUpgradeInfoAsUpgradeState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("noUpgrade", 1), ("upgrading", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setDescription('The upgrade status of AS.') hwVermngUpgradeInfoAsUpgradeType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("verSync", 1), ("manual", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setDescription('The type of upgrade.') hwVermngUpgradeInfoAsFilePhase = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("systemSoftware", 1), ("patch", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setDescription('The file type which is in downloading.') hwVermngUpgradeInfoAsUpgradePhase = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 255))).clone(namedValues=NamedValues(("downloadFile", 1), ("wait", 2), ("activateFile", 3), ("reboot", 4), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setDescription('The state in downloading file.') hwVermngUpgradeInfoAsUpgradeResult = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("successfully", 1), ("failed", 2), ("none", 255)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setDescription('The result of upgrade.') hwVermngUpgradeInfoAsErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setDescription('The error code in upgrading.') hwVermngUpgradeInfoAsErrorDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 15), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setDescription('The eroor description in upgrading.') hwVermngAsTypeCfgInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3), ) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setDescription('The table of configuration with AS type.') hwVermngAsTypeCfgInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoAsTypeIndex")) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setDescription('The entry of AS type configuration table.') hwVermngAsTypeCfgInfoAsTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setDescription('The index of AS type.') hwVermngAsTypeCfgInfoAsTypeName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 2), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setDescription('The name of AS type.') hwVermngAsTypeCfgInfoSystemSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 3), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setDescription('The filename of system software configured.') hwVermngAsTypeCfgInfoSystemSoftwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setDescription('The version of system software.') hwVermngAsTypeCfgInfoPatch = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 5), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setDescription('The filename of patch configured.') hwVermngAsTypeCfgInfoRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 50), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setDescription('The RowStatus of table.') hwTplmObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6)) hwTplmASGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11), ) if mibBuilder.loadTexts: hwTplmASGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupTable.setDescription('The table of template management with AS group.') hwTplmASGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmASGroupIndex")) if mibBuilder.loadTexts: hwTplmASGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupEntry.setDescription('The entry of AS group table.') hwTplmASGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: hwTplmASGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupIndex.setDescription('The index of AS group table.') hwTplmASGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupName.setDescription('The name of AS group.') hwTplmASAdminProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASAdminProfileName.setStatus('current') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setDescription("The name of AS group's admin profile.") hwTplmASGroupProfileStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setDescription("The status of AS group's admin profile.") hwTplmASGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setDescription('The row status of as group table.') hwTplmASTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12), ) if mibBuilder.loadTexts: hwTplmASTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASTable.setDescription('The table of template management with AS.') hwTplmASEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmASId")) if mibBuilder.loadTexts: hwTplmASEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASEntry.setDescription('The entry of AS table.') hwTplmASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwTplmASId.setStatus('current') if mibBuilder.loadTexts: hwTplmASId.setDescription('AS index.') hwTplmASASGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASASGroupName.setDescription('The name of AS group which the AS belongs to.') hwTplmASRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmASRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASRowStatus.setDescription('The row status of as table.') hwTplmPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13), ) if mibBuilder.loadTexts: hwTplmPortGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupTable.setDescription('The table of template management with port group.') hwTplmPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmPortGroupIndex")) if mibBuilder.loadTexts: hwTplmPortGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupEntry.setDescription('The entry of port group table.') hwTplmPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 257))) if mibBuilder.loadTexts: hwTplmPortGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupIndex.setDescription('The index of port group table.') hwTplmPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupName.setDescription('The name of port group.') hwTplmPortGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("service", 1), ("ap", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupType.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupType.setDescription('The type of port group.') hwTplmPortGroupNetworkBasicProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setDescription("The name of port group's network basic profile.") hwTplmPortGroupNetworkEnhancedProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setDescription("The name of port group's network enhanced profile.") hwTplmPortGroupUserAccessProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setDescription("The name of port group's user access profile.") hwTplmPortGroupProfileStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setDescription("The status of port group's profile.") hwTplmPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setDescription('The row status of port group table.') hwTplmPortTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14), ) if mibBuilder.loadTexts: hwTplmPortTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortTable.setDescription("The table of template management with AS's port.") hwTplmPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmPortIfIndex")) if mibBuilder.loadTexts: hwTplmPortEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortEntry.setDescription('The entry of port table.') hwTplmPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 1), Integer32()) if mibBuilder.loadTexts: hwTplmPortIfIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortIfIndex.setDescription("The interface index of AS's port.") hwTplmPortPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setDescription("The name of port group which the AS's port belongs to.") hwTplmPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTplmPortRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortRowStatus.setDescription('The row status of port table.') hwTplmConfigManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15)) hwTplmConfigCommitAll = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("commit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTplmConfigCommitAll.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setDescription('Apply configuration of template management to all ASs.') hwTplmConfigManagementTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2), ) if mibBuilder.loadTexts: hwTplmConfigManagementTable.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementTable.setDescription('The table of committing configuration of template management.') hwTplmConfigManagementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1), ).setIndexNames((0, "HUAWEI-UNIMNG-MIB", "hwTplmConfigManagementASId")) if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setDescription('The entry of committing table.') hwTplmConfigManagementASId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: hwTplmConfigManagementASId.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementASId.setDescription('AS index.') hwTplmConfigManagementCommit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("commit", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setDescription('Apply configuration of template management to the specified AS.') hwUnimngNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31)) hwTopomngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1)) hwTopomngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1)) hwTopomngTrapLocalMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setDescription('Topomng trap message local MAC, defined as the device ID.') hwTopomngTrapLocalPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setDescription('Topomng trap message local port name.') hwTopomngTrapLocalTrunkId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setDescription('Topomng trap message local trunk ID, 65535 defines a phy port.') hwTopomngTrapPeerMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setDescription('Topomng trap message peer MAC, defined as the device ID.') hwTopomngTrapPeerPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setDescription('Topomng trap message peer port name.') hwTopomngTrapPeerTrunkId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setDescription('Topomng trap message peer trunk ID, 65535 defines a phy port.') hwTopomngTrapReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTopomngTrapReason.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapReason.setDescription('Topomng trap message Reason.') hwTopomngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2)) hwTopomngLinkNormal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if mibBuilder.loadTexts: hwTopomngLinkNormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkNormal.setDescription('The notification of topology link normal.') hwTopomngLinkAbnormal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setDescription('The notification of topology link abnormal.') hwAsmngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2)) hwAsmngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1)) hwAsmngTrapAsIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setDescription('The AS index.') hwAsmngTrapAsModel = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setDescription('The model of AS.') hwAsmngTrapAsSysName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 3), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setDescription('The name of AS.') hwAsmngTrapAsMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setDescription('The MAC address of AS.') hwAsmngTrapAsSn = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 5), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setDescription('The SN of AS.') hwAsmngTrapAsIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setDescription('The interface index of AS.') hwAsmngTrapAsIfOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 7), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setDescription('The operation stauts of AS.') hwAsmngTrapAsFaultTimes = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 8), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setDescription('The fault times of AS.') hwAsmngTrapAsIfAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 9), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setDescription('AS interface adminnistrator status.') hwAsmngTrapAsIfName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 10), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setDescription('The name of AS.') hwAsmngTrapAsActualeType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 11), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setDescription('The actual type of AS.') hwAsmngTrapAsVersion = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 12), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setDescription('The version of AS.') hwAsmngTrapParentVersion = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 13), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setDescription('The version of parent.') hwAsmngTrapAddedAsMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 14), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setDescription('The MAC address of added AS.') hwAsmngTrapAsSlotId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 15), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setDescription('The slot ID of AS.') hwAsmngTrapAddedAsSlotType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 16), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setDescription('The slot type of added AS.') hwAsmngTrapAsPermitNum = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 17), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setDescription('The maxium number of permitted AS.') hwAsmngTrapAsUnimngMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 18), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setDescription('The UNI-MNG mode of AS.') hwAsmngTrapParentUnimngMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 19), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setDescription('The UNI-MNG mode of parent.') hwAsmngTrapAsIfType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 20), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setDescription('The interface type of AS.') hwAsmngTrapAsOnlineFailReasonId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 21), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setDescription('The reason ID of AS online failed.') hwAsmngTrapAsOnlineFailReasonDesc = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 22), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setDescription('The description of AS online failed.') hwAsmngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2)) hwAsFaultNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsFaultTimes")) if mibBuilder.loadTexts: hwAsFaultNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFaultNotify.setDescription('This notification occurs when AS become fault.') hwAsNormalNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsNormalNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNormalNotify.setDescription('This notification occurs when AS become normal.') hwAsAddOffLineNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsAddOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsAddOffLineNotify.setDescription('This notification occurs when added an AS offline.') hwAsDelOffLineNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsDelOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsDelOffLineNotify.setDescription('This notification occurs when deleted an AS offline.') hwAsPortStateChangeToDownNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus")) if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setDescription('This notification occurs when port status changed to DOWN.') hwAsPortStateChangeToUpNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus")) if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setDescription('This notification occurs when port status changed to UP.') hwAsModelNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsActualeType")) if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setDescription('This notification occurs when the model of AS is mismatch.') hwAsVersionNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 8)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentVersion")) if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setDescription('This notification occurs when the version of AS is mismatch.') hwAsNameConflictNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 9)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsMac")) if mibBuilder.loadTexts: hwAsNameConflictNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNameConflictNotify.setDescription('This notification occurs when the name of AS is conflicted.') hwAsSlotModelNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 10)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsSlotType")) if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setDescription('This notification occurs when the slot model of AS is mismatch.') hwAsFullNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 11)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsPermitNum")) if mibBuilder.loadTexts: hwAsFullNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFullNotify.setDescription('This notification occurs when the model of a slot is different from other slots.') hwUnimngModeNotMatchNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 12)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentUnimngMode")) if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setDescription("This notification occurs when the UNI-MNG mode of AS is different parent's.") hwAsBoardAddNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 13)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardAddNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardAddNotify.setDescription('This notification occurs when a slot is added.') hwAsBoardDeleteNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 14)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setDescription('This notification occurs when a slot is deleted.') hwAsBoardPlugInNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 15)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setDescription('This notification occurs when a slot is plugged in.') hwAsBoardPlugOutNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 16)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setDescription('This notification occurs when a slot is pulled out.') hwAsInBlacklistNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 17)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsInBlacklistNotify.setStatus('current') if mibBuilder.loadTexts: hwAsInBlacklistNotify.setDescription('This notification occurs when AS is in blacklist.') hwAsUnconfirmedNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 18)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac")) if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setStatus('current') if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setDescription('This notification occurs when AS is not confirmed.') hwAsComboPortTypeChangeNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 19)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfType")) if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setStatus('current') if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setDescription('This notification occurs when combo type change.') hwAsOnlineFailNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 20)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonDesc")) if mibBuilder.loadTexts: hwAsOnlineFailNotify.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineFailNotify.setDescription('This notification occurs when AS online failed.') hwAsSlotIdInvalidNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 21)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId")) if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setDescription('This notification occurs when the slot ID of AS is invalid.') hwAsSysmacSwitchCfgErrNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 22)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName")) if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setDescription('This notification occurs when the configuration of system MAC address switching delay is error.') hwUniMbrTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3)) hwUniMbrTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1)) hwUniMbrLinkStatTrapLocalMac = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 1), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setDescription('UNIMBR trap message local mac.') hwUniMbrLinkStatTrapLocalPortName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setDescription('UNIMBR trap message local port name.') hwUniMbrLinkStatTrapChangeType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up2down", 1), ("down2up", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setDescription('UNIMBR trap message changing type of link state.') hwUniMbrTrapConnectErrorReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 4), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setDescription('The reason of UNIMBR fabric-port connect error.') hwUniMbrTrapReceivePktRate = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 5), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setDescription('AS Discover packet rate.') hwUniMbrTrapAsIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setDescription('AS index.') hwUniMbrTrapAsSysName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 7), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setDescription('Name of AS.') hwUniMbrParaSynFailReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 8), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setDescription('The reason of UNIMBR parameter synchronization failed.') hwUniMbrTrapIllegalConfigReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 9), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setDescription('The reason of UNIMBR illegal configuration.') hwUniMbrTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2)) hwUniMbrConnectError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapConnectErrorReason")) if mibBuilder.loadTexts: hwUniMbrConnectError.setStatus('current') if mibBuilder.loadTexts: hwUniMbrConnectError.setDescription('The notification of fabric-port connect error.') hwUniMbrASDiscoverAttack = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapReceivePktRate")) if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setStatus('current') if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setDescription('An AS discover packet attack is detected.') hwUniMbrFabricPortMemberDelete = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName")) if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setStatus('current') if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setDescription('The notification of deleting member of fabric port.') hwUniMbrIllegalFabricConfig = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapIllegalConfigReason")) if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setStatus('current') if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setDescription('The notification of IllegalFabricConfig.') hwVermngTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4)) hwVermngTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 1)) hwVermngTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2)) hwVermngUpgradeFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorCode"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorDescr")) if mibBuilder.loadTexts: hwVermngUpgradeFail.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeFail.setDescription('Upgrade failed.') hwTplmTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5)) hwTplmTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1)) hwTplmTrapASName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTplmTrapASName.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapASName.setDescription('The name of AS.') hwTplmTrapFailedReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 2), OctetString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwTplmTrapFailedReason.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setDescription('The reason of failure.') hwTplmTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2)) hwTplmCmdExecuteFailedNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName"), ("HUAWEI-UNIMNG-MIB", "hwTplmTrapFailedReason")) if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setDescription('The notification of command execution failure.') hwTplmCmdExecuteSuccessfulNotify = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName")) if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setDescription('The notification of command execution failure cleared.') hwTplmDirectCmdRecoverFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName")) if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setStatus('current') if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setDescription('The notification of direct command recovery failure.') hwUniAsBaseTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6)) hwUniAsBaseTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1)) hwUniAsBaseAsName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 1), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseAsName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsName.setDescription('The name of AS.') hwUniAsBaseAsId = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseAsId.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsId.setDescription('AS id.') hwUniAsBaseEntityPhysicalIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 3), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setDescription('The index of AS physical.') hwUniAsBaseTrapSeverity = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setDescription('To describe the level of trap.') hwUniAsBaseTrapProbableCause = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 5), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setDescription('To describe the probable cause of trap.') hwUniAsBaseTrapEventType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 6), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setDescription('To describe the type of trap.') hwUniAsBaseEntPhysicalContainedIn = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 7), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setDescription('The value of entPhysicalIndex for the physical entity which contains this physical entity.') hwUniAsBaseEntPhysicalName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 8), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setDescription('The textual name of the physical entity.') hwUniAsBaseRelativeResource = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 9), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setDescription('This object may contain a key word to indicate the relative resource of an entity.') hwUniAsBaseReasonDescription = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 10), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setDescription('Reason description.') hwUniAsBaseThresholdType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 11), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setDescription('The index to indicate the type of threshold for an entry.') hwUniAsBaseThresholdValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 12), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setDescription('The current value that been measured.') hwUniAsBaseThresholdUnit = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 13), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setDescription('The unit for this threshold value.') hwUniAsBaseThresholdHighWarning = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 14), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setDescription('The normal warning threshold for rising alarm.') hwUniAsBaseThresholdHighCritical = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 15), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setDescription('The critical alarm threshold for rising alarm.') hwUniAsBaseThresholdLowWarning = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 16), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setDescription('The normal warning threshold for falling alarm.') hwUniAsBaseThresholdLowCritical = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 17), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setDescription('The critical alarm threshold for falling alarm.') hwUniAsBaseEntityTrapEntType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 18), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setDescription('The entity type.') hwUniAsBaseEntityTrapEntFaultID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 19), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setDescription('To describe the fault id of trap.') hwUniAsBaseEntityTrapCommunicateType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 20), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setDescription('The communicate type.') hwUniAsBaseThresholdEntValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 21), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setDescription('The threshold value.') hwUniAsBaseThresholdEntCurrent = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 22), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setDescription('The current value that been measured.') hwUniAsBaseEntPhysicalIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 23), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setDescription('The index of AS physical.') hwUniAsBaseThresholdHwBaseThresholdType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 24), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setDescription('The type of base threshold.') hwUniAsBaseThresholdHwBaseThresholdIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 25), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setDescription('The index of base threshold.') hwUniAsBaseTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2)) hwASEnvironmentTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2)) hwASBrdTempAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBrdTempAlarm.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempAlarm.setDescription('Temperature rise over or fall below the warning alarm threshold.') hwASBrdTempResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBrdTempResume.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempResume.setDescription('Temperature back to normal level.') hwASBoardTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3)) hwASBoardFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBoardFail.setStatus('current') if mibBuilder.loadTexts: hwASBoardFail.setDescription('Board become failure for some reason.') hwASBoardFailResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASBoardFailResume.setStatus('current') if mibBuilder.loadTexts: hwASBoardFailResume.setDescription('Board resume from failure.') hwASOpticalTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4)) hwASOpticalInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASOpticalInvalid.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalid.setDescription('Optical Module is invalid for some reason.') hwASOpticalInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASOpticalInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalidResume.setDescription('Optical Module resume from invalid situation.') hwASPowerTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5)) hwASPowerRemove = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerRemove.setStatus('current') if mibBuilder.loadTexts: hwASPowerRemove.setDescription('Power has been removed.') hwASPowerInsert = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInsert.setStatus('current') if mibBuilder.loadTexts: hwASPowerInsert.setDescription('Power has been inserted.') hwASPowerInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInvalid.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalid.setDescription('Power is invalid for some reason.') hwASPowerInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASPowerInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalidResume.setDescription('Power resume from invalid situation.') hwASFanTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6)) hwASFanRemove = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanRemove.setStatus('current') if mibBuilder.loadTexts: hwASFanRemove.setDescription('Fan has been removed.') hwASFanInsert = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInsert.setStatus('current') if mibBuilder.loadTexts: hwASFanInsert.setDescription('Fan has been inserted.') hwASFanInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInvalid.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalid.setDescription('Fan is invalid for some reason.') hwASFanInvalidResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASFanInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalidResume.setDescription('Fan resume from invalid situation.') hwASCommunicateTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7)) hwASCommunicateError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType")) if mibBuilder.loadTexts: hwASCommunicateError.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateError.setDescription('Communication error has been detected.') hwASCommunicateResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType")) if mibBuilder.loadTexts: hwASCommunicateResume.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateResume.setDescription('Resume from communication error situation.') hwASCPUTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8)) hwASCPUUtilizationRising = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASCPUUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationRising.setDescription('CPU utilization overrun.') hwASCPUUtilizationResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASCPUUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationResume.setDescription('CPU utilization back to normal level.') hwASMemoryTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9)) hwASMemUtilizationRising = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASMemUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationRising.setDescription('Memory utilization overrun.') hwASMemUtilizationResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID")) if mibBuilder.loadTexts: hwASMemUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationResume.setDescription('Memory utilization back to normal level.') hwASMadTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10)) hwASMadConflictDetect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId")) if mibBuilder.loadTexts: hwASMadConflictDetect.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictDetect.setDescription('Notify the NMS that dual-active scenario is detected.') hwASMadConflictResume = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId")) if mibBuilder.loadTexts: hwASMadConflictResume.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictResume.setDescription('Notify the NMS that dual-active scenario is merged.') hwUnimngConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50)) hwTopomngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1)) hwTopomngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTopoGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngCompliance = hwTopomngCompliance.setStatus('current') if mibBuilder.loadTexts: hwTopomngCompliance.setDescription('The compliance statement for SNMP entities supporting topomng.') hwTopomngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngExploreTime"), ("HUAWEI-UNIMNG-MIB", "hwTopomngLastCollectDuration")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngObjectsGroup = hwTopomngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngObjectsGroup.setDescription('The topomng objects group.') hwTopomngTopoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopoPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopoLocalRole"), ("HUAWEI-UNIMNG-MIB", "hwTopoPeerRole")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTopoGroup = hwTopomngTopoGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoGroup.setDescription('The topology table group.') hwTopomngTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapLocalTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerMac"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerPortName"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapPeerTrunkId"), ("HUAWEI-UNIMNG-MIB", "hwTopomngTrapReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTrapObjectsGroup = hwTopomngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapObjectsGroup.setDescription('The topomng trap objects group.') hwTopomngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTopomngLinkNormal"), ("HUAWEI-UNIMNG-MIB", "hwTopomngLinkAbnormal")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTopomngTrapsGroup = hwTopomngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapsGroup.setDescription('The topomng notification objects group.') hwAsmngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2)) hwAsmngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsIfGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngAsIfXGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngGlobalObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngMacWhitelistGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngMacBlacklistGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityPhysicalGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityStateGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngEntityAliasMappingGroup"), ("HUAWEI-UNIMNG-MIB", "hwAsmngSlotGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngCompliance = hwAsmngCompliance.setStatus('current') if mibBuilder.loadTexts: hwAsmngCompliance.setDescription('The compliance statement for SNMP entities supporting asmng.') hwAsmngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMngEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngObjectsGroup = hwAsmngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngObjectsGroup.setDescription('The AS management objects group.') hwAsmngAsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsHardwareVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsIpAddress"), ("HUAWEI-UNIMNG-MIB", "hwAsIpNetMask"), ("HUAWEI-UNIMNG-MIB", "hwAsAccessUser"), ("HUAWEI-UNIMNG-MIB", "hwAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsSn"), ("HUAWEI-UNIMNG-MIB", "hwAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsRunState"), ("HUAWEI-UNIMNG-MIB", "hwAsSoftwareVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsDns"), ("HUAWEI-UNIMNG-MIB", "hwAsOnlineTime"), ("HUAWEI-UNIMNG-MIB", "hwAsCpuUseage"), ("HUAWEI-UNIMNG-MIB", "hwAsMemoryUseage"), ("HUAWEI-UNIMNG-MIB", "hwAsSysMac"), ("HUAWEI-UNIMNG-MIB", "hwAsStackEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsGatewayIp"), ("HUAWEI-UNIMNG-MIB", "hwAsRowstatus"), ("HUAWEI-UNIMNG-MIB", "hwAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsVpnInstance")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsGroup = hwAsmngAsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsGroup.setDescription('The as table group.') hwAsmngAsIfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsIfDescr"), ("HUAWEI-UNIMNG-MIB", "hwAsIfType"), ("HUAWEI-UNIMNG-MIB", "hwAsIfMtu"), ("HUAWEI-UNIMNG-MIB", "hwAsIfSpeed"), ("HUAWEI-UNIMNG-MIB", "hwAsIfPhysAddress"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsIfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsIfGroup = hwAsmngAsIfGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfGroup.setDescription('The as table group.') hwAsmngAsIfXGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsIfLinkUpDownTrapEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHighSpeed"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAlias"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutUcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHCOutOctets"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInMulticastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfInBroadcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutMulticastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfOutBroadcastPkts"), ("HUAWEI-UNIMNG-MIB", "hwAsIfHCInOctets"), ("HUAWEI-UNIMNG-MIB", "hwAsIfAsId"), ("HUAWEI-UNIMNG-MIB", "hwAsIfName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngAsIfXGroup = hwAsmngAsIfXGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfXGroup.setDescription('The as table group.') hwAsmngTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsModel"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSn"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfIndex"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsFaultTimes"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfName"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsActualeType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentVersion"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsMac"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsSlotId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAddedAsSlotType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsPermitNum"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapParentUnimngMode"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsIfType"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonId"), ("HUAWEI-UNIMNG-MIB", "hwAsmngTrapAsOnlineFailReasonDesc")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngTrapObjectsGroup = hwAsmngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapObjectsGroup.setDescription('The AS management trap objects group.') hwAsmngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsFaultNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsNormalNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsAddOffLineNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsDelOffLineNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsPortStateChangeToDownNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsPortStateChangeToUpNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsModelNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsVersionNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsNameConflictNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotModelNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsFullNotify"), ("HUAWEI-UNIMNG-MIB", "hwUnimngModeNotMatchNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardAddNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardDeleteNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardPlugInNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsBoardPlugOutNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsInBlacklistNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsUnconfirmedNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsComboPortTypeChangeNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsOnlineFailNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotIdInvalidNotify"), ("HUAWEI-UNIMNG-MIB", "hwAsSysmacSwitchCfgErrNotify")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngTrapsGroup = hwAsmngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapsGroup.setDescription('The AS management notification objects group.') hwAsmngGlobalObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsAutoReplaceEnable"), ("HUAWEI-UNIMNG-MIB", "hwAsAuthMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngGlobalObjectsGroup = hwAsmngGlobalObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngGlobalObjectsGroup.setDescription('Description.') hwAsmngMacWhitelistGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 8)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsMacWhitelistRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngMacWhitelistGroup = hwAsmngMacWhitelistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacWhitelistGroup.setDescription('Description.') hwAsmngMacBlacklistGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 9)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsMacBlacklistRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngMacBlacklistGroup = hwAsmngMacBlacklistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacBlacklistGroup.setDescription('Description.') hwAsmngEntityPhysicalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 10)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalDescr"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalVendorType"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalContainedIn"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalClass"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalParentRelPos"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalHardwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalFirmwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalSoftwareRev"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalSerialNum"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPhysicalMfgName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityPhysicalGroup = hwAsmngEntityPhysicalGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityPhysicalGroup.setDescription('Description.') hwAsmngEntityStateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 11)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntityAdminStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityOperStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityStandbyStatus"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityAlarmLight"), ("HUAWEI-UNIMNG-MIB", "hwAsEntityPortType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityStateGroup = hwAsmngEntityStateGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityStateGroup.setDescription('Description.') hwAsmngEntityAliasMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 12)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsEntryAliasMappingIdentifier")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngEntityAliasMappingGroup = hwAsmngEntityAliasMappingGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityAliasMappingGroup.setDescription('Description.') hwAsmngSlotGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 13)).setObjects(("HUAWEI-UNIMNG-MIB", "hwAsSlotState"), ("HUAWEI-UNIMNG-MIB", "hwAsSlotRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwAsmngSlotGroup = hwAsmngSlotGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngSlotGroup.setDescription('Description.') hwMbrCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3)) hwMbrCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwMbrTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwMbrTrapsGroup"), ("HUAWEI-UNIMNG-MIB", "hwMbrFabricPortGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrCompliance = hwMbrCompliance.setStatus('current') if mibBuilder.loadTexts: hwMbrCompliance.setDescription('The compliance statement for SNMP entities supporting mbrmng.') hwMbrTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalMac"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapLocalPortName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrLinkStatTrapChangeType"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapConnectErrorReason"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapReceivePktRate"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapAsSysName"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrParaSynFailReason"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrTrapIllegalConfigReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrTrapObjectsGroup = hwMbrTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapObjectsGroup.setDescription('The mbrmng trap objects group.') hwMbrTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniMbrConnectError"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrASDiscoverAttack"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrFabricPortMemberDelete"), ("HUAWEI-UNIMNG-MIB", "hwUniMbrIllegalFabricConfig")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrTrapsGroup = hwMbrTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapsGroup.setDescription('The mbrmng notification objects group.') hwMbrFabricPortGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortMemberIfName"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortDirection"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortIndirectFlag"), ("HUAWEI-UNIMNG-MIB", "hwMbrMngFabricPortDescription")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMbrFabricPortGroup = hwMbrFabricPortGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrFabricPortGroup.setDescription('The mbrmng fabric port group.') hwVermngCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4)) hwVermngCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngCompliance = hwVermngCompliance.setStatus('current') if mibBuilder.loadTexts: hwVermngCompliance.setDescription('The compliance of version management.') hwVermngObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngFileServerType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngObjectsGroup = hwVermngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngObjectsGroup.setDescription('The group of global objects.') hwVermngUpgradeInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsName"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsSysPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsDownloadPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeState"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeType"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsFilePhase"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradePhase"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsUpgradeResult"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorCode"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoAsErrorDescr")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngUpgradeInfoGroup = hwVermngUpgradeInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoGroup.setDescription('The group of upgrade info.') hwVermngAsTypeCfgInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoPatch"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoSystemSoftwareVer"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoRowStatus"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoSystemSoftware"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoAsTypeName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngAsTypeCfgInfoGroup = hwVermngAsTypeCfgInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoGroup.setDescription('The group of AS type.') hwVermngTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeFail")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwVermngTrapsGroup = hwVermngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngTrapsGroup.setDescription('The group of notification of version management.') hwTplmCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5)) hwTplmCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwVermngObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngUpgradeInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngAsTypeCfgInfoGroup"), ("HUAWEI-UNIMNG-MIB", "hwVermngTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmCompliance = hwTplmCompliance.setStatus('current') if mibBuilder.loadTexts: hwTplmCompliance.setDescription('The compliance of template management.') hwTplmASGroupGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmASGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASAdminProfileName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASGroupProfileStatus"), ("HUAWEI-UNIMNG-MIB", "hwTplmASGroupRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmASGroupGoup = hwTplmASGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupGoup.setDescription('The group of as group.') hwTplmASGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmASASGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmASRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmASGoup = hwTplmASGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGoup.setDescription('The group of as.') hwTplmPortGroupGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 3)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupType"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupNetworkBasicProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupNetworkEnhancedProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupUserAccessProfile"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupProfileStatus"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortGroupRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmPortGroupGoup = hwTplmPortGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupGoup.setDescription('The group of port group.') hwTplmPortGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 4)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmPortPortGroupName"), ("HUAWEI-UNIMNG-MIB", "hwTplmPortRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmPortGoup = hwTplmPortGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGoup.setDescription('The group of port.') hwTplmConfigManagementGoup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 5)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmConfigCommitAll"), ("HUAWEI-UNIMNG-MIB", "hwTplmConfigManagementCommit")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmConfigManagementGoup = hwTplmConfigManagementGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementGoup.setDescription('The group of configuration management.') hwTplmTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 6)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmTrapASName"), ("HUAWEI-UNIMNG-MIB", "hwTplmTrapFailedReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmTrapObjectsGroup = hwTplmTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapObjectsGroup.setDescription('The tplm trap objects group.') hwTplmTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 7)).setObjects(("HUAWEI-UNIMNG-MIB", "hwTplmCmdExecuteFailedNotify"), ("HUAWEI-UNIMNG-MIB", "hwTplmCmdExecuteSuccessfulNotify"), ("HUAWEI-UNIMNG-MIB", "hwTplmDirectCmdRecoverFail")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwTplmTrapsGroup = hwTplmTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapsGroup.setDescription('The tplm notification objects group.') hwUniBaseTrapCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6)) hwUniBaseTrapCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniBaseTrapObjectsGroup"), ("HUAWEI-UNIMNG-MIB", "hwUniBaseTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapCompliance = hwUniBaseTrapCompliance.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapCompliance.setDescription('The compliance statement for SNMP entities supporting unimng base trap.') hwUniBaseTrapObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 1)).setObjects(("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseAsId"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapSeverity"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapProbableCause"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseTrapEventType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalContainedIn"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalName"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseRelativeResource"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseReasonDescription"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdUnit"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHighWarning"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHighCritical"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdLowWarning"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdLowCritical"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapEntFaultID"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntityTrapCommunicateType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntValue"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdEntCurrent"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseEntPhysicalIndex"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHwBaseThresholdType"), ("HUAWEI-UNIMNG-MIB", "hwUniAsBaseThresholdHwBaseThresholdIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapObjectsGroup = hwUniBaseTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapObjectsGroup.setDescription('The unimng base trap objects group.') hwUniBaseTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 2)).setObjects(("HUAWEI-UNIMNG-MIB", "hwASBoardFail"), ("HUAWEI-UNIMNG-MIB", "hwASBoardFailResume"), ("HUAWEI-UNIMNG-MIB", "hwASOpticalInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASOpticalInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASPowerRemove"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInsert"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASPowerInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASFanRemove"), ("HUAWEI-UNIMNG-MIB", "hwASFanInsert"), ("HUAWEI-UNIMNG-MIB", "hwASFanInvalid"), ("HUAWEI-UNIMNG-MIB", "hwASFanInvalidResume"), ("HUAWEI-UNIMNG-MIB", "hwASCommunicateError"), ("HUAWEI-UNIMNG-MIB", "hwASCommunicateResume"), ("HUAWEI-UNIMNG-MIB", "hwASCPUUtilizationRising"), ("HUAWEI-UNIMNG-MIB", "hwASCPUUtilizationResume"), ("HUAWEI-UNIMNG-MIB", "hwASMemUtilizationRising"), ("HUAWEI-UNIMNG-MIB", "hwASMemUtilizationResume"), ("HUAWEI-UNIMNG-MIB", "hwASMadConflictDetect"), ("HUAWEI-UNIMNG-MIB", "hwASMadConflictResume"), ("HUAWEI-UNIMNG-MIB", "hwASBrdTempAlarm"), ("HUAWEI-UNIMNG-MIB", "hwASBrdTempResume")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwUniBaseTrapsGroup = hwUniBaseTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapsGroup.setDescription('The unimng base notification objects group.') mibBuilder.exportSymbols("HUAWEI-UNIMNG-MIB", hwTopomngTrapReason=hwTopomngTrapReason, hwUnimngConformance=hwUnimngConformance, hwTplmPortIfIndex=hwTplmPortIfIndex, hwVermngFileServerType=hwVermngFileServerType, hwAsDns=hwAsDns, hwUniMbrTrapReceivePktRate=hwUniMbrTrapReceivePktRate, hwTopomngTrapObjects=hwTopomngTrapObjects, hwTopomngLastCollectDuration=hwTopomngLastCollectDuration, hwTopoPeerRole=hwTopoPeerRole, hwTplmTraps=hwTplmTraps, hwUniAsBaseThresholdLowWarning=hwUniAsBaseThresholdLowWarning, hwMbrCompliances=hwMbrCompliances, hwUniAsBaseReasonDescription=hwUniAsBaseReasonDescription, hwAsSlotRowStatus=hwAsSlotRowStatus, hwASPowerInvalidResume=hwASPowerInvalidResume, hwVermngCompliances=hwVermngCompliances, hwAsmngTrapParentUnimngMode=hwAsmngTrapParentUnimngMode, hwTopoLocalTrunkId=hwTopoLocalTrunkId, hwASEnvironmentTrap=hwASEnvironmentTrap, hwAsFullNotify=hwAsFullNotify, hwTplmASEntry=hwTplmASEntry, hwTopomngTrapPeerTrunkId=hwTopomngTrapPeerTrunkId, hwAsDelOffLineNotify=hwAsDelOffLineNotify, hwTplmCmdExecuteFailedNotify=hwTplmCmdExecuteFailedNotify, hwMbrMngFabricPortId=hwMbrMngFabricPortId, hwAsIfAsId=hwAsIfAsId, hwUniAsBaseThresholdEntCurrent=hwUniAsBaseThresholdEntCurrent, hwVermngAsTypeCfgInfoTable=hwVermngAsTypeCfgInfoTable, hwTplmDirectCmdRecoverFail=hwTplmDirectCmdRecoverFail, hwUniBaseTrapObjectsGroup=hwUniBaseTrapObjectsGroup, hwASPowerInsert=hwASPowerInsert, hwAsIfLinkUpDownTrapEnable=hwAsIfLinkUpDownTrapEnable, hwAsmngTrapAsUnimngMode=hwAsmngTrapAsUnimngMode, hwAsIfOutMulticastPkts=hwAsIfOutMulticastPkts, hwAsEntityPhysicalDescr=hwAsEntityPhysicalDescr, hwUniAsBaseThresholdHwBaseThresholdIndex=hwUniAsBaseThresholdHwBaseThresholdIndex, hwAsSlotIdInvalidNotify=hwAsSlotIdInvalidNotify, hwUnimngNotification=hwUnimngNotification, hwAsIfName=hwAsIfName, hwVermngUpgradeInfoAsUpgradeResult=hwVermngUpgradeInfoAsUpgradeResult, hwAsIfDescr=hwAsIfDescr, hwVermngUpgradeInfoAsSysSoftwareVer=hwVermngUpgradeInfoAsSysSoftwareVer, hwVermngUpgradeInfoAsDownloadSoftwareVer=hwVermngUpgradeInfoAsDownloadSoftwareVer, hwTopoLocalHop=hwTopoLocalHop, hwAsEntityOperStatus=hwAsEntityOperStatus, hwTplmPortRowStatus=hwTplmPortRowStatus, hwTplmPortGroupProfileStatus=hwTplmPortGroupProfileStatus, hwAsBoardPlugInNotify=hwAsBoardPlugInNotify, hwTplmPortGroupRowStatus=hwTplmPortGroupRowStatus, hwAsIpNetMask=hwAsIpNetMask, hwAsmngTrapAsSn=hwAsmngTrapAsSn, hwAsIfTable=hwAsIfTable, hwAsUnconfirmedNotify=hwAsUnconfirmedNotify, hwAsEntityPhysicalIndex=hwAsEntityPhysicalIndex, hwAsmngTrapsGroup=hwAsmngTrapsGroup, hwTplmTrap=hwTplmTrap, hwAsEntityPhysicalHardwareRev=hwAsEntityPhysicalHardwareRev, hwUniAsBaseTraps=hwUniAsBaseTraps, hwTplmASGroupProfileStatus=hwTplmASGroupProfileStatus, hwVermngCompliance=hwVermngCompliance, hwAsMacBlacklistTable=hwAsMacBlacklistTable, hwUniAsBaseEntityPhysicalIndex=hwUniAsBaseEntityPhysicalIndex, hwVermngAsTypeCfgInfoAsTypeIndex=hwVermngAsTypeCfgInfoAsTypeIndex, hwAsIfInBroadcastPkts=hwAsIfInBroadcastPkts, hwASOpticalInvalidResume=hwASOpticalInvalidResume, hwTplmCompliance=hwTplmCompliance, hwAsEntityPhysicalContainedIn=hwAsEntityPhysicalContainedIn, hwMbrmngObjects=hwMbrmngObjects, hwAsSlotState=hwAsSlotState, hwUniAsBaseThresholdHighCritical=hwUniAsBaseThresholdHighCritical, hwASPowerRemove=hwASPowerRemove, hwAsIfOutBroadcastPkts=hwAsIfOutBroadcastPkts, hwVermngAsTypeCfgInfoSystemSoftware=hwVermngAsTypeCfgInfoSystemSoftware, hwAsFaultNotify=hwAsFaultNotify, hwAsmngAsIfGroup=hwAsmngAsIfGroup, hwAsmngTrapAsActualeType=hwAsmngTrapAsActualeType, hwAsEntityPortType=hwAsEntityPortType, hwTopomngExploreTime=hwTopomngExploreTime, hwUniMbrTrapIllegalConfigReason=hwUniMbrTrapIllegalConfigReason, hwTplmPortGroupNetworkBasicProfile=hwTplmPortGroupNetworkBasicProfile, hwUniMbrTrapAsSysName=hwUniMbrTrapAsSysName, hwASFanInsert=hwASFanInsert, hwAsAutoReplaceEnable=hwAsAutoReplaceEnable, hwVermngTrapsGroup=hwVermngTrapsGroup, hwTopomngObjects=hwTopomngObjects, hwUniMbrLinkStatTrapLocalMac=hwUniMbrLinkStatTrapLocalMac, PYSNMP_MODULE_ID=hwUnimngMIB, hwUniAsBaseTrap=hwUniAsBaseTrap, hwVermngUpgradeInfoTable=hwVermngUpgradeInfoTable, hwAsMacBlacklistMacAddr=hwAsMacBlacklistMacAddr, hwTopomngCompliances=hwTopomngCompliances, hwAsEntityPhysicalName=hwAsEntityPhysicalName, hwAsMacBlacklistRowStatus=hwAsMacBlacklistRowStatus, hwVermngUpgradeInfoAsUpgradePhase=hwVermngUpgradeInfoAsUpgradePhase, hwAsRowstatus=hwAsRowstatus, hwMbrMngASId=hwMbrMngASId, hwMbrMngFabricPortEntry=hwMbrMngFabricPortEntry, hwASCommunicateResume=hwASCommunicateResume, hwAsMacWhitelistMacAddr=hwAsMacWhitelistMacAddr, hwAsIfAlias=hwAsIfAlias, hwUniMbrTrapObjects=hwUniMbrTrapObjects, hwVermngUpgradeInfoAsIndex=hwVermngUpgradeInfoAsIndex, hwTplmObjects=hwTplmObjects, hwAsIndex=hwAsIndex, hwASOpticalInvalid=hwASOpticalInvalid, hwAsIfSpeed=hwAsIfSpeed, hwAsIfHCOutOctets=hwAsIfHCOutOctets, hwTopomngTopoGroup=hwTopomngTopoGroup, hwTplmPortGroupTable=hwTplmPortGroupTable, hwAsNameConflictNotify=hwAsNameConflictNotify, hwUniMbrConnectError=hwUniMbrConnectError, hwUniBaseTrapCompliance=hwUniBaseTrapCompliance, hwAsmngMacWhitelistGroup=hwAsmngMacWhitelistGroup, hwAsPortStateChangeToDownNotify=hwAsPortStateChangeToDownNotify, hwTplmCompliances=hwTplmCompliances, hwUniAsBaseThresholdLowCritical=hwUniAsBaseThresholdLowCritical, hwUniAsBaseThresholdEntValue=hwUniAsBaseThresholdEntValue, hwUniAsBaseRelativeResource=hwUniAsBaseRelativeResource, hwTopomngObjectsGroup=hwTopomngObjectsGroup, hwAsEntry=hwAsEntry, hwAsVersionNotMatchNotify=hwAsVersionNotMatchNotify, hwVermngAsTypeCfgInfoRowStatus=hwVermngAsTypeCfgInfoRowStatus, hwMbrCompliance=hwMbrCompliance, hwAsmngTrapAsIfAdminStatus=hwAsmngTrapAsIfAdminStatus, hwUniMngEnable=hwUniMngEnable, hwVermngUpgradeInfoEntry=hwVermngUpgradeInfoEntry, hwAsEntityStateEntry=hwAsEntityStateEntry, hwAsEntityPhysicalSoftwareRev=hwAsEntityPhysicalSoftwareRev, hwTplmConfigManagementTable=hwTplmConfigManagementTable, hwAsComboPortTypeChangeNotify=hwAsComboPortTypeChangeNotify, hwAsBoardAddNotify=hwAsBoardAddNotify, hwAsMacWhitelistTable=hwAsMacWhitelistTable, hwMbrFabricPortGroup=hwMbrFabricPortGroup, hwAsmngGlobalObjects=hwAsmngGlobalObjects, hwAsIfAdminStatus=hwAsIfAdminStatus, hwUniBaseTrapsGroup=hwUniBaseTrapsGroup, hwTplmASGroupEntry=hwTplmASGroupEntry, hwUniMbrIllegalFabricConfig=hwUniMbrIllegalFabricConfig, hwAsIfInMulticastPkts=hwAsIfInMulticastPkts, hwTplmPortGoup=hwTplmPortGoup, hwVermngUpgradeInfoAsUpgradeState=hwVermngUpgradeInfoAsUpgradeState, hwUniMbrLinkStatTrapLocalPortName=hwUniMbrLinkStatTrapLocalPortName, hwVermngTrap=hwVermngTrap, hwTplmTrapsGroup=hwTplmTrapsGroup, hwAsIpAddress=hwAsIpAddress, hwASFanRemove=hwASFanRemove, hwUniAsBaseEntityTrapEntType=hwUniAsBaseEntityTrapEntType, hwUniAsBaseEntityTrapEntFaultID=hwUniAsBaseEntityTrapEntFaultID, hwAsmngTrapAsOnlineFailReasonDesc=hwAsmngTrapAsOnlineFailReasonDesc, hwVermngUpgradeInfoAsUpgradeType=hwVermngUpgradeInfoAsUpgradeType, hwUnimngMIB=hwUnimngMIB, hwAsSlotTable=hwAsSlotTable, hwAsmngTrapAsModel=hwAsmngTrapAsModel, hwAsmngObjects=hwAsmngObjects, hwVermngTrapObjects=hwVermngTrapObjects, hwAsmngTrapAsIfType=hwAsmngTrapAsIfType, hwAsEntityAliasMappingTable=hwAsEntityAliasMappingTable, hwASCommunicateError=hwASCommunicateError, hwVermngGlobalObjects=hwVermngGlobalObjects, hwAsIfPhysAddress=hwAsIfPhysAddress, hwAsmngTrapAsOnlineFailReasonId=hwAsmngTrapAsOnlineFailReasonId, hwAsEntityStandbyStatus=hwAsEntityStandbyStatus, hwTplmPortGroupGoup=hwTplmPortGroupGoup, hwUniMbrTraps=hwUniMbrTraps, hwAsEntryAliasMappingIdentifier=hwAsEntryAliasMappingIdentifier, hwAsIfInUcastPkts=hwAsIfInUcastPkts, hwUniMbrTrapConnectErrorReason=hwUniMbrTrapConnectErrorReason, hwTplmTrapFailedReason=hwTplmTrapFailedReason, hwAsmngSlotGroup=hwAsmngSlotGroup, hwTopomngTopoEntry=hwTopomngTopoEntry, hwTplmPortGroupEntry=hwTplmPortGroupEntry, hwAsEntityAdminStatus=hwAsEntityAdminStatus, hwTplmConfigManagementASId=hwTplmConfigManagementASId, hwAsEntityPhysicalEntry=hwAsEntityPhysicalEntry, hwAsHardwareVersion=hwAsHardwareVersion, hwVermngObjectsGroup=hwVermngObjectsGroup, hwAsmngTrapAsIfIndex=hwAsmngTrapAsIfIndex, hwTplmPortGroupUserAccessProfile=hwTplmPortGroupUserAccessProfile, hwAsmngTrapAsFaultTimes=hwAsmngTrapAsFaultTimes, hwTplmPortEntry=hwTplmPortEntry, hwAsmngEntityPhysicalGroup=hwAsmngEntityPhysicalGroup, hwAsAddOffLineNotify=hwAsAddOffLineNotify, hwAsCpuUseage=hwAsCpuUseage, hwAsMacBlacklistEntry=hwAsMacBlacklistEntry, hwASFanTrap=hwASFanTrap, hwTplmPortPortGroupName=hwTplmPortPortGroupName, hwAsEntityAliasMappingEntry=hwAsEntityAliasMappingEntry, hwUniAsBaseThresholdHighWarning=hwUniAsBaseThresholdHighWarning, hwTplmASId=hwTplmASId, hwAsIfOperStatus=hwAsIfOperStatus, hwAsmngEntityStateGroup=hwAsmngEntityStateGroup, hwTopoPeerMac=hwTopoPeerMac, hwASCPUTrap=hwASCPUTrap, hwTopomngTrapLocalMac=hwTopomngTrapLocalMac, hwAsmngTrap=hwAsmngTrap, hwTopoPeerTrunkId=hwTopoPeerTrunkId, hwAsRunState=hwAsRunState, hwAsMac=hwAsMac, hwVermngUpgradeInfoAsSysPatch=hwVermngUpgradeInfoAsSysPatch, hwASBrdTempResume=hwASBrdTempResume, hwAsmngGlobalObjectsGroup=hwAsmngGlobalObjectsGroup, hwVermngUpgradeInfoGroup=hwVermngUpgradeInfoGroup, hwAsAccessUser=hwAsAccessUser, hwTopoLocalPortName=hwTopoLocalPortName, hwASMemUtilizationResume=hwASMemUtilizationResume, hwTplmASAdminProfileName=hwTplmASAdminProfileName, hwAsSysmacSwitchCfgErrNotify=hwAsSysmacSwitchCfgErrNotify, hwASCPUUtilizationResume=hwASCPUUtilizationResume, hwAsIfMtu=hwAsIfMtu, hwTopoPeerDeviceIndex=hwTopoPeerDeviceIndex, hwAsSoftwareVersion=hwAsSoftwareVersion, hwASBrdTempAlarm=hwASBrdTempAlarm, hwAsmngTrapAsIndex=hwAsmngTrapAsIndex, hwAsEntityPhysicalVendorType=hwAsEntityPhysicalVendorType, hwAsmngTrapAsIfOperStatus=hwAsmngTrapAsIfOperStatus, hwASPowerInvalid=hwASPowerInvalid, hwAsGatewayIp=hwAsGatewayIp, hwUniMbrTrapAsIndex=hwUniMbrTrapAsIndex, hwTopoLocalRole=hwTopoLocalRole, hwAsIfHighSpeed=hwAsIfHighSpeed, hwTopomngTrapObjectsGroup=hwTopomngTrapObjectsGroup, hwAsmngTrapAddedAsSlotType=hwAsmngTrapAddedAsSlotType, hwVermngUpgradeInfoAsDownloadSoftware=hwVermngUpgradeInfoAsDownloadSoftware, hwTplmPortGroupType=hwTplmPortGroupType, hwUniAsBaseEntPhysicalContainedIn=hwUniAsBaseEntPhysicalContainedIn, hwTopomngTrapsGroup=hwTopomngTrapsGroup, hwAsIfOutUcastPkts=hwAsIfOutUcastPkts, hwTopomngTrap=hwTopomngTrap, hwTplmConfigCommitAll=hwTplmConfigCommitAll, hwAsmngTrapAsVersion=hwAsmngTrapAsVersion, hwTplmConfigManagementEntry=hwTplmConfigManagementEntry, hwTplmASRowStatus=hwTplmASRowStatus, hwTopomngTrapLocalPortName=hwTopomngTrapLocalPortName, hwTplmCmdExecuteSuccessfulNotify=hwTplmCmdExecuteSuccessfulNotify, hwUniAsBaseTrapProbableCause=hwUniAsBaseTrapProbableCause, hwAsSlotId=hwAsSlotId, hwTplmTrapASName=hwTplmTrapASName, hwAsIfXEntry=hwAsIfXEntry, hwTopomngTrapPeerPortName=hwTopomngTrapPeerPortName, hwTopomngLinkNormal=hwTopomngLinkNormal, hwASMemoryTrap=hwASMemoryTrap, hwUniAsBaseTrapSeverity=hwUniAsBaseTrapSeverity, hwTplmConfigManagementGoup=hwTplmConfigManagementGoup, hwTopomngTraps=hwTopomngTraps, hwVermngAsTypeCfgInfoPatch=hwVermngAsTypeCfgInfoPatch, hwUniAsBaseTrapEventType=hwUniAsBaseTrapEventType, hwAsMacWhitelistRowStatus=hwAsMacWhitelistRowStatus, hwTplmPortGroupIndex=hwTplmPortGroupIndex, hwAsEntityPhysicalParentRelPos=hwAsEntityPhysicalParentRelPos, AlarmStatus=AlarmStatus, hwMbrMngFabricPortDescription=hwMbrMngFabricPortDescription, hwAsmngTrapAsPermitNum=hwAsmngTrapAsPermitNum, hwAsEntityStateTable=hwAsEntityStateTable, hwAsVpnInstance=hwAsVpnInstance) mibBuilder.exportSymbols("HUAWEI-UNIMNG-MIB", hwTplmASGroupIndex=hwTplmASGroupIndex, hwMbrTrapsGroup=hwMbrTrapsGroup, hwTplmASGroupName=hwTplmASGroupName, hwTopomngTopoTable=hwTopomngTopoTable, hwASPowerTrap=hwASPowerTrap, hwAsEntityPhysicalMfgName=hwAsEntityPhysicalMfgName, hwVermngObjects=hwVermngObjects, hwTplmTrapObjectsGroup=hwTplmTrapObjectsGroup, hwAsStackEnable=hwAsStackEnable, hwTplmASGoup=hwTplmASGoup, hwMbrMngFabricPortDirection=hwMbrMngFabricPortDirection, hwUnimngObjects=hwUnimngObjects, hwASBoardFailResume=hwASBoardFailResume, hwVermngUpgradeInfoAsName=hwVermngUpgradeInfoAsName, hwUniAsBaseEntPhysicalName=hwUniAsBaseEntPhysicalName, hwAsOnlineTime=hwAsOnlineTime, hwAsmngTrapObjects=hwAsmngTrapObjects, hwUniBaseTrapCompliances=hwUniBaseTrapCompliances, hwVermngAsTypeCfgInfoAsTypeName=hwVermngAsTypeCfgInfoAsTypeName, hwAsEntryAliasLogicalIndexOrZero=hwAsEntryAliasLogicalIndexOrZero, hwAsSysMac=hwAsSysMac, hwAsmngTrapParentVersion=hwAsmngTrapParentVersion, hwAsInBlacklistNotify=hwAsInBlacklistNotify, hwAsPortStateChangeToUpNotify=hwAsPortStateChangeToUpNotify, hwAsMacWhitelistEntry=hwAsMacWhitelistEntry, hwUniAsBaseThresholdType=hwUniAsBaseThresholdType, hwAsEntityPhysicalFirmwareRev=hwAsEntityPhysicalFirmwareRev, hwTplmPortGroupName=hwTplmPortGroupName, hwASCommunicateTrap=hwASCommunicateTrap, hwAsmngTrapAddedAsMac=hwAsmngTrapAddedAsMac, hwTopomngCompliance=hwTopomngCompliance, hwAsNormalNotify=hwAsNormalNotify, hwVermngAsTypeCfgInfoSystemSoftwareVer=hwVermngAsTypeCfgInfoSystemSoftwareVer, hwASMemUtilizationRising=hwASMemUtilizationRising, hwASMadConflictDetect=hwASMadConflictDetect, hwAsmngCompliance=hwAsmngCompliance, hwUniAsBaseThresholdHwBaseThresholdType=hwUniAsBaseThresholdHwBaseThresholdType, hwUnimngModeNotMatchNotify=hwUnimngModeNotMatchNotify, hwAsEntityPhysicalTable=hwAsEntityPhysicalTable, hwAsEntityAlarmLight=hwAsEntityAlarmLight, hwVermngUpgradeInfoAsFilePhase=hwVermngUpgradeInfoAsFilePhase, hwTplmASASGroupName=hwTplmASASGroupName, hwAsSysName=hwAsSysName, hwVermngUpgradeFail=hwVermngUpgradeFail, hwUniAsBaseThresholdUnit=hwUniAsBaseThresholdUnit, hwAsOnlineFailNotify=hwAsOnlineFailNotify, hwMbrTrapObjectsGroup=hwMbrTrapObjectsGroup, hwTplmPortGroupNetworkEnhancedProfile=hwTplmPortGroupNetworkEnhancedProfile, hwTplmConfigManagement=hwTplmConfigManagement, hwTplmASGroupTable=hwTplmASGroupTable, hwAsmngTraps=hwAsmngTraps, hwUniAsBaseTrapObjects=hwUniAsBaseTrapObjects, hwUniAsBaseThresholdValue=hwUniAsBaseThresholdValue, hwUniMbrLinkStatTrapChangeType=hwUniMbrLinkStatTrapChangeType, hwTplmPortTable=hwTplmPortTable, hwTplmASGroupGoup=hwTplmASGroupGoup, hwASCPUUtilizationRising=hwASCPUUtilizationRising, hwTopomngTrapPeerMac=hwTopomngTrapPeerMac, hwAsmngTrapObjectsGroup=hwAsmngTrapObjectsGroup, hwAsmngTrapAsSysName=hwAsmngTrapAsSysName, hwAsmngMacBlacklistGroup=hwAsmngMacBlacklistGroup, hwAsIfType=hwAsIfType, hwAsmngTrapAsMac=hwAsmngTrapAsMac, hwUniAsBaseEntPhysicalIndex=hwUniAsBaseEntPhysicalIndex, hwAsEntityPhysicalClass=hwAsEntityPhysicalClass, hwUniAsBaseAsName=hwUniAsBaseAsName, hwAsModelNotMatchNotify=hwAsModelNotMatchNotify, hwAsEntityPhysicalSerialNum=hwAsEntityPhysicalSerialNum, hwVermngUpgradeInfoAsErrorDescr=hwVermngUpgradeInfoAsErrorDescr, hwTopomngLinkAbnormal=hwTopomngLinkAbnormal, hwAsmngTrapAsIfName=hwAsmngTrapAsIfName, hwUniMbrASDiscoverAttack=hwUniMbrASDiscoverAttack, hwAsIfHCInOctets=hwAsIfHCInOctets, hwVermngTraps=hwVermngTraps, hwASMadConflictResume=hwASMadConflictResume, hwTopoLocalMac=hwTopoLocalMac, hwAsmngCompliances=hwAsmngCompliances, hwVermngAsTypeCfgInfoGroup=hwVermngAsTypeCfgInfoGroup, hwVermngUpgradeInfoAsDownloadPatch=hwVermngUpgradeInfoAsDownloadPatch, hwAsmngTrapAsSlotId=hwAsmngTrapAsSlotId, hwTopoPeerPortName=hwTopoPeerPortName, hwAsmngEntityAliasMappingGroup=hwAsmngEntityAliasMappingGroup, hwTplmTrapObjects=hwTplmTrapObjects, hwVermngUpgradeInfoAsSysSoftware=hwVermngUpgradeInfoAsSysSoftware, hwASOpticalTrap=hwASOpticalTrap, hwMbrMngFabricPortIndirectFlag=hwMbrMngFabricPortIndirectFlag, hwAsIfEntry=hwAsIfEntry, hwUniMbrTrap=hwUniMbrTrap, hwTopomngTrapLocalTrunkId=hwTopomngTrapLocalTrunkId, hwAsMemoryUseage=hwAsMemoryUseage, hwAsModel=hwAsModel, hwUniAsBaseEntityTrapCommunicateType=hwUniAsBaseEntityTrapCommunicateType, hwUniMbrFabricPortMemberDelete=hwUniMbrFabricPortMemberDelete, hwAsSn=hwAsSn, hwTplmASTable=hwTplmASTable, hwAsIfXTable=hwAsIfXTable, hwASBoardTrap=hwASBoardTrap, hwAsmngObjectsGroup=hwAsmngObjectsGroup, hwAsBoardPlugOutNotify=hwAsBoardPlugOutNotify, hwAsmngAsIfXGroup=hwAsmngAsIfXGroup, hwASFanInvalidResume=hwASFanInvalidResume, hwAsTable=hwAsTable, hwMbrMngFabricPortMemberIfName=hwMbrMngFabricPortMemberIfName, hwASFanInvalid=hwASFanInvalid, hwVermngUpgradeInfoAsErrorCode=hwVermngUpgradeInfoAsErrorCode, hwUniMbrParaSynFailReason=hwUniMbrParaSynFailReason, hwAsmngAsGroup=hwAsmngAsGroup, hwAsAuthMode=hwAsAuthMode, hwAsSlotModelNotMatchNotify=hwAsSlotModelNotMatchNotify, hwTplmASGroupRowStatus=hwTplmASGroupRowStatus, hwTplmConfigManagementCommit=hwTplmConfigManagementCommit, hwVermngAsTypeCfgInfoEntry=hwVermngAsTypeCfgInfoEntry, hwAsBoardDeleteNotify=hwAsBoardDeleteNotify, hwAsIfIndex=hwAsIfIndex, hwAsSlotEntry=hwAsSlotEntry, hwMbrMngFabricPortTable=hwMbrMngFabricPortTable, hwASBoardFail=hwASBoardFail, hwUniAsBaseAsId=hwUniAsBaseAsId, hwASMadTrap=hwASMadTrap)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (time_ticks, ip_address, integer32, counter32, unsigned32, gauge32, object_identity, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, mib_identifier, iso, module_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'IpAddress', 'Integer32', 'Counter32', 'Unsigned32', 'Gauge32', 'ObjectIdentity', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'MibIdentifier', 'iso', 'ModuleIdentity', 'NotificationType') (display_string, mac_address, row_status, autonomous_type, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'RowStatus', 'AutonomousType', 'TextualConvention') hw_unimng_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327)) hwUnimngMIB.setRevisions(('2015-07-09 14:07', '2015-01-09 14:07', '2014-11-18 15:30', '2014-10-29 16:57', '2014-10-23 15:30', '2014-09-11 15:30', '2014-08-19 15:30', '2014-07-10 12:50', '2014-03-03 20:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwUnimngMIB.setRevisionsDescriptions(('Add new node hwAsVpnInstance ', 'Add new trap node hwTplmDirectCmdRecoverFail LSWCCB-9570', 'Modify node description LSWV2R7-9213 at 2014-11-18', 'Modify node description LSWCCB-8222 at 2014-10-29', 'Modify as entity trap at 2014-10-23', 'Add new trap node at 2014-9-11', 'Modify node description LSWCCB-6116 LSWCCB-6553 LSWCCB-6908 at 2014-8-19', 'Add trap node hwTplmCmdExecuteSuccessfulNotify at 2014-7-10', 'Create mib.')) if mibBuilder.loadTexts: hwUnimngMIB.setLastUpdated('201507091407Z') if mibBuilder.loadTexts: hwUnimngMIB.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwUnimngMIB.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com") if mibBuilder.loadTexts: hwUnimngMIB.setDescription('This MIB contains private managed object definitions for Unified Man agement Framework.') class Alarmstatus(TextualConvention, Bits): reference = "ITU Recommendation X.731, 'Information Technology - Open Systems Interconnection - System Management: State Management Function', 1992" description = 'Represents the possible values of alarm status. When no bits of this attribute are set, then none of the status conditions described below are present. When the value of under repair is set, the resource is currently being repaired. When the value of critical is set, one or more critical alarms are active against the resource. When the value of major is set, one or more major alarms are active against the resource. When the value of minor is set, one or more minor alarms are active against the resource. When the value of warning is set, one or more warning alarms are active against the resource. When the value of indeterminate is set, one or more alarms of indeterminate severity are active against the resource. When the value of alarm outstanding is set, one or more alarms is active against the resource. The fault may or may not be disabling. ' status = 'current' named_values = named_values(('notSupported', 0), ('underRepair', 1), ('critical', 2), ('major', 3), ('minor', 4), ('alarmOutstanding', 5), ('warning', 6), ('indeterminate', 7)) hw_unimng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1)) hw_uni_mng_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwUniMngEnable.setStatus('current') if mibBuilder.loadTexts: hwUniMngEnable.setDescription('Unimng enable status.') hw_asmng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2)) hw_as_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1)) if mibBuilder.loadTexts: hwAsTable.setStatus('current') if mibBuilder.loadTexts: hwAsTable.setDescription('AS table entry. ') hw_as_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex')) if mibBuilder.loadTexts: hwAsEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntry.setDescription('The entry of AS table.') hw_as_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIndex.setDescription('AS index.') hw_as_hardware_version = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsHardwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsHardwareVersion.setDescription('The hardware version of AS.') hw_as_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsIpAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIpAddress.setDescription('The ip address of AS.') hw_as_ip_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 4), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsIpNetMask.setStatus('current') if mibBuilder.loadTexts: hwAsIpNetMask.setDescription('The ip net mask of AS.') hw_as_access_user = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 5), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsAccessUser.setStatus('current') if mibBuilder.loadTexts: hwAsAccessUser.setDescription('The access user number of AS.') hw_as_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 6), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsMac.setDescription('The MAC address of AS.') hw_as_sn = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 7), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsSn.setDescription('The SN of AS.') hw_as_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsSysName.setDescription('The Name of AS.') hw_as_run_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('idle', 1), ('versionMismatch', 2), ('fault', 3), ('normal', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsRunState.setStatus('current') if mibBuilder.loadTexts: hwAsRunState.setDescription('The run state of AS.') hw_as_software_version = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSoftwareVersion.setStatus('current') if mibBuilder.loadTexts: hwAsSoftwareVersion.setDescription('The software version of AS.') hw_as_model = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(1, 23))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsModel.setDescription('The model of AS. ') hw_as_dns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 12), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsDns.setStatus('current') if mibBuilder.loadTexts: hwAsDns.setDescription('The DNS of AS.') hw_as_online_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 13), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsOnlineTime.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineTime.setDescription('The online time of AS.') hw_as_cpu_useage = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 14), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsCpuUseage.setStatus('current') if mibBuilder.loadTexts: hwAsCpuUseage.setDescription('The cpu usage of AS.') hw_as_memory_useage = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 15), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMemoryUseage.setStatus('current') if mibBuilder.loadTexts: hwAsMemoryUseage.setDescription('The memory usage of AS.') hw_as_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 16), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSysMac.setStatus('current') if mibBuilder.loadTexts: hwAsSysMac.setDescription('The system MAC address of AS.') hw_as_stack_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsStackEnable.setStatus('current') if mibBuilder.loadTexts: hwAsStackEnable.setDescription('Whether AS is stack enable or disable.') hw_as_gateway_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 18), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsGatewayIp.setStatus('current') if mibBuilder.loadTexts: hwAsGatewayIp.setDescription("The gateway's IP address of AS.") hw_as_vpn_instance = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 19), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsVpnInstance.setStatus('current') if mibBuilder.loadTexts: hwAsVpnInstance.setDescription('The VPN instance of AS.') hw_as_rowstatus = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 1, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsRowstatus.setStatus('current') if mibBuilder.loadTexts: hwAsRowstatus.setDescription('The RowStatus of this table.') hw_as_if_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2)) if mibBuilder.loadTexts: hwAsIfTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfTable.setDescription('AS interface table entry.') hw_as_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if mibBuilder.loadTexts: hwAsIfEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfEntry.setDescription('The entry of AS If table.') hw_as_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsIfIndex.setDescription('The interface index of AS.') hw_as_if_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfDescr.setStatus('current') if mibBuilder.loadTexts: hwAsIfDescr.setDescription('The interface description of AS.') hw_as_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsIfType.setDescription('The interface type of AS.') hw_as_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfMtu.setStatus('current') if mibBuilder.loadTexts: hwAsIfMtu.setDescription('The interface MTU of AS.') hw_as_if_speed = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfSpeed.setDescription("An estimate of the as interface's current bandwidth in bits per second.") hw_as_if_phys_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 6), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfPhysAddress.setStatus('current') if mibBuilder.loadTexts: hwAsIfPhysAddress.setDescription('The physical address of AS interface.') hw_as_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfAdminStatus.setDescription('The administration stauts of AS interface.') hw_as_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsIfOperStatus.setDescription('The operation stauts of AS interface.') hw_as_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInUcastPkts.setDescription('The number of unicast packets received on the interface of AS. ') hw_as_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutUcastPkts.setDescription('The number of unicast packets sent on the interface of AS. ') hw_as_if_x_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3)) if mibBuilder.loadTexts: hwAsIfXTable.setStatus('current') if mibBuilder.loadTexts: hwAsIfXTable.setDescription('The extent table of AS.') hw_as_if_x_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if mibBuilder.loadTexts: hwAsIfXEntry.setStatus('current') if mibBuilder.loadTexts: hwAsIfXEntry.setDescription('The entry of table.') hw_as_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsIfName.setDescription('The name of AS interface.') hw_as_if_link_up_down_trap_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setStatus('current') if mibBuilder.loadTexts: hwAsIfLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for this as interface.') hw_as_if_high_speed = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHighSpeed.setStatus('current') if mibBuilder.loadTexts: hwAsIfHighSpeed.setDescription("An estimate of the as interface's current bandwidth in units of 1,000,000 bits per second.") hw_as_if_alias = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 4), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsIfAlias.setStatus('current') if mibBuilder.loadTexts: hwAsIfAlias.setDescription("This object is an 'alias' name for the AS's interface as specified by a network manager, and provides a non-volatile 'handle' for the interface.") hw_as_if_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfAsId.setStatus('current') if mibBuilder.loadTexts: hwAsIfAsId.setDescription('The ID of AS.') hw_as_if_hc_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCOutOctets.setDescription('The total number of octets sent on the interface of AS.') hw_as_if_in_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInMulticastPkts.setDescription('The number of multicast packets received on the interface of AS. ') hw_as_if_in_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfInBroadcastPkts.setDescription('The number of broadcast packets received on the interface of AS. ') hw_as_if_out_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutMulticastPkts.setDescription('The number of multicast packets sent on the interface of AS. ') hw_as_if_out_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: hwAsIfOutBroadcastPkts.setDescription('The number of broadcast packets sent on the interface of AS. ') hw_as_if_hc_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 3, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsIfHCInOctets.setStatus('current') if mibBuilder.loadTexts: hwAsIfHCInOctets.setDescription('The total number of octets received on the interface of AS.') hw_as_slot_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4)) if mibBuilder.loadTexts: hwAsSlotTable.setStatus('current') if mibBuilder.loadTexts: hwAsSlotTable.setDescription('The slot table of AS.') hw_as_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsSlotId')) if mibBuilder.loadTexts: hwAsSlotEntry.setStatus('current') if mibBuilder.loadTexts: hwAsSlotEntry.setDescription('The entry of table.') hw_as_slot_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))) if mibBuilder.loadTexts: hwAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsSlotId.setDescription('The ID of AS slot.') hw_as_slot_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSlotState.setStatus('current') if mibBuilder.loadTexts: hwAsSlotState.setDescription('The state of AS slot.') hw_as_slot_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 4, 1, 20), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsSlotRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsSlotRowStatus.setDescription('The RowStatus of this table.') hw_asmng_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5)) hw_as_auto_replace_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setStatus('current') if mibBuilder.loadTexts: hwAsAutoReplaceEnable.setDescription('The enable status of auto replace.') hw_as_auth_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('auth', 1), ('noAuth', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwAsAuthMode.setStatus('current') if mibBuilder.loadTexts: hwAsAuthMode.setDescription('The authentication mode of AS.') hw_as_mac_whitelist_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6)) if mibBuilder.loadTexts: hwAsMacWhitelistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistTable.setDescription('The table of whitelist.') hw_as_mac_whitelist_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsMacWhitelistMacAddr')) if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistEntry.setDescription('The entry of table.') hw_as_mac_whitelist_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 1), mac_address()) if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistMacAddr.setDescription('The MAC address of white list.') hw_as_mac_whitelist_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 6, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacWhitelistRowStatus.setDescription('The RowStatus of table.') hw_as_mac_blacklist_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7)) if mibBuilder.loadTexts: hwAsMacBlacklistTable.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistTable.setDescription('The table of blacklist.') hw_as_mac_blacklist_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsMacBlacklistMacAddr')) if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistEntry.setDescription('The entry of table.') hw_as_mac_blacklist_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 1), mac_address()) if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistMacAddr.setDescription('The MAC address of black list.') hw_as_mac_blacklist_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 7, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setStatus('current') if mibBuilder.loadTexts: hwAsMacBlacklistRowStatus.setDescription('The RowStatus of table.') hw_as_entity_physical_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8)) if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalTable.setDescription('The physical table of AS.') hw_as_entity_physical_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex')) if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalEntry.setDescription('The entry of table.') hw_as_entity_physical_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 1), integer32()) if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalIndex.setDescription('The physical index of AS.') hw_as_entity_physical_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 2), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalDescr.setDescription('A textual description of physical entity. ') hw_as_entity_physical_vendor_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 3), autonomous_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalVendorType.setDescription('An indication of the vendor-specific hardware type of the physical entity. ') hw_as_entity_physical_contained_in = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalContainedIn.setDescription("The value of hwAsEntityPhysicalIndex for the physical entity which 'contains' this physical entity. ") hw_as_entity_physical_class = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('chassis', 3), ('backplane', 4), ('container', 5), ('powerSupply', 6), ('fan', 7), ('sensor', 8), ('module', 9), ('port', 10), ('stack', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalClass.setDescription('An indication of the general hardware type of the physical entity.') hw_as_entity_physical_parent_rel_pos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalParentRelPos.setDescription("An indication of the relative position of this 'child' component among all its 'sibling' components.") hw_as_entity_physical_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 7), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalName.setDescription('The textual name of the physical entity. ') hw_as_entity_physical_hardware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 8), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalHardwareRev.setDescription('The vendor-specific hardware revision string for the physical entity. ') hw_as_entity_physical_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 9), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalFirmwareRev.setDescription('The vendor-specific firmware revision string for the physical entity.') hw_as_entity_physical_software_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 10), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSoftwareRev.setDescription('The vendor-specific software revision string for the physical entity.') hw_as_entity_physical_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 11), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalSerialNum.setDescription('The vendor-specific serial number string for the physical entity.') hw_as_entity_physical_mfg_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 8, 1, 12), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPhysicalMfgName.setDescription('The name of the manufacturer of this physical component.') hw_as_entity_state_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9)) if mibBuilder.loadTexts: hwAsEntityStateTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateTable.setDescription('The entity state table.') hw_as_entity_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex')) if mibBuilder.loadTexts: hwAsEntityStateEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStateEntry.setDescription('The entry of table.') hw_as_entity_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 11, 12, 13))).clone(namedValues=named_values(('notSupported', 1), ('locked', 2), ('shuttingDown', 3), ('unlocked', 4), ('up', 11), ('down', 12), ('loopback', 13)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAdminStatus.setDescription('The administrative state for this object.') hw_as_entity_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 11, 12, 13, 15, 16, 17))).clone(namedValues=named_values(('notSupported', 1), ('disabled', 2), ('enabled', 3), ('offline', 4), ('up', 11), ('down', 12), ('connect', 13), ('protocolUp', 15), ('linkUp', 16), ('linkDown', 17)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityOperStatus.setDescription('The operational state for this object.') hw_as_entity_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notSupported', 1), ('hotStandby', 2), ('coldStandby', 3), ('providingService', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setStatus('current') if mibBuilder.loadTexts: hwAsEntityStandbyStatus.setDescription('This object is used for monitoring standby status.') hw_as_entity_alarm_light = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 4), alarm_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAlarmLight.setDescription('The alarm status for this entity.') hw_as_entity_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('notSupported', 1), ('copper', 2), ('fiber100', 3), ('fiber1000', 4), ('fiber10000', 5), ('opticalnotExist', 6), ('optical', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntityPortType.setStatus('current') if mibBuilder.loadTexts: hwAsEntityPortType.setDescription('Indicates the type of the Ethernet interface.') hw_as_entity_alias_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10)) if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingTable.setDescription('The entity alias mapping table.') hw_as_entity_alias_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwAsIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalIndex'), (0, 'HUAWEI-UNIMNG-MIB', 'hwAsEntryAliasLogicalIndexOrZero')) if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setStatus('current') if mibBuilder.loadTexts: hwAsEntityAliasMappingEntry.setDescription('The entry of table.') hw_as_entry_alias_logical_index_or_zero = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 1), integer32()) if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasLogicalIndexOrZero.setDescription('The value of this object identifies the logical entity.') hw_as_entry_alias_mapping_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 2, 10, 1, 2), autonomous_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setStatus('current') if mibBuilder.loadTexts: hwAsEntryAliasMappingIdentifier.setDescription('The value of this object identifies a particular conceptual row associated with the indicated entPhysicalIndex and logical index pair.') hw_topomng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3)) hw_topomng_explore_time = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 1440)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTopomngExploreTime.setStatus('current') if mibBuilder.loadTexts: hwTopomngExploreTime.setDescription('Topology collect time in minutes.') hw_topomng_last_collect_duration = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setStatus('current') if mibBuilder.loadTexts: hwTopomngLastCollectDuration.setDescription('Duration of the latest topology collection, measured in milliseconds.') hw_topomng_topo_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11)) if mibBuilder.loadTexts: hwTopomngTopoTable.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoTable.setDescription('The topology table.') hw_topomng_topo_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTopoLocalHop'), (0, 'HUAWEI-UNIMNG-MIB', 'hwTopoLocalMac'), (0, 'HUAWEI-UNIMNG-MIB', 'hwTopoPeerDeviceIndex')) if mibBuilder.loadTexts: hwTopomngTopoEntry.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoEntry.setDescription('The entry of topology table.') hw_topo_local_hop = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))) if mibBuilder.loadTexts: hwTopoLocalHop.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalHop.setDescription('The topoloy hop.') hw_topo_local_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 2), mac_address()) if mibBuilder.loadTexts: hwTopoLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalMac.setDescription('The local device ID, defined by 6 bytes of MAC.') hw_topo_peer_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerDeviceIndex.setDescription('The index of neighbor device.') hw_topo_peer_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerMac.setDescription('The neighbor device ID, defined by 6 bytes of MAC.') hw_topo_local_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalPortName.setDescription('The port name of local device, same as ifName (defined in IETF RFC 2863).') hw_topo_peer_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerPortName.setDescription('The port name of neighbor device, same as ifName (defined in IETF RFC 2863).') hw_topo_local_trunk_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalTrunkId.setDescription('The trunk ID of local port, 65535 identify the local port is not in trunk.') hw_topo_peer_trunk_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerTrunkId.setDescription('The trunk ID of neighbor port, 65535 identify the neighbor port is not in trunk.') hw_topo_local_role = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('roleUC', 1), ('roleAS', 2), ('roleAP', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoLocalRole.setStatus('current') if mibBuilder.loadTexts: hwTopoLocalRole.setDescription('The role of local topology node.') hw_topo_peer_role = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 3, 11, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('roleUC', 1), ('roleAS', 2), ('roleAP', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwTopoPeerRole.setStatus('current') if mibBuilder.loadTexts: hwTopoPeerRole.setDescription('The role of neighbor topology node.') hw_mbrmng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4)) hw_mbr_mng_fabric_port_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2)) if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortTable.setDescription('The table of fabric port information.') hw_mbr_mng_fabric_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwMbrMngASId'), (0, 'HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortId')) if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortEntry.setDescription('The entry of the table of fabric port information.') hw_mbr_mng_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: hwMbrMngASId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngASId.setDescription('AS index, is used to specify thd AS. 65535 represents the parent node.') hw_mbr_mng_fabric_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwMbrMngFabricPortId.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortId.setDescription('The Fabric-port index.') hw_mbr_mng_fabric_port_member_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortMemberIfName.setDescription("Interface name of the Fabric-port's member.") hw_mbr_mng_fabric_port_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('downDirection', 1), ('upDirection', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDirection.setDescription('The direction of Fabric-port.') hw_mbr_mng_fabric_port_indirect_flag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('indirect', 1), ('direct', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortIndirectFlag.setDescription('The indirect flag of Fabric-port.') hw_mbr_mng_fabric_port_description = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 4, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setStatus('current') if mibBuilder.loadTexts: hwMbrMngFabricPortDescription.setDescription('The description of Fabric-port.') hw_vermng_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5)) hw_vermng_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1)) hw_vermng_file_server_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('ftp', 1), ('sftp', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngFileServerType.setStatus('current') if mibBuilder.loadTexts: hwVermngFileServerType.setDescription('The type of file server.') hw_vermng_upgrade_info_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2)) if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoTable.setDescription('The table of AS upgrade information.') hw_vermng_upgrade_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsIndex')) if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoEntry.setDescription('The entry of the table of AS upgrade information.') hw_vermng_upgrade_info_as_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsIndex.setDescription('The ID of AS.') hw_vermng_upgrade_info_as_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsName.setDescription('The name of AS.') hw_vermng_upgrade_info_as_sys_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftware.setDescription('The filename of running system software of AS.') hw_vermng_upgrade_info_as_sys_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysSoftwareVer.setDescription('The version of running system software of AS.') hw_vermng_upgrade_info_as_sys_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsSysPatch.setDescription('The filename of running patch of AS.') hw_vermng_upgrade_info_as_download_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftware.setDescription('The filename of system software which will be downloaded to AS.') hw_vermng_upgrade_info_as_download_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadSoftwareVer.setDescription('The version of system software which will be downloaded to AS..') hw_vermng_upgrade_info_as_download_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsDownloadPatch.setDescription('The filename of patch which will be downloaded to AS.') hw_vermng_upgrade_info_as_upgrade_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('noUpgrade', 1), ('upgrading', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeState.setDescription('The upgrade status of AS.') hw_vermng_upgrade_info_as_upgrade_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('verSync', 1), ('manual', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeType.setDescription('The type of upgrade.') hw_vermng_upgrade_info_as_file_phase = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('systemSoftware', 1), ('patch', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsFilePhase.setDescription('The file type which is in downloading.') hw_vermng_upgrade_info_as_upgrade_phase = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 255))).clone(namedValues=named_values(('downloadFile', 1), ('wait', 2), ('activateFile', 3), ('reboot', 4), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradePhase.setDescription('The state in downloading file.') hw_vermng_upgrade_info_as_upgrade_result = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('successfully', 1), ('failed', 2), ('none', 255)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsUpgradeResult.setDescription('The result of upgrade.') hw_vermng_upgrade_info_as_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorCode.setDescription('The error code in upgrading.') hw_vermng_upgrade_info_as_error_descr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 2, 1, 15), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoAsErrorDescr.setDescription('The eroor description in upgrading.') hw_vermng_as_type_cfg_info_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3)) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoTable.setDescription('The table of configuration with AS type.') hw_vermng_as_type_cfg_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoAsTypeIndex')) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoEntry.setDescription('The entry of AS type configuration table.') hw_vermng_as_type_cfg_info_as_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeIndex.setDescription('The index of AS type.') hw_vermng_as_type_cfg_info_as_type_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 2), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoAsTypeName.setDescription('The name of AS type.') hw_vermng_as_type_cfg_info_system_software = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 3), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftware.setDescription('The filename of system software configured.') hw_vermng_as_type_cfg_info_system_software_ver = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoSystemSoftwareVer.setDescription('The version of system software.') hw_vermng_as_type_cfg_info_patch = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 5), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoPatch.setDescription('The filename of patch configured.') hw_vermng_as_type_cfg_info_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 5, 3, 1, 50), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoRowStatus.setDescription('The RowStatus of table.') hw_tplm_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6)) hw_tplm_as_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11)) if mibBuilder.loadTexts: hwTplmASGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupTable.setDescription('The table of template management with AS group.') hw_tplm_as_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmASGroupIndex')) if mibBuilder.loadTexts: hwTplmASGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupEntry.setDescription('The entry of AS group table.') hw_tplm_as_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: hwTplmASGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupIndex.setDescription('The index of AS group table.') hw_tplm_as_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupName.setDescription('The name of AS group.') hw_tplm_as_admin_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setStatus('current') if mibBuilder.loadTexts: hwTplmASAdminProfileName.setDescription("The name of AS group's admin profile.") hw_tplm_as_group_profile_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupProfileStatus.setDescription("The status of AS group's admin profile.") hw_tplm_as_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 11, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupRowStatus.setDescription('The row status of as group table.') hw_tplm_as_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12)) if mibBuilder.loadTexts: hwTplmASTable.setStatus('current') if mibBuilder.loadTexts: hwTplmASTable.setDescription('The table of template management with AS.') hw_tplm_as_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmASId')) if mibBuilder.loadTexts: hwTplmASEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmASEntry.setDescription('The entry of AS table.') hw_tplm_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwTplmASId.setStatus('current') if mibBuilder.loadTexts: hwTplmASId.setDescription('AS index.') hw_tplm_asas_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASASGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmASASGroupName.setDescription('The name of AS group which the AS belongs to.') hw_tplm_as_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 12, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmASRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmASRowStatus.setDescription('The row status of as table.') hw_tplm_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13)) if mibBuilder.loadTexts: hwTplmPortGroupTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupTable.setDescription('The table of template management with port group.') hw_tplm_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupIndex')) if mibBuilder.loadTexts: hwTplmPortGroupEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupEntry.setDescription('The entry of port group table.') hw_tplm_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 257))) if mibBuilder.loadTexts: hwTplmPortGroupIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupIndex.setDescription('The index of port group table.') hw_tplm_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupName.setDescription('The name of port group.') hw_tplm_port_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('service', 1), ('ap', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupType.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupType.setDescription('The type of port group.') hw_tplm_port_group_network_basic_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkBasicProfile.setDescription("The name of port group's network basic profile.") hw_tplm_port_group_network_enhanced_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupNetworkEnhancedProfile.setDescription("The name of port group's network enhanced profile.") hw_tplm_port_group_user_access_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupUserAccessProfile.setDescription("The name of port group's user access profile.") hw_tplm_port_group_profile_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupProfileStatus.setDescription("The status of port group's profile.") hw_tplm_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 13, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupRowStatus.setDescription('The row status of port group table.') hw_tplm_port_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14)) if mibBuilder.loadTexts: hwTplmPortTable.setStatus('current') if mibBuilder.loadTexts: hwTplmPortTable.setDescription("The table of template management with AS's port.") hw_tplm_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmPortIfIndex')) if mibBuilder.loadTexts: hwTplmPortEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmPortEntry.setDescription('The entry of port table.') hw_tplm_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 1), integer32()) if mibBuilder.loadTexts: hwTplmPortIfIndex.setStatus('current') if mibBuilder.loadTexts: hwTplmPortIfIndex.setDescription("The interface index of AS's port.") hw_tplm_port_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setStatus('current') if mibBuilder.loadTexts: hwTplmPortPortGroupName.setDescription("The name of port group which the AS's port belongs to.") hw_tplm_port_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 14, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTplmPortRowStatus.setStatus('current') if mibBuilder.loadTexts: hwTplmPortRowStatus.setDescription('The row status of port table.') hw_tplm_config_management = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15)) hw_tplm_config_commit_all = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('commit', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigCommitAll.setDescription('Apply configuration of template management to all ASs.') hw_tplm_config_management_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2)) if mibBuilder.loadTexts: hwTplmConfigManagementTable.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementTable.setDescription('The table of committing configuration of template management.') hw_tplm_config_management_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1)).setIndexNames((0, 'HUAWEI-UNIMNG-MIB', 'hwTplmConfigManagementASId')) if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementEntry.setDescription('The entry of committing table.') hw_tplm_config_management_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: hwTplmConfigManagementASId.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementASId.setDescription('AS index.') hw_tplm_config_management_commit = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 6, 15, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('commit', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementCommit.setDescription('Apply configuration of template management to the specified AS.') hw_unimng_notification = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31)) hw_topomng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1)) hw_topomng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1)) hw_topomng_trap_local_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalMac.setDescription('Topomng trap message local MAC, defined as the device ID.') hw_topomng_trap_local_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalPortName.setDescription('Topomng trap message local port name.') hw_topomng_trap_local_trunk_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapLocalTrunkId.setDescription('Topomng trap message local trunk ID, 65535 defines a phy port.') hw_topomng_trap_peer_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerMac.setDescription('Topomng trap message peer MAC, defined as the device ID.') hw_topomng_trap_peer_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerPortName.setDescription('Topomng trap message peer port name.') hw_topomng_trap_peer_trunk_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapPeerTrunkId.setDescription('Topomng trap message peer trunk ID, 65535 defines a phy port.') hw_topomng_trap_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTopomngTrapReason.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapReason.setDescription('Topomng trap message Reason.') hw_topomng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2)) hw_topomng_link_normal = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if mibBuilder.loadTexts: hwTopomngLinkNormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkNormal.setDescription('The notification of topology link normal.') hw_topomng_link_abnormal = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 1, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setStatus('current') if mibBuilder.loadTexts: hwTopomngLinkAbnormal.setDescription('The notification of topology link abnormal.') hw_asmng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2)) hw_asmng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1)) hw_asmng_trap_as_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIndex.setDescription('The AS index.') hw_asmng_trap_as_model = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsModel.setDescription('The model of AS.') hw_asmng_trap_as_sys_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 3), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSysName.setDescription('The name of AS.') hw_asmng_trap_as_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsMac.setDescription('The MAC address of AS.') hw_asmng_trap_as_sn = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 5), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSn.setDescription('The SN of AS.') hw_asmng_trap_as_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfIndex.setDescription('The interface index of AS.') hw_asmng_trap_as_if_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 7), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfOperStatus.setDescription('The operation stauts of AS.') hw_asmng_trap_as_fault_times = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 8), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsFaultTimes.setDescription('The fault times of AS.') hw_asmng_trap_as_if_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 9), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfAdminStatus.setDescription('AS interface adminnistrator status.') hw_asmng_trap_as_if_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 10), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfName.setDescription('The name of AS.') hw_asmng_trap_as_actuale_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 11), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsActualeType.setDescription('The actual type of AS.') hw_asmng_trap_as_version = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 12), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsVersion.setDescription('The version of AS.') hw_asmng_trap_parent_version = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 13), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentVersion.setDescription('The version of parent.') hw_asmng_trap_added_as_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 14), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsMac.setDescription('The MAC address of added AS.') hw_asmng_trap_as_slot_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 15), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsSlotId.setDescription('The slot ID of AS.') hw_asmng_trap_added_as_slot_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 16), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAddedAsSlotType.setDescription('The slot type of added AS.') hw_asmng_trap_as_permit_num = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 17), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsPermitNum.setDescription('The maxium number of permitted AS.') hw_asmng_trap_as_unimng_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 18), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsUnimngMode.setDescription('The UNI-MNG mode of AS.') hw_asmng_trap_parent_unimng_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 19), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapParentUnimngMode.setDescription('The UNI-MNG mode of parent.') hw_asmng_trap_as_if_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 20), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsIfType.setDescription('The interface type of AS.') hw_asmng_trap_as_online_fail_reason_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 21), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonId.setDescription('The reason ID of AS online failed.') hw_asmng_trap_as_online_fail_reason_desc = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 1, 22), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapAsOnlineFailReasonDesc.setDescription('The description of AS online failed.') hw_asmng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2)) hw_as_fault_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsFaultTimes')) if mibBuilder.loadTexts: hwAsFaultNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFaultNotify.setDescription('This notification occurs when AS become fault.') hw_as_normal_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsNormalNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNormalNotify.setDescription('This notification occurs when AS become normal.') hw_as_add_off_line_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsAddOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsAddOffLineNotify.setDescription('This notification occurs when added an AS offline.') hw_as_del_off_line_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsDelOffLineNotify.setStatus('current') if mibBuilder.loadTexts: hwAsDelOffLineNotify.setDescription('This notification occurs when deleted an AS offline.') hw_as_port_state_change_to_down_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus')) if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToDownNotify.setDescription('This notification occurs when port status changed to DOWN.') hw_as_port_state_change_to_up_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus')) if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setStatus('current') if mibBuilder.loadTexts: hwAsPortStateChangeToUpNotify.setDescription('This notification occurs when port status changed to UP.') hw_as_model_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsActualeType')) if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsModelNotMatchNotify.setDescription('This notification occurs when the model of AS is mismatch.') hw_as_version_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 8)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentVersion')) if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsVersionNotMatchNotify.setDescription('This notification occurs when the version of AS is mismatch.') hw_as_name_conflict_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 9)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsMac')) if mibBuilder.loadTexts: hwAsNameConflictNotify.setStatus('current') if mibBuilder.loadTexts: hwAsNameConflictNotify.setDescription('This notification occurs when the name of AS is conflicted.') hw_as_slot_model_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 10)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsSlotType')) if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotModelNotMatchNotify.setDescription('This notification occurs when the slot model of AS is mismatch.') hw_as_full_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 11)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsPermitNum')) if mibBuilder.loadTexts: hwAsFullNotify.setStatus('current') if mibBuilder.loadTexts: hwAsFullNotify.setDescription('This notification occurs when the model of a slot is different from other slots.') hw_unimng_mode_not_match_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 12)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentUnimngMode')) if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setStatus('current') if mibBuilder.loadTexts: hwUnimngModeNotMatchNotify.setDescription("This notification occurs when the UNI-MNG mode of AS is different parent's.") hw_as_board_add_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 13)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardAddNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardAddNotify.setDescription('This notification occurs when a slot is added.') hw_as_board_delete_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 14)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardDeleteNotify.setDescription('This notification occurs when a slot is deleted.') hw_as_board_plug_in_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 15)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugInNotify.setDescription('This notification occurs when a slot is plugged in.') hw_as_board_plug_out_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 16)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setStatus('current') if mibBuilder.loadTexts: hwAsBoardPlugOutNotify.setDescription('This notification occurs when a slot is pulled out.') hw_as_in_blacklist_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 17)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsInBlacklistNotify.setStatus('current') if mibBuilder.loadTexts: hwAsInBlacklistNotify.setDescription('This notification occurs when AS is in blacklist.') hw_as_unconfirmed_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 18)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac')) if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setStatus('current') if mibBuilder.loadTexts: hwAsUnconfirmedNotify.setDescription('This notification occurs when AS is not confirmed.') hw_as_combo_port_type_change_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 19)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfType')) if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setStatus('current') if mibBuilder.loadTexts: hwAsComboPortTypeChangeNotify.setDescription('This notification occurs when combo type change.') hw_as_online_fail_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 20)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonDesc')) if mibBuilder.loadTexts: hwAsOnlineFailNotify.setStatus('current') if mibBuilder.loadTexts: hwAsOnlineFailNotify.setDescription('This notification occurs when AS online failed.') hw_as_slot_id_invalid_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 21)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId')) if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSlotIdInvalidNotify.setDescription('This notification occurs when the slot ID of AS is invalid.') hw_as_sysmac_switch_cfg_err_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 2, 2, 22)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName')) if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setStatus('current') if mibBuilder.loadTexts: hwAsSysmacSwitchCfgErrNotify.setDescription('This notification occurs when the configuration of system MAC address switching delay is error.') hw_uni_mbr_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3)) hw_uni_mbr_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1)) hw_uni_mbr_link_stat_trap_local_mac = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 1), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalMac.setDescription('UNIMBR trap message local mac.') hw_uni_mbr_link_stat_trap_local_port_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapLocalPortName.setDescription('UNIMBR trap message local port name.') hw_uni_mbr_link_stat_trap_change_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up2down', 1), ('down2up', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setStatus('current') if mibBuilder.loadTexts: hwUniMbrLinkStatTrapChangeType.setDescription('UNIMBR trap message changing type of link state.') hw_uni_mbr_trap_connect_error_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 4), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapConnectErrorReason.setDescription('The reason of UNIMBR fabric-port connect error.') hw_uni_mbr_trap_receive_pkt_rate = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 5), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapReceivePktRate.setDescription('AS Discover packet rate.') hw_uni_mbr_trap_as_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsIndex.setDescription('AS index.') hw_uni_mbr_trap_as_sys_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 7), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapAsSysName.setDescription('Name of AS.') hw_uni_mbr_para_syn_fail_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 8), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrParaSynFailReason.setDescription('The reason of UNIMBR parameter synchronization failed.') hw_uni_mbr_trap_illegal_config_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 1, 9), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setStatus('current') if mibBuilder.loadTexts: hwUniMbrTrapIllegalConfigReason.setDescription('The reason of UNIMBR illegal configuration.') hw_uni_mbr_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2)) hw_uni_mbr_connect_error = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapConnectErrorReason')) if mibBuilder.loadTexts: hwUniMbrConnectError.setStatus('current') if mibBuilder.loadTexts: hwUniMbrConnectError.setDescription('The notification of fabric-port connect error.') hw_uni_mbr_as_discover_attack = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapReceivePktRate')) if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setStatus('current') if mibBuilder.loadTexts: hwUniMbrASDiscoverAttack.setDescription('An AS discover packet attack is detected.') hw_uni_mbr_fabric_port_member_delete = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName')) if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setStatus('current') if mibBuilder.loadTexts: hwUniMbrFabricPortMemberDelete.setDescription('The notification of deleting member of fabric port.') hw_uni_mbr_illegal_fabric_config = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 3, 2, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapIllegalConfigReason')) if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setStatus('current') if mibBuilder.loadTexts: hwUniMbrIllegalFabricConfig.setDescription('The notification of IllegalFabricConfig.') hw_vermng_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4)) hw_vermng_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 1)) hw_vermng_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2)) hw_vermng_upgrade_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 4, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorCode'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorDescr')) if mibBuilder.loadTexts: hwVermngUpgradeFail.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeFail.setDescription('Upgrade failed.') hw_tplm_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5)) hw_tplm_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1)) hw_tplm_trap_as_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTplmTrapASName.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapASName.setDescription('The name of AS.') hw_tplm_trap_failed_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 1, 2), octet_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapFailedReason.setDescription('The reason of failure.') hw_tplm_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2)) hw_tplm_cmd_execute_failed_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmTrapFailedReason')) if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteFailedNotify.setDescription('The notification of command execution failure.') hw_tplm_cmd_execute_successful_notify = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName')) if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setStatus('current') if mibBuilder.loadTexts: hwTplmCmdExecuteSuccessfulNotify.setDescription('The notification of command execution failure cleared.') hw_tplm_direct_cmd_recover_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 5, 2, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName')) if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setStatus('current') if mibBuilder.loadTexts: hwTplmDirectCmdRecoverFail.setDescription('The notification of direct command recovery failure.') hw_uni_as_base_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6)) hw_uni_as_base_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1)) hw_uni_as_base_as_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 1), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseAsName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsName.setDescription('The name of AS.') hw_uni_as_base_as_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseAsId.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseAsId.setDescription('AS id.') hw_uni_as_base_entity_physical_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 3), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityPhysicalIndex.setDescription('The index of AS physical.') hw_uni_as_base_trap_severity = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapSeverity.setDescription('To describe the level of trap.') hw_uni_as_base_trap_probable_cause = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 5), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapProbableCause.setDescription('To describe the probable cause of trap.') hw_uni_as_base_trap_event_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 6), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseTrapEventType.setDescription('To describe the type of trap.') hw_uni_as_base_ent_physical_contained_in = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 7), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalContainedIn.setDescription('The value of entPhysicalIndex for the physical entity which contains this physical entity.') hw_uni_as_base_ent_physical_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 8), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalName.setDescription('The textual name of the physical entity.') hw_uni_as_base_relative_resource = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 9), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseRelativeResource.setDescription('This object may contain a key word to indicate the relative resource of an entity.') hw_uni_as_base_reason_description = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 10), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseReasonDescription.setDescription('Reason description.') hw_uni_as_base_threshold_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 11), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdType.setDescription('The index to indicate the type of threshold for an entry.') hw_uni_as_base_threshold_value = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 12), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdValue.setDescription('The current value that been measured.') hw_uni_as_base_threshold_unit = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 13), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdUnit.setDescription('The unit for this threshold value.') hw_uni_as_base_threshold_high_warning = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 14), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighWarning.setDescription('The normal warning threshold for rising alarm.') hw_uni_as_base_threshold_high_critical = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 15), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHighCritical.setDescription('The critical alarm threshold for rising alarm.') hw_uni_as_base_threshold_low_warning = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 16), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowWarning.setDescription('The normal warning threshold for falling alarm.') hw_uni_as_base_threshold_low_critical = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 17), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdLowCritical.setDescription('The critical alarm threshold for falling alarm.') hw_uni_as_base_entity_trap_ent_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 18), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntType.setDescription('The entity type.') hw_uni_as_base_entity_trap_ent_fault_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 19), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapEntFaultID.setDescription('To describe the fault id of trap.') hw_uni_as_base_entity_trap_communicate_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 20), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntityTrapCommunicateType.setDescription('The communicate type.') hw_uni_as_base_threshold_ent_value = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 21), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntValue.setDescription('The threshold value.') hw_uni_as_base_threshold_ent_current = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 22), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdEntCurrent.setDescription('The current value that been measured.') hw_uni_as_base_ent_physical_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 23), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseEntPhysicalIndex.setDescription('The index of AS physical.') hw_uni_as_base_threshold_hw_base_threshold_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 24), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdType.setDescription('The type of base threshold.') hw_uni_as_base_threshold_hw_base_threshold_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 1, 25), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setStatus('current') if mibBuilder.loadTexts: hwUniAsBaseThresholdHwBaseThresholdIndex.setDescription('The index of base threshold.') hw_uni_as_base_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2)) hw_as_environment_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2)) hw_as_brd_temp_alarm = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBrdTempAlarm.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempAlarm.setDescription('Temperature rise over or fall below the warning alarm threshold.') hw_as_brd_temp_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 2, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBrdTempResume.setStatus('current') if mibBuilder.loadTexts: hwASBrdTempResume.setDescription('Temperature back to normal level.') hw_as_board_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3)) hw_as_board_fail = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBoardFail.setStatus('current') if mibBuilder.loadTexts: hwASBoardFail.setDescription('Board become failure for some reason.') hw_as_board_fail_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 3, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASBoardFailResume.setStatus('current') if mibBuilder.loadTexts: hwASBoardFailResume.setDescription('Board resume from failure.') hw_as_optical_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4)) hw_as_optical_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASOpticalInvalid.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalid.setDescription('Optical Module is invalid for some reason.') hw_as_optical_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 4, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASOpticalInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASOpticalInvalidResume.setDescription('Optical Module resume from invalid situation.') hw_as_power_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5)) hw_as_power_remove = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerRemove.setStatus('current') if mibBuilder.loadTexts: hwASPowerRemove.setDescription('Power has been removed.') hw_as_power_insert = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInsert.setStatus('current') if mibBuilder.loadTexts: hwASPowerInsert.setDescription('Power has been inserted.') hw_as_power_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInvalid.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalid.setDescription('Power is invalid for some reason.') hw_as_power_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 5, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASPowerInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASPowerInvalidResume.setDescription('Power resume from invalid situation.') hw_as_fan_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6)) hw_as_fan_remove = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanRemove.setStatus('current') if mibBuilder.loadTexts: hwASFanRemove.setDescription('Fan has been removed.') hw_as_fan_insert = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInsert.setStatus('current') if mibBuilder.loadTexts: hwASFanInsert.setDescription('Fan has been inserted.') hw_as_fan_invalid = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInvalid.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalid.setDescription('Fan is invalid for some reason.') hw_as_fan_invalid_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 6, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASFanInvalidResume.setStatus('current') if mibBuilder.loadTexts: hwASFanInvalidResume.setDescription('Fan resume from invalid situation.') hw_as_communicate_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7)) hw_as_communicate_error = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType')) if mibBuilder.loadTexts: hwASCommunicateError.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateError.setDescription('Communication error has been detected.') hw_as_communicate_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 7, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType')) if mibBuilder.loadTexts: hwASCommunicateResume.setStatus('current') if mibBuilder.loadTexts: hwASCommunicateResume.setDescription('Resume from communication error situation.') hw_ascpu_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8)) hw_ascpu_utilization_rising = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASCPUUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationRising.setDescription('CPU utilization overrun.') hw_ascpu_utilization_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 8, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASCPUUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASCPUUtilizationResume.setDescription('CPU utilization back to normal level.') hw_as_memory_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9)) hw_as_mem_utilization_rising = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASMemUtilizationRising.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationRising.setDescription('Memory utilization overrun.') hw_as_mem_utilization_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 9, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID')) if mibBuilder.loadTexts: hwASMemUtilizationResume.setStatus('current') if mibBuilder.loadTexts: hwASMemUtilizationResume.setDescription('Memory utilization back to normal level.') hw_as_mad_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10)) hw_as_mad_conflict_detect = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId')) if mibBuilder.loadTexts: hwASMadConflictDetect.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictDetect.setDescription('Notify the NMS that dual-active scenario is detected.') hw_as_mad_conflict_resume = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 31, 6, 2, 10, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId')) if mibBuilder.loadTexts: hwASMadConflictResume.setStatus('current') if mibBuilder.loadTexts: hwASMadConflictResume.setDescription('Notify the NMS that dual-active scenario is merged.') hw_unimng_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50)) hw_topomng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1)) hw_topomng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTopoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_compliance = hwTopomngCompliance.setStatus('current') if mibBuilder.loadTexts: hwTopomngCompliance.setDescription('The compliance statement for SNMP entities supporting topomng.') hw_topomng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngExploreTime'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngLastCollectDuration')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_objects_group = hwTopomngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngObjectsGroup.setDescription('The topomng objects group.') hw_topomng_topo_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopoPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopoLocalRole'), ('HUAWEI-UNIMNG-MIB', 'hwTopoPeerRole')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_topo_group = hwTopomngTopoGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTopoGroup.setDescription('The topology table group.') hw_topomng_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapLocalTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerMac'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerPortName'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapPeerTrunkId'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngTrapReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_trap_objects_group = hwTopomngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapObjectsGroup.setDescription('The topomng trap objects group.') hw_topomng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 1, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTopomngLinkNormal'), ('HUAWEI-UNIMNG-MIB', 'hwTopomngLinkAbnormal')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_topomng_traps_group = hwTopomngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTopomngTrapsGroup.setDescription('The topomng notification objects group.') hw_asmng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2)) hw_asmng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsIfGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngAsIfXGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngGlobalObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngMacWhitelistGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngMacBlacklistGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityPhysicalGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityStateGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngEntityAliasMappingGroup'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngSlotGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_compliance = hwAsmngCompliance.setStatus('current') if mibBuilder.loadTexts: hwAsmngCompliance.setDescription('The compliance statement for SNMP entities supporting asmng.') hw_asmng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMngEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_objects_group = hwAsmngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngObjectsGroup.setDescription('The AS management objects group.') hw_asmng_as_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsHardwareVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsIpAddress'), ('HUAWEI-UNIMNG-MIB', 'hwAsIpNetMask'), ('HUAWEI-UNIMNG-MIB', 'hwAsAccessUser'), ('HUAWEI-UNIMNG-MIB', 'hwAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsSn'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsRunState'), ('HUAWEI-UNIMNG-MIB', 'hwAsSoftwareVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsDns'), ('HUAWEI-UNIMNG-MIB', 'hwAsOnlineTime'), ('HUAWEI-UNIMNG-MIB', 'hwAsCpuUseage'), ('HUAWEI-UNIMNG-MIB', 'hwAsMemoryUseage'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsStackEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsGatewayIp'), ('HUAWEI-UNIMNG-MIB', 'hwAsRowstatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsVpnInstance')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_group = hwAsmngAsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsGroup.setDescription('The as table group.') hw_asmng_as_if_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsIfDescr'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfType'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfMtu'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfSpeed'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfPhysAddress'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_if_group = hwAsmngAsIfGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfGroup.setDescription('The as table group.') hw_asmng_as_if_x_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsIfLinkUpDownTrapEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHighSpeed'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAlias'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutUcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHCOutOctets'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInMulticastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfInBroadcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutMulticastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfOutBroadcastPkts'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfHCInOctets'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfAsId'), ('HUAWEI-UNIMNG-MIB', 'hwAsIfName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_as_if_x_group = hwAsmngAsIfXGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngAsIfXGroup.setDescription('The as table group.') hw_asmng_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsModel'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSn'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfIndex'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsFaultTimes'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfName'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsActualeType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentVersion'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsMac'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsSlotId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAddedAsSlotType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsPermitNum'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapParentUnimngMode'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsIfType'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonId'), ('HUAWEI-UNIMNG-MIB', 'hwAsmngTrapAsOnlineFailReasonDesc')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_trap_objects_group = hwAsmngTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapObjectsGroup.setDescription('The AS management trap objects group.') hw_asmng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsFaultNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsNormalNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsAddOffLineNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsDelOffLineNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsPortStateChangeToDownNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsPortStateChangeToUpNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsModelNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsVersionNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsNameConflictNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotModelNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsFullNotify'), ('HUAWEI-UNIMNG-MIB', 'hwUnimngModeNotMatchNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardAddNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardDeleteNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardPlugInNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsBoardPlugOutNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsInBlacklistNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsUnconfirmedNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsComboPortTypeChangeNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsOnlineFailNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotIdInvalidNotify'), ('HUAWEI-UNIMNG-MIB', 'hwAsSysmacSwitchCfgErrNotify')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_traps_group = hwAsmngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngTrapsGroup.setDescription('The AS management notification objects group.') hw_asmng_global_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsAutoReplaceEnable'), ('HUAWEI-UNIMNG-MIB', 'hwAsAuthMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_global_objects_group = hwAsmngGlobalObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngGlobalObjectsGroup.setDescription('Description.') hw_asmng_mac_whitelist_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 8)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsMacWhitelistRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_mac_whitelist_group = hwAsmngMacWhitelistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacWhitelistGroup.setDescription('Description.') hw_asmng_mac_blacklist_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 9)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsMacBlacklistRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_mac_blacklist_group = hwAsmngMacBlacklistGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngMacBlacklistGroup.setDescription('Description.') hw_asmng_entity_physical_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 10)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalDescr'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalVendorType'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalContainedIn'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalClass'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalParentRelPos'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalHardwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalFirmwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalSoftwareRev'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalSerialNum'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPhysicalMfgName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_physical_group = hwAsmngEntityPhysicalGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityPhysicalGroup.setDescription('Description.') hw_asmng_entity_state_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 11)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntityAdminStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityOperStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityStandbyStatus'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityAlarmLight'), ('HUAWEI-UNIMNG-MIB', 'hwAsEntityPortType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_state_group = hwAsmngEntityStateGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityStateGroup.setDescription('Description.') hw_asmng_entity_alias_mapping_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 12)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsEntryAliasMappingIdentifier')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_entity_alias_mapping_group = hwAsmngEntityAliasMappingGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngEntityAliasMappingGroup.setDescription('Description.') hw_asmng_slot_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 2, 1, 13)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwAsSlotState'), ('HUAWEI-UNIMNG-MIB', 'hwAsSlotRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_asmng_slot_group = hwAsmngSlotGroup.setStatus('current') if mibBuilder.loadTexts: hwAsmngSlotGroup.setDescription('Description.') hw_mbr_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3)) hw_mbr_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwMbrTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwMbrTrapsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwMbrFabricPortGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_compliance = hwMbrCompliance.setStatus('current') if mibBuilder.loadTexts: hwMbrCompliance.setDescription('The compliance statement for SNMP entities supporting mbrmng.') hw_mbr_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalMac'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapLocalPortName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrLinkStatTrapChangeType'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapConnectErrorReason'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapReceivePktRate'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapAsSysName'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrParaSynFailReason'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrTrapIllegalConfigReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_trap_objects_group = hwMbrTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapObjectsGroup.setDescription('The mbrmng trap objects group.') hw_mbr_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniMbrConnectError'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrASDiscoverAttack'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrFabricPortMemberDelete'), ('HUAWEI-UNIMNG-MIB', 'hwUniMbrIllegalFabricConfig')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_traps_group = hwMbrTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrTrapsGroup.setDescription('The mbrmng notification objects group.') hw_mbr_fabric_port_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 3, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortMemberIfName'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortDirection'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortIndirectFlag'), ('HUAWEI-UNIMNG-MIB', 'hwMbrMngFabricPortDescription')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mbr_fabric_port_group = hwMbrFabricPortGroup.setStatus('current') if mibBuilder.loadTexts: hwMbrFabricPortGroup.setDescription('The mbrmng fabric port group.') hw_vermng_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4)) hw_vermng_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_compliance = hwVermngCompliance.setStatus('current') if mibBuilder.loadTexts: hwVermngCompliance.setDescription('The compliance of version management.') hw_vermng_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngFileServerType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_objects_group = hwVermngObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngObjectsGroup.setDescription('The group of global objects.') hw_vermng_upgrade_info_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsName'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsSysPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsDownloadPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeState'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeType'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsFilePhase'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradePhase'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsUpgradeResult'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorCode'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoAsErrorDescr')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_upgrade_info_group = hwVermngUpgradeInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngUpgradeInfoGroup.setDescription('The group of upgrade info.') hw_vermng_as_type_cfg_info_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoPatch'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoSystemSoftwareVer'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoRowStatus'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoSystemSoftware'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoAsTypeName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_as_type_cfg_info_group = hwVermngAsTypeCfgInfoGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngAsTypeCfgInfoGroup.setDescription('The group of AS type.') hw_vermng_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 4, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeFail')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_vermng_traps_group = hwVermngTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwVermngTrapsGroup.setDescription('The group of notification of version management.') hw_tplm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5)) hw_tplm_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwVermngObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngUpgradeInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngAsTypeCfgInfoGroup'), ('HUAWEI-UNIMNG-MIB', 'hwVermngTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_compliance = hwTplmCompliance.setStatus('current') if mibBuilder.loadTexts: hwTplmCompliance.setDescription('The compliance of template management.') hw_tplm_as_group_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASAdminProfileName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupProfileStatus'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASGroupRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_as_group_goup = hwTplmASGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGroupGoup.setDescription('The group of as group.') hw_tplm_as_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmASASGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmASRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_as_goup = hwTplmASGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmASGoup.setDescription('The group of as.') hw_tplm_port_group_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 3)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupType'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupNetworkBasicProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupNetworkEnhancedProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupUserAccessProfile'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupProfileStatus'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortGroupRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_port_group_goup = hwTplmPortGroupGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGroupGoup.setDescription('The group of port group.') hw_tplm_port_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 4)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmPortPortGroupName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmPortRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_port_goup = hwTplmPortGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmPortGoup.setDescription('The group of port.') hw_tplm_config_management_goup = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 5)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmConfigCommitAll'), ('HUAWEI-UNIMNG-MIB', 'hwTplmConfigManagementCommit')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_config_management_goup = hwTplmConfigManagementGoup.setStatus('current') if mibBuilder.loadTexts: hwTplmConfigManagementGoup.setDescription('The group of configuration management.') hw_tplm_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 6)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmTrapASName'), ('HUAWEI-UNIMNG-MIB', 'hwTplmTrapFailedReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_trap_objects_group = hwTplmTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapObjectsGroup.setDescription('The tplm trap objects group.') hw_tplm_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 5, 1, 7)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwTplmCmdExecuteFailedNotify'), ('HUAWEI-UNIMNG-MIB', 'hwTplmCmdExecuteSuccessfulNotify'), ('HUAWEI-UNIMNG-MIB', 'hwTplmDirectCmdRecoverFail')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_tplm_traps_group = hwTplmTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwTplmTrapsGroup.setDescription('The tplm notification objects group.') hw_uni_base_trap_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6)) hw_uni_base_trap_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniBaseTrapObjectsGroup'), ('HUAWEI-UNIMNG-MIB', 'hwUniBaseTrapsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_trap_compliance = hwUniBaseTrapCompliance.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapCompliance.setDescription('The compliance statement for SNMP entities supporting unimng base trap.') hw_uni_base_trap_objects_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 1)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseAsId'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapSeverity'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapProbableCause'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseTrapEventType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalContainedIn'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalName'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseRelativeResource'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseReasonDescription'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdUnit'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHighWarning'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHighCritical'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdLowWarning'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdLowCritical'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapEntFaultID'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntityTrapCommunicateType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntValue'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdEntCurrent'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseEntPhysicalIndex'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHwBaseThresholdType'), ('HUAWEI-UNIMNG-MIB', 'hwUniAsBaseThresholdHwBaseThresholdIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_trap_objects_group = hwUniBaseTrapObjectsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapObjectsGroup.setDescription('The unimng base trap objects group.') hw_uni_base_traps_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 327, 50, 6, 1, 2)).setObjects(('HUAWEI-UNIMNG-MIB', 'hwASBoardFail'), ('HUAWEI-UNIMNG-MIB', 'hwASBoardFailResume'), ('HUAWEI-UNIMNG-MIB', 'hwASOpticalInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASOpticalInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerRemove'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInsert'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASPowerInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASFanRemove'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInsert'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInvalid'), ('HUAWEI-UNIMNG-MIB', 'hwASFanInvalidResume'), ('HUAWEI-UNIMNG-MIB', 'hwASCommunicateError'), ('HUAWEI-UNIMNG-MIB', 'hwASCommunicateResume'), ('HUAWEI-UNIMNG-MIB', 'hwASCPUUtilizationRising'), ('HUAWEI-UNIMNG-MIB', 'hwASCPUUtilizationResume'), ('HUAWEI-UNIMNG-MIB', 'hwASMemUtilizationRising'), ('HUAWEI-UNIMNG-MIB', 'hwASMemUtilizationResume'), ('HUAWEI-UNIMNG-MIB', 'hwASMadConflictDetect'), ('HUAWEI-UNIMNG-MIB', 'hwASMadConflictResume'), ('HUAWEI-UNIMNG-MIB', 'hwASBrdTempAlarm'), ('HUAWEI-UNIMNG-MIB', 'hwASBrdTempResume')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_uni_base_traps_group = hwUniBaseTrapsGroup.setStatus('current') if mibBuilder.loadTexts: hwUniBaseTrapsGroup.setDescription('The unimng base notification objects group.') mibBuilder.exportSymbols('HUAWEI-UNIMNG-MIB', hwTopomngTrapReason=hwTopomngTrapReason, hwUnimngConformance=hwUnimngConformance, hwTplmPortIfIndex=hwTplmPortIfIndex, hwVermngFileServerType=hwVermngFileServerType, hwAsDns=hwAsDns, hwUniMbrTrapReceivePktRate=hwUniMbrTrapReceivePktRate, hwTopomngTrapObjects=hwTopomngTrapObjects, hwTopomngLastCollectDuration=hwTopomngLastCollectDuration, hwTopoPeerRole=hwTopoPeerRole, hwTplmTraps=hwTplmTraps, hwUniAsBaseThresholdLowWarning=hwUniAsBaseThresholdLowWarning, hwMbrCompliances=hwMbrCompliances, hwUniAsBaseReasonDescription=hwUniAsBaseReasonDescription, hwAsSlotRowStatus=hwAsSlotRowStatus, hwASPowerInvalidResume=hwASPowerInvalidResume, hwVermngCompliances=hwVermngCompliances, hwAsmngTrapParentUnimngMode=hwAsmngTrapParentUnimngMode, hwTopoLocalTrunkId=hwTopoLocalTrunkId, hwASEnvironmentTrap=hwASEnvironmentTrap, hwAsFullNotify=hwAsFullNotify, hwTplmASEntry=hwTplmASEntry, hwTopomngTrapPeerTrunkId=hwTopomngTrapPeerTrunkId, hwAsDelOffLineNotify=hwAsDelOffLineNotify, hwTplmCmdExecuteFailedNotify=hwTplmCmdExecuteFailedNotify, hwMbrMngFabricPortId=hwMbrMngFabricPortId, hwAsIfAsId=hwAsIfAsId, hwUniAsBaseThresholdEntCurrent=hwUniAsBaseThresholdEntCurrent, hwVermngAsTypeCfgInfoTable=hwVermngAsTypeCfgInfoTable, hwTplmDirectCmdRecoverFail=hwTplmDirectCmdRecoverFail, hwUniBaseTrapObjectsGroup=hwUniBaseTrapObjectsGroup, hwASPowerInsert=hwASPowerInsert, hwAsIfLinkUpDownTrapEnable=hwAsIfLinkUpDownTrapEnable, hwAsmngTrapAsUnimngMode=hwAsmngTrapAsUnimngMode, hwAsIfOutMulticastPkts=hwAsIfOutMulticastPkts, hwAsEntityPhysicalDescr=hwAsEntityPhysicalDescr, hwUniAsBaseThresholdHwBaseThresholdIndex=hwUniAsBaseThresholdHwBaseThresholdIndex, hwAsSlotIdInvalidNotify=hwAsSlotIdInvalidNotify, hwUnimngNotification=hwUnimngNotification, hwAsIfName=hwAsIfName, hwVermngUpgradeInfoAsUpgradeResult=hwVermngUpgradeInfoAsUpgradeResult, hwAsIfDescr=hwAsIfDescr, hwVermngUpgradeInfoAsSysSoftwareVer=hwVermngUpgradeInfoAsSysSoftwareVer, hwVermngUpgradeInfoAsDownloadSoftwareVer=hwVermngUpgradeInfoAsDownloadSoftwareVer, hwTopoLocalHop=hwTopoLocalHop, hwAsEntityOperStatus=hwAsEntityOperStatus, hwTplmPortRowStatus=hwTplmPortRowStatus, hwTplmPortGroupProfileStatus=hwTplmPortGroupProfileStatus, hwAsBoardPlugInNotify=hwAsBoardPlugInNotify, hwTplmPortGroupRowStatus=hwTplmPortGroupRowStatus, hwAsIpNetMask=hwAsIpNetMask, hwAsmngTrapAsSn=hwAsmngTrapAsSn, hwAsIfTable=hwAsIfTable, hwAsUnconfirmedNotify=hwAsUnconfirmedNotify, hwAsEntityPhysicalIndex=hwAsEntityPhysicalIndex, hwAsmngTrapsGroup=hwAsmngTrapsGroup, hwTplmTrap=hwTplmTrap, hwAsEntityPhysicalHardwareRev=hwAsEntityPhysicalHardwareRev, hwUniAsBaseTraps=hwUniAsBaseTraps, hwTplmASGroupProfileStatus=hwTplmASGroupProfileStatus, hwVermngCompliance=hwVermngCompliance, hwAsMacBlacklistTable=hwAsMacBlacklistTable, hwUniAsBaseEntityPhysicalIndex=hwUniAsBaseEntityPhysicalIndex, hwVermngAsTypeCfgInfoAsTypeIndex=hwVermngAsTypeCfgInfoAsTypeIndex, hwAsIfInBroadcastPkts=hwAsIfInBroadcastPkts, hwASOpticalInvalidResume=hwASOpticalInvalidResume, hwTplmCompliance=hwTplmCompliance, hwAsEntityPhysicalContainedIn=hwAsEntityPhysicalContainedIn, hwMbrmngObjects=hwMbrmngObjects, hwAsSlotState=hwAsSlotState, hwUniAsBaseThresholdHighCritical=hwUniAsBaseThresholdHighCritical, hwASPowerRemove=hwASPowerRemove, hwAsIfOutBroadcastPkts=hwAsIfOutBroadcastPkts, hwVermngAsTypeCfgInfoSystemSoftware=hwVermngAsTypeCfgInfoSystemSoftware, hwAsFaultNotify=hwAsFaultNotify, hwAsmngAsIfGroup=hwAsmngAsIfGroup, hwAsmngTrapAsActualeType=hwAsmngTrapAsActualeType, hwAsEntityPortType=hwAsEntityPortType, hwTopomngExploreTime=hwTopomngExploreTime, hwUniMbrTrapIllegalConfigReason=hwUniMbrTrapIllegalConfigReason, hwTplmPortGroupNetworkBasicProfile=hwTplmPortGroupNetworkBasicProfile, hwUniMbrTrapAsSysName=hwUniMbrTrapAsSysName, hwASFanInsert=hwASFanInsert, hwAsAutoReplaceEnable=hwAsAutoReplaceEnable, hwVermngTrapsGroup=hwVermngTrapsGroup, hwTopomngObjects=hwTopomngObjects, hwUniMbrLinkStatTrapLocalMac=hwUniMbrLinkStatTrapLocalMac, PYSNMP_MODULE_ID=hwUnimngMIB, hwUniAsBaseTrap=hwUniAsBaseTrap, hwVermngUpgradeInfoTable=hwVermngUpgradeInfoTable, hwAsMacBlacklistMacAddr=hwAsMacBlacklistMacAddr, hwTopomngCompliances=hwTopomngCompliances, hwAsEntityPhysicalName=hwAsEntityPhysicalName, hwAsMacBlacklistRowStatus=hwAsMacBlacklistRowStatus, hwVermngUpgradeInfoAsUpgradePhase=hwVermngUpgradeInfoAsUpgradePhase, hwAsRowstatus=hwAsRowstatus, hwMbrMngASId=hwMbrMngASId, hwMbrMngFabricPortEntry=hwMbrMngFabricPortEntry, hwASCommunicateResume=hwASCommunicateResume, hwAsMacWhitelistMacAddr=hwAsMacWhitelistMacAddr, hwAsIfAlias=hwAsIfAlias, hwUniMbrTrapObjects=hwUniMbrTrapObjects, hwVermngUpgradeInfoAsIndex=hwVermngUpgradeInfoAsIndex, hwTplmObjects=hwTplmObjects, hwAsIndex=hwAsIndex, hwASOpticalInvalid=hwASOpticalInvalid, hwAsIfSpeed=hwAsIfSpeed, hwAsIfHCOutOctets=hwAsIfHCOutOctets, hwTopomngTopoGroup=hwTopomngTopoGroup, hwTplmPortGroupTable=hwTplmPortGroupTable, hwAsNameConflictNotify=hwAsNameConflictNotify, hwUniMbrConnectError=hwUniMbrConnectError, hwUniBaseTrapCompliance=hwUniBaseTrapCompliance, hwAsmngMacWhitelistGroup=hwAsmngMacWhitelistGroup, hwAsPortStateChangeToDownNotify=hwAsPortStateChangeToDownNotify, hwTplmCompliances=hwTplmCompliances, hwUniAsBaseThresholdLowCritical=hwUniAsBaseThresholdLowCritical, hwUniAsBaseThresholdEntValue=hwUniAsBaseThresholdEntValue, hwUniAsBaseRelativeResource=hwUniAsBaseRelativeResource, hwTopomngObjectsGroup=hwTopomngObjectsGroup, hwAsEntry=hwAsEntry, hwAsVersionNotMatchNotify=hwAsVersionNotMatchNotify, hwVermngAsTypeCfgInfoRowStatus=hwVermngAsTypeCfgInfoRowStatus, hwMbrCompliance=hwMbrCompliance, hwAsmngTrapAsIfAdminStatus=hwAsmngTrapAsIfAdminStatus, hwUniMngEnable=hwUniMngEnable, hwVermngUpgradeInfoEntry=hwVermngUpgradeInfoEntry, hwAsEntityStateEntry=hwAsEntityStateEntry, hwAsEntityPhysicalSoftwareRev=hwAsEntityPhysicalSoftwareRev, hwTplmConfigManagementTable=hwTplmConfigManagementTable, hwAsComboPortTypeChangeNotify=hwAsComboPortTypeChangeNotify, hwAsBoardAddNotify=hwAsBoardAddNotify, hwAsMacWhitelistTable=hwAsMacWhitelistTable, hwMbrFabricPortGroup=hwMbrFabricPortGroup, hwAsmngGlobalObjects=hwAsmngGlobalObjects, hwAsIfAdminStatus=hwAsIfAdminStatus, hwUniBaseTrapsGroup=hwUniBaseTrapsGroup, hwTplmASGroupEntry=hwTplmASGroupEntry, hwUniMbrIllegalFabricConfig=hwUniMbrIllegalFabricConfig, hwAsIfInMulticastPkts=hwAsIfInMulticastPkts, hwTplmPortGoup=hwTplmPortGoup, hwVermngUpgradeInfoAsUpgradeState=hwVermngUpgradeInfoAsUpgradeState, hwUniMbrLinkStatTrapLocalPortName=hwUniMbrLinkStatTrapLocalPortName, hwVermngTrap=hwVermngTrap, hwTplmTrapsGroup=hwTplmTrapsGroup, hwAsIpAddress=hwAsIpAddress, hwASFanRemove=hwASFanRemove, hwUniAsBaseEntityTrapEntType=hwUniAsBaseEntityTrapEntType, hwUniAsBaseEntityTrapEntFaultID=hwUniAsBaseEntityTrapEntFaultID, hwAsmngTrapAsOnlineFailReasonDesc=hwAsmngTrapAsOnlineFailReasonDesc, hwVermngUpgradeInfoAsUpgradeType=hwVermngUpgradeInfoAsUpgradeType, hwUnimngMIB=hwUnimngMIB, hwAsSlotTable=hwAsSlotTable, hwAsmngTrapAsModel=hwAsmngTrapAsModel, hwAsmngObjects=hwAsmngObjects, hwVermngTrapObjects=hwVermngTrapObjects, hwAsmngTrapAsIfType=hwAsmngTrapAsIfType, hwAsEntityAliasMappingTable=hwAsEntityAliasMappingTable, hwASCommunicateError=hwASCommunicateError, hwVermngGlobalObjects=hwVermngGlobalObjects, hwAsIfPhysAddress=hwAsIfPhysAddress, hwAsmngTrapAsOnlineFailReasonId=hwAsmngTrapAsOnlineFailReasonId, hwAsEntityStandbyStatus=hwAsEntityStandbyStatus, hwTplmPortGroupGoup=hwTplmPortGroupGoup, hwUniMbrTraps=hwUniMbrTraps, hwAsEntryAliasMappingIdentifier=hwAsEntryAliasMappingIdentifier, hwAsIfInUcastPkts=hwAsIfInUcastPkts, hwUniMbrTrapConnectErrorReason=hwUniMbrTrapConnectErrorReason, hwTplmTrapFailedReason=hwTplmTrapFailedReason, hwAsmngSlotGroup=hwAsmngSlotGroup, hwTopomngTopoEntry=hwTopomngTopoEntry, hwTplmPortGroupEntry=hwTplmPortGroupEntry, hwAsEntityAdminStatus=hwAsEntityAdminStatus, hwTplmConfigManagementASId=hwTplmConfigManagementASId, hwAsEntityPhysicalEntry=hwAsEntityPhysicalEntry, hwAsHardwareVersion=hwAsHardwareVersion, hwVermngObjectsGroup=hwVermngObjectsGroup, hwAsmngTrapAsIfIndex=hwAsmngTrapAsIfIndex, hwTplmPortGroupUserAccessProfile=hwTplmPortGroupUserAccessProfile, hwAsmngTrapAsFaultTimes=hwAsmngTrapAsFaultTimes, hwTplmPortEntry=hwTplmPortEntry, hwAsmngEntityPhysicalGroup=hwAsmngEntityPhysicalGroup, hwAsAddOffLineNotify=hwAsAddOffLineNotify, hwAsCpuUseage=hwAsCpuUseage, hwAsMacBlacklistEntry=hwAsMacBlacklistEntry, hwASFanTrap=hwASFanTrap, hwTplmPortPortGroupName=hwTplmPortPortGroupName, hwAsEntityAliasMappingEntry=hwAsEntityAliasMappingEntry, hwUniAsBaseThresholdHighWarning=hwUniAsBaseThresholdHighWarning, hwTplmASId=hwTplmASId, hwAsIfOperStatus=hwAsIfOperStatus, hwAsmngEntityStateGroup=hwAsmngEntityStateGroup, hwTopoPeerMac=hwTopoPeerMac, hwASCPUTrap=hwASCPUTrap, hwTopomngTrapLocalMac=hwTopomngTrapLocalMac, hwAsmngTrap=hwAsmngTrap, hwTopoPeerTrunkId=hwTopoPeerTrunkId, hwAsRunState=hwAsRunState, hwAsMac=hwAsMac, hwVermngUpgradeInfoAsSysPatch=hwVermngUpgradeInfoAsSysPatch, hwASBrdTempResume=hwASBrdTempResume, hwAsmngGlobalObjectsGroup=hwAsmngGlobalObjectsGroup, hwVermngUpgradeInfoGroup=hwVermngUpgradeInfoGroup, hwAsAccessUser=hwAsAccessUser, hwTopoLocalPortName=hwTopoLocalPortName, hwASMemUtilizationResume=hwASMemUtilizationResume, hwTplmASAdminProfileName=hwTplmASAdminProfileName, hwAsSysmacSwitchCfgErrNotify=hwAsSysmacSwitchCfgErrNotify, hwASCPUUtilizationResume=hwASCPUUtilizationResume, hwAsIfMtu=hwAsIfMtu, hwTopoPeerDeviceIndex=hwTopoPeerDeviceIndex, hwAsSoftwareVersion=hwAsSoftwareVersion, hwASBrdTempAlarm=hwASBrdTempAlarm, hwAsmngTrapAsIndex=hwAsmngTrapAsIndex, hwAsEntityPhysicalVendorType=hwAsEntityPhysicalVendorType, hwAsmngTrapAsIfOperStatus=hwAsmngTrapAsIfOperStatus, hwASPowerInvalid=hwASPowerInvalid, hwAsGatewayIp=hwAsGatewayIp, hwUniMbrTrapAsIndex=hwUniMbrTrapAsIndex, hwTopoLocalRole=hwTopoLocalRole, hwAsIfHighSpeed=hwAsIfHighSpeed, hwTopomngTrapObjectsGroup=hwTopomngTrapObjectsGroup, hwAsmngTrapAddedAsSlotType=hwAsmngTrapAddedAsSlotType, hwVermngUpgradeInfoAsDownloadSoftware=hwVermngUpgradeInfoAsDownloadSoftware, hwTplmPortGroupType=hwTplmPortGroupType, hwUniAsBaseEntPhysicalContainedIn=hwUniAsBaseEntPhysicalContainedIn, hwTopomngTrapsGroup=hwTopomngTrapsGroup, hwAsIfOutUcastPkts=hwAsIfOutUcastPkts, hwTopomngTrap=hwTopomngTrap, hwTplmConfigCommitAll=hwTplmConfigCommitAll, hwAsmngTrapAsVersion=hwAsmngTrapAsVersion, hwTplmConfigManagementEntry=hwTplmConfigManagementEntry, hwTplmASRowStatus=hwTplmASRowStatus, hwTopomngTrapLocalPortName=hwTopomngTrapLocalPortName, hwTplmCmdExecuteSuccessfulNotify=hwTplmCmdExecuteSuccessfulNotify, hwUniAsBaseTrapProbableCause=hwUniAsBaseTrapProbableCause, hwAsSlotId=hwAsSlotId, hwTplmTrapASName=hwTplmTrapASName, hwAsIfXEntry=hwAsIfXEntry, hwTopomngTrapPeerPortName=hwTopomngTrapPeerPortName, hwTopomngLinkNormal=hwTopomngLinkNormal, hwASMemoryTrap=hwASMemoryTrap, hwUniAsBaseTrapSeverity=hwUniAsBaseTrapSeverity, hwTplmConfigManagementGoup=hwTplmConfigManagementGoup, hwTopomngTraps=hwTopomngTraps, hwVermngAsTypeCfgInfoPatch=hwVermngAsTypeCfgInfoPatch, hwUniAsBaseTrapEventType=hwUniAsBaseTrapEventType, hwAsMacWhitelistRowStatus=hwAsMacWhitelistRowStatus, hwTplmPortGroupIndex=hwTplmPortGroupIndex, hwAsEntityPhysicalParentRelPos=hwAsEntityPhysicalParentRelPos, AlarmStatus=AlarmStatus, hwMbrMngFabricPortDescription=hwMbrMngFabricPortDescription, hwAsmngTrapAsPermitNum=hwAsmngTrapAsPermitNum, hwAsEntityStateTable=hwAsEntityStateTable, hwAsVpnInstance=hwAsVpnInstance) mibBuilder.exportSymbols('HUAWEI-UNIMNG-MIB', hwTplmASGroupIndex=hwTplmASGroupIndex, hwMbrTrapsGroup=hwMbrTrapsGroup, hwTplmASGroupName=hwTplmASGroupName, hwTopomngTopoTable=hwTopomngTopoTable, hwASPowerTrap=hwASPowerTrap, hwAsEntityPhysicalMfgName=hwAsEntityPhysicalMfgName, hwVermngObjects=hwVermngObjects, hwTplmTrapObjectsGroup=hwTplmTrapObjectsGroup, hwAsStackEnable=hwAsStackEnable, hwTplmASGoup=hwTplmASGoup, hwMbrMngFabricPortDirection=hwMbrMngFabricPortDirection, hwUnimngObjects=hwUnimngObjects, hwASBoardFailResume=hwASBoardFailResume, hwVermngUpgradeInfoAsName=hwVermngUpgradeInfoAsName, hwUniAsBaseEntPhysicalName=hwUniAsBaseEntPhysicalName, hwAsOnlineTime=hwAsOnlineTime, hwAsmngTrapObjects=hwAsmngTrapObjects, hwUniBaseTrapCompliances=hwUniBaseTrapCompliances, hwVermngAsTypeCfgInfoAsTypeName=hwVermngAsTypeCfgInfoAsTypeName, hwAsEntryAliasLogicalIndexOrZero=hwAsEntryAliasLogicalIndexOrZero, hwAsSysMac=hwAsSysMac, hwAsmngTrapParentVersion=hwAsmngTrapParentVersion, hwAsInBlacklistNotify=hwAsInBlacklistNotify, hwAsPortStateChangeToUpNotify=hwAsPortStateChangeToUpNotify, hwAsMacWhitelistEntry=hwAsMacWhitelistEntry, hwUniAsBaseThresholdType=hwUniAsBaseThresholdType, hwAsEntityPhysicalFirmwareRev=hwAsEntityPhysicalFirmwareRev, hwTplmPortGroupName=hwTplmPortGroupName, hwASCommunicateTrap=hwASCommunicateTrap, hwAsmngTrapAddedAsMac=hwAsmngTrapAddedAsMac, hwTopomngCompliance=hwTopomngCompliance, hwAsNormalNotify=hwAsNormalNotify, hwVermngAsTypeCfgInfoSystemSoftwareVer=hwVermngAsTypeCfgInfoSystemSoftwareVer, hwASMemUtilizationRising=hwASMemUtilizationRising, hwASMadConflictDetect=hwASMadConflictDetect, hwAsmngCompliance=hwAsmngCompliance, hwUniAsBaseThresholdHwBaseThresholdType=hwUniAsBaseThresholdHwBaseThresholdType, hwUnimngModeNotMatchNotify=hwUnimngModeNotMatchNotify, hwAsEntityPhysicalTable=hwAsEntityPhysicalTable, hwAsEntityAlarmLight=hwAsEntityAlarmLight, hwVermngUpgradeInfoAsFilePhase=hwVermngUpgradeInfoAsFilePhase, hwTplmASASGroupName=hwTplmASASGroupName, hwAsSysName=hwAsSysName, hwVermngUpgradeFail=hwVermngUpgradeFail, hwUniAsBaseThresholdUnit=hwUniAsBaseThresholdUnit, hwAsOnlineFailNotify=hwAsOnlineFailNotify, hwMbrTrapObjectsGroup=hwMbrTrapObjectsGroup, hwTplmPortGroupNetworkEnhancedProfile=hwTplmPortGroupNetworkEnhancedProfile, hwTplmConfigManagement=hwTplmConfigManagement, hwTplmASGroupTable=hwTplmASGroupTable, hwAsmngTraps=hwAsmngTraps, hwUniAsBaseTrapObjects=hwUniAsBaseTrapObjects, hwUniAsBaseThresholdValue=hwUniAsBaseThresholdValue, hwUniMbrLinkStatTrapChangeType=hwUniMbrLinkStatTrapChangeType, hwTplmPortTable=hwTplmPortTable, hwTplmASGroupGoup=hwTplmASGroupGoup, hwASCPUUtilizationRising=hwASCPUUtilizationRising, hwTopomngTrapPeerMac=hwTopomngTrapPeerMac, hwAsmngTrapObjectsGroup=hwAsmngTrapObjectsGroup, hwAsmngTrapAsSysName=hwAsmngTrapAsSysName, hwAsmngMacBlacklistGroup=hwAsmngMacBlacklistGroup, hwAsIfType=hwAsIfType, hwAsmngTrapAsMac=hwAsmngTrapAsMac, hwUniAsBaseEntPhysicalIndex=hwUniAsBaseEntPhysicalIndex, hwAsEntityPhysicalClass=hwAsEntityPhysicalClass, hwUniAsBaseAsName=hwUniAsBaseAsName, hwAsModelNotMatchNotify=hwAsModelNotMatchNotify, hwAsEntityPhysicalSerialNum=hwAsEntityPhysicalSerialNum, hwVermngUpgradeInfoAsErrorDescr=hwVermngUpgradeInfoAsErrorDescr, hwTopomngLinkAbnormal=hwTopomngLinkAbnormal, hwAsmngTrapAsIfName=hwAsmngTrapAsIfName, hwUniMbrASDiscoverAttack=hwUniMbrASDiscoverAttack, hwAsIfHCInOctets=hwAsIfHCInOctets, hwVermngTraps=hwVermngTraps, hwASMadConflictResume=hwASMadConflictResume, hwTopoLocalMac=hwTopoLocalMac, hwAsmngCompliances=hwAsmngCompliances, hwVermngAsTypeCfgInfoGroup=hwVermngAsTypeCfgInfoGroup, hwVermngUpgradeInfoAsDownloadPatch=hwVermngUpgradeInfoAsDownloadPatch, hwAsmngTrapAsSlotId=hwAsmngTrapAsSlotId, hwTopoPeerPortName=hwTopoPeerPortName, hwAsmngEntityAliasMappingGroup=hwAsmngEntityAliasMappingGroup, hwTplmTrapObjects=hwTplmTrapObjects, hwVermngUpgradeInfoAsSysSoftware=hwVermngUpgradeInfoAsSysSoftware, hwASOpticalTrap=hwASOpticalTrap, hwMbrMngFabricPortIndirectFlag=hwMbrMngFabricPortIndirectFlag, hwAsIfEntry=hwAsIfEntry, hwUniMbrTrap=hwUniMbrTrap, hwTopomngTrapLocalTrunkId=hwTopomngTrapLocalTrunkId, hwAsMemoryUseage=hwAsMemoryUseage, hwAsModel=hwAsModel, hwUniAsBaseEntityTrapCommunicateType=hwUniAsBaseEntityTrapCommunicateType, hwUniMbrFabricPortMemberDelete=hwUniMbrFabricPortMemberDelete, hwAsSn=hwAsSn, hwTplmASTable=hwTplmASTable, hwAsIfXTable=hwAsIfXTable, hwASBoardTrap=hwASBoardTrap, hwAsmngObjectsGroup=hwAsmngObjectsGroup, hwAsBoardPlugOutNotify=hwAsBoardPlugOutNotify, hwAsmngAsIfXGroup=hwAsmngAsIfXGroup, hwASFanInvalidResume=hwASFanInvalidResume, hwAsTable=hwAsTable, hwMbrMngFabricPortMemberIfName=hwMbrMngFabricPortMemberIfName, hwASFanInvalid=hwASFanInvalid, hwVermngUpgradeInfoAsErrorCode=hwVermngUpgradeInfoAsErrorCode, hwUniMbrParaSynFailReason=hwUniMbrParaSynFailReason, hwAsmngAsGroup=hwAsmngAsGroup, hwAsAuthMode=hwAsAuthMode, hwAsSlotModelNotMatchNotify=hwAsSlotModelNotMatchNotify, hwTplmASGroupRowStatus=hwTplmASGroupRowStatus, hwTplmConfigManagementCommit=hwTplmConfigManagementCommit, hwVermngAsTypeCfgInfoEntry=hwVermngAsTypeCfgInfoEntry, hwAsBoardDeleteNotify=hwAsBoardDeleteNotify, hwAsIfIndex=hwAsIfIndex, hwAsSlotEntry=hwAsSlotEntry, hwMbrMngFabricPortTable=hwMbrMngFabricPortTable, hwASBoardFail=hwASBoardFail, hwUniAsBaseAsId=hwUniAsBaseAsId, hwASMadTrap=hwASMadTrap)
"""A wrapper class for optimizer""" class TransformerOptimizer(object): """A simple wrapper class for learning rate scheduling""" def __init__(self, optimizer, k, d_model, warmup_steps=4000, step_num=0): self.optimizer = optimizer self.k = k self.init_lr = d_model ** (-0.5) self.warmup_steps = warmup_steps self.step_num = step_num self.visdom_lr = None def zero_grad(self): self.optimizer.zero_grad() def step(self): self._update_lr() self.optimizer.step() def _update_lr(self): self.step_num += 1 lr = ( self.k * self.init_lr * min( self.step_num ** (-0.5), self.step_num * (self.warmup_steps ** (-1.5)) ) ) for param_group in self.optimizer.param_groups: param_group["lr"] = lr def load_state_dict(self, state_dict): self.optimizer.load_state_dict(state_dict) def state_dict(self): return self.optimizer.state_dict() def set_k(self, k): self.k = k
"""A wrapper class for optimizer""" class Transformeroptimizer(object): """A simple wrapper class for learning rate scheduling""" def __init__(self, optimizer, k, d_model, warmup_steps=4000, step_num=0): self.optimizer = optimizer self.k = k self.init_lr = d_model ** (-0.5) self.warmup_steps = warmup_steps self.step_num = step_num self.visdom_lr = None def zero_grad(self): self.optimizer.zero_grad() def step(self): self._update_lr() self.optimizer.step() def _update_lr(self): self.step_num += 1 lr = self.k * self.init_lr * min(self.step_num ** (-0.5), self.step_num * self.warmup_steps ** (-1.5)) for param_group in self.optimizer.param_groups: param_group['lr'] = lr def load_state_dict(self, state_dict): self.optimizer.load_state_dict(state_dict) def state_dict(self): return self.optimizer.state_dict() def set_k(self, k): self.k = k
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None class DoublyLinkedList: def __init__(self, head=None): self.head = head self.length = 1 def append(self, element): """ Adds the `element` at the end of the LinkedList 10 (head) --> 5 --> 16 (tail) --> null """ current = self.head newNode = Node(element) if self.head: while current.next: current = current.next current.prev = current current.next = newNode self.length += 1 else: self.head = newNode def prepend(self, element) -> None: """ Adds the `element` at the beginning of the LinkedList 10 --> 5 --> 16 --> 20 --> null element --> 10 --> 5 --> 16 --> 20 --> null """ newNode = Node(element) newNode.next = self.head self.head.prev = newNode self.head = newNode self.length += 1 def print_list(self): """ Prints the linkedlist """ array = [] current = self.head while current != None: array.append(current.data) current = current.next return array def insert(self, index: int, data: int): if index >= self.length: self.append(data) return if index == 0: self.prepend(data) return newNode = Node(data) # leader = value at index - 1 leader = self.traverseToIndex(index-1) follower = leader.next leader.next = newNode newNode.prev = leader newNode.next = follower follower.prev = newNode self.length += 1 def traverseToIndex(self, index: int): """ Helper Function: find the value at index """ counter = 0 current = self.head while counter != index: current = current.next counter += 1 return current def remove(self, index): leader = self.traverseToIndex(index-1) # node = node to delete node = leader.next leader.next = node.next node.next.prev = leader self.length -= 1 if __name__ == '__main__': ll = DoublyLinkedList() ll.append(10) ll.append(5) ll.append(8) ll.append(1) ll.prepend(2) ll.insert(2, 9) ll.remove(3) print('DoublyLinkedList:', ll.print_list(), 'Length:', ll.length)
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None class Doublylinkedlist: def __init__(self, head=None): self.head = head self.length = 1 def append(self, element): """ Adds the `element` at the end of the LinkedList 10 (head) --> 5 --> 16 (tail) --> null """ current = self.head new_node = node(element) if self.head: while current.next: current = current.next current.prev = current current.next = newNode self.length += 1 else: self.head = newNode def prepend(self, element) -> None: """ Adds the `element` at the beginning of the LinkedList 10 --> 5 --> 16 --> 20 --> null element --> 10 --> 5 --> 16 --> 20 --> null """ new_node = node(element) newNode.next = self.head self.head.prev = newNode self.head = newNode self.length += 1 def print_list(self): """ Prints the linkedlist """ array = [] current = self.head while current != None: array.append(current.data) current = current.next return array def insert(self, index: int, data: int): if index >= self.length: self.append(data) return if index == 0: self.prepend(data) return new_node = node(data) leader = self.traverseToIndex(index - 1) follower = leader.next leader.next = newNode newNode.prev = leader newNode.next = follower follower.prev = newNode self.length += 1 def traverse_to_index(self, index: int): """ Helper Function: find the value at index """ counter = 0 current = self.head while counter != index: current = current.next counter += 1 return current def remove(self, index): leader = self.traverseToIndex(index - 1) node = leader.next leader.next = node.next node.next.prev = leader self.length -= 1 if __name__ == '__main__': ll = doubly_linked_list() ll.append(10) ll.append(5) ll.append(8) ll.append(1) ll.prepend(2) ll.insert(2, 9) ll.remove(3) print('DoublyLinkedList:', ll.print_list(), 'Length:', ll.length)
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class CombineMethodEnum(object): """Implementation of the 'CombineMethod' enum. Specifies how to combine the children of this node. The combining strategy for child devices. Some of these strategies imply constraint on the number of child devices. e.g. RAID5 will have 5 children. 'LINEAR' indicates children are juxtaposed to form this device. 'STRIPE' indicates children are striped. 'MIRROR' indicates children are mirrored. 'RAID5' 'RAID6' 'ZERO' 'THIN' 'THINPOOL' 'SNAPSHOT' 'CACHE' 'CACHEPOOL' Attributes: LINEAR: TODO: type description here. STRIPE: TODO: type description here. MIRROR: TODO: type description here. RAID5: TODO: type description here. RAID6: TODO: type description here. ZERO: TODO: type description here. THIN: TODO: type description here. THINPOOL: TODO: type description here. SNAPSHOT: TODO: type description here. CACHE: TODO: type description here. CACHEPOOL: TODO: type description here. """ LINEAR = 'LINEAR' STRIPE = 'STRIPE' MIRROR = 'MIRROR' RAID5 = 'RAID5' RAID6 = 'RAID6' ZERO = 'ZERO' THIN = 'THIN' THINPOOL = 'THINPOOL' SNAPSHOT = 'SNAPSHOT' CACHE = 'CACHE' CACHEPOOL = 'CACHEPOOL'
class Combinemethodenum(object): """Implementation of the 'CombineMethod' enum. Specifies how to combine the children of this node. The combining strategy for child devices. Some of these strategies imply constraint on the number of child devices. e.g. RAID5 will have 5 children. 'LINEAR' indicates children are juxtaposed to form this device. 'STRIPE' indicates children are striped. 'MIRROR' indicates children are mirrored. 'RAID5' 'RAID6' 'ZERO' 'THIN' 'THINPOOL' 'SNAPSHOT' 'CACHE' 'CACHEPOOL' Attributes: LINEAR: TODO: type description here. STRIPE: TODO: type description here. MIRROR: TODO: type description here. RAID5: TODO: type description here. RAID6: TODO: type description here. ZERO: TODO: type description here. THIN: TODO: type description here. THINPOOL: TODO: type description here. SNAPSHOT: TODO: type description here. CACHE: TODO: type description here. CACHEPOOL: TODO: type description here. """ linear = 'LINEAR' stripe = 'STRIPE' mirror = 'MIRROR' raid5 = 'RAID5' raid6 = 'RAID6' zero = 'ZERO' thin = 'THIN' thinpool = 'THINPOOL' snapshot = 'SNAPSHOT' cache = 'CACHE' cachepool = 'CACHEPOOL'
''' NAME Program that calculates the percentage of a list of amino acids. VERSION [1.0] AUTHOR Rodrigo Daniel Hernandez Barrera <<rodrigoh@lcg.unam.mx>> DESCRIPTION This program takes a sequence of amino acids from a protein and a list of amino acids, looks for these in the sequence and returns the percentage, it also tests the robustness of the code, all done with functions. CATEGORY Protein sequence. INPUT A protein sequence or nothing if the user uses the example OUTPUT Returns the percentage of the amino acid list in the sequence as output. EXAMPLES Input MSRSLLLRFLLFLLLLPPLP Output The percentage of hydrophilic amino acids in the example sequence is: 65.0 GITHUB https://github.com/rod13-afk/python_class/blob/master/scripts/aminoacid_list.py ''' # This function tests the robustness of the code def testing(protein): assert get_aa_percentage(example_protein, ["M"]) == 5 assert get_aa_percentage(example_protein, ['M', 'L']) == 55 assert get_aa_percentage(example_protein, ['F', 'S', 'L']) == 70 assert get_aa_percentage(example_protein, hydrophilic_aa) == 65 # This function calculates the percentage of the amino acid list in the sequence def get_aa_percentage(protein, aa_list): percentage = 0 for aa in aa_list: percentage += protein.count(aa) * 100 / len(protein) return percentage example_protein = "MSRSLLLRFLLFLLLLPPLP" hydrophilic_aa = ['A', 'I', 'L', 'M', 'F', 'W', 'Y', 'V'] # The program asks if the user wants to use a new protein or the provided example. print("Do you want to use the protein from the example in class or do you want to enter a new protein?: ") print("To use the example enter 0") print("To enter another protein enter 1") decision = int(input("Decision: ")) # This 'if' evaluates the user's decision and calls the functions with the correct parameters if decision == 0: print("The percentage of hydrophilic amino acids in the example sequence is: " + str( get_aa_percentage(example_protein, hydrophilic_aa))) testing(example_protein) elif decision == 1: print("Enter the new protein: ") new_protein = input("Protein: ") print("The percentage of hydrophilic amino acids in the new sequence is: " + str( get_aa_percentage(new_protein.upper(), hydrophilic_aa))) testing(new_protein)
""" NAME Program that calculates the percentage of a list of amino acids. VERSION [1.0] AUTHOR Rodrigo Daniel Hernandez Barrera <<rodrigoh@lcg.unam.mx>> DESCRIPTION This program takes a sequence of amino acids from a protein and a list of amino acids, looks for these in the sequence and returns the percentage, it also tests the robustness of the code, all done with functions. CATEGORY Protein sequence. INPUT A protein sequence or nothing if the user uses the example OUTPUT Returns the percentage of the amino acid list in the sequence as output. EXAMPLES Input MSRSLLLRFLLFLLLLPPLP Output The percentage of hydrophilic amino acids in the example sequence is: 65.0 GITHUB https://github.com/rod13-afk/python_class/blob/master/scripts/aminoacid_list.py """ def testing(protein): assert get_aa_percentage(example_protein, ['M']) == 5 assert get_aa_percentage(example_protein, ['M', 'L']) == 55 assert get_aa_percentage(example_protein, ['F', 'S', 'L']) == 70 assert get_aa_percentage(example_protein, hydrophilic_aa) == 65 def get_aa_percentage(protein, aa_list): percentage = 0 for aa in aa_list: percentage += protein.count(aa) * 100 / len(protein) return percentage example_protein = 'MSRSLLLRFLLFLLLLPPLP' hydrophilic_aa = ['A', 'I', 'L', 'M', 'F', 'W', 'Y', 'V'] print('Do you want to use the protein from the example in class or do you want to enter a new protein?: ') print('To use the example enter 0') print('To enter another protein enter 1') decision = int(input('Decision: ')) if decision == 0: print('The percentage of hydrophilic amino acids in the example sequence is: ' + str(get_aa_percentage(example_protein, hydrophilic_aa))) testing(example_protein) elif decision == 1: print('Enter the new protein: ') new_protein = input('Protein: ') print('The percentage of hydrophilic amino acids in the new sequence is: ' + str(get_aa_percentage(new_protein.upper(), hydrophilic_aa))) testing(new_protein)
#Gary Cunningham. 27/03/19 #My program intends to convert the string inputted by removing every second word on the output. #Adaptation from python tutorials, class content and w3schools.com interactive tutorials. #Attempted this solution alongside the inputs from the learnings of previous solutions in this problem set. n = input("Please enter a sentence: ") secondstring = (n.split()) # Using the split() function as found in python tutorials and practiced on the w3schools tutorials to understand its uses. for words in secondstring: # Creating the loop so that the split can continue regardless of the length of the inputted sentence. print(' '.join(secondstring[::2])) # Included the (::2) so that the second word of the input is removed from the program and outputted. # Was unsure how to join the outputted list to a string and found the ' '.join() function allowed accurate output. break # Included a break in the loop to ensure accuracy during testing.
n = input('Please enter a sentence: ') secondstring = n.split() for words in secondstring: print(' '.join(secondstring[::2])) break
distance = int(input('Inform the distance: ')) if distance <= 200: price = distance * 0.5 else: price = distance * 0.45 print('Your trip cost \033[1;33;44mR$ {:.2f}\033[m.'.format(price))
distance = int(input('Inform the distance: ')) if distance <= 200: price = distance * 0.5 else: price = distance * 0.45 print('Your trip cost \x1b[1;33;44mR$ {:.2f}\x1b[m.'.format(price))
#!/usr/bin/env python imagedir = parent + "/oiio-images" command += oiiotool (imagedir+"/grid.tif --scanline -o grid.iff") command += diff_command (imagedir+"/grid.tif", "grid.iff")
imagedir = parent + '/oiio-images' command += oiiotool(imagedir + '/grid.tif --scanline -o grid.iff') command += diff_command(imagedir + '/grid.tif', 'grid.iff')
"""Helper functions.""" # Given a number, finds the next number that meets # criteria 4 (digits never decrease). # # Returns that number and whether or not the new # number meets criteria 3 (two adjacent digits are the same) def part1_inc(n): digits = list(str(n + 1)) will_succeed = False for i in range(1, len(digits)): if digits[i] <= digits[i - 1]: will_succeed = True if digits[i] < digits[i - 1]: for j in range(i, len(digits)): digits[j] = digits[i - 1] # This is an optimization, but makes it hard to define # and function's behavior succinctly. # # if not will_succeed: # digits[len(digits) - 1] = '9' return (int(''.join(digits)), will_succeed) def solve(begin, end, extra_filter): n = begin result = 0 while (n <= end): z = part1_inc(n) if z[1] and z[0] <= end: if not extra_filter or extra_filter(z[0]): result += 1 n = z[0] return result def part2_filter(n): digits = list(str(n)) for i in range(1, len(digits)): if ( digits[i] == digits[i-1] and (i == 1 or digits[i-1] != digits[i-2]) and (i == len(digits) - 1 or digits[i] != digits[i+1])): return True return False
"""Helper functions.""" def part1_inc(n): digits = list(str(n + 1)) will_succeed = False for i in range(1, len(digits)): if digits[i] <= digits[i - 1]: will_succeed = True if digits[i] < digits[i - 1]: for j in range(i, len(digits)): digits[j] = digits[i - 1] return (int(''.join(digits)), will_succeed) def solve(begin, end, extra_filter): n = begin result = 0 while n <= end: z = part1_inc(n) if z[1] and z[0] <= end: if not extra_filter or extra_filter(z[0]): result += 1 n = z[0] return result def part2_filter(n): digits = list(str(n)) for i in range(1, len(digits)): if digits[i] == digits[i - 1] and (i == 1 or digits[i - 1] != digits[i - 2]) and (i == len(digits) - 1 or digits[i] != digits[i + 1]): return True return False
class Sang: def __init__(self, tittel, artist): self._tittel = tittel self._artist = artist def spill(self): print('\t Spiller av', self._tittel, 'av', self._artist) def sjekkArtist(self, navn): liste = navn.split() for i in liste: if i in self._artist: return True return False def sjekkTittel(self, tittel): if tittel.lower() == self._tittel.lower(): return True return False def sjekkArtistogTittel(self, artist, tittel): liste = artist.split() for i in liste: if i in self._artist and tittel.lower() == self._tittel.lower(): return True return False
class Sang: def __init__(self, tittel, artist): self._tittel = tittel self._artist = artist def spill(self): print('\t Spiller av', self._tittel, 'av', self._artist) def sjekk_artist(self, navn): liste = navn.split() for i in liste: if i in self._artist: return True return False def sjekk_tittel(self, tittel): if tittel.lower() == self._tittel.lower(): return True return False def sjekk_artistog_tittel(self, artist, tittel): liste = artist.split() for i in liste: if i in self._artist and tittel.lower() == self._tittel.lower(): return True return False
""" hopeit.engine CLI (Command Line Interface) module provides implementation for the following CLI commands: * **openapi** (hopeit_openapi): creation, diff and update openapi.json spec files * **server** (hopeit_server): tool for running a server instance """
""" hopeit.engine CLI (Command Line Interface) module provides implementation for the following CLI commands: * **openapi** (hopeit_openapi): creation, diff and update openapi.json spec files * **server** (hopeit_server): tool for running a server instance """
def searchInsert(nums, target): if target in nums: return nums.index(target) elif target <= nums[0]: return 0 elif target >= nums[-1]: return len(nums) else: for idx, val in enumerate(nums): if target < val: nums.index(idx, target) return nums.index(target) """ Runtime: 40 ms, faster than 98.23% of Python3 online submissions for Search Insert Position. Memory Usage: 13.5 MB, less than 100.00% of Python3 online submissions for Search Insert Position. """
def search_insert(nums, target): if target in nums: return nums.index(target) elif target <= nums[0]: return 0 elif target >= nums[-1]: return len(nums) else: for (idx, val) in enumerate(nums): if target < val: nums.index(idx, target) return nums.index(target) '\nRuntime: 40 ms, faster than 98.23% of Python3 online submissions for Search Insert Position.\nMemory Usage: 13.5 MB, less than 100.00% of Python3 online submissions for Search Insert Position.\n'
# __init__.py """ Docstring TBD """
""" Docstring TBD """
class Solution(object): def numIslands(self, grid): """ :type grid: List[List[str]] :rtype: int """ # edge case if not(grid): return 0 cnt = 0 n = len(grid) if n == 0: return 0 m = len(grid[0]) for i in range(n): for j in range(m): if grid[i][j] == '1': self.visited(grid,i,j,n,m) cnt += 1 return cnt def visited(self, grid, row, col,n,m): if row < 0 or col < 0 or row >= n or col >= m\ or grid[row][col] != '1': return grid[row][col] = '0' self.visited(grid,row+1,col,n,m) self.visited(grid,row,col+1,n,m) self.visited(grid,row-1,col,n,m) self.visited(grid,row,col-1,n,m)
class Solution(object): def num_islands(self, grid): """ :type grid: List[List[str]] :rtype: int """ if not grid: return 0 cnt = 0 n = len(grid) if n == 0: return 0 m = len(grid[0]) for i in range(n): for j in range(m): if grid[i][j] == '1': self.visited(grid, i, j, n, m) cnt += 1 return cnt def visited(self, grid, row, col, n, m): if row < 0 or col < 0 or row >= n or (col >= m) or (grid[row][col] != '1'): return grid[row][col] = '0' self.visited(grid, row + 1, col, n, m) self.visited(grid, row, col + 1, n, m) self.visited(grid, row - 1, col, n, m) self.visited(grid, row, col - 1, n, m)
l = [6,2,5,5,4,5,6,3,7,6] for _ in range(int(input())): a,b = map(int,input().split()) ans = a + b val = 0 for i in str(ans): val += l[int(i)] print(val)
l = [6, 2, 5, 5, 4, 5, 6, 3, 7, 6] for _ in range(int(input())): (a, b) = map(int, input().split()) ans = a + b val = 0 for i in str(ans): val += l[int(i)] print(val)
def measure(bucket1, bucket2, goal, start_bucket): if start_bucket == "one": liter1 = bucket1 liter2 = 0 elif start_bucket == "two": liter1 = 0 liter2 = bucket2 return bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket) def bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket): states = [(liter1, liter2)] seen = set() move_count = 1 while states != []: new_states = [] for liter1, liter2 in states: if liter1 == goal: return (move_count, "one", liter2) elif liter2 == goal: return (move_count, "two", liter1) for liter1, liter2 in move(bucket1, bucket2, liter1, liter2): if start_bucket == "one" and liter1 == 0 and liter2 == bucket2: continue if start_bucket == "two" and liter2 == 0 and liter1 == bucket1: continue if (liter1, liter2) not in seen: new_states.append((liter1, liter2)) seen.add((liter1, liter2)) states = new_states move_count += 1 return None def move(bucket1, bucket2, liter1, liter2): return [ (0, liter2), (liter1, 0), (bucket1, liter2), (liter1, bucket2), (max(liter1 + liter2, bucket2) - bucket2, min(liter1 + liter2, bucket2)), (min(liter1 + liter2, bucket1), max(liter1 + liter2, bucket1) - bucket1) ]
def measure(bucket1, bucket2, goal, start_bucket): if start_bucket == 'one': liter1 = bucket1 liter2 = 0 elif start_bucket == 'two': liter1 = 0 liter2 = bucket2 return bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket) def bfs(bucket1, bucket2, liter1, liter2, goal, start_bucket): states = [(liter1, liter2)] seen = set() move_count = 1 while states != []: new_states = [] for (liter1, liter2) in states: if liter1 == goal: return (move_count, 'one', liter2) elif liter2 == goal: return (move_count, 'two', liter1) for (liter1, liter2) in move(bucket1, bucket2, liter1, liter2): if start_bucket == 'one' and liter1 == 0 and (liter2 == bucket2): continue if start_bucket == 'two' and liter2 == 0 and (liter1 == bucket1): continue if (liter1, liter2) not in seen: new_states.append((liter1, liter2)) seen.add((liter1, liter2)) states = new_states move_count += 1 return None def move(bucket1, bucket2, liter1, liter2): return [(0, liter2), (liter1, 0), (bucket1, liter2), (liter1, bucket2), (max(liter1 + liter2, bucket2) - bucket2, min(liter1 + liter2, bucket2)), (min(liter1 + liter2, bucket1), max(liter1 + liter2, bucket1) - bucket1)]
class SymbolManager: def __init__(self): self.symbol_dic = {} def add_symbol(self, symbol): if symbol is None: return self.symbol_dic[symbol.symbol_code] = symbol def find_symbol(self, symbol_code): for symbol in self.symbol_dic.items(): if symbol[1].symbol_code == symbol_code: return symbol[1] return None
class Symbolmanager: def __init__(self): self.symbol_dic = {} def add_symbol(self, symbol): if symbol is None: return self.symbol_dic[symbol.symbol_code] = symbol def find_symbol(self, symbol_code): for symbol in self.symbol_dic.items(): if symbol[1].symbol_code == symbol_code: return symbol[1] return None
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Pieter Huycke email: pieter.huycke@ugent.be GitHub: phuycke """ #%% numbers = [] # collect the 3 numbers for i in range(3): number = input("Please provide a number: ") while True: try: number = int(number) numbers.append(number) break except ValueError: print("\n* * *\nWrong input provided\n* * *") number = input("Please provide a number: ") # catch the 0 division error try: result = (numbers[0] / numbers[1]) + numbers[2] print("Result: {0:.2f}".format(result)) except ZeroDivisionError: print("\nThe second number is 0.\nIllegal action.")
""" @author: Pieter Huycke email: pieter.huycke@ugent.be GitHub: phuycke """ numbers = [] for i in range(3): number = input('Please provide a number: ') while True: try: number = int(number) numbers.append(number) break except ValueError: print('\n* * *\nWrong input provided\n* * *') number = input('Please provide a number: ') try: result = numbers[0] / numbers[1] + numbers[2] print('Result: {0:.2f}'.format(result)) except ZeroDivisionError: print('\nThe second number is 0.\nIllegal action.')
# Constants for the Lines and Boxes game WINDOW_WIDTH = 800 WINDOW_HEIGHT = 450 WHITE = (255, 255, 255) BLACK = (0, 0, 0) GRAY = (220, 220, 220) FRAMES_PER_SECOND = 40 NROWS = 5 NCOLS = 5 NSQUARES = NROWS * NCOLS SPACING = 43 NLINES = 60 EMPTY = 'empty' HUMAN = 'human' COMPUTER = 'computer' STARTING_X = 72 STARTING_Y = 48 BOX_SIZE = 45 LINE_SIZE = 13 BOX_AND_LINE_SIZE = BOX_SIZE + LINE_SIZE SELECT = 'select' NORMAL = 'normal'
window_width = 800 window_height = 450 white = (255, 255, 255) black = (0, 0, 0) gray = (220, 220, 220) frames_per_second = 40 nrows = 5 ncols = 5 nsquares = NROWS * NCOLS spacing = 43 nlines = 60 empty = 'empty' human = 'human' computer = 'computer' starting_x = 72 starting_y = 48 box_size = 45 line_size = 13 box_and_line_size = BOX_SIZE + LINE_SIZE select = 'select' normal = 'normal'
class LinkedList: """ We represent a Linked List using Linked List class having states and behaviours states of SLL includes- self.head as an instance variable. Behaviour of LL class will include any behaviours that we implement on a Singly list list. Whenever a LL instance is initialized it will have zero nodes withing itself. Thus while initializing a LL we make self.head as None (refer __init__).""" def __init__(self): self.head=None def append_node(self,data): """ Let's write a LL behaviour which will append a data Node at last of the LL. We will pass data as a method argument and the function will instantiate a new node and append it to the LL instance, accordingly. There can be two cases- (1) Either the LL is compeltely empty i.e head is None Or or (2) The LL have some values- in this case we will search for the last Node. A last Node is defined as Node for which, the next state value is None. To search for the last Node, we will traverse the LL instance till a node which is having next state property is found. Once it is found we call that Node as last Node and initialize it's next value as reference to our new node. In All cases a New Node has to be made with data, passed as an argument.""" # In All cases a New Node has to be made with data, passed as an argument. new_node = Node(data) # In Case the LL is empty. if self.head is None: self.head = new_node # By default new_node's next is == None. return # Search for last_node: as Node having next state value as None. # One way is to run a for loop and break whenever a Node with next value None is found. # however, using break is not a good programming method. # Wherever, you find a situation to run a loop until a condition is matched, like in this case # we can use While loop of python. # condition here: last_node.next is not None. last_node = self.head # is next pointing to Null, if No, move to next Node, otherwise come out of the loop while last_node.next is not None: last_node = last_node.next # found last_node last_node.next = new_node # new_node by default have next values as None. return def print_nodes(self): if self.head is None: print("Linked List is Empty") return current_node = self.head while current_node is not None: print("current_nod data is: ",current_node.data) current_node = current_node.next print("Print_nodes complete") return class Node: """ Whenever, a Node is defined it has two states: (1) Data & (2) Next: reference to the next node. The (1) data can contain any type of data including built-int types or an class object. Now whenever a a new Node is created it can have either None data & then we class a behaviours method of Node class to insert data or we can include data within the constructor as an argument. TO safe time we will do the later here. Also, whenever a new Node is created it will have next reference value as None. As currently, it's just a standalone Node and is not added to any data structure like LL. Any Behaviours like data change within a Node will be written & explained in Node Class methods. While any change like addition or Deletion og Nodes will be be written as behaviours of LL i.e LL class Method.""" def __init__(self, data): self.data = data self.next = None if __name__=="__main__": """Driver code (1) Create LL (2) Append nodes to it""" LL1 = LinkedList() LL1.append_node(10) LL1.append_node(11) LL1.append_node('abc') LL1.print_nodes()
class Linkedlist: """ We represent a Linked List using Linked List class having states and behaviours states of SLL includes- self.head as an instance variable. Behaviour of LL class will include any behaviours that we implement on a Singly list list. Whenever a LL instance is initialized it will have zero nodes withing itself. Thus while initializing a LL we make self.head as None (refer __init__).""" def __init__(self): self.head = None def append_node(self, data): """ Let's write a LL behaviour which will append a data Node at last of the LL. We will pass data as a method argument and the function will instantiate a new node and append it to the LL instance, accordingly. There can be two cases- (1) Either the LL is compeltely empty i.e head is None Or or (2) The LL have some values- in this case we will search for the last Node. A last Node is defined as Node for which, the next state value is None. To search for the last Node, we will traverse the LL instance till a node which is having next state property is found. Once it is found we call that Node as last Node and initialize it's next value as reference to our new node. In All cases a New Node has to be made with data, passed as an argument.""" new_node = node(data) if self.head is None: self.head = new_node return last_node = self.head while last_node.next is not None: last_node = last_node.next last_node.next = new_node return def print_nodes(self): if self.head is None: print('Linked List is Empty') return current_node = self.head while current_node is not None: print('current_nod data is: ', current_node.data) current_node = current_node.next print('Print_nodes complete') return class Node: """ Whenever, a Node is defined it has two states: (1) Data & (2) Next: reference to the next node. The (1) data can contain any type of data including built-int types or an class object. Now whenever a a new Node is created it can have either None data & then we class a behaviours method of Node class to insert data or we can include data within the constructor as an argument. TO safe time we will do the later here. Also, whenever a new Node is created it will have next reference value as None. As currently, it's just a standalone Node and is not added to any data structure like LL. Any Behaviours like data change within a Node will be written & explained in Node Class methods. While any change like addition or Deletion og Nodes will be be written as behaviours of LL i.e LL class Method.""" def __init__(self, data): self.data = data self.next = None if __name__ == '__main__': 'Driver code\n (1) Create LL\n (2) Append nodes to it' ll1 = linked_list() LL1.append_node(10) LL1.append_node(11) LL1.append_node('abc') LL1.print_nodes()
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def insert_node(root, value): if root.data: if value < root.data: if root.left is None: root.left = Node(value) else: insert_node(root.left, value) elif value > root.data: if root.right is None: root.right = Node(value) else: insert_node(root.right, value) else: root.data = value def delete_node(root, value): if root is None: return root if value < root.data: root.left = delete_node(root.left, value) return root if value > root.data: root.right = delete_node(root.right, value) return root if root.right is None: return root.left if root.left is None: return root.right min_larger_node = root.right while min_larger_node.left: min_larger_node = min_larger_node.left root.data = min_larger_node.data root.right = delete_node(min_larger_node.data) return root def show_tree(root): if root is None: return [] result = [] stack = [root] while len(stack) > 0: current = stack.pop() result.append(current.data) if current.left: stack.append(current.left) if current.right: stack.append(current.right) return print(result) def print_tree(root): if root.left: print_tree(root.left) print(root.data) if root.right: print_tree(root.right) def exists_in_tree(root, key): if key == root.data: return True if key < root.data: if root.left is None: return False return exists_in_tree(root.left, key) elif key > root.data: if root.right is None: return False return exists_in_tree(root.right, key) def get_min(root): current = root while current.left is not None: current = current.left return current.data def get_max(root): current = root while current.right is not None: current = current.right return current.data def get_height(root): return 1 + max( get_height(root.left) if root.left else -1, get_height(root.right) if root.right else -1 ) def is_balanced(root): def _balanced(root): if root is None: return (True, 0) leftBalanced, leftHeight = _balanced(root.left) rightBalanced, rightHeight = _balanced(root.right) if leftBalanced and rightBalanced and abs(leftHeight - rightHeight) < 2: currentHeight = max(leftHeight, rightHeight) + 1 return (True, currentHeight) return (False, None) return _balanced(root)[0] def reverse_binary_tree(root): if root is None: return root root.left, root.right = root.right, root.left reverse_binary_tree(root.left) reverse_binary_tree(root.right) return root tree = Node(20) insertion = [1, 2, 8, 9, 11, 12, 18, 19] for i in insertion: insert_node(tree, i) print_tree(tree) delete_node(tree, 11) print_tree(tree) print(is_balanced(tree))
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def insert_node(root, value): if root.data: if value < root.data: if root.left is None: root.left = node(value) else: insert_node(root.left, value) elif value > root.data: if root.right is None: root.right = node(value) else: insert_node(root.right, value) else: root.data = value def delete_node(root, value): if root is None: return root if value < root.data: root.left = delete_node(root.left, value) return root if value > root.data: root.right = delete_node(root.right, value) return root if root.right is None: return root.left if root.left is None: return root.right min_larger_node = root.right while min_larger_node.left: min_larger_node = min_larger_node.left root.data = min_larger_node.data root.right = delete_node(min_larger_node.data) return root def show_tree(root): if root is None: return [] result = [] stack = [root] while len(stack) > 0: current = stack.pop() result.append(current.data) if current.left: stack.append(current.left) if current.right: stack.append(current.right) return print(result) def print_tree(root): if root.left: print_tree(root.left) print(root.data) if root.right: print_tree(root.right) def exists_in_tree(root, key): if key == root.data: return True if key < root.data: if root.left is None: return False return exists_in_tree(root.left, key) elif key > root.data: if root.right is None: return False return exists_in_tree(root.right, key) def get_min(root): current = root while current.left is not None: current = current.left return current.data def get_max(root): current = root while current.right is not None: current = current.right return current.data def get_height(root): return 1 + max(get_height(root.left) if root.left else -1, get_height(root.right) if root.right else -1) def is_balanced(root): def _balanced(root): if root is None: return (True, 0) (left_balanced, left_height) = _balanced(root.left) (right_balanced, right_height) = _balanced(root.right) if leftBalanced and rightBalanced and (abs(leftHeight - rightHeight) < 2): current_height = max(leftHeight, rightHeight) + 1 return (True, currentHeight) return (False, None) return _balanced(root)[0] def reverse_binary_tree(root): if root is None: return root (root.left, root.right) = (root.right, root.left) reverse_binary_tree(root.left) reverse_binary_tree(root.right) return root tree = node(20) insertion = [1, 2, 8, 9, 11, 12, 18, 19] for i in insertion: insert_node(tree, i) print_tree(tree) delete_node(tree, 11) print_tree(tree) print(is_balanced(tree))
# # PySNMP MIB module A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:08:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, Integer32, Bits, Unsigned32, ObjectIdentity, Gauge32, MibIdentifier, iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter64, enterprises, ModuleIdentity, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Integer32", "Bits", "Unsigned32", "ObjectIdentity", "Gauge32", "MibIdentifier", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter64", "enterprises", "ModuleIdentity", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) a3Com = MibIdentifier((1, 3, 6, 1, 4, 1, 43)) switchingSystemsMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29)) a3ComSwitchingSystemsMib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4)) a3ComRoutePolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4, 23)) a3ComRoutePolicyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1), ) if mibBuilder.loadTexts: a3ComRoutePolicyTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyTable.setDescription('This table is used to provide routing policy facilities. The implementation allows a list of policies to be set up and matched before a given route is learned or advertised by the router, which is the device being managed.') a3ComRoutePolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setDescription('An entry used to define a routing policy. A row in this table is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). The only mandatory object in this table is the a3ComRoutePolicyProtocolType. An entry in this table is deleted by setting a3ComRoutePolicyRowStatus to destroy(6), indexed by the id of the entry about to be removed. An example of the indexing of this table is a3ComRoutePolicyType.3') a3ComRoutePolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setDescription('Unique identifier of a row in the policy table. The actual number of rows that can be created on any particular device depends on the memory and processing resources available at the time.') a3ComRoutePolicyProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("undefined", 1), ("ip-rip", 2), ("ip-ospf", 3), ("ip-bgp4", 4), ("ipx-rip", 5), ("ipx-sap", 6), ("at-rtmp", 7), ("at-kip", 8), ("at-aurp", 9))).clone('undefined')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setDescription('This mandatory object defines the protocol in which a policy will be used. Once such protocol family is defined, the agent will use this information to parse the source, route, as well as all other objects that apply. Once a policy entry is successfully made active(1), this object may not be modified. If the protocol chosen is not supported by the agent or is set to undefined(1), an error is returned.') a3ComRoutePolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("import", 1), ("export", 2))).clone('import')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyType.setDescription('This object specifies what type of policy this is. The type import regards to ingress -- where a route advertised externally is learned by the device managed. And the type export regards to egress -- where a route is advertised by the device managed. Note that the type of policy also mandates which fields are to be parsed upon entry activation. This object can be no longer modified once the entry is activated.') a3ComRoutePolicyOriginProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setDescription('This object is only used when a3ComRoutePolicyType is set to export(2). It makes up a mask of protocols, within the protocol suite, that matches the policy entry. If set to zero, the mask will be interpreted as a match, independent of how the route was learned. A value of 1 stands for matches on routes directly attached. A value of 2 stands for matches on routes that were statically defined in the routing table. All other values in the mask carry different meaning, depending on the current value of a3ComRoutePolicyProtocolType. The following tables summarizes such values: ------------------------------------- Any Protocol Family ------------------------------------- 00 | all (route learned by any way) 01 | directly attached route 02 | statically defined route ------------------------------------- ------------------------------------- IP | IPX | APPLETALK ------------------------------------- 04 | rip | rip | rtmp 08 | ospf | sap | kip 16 | bgp4 | unused | aurp 32 | unused | unused | unused ------------------------------------- Table 1: Route policy origin protocol mask The value of this object can be modified at any time. Examples: 1) When exporting from any protocol suite, any route learned in that suite will be advertised if a3ComRoutePolicyOriginProtocol is set to zero and the other preconditions apply. 2) When exporting from any protocol suite, only routes that were learned from static definition or that are directly attached would be advertised if a3ComRoutePolicyOriginProtocol is set to 3 (mask of 1 + 2) and the other preconditions apply. 3) When exporting from ip_rip(2), only routes that were learned from rip or bgp4 advertisements would be given out if a3ComRoutePolicyOriginProtocol is set to 20 (mask of 4 + 16) and the other preconditions apply. 4) If at example 3 we had a3ComRoutePolicyProtocolType set to at_rtmp(7) instead of ip_rip(2), the same value (i.e. 20) would indicate that advertisements under appleTalk rtmp would only include routes learned from rtmp(4) or aurp(16).') a3ComRoutePolicySourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setDescription('This DisplayString is the network address of the gateway to the route address. Note that when the policy is of the type import(1), this object will correspond to a neighboring router address, and for export(2) policies, this object will most likely correspond to the address of the managed device. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Also note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicySourceAddress is set to empty, which is the default value, the matching process will be independent from the address of the router that is advertising. The value of this object can be modified at any time.') a3ComRoutePolicyRouteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setDescription('This DisplayString is the network address of the route to which this policy applies. Such address will be known when a route advertisement is received by the device being managed. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format if such is an ip address. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicyRouteAddress is set to empty, which is the default value, the matching process will be independent from the route. The value of this object can be modified at any time.') a3ComRoutePolicyRouteMask = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setDescription('This DisplayString is the network mask of the route to which this policy applies. The following formats can be used: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format The agent will be smart enough to understand either one of the two formats listed, based on the size of the argument given. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format. a3ComRoutePolicyRouteMask will be ignored if the protocol family is not ip or if a3ComRoutePolicyRouteAddress is empty. On the other hand, an error will be returned if an invalid mask is existent upon entry activation. The value of this object can be modified at any time.') a3ComRoutePolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("accept", 1), ("reject", 2))).clone('accept')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAction.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setDescription('This object specifies whether the protocol rejects a route that matches the policy or accepts it. a3ComRoutePolicyAction can be modified at any time.') a3ComRoutePolicyAdjustMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noop", 1), ("add", 2), ("subtract", 3), ("multiply", 4), ("divide", 5), ("module", 6))).clone('noop')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setDescription('This object defines what type of operation that can be additionally performed at a route metric. Note that this object will be always ignored if a3ComRoutePolicyAction is of the type reject(2). Furthermore, a3ComRoutePolicyAdjustMetric will also be ignored in occasions where a3ComRoutePolicyAction is of the type accept(1) and the object a3ComRoutePolicyMetric is set to zero. a3ComRoutePolicyAdjustMetric can be modified at any time.') a3ComRoutePolicyMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setDescription('This object is the value by which an additional adjustment can be performed on a matched route metric. The actual operation performed is defined by a3ComRoutePolicyAdjustMetric. If a3ComRoutePolicyMetric is zero, no metric adjustments are made. If a3ComRoutePolicyAdjustMetric is set to noop(1) and a3ComRoutePolicyMetric is a non-zero value, such value will be unconditionally used as the route metric. Note that the a3ComRoutePolicyMetric is only used when a3ComRoutePolicyAction is set to accept(1). If this object is set with a value outside its scope, which varies depending on a3ComRoutePolicyProtocolType, the lowest or highest value will be used instead and no error will be returned. This object can be modified at any time.') a3ComRoutePolicyWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setDescription('This object assigns an administrative weight to the policy entry. A policy with a higher value takes precedence over a policy with a lower value. Usage of a3ComRoutePolicyWeight applies when an order of precedence is desired within multiple policies that match a common route. This object can be modified at any time.') a3ComRoutePolicyExportType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ip-ospf-type1", 1), ("ip-ospf-type2", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setDescription("This object describes which type of route advertisement the router will use when a given protocol can export routes in multiple ways. In situations when there is only one way routes can be exported, a3ComRoutePolicyExportType will be ignored. If a3ComRoutePolicyExportType is set to a value not supported by the router or just doesn't match the protocol family being used, the device being managed will automatically use the default advertisement type and no error will be returned.") a3ComRoutePolicyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setDescription('The status column for a routing policy. This object can be set to: active(1), createAndGo(4), createAndWait(5), destroy(6) The following values may be read: inactive(2) active(1) A new policy entry in this table is created by setting this object to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). An error will be returned when an existing policy entry is set to createAndGo(4) or createAndWait(5), and that is a mechanism to detect racing conditions. Setting this object to active(1) causes the agent to attempt to commit to row based on the contents of the object in the row. If all necessary information is present in the row and the values are acceptable to the agent, the agent will change the status to active(1). If any of the necessary objects are not available or result in error, the agent will reject the request. Once a policy entry is made active(1), most fields can still be modified. Setting this object to destroy(6) will remove the entry.') a3ComRoutePolicyNextFreeIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setDescription('The value of the next available policy entry. This object is automatically increased once a new policy is successfully made active(1). A new policy entry in a3ComRoutePolicyTable is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the value of this object.') a3ComRoutePolicyIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3), ) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setDescription("This table is used to provide a list of ip interfaces under a given policy. Thus, the list generated under this table only applies to policies under the ip suite. Furthermore, the current mib specification resorts only two conditions: 1) a3ComRoutePolicyProtocolType set to ip_rip(2) 2) a3ComRoutePolicyProtocolType set to ip_ospf(3), a3ComRoutePolicyType is set to export(2) and the route about to be advertised is from ospf's direct policy. In any condition other than these two, this table will simply be ignored and no errors are returned, even if there are entries defined. In situations where either one of the conditions listed above is true and there are no entries in this table for the policy it is indexed by, any interface will satisfy. In other words, an empty list stands for an unconditional match on the interface, given all other preconditions apply. If one or more entries in this table are present and the policy is of one of the two types listed above, a route will be advertised/learned (or not, depending on a3ComRoutePolicyAction) only through the interfaces listed.") a3ComRoutePolicyIpIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfIndex"), (0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfAddressIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setDescription('An entry used to define an ip interface under a policy. A row in this table is created by setting a3ComRoutePolicyIpIfRowStatus with createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). Entries in this table can be added or removed at any time. If an invalid address or policy index is given, an error is returned. An example of the indexing of this table is a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205 which would stand for a3ComRoutePolicyEntry of index 3 with the ip address 158.101.112.205') a3ComRoutePolicyIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setDescription('The identifier of a policy entry under a3ComRoutePolicyTable that this entry belongs to. Note that it is possible to have multiple entries in this table (a3ComRoutePolicyIpIfTable) with the same a3ComRoutePolicyIpIfIndex, and that is why this table is indexed by both a3ComRoutePolicyIpIfIndex and a3ComRoutePolicyIpIfAddressIndex.') a3ComRoutePolicyIpIfAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setDescription('The address of an existing ip interface at the device being managed.') a3ComRoutePolicyIpIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 3), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setDescription('The status column for an ip interface of a routing policy. This object can be set to: createAndGo(4), destroy(6) The following values may be read: active(1) A new ip interface entry in this table is created by setting this object to createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An error will be returned if any of the fields listed above contain invalid value. Once created successfully, this entry will automatically be made active(1). An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). If a new entry, for instance, was to be created in this table for the policy 2 with ip interface address of 158.101.112.205, this object would be set to createAndGo(4) with the oid a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205') mibBuilder.exportSymbols("A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", a3ComRoutePolicyAdjustMetric=a3ComRoutePolicyAdjustMetric, a3ComSwitchingSystemsMib=a3ComSwitchingSystemsMib, a3ComRoutePolicyIpIfRowStatus=a3ComRoutePolicyIpIfRowStatus, a3ComRoutePolicyWeight=a3ComRoutePolicyWeight, a3ComRoutePolicyIpIfTable=a3ComRoutePolicyIpIfTable, a3ComRoutePolicySourceAddress=a3ComRoutePolicySourceAddress, a3ComRoutePolicyAction=a3ComRoutePolicyAction, a3ComRoutePolicyType=a3ComRoutePolicyType, a3ComRoutePolicyNextFreeIndex=a3ComRoutePolicyNextFreeIndex, a3ComRoutePolicyMetric=a3ComRoutePolicyMetric, a3Com=a3Com, a3ComRoutePolicyIndex=a3ComRoutePolicyIndex, a3ComRoutePolicyExportType=a3ComRoutePolicyExportType, a3ComRoutePolicyRowStatus=a3ComRoutePolicyRowStatus, a3ComRoutePolicyIpIfIndex=a3ComRoutePolicyIpIfIndex, a3ComRoutePolicyEntry=a3ComRoutePolicyEntry, a3ComRoutePolicy=a3ComRoutePolicy, a3ComRoutePolicyProtocolType=a3ComRoutePolicyProtocolType, a3ComRoutePolicyRouteAddress=a3ComRoutePolicyRouteAddress, a3ComRoutePolicyIpIfAddressIndex=a3ComRoutePolicyIpIfAddressIndex, a3ComRoutePolicyRouteMask=a3ComRoutePolicyRouteMask, RowStatus=RowStatus, switchingSystemsMibs=switchingSystemsMibs, a3ComRoutePolicyOriginProtocol=a3ComRoutePolicyOriginProtocol, a3ComRoutePolicyTable=a3ComRoutePolicyTable, a3ComRoutePolicyIpIfEntry=a3ComRoutePolicyIpIfEntry)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, value_range_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, integer32, bits, unsigned32, object_identity, gauge32, mib_identifier, iso, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, counter64, enterprises, module_identity, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Integer32', 'Bits', 'Unsigned32', 'ObjectIdentity', 'Gauge32', 'MibIdentifier', 'iso', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Counter64', 'enterprises', 'ModuleIdentity', 'IpAddress') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Rowstatus(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)) a3_com = mib_identifier((1, 3, 6, 1, 4, 1, 43)) switching_systems_mibs = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29)) a3_com_switching_systems_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29, 4)) a3_com_route_policy = mib_identifier((1, 3, 6, 1, 4, 1, 43, 29, 4, 23)) a3_com_route_policy_table = mib_table((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1)) if mibBuilder.loadTexts: a3ComRoutePolicyTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyTable.setDescription('This table is used to provide routing policy facilities. The implementation allows a list of policies to be set up and matched before a given route is learned or advertised by the router, which is the device being managed.') a3_com_route_policy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1)).setIndexNames((0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIndex')) if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setDescription('An entry used to define a routing policy. A row in this table is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). The only mandatory object in this table is the a3ComRoutePolicyProtocolType. An entry in this table is deleted by setting a3ComRoutePolicyRowStatus to destroy(6), indexed by the id of the entry about to be removed. An example of the indexing of this table is a3ComRoutePolicyType.3') a3_com_route_policy_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setDescription('Unique identifier of a row in the policy table. The actual number of rows that can be created on any particular device depends on the memory and processing resources available at the time.') a3_com_route_policy_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('undefined', 1), ('ip-rip', 2), ('ip-ospf', 3), ('ip-bgp4', 4), ('ipx-rip', 5), ('ipx-sap', 6), ('at-rtmp', 7), ('at-kip', 8), ('at-aurp', 9))).clone('undefined')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setDescription('This mandatory object defines the protocol in which a policy will be used. Once such protocol family is defined, the agent will use this information to parse the source, route, as well as all other objects that apply. Once a policy entry is successfully made active(1), this object may not be modified. If the protocol chosen is not supported by the agent or is set to undefined(1), an error is returned.') a3_com_route_policy_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('import', 1), ('export', 2))).clone('import')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyType.setDescription('This object specifies what type of policy this is. The type import regards to ingress -- where a route advertised externally is learned by the device managed. And the type export regards to egress -- where a route is advertised by the device managed. Note that the type of policy also mandates which fields are to be parsed upon entry activation. This object can be no longer modified once the entry is activated.') a3_com_route_policy_origin_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setDescription('This object is only used when a3ComRoutePolicyType is set to export(2). It makes up a mask of protocols, within the protocol suite, that matches the policy entry. If set to zero, the mask will be interpreted as a match, independent of how the route was learned. A value of 1 stands for matches on routes directly attached. A value of 2 stands for matches on routes that were statically defined in the routing table. All other values in the mask carry different meaning, depending on the current value of a3ComRoutePolicyProtocolType. The following tables summarizes such values: ------------------------------------- Any Protocol Family ------------------------------------- 00 | all (route learned by any way) 01 | directly attached route 02 | statically defined route ------------------------------------- ------------------------------------- IP | IPX | APPLETALK ------------------------------------- 04 | rip | rip | rtmp 08 | ospf | sap | kip 16 | bgp4 | unused | aurp 32 | unused | unused | unused ------------------------------------- Table 1: Route policy origin protocol mask The value of this object can be modified at any time. Examples: 1) When exporting from any protocol suite, any route learned in that suite will be advertised if a3ComRoutePolicyOriginProtocol is set to zero and the other preconditions apply. 2) When exporting from any protocol suite, only routes that were learned from static definition or that are directly attached would be advertised if a3ComRoutePolicyOriginProtocol is set to 3 (mask of 1 + 2) and the other preconditions apply. 3) When exporting from ip_rip(2), only routes that were learned from rip or bgp4 advertisements would be given out if a3ComRoutePolicyOriginProtocol is set to 20 (mask of 4 + 16) and the other preconditions apply. 4) If at example 3 we had a3ComRoutePolicyProtocolType set to at_rtmp(7) instead of ip_rip(2), the same value (i.e. 20) would indicate that advertisements under appleTalk rtmp would only include routes learned from rtmp(4) or aurp(16).') a3_com_route_policy_source_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setDescription('This DisplayString is the network address of the gateway to the route address. Note that when the policy is of the type import(1), this object will correspond to a neighboring router address, and for export(2) policies, this object will most likely correspond to the address of the managed device. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Also note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicySourceAddress is set to empty, which is the default value, the matching process will be independent from the address of the router that is advertising. The value of this object can be modified at any time.') a3_com_route_policy_route_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setDescription('This DisplayString is the network address of the route to which this policy applies. Such address will be known when a route advertisement is received by the device being managed. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format if such is an ip address. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicyRouteAddress is set to empty, which is the default value, the matching process will be independent from the route. The value of this object can be modified at any time.') a3_com_route_policy_route_mask = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setDescription('This DisplayString is the network mask of the route to which this policy applies. The following formats can be used: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format The agent will be smart enough to understand either one of the two formats listed, based on the size of the argument given. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format. a3ComRoutePolicyRouteMask will be ignored if the protocol family is not ip or if a3ComRoutePolicyRouteAddress is empty. On the other hand, an error will be returned if an invalid mask is existent upon entry activation. The value of this object can be modified at any time.') a3_com_route_policy_action = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('accept', 1), ('reject', 2))).clone('accept')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setDescription('This object specifies whether the protocol rejects a route that matches the policy or accepts it. a3ComRoutePolicyAction can be modified at any time.') a3_com_route_policy_adjust_metric = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noop', 1), ('add', 2), ('subtract', 3), ('multiply', 4), ('divide', 5), ('module', 6))).clone('noop')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setDescription('This object defines what type of operation that can be additionally performed at a route metric. Note that this object will be always ignored if a3ComRoutePolicyAction is of the type reject(2). Furthermore, a3ComRoutePolicyAdjustMetric will also be ignored in occasions where a3ComRoutePolicyAction is of the type accept(1) and the object a3ComRoutePolicyMetric is set to zero. a3ComRoutePolicyAdjustMetric can be modified at any time.') a3_com_route_policy_metric = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setDescription('This object is the value by which an additional adjustment can be performed on a matched route metric. The actual operation performed is defined by a3ComRoutePolicyAdjustMetric. If a3ComRoutePolicyMetric is zero, no metric adjustments are made. If a3ComRoutePolicyAdjustMetric is set to noop(1) and a3ComRoutePolicyMetric is a non-zero value, such value will be unconditionally used as the route metric. Note that the a3ComRoutePolicyMetric is only used when a3ComRoutePolicyAction is set to accept(1). If this object is set with a value outside its scope, which varies depending on a3ComRoutePolicyProtocolType, the lowest or highest value will be used instead and no error will be returned. This object can be modified at any time.') a3_com_route_policy_weight = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setDescription('This object assigns an administrative weight to the policy entry. A policy with a higher value takes precedence over a policy with a lower value. Usage of a3ComRoutePolicyWeight applies when an order of precedence is desired within multiple policies that match a common route. This object can be modified at any time.') a3_com_route_policy_export_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ip-ospf-type1', 1), ('ip-ospf-type2', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setDescription("This object describes which type of route advertisement the router will use when a given protocol can export routes in multiple ways. In situations when there is only one way routes can be exported, a3ComRoutePolicyExportType will be ignored. If a3ComRoutePolicyExportType is set to a value not supported by the router or just doesn't match the protocol family being used, the device being managed will automatically use the default advertisement type and no error will be returned.") a3_com_route_policy_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setDescription('The status column for a routing policy. This object can be set to: active(1), createAndGo(4), createAndWait(5), destroy(6) The following values may be read: inactive(2) active(1) A new policy entry in this table is created by setting this object to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). An error will be returned when an existing policy entry is set to createAndGo(4) or createAndWait(5), and that is a mechanism to detect racing conditions. Setting this object to active(1) causes the agent to attempt to commit to row based on the contents of the object in the row. If all necessary information is present in the row and the values are acceptable to the agent, the agent will change the status to active(1). If any of the necessary objects are not available or result in error, the agent will reject the request. Once a policy entry is made active(1), most fields can still be modified. Setting this object to destroy(6) will remove the entry.') a3_com_route_policy_next_free_index = mib_scalar((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setDescription('The value of the next available policy entry. This object is automatically increased once a new policy is successfully made active(1). A new policy entry in a3ComRoutePolicyTable is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the value of this object.') a3_com_route_policy_ip_if_table = mib_table((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3)) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setDescription("This table is used to provide a list of ip interfaces under a given policy. Thus, the list generated under this table only applies to policies under the ip suite. Furthermore, the current mib specification resorts only two conditions: 1) a3ComRoutePolicyProtocolType set to ip_rip(2) 2) a3ComRoutePolicyProtocolType set to ip_ospf(3), a3ComRoutePolicyType is set to export(2) and the route about to be advertised is from ospf's direct policy. In any condition other than these two, this table will simply be ignored and no errors are returned, even if there are entries defined. In situations where either one of the conditions listed above is true and there are no entries in this table for the policy it is indexed by, any interface will satisfy. In other words, an empty list stands for an unconditional match on the interface, given all other preconditions apply. If one or more entries in this table are present and the policy is of one of the two types listed above, a route will be advertised/learned (or not, depending on a3ComRoutePolicyAction) only through the interfaces listed.") a3_com_route_policy_ip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1)).setIndexNames((0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIpIfIndex'), (0, 'A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', 'a3ComRoutePolicyIpIfAddressIndex')) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setDescription('An entry used to define an ip interface under a policy. A row in this table is created by setting a3ComRoutePolicyIpIfRowStatus with createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). Entries in this table can be added or removed at any time. If an invalid address or policy index is given, an error is returned. An example of the indexing of this table is a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205 which would stand for a3ComRoutePolicyEntry of index 3 with the ip address 158.101.112.205') a3_com_route_policy_ip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setDescription('The identifier of a policy entry under a3ComRoutePolicyTable that this entry belongs to. Note that it is possible to have multiple entries in this table (a3ComRoutePolicyIpIfTable) with the same a3ComRoutePolicyIpIfIndex, and that is why this table is indexed by both a3ComRoutePolicyIpIfIndex and a3ComRoutePolicyIpIfAddressIndex.') a3_com_route_policy_ip_if_address_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setDescription('The address of an existing ip interface at the device being managed.') a3_com_route_policy_ip_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 3), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setDescription('The status column for an ip interface of a routing policy. This object can be set to: createAndGo(4), destroy(6) The following values may be read: active(1) A new ip interface entry in this table is created by setting this object to createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An error will be returned if any of the fields listed above contain invalid value. Once created successfully, this entry will automatically be made active(1). An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). If a new entry, for instance, was to be created in this table for the policy 2 with ip interface address of 158.101.112.205, this object would be set to createAndGo(4) with the oid a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205') mibBuilder.exportSymbols('A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB', a3ComRoutePolicyAdjustMetric=a3ComRoutePolicyAdjustMetric, a3ComSwitchingSystemsMib=a3ComSwitchingSystemsMib, a3ComRoutePolicyIpIfRowStatus=a3ComRoutePolicyIpIfRowStatus, a3ComRoutePolicyWeight=a3ComRoutePolicyWeight, a3ComRoutePolicyIpIfTable=a3ComRoutePolicyIpIfTable, a3ComRoutePolicySourceAddress=a3ComRoutePolicySourceAddress, a3ComRoutePolicyAction=a3ComRoutePolicyAction, a3ComRoutePolicyType=a3ComRoutePolicyType, a3ComRoutePolicyNextFreeIndex=a3ComRoutePolicyNextFreeIndex, a3ComRoutePolicyMetric=a3ComRoutePolicyMetric, a3Com=a3Com, a3ComRoutePolicyIndex=a3ComRoutePolicyIndex, a3ComRoutePolicyExportType=a3ComRoutePolicyExportType, a3ComRoutePolicyRowStatus=a3ComRoutePolicyRowStatus, a3ComRoutePolicyIpIfIndex=a3ComRoutePolicyIpIfIndex, a3ComRoutePolicyEntry=a3ComRoutePolicyEntry, a3ComRoutePolicy=a3ComRoutePolicy, a3ComRoutePolicyProtocolType=a3ComRoutePolicyProtocolType, a3ComRoutePolicyRouteAddress=a3ComRoutePolicyRouteAddress, a3ComRoutePolicyIpIfAddressIndex=a3ComRoutePolicyIpIfAddressIndex, a3ComRoutePolicyRouteMask=a3ComRoutePolicyRouteMask, RowStatus=RowStatus, switchingSystemsMibs=switchingSystemsMibs, a3ComRoutePolicyOriginProtocol=a3ComRoutePolicyOriginProtocol, a3ComRoutePolicyTable=a3ComRoutePolicyTable, a3ComRoutePolicyIpIfEntry=a3ComRoutePolicyIpIfEntry)
class HttpQueryError(Exception): def __init__(self, status_code, message=None, is_graphql_error=False, headers=None): """Create a HTTP query error. You need to pass the HTTP status code, the message that shall be shown, whether this is a GraphQL error, and the HTTP headers that shall be sent. """ self.status_code = status_code self.message = message self.is_graphql_error = is_graphql_error self.headers = headers super(HttpQueryError, self).__init__(message) def __eq__(self, other): """Check whether this HTTP query error is equal to another one.""" return ( isinstance(other, HttpQueryError) and other.status_code == self.status_code and other.message == self.message and other.headers == self.headers ) def __hash__(self): headers_hash = tuple(self.headers.items()) if self.headers else None return hash((self.status_code, self.message, headers_hash))
class Httpqueryerror(Exception): def __init__(self, status_code, message=None, is_graphql_error=False, headers=None): """Create a HTTP query error. You need to pass the HTTP status code, the message that shall be shown, whether this is a GraphQL error, and the HTTP headers that shall be sent. """ self.status_code = status_code self.message = message self.is_graphql_error = is_graphql_error self.headers = headers super(HttpQueryError, self).__init__(message) def __eq__(self, other): """Check whether this HTTP query error is equal to another one.""" return isinstance(other, HttpQueryError) and other.status_code == self.status_code and (other.message == self.message) and (other.headers == self.headers) def __hash__(self): headers_hash = tuple(self.headers.items()) if self.headers else None return hash((self.status_code, self.message, headers_hash))
#Programa para saber la nota nota = int(input("Introduce tu nota: ")) if nota < 5: print("Insuficiente: esfuerzate mas") elif nota < 6: print("Suficiente") elif nota < 7: print("Bien") elif nota < 9: print("Notable") else: print("Sobresaliente: eres un/a crack")
nota = int(input('Introduce tu nota: ')) if nota < 5: print('Insuficiente: esfuerzate mas') elif nota < 6: print('Suficiente') elif nota < 7: print('Bien') elif nota < 9: print('Notable') else: print('Sobresaliente: eres un/a crack')
"""Utility for configurable dictionary merges.""" class NoValue(object): """ Placeholder for a no-value type. """ pass # singleton for NoValue no_value = NoValue() def discard(dst, src, key, default): """Does nothing, effectively discarding the merged value.""" return no_value def override(left, right, key, default): """Returns right[key] if exists, else left[key].""" return right.get(key, left.get(key, default)) def shallow(left, right, key, default): """Updates fields from src at key, into key at dst. """ left_v = left.get(key, default) if key in right: right_v = right[key] if key in left: if isinstance(left_v, dict) and isinstance(right_v, dict): return dict(left_v, **right_v) return right_v return left_v # TODO: deep merge class Merge(object): def __init__(self, key_fn, default_fn, *args, **kwargs): """Creates a merge strategy for the provided dictionaries and/or keys.""" self._key_fn = key_fn if isinstance(key_fn, list): self._key_fn = lambda l, r: key_fn self._default_fn = default_fn self._strategy = dict(*args, **kwargs) def __call__(self, left, right, default=None): """Returns the merge of right to left for all keys in keys. If no such key exists in left or right, default is used as the value. """ keys = self._key_fn(left, right) result = {} for key in keys: value = self._strategy.get(key, self._default_fn)(left, right, key, default) if value != no_value: result[key] = value return result def inner(left, right): """Returns keys from right to left for all keys that exist in both.""" return set(left.keys()) & set(right.keys()) def full(left, right): """Returns keys from right to left for all keys that exist in either.""" return set(left.keys()) | set(right.keys()) def outermost(left, right): """Returns keys from right to left for all keys exclusive to both left and right.""" return set(left.keys()) ^ set(right.keys()) def left(left, right): """Returns keys from right to left for all keys in left.""" return set(left.keys()) def leftmost(left, right): """Returns keys from right to left for keys that exist only in left.""" return set(left.keys()) - set(right.keys()) def right(left, right): """Returns keys from right to left for all keys in right.""" return set(right.keys()) def rightmost(left, right): """Returns keys from right to left for keys that exist only in right.""" return set(right.keys()) - set(left.keys())
"""Utility for configurable dictionary merges.""" class Novalue(object): """ Placeholder for a no-value type. """ pass no_value = no_value() def discard(dst, src, key, default): """Does nothing, effectively discarding the merged value.""" return no_value def override(left, right, key, default): """Returns right[key] if exists, else left[key].""" return right.get(key, left.get(key, default)) def shallow(left, right, key, default): """Updates fields from src at key, into key at dst. """ left_v = left.get(key, default) if key in right: right_v = right[key] if key in left: if isinstance(left_v, dict) and isinstance(right_v, dict): return dict(left_v, **right_v) return right_v return left_v class Merge(object): def __init__(self, key_fn, default_fn, *args, **kwargs): """Creates a merge strategy for the provided dictionaries and/or keys.""" self._key_fn = key_fn if isinstance(key_fn, list): self._key_fn = lambda l, r: key_fn self._default_fn = default_fn self._strategy = dict(*args, **kwargs) def __call__(self, left, right, default=None): """Returns the merge of right to left for all keys in keys. If no such key exists in left or right, default is used as the value. """ keys = self._key_fn(left, right) result = {} for key in keys: value = self._strategy.get(key, self._default_fn)(left, right, key, default) if value != no_value: result[key] = value return result def inner(left, right): """Returns keys from right to left for all keys that exist in both.""" return set(left.keys()) & set(right.keys()) def full(left, right): """Returns keys from right to left for all keys that exist in either.""" return set(left.keys()) | set(right.keys()) def outermost(left, right): """Returns keys from right to left for all keys exclusive to both left and right.""" return set(left.keys()) ^ set(right.keys()) def left(left, right): """Returns keys from right to left for all keys in left.""" return set(left.keys()) def leftmost(left, right): """Returns keys from right to left for keys that exist only in left.""" return set(left.keys()) - set(right.keys()) def right(left, right): """Returns keys from right to left for all keys in right.""" return set(right.keys()) def rightmost(left, right): """Returns keys from right to left for keys that exist only in right.""" return set(right.keys()) - set(left.keys())
# -*- coding: utf-8 -*- """Top-level package for PoC DependaBot.""" __author__ = """Ivan Ogasawara""" __email__ = 'ivan.ogasawara@gmail.com' __version__ = '1.0.0'
"""Top-level package for PoC DependaBot.""" __author__ = 'Ivan Ogasawara' __email__ = 'ivan.ogasawara@gmail.com' __version__ = '1.0.0'
# Data Types a = 5 print(a, "is of type", type(a)) a = 2.0 print(a, "is of type", type(a)) a = 1+2j print(a, "is complex number?", isinstance(1+2j,complex))
a = 5 print(a, 'is of type', type(a)) a = 2.0 print(a, 'is of type', type(a)) a = 1 + 2j print(a, 'is complex number?', isinstance(1 + 2j, complex))
#! /usr/bin/python3 #Note: Binary to Decimal Calculator #Author: Khondakar choice = int(input("[1] Decimal to Binary conversion. " + "\n[2] Binary to Decimal conversion. \nEnter choice: ")) # print("1: Decimal to Binary") # print("2: Binary to Decimal") val = "" if choice == 1: numb = int(input("Enter your whole Decimal number (integer): ")) while numb > 1: val = str(numb % 2) + val numb = numb // 2 val = str(numb % 2) + val print(val) elif choice == 2: total = 0 numb = (input("Enter your whole Binary number: ")) for i in range(1, (numb.__len__())+1): if numb[-i] == str(1): total = total + (2**(i-1)) print(total)
choice = int(input('[1] Decimal to Binary conversion. ' + '\n[2] Binary to Decimal conversion. \nEnter choice: ')) val = '' if choice == 1: numb = int(input('Enter your whole Decimal number (integer): ')) while numb > 1: val = str(numb % 2) + val numb = numb // 2 val = str(numb % 2) + val print(val) elif choice == 2: total = 0 numb = input('Enter your whole Binary number: ') for i in range(1, numb.__len__() + 1): if numb[-i] == str(1): total = total + 2 ** (i - 1) print(total)
""" Date: Jan 13 2022 Last Revision: N/A General Notes: - 2249ms runtime (10.57%) and 59MB (65.71%) - Not a bad first attempt. I wonder if I could think of something that doesn't require sorting - However, hard to think of a solution that is better than O(n) while mine is O(n*logn)... so is it worth considering the simplicity of the current solution? Solution Notes: - Greedy solution that "groups" balloons together based off their sorted end points """ class Solution: def findMinArrowShots(self, points: List[List[int]]) -> int: points.sort(key = lambda x:x[1]) num_arrows, arrow = 0, None for point in points: if arrow is not None and point[0] <= arrow: pass #arrow pops current balloon else: arrow = point[1] #new arrow to pop current balloon num_arrows += 1 return num_arrows
""" Date: Jan 13 2022 Last Revision: N/A General Notes: - 2249ms runtime (10.57%) and 59MB (65.71%) - Not a bad first attempt. I wonder if I could think of something that doesn't require sorting - However, hard to think of a solution that is better than O(n) while mine is O(n*logn)... so is it worth considering the simplicity of the current solution? Solution Notes: - Greedy solution that "groups" balloons together based off their sorted end points """ class Solution: def find_min_arrow_shots(self, points: List[List[int]]) -> int: points.sort(key=lambda x: x[1]) (num_arrows, arrow) = (0, None) for point in points: if arrow is not None and point[0] <= arrow: pass else: arrow = point[1] num_arrows += 1 return num_arrows
class doggy(object): def __init__(self, name, age, color): self.name = name self.age = age self.color = color def myNameIs(self): print ('%s, %s, %s' % (self.name, self.age, self.color)) def bark(self): print ("Wang Wang !!") wangcai = doggy("Wangcai Masarchik", 17, "gold") xiaoming = doggy("Ming Van Der Ryn", 16, "silver") wangcai.myNameIs() xiaoming.myNameIs() xiaoming.bark()
class Doggy(object): def __init__(self, name, age, color): self.name = name self.age = age self.color = color def my_name_is(self): print('%s, %s, %s' % (self.name, self.age, self.color)) def bark(self): print('Wang Wang !!') wangcai = doggy('Wangcai Masarchik', 17, 'gold') xiaoming = doggy('Ming Van Der Ryn', 16, 'silver') wangcai.myNameIs() xiaoming.myNameIs() xiaoming.bark()