content
stringlengths
7
1.05M
#!/bin/python3 [n,k] = [int(x) for x in input().split()] k -= 1 factorial = [1 for _ in range(n+1)] for i in range(1,n+1): factorial[i] = factorial[i-1] * i ans = [] perm = [0] used = [False for _ in range(n)] for i in range(n-1): possible = [] for j in range(1,n): if not used[j]: possible.append( [(j-perm[i]) % n , j] ) possible.sort() for x in possible: if factorial[n-i-2] <= k: k -= factorial[n-i-2] continue ans.append(x[0]) perm.append(x[1]) used[x[1]] = True break print(*ans, sep=' ')
class Solution: def searchInsert(self, nums: List[int], target: int) -> int: start_i = 0 end_i = len(nums) - 1 while start_i <= end_i: index = (start_i + end_i) // 2 if nums[index] == target: return index elif nums[index] > target: end_i = index - 1 elif nums[index] < target: start_i = index + 1 return start_i
## # IO Events ## CONNECT = 'connect' CONNECT_ERROR = 'connect_error' DISCONNECT = 'disconnect' ### # Client Events ### CLIENT_DATA = 'client_data' REGISTER_PLAYER = 'register_player' PLAYER_MOVE = 'player_move' ### # Server Events ### REQUEST_REGISTER = 'register_player_request' SERVER_DATA = 'server_data' REQUEST_MOVE = 'request_move' MOVE_RESULT = 'move_result' BOARD_STATE = 'board_state' GAME_START = 'game_start' GAME_END = 'game_end' SERVER_SHUTDOWN = 'shutdown'
__appname__ = 'qpropgen' __version__ = '0.1.0' __license__ = 'Apache 2.0' DESCRIPTION = """\ Generate a QML-friendly QObject-based C++ class from a class definition file. """
class Product: def __init__(self, name, description, seller, price, availability): self.name = name self.description = description self.seller = seller self.reviews = [] self.price = price self.availability = availability def __str__(self): return f"Product({self.name}, {self.description}) at ${self.price}"
class AuthFailed(Exception): pass class SearchFailed(Exception): pass
tilt_id = "a495bb30c5b14b44b5121370f02d74de" tilt_sg_adjust = 0 read_interval = 15 dropbox_token = "" dropbox_folder = "data" brewfatherCustomStreamURL = ""
str = "moam" str=str.casefold() #for case sensitive string str1=reversed(str) #reversed the string if list(str)==list(str1): print("it is palindrome string") else: print("It is not palindrome String")
input = "input1.txt" depthReadings = [] changes = [] # 1 = increase, 0 = no change, -1 = decrease with open(input) as f: for l in f: depthReadings.append(int(l.strip())) i = 1 changes.append(0) while i < len(depthReadings): if depthReadings[i] < depthReadings[i-1]: changes.append(-1) if depthReadings[i] > depthReadings[i-1]: changes.append(1) if depthReadings[i] == depthReadings[i-1]: changes.append(0) i += 1 # count counts = {} for change in changes: if change not in counts: counts[change] = 1 else: counts[change] += 1 print(counts)
ans = {} for i in range(10): n = int(input()) % 42 ans[n] = 1; print(len(ans))
__all__ = ['OptimizelyError', 'BadRequestError', 'UnauthorizedError', 'ForbiddenError', 'NotFoundError', 'TooManyRequestsError', 'ServiceUnavailableError', 'InvalidIDError'] class OptimizelyError(Exception): """ General exception for all Optimizely Experiments API related issues.""" pass class BadRequestError(OptimizelyError): """ Exception for when request was not sent in valid JSON.""" pass class UnauthorizedError(OptimizelyError): """ Exception for when API token is missing or included in the body rather than the header.""" pass class ForbiddenError(OptimizelyError): """ Exception for when API token is provided but it is invalid or revoked.""" pass class NotFoundError(OptimizelyError): """ Exception for when the id used in request is inaccurate or token user doesn't have permission to view/edit it.""" pass class TooManyRequestsError(OptimizelyError): """ Exception for when a rate limit for the API is hit.""" pass class ServiceUnavailableError(OptimizelyError): """ Exception for when the API is overloaded or down for maintenance.""" pass class InvalidIDError(OptimizelyError): """ Exception for when object is missing its ID.""" pass
#Kunal Gautam #Codewars : @Kunalpod #Problem name: Find Factors Down to Limit #Problem level: 8 kyu def factors(integer, limit): return [x for x in range(limit,(integer//2)+1) if not integer%x] + ([integer] if integer>=limit else [])
class SOAPError(Exception): """ **Custom SOAP exception** Custom SOAP exception class. Raised whenever an error response has been received during action invocation. """ def __init__(self, description, code): self.description = description self.error = code class IGDError(Exception): """ **Custom Internet Gateway Device exception** Custom IGD exception class. Raised whenever a problem with the IGD has been detected. """ pass class ArgumentError(Exception): """ **Custom Argument exception** Custom Argument exception class. Raised whenever an error has been detected during action invocation. """ def __init__(self, message, argument): self.message = message self.argument = argument class ServiceNotFoundError(Exception): """ **Custom Service exception** Custom Service exception class. Raised whenever a particular service was not found for a device. """ def __init__(self, message, service_name): self.message = message self.service = service_name class ActionNotFoundError(Exception): """ **Custom Action exception** Custom Action exception class. Raised whenever a particular action is not available for a service. """ def __init__(self, message, action_name): self.message = message self.action = action_name class NotRetrievedError(Exception): """ **Custom exception for objects that have not been retrieved** Custom object not retrieved exception class. Raised whenever a certain property for a device or service was not retrieved. """ pass class NotAvailableError(Exception): """ **Custom exception for when a certain URL could not be retrieved** Custom element not retrieved exception class. Raised whenever a value needed to be accessed could not be retrieved from the URL. """ pass
# File: signalfx_consts.py # Copyright (c) 2021 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # Define your constants here # exception handling ERR_CODE_MSG = "Error code unavailable" ERR_MSG_UNAVAILABLE = "Error message unavailable. Please check the asset configuration and|or action parameters" PARSE_ERR_MSG = "Unable to parse the error message. Please check the asset configuration and|or action parameters" # Integer validation constants VALID_INTEGER_MSG = "Please provide a valid integer value in the {key}" POSITIVE_INTEGER_MSG = "Please provide a valid non-zero positive integer value in the {key}" NON_NEGATIVE_INTEGER_MSG = "Please provide a valid non-negative integer value in the {key}" # page size PAGE_SIZE = 100 LIMIT_PARAM_KEY = "'limit' action parameter"
# # For loops # emails = ["email1@email.com", "email2@gmail.com", "email3@email.com"] # # for email in emails: # print(email) # pass # # For loops advance # emails = ["email1@email.com", "email2@gmail.com", "email3@email.com"] # for email in emails: # if 'gmail' in email: # print(email) # # else: # (optional) # # pass # # For loops advance # password = input("Enter your password: ") # while password != "asd123": # print("Sorry, try again") # password = input("Enter your password: ") # print("You are logged in") # # loop two lists # names = ['james', 'jhon', 'jack'] # email_domains = ['gmail', 'hotmail', 'yahooo'] # for i, j in zip(names, email_domains): # print(i, j) # inline for names = ['james\n', 'jhon\n', 'jack\n'] print(names) names = [i.replace('\n','') for i in names] print(names)
# Copyright 2012-2020 James Geboski <jgeboski@gmail.com> # # 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. # Image origin: http://en.wikipedia.org/wiki/File:DIN_4844-2_Warnung_vor_einer_Gefahrenstelle_D-W000.svg CAUTION_BASE64 = ( "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABhWlDQ1BJQ0MgcHJvZmlsZQAA" "KJF9kT1Iw1AUhU/TSkUqgnYQ6ZChOlkQFXGUKhbBQmkrtOpg8tI/aNKQpLg4Cq4FB38Wqw4u" "zro6uAqC4A+Ik6OToouUeF9SaBHjhcf7OO+ew3v3AUKzylQzMAGommWkE3Exl18Vg68IQIAP" "g4hIzNSTmcUsPOvrnjqp7mI8y7vvz+pXCiYDfCLxHNMNi3iDeGbT0jnvE4dZWVKIz4nHDbog" "8SPXZZffOJccFnhm2Mim54nDxGKpi+UuZmVDJZ4mjiqqRvlCzmWF8xZntVpn7XvyF4YK2kqG" "67QiSGAJSaQgQkYdFVRhIUa7RoqJNJ3HPfwjjj9FLplcFTByLKAGFZLjB/+D37M1i1OTblIo" "DvS82PbHKBDcBVoN2/4+tu3WCeB/Bq60jr/WBGY/SW90tOgRMLANXFx3NHkPuNwBhp90yZAc" "yU9LKBaB9zP6pjwwdAv0rblza5/j9AHI0qyWb4CDQ2CsRNnrHu/u7Z7bvz3t+f0ADmVyf6Xa" "xBUAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAkhSURBVHja7Zp7" "UNTlGsc/v92FXdiLAnFZsFIhRVBLRJ1Ip1LqTOQ00JidGpt0OlNNauOQlxDIKwaGVo7aaepM" "lzOT1tgflqnjMc/p5GEyTYsYNRXD4GgowrLCAnJ5zh8L+2PPcl0WQ+SZef94n/f9vb/3+32e" "9/I8vx8MyZAMyZD8ASLCS9XVXLTZKBNh8a0GPm3/fkSvd5a9exERHrhVwPvX1lJ8550IOEtU" "FGK3UyiC9lYgYPmqVSr4tpKdjYjw4mAHH1ZSgt1o9CTAYECKi6kSIWQwE/C3uXNV0BqNs7TV" "58xBRNgyWMFPOnyYZkVRAc+fHygL5ge6ecKhQzSLMGHQEdDUxDeJiSpQs1mRX8+Hy28XwmWY" "RXHp4+OR69c5NNis/9S777qv+Q05FqlzWKXOYZXXN1jc2t55BxEhdbCAD6iq4reICBXg6NFa" "sVVFuAiotkXImDE6V3twMFJeTokIhsFAwOr0dHfr79oV5ALfVj7/PNitz5IliAgrb3bwI86c" "waHXq8BmztR7gG8rf3pY7+qn0yGFhdSJcMfNTMCOlBTcQB07FtopAT+eCBU/P7V/cjIiwt9v" "VvBJBw7Q0t6tFy0ydgq+rSxebHRbCl9+SYsIM2428JqGBo6OHasCCQrSyH/LwrsloPz3CAkP" "17iei45GHA6Oi6Dpj7lq+omDBVu3kvjLL6pizRozwcHdv85iUcjKMrvqxcWwbRuTgPn9MVGl" "H6xvLi/nbGws4TabUxc3TseRI6HodD0bo6UFps+o4MSJRgDMZjh1ioqoKGIUheqB7gHZ2dkq" "eICNGy09Bg+g0cCmfAtKq3muXYPVq7kNyBroaz/6+HEatFp17aelGTzWuaPWKlu3DpMnngiQ" "OXMCZOvWYeKo9dwPHn/c4BY4HTnCdRHGDmQCdt9/f/sQV5FTJ8PcQNmrrZKSYvAIhx95RC/2" "ancCzp4Jk8BANU5ISkJaWjgwUMHP2rnTHVRGhsnDquvXmz3At5X1680e/VeuNLn12bEDESFl" "oIHX1dRQNHKkOtHISK1UXInwADR5sl+nBEye7OfRv/JqhNxxh9bVZ8QIxG6nWAT9QNoEX8rP" "J76kRFXkrDdjNHoeMjabdDpIVZVnW0CAwto16rFYVgabNjEaWDRQrB904QKV7dNc06b5d7ip" "1TmsMmVK5x6QmOjX4TOOWqvcd5+/q19AAHL+PDUiWAeCB6x79VWCamvVIyz/DfUI+3/p6jLU" "WZuiOI9FTWtzXR1kZGAE1v2hBIgQV1DAizt3qrp58wJJTPTr9JmQLgjoqu3uu/145plAV/3T" "T+Gbb1ggwtQ/jIDmZrYsWYJWWpeu2aywZrW5y2eCQzRetQGsW2tmmEV1rSVL0DQ18ZaI9zda" "TR+sn/bhh8w6elTVvbrCRERE10MGe+kBAKGhGlasUAn+8Uf44APuBZ66oQSI4F9dzRvZ2apu" "9GgtCxcau302JFjpgpzuDblwYSB33aXeq7OyoLKSfBGMN9ID0nNyiL50SVXk5VnQ67sHENKF" "m4eEdD8df3+F119XveDyZdiwASuw/IYQIEL42bNkbmn3+eLBB/XMfrRn+cvgPhIA8GiKgYcf" "Uu9BW7bA6dMsF2HkjfCA3PR0TA0NzopO54z2eiohXhyDHUlengW/1sOmsRGWLsUA5PUrASIk" "HDzIs3v2qLoXnjcyPr7nsa7Vqu30jhAe3vPpxMbqeOF5ddl/9RXs28fc3n5mV3oBXmls5N8J" "CUwvKnLqgoI0FP0c2ivLiUCEtRy7vcU9E2RWuHQpwnXZ6YnYbC2Mn3CFq1edY8XEQFERhXo9" "CYpCs6894Olt21TwAKtWmXsFvu1W19FaDw7R9go8wPDhGl57Td0Qz52D7duZCPzFpx4gQkBF" "BWdiYxlx9ap3aa72Mn1GBT/80OimS0jw4z+Hb/PmMkZSUgWFPze25hTh1ClskZFEKwqVvvKA" "jOxsFbw3aa72EhXl+SNIZKR3P4dotfDmm2rsYbfD2rUM72n6TNMD699eVMSy999XdampBmbN" "8j4cjx3rydy4WJ3X4yUl+ZOaqh7D770Hx47xsgjxvvCA/PR0DE1Nzoper7B+nblPEdi99/p3" "CKIvsjHPQmCg0w1aWqA1RnmrWw/qxvr37dpFfm6uulcsXWri8bSAPk02JkZHeJgGrQ7GjNGx" "cKGRJ5/s25gWi4b6euHw4esAlJZCfDyjP/uMY2vWcLbXm6AIGoeDo+PHk/Drr+o5XfhTGBaL" "zz8n+EQcDuGeSVcoLXWegLffDidPUmwyEa8oNPR2CTy3ebMKHmBDjsWn4EWcxVcSGOgejpeW" "wubNRHeVPlM6mZi5tJTiuDhCa2qcuqlT/fjXP2/r9BbXGykpaWbZcjuHDjmNMnOmno15FkaN" "0vqE1OSHrlJQcL01pwgnT1I7ciQxisLvPfWAVRkZKnhFgfw3hvkEfFlZM9NnVLBnTz0Oh+Bw" "CHv21DN9RgVlZc19Hr+j9FlmJkZgbY+WgAgxBQW8/Mkn7dNcAUyZ4ucTN83Kvua6uraXysoW" "MrOu+eQd99zjx7x5avpsxw749lueEyGx2yXQ1MRXSUmkfP+9s24yKRT+FIrV6pu/WKNjLnPx" "YnOngdL54jCfvOfy5RYmTrxMtd25yUyaBEePUqDVMr31Vz1PDxAh+eOPVfAAK5abfAbemdDw" "rq23EhamYdkyk6t+4gR89BFJwNwOl4AIOpuNtzMz1cZRo7QsWmTElzJ7tsGrNm9k8WKjW/os" "IwOqqtjcPn3W3gMW5eYS55bmyrVgMPj2zM/KNBM3zvPaGzdOR3aW2afv8vdXyMlxT5/l5hIJ" "LHXbA0QIPneO4vHjGd6W6XngAX/27e2f/5ZraoRNm2o5+HU9AMmzDLzyihGTqX8uWI89Vsk/" "Dja4lllhIfVjxxKrKFxoI+Cd1FRe3L1bjbC++y60V5megSynTzcxddoVGhvbCIHdu9mhKDyt" "E2Hi11/zfBt4gIeS9TReF9cvKoNBkmfp2bff6QVffAH79/NnEbYjwoEJE+j0g+VgLfHxiAhH" "lPJy6sPDffOt/WaTS5eoRYS9aWm3ngekpiIifKaIEAr89eJFZjsc1N0Klg8IgKgojgDPMiRD" "MiS3tPwPyDEn525xOZcAAAAASUVORK5CYII=" )
#!/usr/bin/python3 fo = open("1/input.txt", "r") input = [] for line in fo.readlines(): line = line.strip() input.append(int(line)) def part1(): #init prev = input[0] counter = 0 #calc for line in input[1:]: if line > prev: counter += 1 prev = line print(counter) def part2(): #init measures = input[0:3] counter = 0 #calc for next in input[3:]: measures.append(next) sumNewWindow = measures[-1] + measures[-2] + measures[-3] sumOldWindow = measures[-2] + measures[-3] + measures[-4] if sumNewWindow > sumOldWindow: counter += 1 print(f"{counter} from {len(measures)} measures") #1390 part1() #1457 part2()
# -*- coding: utf-8 -*- def get_autosuggest_url(tag_type, language, geography): base_url = "https://" + geography + ".openfoodfacts.org" autosuggest = base_url + "/cgi/suggest.pl?lc=" + language autosuggest += "&tagtype=" + tag_type return autosuggest
class Metrics: received_packets: int = 0 sent_packets: int = 0 forward_key_set: int = 0 forward_key_del: int = 0 lost_packet_count: int = 0 out_of_order_count: int = 0 delete_unknown_key_count: int = 0
alcohol_cases = None with open('../static/alcohol_cases.txt', 'r') as f: alcohol_cases = f.readlines() smoke_cases = None with open('../static/smoke_cases.txt', 'r') as f: smoke_cases = f.readlines() with open('../static/alcohol_and_cig_cases.txt', 'w') as f: for i in smoke_cases: if i in alcohol_cases: f.write(i)
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style licence that can be # found in the LICENSE file. { 'variables': { 'custom_ld_target%': '', 'custom_ld_host%': '', }, 'conditions': [ ['"<(custom_ld_target)"!=""', { 'make_global_settings': [ ['LD', '<(custom_ld_target)'], ], }], ['"<(custom_ld_host)"!=""', { 'make_global_settings': [ ['LD.host', '<(custom_ld_host)'], ], }], ], 'targets': [ { 'target_name': 'make_global_settings_ld_test', 'type': 'static_library', 'sources': [ 'foo.c' ], }, ], }
#!/usr/bin/env python # -*- coding: utf-8 -*- # version: 1.0.0 # author:Zhang Zhijun # time: 2021-03-13 # file: errorcode.py # function: # modify: class ResponseCode(object): """ 成功类错误码:20000000 ~ 20099999 错误类错误码:40000000 ~ 40099999 服务器错误码:50000000 ~ 50099999 通用成功类错误码:20000000 登录注册类错误码:20001000 用户错误码:20002000 分类错误:20003000 文章错误:20004000 """ SUCCESS = 20000000 QUERY_DB_FAILED = 20000001 REGISTER_SUCCESS = 20001000 LOGIN_SUCCESS = 20001001 LOGOUT_SUCCESS = 20001002 CREATE_USER_SUCCESS = 20002000 UPDATE_USER_SUCCESS = 20002001 DELETE_USER_SUCCESS = 20002002 GET_USER_SUCCESS = 20002003 CREATE_CATEGORY_SUCCESS = 20003000 UPDATE_CATEGORY_SUCCESS = 20003001 DELETE_CATEGORY_SUCCESS = 20003002 GET_CATEGORY_SUCCESS = 20003003 CREATE_POST_SUCCESS = 20004000 UPDATE_POST_SUCCESS = 20004001 DELETE_POST_SUCCESS = 20004002 GET_POST_SUCCESS = 20004003 CREATE_PAGE_SUCCESS = 20005000 UPDATE_PAGE_SUCCESS = 20005001 DELETE_PAGE_SUCCESS = 20005002 GET_PAGE_SUCCESS = 20005003 CREATE_TAG_SUCCESS = 20006000 UPDATE_TAG_SUCCESS = 20006001 DELETE_TAG_SUCCESS = 20006002 GET_TAG_SUCCESS = 20006003 CREATE_COMMENT_SUCCESS = 20007000 UPDATE_COMMENT_SUCCESS = 20007001 DELETE_COMMENT_SUCCESS = 20007002 GET_COMMENT_SUCCESS = 20007003 CREATE_MEDIA_SUCCESS = 20008000 UPDATE_MEDIA_SUCCESS = 20008001 DELETE_MEDIA_SUCCESS = 20008002 GET_MEDIA_SUCCESS = 20008003 UPDATE_SITEINFO_SUCCESS = 20009001 GET_SITEINFO_SUCCESS = 20009003 BAD_REQUEST = 40000000 USER_NOT_EXIST = 40002000 USER_ALREADY_EXIST = 40002001 CATEGORY_NOT_EXIST = 40003000 CATEGORY_ALREADY_EXIST = 40003001 CATEGORY_ASSOCIATE_WITH_POST = 40003002 POST_NOT_EXIST = 40004000 POST_ALREADY_EXIST = 40004001 PAGE_NOT_EXIST = 40005000 PAGE_ALREADY_EXIST = 40005001 TAG_NOT_EXIST = 40006000 TAG_ALREADY_EXIST = 40006001 COMMENT_NOT_EXIST = 40007000 COMMENT_ALREADY_EXIST = 40007001 MEDIA_NOT_EXIST = 40008000 MEDIA_ALREADY_EXIST = 40008001 class ResponseMessage(object): SUCCESS = u"成功" QUERY_DB_FAILED = u"查询数据库失败" REGISTER_SUCCESS = u"注册成功" LOGIN_SUCCESS = u"登录成功" LOGOUT_SUCCESS = u"退出成功" CREATE_USER_SUCCESS = u"创建用户成功" UPDATE_USER_SUCCESS = u"更新用户信息成功" DELETE_USER_SUCCESS = u"删除用户成功" CREATE_CATEGORY_SUCCESS = u"创建分类成功" UPDATE_CATEGORY_SUCCESS = u"更新分类信息成功" DELETE_CATEGORY_SUCCESS = u"删除分类成功" CREATE_POST_SUCCESS = u"创建文章成功" UPDATE_POST_SUCCESS = u"更新文章信息成功" DELETE_POST_SUCCESS = u"删除文章成功" CREATE_PAGE_SUCCESS = u'创建页面成功' UPDATE_PAGE_SUCCESS = u'更新页面成功' DELETE_PAGE_SUCCESS = u'删除页面成功' CREATE_TAG_SUCCESS = u'创建文章标签成功' UPDATE_TAG_SUCCESS = u'更新文件标签成功' DELETE_TAG_SUCCESS = u'删除文件标签成功' CREATE_COMMENT_SUCCESS = u'创建文章评论成功' UPDATE_COMMENT_SUCCESS = u'更新文章评论成功' DELETE_COMMENT_SUCCESS = u'删除文章评论成功' CREATE_MEDIA_SUCCESS = u'创建媒体文件成功' UPDATE_MEDIA_SUCCESS = u'更新媒体文件成功' DELETE_MEDIA_SUCCESS = u'删除媒体文件成功' UPDATE_SITEINFO_SUCCESS = u'更新站点信息成功' BAD_REQUEST = u"HTTP 400 Bad Request" USER_NOT_EXIST = u"用户不存在" USER_ALREADY_EXIST = u"用户已存在" CATEGORY_NOT_EXIST = u"分类不存在" CATEGORY_ALREADY_EXIST = u"分类已存在" CATEGORY_ASSOCIATE_WITH_POST = u"分类下已关联文章" POST_NOT_EXIST = u"文章不存在" POST_ALREADY_EXIST = u"文章已存在" PAGE_NOT_EXIST = u'页面不存在' PAGE_ALREADY_EXIST = u'页面已存在' TAG_NOT_EXIST = u'文章标签不存在' TAG_ALREADY_EXIST = u'文章标签已存在' COMMENT_NOT_EXIST = u'文章评论不存在' COMMENT_ALREADY_EXIST = u'文章评论已存在' MEDIA_NOT_EXIST = u'媒体文件不存在' MEDIA_ALREADY_EXIST = u'媒体文件已存在' class ResMsg(object): """ 封装响应文本 example: def test(): test_dict = dict(name="zhang",age=36) data=dict(code=ResponseCode.SUCCESS, msg=ResponseMessage.SUCCESS, data=test_dict) return jsonify(data) """ def __init__(self, code=ResponseCode.SUCCESS, msg=ResponseMessage.SUCCESS, data=None): self._code = code self._msg = msg self._data = data def update(self, code=None, data=None, msg=None): """ 更新默认响应文本 :param code:响应状态码 :param data: 响应数据 :param msg: 响应消息 :return: """ if code is not None: self._code = code if data is not None: self._data = data if msg is not None: self._msg = msg def add_field(self, name=None, value=None): """ 在响应文本中加入新的字段,方便使用 :param name: 变量名 :param value: 变量值 :return: """ if name is not None and value is not None: self.__dict__[name] = value @property def data(self): """ 输出响应文本内容 :return: """ body = self.__dict__ body["data"] = body.pop("_data") body["msg"] = body.pop("_msg") body["code"] = body.pop("_code") return body
def mean(data): """Return the sample arithmetic mean of data.""" n = len(data) if n < 1: raise ValueError('mean requires at least one data point') return sum(data)/n # in Python 2 use sum(data)/float(n) def _ss(data): """Return sum of square deviations of sequence data.""" c = mean(data) ss = sum((x-c)**2 for x in data) return ss def pstdev(data): """Calculates the population standard deviation.""" n = len(data) if n < 2: raise ValueError('variance requires at least two data points') ss = _ss(data) pvar = ss/n # the population variance return pvar**0.5
class Solution: """ @param nums: an array with positive and negative numbers @param k: an integer @return: the maximum average """ def maxAverage(self, nums, k): if not nums: return 0 min_num = min(nums) max_num = max(nums) while min_num + 1e-6 < max_num: mid = (min_num + max_num) / 2 if self.valid_average(nums, mid, k): min_num = mid else: max_num = mid return min_num def valid_average(self, nums, mid, k): subsum = 0 presum = 0 min_presum = 0 for i, num in enumerate(nums): subsum += num - mid if i >= k - 1 and subsum >= 0: return True if i >= k: presum += nums[i - k] - mid min_presum = min(min_presum, presum) if subsum - min_presum >= 0: return True return False # class Solution: # """ # @param nums: an array with positive and negative numbers # @param k: an integer # @return: the maximum average # """ # def maxAverage(self, nums, k): # if not nums: # return 0 # presum = [0] * (len(nums) + 1) # for i, num in enumerate(nums): # presum[i + 1] = presum[i] + num # max_average = sum(nums[:k]) / k # for i in range(len(nums) - k + 1): # for j in range(i + k, len(nums) + 1): # max_average = max(max_average, (presum[j] - presum[i]) / (j - i)) # return max_average # class Solution: # """ # @param nums: an array with positive and negative numbers # @param k: an integer # @return: the maximum average # """ # def maxAverage(self, nums, k): # n = len(nums) # ans = sum(nums[:k]) / k # for start in range(n - k + 1): # for end in range(start + k - 1, n): # subarray = nums[start:end + 1] # average = sum(subarray) / (end - start + 1) # ans = max(ans, average) # return ans
def isPalindrome(x): if x == x[::-1]: print("A palavra é palíndromo!") else: print("A palavra não é palíndromo!") isPalindrome("arara")
class Chess: tag = 0 camp = 0 x = 0 y = 0
# Desafio 069 -> Faça um pgr. que leia a idade e o sexo de varias pessoas. a cada pessoa cadastarada # o programa, o programa deverá perguntar se o usuário quer continuar. no final mostre: # A) Quantas pessoas tem mais de 18 anos # B) Quantos homens foram cadastrados # C) Quantas mulheres têm menos de 20 anos reqa = reqb = reqc = contseks = 0 continuar = 's' while continuar == 's': idade = int(input('Digite a idade da pessoa cadastrada: ')) if idade >= 18: reqa += 1 sexo = str(input('Digite o sexo da pessoa cadastrada [F/M]: ')).lower().strip()[0] while sexo not in 'mf': sexo = str(input('Informação inválida, por favor tente novamente\n' 'Digite o sexo da pessoa cadastrada [F/M]: ')).lower().strip()[0] if sexo == 'm': reqb += 1 if sexo == 'f' and idade < 20: reqc += 1 continuar = str(input('Deseja continuar? [S/N] ')).lower().strip()[0] while continuar not in 'sn': continuar = str(input('Informação inválida, por favor tente novamente.\n' 'Deseja continuar? [S/N] ')).lower().strip()[0] print(f'Analisando os dados das pessoas cadastradas podemos concluir que:\n' f'Um total de {reqa} pessoa(s) tem mais de 18 anos\n' f'{reqb} homens foram cadastrados ao todo\n' f'{reqc} mulheres têm menos de 20 anos')
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.39 工具: python == 3.7.3 """ """ 思路: 递归 结果: 执行用时 : 32 ms, 在所有 Python3 提交中击败了99.37%的用户 内存消耗 : 13.8 MB, 在所有 Python3 提交中击败了5.10%的用户 """ # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def isSameTree(self, p, q): # p和q均为空树时,二者相等 if not p and not q: return True # p和q有且只有一个为空时,二者不相同 if not p or not q: return False # 当p和q均为非空时,比较二者的值 if p.val != q.val: return False # 递归比较二者的值 return self.isSameTree(p.right, q.right) and self.isSameTree(p.left, q.left) if __name__ == "__main__": p = TreeNode(1) p.left = TreeNode(2) p.right = TreeNode(3) q = TreeNode(1) q.left = TreeNode(2) q.right = TreeNode(3) res = Solution().isSameTree(p, q) print(res)
def test_even(): for i in range(0, 6): yield is_even, i def is_even(i): assert i % 2 == 0
""" uci_bootcamp_2021/examples/while_loops.py Demonstrate basic while loop usage """ def get_valid_input( prompt: str, valid_minimum: int = 0, valid_maximum: int = 100 ) -> int: # initialize valid to False. valid = False result = -1 # loop while the user hasn't given us a suitable value. while not valid: # get the user's untrusted input. untrusted_input = input(prompt) # check if the input is numeric. if untrusted_input.isnumeric(): # if its numeric, we can safely interpret it as an integer result = int(untrusted_input) # then we can check the bounds valid = valid_minimum <= result <= valid_maximum if not valid: print("invalid input, please try again!") return result def main(): valid_input = get_valid_input( "Enter a number between 15 and 20", valid_minimum=15, valid_maximum=20 ) print(valid_input) # entry-point guard, since this example does blocking actions. if __name__ == "__main__": main()
# # PySNMP MIB module HP-SN-MPLS-TE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-SN-MIBS # Produced by pysmi-0.3.4 at Mon Apr 29 19:23:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint") mplsMIB, MplsLsrIdentifier, MplsTunnelAffinity, MplsTunnelInstanceIndex, MplsPathIndexOrZero, MplsPathIndex, MplsBurstSize, MplsLSPID, MplsBitRate, MplsTunnelIndex = mibBuilder.importSymbols("HP-SN-MPLS-TC-MIB", "mplsMIB", "MplsLsrIdentifier", "MplsTunnelAffinity", "MplsTunnelInstanceIndex", "MplsPathIndexOrZero", "MplsPathIndex", "MplsBurstSize", "MplsLSPID", "MplsBitRate", "MplsTunnelIndex") snMpls, = mibBuilder.importSymbols("HP-SN-ROOT-MIB", "snMpls") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") InetAddressIPv4, InetAddressIPv6 = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressIPv4", "InetAddressIPv6") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") IpAddress, Integer32, Counter32, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, iso, Bits, Gauge32, ObjectIdentity, MibIdentifier, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Counter32", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "iso", "Bits", "Gauge32", "ObjectIdentity", "MibIdentifier", "ModuleIdentity") RowPointer, TimeStamp, TruthValue, TextualConvention, RowStatus, StorageType, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowPointer", "TimeStamp", "TruthValue", "TextualConvention", "RowStatus", "StorageType", "DisplayString") mplsTeMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3)) mplsTeMIB.setRevisions(('2002-01-04 12:00',)) if mibBuilder.loadTexts: mplsTeMIB.setLastUpdated('200201041200Z') if mibBuilder.loadTexts: mplsTeMIB.setOrganization('Multiprotocol Label Switching (MPLS) Working Group') mplsTeScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 1)) mplsTeObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2)) mplsTeNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3)) mplsTeNotifyPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3, 0)) mplsTeConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4)) mplsTunnelConfigured = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelConfigured.setStatus('current') mplsTunnelActive = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelActive.setStatus('current') mplsTunnelTEDistProto = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 1, 3), Bits().clone(namedValues=NamedValues(("other", 0), ("ospf", 1), ("isis", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelTEDistProto.setStatus('current') mplsTunnelMaxHops = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelMaxHops.setStatus('current') mplsTunnelIndexNext = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelIndexNext.setStatus('current') mplsTunnelTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2), ) if mibBuilder.loadTexts: mplsTunnelTable.setStatus('current') mplsTunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelIndex"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelInstance"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelIngressLSRId"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelEgressLSRId")) if mibBuilder.loadTexts: mplsTunnelEntry.setStatus('current') mplsTunnelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 1), MplsTunnelIndex()) if mibBuilder.loadTexts: mplsTunnelIndex.setStatus('current') mplsTunnelInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 2), MplsTunnelInstanceIndex()) if mibBuilder.loadTexts: mplsTunnelInstance.setStatus('current') mplsTunnelIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 3), MplsLsrIdentifier()) if mibBuilder.loadTexts: mplsTunnelIngressLSRId.setStatus('current') mplsTunnelEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 4), MplsLsrIdentifier()) if mibBuilder.loadTexts: mplsTunnelEgressLSRId.setStatus('current') mplsTunnelName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 5), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelName.setStatus('current') mplsTunnelDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 6), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelDescr.setStatus('current') mplsTunnelIsIf = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 7), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelIsIf.setStatus('current') mplsTunnelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 8), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelIfIndex.setStatus('current') mplsTunnelXCPointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 9), RowPointer()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelXCPointer.setStatus('current') mplsTunnelSignallingProto = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("rsvp", 2), ("crldp", 3), ("other", 4))).clone('none')).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelSignallingProto.setStatus('current') mplsTunnelSetupPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelSetupPrio.setStatus('current') mplsTunnelHoldingPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHoldingPrio.setStatus('current') mplsTunnelSessionAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 13), Bits().clone(namedValues=NamedValues(("fastReroute", 0), ("mergingPermitted", 1), ("isPersistent", 2), ("isPinned", 3), ("recordRoute", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelSessionAttributes.setStatus('current') mplsTunnelOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("admin", 1), ("rsvp", 2), ("crldp", 3), ("policyAgent", 4), ("other", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelOwner.setStatus('current') mplsTunnelLocalProtectInUse = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 15), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelLocalProtectInUse.setStatus('current') mplsTunnelResourcePointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 16), RowPointer()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourcePointer.setStatus('current') mplsTunnelInstancePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 17), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelInstancePriority.setStatus('current') mplsTunnelHopTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 18), MplsPathIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopTableIndex.setStatus('current') mplsTunnelARHopTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 19), MplsPathIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopTableIndex.setStatus('current') mplsTunnelCHopTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 20), MplsPathIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopTableIndex.setStatus('current') mplsTunnelPrimaryInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 21), MplsTunnelInstanceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPrimaryInstance.setStatus('current') mplsTunnelPrimaryTimeUp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 22), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPrimaryTimeUp.setStatus('current') mplsTunnelPathChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPathChanges.setStatus('current') mplsTunnelLastPathChange = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 24), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelLastPathChange.setStatus('current') mplsTunnelCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 25), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCreationTime.setStatus('current') mplsTunnelStateTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelStateTransitions.setStatus('current') mplsTunnelIncludeAnyAffinity = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 27), MplsTunnelAffinity()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelIncludeAnyAffinity.setStatus('current') mplsTunnelIncludeAllAffinity = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 28), MplsTunnelAffinity()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelIncludeAllAffinity.setStatus('current') mplsTunnelExcludeAllAffinity = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 29), MplsTunnelAffinity()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelExcludeAllAffinity.setStatus('current') mplsTunnelPathInUse = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 30), MplsPathIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelPathInUse.setStatus('current') mplsTunnelRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("head", 1), ("transit", 2), ("tail", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelRole.setStatus('current') mplsTunnelTotalUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 32), TimeTicks()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelTotalUpTime.setStatus('current') mplsTunnelInstanceUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 33), TimeTicks()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelInstanceUpTime.setStatus('current') mplsTunnelAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelAdminStatus.setStatus('current') mplsTunnelOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3), ("unknown", 4), ("dormant", 5), ("notPresent", 6), ("lowerLayerDown", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelOperStatus.setStatus('current') mplsTunnelRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 36), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelRowStatus.setStatus('current') mplsTunnelStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 2, 1, 37), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelStorageType.setStatus('current') mplsTunnelHopListIndexNext = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelHopListIndexNext.setStatus('current') mplsTunnelHopTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4), ) if mibBuilder.loadTexts: mplsTunnelHopTable.setStatus('current') mplsTunnelHopEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelHopListIndex"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelHopPathOptionIndex"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelHopIndex")) if mibBuilder.loadTexts: mplsTunnelHopEntry.setStatus('current') mplsTunnelHopListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 1), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelHopListIndex.setStatus('current') mplsTunnelHopPathOptionIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 2), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelHopPathOptionIndex.setStatus('current') mplsTunnelHopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 3), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelHopIndex.setStatus('current') mplsTunnelHopAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipV4", 1), ("ipV6", 2), ("asNumber", 3), ("lspid", 4))).clone('ipV4')).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopAddrType.setStatus('current') mplsTunnelHopIpv4Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 5), InetAddressIPv4()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopIpv4Addr.setStatus('current') mplsTunnelHopIpv4PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopIpv4PrefixLen.setStatus('current') mplsTunnelHopIpv6Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 7), InetAddressIPv6()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopIpv6Addr.setStatus('current') mplsTunnelHopIpv6PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopIpv6PrefixLen.setStatus('current') mplsTunnelHopAsNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopAsNumber.setStatus('current') mplsTunnelHopLspId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 10), MplsLSPID()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopLspId.setStatus('current') mplsTunnelHopType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("strict", 1), ("loose", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopType.setStatus('current') mplsTunnelHopIncludeExclude = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("include", 1), ("exclude", 2))).clone('include')).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopIncludeExclude.setStatus('current') mplsTunnelHopPathOptionName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 13), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopPathOptionName.setStatus('current') mplsTunnelHopEntryPathComp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dynamic", 1), ("explicit", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopEntryPathComp.setStatus('current') mplsTunnelHopRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 15), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopRowStatus.setStatus('current') mplsTunnelHopStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 4, 1, 16), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelHopStorageType.setStatus('current') mplsTunnelResourceIndexNext = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelResourceIndexNext.setStatus('current') mplsTunnelResourceTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6), ) if mibBuilder.loadTexts: mplsTunnelResourceTable.setStatus('current') mplsTunnelResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelResourceIndex")) if mibBuilder.loadTexts: mplsTunnelResourceEntry.setStatus('current') mplsTunnelResourceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: mplsTunnelResourceIndex.setStatus('current') mplsTunnelResourceMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 2), MplsBitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceMaxRate.setStatus('current') mplsTunnelResourceMeanRate = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 3), MplsBitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceMeanRate.setStatus('current') mplsTunnelResourceMaxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 4), MplsBurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceMaxBurstSize.setStatus('current') mplsTunnelResourceMeanBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 5), MplsBurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceMeanBurstSize.setStatus('current') mplsTunnelResourceExcessBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 6), MplsBurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceExcessBurstSize.setStatus('current') mplsTunnelResourceFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unspecified", 1), ("frequent", 2), ("veryFrequent", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceFrequency.setStatus('current') mplsTunnelResourceWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceWeight.setStatus('current') mplsTunnelResourceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 9), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceRowStatus.setStatus('current') mplsTunnelResourceStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 6, 1, 10), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelResourceStorageType.setStatus('current') mplsTunnelARHopTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7), ) if mibBuilder.loadTexts: mplsTunnelARHopTable.setStatus('current') mplsTunnelARHopEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelARHopListIndex"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelARHopIndex")) if mibBuilder.loadTexts: mplsTunnelARHopEntry.setStatus('current') mplsTunnelARHopListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 1), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelARHopListIndex.setStatus('current') mplsTunnelARHopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 2), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelARHopIndex.setStatus('current') mplsTunnelARHopAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipV4", 1), ("ipV6", 2), ("asNumber", 3), ("lspId", 4))).clone('ipV4')).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopAddrType.setStatus('current') mplsTunnelARHopIpv4Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 4), InetAddressIPv4()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopIpv4Addr.setStatus('current') mplsTunnelARHopIpv4PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopIpv4PrefixLen.setStatus('current') mplsTunnelARHopIpv6Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 6), InetAddressIPv6()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopIpv6Addr.setStatus('current') mplsTunnelARHopIpv6PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopIpv6PrefixLen.setStatus('current') mplsTunnelARHopAsNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopAsNumber.setStatus('current') mplsTunnelARHopLspId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 7, 1, 9), MplsLSPID()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelARHopLspId.setStatus('current') mplsTunnelCHopTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8), ) if mibBuilder.loadTexts: mplsTunnelCHopTable.setStatus('current') mplsTunnelCHopEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelCHopListIndex"), (0, "HP-SN-MPLS-TE-MIB", "mplsTunnelCHopIndex")) if mibBuilder.loadTexts: mplsTunnelCHopEntry.setStatus('current') mplsTunnelCHopListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 1), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelCHopListIndex.setStatus('current') mplsTunnelCHopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 2), MplsPathIndex()) if mibBuilder.loadTexts: mplsTunnelCHopIndex.setStatus('current') mplsTunnelCHopAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipV4", 1), ("ipV6", 2), ("asNumber", 3), ("lspId", 4))).clone('ipV4')).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopAddrType.setStatus('current') mplsTunnelCHopIpv4Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 4), InetAddressIPv4()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopIpv4Addr.setStatus('current') mplsTunnelCHopIpv4PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopIpv4PrefixLen.setStatus('current') mplsTunnelCHopIpv6Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 6), InetAddressIPv6()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopIpv6Addr.setStatus('current') mplsTunnelCHopIpv6PrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopIpv6PrefixLen.setStatus('current') mplsTunnelCHopAsNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopAsNumber.setStatus('current') mplsTunnelCHopLspId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 9), MplsLSPID()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopLspId.setStatus('current') mplsTunnelCHopType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 8, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("strict", 1), ("loose", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelCHopType.setStatus('current') mplsTunnelPerfTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9), ) if mibBuilder.loadTexts: mplsTunnelPerfTable.setStatus('current') mplsTunnelPerfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1), ) mplsTunnelEntry.registerAugmentions(("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfEntry")) mplsTunnelPerfEntry.setIndexNames(*mplsTunnelEntry.getIndexNames()) if mibBuilder.loadTexts: mplsTunnelPerfEntry.setStatus('current') mplsTunnelPerfPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPerfPackets.setStatus('current') mplsTunnelPerfHCPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPerfHCPackets.setStatus('current') mplsTunnelPerfErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPerfErrors.setStatus('current') mplsTunnelPerfBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPerfBytes.setStatus('current') mplsTunnelPerfHCBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 9, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: mplsTunnelPerfHCBytes.setStatus('current') mplsTunnelCRLDPResTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10), ) if mibBuilder.loadTexts: mplsTunnelCRLDPResTable.setStatus('current') mplsTunnelCRLDPResEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1), ).setIndexNames((0, "HP-SN-MPLS-TE-MIB", "mplsTunnelResourceIndex")) if mibBuilder.loadTexts: mplsTunnelCRLDPResEntry.setStatus('current') mplsTunnelCRLDPResMeanBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 2), MplsBurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResMeanBurstSize.setStatus('current') mplsTunnelCRLDPResExcessBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 3), MplsBurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResExcessBurstSize.setStatus('current') mplsTunnelCRLDPResFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unspecified", 1), ("frequent", 2), ("veryFrequent", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResFrequency.setStatus('current') mplsTunnelCRLDPResWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResWeight.setStatus('current') mplsTunnelCRLDPResFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResFlags.setStatus('current') mplsTunnelCRLDPResRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResRowStatus.setStatus('current') mplsTunnelCRLDPResStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 10, 1, 8), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsTunnelCRLDPResStorageType.setStatus('current') mplsTunnelTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 2, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mplsTunnelTrapEnable.setStatus('current') mplsTunnelUp = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3, 0, 1)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelAdminStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOperStatus")) if mibBuilder.loadTexts: mplsTunnelUp.setStatus('current') mplsTunnelDown = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3, 0, 2)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelAdminStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOperStatus")) if mibBuilder.loadTexts: mplsTunnelDown.setStatus('current') mplsTunnelRerouted = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3, 0, 3)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelAdminStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOperStatus")) if mibBuilder.loadTexts: mplsTunnelRerouted.setStatus('current') mplsTunnelReoptimized = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 3, 0, 4)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelAdminStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOperStatus")) if mibBuilder.loadTexts: mplsTunnelReoptimized.setStatus('current') mplsTeGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1)) mplsTeCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 2)) mplsTeModuleCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 2, 1)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelScalarGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelManualGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelSignaledGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelIsNotIntfcGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelIsIntfcGroup"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOptionalGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTeModuleCompliance = mplsTeModuleCompliance.setStatus('current') mplsTunnelGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 1)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelIndexNext"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelName"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelDescr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOwner"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelXCPointer"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelIfIndex"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopTableIndex"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopTableIndex"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopTableIndex"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelAdminStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelOperStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelRowStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelTrapEnable"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelStorageType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelConfigured"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelActive"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPrimaryInstance"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPrimaryTimeUp"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPathChanges"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelLastPathChange"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCreationTime"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelStateTransitions"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelIncludeAnyAffinity"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelIncludeAllAffinity"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelExcludeAllAffinity"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfPackets"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfHCPackets"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfErrors"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfBytes"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPerfHCBytes"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourcePointer"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelInstancePriority"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelPathInUse"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelRole"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelTotalUpTime"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelInstanceUpTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelGroup = mplsTunnelGroup.setStatus('current') mplsTunnelManualGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 2)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelSignallingProto")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelManualGroup = mplsTunnelManualGroup.setStatus('current') mplsTunnelSignaledGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 3)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelSetupPrio"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHoldingPrio"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelSignallingProto"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelLocalProtectInUse"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelSessionAttributes"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopListIndexNext"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopAddrType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopIpv4Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopIpv4PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopIpv6Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopIpv6PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopAsNumber"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopLspId"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopIncludeExclude"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopPathOptionName"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopEntryPathComp"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopRowStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelHopStorageType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelSignaledGroup = mplsTunnelSignaledGroup.setStatus('current') mplsTunnelScalarGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 4)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelConfigured"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelActive"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelTEDistProto"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelMaxHops")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelScalarGroup = mplsTunnelScalarGroup.setStatus('current') mplsTunnelIsIntfcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 5)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelIsIf")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelIsIntfcGroup = mplsTunnelIsIntfcGroup.setStatus('current') mplsTunnelIsNotIntfcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 6)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelIsIf")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelIsNotIntfcGroup = mplsTunnelIsNotIntfcGroup.setStatus('current') mplsTunnelOptionalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 7)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceIndexNext"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceMaxRate"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceMeanRate"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceMaxBurstSize"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceMeanBurstSize"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceExcessBurstSize"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceFrequency"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceWeight"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceRowStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelResourceStorageType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopAddrType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopIpv4Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopIpv4PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopIpv6Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopIpv6PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopAsNumber"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelARHopLspId"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopAddrType"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopIpv4Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopIpv4PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopIpv6Addr"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopIpv6PrefixLen"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopAsNumber"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopLspId"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCHopType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelOptionalGroup = mplsTunnelOptionalGroup.setStatus('current') mplsTunnelCRLDPResOptionalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 8)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResMeanBurstSize"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResExcessBurstSize"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResFrequency"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResWeight"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResFlags"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResRowStatus"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelCRLDPResStorageType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTunnelCRLDPResOptionalGroup = mplsTunnelCRLDPResOptionalGroup.setStatus('current') mplsTeNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 3, 7, 11, 12, 2, 15, 15, 3, 4, 1, 9)).setObjects(("HP-SN-MPLS-TE-MIB", "mplsTunnelUp"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelDown"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelRerouted"), ("HP-SN-MPLS-TE-MIB", "mplsTunnelReoptimized")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mplsTeNotificationGroup = mplsTeNotificationGroup.setStatus('current') mibBuilder.exportSymbols("HP-SN-MPLS-TE-MIB", mplsTunnelARHopListIndex=mplsTunnelARHopListIndex, mplsTunnelConfigured=mplsTunnelConfigured, mplsTunnelUp=mplsTunnelUp, mplsTunnelMaxHops=mplsTunnelMaxHops, mplsTunnelHopTable=mplsTunnelHopTable, mplsTunnelARHopAddrType=mplsTunnelARHopAddrType, mplsTunnelResourceRowStatus=mplsTunnelResourceRowStatus, mplsTunnelHopIpv4Addr=mplsTunnelHopIpv4Addr, mplsTunnelIncludeAnyAffinity=mplsTunnelIncludeAnyAffinity, mplsTunnelHopRowStatus=mplsTunnelHopRowStatus, mplsTeNotifyPrefix=mplsTeNotifyPrefix, mplsTunnelOperStatus=mplsTunnelOperStatus, mplsTunnelIndex=mplsTunnelIndex, mplsTunnelCHopAsNumber=mplsTunnelCHopAsNumber, mplsTunnelCRLDPResOptionalGroup=mplsTunnelCRLDPResOptionalGroup, mplsTunnelExcludeAllAffinity=mplsTunnelExcludeAllAffinity, mplsTunnelCHopType=mplsTunnelCHopType, mplsTunnelARHopIpv4Addr=mplsTunnelARHopIpv4Addr, mplsTunnelHopPathOptionName=mplsTunnelHopPathOptionName, mplsTunnelPrimaryTimeUp=mplsTunnelPrimaryTimeUp, mplsTunnelStorageType=mplsTunnelStorageType, mplsTunnelARHopIpv6Addr=mplsTunnelARHopIpv6Addr, mplsTeModuleCompliance=mplsTeModuleCompliance, mplsTunnelOptionalGroup=mplsTunnelOptionalGroup, mplsTunnelCRLDPResEntry=mplsTunnelCRLDPResEntry, mplsTunnelARHopIpv6PrefixLen=mplsTunnelARHopIpv6PrefixLen, mplsTunnelIncludeAllAffinity=mplsTunnelIncludeAllAffinity, mplsTunnelResourceEntry=mplsTunnelResourceEntry, mplsTunnelResourceIndex=mplsTunnelResourceIndex, PYSNMP_MODULE_ID=mplsTeMIB, mplsTunnelEntry=mplsTunnelEntry, mplsTeMIB=mplsTeMIB, mplsTunnelSetupPrio=mplsTunnelSetupPrio, mplsTunnelHopIpv4PrefixLen=mplsTunnelHopIpv4PrefixLen, mplsTunnelPerfEntry=mplsTunnelPerfEntry, mplsTunnelResourceExcessBurstSize=mplsTunnelResourceExcessBurstSize, mplsTunnelStateTransitions=mplsTunnelStateTransitions, mplsTunnelCHopIpv6PrefixLen=mplsTunnelCHopIpv6PrefixLen, mplsTunnelHopListIndexNext=mplsTunnelHopListIndexNext, mplsTunnelCreationTime=mplsTunnelCreationTime, mplsTunnelPathInUse=mplsTunnelPathInUse, mplsTunnelHopIpv6Addr=mplsTunnelHopIpv6Addr, mplsTunnelTEDistProto=mplsTunnelTEDistProto, mplsTunnelHopStorageType=mplsTunnelHopStorageType, mplsTunnelResourceIndexNext=mplsTunnelResourceIndexNext, mplsTunnelIsIf=mplsTunnelIsIf, mplsTunnelManualGroup=mplsTunnelManualGroup, mplsTunnelPerfTable=mplsTunnelPerfTable, mplsTunnelGroup=mplsTunnelGroup, mplsTeGroups=mplsTeGroups, mplsTunnelRowStatus=mplsTunnelRowStatus, mplsTunnelResourceMeanRate=mplsTunnelResourceMeanRate, mplsTunnelCHopIpv4Addr=mplsTunnelCHopIpv4Addr, mplsTeConformance=mplsTeConformance, mplsTunnelResourcePointer=mplsTunnelResourcePointer, mplsTunnelActive=mplsTunnelActive, mplsTunnelIfIndex=mplsTunnelIfIndex, mplsTunnelARHopIndex=mplsTunnelARHopIndex, mplsTunnelIngressLSRId=mplsTunnelIngressLSRId, mplsTunnelHopIncludeExclude=mplsTunnelHopIncludeExclude, mplsTunnelPathChanges=mplsTunnelPathChanges, mplsTunnelCHopTableIndex=mplsTunnelCHopTableIndex, mplsTunnelARHopIpv4PrefixLen=mplsTunnelARHopIpv4PrefixLen, mplsTunnelTrapEnable=mplsTunnelTrapEnable, mplsTunnelCHopAddrType=mplsTunnelCHopAddrType, mplsTunnelDown=mplsTunnelDown, mplsTeObjects=mplsTeObjects, mplsTunnelHopTableIndex=mplsTunnelHopTableIndex, mplsTunnelPerfErrors=mplsTunnelPerfErrors, mplsTunnelInstance=mplsTunnelInstance, mplsTunnelPerfHCPackets=mplsTunnelPerfHCPackets, mplsTunnelPerfPackets=mplsTunnelPerfPackets, mplsTunnelTable=mplsTunnelTable, mplsTunnelCRLDPResFrequency=mplsTunnelCRLDPResFrequency, mplsTunnelHopPathOptionIndex=mplsTunnelHopPathOptionIndex, mplsTunnelIsIntfcGroup=mplsTunnelIsIntfcGroup, mplsTunnelCRLDPResStorageType=mplsTunnelCRLDPResStorageType, mplsTunnelOwner=mplsTunnelOwner, mplsTunnelReoptimized=mplsTunnelReoptimized, mplsTunnelHopIndex=mplsTunnelHopIndex, mplsTunnelHopListIndex=mplsTunnelHopListIndex, mplsTunnelTotalUpTime=mplsTunnelTotalUpTime, mplsTunnelResourceWeight=mplsTunnelResourceWeight, mplsTunnelCRLDPResWeight=mplsTunnelCRLDPResWeight, mplsTunnelCRLDPResFlags=mplsTunnelCRLDPResFlags, mplsTunnelPerfBytes=mplsTunnelPerfBytes, mplsTunnelHoldingPrio=mplsTunnelHoldingPrio, mplsTunnelIsNotIntfcGroup=mplsTunnelIsNotIntfcGroup, mplsTunnelPerfHCBytes=mplsTunnelPerfHCBytes, mplsTunnelCHopIndex=mplsTunnelCHopIndex, mplsTunnelARHopEntry=mplsTunnelARHopEntry, mplsTeScalars=mplsTeScalars, mplsTunnelResourceStorageType=mplsTunnelResourceStorageType, mplsTeCompliances=mplsTeCompliances, mplsTunnelAdminStatus=mplsTunnelAdminStatus, mplsTunnelARHopLspId=mplsTunnelARHopLspId, mplsTunnelCHopEntry=mplsTunnelCHopEntry, mplsTeNotifications=mplsTeNotifications, mplsTunnelCHopTable=mplsTunnelCHopTable, mplsTunnelCHopIpv6Addr=mplsTunnelCHopIpv6Addr, mplsTunnelLastPathChange=mplsTunnelLastPathChange, mplsTunnelHopAddrType=mplsTunnelHopAddrType, mplsTunnelARHopTable=mplsTunnelARHopTable, mplsTunnelHopEntryPathComp=mplsTunnelHopEntryPathComp, mplsTunnelResourceMeanBurstSize=mplsTunnelResourceMeanBurstSize, mplsTunnelEgressLSRId=mplsTunnelEgressLSRId, mplsTunnelResourceMaxRate=mplsTunnelResourceMaxRate, mplsTunnelCRLDPResTable=mplsTunnelCRLDPResTable, mplsTunnelXCPointer=mplsTunnelXCPointer, mplsTunnelSignaledGroup=mplsTunnelSignaledGroup, mplsTunnelCHopLspId=mplsTunnelCHopLspId, mplsTunnelDescr=mplsTunnelDescr, mplsTunnelCRLDPResExcessBurstSize=mplsTunnelCRLDPResExcessBurstSize, mplsTunnelHopEntry=mplsTunnelHopEntry, mplsTunnelResourceTable=mplsTunnelResourceTable, mplsTunnelPrimaryInstance=mplsTunnelPrimaryInstance, mplsTunnelHopType=mplsTunnelHopType, mplsTunnelCHopListIndex=mplsTunnelCHopListIndex, mplsTunnelLocalProtectInUse=mplsTunnelLocalProtectInUse, mplsTunnelResourceFrequency=mplsTunnelResourceFrequency, mplsTunnelIndexNext=mplsTunnelIndexNext, mplsTunnelSignallingProto=mplsTunnelSignallingProto, mplsTunnelHopIpv6PrefixLen=mplsTunnelHopIpv6PrefixLen, mplsTunnelCHopIpv4PrefixLen=mplsTunnelCHopIpv4PrefixLen, mplsTunnelName=mplsTunnelName, mplsTunnelSessionAttributes=mplsTunnelSessionAttributes, mplsTunnelHopLspId=mplsTunnelHopLspId, mplsTunnelInstanceUpTime=mplsTunnelInstanceUpTime, mplsTeNotificationGroup=mplsTeNotificationGroup, mplsTunnelARHopAsNumber=mplsTunnelARHopAsNumber, mplsTunnelARHopTableIndex=mplsTunnelARHopTableIndex, mplsTunnelInstancePriority=mplsTunnelInstancePriority, mplsTunnelHopAsNumber=mplsTunnelHopAsNumber, mplsTunnelRerouted=mplsTunnelRerouted, mplsTunnelResourceMaxBurstSize=mplsTunnelResourceMaxBurstSize, mplsTunnelScalarGroup=mplsTunnelScalarGroup, mplsTunnelCRLDPResMeanBurstSize=mplsTunnelCRLDPResMeanBurstSize, mplsTunnelRole=mplsTunnelRole, mplsTunnelCRLDPResRowStatus=mplsTunnelCRLDPResRowStatus)
contacts = {} while True: tokens = input() if 'Over' == tokens: break [first_value, second_value] = tokens.split(' : ') if second_value.isdigit(): contacts[first_value] = second_value else: contacts[second_value] = first_value print(("\n".join([f'{key} -> {value}' for key, value in sorted(contacts.items())])))
# Roll no.: # Registration no.: # Evaluate fibonacci numbers and calculate the limit of the numbers. def fibo(n): """Returns nth fibonacci number.""" a, b = 0, 1 for i in range(1, n): a, b = b, a+b return b def calc_ratio(): """Calculates the limit of the ratio of fibonacci numbers correct to 4th decimal place.""" c, d = 1, 1 while True: phi = d / c c, d = d, c+d phi1 = d / c if abs(phi1 - phi) < 1.0e-5: return phi if __name__ == "__main__": n = int(input("Enter limit: ")) print([fibo(i) for i in range(1, n+1)]) print("Limit =", calc_ratio()) # EXECUTION # Enter limit: 10 # [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] # Limit = 1.6180371352785146
""" @author: ctralie / IDS 301 Class Purpose: To show how to dynamically fill in a dictionary using loops, and also to make sure students are comfortable with nested dictionaries (dictionaries that have keys whose values are themselves dictionaries) """ # The main dictionary has the student name as a key, # and a dictionary of student info as its value students = {} names = ['chris', 'celia'] # Each student is itself a dictionary with three keys keys = ['year', 'major', 'grades'] # For the grades key, we have yet another dictionary that # stores the grades by assignment assignments = ['audio', 'image', 'nbody'] # Outer loop loops through the students for name in names: print("Fill in info for ", name) # Setup a blank dictionary for this person students[name] = {} # Add empty dictionary as value for student for key in keys: # Fill the value for each key if key == 'grades': # If it's the grades key, we need to loop # through all of the assignments and create # a dictionary to hold the grades by assignment grades = {} for a in assignments: print("What is ", name, "'s grade on ", a) grade = int(input()) grades[a] = grade students[name][key] = grades else: # For all other keys, we're simply storing # a string as their value print("What is ", key, " for ", name, "?") value = input() students[name][key] = value print(students[name]) print(students)
# coding=utf-8 """ Manages the server computer """
# Params change with every run of the application and will be changed by the UI MEASUREMENT_ID = '' COMMENT = 'preliminary data' SONDE_NAME = '2015083012lin.txt' OVL_FILES = ['15083000_607.dat'] POLLY_FILES = ['2015_05_01_Fri_DWD_00_03_31.nc']
class LightSupport: EFFECT = 4 FLASH = 8 TRANSITION = 32
def flatten(iterable: list) -> list: """ A function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values. For Example: input: [1,[2,3,null,4],[null],5] output: [1,2,3,4,5] :param iterable: :return: """ result = list() get_all_digits(iterable, result) return result def get_all_digits(iterable, result: list): if isinstance(iterable, int): result.append(iterable) if isinstance(iterable, list): for item in iterable: get_all_digits(item, result)
# -*- coding: utf-8 -*- stopwords = [ 'a', 'ao', 'aos', 'aquela', 'aquelas', 'aquele', 'aqueles', 'aquilo', 'as', 'até', 'com', 'como', 'da', 'das', 'de', 'dela', 'delas', 'dele', 'deles', 'depois', 'do', 'dos', 'e', 'ela', 'elas', 'ele', 'eles', 'em', 'entre', 'era', 'eram', 'essa', 'essas', 'esse', 'esses', 'esta', 'estas', 'este', 'estes', 'eu', 'isso', 'isto', 'já', 'lhe', 'lhes', 'mais', 'mas', 'me', 'mesmo', 'meu', 'meus', 'minha', 'minhas', 'muito', 'na', 'nas', 'nem', 'no', 'nos', 'nossa', 'nossas', 'nosso', 'nossos', 'num', 'numa', 'nós', 'o', 'os', 'ou', 'para', 'pela', 'pelas', 'pelo', 'pelos', 'por', 'pra', 'qual', 'quando', 'que', 'quem', 'se', 'sem', 'seu', 'seus', 'sua', 'suas', 'só', 'também', 'te', 'tem', 'teu', 'teus', 'tu', 'tua', 'tuas', 'um', 'uma', 'você', 'vocês', 'vos', 'à', 'às', ]
# -*- coding: utf-8 -*- """Basic Grid description: content: - SquareGrid - GridWithWeights reference: 1. https://www.redblobgames.com/pathfinding/a-star/implementation.html author: Shin-Fu (Kelvin) Wu latest update: 2019/05/10 """ class SquareGrid(object): def __init__(self, width, height): """ Square Grid """ self.width = width self.height = height self.walls = set() def in_bounds(self, pos): (x, y) = pos return 0 <= x < self.width and 0 <= y < self.height def passable(self, id): return id not in self.walls def neighbors(self, pos): (x, y) = pos results = [(x+1, y), (x, y-1), (x-1, y), (x, y+1)] if (x + y) % 2 == 0: results.reverse() # aesthetics results = list(filter(self.in_bounds, results)) results = list(filter(self.passable, results)) return results class GridWithWeights(SquareGrid): def __init__(self, width, height): """ Square Grid with Weights """ super(GridWithWeights, self).__init__(width, height) self.weights = {} def cost(self, from_node, to_node): return self.weights.get(to_node, 1)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def pruneTree(self, root: TreeNode) -> TreeNode: if not root: return None root.left = self.pruneTree(root.left) root.right = self.pruneTree(root.right) if root.left is None and root.right is None and root.val == 0: return None return root ''' dfs Solution: Recursion Time complexity: O(n) where N is the number of nodes in the tree. We process each node once. Space complexity: O(h) where H is the height of the tree. This represents the size of the implicit call stack in our recursion. '''
class Node(object): def __init__(self, data = None): self.left = None self.right = None self.data = data def setLeft(self, node): self.left = node def setRight(self, node): self.right = node def getLeft(self): return self.left def getRight(self): return self.right def setData(self, data): self.data = data def getData(self): return self.data def inorder(Tree): if Tree: inorder(Tree.getLeft()) print(Tree.getData(), end = ' ') inorder(Tree.getRight()) return def preorder(Tree): if Tree: print(Tree.getData(), end = ' ') preorder(Tree.getLeft()) preorder(Tree.getRight()) return def postorder(Tree): if Tree: postorder(Tree.getLeft()) postorder(Tree.getRight()) print(Tree.getData(), end = ' ') return if __name__ == '__main__': root = Node(1) root.setLeft(Node(2)) root.setRight(Node(3)) root.left.setLeft(Node(4)) print('Inorder Traversal:') inorder(root) print('\nPreorder Traversal:') preorder(root) print('\nPostorder Traversal:') postorder(root)
"""Should raise SyntaxError: cannot assign to __debug__ in Py 3.8 and assignment to keyword before.""" __debug__ = 1
load("//rust:rust_proto_compile.bzl", "rust_proto_compile") load("//rust:rust_proto_lib.bzl", "rust_proto_lib") load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") def rust_proto_library(**kwargs): # Compile protos name_pb = kwargs.get("name") + "_pb" name_lib = kwargs.get("name") + "_lib" rust_proto_compile( name = name_pb, **{k: v for (k, v) in kwargs.items() if k in ("deps", "verbose")} # Forward args ) # Create lib file rust_proto_lib( name = name_lib, compilation = name_pb, grpc = False, ) # Create rust library rust_library( name = kwargs.get("name"), srcs = [name_pb, name_lib], deps = PROTO_DEPS, visibility = kwargs.get("visibility"), tags = kwargs.get("tags"), ) PROTO_DEPS = [ Label("//rust/raze:protobuf"), ]
message = "Hello charm" print(message) # called string methods print(message.title()) print(message.upper()) print(message.lower()) myint1 = 7 myint2 = 20 print(myint1 + myint2) myfloat1 = 1.5 myfloat2 = 2.5 print(myfloat1 + myfloat2) #convert int to str print("Happy " + str(myint2) + " birthday")
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: the root @return: the second minimum value in the set made of all the nodes' value in the whole tree """ def findSecondMinimumValue(self, root): # Write your code here def helper(root, smallest): if root is None: return -1 if root.val != smallest: return root.val left = helper(root.left, smallest) right = helper(root.right, smallest) if left == -1: return right elif right == -1: return left else: return min(left, right) return helper(root, root.val)
# Copyright (c) 2015 Joshua Coady # 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. class Card: 'a single card in the deck' __val = 0 __symbol = "" __suit = '' __visible = False def __init__(self, val, symbol, suit): self.__val = val self.__symbol = symbol self.__suit = suit #getter for the card's value def get_value(self): "getter for value" return self.__val #getter for the card's symbol def get_symbol(self): "getter for the symbol" return self.__symbol #getter for the card's suit def get_suit(self): "getter for the suit" return self.__suit def isVisible(self): "determines if the card is face up or face down" return self.__visible def set_visibility(self, visiblity): "set whether the card symbol is visible on screen" self.__visible = visiblity return
class RoutingPath: """Holds a list of block_ids and has section_id, list_item_id and list_name attributes""" def __init__(self, block_ids, section_id, list_item_id=None, list_name=None): self.block_ids = tuple(block_ids) self.section_id = section_id self.list_item_id = list_item_id self.list_name = list_name def __len__(self): return len(self.block_ids) def __getitem__(self, index): return self.block_ids[index] def __iter__(self): return iter(self.block_ids) def __reversed__(self): return reversed(self.block_ids) def __eq__(self, other): if isinstance(other, RoutingPath): return ( self.block_ids == other.block_ids and self.section_id == other.section_id and self.list_item_id == other.list_item_id and self.list_name == other.list_name ) if isinstance(other, list): return self.block_ids == tuple(other) return self.block_ids == other def index(self, *args): return self.block_ids.index(*args)
def iterSects(activeOnly=True): for sect in sections: options = {} if type(sect) is tuple: sect, options = sect try: active = options['active'] except KeyError: active = True if active or not activeOnly: yield sect, options
name = "Manish" age = 30 print("This is hello world!!!") print(name) print(float(age)) age = "31" print(age) print("this", "is", "cool", "and", "awesome!")
def ficha(nome='desconhecido', gols=0 ): print(f'O jogador {nome} marcou {gols} no campeonato.') jogador = str(input('Nome do jogador: ')) golos = str(input('Quantos golos marcados: ')) if golos.isnumeric(): golos = int(golos) else: golos = 0 if jogador.strip() == '': ficha(gols=golos) else: ficha(jogador, golos)
try: x=int(input()) y=int(input()) if(x>y): print(x) else : print(y) except : # if error occurse then except will work print("Bokachoda") else : # else will run if no error occur print("All Done") finally : # finally will work if it has error or not print("D") # cant use finally and else both # but can except and finally both
# Copyright 2016 Ifwe Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ Base class and helpers for tds.views """ class Base(object): """Base class and interface for a tds.views class.""" def __init__(self, output_format): """Initialize object.""" self.output_format = output_format def generate_result(self, view_name, tds_result): """ Create something useful for the user which will be returned to the main application entry point. """ raise NotImplementedError
# # PySNMP MIB module CASA-802-TAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CASA-802-TAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:29:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint") casa, = mibBuilder.importSymbols("CASA-MIB", "casa") pktcEScTapMediationContentId, = mibBuilder.importSymbols("PKTC-ES-TAP-MIB", "pktcEScTapMediationContentId") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, iso, Gauge32, Counter32, Integer32, Counter64, NotificationType, MibIdentifier, ObjectIdentity, ModuleIdentity, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "iso", "Gauge32", "Counter32", "Integer32", "Counter64", "NotificationType", "MibIdentifier", "ObjectIdentity", "ModuleIdentity", "Bits", "Unsigned32") DisplayString, RowStatus, TextualConvention, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention", "MacAddress") casaMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10)) casa802TapMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 20858, 10, 19)) casa802TapMIB.setRevisions(('2008-11-19 11:11',)) if mibBuilder.loadTexts: casa802TapMIB.setLastUpdated('200811191111Z') if mibBuilder.loadTexts: casa802TapMIB.setOrganization('Casa Systems, Inc.') casa802TapMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 0)) casa802TapMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1)) casa802TapMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 2)) casa802tapStreamEncodePacket = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1)) casa802tapStreamCapabilities = MibScalar((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 1), Bits().clone(namedValues=NamedValues(("tapEnable", 0), ("interface", 1), ("dstMacAddr", 2), ("srcMacAddr", 3), ("ethernetPid", 4), ("dstLlcSap", 5), ("srcLlcSap", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: casa802tapStreamCapabilities.setStatus('current') casa802tapStreamTable = MibTable((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2), ) if mibBuilder.loadTexts: casa802tapStreamTable.setStatus('current') casa802tapStreamEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1), ).setIndexNames((0, "PKTC-ES-TAP-MIB", "pktcEScTapMediationContentId"), (0, "CASA-802-TAP-MIB", "casa802tapStreamIndex")) if mibBuilder.loadTexts: casa802tapStreamEntry.setStatus('current') casa802tapStreamIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: casa802tapStreamIndex.setStatus('current') casa802tapStreamFields = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 2), Bits().clone(namedValues=NamedValues(("interface", 0), ("dstMacAddress", 1), ("srcMacAddress", 2), ("ethernetPid", 3), ("dstLlcSap", 4), ("srcLlcSap", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamFields.setStatus('current') casa802tapStreamInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamInterface.setStatus('current') casa802tapStreamDestinationAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 4), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamDestinationAddress.setStatus('current') casa802tapStreamSourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 5), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamSourceAddress.setStatus('current') casa802tapStreamEthernetPid = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamEthernetPid.setStatus('current') casa802tapStreamDestinationLlcSap = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 7), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamDestinationLlcSap.setStatus('current') casa802tapStreamSourceLlcSap = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 8), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamSourceLlcSap.setStatus('current') casa802tapStreamInterceptEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamInterceptEnable.setStatus('current') casa802tapStreamStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 20858, 10, 19, 1, 1, 2, 1, 10), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: casa802tapStreamStatus.setStatus('current') casa802TapMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 2, 1)) casa802TapMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 20858, 10, 19, 2, 2)) casa802TapMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 20858, 10, 19, 2, 1, 1)).setObjects(("CASA-802-TAP-MIB", "casa802TapStreamGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): casa802TapMIBCompliance = casa802TapMIBCompliance.setStatus('current') casa802TapStreamGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 20858, 10, 19, 2, 2, 1)).setObjects(("CASA-802-TAP-MIB", "casa802tapStreamCapabilities"), ("CASA-802-TAP-MIB", "casa802tapStreamFields"), ("CASA-802-TAP-MIB", "casa802tapStreamInterface"), ("CASA-802-TAP-MIB", "casa802tapStreamDestinationAddress"), ("CASA-802-TAP-MIB", "casa802tapStreamSourceAddress"), ("CASA-802-TAP-MIB", "casa802tapStreamEthernetPid"), ("CASA-802-TAP-MIB", "casa802tapStreamSourceLlcSap"), ("CASA-802-TAP-MIB", "casa802tapStreamDestinationLlcSap"), ("CASA-802-TAP-MIB", "casa802tapStreamStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): casa802TapStreamGroup = casa802TapStreamGroup.setStatus('current') mibBuilder.exportSymbols("CASA-802-TAP-MIB", casa802TapMIBCompliances=casa802TapMIBCompliances, casa802TapMIBConform=casa802TapMIBConform, casa802tapStreamDestinationLlcSap=casa802tapStreamDestinationLlcSap, casa802TapMIBGroups=casa802TapMIBGroups, casa802TapMIBCompliance=casa802TapMIBCompliance, casa802tapStreamEthernetPid=casa802tapStreamEthernetPid, casa802tapStreamDestinationAddress=casa802tapStreamDestinationAddress, casa802tapStreamTable=casa802tapStreamTable, casa802tapStreamStatus=casa802tapStreamStatus, casa802tapStreamFields=casa802tapStreamFields, casa802TapMIBNotifs=casa802TapMIBNotifs, casa802tapStreamCapabilities=casa802tapStreamCapabilities, casa802tapStreamIndex=casa802tapStreamIndex, casa802TapStreamGroup=casa802TapStreamGroup, casa802tapStreamSourceAddress=casa802tapStreamSourceAddress, casa802tapStreamEncodePacket=casa802tapStreamEncodePacket, casa802tapStreamSourceLlcSap=casa802tapStreamSourceLlcSap, casa802tapStreamInterceptEnable=casa802tapStreamInterceptEnable, casa802tapStreamInterface=casa802tapStreamInterface, casa802TapMIBObjects=casa802TapMIBObjects, PYSNMP_MODULE_ID=casa802TapMIB, casaMgmt=casaMgmt, casa802tapStreamEntry=casa802tapStreamEntry, casa802TapMIB=casa802TapMIB)
# Záplava čísel # Na vstupe získate reťazec obsahujúci iba číslice. Vypíšte na výstup reťazec, ktorý bude obsahovať každú číslicu zo vstupu toľko krát, koľko je hodnota číslice (tj. Dve dvojky, päť pätiek atď ...). # Sample Input: # 25104 # Sample Output: # 225555514444 vstup = input() for i in vstup: print(int(i) * i, end= '')
# # PySNMP MIB module DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:09:52 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint") ( docsDevEvLevel, docsDevServerTime, docsDevSwServer, docsDevEvText, docsDevSwFilename, docsDevServerDhcp, docsDevEvId, ) = mibBuilder.importSymbols("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel", "docsDevServerTime", "docsDevSwServer", "docsDevEvText", "docsDevSwFilename", "docsDevServerDhcp", "docsDevEvId") ( docsIfCmStatusModulationType, docsIfCmStatusDocsisOperMode, docsIfCmtsCmStatusMacAddress, docsIfCmtsCmStatusDocsisRegMode, docsIfDocsisBaseCapability, docsIfCmCmtsAddress, docsIfCmtsCmStatusModulationType, ) = mibBuilder.importSymbols("DOCS-IF-MIB", "docsIfCmStatusModulationType", "docsIfCmStatusDocsisOperMode", "docsIfCmtsCmStatusMacAddress", "docsIfCmtsCmStatusDocsisRegMode", "docsIfDocsisBaseCapability", "docsIfCmCmtsAddress", "docsIfCmtsCmStatusModulationType") ( ifPhysAddress, ) = mibBuilder.importSymbols("IF-MIB", "ifPhysAddress") ( ObjectGroup, ModuleCompliance, NotificationGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") ( ModuleIdentity, MibIdentifier, Integer32, Counter64, Gauge32, IpAddress, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, iso, TimeTicks, mib_2, Unsigned32, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibIdentifier", "Integer32", "Counter64", "Gauge32", "IpAddress", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "iso", "TimeTicks", "mib-2", "Unsigned32", "Counter32") ( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") docsDevNotifMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 132)).setRevisions(("2006-05-24 00:00",)) if mibBuilder.loadTexts: docsDevNotifMIB.setLastUpdated('200605240000Z') if mibBuilder.loadTexts: docsDevNotifMIB.setOrganization('IETF IP over Cable Data Network\n Working Group') if mibBuilder.loadTexts: docsDevNotifMIB.setContactInfo(' Azlina Ahmad\n Postal: Cisco Systems, Inc.\n 170 West Tasman Drive\n San Jose, CA 95134, U.S.A.\n Phone: 408 853 7927\n E-mail: azlina@cisco.com\n\n Greg Nakanishi\n Postal: Motorola\n 6450 Sequence Drive\n San Diego, CA 92121, U.S.A.\n Phone: 858 404 2366\n E-mail: gnakanishi@motorola.com\n\n IETF IPCDN Working Group\n General Discussion: ipcdn@ietf.org\n\n\n\n Subscribe: http://www.ietf.org/mailman/listinfo/ipcdn\n Archive: ftp://ftp.ietf.org/ietf-mail-archive/ipcdn\n Co-chairs: Richard Woundy,\n richard_woundy@cable.comcast.com\n Jean-Francois Mule, jf.mule@cablelabs.com') if mibBuilder.loadTexts: docsDevNotifMIB.setDescription('The Event Notification MIB is an extension of the\n CABLE DEVICE MIB. It defines various notification\n objects for both cable modem and cable modem termination\n systems. Two groups of SNMP notification objects are\n defined. One group is for notifying cable modem events,\n and one group is for notifying cable modem termination\n system events.\n\n DOCSIS defines numerous events, and each event is\n assigned to a functional category. This MIB defines\n a notification object for each functional category.\n The varbinding list of each notification includes\n information about the event that occurred on the\n device.\n\n Copyright (C) The Internet Society (2006). This version\n of this MIB module is part of RFC 4547; see the RFC\n itself for full legal notices.') docsDevNotifControl = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 1)) docsDevCmNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 2, 0)) docsDevCmtsNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 3, 0)) docsDevCmNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 1), Bits().clone(namedValues=NamedValues(("cmInitTLVUnknownNotif", 0), ("cmDynServReqFailNotif", 1), ("cmDynServRspFailNotif", 2), ("cmDynServAckFailNotif", 3), ("cmBpiInitNotif", 4), ("cmBPKMNotif", 5), ("cmDynamicSANotif", 6), ("cmDHCPFailNotif", 7), ("cmSwUpgradeInitNotif", 8), ("cmSwUpgradeFailNotif", 9), ("cmSwUpgradeSuccessNotif", 10), ("cmSwUpgradeCVCNotif", 11), ("cmTODFailNotif", 12), ("cmDCCReqFailNotif", 13), ("cmDCCRspFailNotif", 14), ("cmDCCAckFailNotif", 15),))).setMaxAccess("readwrite") if mibBuilder.loadTexts: docsDevCmNotifControl.setDescription('The object is used to enable specific CM notifications.\n For example, if the first bit is set, then\n docsDevCmInitTLVUnknownNotif is enabled. If it is not set,\n the notification is disabled. Note that notifications are\n also under the control of the MIB modules defined in\n RFC3413.\n\n If the device is rebooted,the value of this object SHOULD\n revert to the default value.\n ') docsDevCmtsNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 2), Bits().clone(namedValues=NamedValues(("cmtsInitRegReqFailNotif", 0), ("cmtsInitRegRspFailNotif", 1), ("cmtsInitRegAckFailNotif", 2), ("cmtsDynServReqFailNotif", 3), ("cmtsDynServRspFailNotif", 4), ("cmtsDynServAckFailNotif", 5), ("cmtsBpiInitNotif", 6), ("cmtsBPKMNotif", 7), ("cmtsDynamicSANotif", 8), ("cmtsDCCReqFailNotif", 9), ("cmtsDCCRspFailNotif", 10), ("cmtsDCCAckFailNotif", 11),))).setMaxAccess("readwrite") if mibBuilder.loadTexts: docsDevCmtsNotifControl.setDescription('The object is used to enable specific CMTS notifications.\n For example, if the first bit is set, then\n docsDevCmtsInitRegRspFailNotif is enabled. If it is not set,\n the notification is disabled. Note that notifications are\n also under the control of the MIB modules defined in\n RFC3413.\n\n\n\n\n If the device is rebooted,the value of this object SHOULD\n revert to the default value.\n ') docsDevCmInitTLVUnknownNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmInitTLVUnknownNotif.setDescription('Notification to indicate that an unknown TLV was\n encountered during the TLV parsing process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDynServReqFailNotif.setDescription('A notification to report the failure of a dynamic service\n request during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected to (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDynServRspFailNotif.setDescription(' A notification to report the failure of a dynamic service\n response during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDynServAckFailNotif.setDescription('A notification to report the failure of a dynamic service\n acknowledgement during the dynamic services process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 5)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmBpiInitNotif.setDescription('A notification to report the failure of a BPI\n initialization attempt during the registration process.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n\n\n\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 6)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmBPKMNotif.setDescription('A notification to report the failure of a Baseline\n Privacy Key Management (BPKM) operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n\n\n\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 7)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDynamicSANotif.setDescription('A notification to report the failure of a dynamic security\n association operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDHCPFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 8)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevServerDhcp"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDHCPFailNotif.setDescription('A notification to report the failure of a DHCP operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevServerDhcp: the IP address of the DHCP server.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmSwUpgradeInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 9)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmSwUpgradeInitNotif.setDescription('A notification to indicate that a software upgrade\n has been initiated on the device.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmSwUpgradeFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 10)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmSwUpgradeFailNotif.setDescription('A notification to report the failure of a software upgrade\n attempt.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevSwFilename: the software image file name\n - docsDevSwServer: the IP address of the server that\n the image is retrieved from.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmSwUpgradeSuccessNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 11)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwFilename"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevSwServer"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmSwUpgradeSuccessNotif.setDescription('A notification to report the software upgrade success\n status.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevSwFilename: the software image file name\n - docsDevSwServer: the IP address of the server that\n the image is retrieved from.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmSwUpgradeCVCFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 12)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmSwUpgradeCVCFailNotif.setDescription('A notification to report that the verification of the\n code file has failed during a secure software upgrade\n attempt.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmTODFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 13)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevServerTime"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmTODFailNotif.setDescription('A notification to report the failure of a time of day\n\n\n\n operation.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsDevServerTime: the IP address of the time server.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 14)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDCCReqFailNotif.setDescription(' A notification to report the failure of a dynamic channel\n change request during the dynamic channel change process\n on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n\n\n\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 15)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDCCRspFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change response during the dynamic channel\n change process on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n\n\n\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmStatusModulationType: the upstream modulation\n methodology used by the CM.\n ') docsDevCmDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 16)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmCmtsAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmDCCAckFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change acknowledgement during the dynamic channel\n change process on the CM.\n\n This notification sends additional information about\n the event by including the following objects in its\n\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - ifPhysAddress: the MAC address of the cable\n interface of this cable modem.\n - docsIfCmCmtsAddress: the MAC address of the CMTS\n to which the CM is connected (if there is a cable\n card/interface in the CMTS, then it is actually the\n MAC address of the cable interface to which it is\n\n\n\n connected).\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmStatusDocsisOperMode: the QOS level (1.0, 1.1)\n that the CM is operating in.\n - docsIfCmtsCmStatusModulationType the upstream modulation\n methodology used by the CM.\n ') docsDevCmtsInitRegReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsInitRegReqFailNotif.setDescription('A notification to report the failure of a registration\n request from a CM during the CM initialization\n process that was detected on the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsInitRegRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsInitRegRspFailNotif.setDescription('A notification to report the failure of a registration\n response during the CM initialization\n process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsInitRegAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsInitRegAckFailNotif.setDescription('A notification to report the failure of a registration\n acknowledgement from the CM during the CM\n initialization process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDynServReqFailNotif.setDescription('A notification to report the failure of a dynamic service\n request during the dynamic services process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 5)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDynServRspFailNotif.setDescription('A notification to report the failure of a dynamic service\n response during the dynamic services process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 6)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDynServAckFailNotif.setDescription('A notification to report the failure of a dynamic service\n acknowledgement during the dynamic services\n process that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n\n\n\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 7)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsBpiInitNotif.setDescription('A notification to report the failure of a BPI\n initialization attempt during the CM registration process\n that was detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n\n\n\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 8)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsBPKMNotif.setDescription('A notification to report the failure of a BPKM operation\n that is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n\n\n\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 9)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDynamicSANotif.setDescription('A notification to report the failure of a dynamic security\n association operation that is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n\n\n\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 10)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDCCReqFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change request during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 11)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDCCRspFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change response during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevCmtsDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 12)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvLevel"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvId"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevEvText"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "ifPhysAddress"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsIfCmtsCmStatusModulationType"),)) if mibBuilder.loadTexts: docsDevCmtsDCCAckFailNotif.setDescription('A notification to report the failure of a dynamic channel\n change acknowledgement during the dynamic channel\n change process and is detected by the CMTS.\n\n This notification sends additional information about\n the event by including the following objects in its\n varbinding list.\n - docsDevEvLevel: the priority level associated with the\n event.\n - docsDevEvId: the unique identifier of the event that\n occurred.\n - docsDevEvText: a textual description of the event.\n - docsIfCmtsCmStatusMacAddress: the MAC address of the CM\n with which this notification is associated.\n - ifPhysAddress: the MAC address of the CMTS\n (if there is a cable card/interface in the CMTS,\n then it is actually the MAC address of the cable\n interface that connected to the CM) cable interface\n connected to the CM.\n - docsIfCmtsCmStatusDocsisRegMode: the QOS level (1.0, 1.1)\n that the reporting CM is operating in.\n - docsIfDocsisBaseCapability: the highest\n version of the DOCSIS specification (1.0, 1.1, 2.0)\n that the device is capable of supporting.\n - docsIfCmtsCmStatusModulationType: the upstream\n modulation methodology used by the CM.\n ') docsDevNotifConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4)) docsDevNotifGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 1)) docsDevNotifCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 2)) docsDevCmNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotificationGroup"),)) if mibBuilder.loadTexts: docsDevCmNotifCompliance.setDescription('The compliance statement for CM Notifications and Control.') docsDevCmNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 1)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControl"),)) if mibBuilder.loadTexts: docsDevCmNotifControlGroup.setDescription('This group represents objects that allow control\n over CM Notifications.') docsDevCmNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmInitTLVUnknownNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDHCPFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeSuccessNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeCVCFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmTODFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCAckFailNotif"),)) if mibBuilder.loadTexts: docsDevCmNotificationGroup.setDescription('A collection of CM notifications providing device status\n and control.') docsDevCmtsNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 2)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotificationGroup"),)) if mibBuilder.loadTexts: docsDevCmtsNotifCompliance.setDescription('The compliance statement for DOCSIS CMTS Notification\n and Control.') docsDevCmtsNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 3)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControl"),)) if mibBuilder.loadTexts: docsDevCmtsNotifControlGroup.setDescription('This group represents objects that allow control\n over CMTS Notifications.') docsDevCmtsNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 4)).setObjects(*(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCAckFailNotif"),)) if mibBuilder.loadTexts: docsDevCmtsNotificationGroup.setDescription('A collection of CMTS notifications providing device\n status and control.') mibBuilder.exportSymbols("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", docsDevNotifMIB=docsDevNotifMIB, docsDevCmtsDynServReqFailNotif=docsDevCmtsDynServReqFailNotif, docsDevCmDynServReqFailNotif=docsDevCmDynServReqFailNotif, docsDevCmBPKMNotif=docsDevCmBPKMNotif, docsDevCmInitTLVUnknownNotif=docsDevCmInitTLVUnknownNotif, docsDevCmTODFailNotif=docsDevCmTODFailNotif, docsDevCmtsNotifControl=docsDevCmtsNotifControl, docsDevCmNotifControlGroup=docsDevCmNotifControlGroup, docsDevCmtsDCCAckFailNotif=docsDevCmtsDCCAckFailNotif, docsDevCmBpiInitNotif=docsDevCmBpiInitNotif, docsDevCmDHCPFailNotif=docsDevCmDHCPFailNotif, docsDevCmtsNotifs=docsDevCmtsNotifs, docsDevCmtsBpiInitNotif=docsDevCmtsBpiInitNotif, docsDevCmtsInitRegRspFailNotif=docsDevCmtsInitRegRspFailNotif, docsDevCmDCCRspFailNotif=docsDevCmDCCRspFailNotif, docsDevCmDCCAckFailNotif=docsDevCmDCCAckFailNotif, docsDevNotifConformance=docsDevNotifConformance, docsDevCmtsDCCRspFailNotif=docsDevCmtsDCCRspFailNotif, docsDevCmSwUpgradeCVCFailNotif=docsDevCmSwUpgradeCVCFailNotif, docsDevCmDynamicSANotif=docsDevCmDynamicSANotif, docsDevCmtsInitRegAckFailNotif=docsDevCmtsInitRegAckFailNotif, docsDevCmNotifCompliance=docsDevCmNotifCompliance, docsDevCmSwUpgradeInitNotif=docsDevCmSwUpgradeInitNotif, docsDevNotifGroups=docsDevNotifGroups, docsDevCmtsDynamicSANotif=docsDevCmtsDynamicSANotif, docsDevCmDynServAckFailNotif=docsDevCmDynServAckFailNotif, docsDevCmtsBPKMNotif=docsDevCmtsBPKMNotif, docsDevCmNotifs=docsDevCmNotifs, docsDevCmNotificationGroup=docsDevCmNotificationGroup, docsDevCmNotifControl=docsDevCmNotifControl, docsDevCmDynServRspFailNotif=docsDevCmDynServRspFailNotif, docsDevCmSwUpgradeSuccessNotif=docsDevCmSwUpgradeSuccessNotif, docsDevNotifControl=docsDevNotifControl, PYSNMP_MODULE_ID=docsDevNotifMIB, docsDevCmtsInitRegReqFailNotif=docsDevCmtsInitRegReqFailNotif, docsDevCmtsDCCReqFailNotif=docsDevCmtsDCCReqFailNotif, docsDevCmtsDynServRspFailNotif=docsDevCmtsDynServRspFailNotif, docsDevCmtsNotifCompliance=docsDevCmtsNotifCompliance, docsDevCmtsDynServAckFailNotif=docsDevCmtsDynServAckFailNotif, docsDevCmtsNotificationGroup=docsDevCmtsNotificationGroup, docsDevCmSwUpgradeFailNotif=docsDevCmSwUpgradeFailNotif, docsDevCmDCCReqFailNotif=docsDevCmDCCReqFailNotif, docsDevCmtsNotifControlGroup=docsDevCmtsNotifControlGroup, docsDevNotifCompliances=docsDevNotifCompliances)
# # PySNMP MIB module MY-VLAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MY-VLAN-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:16:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection") myMgmt, = mibBuilder.importSymbols("MY-SMI", "myMgmt") ConfigStatus, IfIndex, MemberMap = mibBuilder.importSymbols("MY-TC", "ConfigStatus", "IfIndex", "MemberMap") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") VlanId, PortList = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId", "PortList") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") ModuleIdentity, Gauge32, Counter64, NotificationType, Integer32, MibIdentifier, iso, Counter32, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Unsigned32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "Gauge32", "Counter64", "NotificationType", "Integer32", "MibIdentifier", "iso", "Counter32", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Unsigned32", "IpAddress") RowStatus, DisplayString, MacAddress, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "MacAddress", "TruthValue", "TextualConvention") myVlanMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9)) myVlanMIB.setRevisions(('2002-03-20 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: myVlanMIB.setRevisionsDescriptions(('Initial version of this MIB module.',)) if mibBuilder.loadTexts: myVlanMIB.setLastUpdated('200203200000Z') if mibBuilder.loadTexts: myVlanMIB.setOrganization('D-Link Crop.') if mibBuilder.loadTexts: myVlanMIB.setContactInfo(' http://support.dlink.com') if mibBuilder.loadTexts: myVlanMIB.setDescription('This module defines my vlan mibs.') myVlanMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1)) class VlanList(TextualConvention, OctetString): description = "Each octet within this value specifies a set of eight vlans, with the first octet specifying vlans 1 through 8, the second octet specifying vlans 9 through 16, etc. Within each octet, the most significant bit represents the lowest numbered vlan, and the least significant bit represents the highest numbered vlan. Thus, each vlan of the bridge is represented by a single bit within the value of this object. If that bit has a value of '1', then that vlan is included in the set of vlans; the vlan is not included if its bit has a value of '0'." status = 'current' myVlanMaxNumber = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanMaxNumber.setStatus('current') if mibBuilder.loadTexts: myVlanMaxNumber.setDescription('Number of MAX vlans this system supported.') myVlanCurrentNumber = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanCurrentNumber.setStatus('current') if mibBuilder.loadTexts: myVlanCurrentNumber.setDescription('Number of current vlans this system have.') mySystemMaxVID = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mySystemMaxVID.setStatus('current') if mibBuilder.loadTexts: mySystemMaxVID.setDescription('Max vlans of VID this system supported.') myVlanIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4), ) if mibBuilder.loadTexts: myVlanIfConfigTable.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfConfigTable.setDescription('vlan table.') myVlanIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4, 1), ).setIndexNames((0, "MY-VLAN-MIB", "myVlanIfConfigIfIndex")) if mibBuilder.loadTexts: myVlanIfConfigEntry.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfConfigEntry.setDescription("list of vlan and it's port group table.") myVlanIfConfigIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4, 1, 1), IfIndex()) if mibBuilder.loadTexts: myVlanIfConfigIfIndex.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfConfigIfIndex.setDescription(' ') myVlanIfAccessVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4, 1, 2), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanIfAccessVlan.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfAccessVlan.setDescription('The value indicate the VID of the vlan which that this port belong to. This field is effective for only access port.') myVlanIfNativeVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4, 1, 3), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanIfNativeVlan.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfNativeVlan.setDescription('The value indicate the VID of the native vlan of that this port . This field is effective for only trunk port.') myVlanIfAllowedVlanList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(512, 512)).setFixedLength(512)).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanIfAllowedVlanList.setStatus('obsolete') if mibBuilder.loadTexts: myVlanIfAllowedVlanList.setDescription('Each bit in every octet in octet string assigned to a vlan, the value of the bit indicates that if the vlan is belong to allowed vlan list of this interface. It indicates that assigned vlan is member of allowed vlan list of this interface if value of the bit is 1. The lowest bit of first byte correspond to vlan 1 and the lowest bit of second byte correspond to vlan 9 vlan. This field is effective for only trunk port.') myVlanTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5), ) if mibBuilder.loadTexts: myVlanTable.setStatus('obsolete') if mibBuilder.loadTexts: myVlanTable.setDescription('vlan table.') myVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1), ).setIndexNames((0, "MY-VLAN-MIB", "myVlanVID")) if mibBuilder.loadTexts: myVlanEntry.setStatus('obsolete') if mibBuilder.loadTexts: myVlanEntry.setDescription("list of vlan and it's distribution table.") myVlanVID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1, 1), VlanId()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanVID.setStatus('obsolete') if mibBuilder.loadTexts: myVlanVID.setDescription('VID of vlan .') myVlanPortMemberAction = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1, 2), MemberMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanPortMemberAction.setStatus('obsolete') if mibBuilder.loadTexts: myVlanPortMemberAction.setDescription("Each octet in member map assigned to a physical port, the value of the octect indicates the action of a physical port in the vlan. Drop(1) indicate that the vlan doesn't include this physical port, Add(2) indicate that the vlan include this physical port.") myVlanApMemberAction = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1, 3), MemberMap()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanApMemberAction.setStatus('obsolete') if mibBuilder.loadTexts: myVlanApMemberAction.setDescription("Each octet in member map assigned to a aggreate port, the value of the octect indicates the action of a aggreate port in the vlan. Drop(1) indicate that the vlan doesn't include this physical port, Add(2) indicate that the vlan include this physical port.") myVlanAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanAlias.setStatus('obsolete') if mibBuilder.loadTexts: myVlanAlias.setDescription("Vlan's alias .") myVlanEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 5, 1, 5), ConfigStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: myVlanEntryStatus.setStatus('obsolete') if mibBuilder.loadTexts: myVlanEntryStatus.setDescription('Status of this entry, set this object to valid will creat a vlan of this entry, and set its value to invalid will delete the vlan of this entry.') myVlanPortConfigTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6), ) if mibBuilder.loadTexts: myVlanPortConfigTable.setStatus('current') if mibBuilder.loadTexts: myVlanPortConfigTable.setDescription('The table of VLAN members.') myVlanPortConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1), ).setIndexNames((0, "MY-VLAN-MIB", "myVlanPortConfigIndex")) if mibBuilder.loadTexts: myVlanPortConfigEntry.setStatus('current') if mibBuilder.loadTexts: myVlanPortConfigEntry.setDescription('list of ports.') myVlanPortConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1, 1), IfIndex()) if mibBuilder.loadTexts: myVlanPortConfigIndex.setStatus('current') if mibBuilder.loadTexts: myVlanPortConfigIndex.setDescription('port index') myVlanPortConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("access", 1), ("trunk", 2), ("dot1q-tunnel", 3), ("hybrid", 4), ("other", 5), ("uplink", 6), ("host", 7), ("promiscuous", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanPortConfigMode.setStatus('current') if mibBuilder.loadTexts: myVlanPortConfigMode.setDescription('Port mode, indicates that port is an access(1), trunk(2), dot1q-tunnel(3), hybrid(4), other(5), uplink(6), host(7) or promiscuous(8) port.') myVlanPortAccessVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1, 3), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanPortAccessVlan.setStatus('current') if mibBuilder.loadTexts: myVlanPortAccessVlan.setDescription('The value indicate the VID of the vlan which that this port belong to. This field is effective for only access port.') myVlanPortNativeVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1, 4), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanPortNativeVlan.setStatus('current') if mibBuilder.loadTexts: myVlanPortNativeVlan.setDescription('The value indicate the VID of the native vlan of that this port . This field is effective for only trunk,hybrid,uplink and dot1q_tunnel port.') myVlanPortAllowedVlanList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 6, 1, 5), VlanList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanPortAllowedVlanList.setStatus('current') if mibBuilder.loadTexts: myVlanPortAllowedVlanList.setDescription("Each octet within this value specifies a set of eight vlans, with the first octet specifying vlans 0 through 7, the second octet specifying vlans 8 through 15, etc. Within each octet, the most significant bit represents the lowest numbered vlan, and the least significant bit represents the highest numbered vlan. Thus, each vlan of the bridge is represented by a single bit within the value of this object. If that bit has a value of '1', then that vlan is included in the set of vlans; the vlan is not included if its bit has a value of '0'") myVlanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7), ) if mibBuilder.loadTexts: myVlanConfigTable.setStatus('current') if mibBuilder.loadTexts: myVlanConfigTable.setDescription('vlan table.') myVlanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7, 1), ).setIndexNames((0, "MY-VLAN-MIB", "myVlanConfigVID")) if mibBuilder.loadTexts: myVlanConfigEntry.setStatus('current') if mibBuilder.loadTexts: myVlanConfigEntry.setDescription("list of vlan and it's distribution table.") myVlanConfigVID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7, 1, 1), VlanId()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanConfigVID.setStatus('current') if mibBuilder.loadTexts: myVlanConfigVID.setDescription('VID of vlan .') myVlanConfigAction = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanConfigAction.setStatus('current') if mibBuilder.loadTexts: myVlanConfigAction.setDescription('The value 1 to create a vlan, 0 to delete a vlan.') myVlanConfigName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: myVlanConfigName.setStatus('current') if mibBuilder.loadTexts: myVlanConfigName.setDescription('vlan name.') myVlanConfigPortMember = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 1, 7, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: myVlanConfigPortMember.setStatus('current') if mibBuilder.loadTexts: myVlanConfigPortMember.setDescription("Each octet within this value specifies a set of eight ports, with the first octet specifying ports 1 through 8, the second octet specifying ports 9 through 16, etc. Within each octet, the most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the bridge is represented by a single bit within the value of this object. If that bit has a value of '1', then that port is included in the set of ports; the port is not included if its bit has a value of '0'.") myVlanMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 2)) myVlanMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 2, 1)) myVlanMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 2, 2)) myVlanMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 2, 1, 1)).setObjects(("MY-VLAN-MIB", "myVlanMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): myVlanMIBCompliance = myVlanMIBCompliance.setStatus('current') if mibBuilder.loadTexts: myVlanMIBCompliance.setDescription('The compliance statement for entities which implement the My Vlan MIB') myVlanMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 171, 10, 97, 2, 9, 2, 2, 1)).setObjects(("MY-VLAN-MIB", "myVlanMaxNumber"), ("MY-VLAN-MIB", "myVlanCurrentNumber"), ("MY-VLAN-MIB", "mySystemMaxVID"), ("MY-VLAN-MIB", "myVlanIfAccessVlan"), ("MY-VLAN-MIB", "myVlanIfNativeVlan"), ("MY-VLAN-MIB", "myVlanIfAllowedVlanList"), ("MY-VLAN-MIB", "myVlanVID"), ("MY-VLAN-MIB", "myVlanApMemberAction"), ("MY-VLAN-MIB", "myVlanPortMemberAction"), ("MY-VLAN-MIB", "myVlanAlias"), ("MY-VLAN-MIB", "myVlanEntryStatus"), ("MY-VLAN-MIB", "myVlanPortConfigMode"), ("MY-VLAN-MIB", "myVlanPortAccessVlan"), ("MY-VLAN-MIB", "myVlanPortNativeVlan"), ("MY-VLAN-MIB", "myVlanPortAllowedVlanList"), ("MY-VLAN-MIB", "myVlanConfigVID"), ("MY-VLAN-MIB", "myVlanConfigAction"), ("MY-VLAN-MIB", "myVlanConfigName"), ("MY-VLAN-MIB", "myVlanConfigPortMember")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): myVlanMIBGroup = myVlanMIBGroup.setStatus('current') if mibBuilder.loadTexts: myVlanMIBGroup.setDescription('A collection of objects providing vlan configure .') mibBuilder.exportSymbols("MY-VLAN-MIB", mySystemMaxVID=mySystemMaxVID, myVlanIfAllowedVlanList=myVlanIfAllowedVlanList, myVlanIfAccessVlan=myVlanIfAccessVlan, myVlanVID=myVlanVID, VlanList=VlanList, myVlanConfigTable=myVlanConfigTable, myVlanPortNativeVlan=myVlanPortNativeVlan, myVlanMIBGroup=myVlanMIBGroup, myVlanMaxNumber=myVlanMaxNumber, myVlanTable=myVlanTable, myVlanPortConfigTable=myVlanPortConfigTable, myVlanPortConfigIndex=myVlanPortConfigIndex, myVlanCurrentNumber=myVlanCurrentNumber, myVlanConfigName=myVlanConfigName, myVlanEntry=myVlanEntry, myVlanAlias=myVlanAlias, myVlanPortMemberAction=myVlanPortMemberAction, myVlanApMemberAction=myVlanApMemberAction, myVlanConfigPortMember=myVlanConfigPortMember, myVlanMIBConformance=myVlanMIBConformance, myVlanConfigAction=myVlanConfigAction, myVlanIfNativeVlan=myVlanIfNativeVlan, myVlanMIBObjects=myVlanMIBObjects, myVlanMIBCompliances=myVlanMIBCompliances, myVlanPortConfigMode=myVlanPortConfigMode, myVlanConfigEntry=myVlanConfigEntry, myVlanConfigVID=myVlanConfigVID, PYSNMP_MODULE_ID=myVlanMIB, myVlanIfConfigTable=myVlanIfConfigTable, myVlanPortAllowedVlanList=myVlanPortAllowedVlanList, myVlanMIBGroups=myVlanMIBGroups, myVlanIfConfigIfIndex=myVlanIfConfigIfIndex, myVlanMIBCompliance=myVlanMIBCompliance, myVlanEntryStatus=myVlanEntryStatus, myVlanIfConfigEntry=myVlanIfConfigEntry, myVlanPortAccessVlan=myVlanPortAccessVlan, myVlanMIB=myVlanMIB, myVlanPortConfigEntry=myVlanPortConfigEntry)
name, age = "ansan p", 18 username = "ansanpsam710*" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
class Stack: def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, data): self.items.append(data) def pop(self): return self.items.pop() def display(self): for data in reversed(self.items): print(data) def insert_at_bottom(s, data): if s.is_empty(): s.push(data) else: popped = s.pop() insert_at_bottom(s, data) s.push(popped) def reverse_stack(s): if not s.is_empty(): popped = s.pop() reverse_stack(s) insert_at_bottom(s, popped) s = Stack() data_list = input('Please enter the elements to push: ').split() for data in data_list: s.push(int(data)) print('The stack:') s.display() reverse_stack(s) print('After reversing:') s.display()
class BotError(RuntimeError): def __init__(self, message = "An unexpected error occurred with the bot!"): self.message = message class DataError(RuntimeError): def __init__(self, message = "An unexpected error occurred when accessing/saving data!"): self.message = message
print('='*8,'Tinta para Pintar Parede','='*8) l = float(input('Qual a largura da parede em metros?')) a = float(input('Qual a altura da parede em metros?')) a2 = a*l qt = a2/2 print('''As dimensoes dessa parede sao de {}x{}. A area desta parede equivale a {} metros quadrados. Para pinta-la serao necessarios cerca de {} litros de tinta.'''.format(l,a,a2,qt))
# -*- coding: utf-8 -*- """ Created on Wed Sep 2 10:24:43 2020 @author: roger luo """ def fun_add(x, y): """add numbers .. _x-y-z: Parameters ---------- x : TYPE DESCRIPTION. y : TYPE DESCRIPTION. Returns ------- None. """ return x, y def showplot(): """show plot example example ------- .. plot:: import matplotlib.pyplot as plt import numpy as np x = np.random.randn(1000) plt.hist( x, 20) plt.grid() plt.show() """ return def show_code(): """ show code .. ipython:: :okwarning: In [14]: import pandas as pd In [15]: pd.Series([1,2,3]) In [22]: x =3 In [23]: z =x^2 In [24]: pd.np.random.randn(10,2) """
def get_all_files_in_folder(folder, types): files_grabbed = [] for t in types: files_grabbed.extend(folder.rglob(t)) files_grabbed = sorted(files_grabbed, key=lambda x: x) return files_grabbed def yolo2voc(image_height, image_width, bboxes): """ yolo => [xmid, ymid, w, h] (normalized) voc => [x1, y1, x2, y2] """ bboxes = bboxes.copy().astype(float) # otherwise all value will be 0 as voc_pascal dtype is np.int bboxes[..., [0, 2]] = bboxes[..., [0, 2]] * image_width bboxes[..., [1, 3]] = bboxes[..., [1, 3]] * image_height bboxes[..., [0, 1]] = bboxes[..., [0, 1]] - bboxes[..., [2, 3]] / 2 bboxes[..., [2, 3]] = bboxes[..., [0, 1]] + bboxes[..., [2, 3]] return bboxes # data/augmentation/images_txt_source/ffd6378b78d84c2df418d855a3b3f7565bdb07044bac91233b6d59ba0837039c.jpg
# File: terraformcloud_consts.py # Copyright (c) 2020 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) TERRAFORM_DEFAULT_URL = "https://app.terraform.io" TERRAFORM_BASE_API_ENDPOINT = "/api/v2" TERRAFORM_ENDPOINT_WORKSPACES = "/organizations/{organization_name}/workspaces" TERRAFORM_ENDPOINT_GET_WORKSPACE_BY_ID = "/workspaces/{id}" TERRAFORM_ENDPOINT_RUNS = "/runs" TERRAFORM_ENDPOINT_LIST_RUNS = "/workspaces/{id}/runs" TERRAFORM_ENDPOINT_ACCOUNT_DETAILS = "/account/details" TERRAFORM_ENDPOINT_APPLIES = "/applies/{id}" TERRAFORM_ENDPOINT_APPLY_RUN = "/runs/{run_id}/actions/apply" TERRAFORM_ENDPOINT_PLANS = "/plans/{id}" # exception handling ERR_CODE_MSG = "Error code unavailable" ERR_MSG_UNAVAILABLE = "Error message unavailable. Please check the asset configuration and|or action parameters" PARSE_ERR_MSG = "Unable to parse the error message. Please check the asset configuration and|or action parameters" TYPE_ERR_MSG = "Error occurred while connecting to the Terraform Cloud Server. Please check the asset configuration and|or the action parameters" # validate integer ERR_VALID_INT_MSG = "Please provide a valid integer value in the {}" ERR_NON_NEG_INT_MSG = "Please provide a valid non-negative integer value in the {}" PAGE_NUM_INT_PARAM = "'page_num' action parameter" PAGE_SIZE_INT_PARAM = "'page_size' action parameter"
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 22 21:18:39 2017 @author: maque the demo code is from the book <Problem solving with algorithms and data structure > """ class Stack: """ A stack (sometimes called a “push-down stack”) is an ordered collection of items where the addition of new items and the removal of existing items always takes place at the same end. This end is commonly referred to as the “top.” The end opposite the top is known as the “base.” LIFO means Last in first out """ def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items)-1] def size(self): return len(self.items) stack = Stack() stack.isEmpty() stack.push('tree') stack.push('river') stack.push('wall') stack.peek() stack.pop() stack.size()
# This problem was recently asked by Uber: # Imagine you are building a compiler. Before running any code, the compiler must check that the parentheses in the program are balanced. Every opening bracket must have a corresponding closing bracket. We can approximate this using strings. # Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. # An input string is valid if: # - Open brackets are closed by the same type of brackets. # - Open brackets are closed in the correct order. # - Note that an empty string is also considered valid. class Solution: def isValid(self, s): # Fill this in. stack = [] open_list = ["[","{","("] close_list = ["]","}",")"] for i in s: if i in open_list: stack.append(i) elif i in close_list: pos = close_list.index(i) # compare with the top of the stack if ((len(stack) > 0) and (open_list[pos] == stack[len(stack)-1])): stack.pop() else: return False if len(stack) == 0: return True else: return False # Test Program s = "()(){(())" # should return False print(Solution().isValid(s)) s = "" # should return True print(Solution().isValid(s)) s = "([{}])()" # should return True print(Solution().isValid(s))
# result = {"Borough Park" : [[lat1, lon1], [lat2, lon2], ...]} """ polygons = { "Borough Park" : {Lat : [], Lon : []} "East Flushing" : {Lat : [], Lon : []} "Auburndale" : {Lat : [], Lon : []} . . . "Elmhurst" : {Lat : [], Lon : []} } """ def process_coordinates(result): """ A function read the dictionary contains key: neighborhood value: list of coordinates (latitude, longitude) and reconstruct a new dictionary contains key: neighborhood value: a dictionary contains a list of latitudes and a list of longitudes. Parameter: result dictionary, contains neighborhoods and list of coordinates Return: polygon dictionary, contains neighborhoods and a list of latitudes and a list of longitudes """ polygons = {} # for neighborhood, coordinates in result.items(): for neighborhood in result.keys(): coordinates = result[neighborhood] lat_list = [] lon_list = [] for coordinate in coordinates: lat_list.append(coordinate[1]) lon_list.append(coordinate[0]) polygons[neighborhood] = {} polygons[neighborhood]["Lat"] = lat_list polygons[neighborhood]["Lon"] = lon_list return polygons
fin = open('Assignment-2-data.txt', 'r') data = fin.readlines() for n in range(len(data)): data[n] = data[n].split() fin.close() fout = open('Assignment-2-table.txt', 'w') for n in range(1, 75): fout.write(str(n) + ' & ' + data[n - 1][0] + ' & ' + data[n - 1][1] + ' & \\includegraphics[width=.3\\columnwidth]{Assignment-2-mode-' + str(n) + '-Ex.png}' + ' & \\includegraphics[width=.3\columnwidth]{Assignment-2-mode-' + str(n) + '-Ey.png} \\\\ \\hline\n') fout.close()
#!/usr/bin/python # Python built-in function range() generates the integer numbers between the given start integer to the stop integer, i.e., range() returns a range object. # Using for loop, we can iterate over a sequence of numbers produced by the range() function. # It only allows integer type numbers as arguments. # We can’t provide a string or float type parameter inside the range() function. # The arguments can either be +ve or -ve. # It doesn’t accept ‘0’ as a step value. If the step is ‘0’, the function throws a ValueError. for step in range(10, 100, 10): print(step) print("\nAnother Example to loop over a list using range") port_lists = [21, 22, 23, 25, 53, 80, 443, 3306, 8080, 9002, 27017] for port in range(len(port_lists)): print(port_lists[port])
def test_e1(): x: i32 s: str x = 0 s = 's' print(x+s)
def func(): print("func") func() # $ resolved=func class MyBase: def base_method(self): print("base_method", self) class MyClass(MyBase): def method1(self): print("method1", self) @classmethod def cls_method(cls): print("cls_method", cls) @staticmethod def static(): print("static") def method2(self): print("method2", self) self.method1() # $ resolved=method1 self.base_method() self.cls_method() # $ resolved=cls_method self.static() # $ resolved=static MyClass.cls_method() # $ resolved=cls_method MyClass.static() # $ resolved=static x = MyClass() x.base_method() x.method1() x.cls_method() x.static() x.method2()
frase =[] maiuscula= '' def maiusculas(frase): maiuscula= '' for i in frase: letra = i if letra.isalpha(): letra_m = letra.upper() if letra_m == letra.upper(): if letra == letra_m: maiuscula += letra print(maiuscula) return maiuscula maiusculas('Programamos em python 2?') # deve devolver 'P' maiusculas('Programamos em Python 3.') # deve devolver 'PP' maiusculas('PrOgRaMaMoS em python!') # deve devolver 'PORMMS'
inp = """L.LL.LL.LL LLLLLLL.LL L.L.L..L.. LLLL.LL.LL L.LL.LL.LL L.LLLLL.LL ..L.L..... LLLLLLLLLL L.LLLLLL.L L.LLLLL.LL""" inp = """LLLLLLLLLL.LLLLLL.LLLLLLLLLLLL.LL.LLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLL.L.LLLLLLLLLL.LLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL..LLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LL.LL.LLLLL.L.LLLLL.LLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLL.LLL.LL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLL.L.LLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLL.LL LLLLLLLLLLLLLLLLL.LLLLLLLLLL.LLLLLLLLL.LLLLL.LLLLLLL.LLLL.L.LLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLL .L.LL...LLLL.......L....L.LLLLLL.......LL....LL...L..L.LLL...LLL..L.L.L.L..L...............L LLLLLLLLLL.LL.LLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLL.LLLLLLLLLLLL.LLLLL.LLLL.LLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLL..LLLLLLLLLLLLLLLLLL LLLLLLL.LL.LLL.LLLLLLLLLLLLL.L.LLLLLLL.LLLLL.LLLLLLL.LLLLLL..LLLLLL.LLLLL.LLLLLL.LLLLLLLLLLL .......L.LLL........LL.L....L.LL...L.....L..LL......L.....L....L.LLLL...L....L..L.L........L LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLL.L.LLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LL.LLLL.LLLLL.LLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLL.LLLLLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLL ..L...L.........LL.LLLL...L...LL.L.L..L...L.L...LL..LL...L....L....LL.L...LLL........LLL.... LLLLLLLL.L.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLL.LLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLL.LL.LLLLLLLLLLL.LLLLLL.LLLLLL.LL.LLLLLLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LL.LLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLL L..L...........L....L.LLLL........L..LL....L.L.......L.L.L.....LL......L.....LLL.LL.L.L.LL.L LLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLL.LLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLL..LLLLLL.LLLLLLLLLLL.LLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLL.LLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLL.LLL.LLLLL.LLLLLL..LLLLL.LLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL ..L.....LLL.L..L...L......LL......L.......LL..L.L.L.L....LLLL....L....L...LL...LLL.L....LLL. LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLL.LLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLL.LL.LL.L.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLLLLLL.LL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLL.L.LLLLLLLLLL..LLLL LLLLL.LLLLLLLL.LLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.L.LLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLL..LLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LL.LLL.LLLLLLLLLLL .....LL.L...LL....L...L.L.....L...L.L.L.L.L.L.......LL.....L.LL.LL...LLL.L.....L...L......L. LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LL..LLL.LLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLL.L.LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLL.LL.LLLLLLLLLLLLL.LLLLLLLLLL. LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLLL.LLLL.L.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.L.LLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLL.L .L....LL....L....L.L....L......LL.....L..L.L....LL.......L......L.L..L.......L....L.LLL....L LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLL..LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL .L......L....L.L..L....LL.......L.LL..LL.L.....L..L.L...............LL....L...L....L....L.LL LLLLLLLLL..LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL..LLLLLLLLL.LLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLL.LLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL..LLLLLL.LLLLL.LLLLLLLLLLLL.L.LLLLLL..LLLLLLLLLLLL.LLLLLLLLLLL .L..L..L.L.L.L.L.L.....L.L...L....LL.L.L....L..L.L.L........L....LL.......LL....L...L.L..LL. LLLLLLLLLLLLLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLL..LLLLL.LLLLLL.LLLLL..LLLLLL.LLLLLLLLLLL L.LLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL.LL.LLLLLLLLLLLLLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLL.L.LLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLL..LLLLL.LLLLLLLLLLLLL.LLLLL.L.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL..LLLLLLLLLL LLLLLLLLLLL.LLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL..LLLLL.LLLLLLLLLL.LLLLLLL LLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLL.L.L.LLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLL.LLLLLLLLLLLLL LLLLL....L.LL..LLL.L...LL.....L............L...............L..L.LLLLL.L.L.......L..LL.L...L. LLLLLLLLLL.LLLLLL.LLLLL..LLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLL.LL.LLLLLL..LLLLL.LLLLLL.L.LLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLL.LLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.L.LLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLL .....L...L......L...LL.L.......LL.L...LL..LL.....L.......LL.LL......LL.L...L..L..L...L.LLL.. LLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL..LLLLLLLLLL LLLLLL.LLL.LLLLLL.LLLLLL.LL.LL.LLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLLLLLLL.LLLLLLLLL.LLLLLLLLLLL LLL.LLL.LL..LLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL. LLLLLLLLL.LLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLL.LLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLL.LLLLLL.L.LLLLLLLLLL.LLLL.LL.LLLLL.LLLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLL.L.L.LLLLLLLLL LLLLLLLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL .LL.LLL.L.L.L..L....L..L...L......L......L.L.L...L.L..L.L.LLLLL..L.LL.LLL.L...LL.LL...L.L.L. LLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLL.LLLLLLL LLLLLLLLLLLLLLLLL.LLLLLLLLLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.LLLLLLL.LLLLLL.LLLLL..LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLLLLLLLL.LLLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLL LLLL.LLLLL.LLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLL.LLLLLLL.LLLLLL.LLLLL.LLLLLLLLLLLLLLLLLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LL.LLLLLLLLLLLLLLLL.LLLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL ..L.LLLL.L...LL.L....L..LL..L.....L....L.L...LL.......L.L..LL..LL............L...LL.....L... LLLLLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLL.LLLLLLLL.LLLL.LLLLLLLLLLL LLLLLLLLLLLLL.LLL.LLLLLL..LLLL.LLLLLLLLLLLLL.LLLLLLLLLLLLLL.LLLLLL.LLLLLL.LLLLLLLLLL..LLLLL. LLLLLLLLLL.LLLLLL..LLLLL.LLLLL.LLLLLLL..LLLL.LLLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL.L.LLLLL.LLLLLLLLLLLLLL.LLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLL.LLLLLL.LLLLLL.LLLLL.LLLLL.L.LLLLLLLLLLLLL.LL.LLLLL.LLLL.LLLLLL.LLLLLLLLLL.LLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLL..LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLL.LLLLLLLLLLL LLLLLLLLLL.LLL.LLLLLLLLL.LLLLL.LLLLLLLLLLLL..LLLLLLL.LLLLL..LLLLLL.LLLLLL.LLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLL.LLLLLL.LLLLL.LLLLLLL.LLLLLLLLLLLLL.LLLLLL.LLLLLL.LL.LLLLLLLLLL.LLLLLLLLLLL""" lines = inp.split("\n") state = [] n = 0 for line in lines: n = len(line) state.append(['.'] + [c for c in line] + ['.']) state = [['.' for i in range(n+2)]] + state + [['.' for i in range(n+2)]] changed = True should_change = [[False for c in l] for l in state] def occupied(st, c = '#'): cnt = 0 for i in st: for j in i: #print(j) if j == c: cnt += 1 return cnt def cnt_rays(st, i, j, c = '#'): n = len(st) m = len(st[0]) cnt = 0 #print(i, j, st[i][j]) for x in range(-1, 2): for y in range(-1, 2): if x == 0 and y == 0: continue dir = [] step = 1 #print(x, y) while(True): ii = i + step*x jj = j + step*y if ii >= n - 1 or ii < 1: break if jj >= m - 1 or jj < 1: break #print(ii, jj, st[ii][jj]) dir.append(st[ii][jj]) #print(dir) step += 1 if ray(dir): cnt += 1 return cnt def ray(dir): for d in dir: if d == '#': return True if d == 'L': return False return False steps = 0 while(changed): changed = False new_state = [[state[jj][ii] for ii in range(n+2)] for jj in range(len(state))] for i in range(1, len(state) - 1): for j in range(1, n + 1): obs = [[state[ii][jj] for jj in range(j-1, j+2)] for ii in range(i-1, i+2)] if state[i][j] == 'L': occ = cnt_rays(state, i, j) if occ == 0: new_state[i][j] = '#' changed = True if state[i][j] == '#': occ = cnt_rays(state, i, j) if occ >= 5: new_state[i][j] = 'L' changed = True # print(obs) # print(state[i][j]) # print(new_state[i][j]) # try: # if not steps == 0: # a = input() # except SyntaxError: # pass state = new_state # for line in state: # print(line) # steps += 1 print(changed) print(steps) print(occupied(state, '#'))
''' Leetcode problem No 859 Buddy Strings Solution written by Xuqiang Fang on 24 June, 2018 ''' class Solution(object): def buddyStrings(self, A, B): if len(A) != len(B): return False dica = {} dicb = {} c = 0 for i in range(len(A)): a = A[i] b = B[i] if a != b: c += 1 if a not in dica: dica[a] = 1 else: dica[a] += 1 if b not in dicb: dicb[b] = 1 else: dicb[b] += 1 if dica == dicb: if c == 2: return True elif c == 0: for key in dica: if dica[key] >= 2: return True return False def main(): s = Solution() print(s.buddyStrings('ab', 'ba')) print(s.buddyStrings('aaaaabc', 'aaaaacb')) print(s.buddyStrings('aa', 'aa')) print(s.buddyStrings('ab', 'ab')) print(s.buddyStrings('ab', 'ca')) main()
nin=input() x=[] for i in range(len(nin)): x.append(int(nin[i])) list_of_numbers=[] status='qualified' majority=0 for i in range(len(x)): status='qualified' if i==0: list_of_numbers.append([]) list_of_numbers[i].append(x[i]) else: for j in range(len(list_of_numbers)): if list_of_numbers[j][0]==x[i]: list_of_numbers[j].append(x[i]) break for j in range(len(list_of_numbers)): for k in range(len(list_of_numbers)): if list_of_numbers[k][0]==x[i]: status='not qualified' if status=='qualified': list_of_numbers.append([]) list_of_numbers[len(list_of_numbers)-1].append(x[i]) break for i in range(len(list_of_numbers)): if len(list_of_numbers[i])>majority: majority=len(list_of_numbers[i]) for i in range(len(list_of_numbers)): if len(list_of_numbers[i])==majority: print(f'majority: {list_of_numbers[i][0]} times repeated: {majority}')
def index(): images = team_db().select(team_db.image.ALL, orderby=team_db.image.category_id) categories = team_db().select(team_db.category.ALL, orderby=team_db.category.priority) return dict(images=images, categories=categories) def download(): return response.download(request, team_db)
# -*- coding: utf-8 -*- value1 = input() value2 = input() prod = value1+value2 print("SOMA = " + str(prod))
''' Por convenção: - Função é tudo que retorna valor - Método não retorna valor ''' class Calculadora: def __init__(self, num1, num2): self.valorA = num1 self.valorB = num2 def soma(self): return self.valorA + self.valorB def subtracao(self): return self.valorA - self.valorB def multiplicacao(self): return self.valorA * self.valorB def divisao(self): return self.valorA / self.valorB if __name__ == '__main__': calculadora = Calculadora(10, 20) print(calculadora.valorA) print(calculadora.valorB) print(calculadora.soma()) print(calculadora.subtracao()) print(calculadora.multiplicacao()) print(calculadora.divisao())
""" NAME binary_search - binary search template DESCRIPTION This module implements the many version of binary search. * bisect binary search the only true occurrence * bisect_left binary search the left-most occurrence * bisect_rigth binary search the right-most occurrence * bisect_first_true binary search the first true occurrence * bisect_last_true binary search the last true occurrence FUNCTIONS bisect(arr, x) Return the index of x if found or -1 if not. bisect_left(arr, x) Return the index where to insert x into arr. The return value i is such that all e in arr[:i] have e < x, and all e in arr[i:] have e >= x. bisect_right(arr, x) Return the index where to insert x into arr. The return value i is such that all e in arr[:i] have e <= x, and all e in arr[i:] have e > x. bisect_first_true(arr, x) Return the first index where a predicate is evaluated to True. bisect_last_true(arr, x) Return the last index where a predicate is evaluated to True. """ def bisect(arr, x): """Binary search the only true occurrence.""" lo, hi = 0, len(arr)-1 # left close & right close while lo <= hi: mid = lo + hi >> 1 if arr[mid] == x: return mid if arr[mid] < x: lo = mid + 1 else: hi = mid - 1 return -1 def bisect_left(arr, x): """Binary search array to find (left-most) x.""" lo, hi = 0, len(arr) while lo < hi: mid = lo + hi >> 1 if arr[mid] < x: lo = mid + 1 else: hi = mid return lo def bisect_right(arr, x): """Binary search array to find (right-most) x.""" lo, hi = 0, len(arr) while lo < hi: mid = lo + hi >> 1 if arr[mid] <= x: lo = mid + 1 else: hi = mid return lo def bisect_first_true(arr): """Binary search for first True occurrence.""" lo, hi = 0, len(arr) while lo < hi: mid = lo + hi >> 1 if arr[mid]: hi = mid else: lo = mid + 1 return lo def bisect_last_true(arr): """Binary search for last True occurrence.""" lo, hi = -1, len(arr)-1 while lo < hi: mid = lo + hi + 1 >> 1 if arr[mid]: lo = mid else: hi = mid - 1 return lo
class Solution: def minimumSize(self, nums: List[int], maxOperations: int) -> int: lo, hi = 1, 1_000_000_000 while lo < hi: mid = lo + hi >> 1 if sum((x-1)//mid for x in nums) <= maxOperations: hi = mid else: lo = mid + 1 return lo
class sequenceObjects(object): """generate objects for each vertical and horizontal sequences""" def __init__(self, index, length, sumOfInts, isHorizontal): self.isFilled = False self.index = index self.lengthOfSequence = length self.sumOfInts = sumOfInts reverseIndex = reversed(self.index) self.sortBy= list(reverseIndex) self.vertices = [(self.index[0] + (not isHorizontal) * 1 * x, self.index[1] + (isHorizontal) * 1 * x) for x in range(length)] self.uniqueSolutions = self.getUniqueCombinations(sumOfInts, length) self.permutatedSolutions = self.getCombinations(sumOfInts, length) if len(self.uniqueSolutions) == 0: raise ValueError("No Valid Solution") def getCombinations(self, sumOfInts, length): """generate a list of all possible combinations for given sum and length""" if length == 2: combinations = [[sumOfInts - x, x] for x in range(1, 10) if x > 0 and x < 10 and (sumOfInts - x) < 10 and (sumOfInts - x) > 0 and sumOfInts - x != x] else: combinations = [] for x in range(1, 10): combinations.extend([combination + [x] for combination in self.getCombinations(sumOfInts - x, length - 1) if x not in combination and x > 0 and x < 10]) combinations.sort() return combinations def getUniqueCombinations(self, sumOfInts, length): """generate a list of all possible combinations for given sum and length without their permutations""" uniqueList = [] combinations = self.getCombinations(sumOfInts, length) uniqueCombinations = set() for item in combinations: uniqueCombinations.add(tuple(sorted(item))) for item in uniqueCombinations: uniqueList.append(list(item)) uniqueList.sort() return (uniqueList)
'''Faça um programa que leia três números e mostre qual é o maior e qual é o menor.''' n1 = float(input('\033[30mDigite o primeiro número:\033[m ')) n2 = float(input('\033[31mDigite o segundo número:\033[m ')) n3 = float(input('\033[32mDigite o terceiro número:\033[m ')) if n1 > n2 and n1 > n3: print('\033[33mMaior número\033[m {}{:.1f}{}'.format('\033[31m', n1, '\033[m')) if n2 > n1 and n2 > n3: print('\033[34mMaior número\033[m {}{:.1f}{}'.format('\033[32m', n2, '\033[m')) if n3 > n1 and n3 > n2: print('\033[35mMaior número\033[m {}{:.1f}{}'.format('\033[33m', n3, '\033[m')) if n1 < n2 and n1 < n3: print('\033[36mMenor número\033[m {}{:.1f}{}'.format('\033[34m', n1, '\033[m')) if n2 < n1 and n2 < n3: print('\033[37mMenor número\033[m {}{:.1f}{}'.format('\033[35m', n2, '\033[m')) if n3 < n1 and n3 < n2: print('\033[30mMenor número\033[m {}{:.1f}{}'.format('\033[36m', n3, '\033[m')) print('\033[33m----------\033[m')
#!/usr/bin/python """ """ class Vegetable: """A vegetable is the main resource for making a great soup. More seriously, a vegtable represents the basic abstraction of a web page element. It provides default access operation over such element namely : * Finding element(s) from tag name using attribute access operator. * Finding a element with unique id using call operator (). * Finding element(s) from class name using index operator []. """ def __init__(self, root=None): """Default constructor. :param root: """ self.root = root def __getattr__(self, tag): """Syntaxic sugar for retriving all child element from this vegetable root using attribute access operator using attribute name as HTML tag filter. :param tag: Tag name of child elements we want to retrieve. :returns: A new Tag element instance. """ return Tagable(self, tag) def __call__(self, **kwargs): """Syntaxic sugar which can either allow to retrieve HTML element using unique attribute property such as id or name (assuming there are unique across the target document). Or performing attributes filtering if this instance is a Vegetables. Such filtering is efficient when the set of parent elements is not too big. :param **kwargs: HTML (attribute, value) mapping. :returns: Matched element(s). """ attributes = kwargs.keys() if len(attributes) == 1: if 'id' in attributes: id = kwargs['id'] return self.locate(lambda e : e.find_element_by_id(id)) elif 'name' in attributes: name = kwargs['name'] return self.locate(lambda e: e.find_element_by_name(name)) elif isinstance(self, Vegetables): # TODO : Implements multi attribute filtering. pass # TODO : Consider raise error ? return None def locate(self, locator): """Locates and collects child HTML element(s) using the given locator. TODO : Explain algorithm ? :param locator: Function that retrieves web element(s) from a given one. :returns: Located element using the given locator from this root. """ elements = self.candidates() if isinstance(elements, list): for element in elements: seed = locator(element) if seed is not None: return CookVegetable(seed) else: seed = locator(elements) return CookVegetable(seed) def candidates(self): """ To document """ return self.root class CookVegetable(Vegetable): """ To document. """ def __init__(self, root): """Default constructor. :param root: """ Vegetable.__init__(self, root) def __getitem__(self, attribute): """HTML Element attribute getter. :param attribute: Name of the attribute to retrieve. :returns: Attribute value if any. """ # TODO : Ensure get_attribute return type if not found. return self.root.get_attribute(attribute) def text(self): """HTML Element text getter. :returns: Text of this element. """ if self.root is None: return "" # TODO : Consider throwing error. return self.root.text def click(self): """ """ pass def fill(self, text): """ """ pass def submit(self): """ """ pass class Vegetables(Vegetable): """A soup made of only one vegetable is not that fun. A Vegetables instance represents object that MAY be a collection of vegetable with belong to the same category (class name or tag name). """ def __init__(self, root, locator): """Default constructor. :param root: Root element of this vegetables. :param locator: Lambda that retrieves candidates from a given element. """ Vegetable.__init__(self, root=root) self.locator = locator self.elements = None def __call__(self, **kwargs): """ Attribute filtering. """ for attribute in kwargs.keys(): pass return def __iter__(self): """ """ def generator(): """ """ elements = self.candidates() i = 0 while i < len(elements): yield Vegetable(elements[i]) i += 1 return generator() def __len__(self): """ """ return len(self.candidates()) def candidates(self): """ """ if self.elements is None: self.elements = self.root.locate(self.locator) return self.elements def __getitem__(self, index): """ """ return self.candidates()[index] def text(self): """ """ candidates = self.candidates() if len(candidates) == 1: return candidates[0].text return None # TODO : Compile or error ? class Tagable(Vegetables): """ """ def __init__(self, root, tag): """ """ Vegetables.__init__(self, root, lambda e: e.find_elements_by_tag_name(tag)) self.elements = None class Classable(Vegetables): """ """ def __init__(self, root, tag): """ """ Vegetables.__init__(self, root, lambda e: e.find_elements_by_class_name(tag)) self.elements = None
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author : ilpan @contact : pna.dev@outlook.com @file : __init__.py.py @desc : @time : 18-3-16 上午11:15 """ __description__ = "genlog: a tool that can randomly generate logs and send them to specified host:port" __version__ = '1.0.2.1' __author__ = 'ilpan' __license__ = 'MIT' __author_email__ = 'pna.dev@outlook.com'
# simple result class class SerfResult(object): """ Result object for responses from a Serf agent. """ def __init__(self, head=None, body=None): self.head, self.body = head, body def __iter__(self): """ Iterator. Used for assignment, i.e.:: head, body = result """ yield self.head yield self.body def __repr__(self): return "%(class)s<head=%(h)s,body=%(b)s>" \ % {'class': self.__class__.__name__, 'h': self.head, 'b': self.body}
BINDIR = '/usr/local/bin' BLOCK_MESSAGE_KEYS = [] BUILD_TYPE = 'app' BUNDLE_NAME = 'pebble.pbw' DEFINES = ['RELEASE'] LIBDIR = '/usr/local/lib' LIB_DIR = 'node_modules' LIB_JSON = [] MESSAGE_KEYS = {} MESSAGE_KEYS_HEADER = '/mnt/files/scripts/pebble/pebble-navigation/pebble/build/include/message_keys.auto.h' NODE_PATH = '/home/rhys/.pebble-sdk/SDKs/current/node_modules' PEBBLE_SDK_COMMON = '/home/rhys/.pebble-sdk/SDKs/current/sdk-core/pebble/common' PEBBLE_SDK_ROOT = '/home/rhys/.pebble-sdk/SDKs/current/sdk-core/pebble' PREFIX = '/usr/local' PROJECT_INFO = {'appKeys': {}, u'sdkVersion': u'3', u'displayName': u'geocaching', u'uuid': u'6191ad65-6cb1-404f-bccc-2446654c20ab', u'messageKeys': {}, u'companyName': u'WebMajstr', u'enableMultiJS': True, u'targetPlatforms': [u'aplite', u'basalt', u'chalk'], 'versionLabel': u'2.0', 'longName': u'geocaching', 'shortName': u'geocaching', u'watchapp': {u'watchface': False}, u'resources': {u'media': [{u'menuIcon': True, u'type': u'png', u'name': u'IMAGE_MENU_ICON', u'file': u'images/menu_icon_geocache.png'}, {u'type': u'png', u'name': u'NO_BT', u'file': u'images/no_bt.png'}, {u'type': u'font', u'name': u'FONT_ROBOTO_CONDENSED_30', u'file': u'fonts/Roboto-Condensed.ttf'}, {u'type': u'font', u'name': u'FONT_ROBOTO_BOLD_SUBSET_22', u'file': u'fonts/Roboto-Bold.ttf'}, {u'type': u'font', u'name': u'FONT_ROBOTO_CONDENSED_36', u'file': u'fonts/Roboto-Condensed.ttf'}]}, 'name': u'geocaching'} REQUESTED_PLATFORMS = [u'aplite', u'basalt', u'chalk'] RESOURCES_JSON = [{u'menuIcon': True, u'type': u'png', u'name': u'IMAGE_MENU_ICON', u'file': u'images/menu_icon_geocache.png'}, {u'type': u'png', u'name': u'NO_BT', u'file': u'images/no_bt.png'}, {u'type': u'font', u'name': u'FONT_ROBOTO_CONDENSED_30', u'file': u'fonts/Roboto-Condensed.ttf'}, {u'type': u'font', u'name': u'FONT_ROBOTO_BOLD_SUBSET_22', u'file': u'fonts/Roboto-Bold.ttf'}, {u'type': u'font', u'name': u'FONT_ROBOTO_CONDENSED_36', u'file': u'fonts/Roboto-Condensed.ttf'}] SANDBOX = False SUPPORTED_PLATFORMS = ['chalk', 'basalt', 'diorite', 'aplite', 'emery'] TARGET_PLATFORMS = ['chalk', 'basalt', 'aplite'] TIMESTAMP = 1601736560 USE_GROUPS = True VERBOSE = 0 WEBPACK = '/home/rhys/.pebble-sdk/SDKs/current/node_modules/.bin/webpack'
''' crie uma funcao1 que receba uma funcao2 como parametro e reotrne o valorda funcao2 executada, faça a funcao1 executar duas funcoes que recebam um numero diferente de argumentos ''' def mestre(funcao, *args, **kwargs): return funcao(*args, **kwargs) def fala_oi(nome): return f'oi {nome}' def saudacao(nome, saudacao): return f' {saudacao}{nome}' executando = mestre(fala_oi, 'Daniel') executando2 = mestre(saudacao, "Luiz", saudacao='bom dia!') print(executando) print(executando2)
CONF = { "git_bash" : { "name": "Git BRanch on bash prompt", "commands": """ # ref: https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="[\$(date +%k:%M:%S)] \\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " """ }, }
""" Stores a Boolean indicating if the app should run in debug mode or not. This option can be set with -d or --debug on start. """ debug = False """ Variable storing a reference to the container backend implementation the API should use. This option can be set with --container-backend CONTAINER_BACKEND on start. """ container_backend = None
# faça um programa que refaça o 051 lendo o primeiro termo e a razão de uma PA, # mostrando os 10 primeiros termos da progressão usando a estrutura while #decimo = n + (10 - 1) * r n = int(input('Digite o primeiro termo: ')) r = int(input('Digite a razão: ')) decimo = 0 while decimo != 10: print(n, end=' ') n = n + r decimo += 1
test = dict( batch_size=8, num_workers=2, eval_func="default_test", clip_range=None, tta=dict( # based on the ttach lib enable=False, reducation="mean", # 'mean', 'gmean', 'sum', 'max', 'min', 'tsharpen' cfg=dict( HorizontalFlip=dict(), VerticalFlip=dict(), Rotate90=dict(angles=[0, 90, 180, 270]), Scale=dict( scales=[0.75, 1, 1.5], interpolation="bilinear", align_corners=False, ), Add=dict(values=[0, 10, 20]), Multiply=dict(factors=[1, 2, 5]), FiveCrops=dict(crop_height=224, crop_width=224), Resize=dict( sizes=[0.75, 1, 1.5], original_size=224, interpolation="bilinear", align_corners=False, ), ), ), )
# Latihan menampilkan deret fibonacci dengan fungsi rekursif def fibonacci(n): if n == 0 or n == 1: return n else: return (fibonacci(n-1) + fibonacci(n-2)) input_nilai = 6 for i in range(input_nilai): print(fibonacci(i), end=' ')
""" 34. Find First and Last Position of Element in Sorted Array Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. Follow up: Could you write an algorithm with O(log n) runtime complexity? Example 1: Input: nums = [5,7,7,8,8,10], target = 8 Output: [3,4] Example 2: Input: nums = [5,7,7,8,8,10], target = 6 Output: [-1,-1] Example 3: Input: nums = [], target = 0 Output: [-1,-1] Constraints: 0 <= nums.length <= 105 -109 <= nums[i] <= 109 nums is a non-decreasing array. -109 <= target <= 109 """ # def findPositions(nums, target): # l = 0 # r = len(nums) - 1 # res = [-1, -1] # while(l <= r): # m = (l + r) // 2 # if nums[m] < target: # l = m + 1 # elif nums[m] > target: # r = m - 1 # else: # for i in reversed(range(0, m + 1)): # if nums[i] == target: # res[0] = i # i -= 1 # else: # break # for i in range(m, len(nums)): # if nums[i] == target: # res[1] = i # i += 1 # else: # break # break # return res def findLeftPostion(nums, target): l = 0 r = len(nums) - 1 while(l <= r): m = (l + r) // 2 if nums[m] == target: if m == 0 or nums[m - 1] != target: return m r = m - 1 elif nums[m] > target: r = m - 1 else: l = m + 1 return -1 def findRightPosition(nums, target): l = 0 r = len(nums) - 1 while(l <= r): m = (l + r) // 2 if nums[m] == target: if m == len(nums) - 1 or nums[m + 1] != target: return m l = m + 1 elif nums[m] > target: r = m - 1 else: l = m + 1 return -1 def findPositions(nums, target): left = findLeftPostion(nums, target) right = findRightPosition(nums, target) return [left, right] nums = [5, 7, 7, 8, 8, 10] target = 3 res = findPositions(nums, target) print(res)
# Auth Constants TOKEN_HEADER = {"alg": "RS256", "typ": "JWT", "kid": "flask-jwt-oidc-test-client"} BASE_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-user", "realm_access": { "roles": ["idir"] } } FULL_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-user", "preferred_username": "test-user", "email": "test-email", "given_name": "test-given-name", "realm_access": { "roles": [ "core_view_all", "core_edit_mines", "core_admin", "core_abandoned_mines", "core_close_permits", "core_edit_all", "core_edit_do", "core_edit_investigations", "core_edit_parties", "core_edit_permits", "core_edit_reports", "core_edit_securities", "core_edit_variances", "core_environmental_reports", "core_geospatial", "idir", "core_edit_submissions", "core_edit_bonds" ] } } VIEW_ONLY_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-user", "email": "test-email", "realm_access": { "roles": ["core_view_all", "idir"] } } CREATE_ONLY_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-user", "realm_access": { "roles": ["core_edit_mines", "idir"] } } ADMIN_ONLY_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-user", "realm_access": { "roles": ["core_admin", "idir"] } } PROPONENT_ONLY_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-proponent", "email": "test-proponent-email@minespace.ca", "realm_access": { "roles": ["mds_minespace_proponents"] } } NROS_VFCBC_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "test_audience", "exp": 21531718745, "iat": 1531718745, "jti": "flask-jwt-oidc-test-support", "typ": "Bearer", "username": "test-proponent", "email": "test-proponent-email@minespace.ca", "realm_access": { "roles": ["core_edit_submissions"] } }
# Works from Zero til One Thousand! def InWords(num): # We must define all unique numbers TillFifteen = {0: "zero", 1: "one", 2: "two", 3: "three", 4: "four", 5: "five", 6: "six", 7: "seven", 8: "eight", 9: "nine", 10: "ten", 11: "eleven", 12: "twelve", 13: "thirteen", 15: "fifteen"} # Multiples of ten to add before unique numbers # For Example TWENTY four, THIRTY four, SEVENTY four MultiplesOfTen = {20: "twenty", 30: "thirty", 40: "forty", 50: "fifty", 60: "sixty", 70: "seventy", 80: "eighty", 90: "ninty", 100: "one hundred"} if type(num) != int: return "Invalid Input" else: if num < 20: try: # Try Unique List return (TillFifteen[num]) except KeyError: # sixTeen till nineTeen are returned by using # last digit added with added keyword teen # example: sixteen , seventeen, eighteen return (TillFifteen[int(str(num)[1])] + "teen") elif num % 10 == 0 and not (num > 100): # If number is exact multiple of ten # Fetch it from the MultiplesOfTen dictionary return (MultiplesOfTen[num]) elif num < 100: # From 21 and above, First number represent multiple of ten # rest of number is handled in above code (Recursive Call) multiple_of_ten = MultiplesOfTen[int(str(num)[0] + "0")] return (multiple_of_ten + " " + InWords(int(str(num)[1:]))) elif num < 1000: # From one hundred and above First number represents # unique number with added statement ' hundred and ' # For Example : Three hundred and four, Six hundred and four # rest of number is handled in above code (Recursive Call) unique_number = TillFifteen[int(str(num)[0])] return (unique_number + " hundred and " + InWords(int(str(num)[1:]))) else: # TODO return "One Thousand! (or above)" print(InWords(int(input("Enter Any number:")))) ''' Expected Outputs: Enter Any number:5 five Enter Any number:78 seventy eight Enter Any number:235 two hundred and thirty five '''
# # PySNMP MIB module MBG-SNMP-LT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MBG-SNMP-LT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:00:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint") mbgSnmpRoot, = mibBuilder.importSymbols("MBG-SNMP-ROOT-MIB", "mbgSnmpRoot") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") NotificationType, Counter64, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, ObjectIdentity, Unsigned32, MibIdentifier, Counter32, iso, TimeTicks, Bits, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Counter64", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "ObjectIdentity", "Unsigned32", "MibIdentifier", "Counter32", "iso", "TimeTicks", "Bits", "Gauge32", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") mbgLantime = ModuleIdentity((1, 3, 6, 1, 4, 1, 5597, 3)) mbgLantime.setRevisions(('2012-01-25 07:45', '2011-03-30 00:00', '2011-03-29 00:00', '2010-01-19 00:00', '2009-12-03 00:00', '2008-09-10 00:00', '2008-07-15 00:00', '2008-06-15 00:00', '2006-08-23 00:00', '2006-03-20 00:00', '2005-07-08 00:00',)) if mibBuilder.loadTexts: mbgLantime.setLastUpdated('201201250745Z') if mibBuilder.loadTexts: mbgLantime.setOrganization('www.meinberg.de') mbgLtInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 0)) mbgLtFirmwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 0, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtFirmwareVersion.setStatus('current') mbgLtFirmwareVersionVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 0, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtFirmwareVersionVal.setStatus('current') mbgLtNtp = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 1)) mbgLtNtpCurrentState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpCurrentState.setStatus('current') mbgLtNtpCurrentStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 99))).clone(namedValues=NamedValues(("notSynchronized", 0), ("noGoodRefclock", 1), ("syncToExtRefclock", 2), ("syncToSerialRefclock", 3), ("normalOperationPPS", 4), ("normalOperationRefclock", 5), ("unknown", 99))).clone(99)).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpCurrentStateVal.setStatus('current') mbgLtNtpStratum = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647)).clone(99)).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpStratum.setStatus('current') mbgLtNtpActiveRefclockId = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 99))).clone(namedValues=NamedValues(("localClock", 0), ("serialRefclock", 1), ("pps", 2), ("externalRefclock", 3), ("notSync", 99))).clone(99)).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpActiveRefclockId.setStatus('current') mbgLtNtpActiveRefclockName = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpActiveRefclockName.setStatus('current') mbgLtNtpActiveRefclockOffset = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpActiveRefclockOffset.setStatus('current') mbgLtNtpActiveRefclockOffsetVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647)).clone(1024000000)).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpActiveRefclockOffsetVal.setStatus('current') mbgLtNtpNumberOfRefclocks = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpNumberOfRefclocks.setStatus('current') mbgLtNtpAuthKeyId = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpAuthKeyId.setStatus('current') mbgLtNtpVersion = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtNtpVersion.setStatus('current') mbgLtRefclock = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2)) mbgLtRefClockType = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefClockType.setStatus('current') mbgLtRefClockTypeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))).clone(namedValues=NamedValues(("notavailable", 0), ("mbgGPS167", 1), ("mbgGPS167BGTTGP", 2), ("mbgPZF509", 3), ("mbgPZF509BGTTGP", 4), ("mbgSHS", 5), ("mbgSHSBGT", 6), ("mbgSHSFRC", 7), ("mbgSHSFRCBGT", 8), ("mbgTCR509", 9), ("mbgTCR509BGTTGP", 10), ("mbgRDT", 11), ("mbgRDTBGTTGP", 12), ("mbgEDT", 13), ("mbgEDTBGTTGP", 14), ("mbgAHS", 15), ("mbgDHS", 16), ("mbgNDT167", 17), ("mbgNDT167BGT", 18), ("mbgDCT", 19), ("mbgDCTBGT", 20), ("mbgSHSTCR", 21), ("mbgSHSTCRBGT", 22)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefClockTypeVal.setStatus('current') mbgLtRefClockMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefClockMode.setStatus('current') mbgLtRefClockModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notavailable", 0), ("normalOperation", 1), ("trackingSearching", 2), ("antennaFaulty", 3), ("warmBoot", 4), ("coldBoot", 5), ("antennaShortcircuit", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefClockModeVal.setStatus('current') mbgLtRefGpsState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsState.setStatus('current') mbgLtRefGpsStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("notavailable", 0), ("synchronized", 1), ("notsynchronized", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsStateVal.setStatus('current') mbgLtRefGpsPosition = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsPosition.setStatus('current') mbgLtRefGpsSatellites = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsSatellites.setStatus('current') mbgLtRefGpsSatellitesGood = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsSatellitesGood.setStatus('current') mbgLtRefGpsSatellitesInView = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsSatellitesInView.setStatus('current') mbgLtRefPzfState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfState.setStatus('current') mbgLtRefPzfStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notavailable", 0), ("sync", 1), ("notsyncnow", 2), ("neversynced", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfStateVal.setStatus('current') mbgLtRefPzfKorrelation = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfKorrelation.setStatus('current') mbgLtRefPzfField = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfField.setStatus('current') mbgLtRefGpsMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 15), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsMode.setStatus('current') mbgLtRefGpsModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notavailable", 0), ("normalOperation", 1), ("trackingSearching", 2), ("antennaFaulty", 3), ("warmBoot", 4), ("coldBoot", 5), ("antennaShortcircuit", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsModeVal.setStatus('current') mbgLtRefIrigMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 17), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefIrigMode.setStatus('current') mbgLtRefIrigModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notavailable", 0), ("locked", 1), ("notlocked", 2), ("telegramError", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefIrigModeVal.setStatus('current') mbgLtRefPzfMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 19), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfMode.setStatus('current') mbgLtRefPzfModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("notavailable", 0), ("normalOperation", 1), ("antennaFaulty", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefPzfModeVal.setStatus('current') mbgLtRefIrigState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefIrigState.setStatus('current') mbgLtRefIrigStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefIrigStateVal.setStatus('current') mbgLtRefSHSMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 23), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefSHSMode.setStatus('current') mbgLtRefSHSModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("notavailable", 0), ("normalOperation", 1), ("stoppedTimeLimitError", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefSHSModeVal.setStatus('current') mbgLtRefSHSTimeDiff = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefSHSTimeDiff.setStatus('current') mbgLtRefDctState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 26), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefDctState.setStatus('current') mbgLtRefDctStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("notavailable", 0), ("sync", 1), ("notsyncnow", 2), ("neversynced", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefDctStateVal.setStatus('current') mbgLtRefDctField = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 28), DisplayString().clone('0')).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefDctField.setStatus('current') mbgLtRefDctMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 29), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefDctMode.setStatus('current') mbgLtRefDctModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("notavailable", 0), ("normalOperation", 1), ("antennaFaulty", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefDctModeVal.setStatus('current') mbgLtRefGpsLeapSecond = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 31), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsLeapSecond.setStatus('current') mbgLtRefGpsLeapCorrection = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 32), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefGpsLeapCorrection.setStatus('current') mbgLtMrs = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50)) mbgLtRefMrsRef = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefMrsRef.setStatus('current') mbgLtRefMrsRefVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 99))).clone(namedValues=NamedValues(("notavailable", 0), ("refGps", 1), ("refIrig", 2), ("refPps", 3), ("refFreq", 4), ("refPtp", 5), ("refNtp", 6), ("refFreeRun", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefMrsRefVal.setStatus('current') mbgLtRefMrsRefList = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefMrsRefList.setStatus('current') mbgLtRefMrsPrioList = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtRefMrsPrioList.setStatus('current') mbgLtMrsRef = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10)) mbgLtMrsRefGps = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1)) mbgLtMrsGpsOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsOffs.setStatus('current') mbgLtMrsGpsOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsOffsVal.setStatus('current') mbgLtMrsGpsOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsOffsBase.setStatus('current') mbgLtMrsGpsPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsPrio.setStatus('current') mbgLtMrsGpsState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsState.setStatus('current') mbgLtMrsGpsStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsGpsStateVal.setStatus('current') mbgLtMrsGpsPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsGpsPrecision.setStatus('current') mbgLtMrsRefIrig = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2)) mbgLtMrsIrigOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigOffs.setStatus('current') mbgLtMrsIrigOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigOffsVal.setStatus('current') mbgLtMrsIrigOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigOffsBase.setStatus('current') mbgLtMrsIrigPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigPrio.setStatus('current') mbgLtMrsIrigState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigState.setStatus('current') mbgLtMrsIrigStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsIrigStateVal.setStatus('current') mbgLtMrsIrigCorr = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsIrigCorr.setStatus('current') mbgLtMrsIrigOffsLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsIrigOffsLimit.setStatus('current') mbgLtMrsIrigPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 2, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsIrigPrecision.setStatus('current') mbgLtMrsRefPps = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3)) mbgLtMrsPpsOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsOffs.setStatus('current') mbgLtMrsPpsOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsOffsVal.setStatus('current') mbgLtMrsPpsOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsOffsBase.setStatus('current') mbgLtMrsPpsPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsPrio.setStatus('current') mbgLtMrsPpsState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsState.setStatus('current') mbgLtMrsPpsStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPpsStateVal.setStatus('current') mbgLtMrsPpsCorr = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPpsCorr.setStatus('current') mbgLtMrsPpsOffsLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPpsOffsLimit.setStatus('current') mbgLtMrsPpsPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 3, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPpsPrecision.setStatus('current') mbgLtMrsRefFreq = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4)) mbgLtMrsFreqOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqOffs.setStatus('current') mbgLtMrsFreqOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqOffsVal.setStatus('current') mbgLtMrsFreqOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqOffsBase.setStatus('current') mbgLtMrsFreqPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqPrio.setStatus('current') mbgLtMrsFreqState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqState.setStatus('current') mbgLtMrsFreqStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsFreqStateVal.setStatus('current') mbgLtMrsFreqCorr = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsFreqCorr.setStatus('current') mbgLtMrsFreqOffsLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsFreqOffsLimit.setStatus('current') mbgLtMrsFreqPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 4, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsFreqPrecision.setStatus('current') mbgLtMrsRefPtp = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5)) mbgLtMrsPtpOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpOffs.setStatus('current') mbgLtMrsPtpOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpOffsVal.setStatus('current') mbgLtMrsPtpOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpOffsBase.setStatus('current') mbgLtMrsPtpPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpPrio.setStatus('current') mbgLtMrsPtpState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpState.setStatus('current') mbgLtMrsPtpStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsPtpStateVal.setStatus('current') mbgLtMrsPtpCorr = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPtpCorr.setStatus('current') mbgLtMrsPtpOffsLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPtpOffsLimit.setStatus('current') mbgLtMrsPtpPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 5, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsPtpPrecision.setStatus('current') mbgLtMrsRefNtp = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6)) mbgLtMrsNtpOffs = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpOffs.setStatus('current') mbgLtMrsNtpOffsVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpOffsVal.setStatus('current') mbgLtMrsNtpOffsBase = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3, 6, 9))).clone(namedValues=NamedValues(("baseSeconds", 0), ("baseMiliseconds", 3), ("baseMicroseconds", 6), ("baseNanoseconds", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpOffsBase.setStatus('current') mbgLtMrsNtpPrio = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpPrio.setStatus('current') mbgLtMrsNtpState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpState.setStatus('current') mbgLtMrsNtpStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notAvailable", 0), ("notSupported", 1), ("notConnected", 2), ("noSignal", 3), ("hasLocked", 4), ("isAvailable", 5), ("isAccurate", 6), ("isMaster", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtMrsNtpStateVal.setStatus('current') mbgLtMrsNtpCorr = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsNtpCorr.setStatus('current') mbgLtMrsNtpOffsLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsNtpOffsLimit.setStatus('current') mbgLtMrsNtpPrecision = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 2, 50, 10, 6, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtMrsNtpPrecision.setStatus('current') mbgLtNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 3)) mbgLtTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0)) mbgLtTrapNTPNotSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 1)) if mibBuilder.loadTexts: mbgLtTrapNTPNotSync.setStatus('current') mbgLtTrapNTPStopped = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 2)) if mibBuilder.loadTexts: mbgLtTrapNTPStopped.setStatus('current') mbgLtTrapServerBoot = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 3)) if mibBuilder.loadTexts: mbgLtTrapServerBoot.setStatus('current') mbgLtTrapReceiverNotResponding = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 4)) if mibBuilder.loadTexts: mbgLtTrapReceiverNotResponding.setStatus('current') mbgLtTrapReceiverNotSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 5)) if mibBuilder.loadTexts: mbgLtTrapReceiverNotSync.setStatus('current') mbgLtTrapAntennaFaulty = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 6)) if mibBuilder.loadTexts: mbgLtTrapAntennaFaulty.setStatus('current') mbgLtTrapAntennaReconnect = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 7)) if mibBuilder.loadTexts: mbgLtTrapAntennaReconnect.setStatus('current') mbgLtTrapConfigChanged = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 8)) if mibBuilder.loadTexts: mbgLtTrapConfigChanged.setStatus('current') mbgLtTrapLeapSecondAnnounced = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 9)) if mibBuilder.loadTexts: mbgLtTrapLeapSecondAnnounced.setStatus('current') mbgLtTrapSHSTimeLimitError = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 10)) if mibBuilder.loadTexts: mbgLtTrapSHSTimeLimitError.setStatus('current') mbgLtTrapSecondaryRecNotSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 11)) if mibBuilder.loadTexts: mbgLtTrapSecondaryRecNotSync.setStatus('current') mbgLtTrapPowerSupplyFailure = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 12)) if mibBuilder.loadTexts: mbgLtTrapPowerSupplyFailure.setStatus('current') mbgLtTrapAntennaShortCircuit = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 13)) if mibBuilder.loadTexts: mbgLtTrapAntennaShortCircuit.setStatus('current') mbgLtTrapReceiverSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 14)) if mibBuilder.loadTexts: mbgLtTrapReceiverSync.setStatus('current') mbgLtTrapNTPClientAlarm = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 15)) if mibBuilder.loadTexts: mbgLtTrapNTPClientAlarm.setStatus('current') mbgLtTrapPowerSupplyUp = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 16)) if mibBuilder.loadTexts: mbgLtTrapPowerSupplyUp.setStatus('current') mbgLtTrapNetworkDown = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 17)) if mibBuilder.loadTexts: mbgLtTrapNetworkDown.setStatus('current') mbgLtTrapNetworkUp = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 18)) if mibBuilder.loadTexts: mbgLtTrapNetworkUp.setStatus('current') mbgLtTrapSecondaryRecNotResp = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 19)) if mibBuilder.loadTexts: mbgLtTrapSecondaryRecNotResp.setStatus('current') mbgLtTrapXmrLimitExceeded = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 30)) if mibBuilder.loadTexts: mbgLtTrapXmrLimitExceeded.setStatus('current') mbgLtTrapXmrRefDisconnect = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 31)) if mibBuilder.loadTexts: mbgLtTrapXmrRefDisconnect.setStatus('current') mbgLtTrapXmrRefReconnect = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 32)) if mibBuilder.loadTexts: mbgLtTrapXmrRefReconnect.setStatus('current') mbgLtTrapFdmError = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 33)) if mibBuilder.loadTexts: mbgLtTrapFdmError.setStatus('current') mbgLtTrapSHSTimeLimitWarning = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 34)) if mibBuilder.loadTexts: mbgLtTrapSHSTimeLimitWarning.setStatus('current') mbgLtTrapSecondaryRecSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 35)) if mibBuilder.loadTexts: mbgLtTrapSecondaryRecSync.setStatus('current') mbgLtTrapNTPSync = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 36)) if mibBuilder.loadTexts: mbgLtTrapNTPSync.setStatus('current') mbgLtTrapPtpPortDisconnected = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 37)) if mibBuilder.loadTexts: mbgLtTrapPtpPortDisconnected.setStatus('current') mbgLtTrapPtpPortConnected = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 38)) if mibBuilder.loadTexts: mbgLtTrapPtpPortConnected.setStatus('current') mbgLtTrapPtpStateChanged = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 39)) if mibBuilder.loadTexts: mbgLtTrapPtpStateChanged.setStatus('current') mbgLtTrapPtpError = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 40)) if mibBuilder.loadTexts: mbgLtTrapPtpError.setStatus('current') mbgLtTrapNormalOperation = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 77)) if mibBuilder.loadTexts: mbgLtTrapNormalOperation.setStatus('current') mbgLtTrapHeartbeat = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 88)) if mibBuilder.loadTexts: mbgLtTrapHeartbeat.setStatus('current') mbgLtTrapTestNotification = NotificationType((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 99)) if mibBuilder.loadTexts: mbgLtTrapTestNotification.setStatus('current') mbgLtTrapMessage = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 3, 0, 100), DisplayString().clone('no event')).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtTrapMessage.setStatus('current') mbgLtCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4)) mbgLtCfgNetwork = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1)) mbgLtCfgHostname = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgHostname.setStatus('current') mbgLtCfgDomainname = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgDomainname.setStatus('current') mbgLtCfgNameserver1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNameserver1.setStatus('current') mbgLtCfgNameserver2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNameserver2.setStatus('current') mbgLtCfgSyslogserver1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSyslogserver1.setStatus('current') mbgLtCfgSyslogserver2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSyslogserver2.setStatus('current') mbgLtCfgTelnetAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgTelnetAccess.setStatus('current') mbgLtCfgFTPAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgFTPAccess.setStatus('current') mbgLtCfgHTTPAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgHTTPAccess.setStatus('current') mbgLtCfgHTTPSAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgHTTPSAccess.setStatus('current') mbgLtCfgSNMPAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPAccess.setStatus('current') mbgLtCfgSambaAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSambaAccess.setStatus('current') mbgLtCfgIPv6Access = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgIPv6Access.setStatus('current') mbgLtCfgSSHAccess = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSSHAccess.setStatus('current') mbgLtCfgNTP = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2)) mbgLtCfgNTPServer1 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 1)) mbgLtCfgNTPServer2 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 2)) mbgLtCfgNTPServer3 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 3)) mbgLtCfgNTPServer4 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 4)) mbgLtCfgNTPServer5 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 5)) mbgLtCfgNTPServer6 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 6)) mbgLtCfgNTPServer7 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 7)) mbgLtCfgNTPServer1IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer1IP.setStatus('current') mbgLtCfgNTPServer1Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer1Key.setStatus('current') mbgLtCfgNTPServer1Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer1Autokey.setStatus('current') mbgLtCfgNTPServer1Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer1Prefer.setStatus('current') mbgLtCfgNTPServer2IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 2, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer2IP.setStatus('current') mbgLtCfgNTPServer2Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer2Key.setStatus('current') mbgLtCfgNTPServer2Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer2Autokey.setStatus('current') mbgLtCfgNTPServer2Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer2Prefer.setStatus('current') mbgLtCfgNTPServer3IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 3, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer3IP.setStatus('current') mbgLtCfgNTPServer3Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer3Key.setStatus('current') mbgLtCfgNTPServer3Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer3Autokey.setStatus('current') mbgLtCfgNTPServer3Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer3Prefer.setStatus('current') mbgLtCfgNTPServer4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 4, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer4IP.setStatus('current') mbgLtCfgNTPServer4Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer4Key.setStatus('current') mbgLtCfgNTPServer4Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer4Autokey.setStatus('current') mbgLtCfgNTPServer4Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer4Prefer.setStatus('current') mbgLtCfgNTPServer5IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 5, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer5IP.setStatus('current') mbgLtCfgNTPServer5Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 5, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer5Key.setStatus('current') mbgLtCfgNTPServer5Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer5Autokey.setStatus('current') mbgLtCfgNTPServer5Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer5Prefer.setStatus('current') mbgLtCfgNTPServer6IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 6, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer6IP.setStatus('current') mbgLtCfgNTPServer6Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 6, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer6Key.setStatus('current') mbgLtCfgNTPServer6Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 6, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer6Autokey.setStatus('current') mbgLtCfgNTPServer6Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 6, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer6Prefer.setStatus('current') mbgLtCfgNTPServer7IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 7, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer7IP.setStatus('current') mbgLtCfgNTPServer7Key = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 7, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer7Key.setStatus('current') mbgLtCfgNTPServer7Autokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer7Autokey.setStatus('current') mbgLtCfgNTPServer7Prefer = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPServer7Prefer.setStatus('current') mbgLtCfgNTPStratumLocalClock = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPStratumLocalClock.setStatus('current') mbgLtCfgNTPTrustedKey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPTrustedKey.setStatus('current') mbgLtCfgNTPBroadcastIP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 10), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPBroadcastIP.setStatus('current') mbgLtCfgNTPBroadcastKey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPBroadcastKey.setStatus('current') mbgLtCfgNTPBroadcastAutokey = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPBroadcastAutokey.setStatus('current') mbgLtCfgNTPAutokeyFeature = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPAutokeyFeature.setStatus('current') mbgLtCfgNTPAtomPPS = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 2, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNTPAtomPPS.setStatus('current') mbgLtCfgEMail = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 3)) mbgLtCfgEMailTo = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 3, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEMailTo.setStatus('current') mbgLtCfgEMailFrom = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 3, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEMailFrom.setStatus('current') mbgLtCfgEMailSmarthost = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 3, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEMailSmarthost.setStatus('current') mbgLtCfgSNMP = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4)) mbgLtCfgSNMPTrapReceiver1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPTrapReceiver1.setStatus('current') mbgLtCfgSNMPTrapReceiver2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPTrapReceiver2.setStatus('current') mbgLtCfgSNMPTrapRec1Community = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPTrapRec1Community.setStatus('current') mbgLtCfgSNMPTrapRec2Community = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPTrapRec2Community.setStatus('current') mbgLtCfgSNMPReadOnlyCommunity = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPReadOnlyCommunity.setStatus('current') mbgLtCfgSNMPReadWriteCommunity = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPReadWriteCommunity.setStatus('current') mbgLtCfgSNMPContact = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPContact.setStatus('current') mbgLtCfgSNMPLocation = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 4, 8), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSNMPLocation.setStatus('current') mbgLtCfgWinpopup = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 5)) mbgLtCfgWMailAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 5, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgWMailAddress1.setStatus('current') mbgLtCfgWMailAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 5, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgWMailAddress2.setStatus('current') mbgLtCfgWalldisplay = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 6)) mbgLtCfgVP100Display1IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 6, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgVP100Display1IP.setStatus('current') mbgLtCfgVP100Display1SN = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 6, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgVP100Display1SN.setStatus('current') mbgLtCfgVP100Display2IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 6, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgVP100Display2IP.setStatus('current') mbgLtCfgVP100Display2SN = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 6, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgVP100Display2SN.setStatus('current') mbgLtCfgNotify = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7)) mbgLtCfgNotifyNTPNotSync = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyNTPNotSync.setStatus('current') mbgLtCfgNotifyNTPStopped = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyNTPStopped.setStatus('current') mbgLtCfgNotifyServerBoot = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyServerBoot.setStatus('current') mbgLtCfgNotifyRefclkNoResponse = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyRefclkNoResponse.setStatus('current') mbgLtCfgNotifyRefclockNotSync = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyRefclockNotSync.setStatus('current') mbgLtCfgNotifyAntennaFaulty = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyAntennaFaulty.setStatus('current') mbgLtCfgNotifyAntennaReconnect = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyAntennaReconnect.setStatus('current') mbgLtCfgNotifyConfigChanged = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 8), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyConfigChanged.setStatus('current') mbgLtCfgNotifySHSTimeLimitError = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 9), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifySHSTimeLimitError.setStatus('current') mbgLtCfgNotifyLeapSecond = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 7, 10), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgNotifyLeapSecond.setStatus('current') mbgLtCfgEthernet = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8)) mbgLtCfgEthernetIf0 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0)) mbgLtCfgEthernetIf1 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1)) mbgLtCfgEthernetIf2 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2)) mbgLtCfgEthernetIf3 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3)) mbgLtCfgEthernetIf4 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4)) mbgLtCfgEthernetIf5 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5)) mbgLtCfgEthernetIf6 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6)) mbgLtCfgEthernetIf7 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7)) mbgLtCfgEthernetIf8 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8)) mbgLtCfgEthernetIf9 = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9)) mbgLtCfgEthernetIf0IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv4IP.setStatus('current') mbgLtCfgEthernetIf0IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf0IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf0DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0DHCPClient.setStatus('current') mbgLtCfgEthernetIf0IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv6IP1.setStatus('current') mbgLtCfgEthernetIf0IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv6IP2.setStatus('current') mbgLtCfgEthernetIf0IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv6IP3.setStatus('current') mbgLtCfgEthernetIf0IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf0NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 0, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf0NetLinkMode.setStatus('current') mbgLtCfgEthernetIf1IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv4IP.setStatus('current') mbgLtCfgEthernetIf1IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf1IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf1DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1DHCPClient.setStatus('current') mbgLtCfgEthernetIf1IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv6IP1.setStatus('current') mbgLtCfgEthernetIf1IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv6IP2.setStatus('current') mbgLtCfgEthernetIf1IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv6IP3.setStatus('current') mbgLtCfgEthernetIf1IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf1NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf1NetLinkMode.setStatus('current') mbgLtCfgEthernetIf2IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv4IP.setStatus('current') mbgLtCfgEthernetIf2IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf2IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf2DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2DHCPClient.setStatus('current') mbgLtCfgEthernetIf2IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv6IP1.setStatus('current') mbgLtCfgEthernetIf2IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv6IP2.setStatus('current') mbgLtCfgEthernetIf2IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv6IP3.setStatus('current') mbgLtCfgEthernetIf2IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf2NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf2NetLinkMode.setStatus('current') mbgLtCfgEthernetIf3IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv4IP.setStatus('current') mbgLtCfgEthernetIf3IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf3IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf3DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3DHCPClient.setStatus('current') mbgLtCfgEthernetIf3IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv6IP1.setStatus('current') mbgLtCfgEthernetIf3IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv6IP2.setStatus('current') mbgLtCfgEthernetIf3IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv6IP3.setStatus('current') mbgLtCfgEthernetIf3IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf3NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 3, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf3NetLinkMode.setStatus('current') mbgLtCfgEthernetIf4IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv4IP.setStatus('current') mbgLtCfgEthernetIf4IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf4IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf4DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4DHCPClient.setStatus('current') mbgLtCfgEthernetIf4IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv6IP1.setStatus('current') mbgLtCfgEthernetIf4IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv6IP2.setStatus('current') mbgLtCfgEthernetIf4IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv6IP3.setStatus('current') mbgLtCfgEthernetIf4IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf4NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf4NetLinkMode.setStatus('current') mbgLtCfgEthernetIf5IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv4IP.setStatus('current') mbgLtCfgEthernetIf5IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf5IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf5DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5DHCPClient.setStatus('current') mbgLtCfgEthernetIf5IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv6IP1.setStatus('current') mbgLtCfgEthernetIf5IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv6IP2.setStatus('current') mbgLtCfgEthernetIf5IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv6IP3.setStatus('current') mbgLtCfgEthernetIf5IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf5NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 5, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf5NetLinkMode.setStatus('current') mbgLtCfgEthernetIf6IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv4IP.setStatus('current') mbgLtCfgEthernetIf6IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf6IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf6DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6DHCPClient.setStatus('current') mbgLtCfgEthernetIf6IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv6IP1.setStatus('current') mbgLtCfgEthernetIf6IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv6IP2.setStatus('current') mbgLtCfgEthernetIf6IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv6IP3.setStatus('current') mbgLtCfgEthernetIf6IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf6NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 6, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf6NetLinkMode.setStatus('current') mbgLtCfgEthernetIf7IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv4IP.setStatus('current') mbgLtCfgEthernetIf7IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf7IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf7DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7DHCPClient.setStatus('current') mbgLtCfgEthernetIf7IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv6IP1.setStatus('current') mbgLtCfgEthernetIf7IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv6IP2.setStatus('current') mbgLtCfgEthernetIf7IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv6IP3.setStatus('current') mbgLtCfgEthernetIf7IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf7NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 7, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf7NetLinkMode.setStatus('current') mbgLtCfgEthernetIf8IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv4IP.setStatus('current') mbgLtCfgEthernetIf8IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf8IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf8DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8DHCPClient.setStatus('current') mbgLtCfgEthernetIf8IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv6IP1.setStatus('current') mbgLtCfgEthernetIf8IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv6IP2.setStatus('current') mbgLtCfgEthernetIf8IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv6IP3.setStatus('current') mbgLtCfgEthernetIf8IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf8NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 8, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf8NetLinkMode.setStatus('current') mbgLtCfgEthernetIf9IPv4IP = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv4IP.setStatus('current') mbgLtCfgEthernetIf9IPv4Netmask = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv4Netmask.setStatus('current') mbgLtCfgEthernetIf9IPv4Gateway = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv4Gateway.setStatus('current') mbgLtCfgEthernetIf9DHCPClient = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9DHCPClient.setStatus('current') mbgLtCfgEthernetIf9IPv6IP1 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 5), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv6IP1.setStatus('current') mbgLtCfgEthernetIf9IPv6IP2 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv6IP2.setStatus('current') mbgLtCfgEthernetIf9IPv6IP3 = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 7), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv6IP3.setStatus('current') mbgLtCfgEthernetIf9IPv6Autoconf = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9IPv6Autoconf.setStatus('current') mbgLtCfgEthernetIf9NetLinkMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 8, 9, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("autosensing", 0), ("link10half", 1), ("link10full", 2), ("link100half", 3), ("link100full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgEthernetIf9NetLinkMode.setStatus('current') mbgLtCfgSHS = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 9)) mbgLtCfgSHSCritLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 9, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSHSCritLimit.setStatus('current') mbgLtCfgSHSWarnLimit = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 9, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgSHSWarnLimit.setStatus('current') mbgLtCfgMRS = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 4, 10)) mbgLtCfgMRSRefPriority = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 4, 10, 1), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCfgMRSRefPriority.setStatus('current') mbgLtCmd = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 5)) mbgLtCmdExecute = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("ready", 0), ("doReboot", 1), ("doFirmwareUpdate", 2), ("doReloadConfig", 3), ("doGenerateSSHKey", 4), ("doGenerateHTTPSKey", 5), ("doResetFactoryDefaults", 6), ("doGenerateNewNTPAutokeyCert", 7), ("doSendTestNotification", 8), ("doResetSHSTimeLimitError", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCmdExecute.setStatus('current') mbgLtCmdSetRefTime = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 5, 2), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mbgLtCmdSetRefTime.setStatus('current') mbgLtPtp = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 10)) mbgLtPtpMode = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpMode.setStatus('current') mbgLtPtpModeVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("stopped", 0), ("master", 1), ("slave", 2), ("ordinary", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpModeVal.setStatus('current') mbgLtPtpPortState = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpPortState.setStatus('current') mbgLtPtpPortStateVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("uncalibrated", 0), ("initializing", 1), ("listening", 2), ("master", 3), ("slave", 4), ("unicastmaster", 5), ("unicastslave", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpPortStateVal.setStatus('current') mbgLtPtpOffsetFromGM = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpOffsetFromGM.setStatus('current') mbgLtPtpOffsetFromGMVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setUnits('ns').setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpOffsetFromGMVal.setStatus('current') mbgLtPtpDelay = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 7), DisplayString()).setUnits('ns').setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpDelay.setStatus('current') mbgLtPtpDelayVal = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 10, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setUnits('ns').setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtPtpDelayVal.setStatus('current') mbgLtFdm = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 11)) mbgLtFdmPlFreq = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtFdmPlFreq.setStatus('current') mbgLtFdmFreqDev = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 11, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtFdmFreqDev.setStatus('current') mbgLtFdmNomFreq = MibScalar((1, 3, 6, 1, 4, 1, 5597, 3, 11, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: mbgLtFdmNomFreq.setStatus('current') mbgLtConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 90)) mbgLtCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 90, 1)) mbgLtGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5597, 3, 90, 2)) mbgLtCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5597, 3, 90, 1, 1)).setObjects(("MBG-SNMP-LT-MIB", "mbgLtObjectsGroup"), ("MBG-SNMP-LT-MIB", "mbgLtTrapsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mbgLtCompliance = mbgLtCompliance.setStatus('current') mbgLtObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5597, 3, 90, 2, 1)) for _mbgLtObjectsGroup_obj in [[("MBG-SNMP-LT-MIB", "mbgLtFirmwareVersion"), ("MBG-SNMP-LT-MIB", "mbgLtFirmwareVersionVal"), ("MBG-SNMP-LT-MIB", "mbgLtNtpCurrentState"), ("MBG-SNMP-LT-MIB", "mbgLtNtpCurrentStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtNtpStratum"), ("MBG-SNMP-LT-MIB", "mbgLtNtpActiveRefclockId"), ("MBG-SNMP-LT-MIB", "mbgLtNtpActiveRefclockName"), ("MBG-SNMP-LT-MIB", "mbgLtNtpActiveRefclockOffset"), ("MBG-SNMP-LT-MIB", "mbgLtNtpActiveRefclockOffsetVal"), ("MBG-SNMP-LT-MIB", "mbgLtNtpNumberOfRefclocks"), ("MBG-SNMP-LT-MIB", "mbgLtNtpAuthKeyId"), ("MBG-SNMP-LT-MIB", "mbgLtNtpVersion"), ("MBG-SNMP-LT-MIB", "mbgLtRefClockType"), ("MBG-SNMP-LT-MIB", "mbgLtRefClockTypeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefClockMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefClockModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsState"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsPosition"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsSatellites"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsSatellitesGood"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsSatellitesInView"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfState"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfKorrelation"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfField"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefIrigMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefIrigModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefPzfModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefIrigState"), ("MBG-SNMP-LT-MIB", "mbgLtRefIrigStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefSHSMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefSHSModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefSHSTimeDiff"), ("MBG-SNMP-LT-MIB", "mbgLtRefDctState"), ("MBG-SNMP-LT-MIB", "mbgLtRefDctStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefDctField"), ("MBG-SNMP-LT-MIB", "mbgLtRefDctMode"), ("MBG-SNMP-LT-MIB", "mbgLtRefDctModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsLeapSecond"), ("MBG-SNMP-LT-MIB", "mbgLtRefGpsLeapCorrection"), ("MBG-SNMP-LT-MIB", "mbgLtRefMrsRef"), ("MBG-SNMP-LT-MIB", "mbgLtRefMrsRefVal"), ("MBG-SNMP-LT-MIB", "mbgLtRefMrsRefList"), ("MBG-SNMP-LT-MIB", "mbgLtRefMrsPrioList"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsGpsPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigCorr"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigOffsLimit"), ("MBG-SNMP-LT-MIB", "mbgLtMrsIrigPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsCorr"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsOffsLimit"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPpsPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqCorr"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqOffsLimit"), ("MBG-SNMP-LT-MIB", "mbgLtMrsFreqPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpCorr"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpOffsLimit"), ("MBG-SNMP-LT-MIB", "mbgLtMrsPtpPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpOffs"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpOffsVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpOffsBase"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpPrio"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpState"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpCorr"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpOffsLimit"), ("MBG-SNMP-LT-MIB", "mbgLtMrsNtpPrecision"), ("MBG-SNMP-LT-MIB", "mbgLtTrapMessage"), ("MBG-SNMP-LT-MIB", "mbgLtCfgHostname"), ("MBG-SNMP-LT-MIB", "mbgLtCfgDomainname"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNameserver1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNameserver2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSyslogserver1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSyslogserver2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgTelnetAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgFTPAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgHTTPAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgHTTPSAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSambaAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgIPv6Access"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSSHAccess"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer1IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer1Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer1Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer1Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer2IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer2Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer2Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer2Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer3IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer3Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer3Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer3Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer4Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer4Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer4Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer5IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer5Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer5Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer5Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer6IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer6Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer6Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer6Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer7IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer7Key"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer7Autokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPServer7Prefer"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPStratumLocalClock"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPTrustedKey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPBroadcastIP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPBroadcastKey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPBroadcastAutokey"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPAutokeyFeature"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNTPAtomPPS"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEMailTo"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEMailFrom"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEMailSmarthost"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPTrapReceiver1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPTrapReceiver2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPTrapRec1Community"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPTrapRec2Community"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPReadOnlyCommunity"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPReadWriteCommunity"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPContact"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSNMPLocation"), ("MBG-SNMP-LT-MIB", "mbgLtCfgWMailAddress1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgWMailAddress2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgVP100Display1IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgVP100Display1SN"), ("MBG-SNMP-LT-MIB", "mbgLtCfgVP100Display2IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgVP100Display2SN"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyNTPNotSync"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyNTPStopped"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyServerBoot"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyRefclkNoResponse"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyRefclockNotSync"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyAntennaFaulty"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyAntennaReconnect"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyConfigChanged"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifySHSTimeLimitError"), ("MBG-SNMP-LT-MIB", "mbgLtCfgNotifyLeapSecond"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf0NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf1NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf2NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf3NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf4NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf5NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf6NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf7NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv6IP2")], [("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf8NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv4IP"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv4Netmask"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv4Gateway"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9DHCPClient"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv6IP1"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv6IP2"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv6IP3"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9IPv6Autoconf"), ("MBG-SNMP-LT-MIB", "mbgLtCfgEthernetIf9NetLinkMode"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSHSCritLimit"), ("MBG-SNMP-LT-MIB", "mbgLtCfgSHSWarnLimit"), ("MBG-SNMP-LT-MIB", "mbgLtCfgMRSRefPriority"), ("MBG-SNMP-LT-MIB", "mbgLtCmdExecute"), ("MBG-SNMP-LT-MIB", "mbgLtCmdSetRefTime"), ("MBG-SNMP-LT-MIB", "mbgLtFdmPlFreq"), ("MBG-SNMP-LT-MIB", "mbgLtFdmFreqDev"), ("MBG-SNMP-LT-MIB", "mbgLtFdmNomFreq"), ("MBG-SNMP-LT-MIB", "mbgLtPtpMode"), ("MBG-SNMP-LT-MIB", "mbgLtPtpModeVal"), ("MBG-SNMP-LT-MIB", "mbgLtPtpPortState"), ("MBG-SNMP-LT-MIB", "mbgLtPtpPortStateVal"), ("MBG-SNMP-LT-MIB", "mbgLtPtpOffsetFromGM"), ("MBG-SNMP-LT-MIB", "mbgLtPtpOffsetFromGMVal"), ("MBG-SNMP-LT-MIB", "mbgLtPtpDelay"), ("MBG-SNMP-LT-MIB", "mbgLtPtpDelayVal")]]: if getattr(mibBuilder, 'version', 0) < (4, 4, 2): # WARNING: leading objects get lost here! mbgLtObjectsGroup = mbgLtObjectsGroup.setObjects(*_mbgLtObjectsGroup_obj) else: mbgLtObjectsGroup = mbgLtObjectsGroup.setObjects(*_mbgLtObjectsGroup_obj, **dict(append=True)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mbgLtObjectsGroup = mbgLtObjectsGroup.setStatus('current') mbgLtTrapsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 5597, 3, 90, 2, 2)).setObjects(("MBG-SNMP-LT-MIB", "mbgLtTrapNTPNotSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNTPStopped"), ("MBG-SNMP-LT-MIB", "mbgLtTrapServerBoot"), ("MBG-SNMP-LT-MIB", "mbgLtTrapReceiverNotResponding"), ("MBG-SNMP-LT-MIB", "mbgLtTrapReceiverNotSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapAntennaFaulty"), ("MBG-SNMP-LT-MIB", "mbgLtTrapAntennaReconnect"), ("MBG-SNMP-LT-MIB", "mbgLtTrapConfigChanged"), ("MBG-SNMP-LT-MIB", "mbgLtTrapLeapSecondAnnounced"), ("MBG-SNMP-LT-MIB", "mbgLtTrapSHSTimeLimitError"), ("MBG-SNMP-LT-MIB", "mbgLtTrapSecondaryRecNotSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPowerSupplyFailure"), ("MBG-SNMP-LT-MIB", "mbgLtTrapAntennaShortCircuit"), ("MBG-SNMP-LT-MIB", "mbgLtTrapReceiverSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNTPClientAlarm"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPowerSupplyUp"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNetworkDown"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNetworkUp"), ("MBG-SNMP-LT-MIB", "mbgLtTrapSecondaryRecNotResp"), ("MBG-SNMP-LT-MIB", "mbgLtTrapXmrLimitExceeded"), ("MBG-SNMP-LT-MIB", "mbgLtTrapXmrRefDisconnect"), ("MBG-SNMP-LT-MIB", "mbgLtTrapXmrRefReconnect"), ("MBG-SNMP-LT-MIB", "mbgLtTrapFdmError"), ("MBG-SNMP-LT-MIB", "mbgLtTrapSHSTimeLimitWarning"), ("MBG-SNMP-LT-MIB", "mbgLtTrapSecondaryRecSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNTPSync"), ("MBG-SNMP-LT-MIB", "mbgLtTrapNormalOperation"), ("MBG-SNMP-LT-MIB", "mbgLtTrapHeartbeat"), ("MBG-SNMP-LT-MIB", "mbgLtTrapTestNotification"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPtpPortDisconnected"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPtpPortConnected"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPtpStateChanged"), ("MBG-SNMP-LT-MIB", "mbgLtTrapPtpError")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): mbgLtTrapsGroup = mbgLtTrapsGroup.setStatus('current') mibBuilder.exportSymbols("MBG-SNMP-LT-MIB", mbgLtNtpActiveRefclockOffset=mbgLtNtpActiveRefclockOffset, mbgLtRefGpsSatellitesGood=mbgLtRefGpsSatellitesGood, mbgLtMrsPtpStateVal=mbgLtMrsPtpStateVal, mbgLtCfgEthernetIf4=mbgLtCfgEthernetIf4, mbgLtCfgEthernetIf1=mbgLtCfgEthernetIf1, mbgLtPtpModeVal=mbgLtPtpModeVal, mbgLtCfgNTPServer7IP=mbgLtCfgNTPServer7IP, mbgLtCfgEthernetIf9IPv6IP3=mbgLtCfgEthernetIf9IPv6IP3, mbgLtTrapLeapSecondAnnounced=mbgLtTrapLeapSecondAnnounced, mbgLtRefSHSTimeDiff=mbgLtRefSHSTimeDiff, mbgLtTrapPowerSupplyUp=mbgLtTrapPowerSupplyUp, mbgLtCfgEthernetIf6IPv4Netmask=mbgLtCfgEthernetIf6IPv4Netmask, mbgLtCmdExecute=mbgLtCmdExecute, mbgLtMrsIrigOffsBase=mbgLtMrsIrigOffsBase, mbgLtMrsPpsPrio=mbgLtMrsPpsPrio, mbgLtCfgNotifyAntennaFaulty=mbgLtCfgNotifyAntennaFaulty, mbgLtMrs=mbgLtMrs, mbgLtCfgSNMPContact=mbgLtCfgSNMPContact, mbgLtCfgEthernetIf8DHCPClient=mbgLtCfgEthernetIf8DHCPClient, mbgLtCfgEthernetIf4NetLinkMode=mbgLtCfgEthernetIf4NetLinkMode, mbgLtTrapPtpPortConnected=mbgLtTrapPtpPortConnected, mbgLtTraps=mbgLtTraps, mbgLtCfgNTPServer6Key=mbgLtCfgNTPServer6Key, mbgLtRefIrigMode=mbgLtRefIrigMode, mbgLtCfgEthernetIf4IPv6IP1=mbgLtCfgEthernetIf4IPv6IP1, PYSNMP_MODULE_ID=mbgLantime, mbgLtMrsGpsOffsBase=mbgLtMrsGpsOffsBase, mbgLtCfgNTPServer4Prefer=mbgLtCfgNTPServer4Prefer, mbgLtRefPzfStateVal=mbgLtRefPzfStateVal, mbgLtCfgEthernetIf4IPv6Autoconf=mbgLtCfgEthernetIf4IPv6Autoconf, mbgLtTrapAntennaFaulty=mbgLtTrapAntennaFaulty, mbgLtCfgEthernetIf2IPv4Netmask=mbgLtCfgEthernetIf2IPv4Netmask, mbgLtMrsFreqPrecision=mbgLtMrsFreqPrecision, mbgLtCfgNTPServer5Key=mbgLtCfgNTPServer5Key, mbgLtCfgNotifyAntennaReconnect=mbgLtCfgNotifyAntennaReconnect, mbgLtCfgIPv6Access=mbgLtCfgIPv6Access, mbgLtCfgHTTPSAccess=mbgLtCfgHTTPSAccess, mbgLtCfgEthernetIf9IPv4Gateway=mbgLtCfgEthernetIf9IPv4Gateway, mbgLtCfgNTPServer1IP=mbgLtCfgNTPServer1IP, mbgLtRefclock=mbgLtRefclock, mbgLtCfgEthernetIf7=mbgLtCfgEthernetIf7, mbgLtCfgEthernetIf3IPv4IP=mbgLtCfgEthernetIf3IPv4IP, mbgLtTrapNormalOperation=mbgLtTrapNormalOperation, mbgLtCfgVP100Display1SN=mbgLtCfgVP100Display1SN, mbgLtCfgEthernetIf4IPv4Gateway=mbgLtCfgEthernetIf4IPv4Gateway, mbgLtCfgEthernetIf8=mbgLtCfgEthernetIf8, mbgLtCfgEthernetIf9NetLinkMode=mbgLtCfgEthernetIf9NetLinkMode, mbgLtMrsRefFreq=mbgLtMrsRefFreq, mbgLtMrsIrigOffs=mbgLtMrsIrigOffs, mbgLtTrapSecondaryRecNotResp=mbgLtTrapSecondaryRecNotResp, mbgLtCfgHTTPAccess=mbgLtCfgHTTPAccess, mbgLtMrsNtpCorr=mbgLtMrsNtpCorr, mbgLtCfgEthernetIf7IPv6IP3=mbgLtCfgEthernetIf7IPv6IP3, mbgLtCfgSNMPTrapReceiver2=mbgLtCfgSNMPTrapReceiver2, mbgLtCfgEthernetIf8NetLinkMode=mbgLtCfgEthernetIf8NetLinkMode, mbgLtRefGpsLeapCorrection=mbgLtRefGpsLeapCorrection, mbgLtMrsGpsPrecision=mbgLtMrsGpsPrecision, mbgLtCfgEthernetIf8IPv6IP1=mbgLtCfgEthernetIf8IPv6IP1, mbgLtRefGpsPosition=mbgLtRefGpsPosition, mbgLtMrsRefPtp=mbgLtMrsRefPtp, mbgLtCfgSSHAccess=mbgLtCfgSSHAccess, mbgLtCfgSNMP=mbgLtCfgSNMP, mbgLtRefSHSModeVal=mbgLtRefSHSModeVal, mbgLtCfgEthernetIf9IPv6Autoconf=mbgLtCfgEthernetIf9IPv6Autoconf, mbgLtCfgMRSRefPriority=mbgLtCfgMRSRefPriority, mbgLtCfgNTPServer2Prefer=mbgLtCfgNTPServer2Prefer, mbgLtCfgEthernetIf0=mbgLtCfgEthernetIf0, mbgLtMrsFreqStateVal=mbgLtMrsFreqStateVal, mbgLtTrapNTPClientAlarm=mbgLtTrapNTPClientAlarm, mbgLtTrapXmrRefDisconnect=mbgLtTrapXmrRefDisconnect, mbgLtCfgMRS=mbgLtCfgMRS, mbgLtCfgEthernetIf8IPv4Netmask=mbgLtCfgEthernetIf8IPv4Netmask, mbgLtRefDctStateVal=mbgLtRefDctStateVal, mbgLtCfgEthernetIf2NetLinkMode=mbgLtCfgEthernetIf2NetLinkMode, mbgLtRefDctModeVal=mbgLtRefDctModeVal, mbgLtTrapPowerSupplyFailure=mbgLtTrapPowerSupplyFailure, mbgLtTrapNetworkDown=mbgLtTrapNetworkDown, mbgLtTrapReceiverNotSync=mbgLtTrapReceiverNotSync, mbgLtCfgEthernetIf0NetLinkMode=mbgLtCfgEthernetIf0NetLinkMode, mbgLtTrapXmrLimitExceeded=mbgLtTrapXmrLimitExceeded, mbgLtRefMrsRef=mbgLtRefMrsRef, mbgLtNtpActiveRefclockId=mbgLtNtpActiveRefclockId, mbgLtCfgEthernetIf3IPv4Gateway=mbgLtCfgEthernetIf3IPv4Gateway, mbgLtCfgNotifyServerBoot=mbgLtCfgNotifyServerBoot, mbgLtCfgSNMPLocation=mbgLtCfgSNMPLocation, mbgLtRefGpsSatellitesInView=mbgLtRefGpsSatellitesInView, mbgLtCfgEthernetIf6IPv4Gateway=mbgLtCfgEthernetIf6IPv4Gateway, mbgLtCfgNTPServer4Key=mbgLtCfgNTPServer4Key, mbgLtCfgEthernetIf6NetLinkMode=mbgLtCfgEthernetIf6NetLinkMode, mbgLtCfgEMailSmarthost=mbgLtCfgEMailSmarthost, mbgLtPtp=mbgLtPtp, mbgLtCfgEthernetIf0IPv4Gateway=mbgLtCfgEthernetIf0IPv4Gateway, mbgLtCfgNTPServer7Autokey=mbgLtCfgNTPServer7Autokey, mbgLtCfgEthernetIf5IPv6Autoconf=mbgLtCfgEthernetIf5IPv6Autoconf, mbgLtCfgEMailTo=mbgLtCfgEMailTo, mbgLtMrsPtpOffs=mbgLtMrsPtpOffs, mbgLtCfgEthernetIf6IPv6IP3=mbgLtCfgEthernetIf6IPv6IP3, mbgLtRefGpsMode=mbgLtRefGpsMode, mbgLtCfgNTPBroadcastAutokey=mbgLtCfgNTPBroadcastAutokey, mbgLtRefIrigState=mbgLtRefIrigState, mbgLtCfgNTPServer4=mbgLtCfgNTPServer4, mbgLtCfgEthernetIf8IPv6Autoconf=mbgLtCfgEthernetIf8IPv6Autoconf, mbgLtCfgSHSWarnLimit=mbgLtCfgSHSWarnLimit, mbgLtRefSHSMode=mbgLtRefSHSMode, mbgLtNtp=mbgLtNtp, mbgLtCfgEthernetIf7IPv6Autoconf=mbgLtCfgEthernetIf7IPv6Autoconf, mbgLtCfgSambaAccess=mbgLtCfgSambaAccess, mbgLtMrsPpsOffs=mbgLtMrsPpsOffs, mbgLtMrsNtpStateVal=mbgLtMrsNtpStateVal, mbgLtCfgSHS=mbgLtCfgSHS, mbgLtCfgEthernet=mbgLtCfgEthernet, mbgLtCfgEthernetIf9DHCPClient=mbgLtCfgEthernetIf9DHCPClient, mbgLtRefIrigStateVal=mbgLtRefIrigStateVal, mbgLtFdm=mbgLtFdm, mbgLtMrsIrigOffsLimit=mbgLtMrsIrigOffsLimit, mbgLtCfgNTPAutokeyFeature=mbgLtCfgNTPAutokeyFeature, mbgLtMrsFreqOffsBase=mbgLtMrsFreqOffsBase, mbgLtCfgEthernetIf2IPv4Gateway=mbgLtCfgEthernetIf2IPv4Gateway, mbgLtMrsGpsPrio=mbgLtMrsGpsPrio, mbgLtCfgEthernetIf3IPv6IP3=mbgLtCfgEthernetIf3IPv6IP3, mbgLtCfgNetwork=mbgLtCfgNetwork, mbgLtTrapsGroup=mbgLtTrapsGroup, mbgLtRefClockTypeVal=mbgLtRefClockTypeVal, mbgLtFirmwareVersion=mbgLtFirmwareVersion, mbgLtRefGpsState=mbgLtRefGpsState, mbgLtCfgEMailFrom=mbgLtCfgEMailFrom, mbgLtRefMrsRefVal=mbgLtRefMrsRefVal, mbgLtCfgNTPServer6Autokey=mbgLtCfgNTPServer6Autokey, mbgLtMrsRef=mbgLtMrsRef, mbgLtNtpCurrentState=mbgLtNtpCurrentState, mbgLtFirmwareVersionVal=mbgLtFirmwareVersionVal, mbgLtCfgEthernetIf2IPv6IP3=mbgLtCfgEthernetIf2IPv6IP3, mbgLtCfgNotifyRefclkNoResponse=mbgLtCfgNotifyRefclkNoResponse, mbgLtCfgNameserver2=mbgLtCfgNameserver2, mbgLtCfgNotifySHSTimeLimitError=mbgLtCfgNotifySHSTimeLimitError, mbgLtCfgEthernetIf9IPv6IP1=mbgLtCfgEthernetIf9IPv6IP1, mbgLtCfgHostname=mbgLtCfgHostname, mbgLtTrapFdmError=mbgLtTrapFdmError, mbgLtCfgNTPStratumLocalClock=mbgLtCfgNTPStratumLocalClock, mbgLtCfgNTPServer1Prefer=mbgLtCfgNTPServer1Prefer, mbgLtCfgSNMPTrapRec2Community=mbgLtCfgSNMPTrapRec2Community, mbgLtCfgNTPServer3Key=mbgLtCfgNTPServer3Key, mbgLtCompliance=mbgLtCompliance, mbgLtCfgEthernetIf1IPv4Netmask=mbgLtCfgEthernetIf1IPv4Netmask, mbgLtCfgEthernetIf2IPv4IP=mbgLtCfgEthernetIf2IPv4IP, mbgLtMrsPtpOffsVal=mbgLtMrsPtpOffsVal, mbgLtCfgSNMPTrapReceiver1=mbgLtCfgSNMPTrapReceiver1, mbgLtCompliances=mbgLtCompliances, mbgLtCfgEthernetIf7IPv6IP1=mbgLtCfgEthernetIf7IPv6IP1, mbgLtCfgNTPBroadcastKey=mbgLtCfgNTPBroadcastKey, mbgLtTrapSHSTimeLimitWarning=mbgLtTrapSHSTimeLimitWarning, mbgLtCfgEthernetIf8IPv4IP=mbgLtCfgEthernetIf8IPv4IP, mbgLtCfgNotifyLeapSecond=mbgLtCfgNotifyLeapSecond, mbgLtCfg=mbgLtCfg, mbgLtMrsPpsCorr=mbgLtMrsPpsCorr, mbgLtCfgNTP=mbgLtCfgNTP, mbgLtCfgEthernetIf1IPv4Gateway=mbgLtCfgEthernetIf1IPv4Gateway, mbgLtRefIrigModeVal=mbgLtRefIrigModeVal, mbgLtCfgSNMPAccess=mbgLtCfgSNMPAccess, mbgLtTrapPtpError=mbgLtTrapPtpError, mbgLtCfgNTPServer3Prefer=mbgLtCfgNTPServer3Prefer, mbgLtTrapNTPNotSync=mbgLtTrapNTPNotSync, mbgLtCfgEthernetIf5IPv6IP3=mbgLtCfgEthernetIf5IPv6IP3, mbgLtPtpOffsetFromGMVal=mbgLtPtpOffsetFromGMVal, mbgLtCfgEthernetIf5IPv6IP2=mbgLtCfgEthernetIf5IPv6IP2, mbgLtCfgEthernetIf7IPv4Netmask=mbgLtCfgEthernetIf7IPv4Netmask, mbgLtMrsPtpOffsBase=mbgLtMrsPtpOffsBase, mbgLtRefGpsLeapSecond=mbgLtRefGpsLeapSecond, mbgLtMrsPtpCorr=mbgLtMrsPtpCorr, mbgLtTrapTestNotification=mbgLtTrapTestNotification, mbgLtCfgDomainname=mbgLtCfgDomainname, mbgLtCfgEthernetIf7NetLinkMode=mbgLtCfgEthernetIf7NetLinkMode, mbgLtCfgNTPServer1Autokey=mbgLtCfgNTPServer1Autokey, mbgLtCfgEthernetIf5NetLinkMode=mbgLtCfgEthernetIf5NetLinkMode, mbgLtMrsRefNtp=mbgLtMrsRefNtp, mbgLtCfgNTPServer2IP=mbgLtCfgNTPServer2IP, mbgLtRefPzfModeVal=mbgLtRefPzfModeVal, mbgLtFdmPlFreq=mbgLtFdmPlFreq, mbgLtRefClockType=mbgLtRefClockType, mbgLtCfgNTPServer3Autokey=mbgLtCfgNTPServer3Autokey, mbgLtCfgEthernetIf4IPv4Netmask=mbgLtCfgEthernetIf4IPv4Netmask, mbgLtCfgEthernetIf2=mbgLtCfgEthernetIf2, mbgLtMrsNtpPrecision=mbgLtMrsNtpPrecision, mbgLtMrsGpsState=mbgLtMrsGpsState, mbgLtRefPzfKorrelation=mbgLtRefPzfKorrelation, mbgLtCfgEthernetIf8IPv4Gateway=mbgLtCfgEthernetIf8IPv4Gateway, mbgLtTrapSecondaryRecNotSync=mbgLtTrapSecondaryRecNotSync, mbgLtCfgEthernetIf1IPv6IP2=mbgLtCfgEthernetIf1IPv6IP2, mbgLtCfgSNMPReadWriteCommunity=mbgLtCfgSNMPReadWriteCommunity, mbgLtCfgEthernetIf9=mbgLtCfgEthernetIf9, mbgLtTrapAntennaReconnect=mbgLtTrapAntennaReconnect, mbgLantime=mbgLantime, mbgLtCfgEthernetIf7IPv6IP2=mbgLtCfgEthernetIf7IPv6IP2, mbgLtCfgNotify=mbgLtCfgNotify, mbgLtNtpVersion=mbgLtNtpVersion, mbgLtCfgNTPServer6IP=mbgLtCfgNTPServer6IP, mbgLtCfgEthernetIf2IPv6IP2=mbgLtCfgEthernetIf2IPv6IP2, mbgLtRefDctField=mbgLtRefDctField, mbgLtCfgNTPServer7Prefer=mbgLtCfgNTPServer7Prefer, mbgLtTrapReceiverSync=mbgLtTrapReceiverSync, mbgLtCfgNTPTrustedKey=mbgLtCfgNTPTrustedKey, mbgLtCfgEthernetIf7IPv4IP=mbgLtCfgEthernetIf7IPv4IP, mbgLtTrapMessage=mbgLtTrapMessage, mbgLtMrsPpsPrecision=mbgLtMrsPpsPrecision, mbgLtCfgNTPServer5=mbgLtCfgNTPServer5, mbgLtMrsRefPps=mbgLtMrsRefPps, mbgLtFdmFreqDev=mbgLtFdmFreqDev, mbgLtCfgNTPServer7Key=mbgLtCfgNTPServer7Key, mbgLtCfgNTPServer2=mbgLtCfgNTPServer2, mbgLtMrsNtpOffsBase=mbgLtMrsNtpOffsBase, mbgLtCfgEthernetIf0IPv6IP1=mbgLtCfgEthernetIf0IPv6IP1, mbgLtCfgSyslogserver2=mbgLtCfgSyslogserver2, mbgLtTrapNetworkUp=mbgLtTrapNetworkUp, mbgLtCfgWMailAddress2=mbgLtCfgWMailAddress2, mbgLtCfgWinpopup=mbgLtCfgWinpopup, mbgLtMrsFreqOffsLimit=mbgLtMrsFreqOffsLimit, mbgLtCfgNTPServer6Prefer=mbgLtCfgNTPServer6Prefer, mbgLtCfgEthernetIf5IPv4IP=mbgLtCfgEthernetIf5IPv4IP, mbgLtMrsIrigOffsVal=mbgLtMrsIrigOffsVal, mbgLtCfgNTPServer2Autokey=mbgLtCfgNTPServer2Autokey, mbgLtMrsNtpPrio=mbgLtMrsNtpPrio, mbgLtRefGpsModeVal=mbgLtRefGpsModeVal, mbgLtNtpCurrentStateVal=mbgLtNtpCurrentStateVal, mbgLtRefMrsPrioList=mbgLtRefMrsPrioList, mbgLtMrsFreqState=mbgLtMrsFreqState, mbgLtTrapXmrRefReconnect=mbgLtTrapXmrRefReconnect, mbgLtCfgNTPServer4IP=mbgLtCfgNTPServer4IP, mbgLtTrapNTPStopped=mbgLtTrapNTPStopped, mbgLtMrsPpsOffsVal=mbgLtMrsPpsOffsVal, mbgLtCfgVP100Display1IP=mbgLtCfgVP100Display1IP, mbgLtCfgEthernetIf3IPv4Netmask=mbgLtCfgEthernetIf3IPv4Netmask, mbgLtCfgSHSCritLimit=mbgLtCfgSHSCritLimit, mbgLtRefPzfState=mbgLtRefPzfState, mbgLtCfgEthernetIf6IPv6Autoconf=mbgLtCfgEthernetIf6IPv6Autoconf, mbgLtTrapHeartbeat=mbgLtTrapHeartbeat, mbgLtPtpDelayVal=mbgLtPtpDelayVal, mbgLtCfgEthernetIf6IPv6IP1=mbgLtCfgEthernetIf6IPv6IP1, mbgLtCfgEthernetIf3IPv6IP1=mbgLtCfgEthernetIf3IPv6IP1, mbgLtCfgEthernetIf5IPv4Gateway=mbgLtCfgEthernetIf5IPv4Gateway, mbgLtNtpStratum=mbgLtNtpStratum, mbgLtCfgSNMPTrapRec1Community=mbgLtCfgSNMPTrapRec1Community, mbgLtMrsPpsOffsBase=mbgLtMrsPpsOffsBase, mbgLtCfgNTPServer5IP=mbgLtCfgNTPServer5IP, mbgLtTrapSecondaryRecSync=mbgLtTrapSecondaryRecSync, mbgLtCfgEthernetIf6IPv4IP=mbgLtCfgEthernetIf6IPv4IP, mbgLtMrsRefGps=mbgLtMrsRefGps, mbgLtCfgVP100Display2IP=mbgLtCfgVP100Display2IP, mbgLtCfgSNMPReadOnlyCommunity=mbgLtCfgSNMPReadOnlyCommunity, mbgLtRefDctState=mbgLtRefDctState, mbgLtCfgEthernetIf5IPv6IP1=mbgLtCfgEthernetIf5IPv6IP1, mbgLtPtpOffsetFromGM=mbgLtPtpOffsetFromGM, mbgLtCfgNotifyRefclockNotSync=mbgLtCfgNotifyRefclockNotSync, mbgLtPtpMode=mbgLtPtpMode, mbgLtRefGpsStateVal=mbgLtRefGpsStateVal) mibBuilder.exportSymbols("MBG-SNMP-LT-MIB", mbgLtCfgNTPServer5Autokey=mbgLtCfgNTPServer5Autokey, mbgLtTrapServerBoot=mbgLtTrapServerBoot, mbgLtCfgFTPAccess=mbgLtCfgFTPAccess, mbgLtTrapSHSTimeLimitError=mbgLtTrapSHSTimeLimitError, mbgLtNtpAuthKeyId=mbgLtNtpAuthKeyId, mbgLtRefClockModeVal=mbgLtRefClockModeVal, mbgLtMrsIrigPrecision=mbgLtMrsIrigPrecision, mbgLtCfgNameserver1=mbgLtCfgNameserver1, mbgLtConformance=mbgLtConformance, mbgLtMrsPtpPrecision=mbgLtMrsPtpPrecision, mbgLtCfgEthernetIf8IPv6IP3=mbgLtCfgEthernetIf8IPv6IP3, mbgLtMrsGpsStateVal=mbgLtMrsGpsStateVal, mbgLtCfgEthernetIf2IPv6IP1=mbgLtCfgEthernetIf2IPv6IP1, mbgLtPtpDelay=mbgLtPtpDelay, mbgLtCfgEthernetIf3=mbgLtCfgEthernetIf3, mbgLtCfgEthernetIf2DHCPClient=mbgLtCfgEthernetIf2DHCPClient, mbgLtMrsPpsState=mbgLtMrsPpsState, mbgLtFdmNomFreq=mbgLtFdmNomFreq, mbgLtCfgEthernetIf0IPv4IP=mbgLtCfgEthernetIf0IPv4IP, mbgLtCmdSetRefTime=mbgLtCmdSetRefTime, mbgLtObjectsGroup=mbgLtObjectsGroup, mbgLtCfgNTPServer1Key=mbgLtCfgNTPServer1Key, mbgLtCfgEthernetIf5DHCPClient=mbgLtCfgEthernetIf5DHCPClient, mbgLtCfgEthernetIf9IPv6IP2=mbgLtCfgEthernetIf9IPv6IP2, mbgLtMrsPtpPrio=mbgLtMrsPtpPrio, mbgLtCfgEthernetIf8IPv6IP2=mbgLtCfgEthernetIf8IPv6IP2, mbgLtInfo=mbgLtInfo, mbgLtCfgNotifyNTPNotSync=mbgLtCfgNotifyNTPNotSync, mbgLtCfgEthernetIf3IPv6IP2=mbgLtCfgEthernetIf3IPv6IP2, mbgLtNtpActiveRefclockOffsetVal=mbgLtNtpActiveRefclockOffsetVal, mbgLtCfgNotifyNTPStopped=mbgLtCfgNotifyNTPStopped, mbgLtCfgEthernetIf1DHCPClient=mbgLtCfgEthernetIf1DHCPClient, mbgLtCfgNTPServer7=mbgLtCfgNTPServer7, mbgLtCfgEthernetIf0IPv6IP2=mbgLtCfgEthernetIf0IPv6IP2, mbgLtCfgEthernetIf6=mbgLtCfgEthernetIf6, mbgLtCfgEthernetIf7DHCPClient=mbgLtCfgEthernetIf7DHCPClient, mbgLtMrsPtpOffsLimit=mbgLtMrsPtpOffsLimit, mbgLtMrsNtpOffsVal=mbgLtMrsNtpOffsVal, mbgLtMrsIrigState=mbgLtMrsIrigState, mbgLtMrsIrigCorr=mbgLtMrsIrigCorr, mbgLtMrsFreqCorr=mbgLtMrsFreqCorr, mbgLtMrsPtpState=mbgLtMrsPtpState, mbgLtTrapPtpPortDisconnected=mbgLtTrapPtpPortDisconnected, mbgLtCfgEthernetIf4DHCPClient=mbgLtCfgEthernetIf4DHCPClient, mbgLtCfgNotifyConfigChanged=mbgLtCfgNotifyConfigChanged, mbgLtMrsPpsStateVal=mbgLtMrsPpsStateVal, mbgLtCfgTelnetAccess=mbgLtCfgTelnetAccess, mbgLtCfgEthernetIf0IPv4Netmask=mbgLtCfgEthernetIf0IPv4Netmask, mbgLtCfgEthernetIf7IPv4Gateway=mbgLtCfgEthernetIf7IPv4Gateway, mbgLtMrsNtpOffs=mbgLtMrsNtpOffs, mbgLtCfgEthernetIf0DHCPClient=mbgLtCfgEthernetIf0DHCPClient, mbgLtRefClockMode=mbgLtRefClockMode, mbgLtTrapConfigChanged=mbgLtTrapConfigChanged, mbgLtMrsRefIrig=mbgLtMrsRefIrig, mbgLtCfgEthernetIf6IPv6IP2=mbgLtCfgEthernetIf6IPv6IP2, mbgLtCfgEthernetIf4IPv6IP2=mbgLtCfgEthernetIf4IPv6IP2, mbgLtCmd=mbgLtCmd, mbgLtCfgEMail=mbgLtCfgEMail, mbgLtMrsIrigStateVal=mbgLtMrsIrigStateVal, mbgLtCfgNTPBroadcastIP=mbgLtCfgNTPBroadcastIP, mbgLtMrsFreqOffsVal=mbgLtMrsFreqOffsVal, mbgLtNtpActiveRefclockName=mbgLtNtpActiveRefclockName, mbgLtGroups=mbgLtGroups, mbgLtMrsIrigPrio=mbgLtMrsIrigPrio, mbgLtCfgEthernetIf1IPv4IP=mbgLtCfgEthernetIf1IPv4IP, mbgLtRefDctMode=mbgLtRefDctMode, mbgLtCfgEthernetIf3NetLinkMode=mbgLtCfgEthernetIf3NetLinkMode, mbgLtCfgEthernetIf1IPv6IP3=mbgLtCfgEthernetIf1IPv6IP3, mbgLtTrapNTPSync=mbgLtTrapNTPSync, mbgLtPtpPortStateVal=mbgLtPtpPortStateVal, mbgLtMrsGpsOffsVal=mbgLtMrsGpsOffsVal, mbgLtCfgEthernetIf3DHCPClient=mbgLtCfgEthernetIf3DHCPClient, mbgLtCfgNTPServer3IP=mbgLtCfgNTPServer3IP, mbgLtTrapAntennaShortCircuit=mbgLtTrapAntennaShortCircuit, mbgLtCfgNTPAtomPPS=mbgLtCfgNTPAtomPPS, mbgLtCfgEthernetIf5=mbgLtCfgEthernetIf5, mbgLtMrsFreqOffs=mbgLtMrsFreqOffs, mbgLtMrsGpsOffs=mbgLtMrsGpsOffs, mbgLtPtpPortState=mbgLtPtpPortState, mbgLtCfgNTPServer4Autokey=mbgLtCfgNTPServer4Autokey, mbgLtCfgVP100Display2SN=mbgLtCfgVP100Display2SN, mbgLtCfgNTPServer5Prefer=mbgLtCfgNTPServer5Prefer, mbgLtCfgEthernetIf9IPv4Netmask=mbgLtCfgEthernetIf9IPv4Netmask, mbgLtCfgEthernetIf0IPv6Autoconf=mbgLtCfgEthernetIf0IPv6Autoconf, mbgLtCfgEthernetIf9IPv4IP=mbgLtCfgEthernetIf9IPv4IP, mbgLtCfgNTPServer6=mbgLtCfgNTPServer6, mbgLtCfgEthernetIf5IPv4Netmask=mbgLtCfgEthernetIf5IPv4Netmask, mbgLtCfgNTPServer3=mbgLtCfgNTPServer3, mbgLtNotifications=mbgLtNotifications, mbgLtCfgEthernetIf6DHCPClient=mbgLtCfgEthernetIf6DHCPClient, mbgLtCfgEthernetIf4IPv4IP=mbgLtCfgEthernetIf4IPv4IP, mbgLtCfgEthernetIf1IPv6IP1=mbgLtCfgEthernetIf1IPv6IP1, mbgLtCfgNTPServer1=mbgLtCfgNTPServer1, mbgLtRefPzfMode=mbgLtRefPzfMode, mbgLtRefGpsSatellites=mbgLtRefGpsSatellites, mbgLtCfgWMailAddress1=mbgLtCfgWMailAddress1, mbgLtTrapPtpStateChanged=mbgLtTrapPtpStateChanged, mbgLtCfgEthernetIf2IPv6Autoconf=mbgLtCfgEthernetIf2IPv6Autoconf, mbgLtCfgEthernetIf4IPv6IP3=mbgLtCfgEthernetIf4IPv6IP3, mbgLtCfgEthernetIf3IPv6Autoconf=mbgLtCfgEthernetIf3IPv6Autoconf, mbgLtCfgNTPServer2Key=mbgLtCfgNTPServer2Key, mbgLtRefPzfField=mbgLtRefPzfField, mbgLtMrsNtpOffsLimit=mbgLtMrsNtpOffsLimit, mbgLtCfgWalldisplay=mbgLtCfgWalldisplay, mbgLtMrsPpsOffsLimit=mbgLtMrsPpsOffsLimit, mbgLtNtpNumberOfRefclocks=mbgLtNtpNumberOfRefclocks, mbgLtCfgEthernetIf1NetLinkMode=mbgLtCfgEthernetIf1NetLinkMode, mbgLtMrsNtpState=mbgLtMrsNtpState, mbgLtCfgEthernetIf1IPv6Autoconf=mbgLtCfgEthernetIf1IPv6Autoconf, mbgLtTrapReceiverNotResponding=mbgLtTrapReceiverNotResponding, mbgLtCfgSyslogserver1=mbgLtCfgSyslogserver1, mbgLtCfgEthernetIf0IPv6IP3=mbgLtCfgEthernetIf0IPv6IP3, mbgLtMrsFreqPrio=mbgLtMrsFreqPrio, mbgLtRefMrsRefList=mbgLtRefMrsRefList)
""" * Assignment: OOP Method Syntax * Required: yes * Complexity: easy * Lines of code: 3 lines * Time: 3 min English: 1. Define class `Calculator` 2. Define method `add` in class `Calculator` 3. Method `add` take `a` and `b` as arguments 4. Method returns sum of `a` and `b` 5. Run doctests - all must succeed Polish: 1. Zdefiniuj klasę `Calculator` 2. Zdefiniuj metodę `add` w klasie `Calculator` 3. Metoda `add` przyjmuje `a` i `b` jako argumenty 4. Metoda zwraca sumę `a` i `b` 5. Uruchom doctesty - wszystkie muszą się powieść Tests: >>> import sys; sys.tracebacklimit = 0 >>> from inspect import isclass, ismethod >>> assert isclass(Calculator) >>> calc = Calculator() >>> assert ismethod(calc.add) >>> calc.add(1, 2) 3 """
"""A generate file containing all source files used to produce `cargo-bazel`""" # Each source file is tracked as a target so the `cargo_bootstrap_repository` # rule will know to automatically rebuild if any of the sources changed. CARGO_BAZEL_SRCS = [ "@rules_rust//crate_universe:src/cli.rs", "@rules_rust//crate_universe:src/cli/generate.rs", "@rules_rust//crate_universe:src/cli/query.rs", "@rules_rust//crate_universe:src/cli/splice.rs", "@rules_rust//crate_universe:src/cli/vendor.rs", "@rules_rust//crate_universe:src/config.rs", "@rules_rust//crate_universe:src/context.rs", "@rules_rust//crate_universe:src/context/crate_context.rs", "@rules_rust//crate_universe:src/context/platforms.rs", "@rules_rust//crate_universe:src/lib.rs", "@rules_rust//crate_universe:src/lockfile.rs", "@rules_rust//crate_universe:src/main.rs", "@rules_rust//crate_universe:src/metadata.rs", "@rules_rust//crate_universe:src/metadata/dependency.rs", "@rules_rust//crate_universe:src/metadata/metadata_annotation.rs", "@rules_rust//crate_universe:src/rendering.rs", "@rules_rust//crate_universe:src/rendering/template_engine.rs", "@rules_rust//crate_universe:src/rendering/templates/crate_build_file.j2", "@rules_rust//crate_universe:src/rendering/templates/module_build_file.j2", "@rules_rust//crate_universe:src/rendering/templates/module_bzl.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/aliases.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/binary.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/build_script.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/common_attrs.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/deps.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/library.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/crate/proc_macro.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/header.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/module/aliases_map.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/module/deps_map.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/module/repo_git.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/module/repo_http.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/starlark/glob.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/starlark/selectable_dict.j2", "@rules_rust//crate_universe:src/rendering/templates/partials/starlark/selectable_list.j2", "@rules_rust//crate_universe:src/rendering/templates/vendor_module.j2", "@rules_rust//crate_universe:src/splicing.rs", "@rules_rust//crate_universe:src/splicing/cargo_config.rs", "@rules_rust//crate_universe:src/splicing/splicer.rs", "@rules_rust//crate_universe:src/test.rs", "@rules_rust//crate_universe:src/utils.rs", "@rules_rust//crate_universe:src/utils/starlark.rs", "@rules_rust//crate_universe:src/utils/starlark/glob.rs", "@rules_rust//crate_universe:src/utils/starlark/label.rs", "@rules_rust//crate_universe:src/utils/starlark/select.rs", ]
""" File: boggle.py Name:Jacky ---------------------------------------- This program lets user to input alphabets which arrange on square. And this program will print words which combined on the neighbor alphabets. """ # This is the file name of the dictionary txt file # we will be checking if a word exists by searching through it FILE = 'dictionary.txt' SIZE = 4 dictionary_list = {} def main(): """ boggle list let user inputs all alphabets and gives any alphabet a position. """ boggle = [] # if user input a wrong formats, the switch will keep on False and this program will print Illegal input switch = False for i in range(SIZE): if switch is True: break boggle_line = input(f'{i+1} row of letters:') boggle_line= boggle_line.split() if len(boggle_line) != SIZE: print('Illegal input') switch = True break for alphabet in boggle_line: if len(alphabet) != 1: print('Illegal input') switch = True break boggle.append(boggle_line) # print(boggle) # let the world in the FILE = 'dictionary.txt' to the dictionary_list read_dictionary() # let any alphabet have own position map_dict = {} # if the neighbor alphabet combined surpass 4 units and this world in the dictionary_list correct_word_list = [] # define any position where can connect if switch is False: for x in range(SIZE): for y in range(SIZE): map_dict[(x, y)] = {} map_dict[(x, y)]['alphabet'] = boggle[x][y] if x==0 and y==0: map_dict[(x,y)]['map'] = [(x+1,y),(x,y+1),(x+1,y+1)] elif x==0 and y==SIZE-1: map_dict[(x,y)]['map'] = [(0,y-1),(1,y-1),(1,y-1)] elif x==SIZE-1 and y== 0 : map_dict[(x,y)]['map'] = [(x-1,0),(x-1,1),(x,1)] elif x==SIZE-1 and y==SIZE-1: map_dict[(x,y)]['map'] = [(x-1,y),(x-1,y-1),(x,y-1)] elif x==0: map_dict[(x,y)]['map'] = [(x,y-1),(x+1,y-1),(x+1,y),(x+1,y+1),(x,y+1)] elif x == SIZE-1: map_dict[(x,y)]['map'] = [(x,y-1),(x-1,y-1),(x-1,y),(x-1,y+1),(x,y+1)] elif y == 0: map_dict[(x,y)]['map'] = [(x-1,y),(x-1,y+1),(x,y+1),(x+1,y+1),(x+1,y)] elif y == SIZE-1: map_dict[(x,y)]['map'] = [(x-1,y),(x-1,y-1),(x,y-1),(x+1,y-1),(x+1,y)] else: map_dict[(x,y)]['map'] = [(x-1,y-1),(x,y-1),(x+1,y-1),(x+1,y),(x+1,y+1),(x,y+1),(x-1,y+1),(x-1,y)] for i in range(SIZE): for j in range(SIZE): permutation(map_dict,(i,j),correct_word_list) print(f'There are {len(correct_word_list)} words in total') def permutation(map_dict,position,correct_word_list, coordinate_list=[]): coordinate_list.append(position) maybe_word = (num_to_string(coordinate_list, map_dict)) # print(num_to_string(coordinate_list, map_dict)) if len(maybe_word) >=4 and maybe_word in dictionary_list and maybe_word not in correct_word_list: correct_word_list.append(maybe_word) print(f'Found "{maybe_word}"') for next_position in map_dict[position]['map']: if next_position not in coordinate_list: if has_prefix(maybe_word): permutation(map_dict,next_position,correct_word_list, coordinate_list) coordinate_list.pop() def read_dictionary(): """ This function reads file "dictionary.txt" stored in FILE and appends words in each line into a Python list """ global dictionary_list with open(FILE, 'r') as f: for line in f: words = line.split() for word in words: dictionary_list[word] = word return dictionary_list def has_prefix(sub_s): """ :param sub_s: (str) A substring that is constructed by neighboring letters on a 4x4 square grid :return: (bool) If there is any words with prefix stored in sub_s """ for dict_word in dictionary_list: if dict_word.startswith(sub_s): return True return False def num_to_string(coordinate_list, map_dict): ans = "" for figure in coordinate_list: ans += map_dict[figure]['alphabet'] return ans if __name__ == '__main__': main()
class Request(dict): def __init__(self, server_port=None, server_name=None, remote_addr=None, uri=None, query_string=None, script_name=None, scheme=None, method=None, headers={}, body=None): super().__init__({ "server_port": server_port, "server_name": server_name, "remote_addr": remote_addr, "uri": uri, "script_name": script_name, "query_string": query_string, "scheme": scheme, "method": method, "headers": headers, "body": body, }) self.__dict__ = self