content
stringlengths
7
1.05M
# In eg 0.0.x, this file could be used to invoke eg directly, without installing # via pip. Eg 0.1.x switched to also support python 3. This meant changing the # way imports were working, which meant this script had to move up a level to be # a sibling of the eg module directory. This file will exist for a time in order # to try and give a more friendly error for people that are using the symlink # approach. This warning will eventually disappear in a future version of eg. DEPRECATION_WARNING = """ You are invoking eg via the script at <eg-repo>/eg/eg_exec.py. This file has been deprecated in order to work with both python 2 and 3. Please instead invoke <eg-repo>/eg_exec.py, or install with pip. If you're using a symlink and need to update it, try something like the following: rm `which eg` ln -s <absolute-path-to-eg-repo>/eg_exec.py /usr/local/bin/eg Or, simply install with pip: sudo pip install eg """ print(DEPRECATION_WARNING)
# from ncats.translator.module.disease.gene import disease_associated_genes @given('a disease term {disease_identifier} for disease label {disease_label} in Translator Modules') def step_impl(context, disease_identifier, disease_label): context.disease = {"disease_identifier":disease_identifier, "disease_label":disease_label} @when('we run the disease associated genes Translator Module') def step_impl(context): #translator-modules/ncats/translator/modules/disease/gene/ #initialization will run the method context.module = DiseaseAssociatedGeneSet(context.disease) @then('the module result contains {gene_ids}') def step_impl(context): hit_ids = [ x["hit_id"] for x in context.module.disease_associated_genes ] gene_ids = gene_ids.split(",") for gene in gene_ids: assert gene in hit_ids
N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) count=0 for i in range(N): count+=min(A[i],B[i]) if A[i]<B[i]: if A[i+1]<B[i]-A[i]: count+=A[i+1] A[i+1]=0 else: count+=B[i]-A[i] A[i+1]-=B[i]-A[i] print(count)
# -*- coding: utf-8 -*- """ Created on Tue Nov 19 10:48:08 2019 @author: Wenbin """ """ 给定链表1->2->3->4->5->6->7,k = 3,那么旋转后的单链表变为5->6->7->1->2->3->4 """ class LNode: def __init__(self , x = 0 , y = None): self.Data = x self.Next = y def ConstructLinkedList(k): Head = LNode(x = k) temp = Head for i in range(k): temp.Next = LNode(x = (i + 1) ) temp = temp.Next return Head def Display(Pointer): temp = Pointer.Next while temp.Next != None: print(temp.Data , " -> " , end = "") temp = temp.Next print(temp.Data) def RotateLinkedList(Pointer , k): Length = Pointer.Data temp = Pointer for i in range(Length - k): temp = temp.Next HNext = Pointer.Next Pointer.Next = temp.Next temp.Next = None temp = Pointer while temp.Next != None: temp = temp.Next temp.Next = HNext return Pointer if __name__ == "__main__": Head = ConstructLinkedList(7) print("The Linked List is:") Display(Head) Head = RotateLinkedList(Head , 3) Display(Head)
def ground_ship(weight): flat = 20 if weight <= 2: return weight*1.5 + flat elif weight > 2 and weight <= 6: return weight*3.0 + flat elif weight > 6 and weight <= 10: return weight*4.0 + flat else: return weight*4.75 + flat cost = ground_ship(8.4) print(cost) def drone_ship(weight): flat = 0 if weight <= 2: return weight*4.5 + flat elif weight > 2 and weight <= 6: return weight*9.0 + flat elif weight > 6 and weight <= 10: return weight*12.0 + flat else: return weight*14.25 + flat cost1 = drone_ship(1.5) print(cost1)
# Copyright 2018 ZTE Corporation. # # 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. GRANT_DATA = { 'vnfInstanceId': '1', 'vnfLcmOpOccId': '2', 'vnfdId': '3', 'flavourId': '4', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'instantiationLevelId': '5', 'addResources': [ { 'id': '1', 'type': 'COMPUTE', 'vduId': '2', 'resourceTemplateId': '3', 'resourceTemplate': { 'vimConnectionId': '4', 'resourceProviderId': '5', 'resourceId': '6', 'vimLevelResourceType': '7' } } ], 'placementConstraints': [ { 'affinityOrAntiAffinity': 'AFFINITY', 'scope': 'NFVI_POP', 'resource': [ { 'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3' } ] } ], 'vimConstraints': [ { 'sameResourceGroup': True, 'resource': [ { 'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3' } ] } ], 'additionalParams': {}, '_links': { 'vnfLcmOpOcc': { 'href': '1' }, 'vnfInstance': { 'href': '2' } } } VNF_LCM_OP_OCC_NOTIFICATION_DATA = { 'id': 'string', 'notificationType': 'VnfLcmOperationOccurrenceNotification', 'subscriptionId': 'string', 'timeStamp': 'string', 'notificationStatus': 'START', 'operationState': 'STARTING', 'vnfInstanceId': 'string', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'vnfLcmOpOccId': 'string', 'affectedVnfcs': [{ 'id': 'string', 'vduId': 'string', 'changeType': 'ADDED', 'computeResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'metadata': {}, 'affectedVnfcCpIds': [], 'addedStorageResourceIds': [], 'removedStorageResourceIds': [], }], 'affectedVirtualLinks': [{ 'id': 'string', 'virtualLinkDescId': 'string', 'changeType': 'ADDED', 'networkResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network', } }], 'affectedVirtualStorages': [{ 'id': 'string', 'virtualStorageDescId': 'string', 'changeType': 'ADDED', 'storageResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network', }, 'metadata': {} }], 'changedInfo': { 'vnfInstanceName': 'string', 'vnfInstanceDescription': 'string', 'vnfConfigurableProperties': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'metadata': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'extensions': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'vimConnectionInfo': [{ 'id': 'string', 'vimId': 'string', 'vimType': 'string', 'interfaceInfo': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'accessInfo': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'extra': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' } }], 'vnfPkgId': 'string', 'vnfdId': 'string', 'vnfProvider': 'string', 'vnfProductName': 'string', 'vnfSoftwareVersion': 'string', 'vnfdVersion': 'string' }, 'changedExtConnectivity': [{ 'id': 'string', 'resourceHandle': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'extLinkPorts': [{ 'id': 'string', 'resourceHandle': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'cpInstanceId': 'string' }] }], 'error': { 'type': 'string', 'title': 'string', 'status': 0, 'detail': 'string', 'instance': 'string' }, '_links': { 'vnfInstance': {'href': 'string'}, 'subscription': {'href': 'string'}, 'vnfLcmOpOcc': {'href': 'string'} } } VNF_IDENTIFIER_CREATION_NOTIFICATION_DATA = { 'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierCreationNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': { 'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'} } } VNF_IDENTIFIER_DELETION_NOTIFICATION_DATA = { 'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierDeletionNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': { 'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'} } }
def my_func(): print("Foo") my_other_func = lambda: print("Bar") my_arr = [my_func, my_other_func] for i in range (0, 2): my_arr[i]() # Bots Position BOT_POS = [(5401, 1530),(3686, 1857),(3733, 2626),(2325, 1814), (1718, 1282),(1288, 2418),(1249, 506),(2513,1286) ] print("\n") for (x,y) in BOT_POS: print(x, y)
class Solution: # @return a string def convert(self, s, nRows): if nRows == 1 or len(s) <= 2: return s # compute the length of the zigzag zigzagLen = 2*nRows - 2; lens = len(s) res = '' for i in range(nRows): idx = i while idx < lens: res = res + s[idx] if i != 0 and i != nRows - 1: x = idx + (zigzagLen - 2*i) if (x < lens): res = res + s[x] idx = idx + zigzagLen return res s = Solution() assert s.convert('0123456789', 5) == '0817926354' assert s.convert('0123456789', 3) == '0481357926' assert s.convert('0123456789', 2) == '0246813579' assert s.convert('012', 1) == '012'
amountNumbers = int(input()) arrNumbers = set(map(int, input().split())) amountCommands = int(input()) for i in range(amountCommands): command = input().split() if command[0] == "pop": arrNumbers.pop() elif command[0] == "remove": if int(command[1]) in arrNumbers: arrNumbers.remove(int(command[1])) elif command[0] == "discard": if int(command[1]) in arrNumbers: arrNumbers.discard(int(command[1])) print(sum(arrNumbers))
"""Tense analysis and detection related utilities.""" # pylint: disable=E0611 PRESENT = 'PRESENT' PAST = 'PAST' FUTURE = 'FUTURE' MODAL = 'MODAL' NORMAL = 'NORMAL'
# 238. Product of Array Except Self class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: cur, n = 1, len(nums) out = [1]*n for i in range(1, n): cur *= nums[i-1] out[i] = cur cur = 1 for i in range(n-2, -1, -1): cur *= nums[i+1] out[i] *= cur return out
try: myfile1=open("E:\\python_progs\\demochange\\mydir2\\pic1.jpg","rb") myfile2=open("E:\\python_progs\\demochange\\mydir2\\newpic1.jpg","wb") bytes=myfile1.read() myfile2.write(bytes) print("A new Image is available having name as: newpic1.jpg") finally: myfile1.close() myfile2.close()
expected_output = { 'power-usage-information': { 'power-usage-item': [ { 'name': 'PSM 0', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30' } }, { 'name': 'PSM 1', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30' } }, { 'name': 'PSM 2', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '504.56', 'str-zone': 'Lower', 'str-dc-current': '9.75', 'str-dc-voltage': '51.75', 'str-dc-load': '24.03' } }, { 'name': 'PSM 3', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '491.62', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.75', 'str-dc-load': '23.41' } }, { 'name': 'PSM 4', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 5', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 6', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 7', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 8', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 9', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71' } }, { 'name': 'PSM 10', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '307.50', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.25', 'str-dc-load': '14.64' } }, { 'name': 'PSM 11', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71' } }, { 'name': 'PSM 12', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 13', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 14', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 15', 'state': 'Unknown', 'dc-input-detail2': { 'dc-input-status': 'Not ready' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 16', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 17', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } } ], 'power-usage-system': { 'power-usage-zone-information': [{ 'str-zone': 'Upper', 'capacity-actual': '6300', 'capacity-max': '7500', 'capacity-allocated': '3332', 'capacity-remaining': '2968', 'capacity-actual-usage': '925.50' }, { 'str-zone': 'Lower', 'capacity-actual': '8400', 'capacity-max': '10000', 'capacity-allocated': '6294', 'capacity-remaining': '2106', 'capacity-actual-usage': '1974.69' }], 'capacity-sys-actual': '14700', 'capacity-sys-max': '17500', 'capacity-sys-remaining': '5074' } } }
def list3(str): result = 0 for i in str: if i == 'a': result += 1 return result def main(): print(list3(['Hello', 'world', 'a'])) print(list3(['a', 'a'])) print(list3(['Computational', 'thinking'])) print(list3(['a', 'A', 'A'])) if __name__ == '__main__': main()
""" CS241 Checkpoint 01A Written by Chad Macbeth """ print("Hello Python World!")
# EG8-13 Average Sales # test sales data sales=[50,54,29,33,22,100,45,54,89,75] def average_sales(): ''' Print out the average sales value ''' total=0 for sales_value in sales: total = total+sales_value average_sales=total/len(sales) print('Average sales are:', average_sales) average_sales()
TRACK_WORDS = ["coronavirus"] TABLE_NAME = "coronavirus" TABLE_ATTRIBUTES = "id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), \ polarity INT, subjectivity INT, user_location VARCHAR(255), \ user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, \ retweet_count INT, favorite_count INT"
# Copyright 2020 Google LLC # # 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 # # https://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. """ Errors for the library All exceptions defined by the library should be defined in this file. """ class UnchangedInstanceNameError(IOError): """The new instance name is the same as the original one's""" pass class InvalidTargetNetworkError(IOError): """Migrate to a non-VPC network""" pass class ZoneOperationsError(Exception): """Zone operation's error""" pass class RegionOperationsError(Exception): """Region operation's error""" pass class AttributeNotExistError(KeyError): """An attribute doesn't exist in the googleapi's response""" pass class InvalidTypeError(TypeError): """Type error""" pass class MissingSubnetworkError(IOError): """The subnetwork is not defined""" pass class RollbackError(Exception): """The rollback procedure is failed""" pass class AddInstanceToInstanceGroupError(Exception): """Adding an instance back to the instance group is failed""" pass class TargetTypeError(Exception): """The target type is not supported""" pass class UnsupportedForwardingRule(Exception): """The type of the forwarding rule is not supported""" pass class UnsupportedBackendService(Exception): """The type of the backend service is not supported""" pass class MigrationFailed(Exception): """The migration is failed, and the rollback was called""" pass class InvalidSelfLink(Exception): """The selfLink is unable to be parsed""" pass class AmbiguousTargetResource(Exception): """The target resource can be an instance group or a single instance""" pass class MultipleTargetPools(Exception): """The instance group is serving mutliple target pools at the same time""" pass class SubnetworkNotExists(Exception): """The subnetwork doens't exist in the network""" pass class UnableToGenerateNewInstanceTemplate(Exception): """Unable to genereate a new instance template""" pass
""" Pub/Sub pattern is a wide used pattern in system design. In this problem, you need to implement a pub/sub pattern to support user subscribes on a specific channel and get notification messages from subscribed channels. There are 3 methods you need to implement: subscribe(channel, user_id): Subscribe the given user to the given channel. unsubscribe(channel, user_id): Unsubscribe the given user from the given channel. publish(channel, message): You need to publish the message to the channel so that everyone subscribed on the channel will receive this message. Call PushNotification.notify(user_id, message) to push the message to the user. Example subscribe("group1", 1) publish("group1", "hello") >> user 1 received "Hello" subscribe("group1", 2) publish("group1", "thank you") >> user 1 received "thank you" >> user 2 received "thank you" unsubscribe("group2", 3) >> user 3 is not in group2, do nothing unsubscribe("group1", 1) publish("group1", "thank you very much") >> user 2 received "thank you very much" publish("group2", "are you ok?") >> # you don't need to push this message to anyone If there are more than 1 user subscribed on the same channel, it doesn't matter the order of time users receiving the message. It's ok if you push the message to user 2 before user 1. Solution: 模拟题,观察者模式 """ ''' Definition of PushNotification class PushNotification: @classmethod def notify(user_id, message): ''' class PubSubPattern: def __init__(self): # do intialization if necessary self.d = dict() # {"channel": sub_user_set} """ @param: channel: a channel name @param: user_id: a user id @return: nothing """ def subscribe(self, channel, user_id): # write your code here if channel not in self.d: self.d[channel] = set() self.d[channel].add(user_id) """ @param: channel: a channel name @param: user_id: a user id @return: nothing """ def unsubscribe(self, channel, user_id): # write your code here if channel in self.d and user_id in self.d[channel]: self.d[channel].remove(user_id) """ @param: channel: a channel name @param: message: need send message @return: nothing """ def publish(self, channel, message): # write your code here if channel in self.d and len(self.d[channel]) > 0: for user_id in self.d[channel]: PushNotification.notify(user_id, message)
print ("Hello Guys!") #Hello Guys! print (2+3) #5 #windows - use F9 key for execution of the selected line """ learning flow data types input from the User control flow - if else elif looping - while for string operations internal datastructure - list, dict, tuple.. file handling """ a = 10 b = 2.3 c = True d = "Forsk" e = 'Forsk' f = "F" g = 'F' h = None #null,same as c and c++ """ data types int float bool str NoneType """ x = "10" cname = "Forsk" print (type(cname)) #<str> len(cname) #5 print (cname) #Forsk cname[0] #F cname[1] #o cname[-1] #k
''' 1. Write a Python program to find the first triangle number to have over n(given) divisors. From Wikipedia: A triangular number is a number that is the sum of all of the natural numbers up to a certain number. For example, 10 is a triangular number because 1 + 2 + 3 + 4 = 10. The first 25 triangular numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, and 351. A triangular number is calculated by the equation: n(n+1)/2 The factors of the first five triangle numbers: 1: 1 3: 1, 3 6: 1, 2, 3, 6 10: 1, 2, 5, 10 15: 1, 3, 5, 15 In the above list 6 is the first triangle number to have over four divisors '''
def predict(lr, sample): return lr.predict(sample.reshape(1, -1)) def predict2(lr, sample): return lr.predict([sample])
class Solution: def getMoneyAmount(self, n: int) -> int: # dp[i][j] means minimum amount of money [i , j] # dp[i][j] = min(n + max(dp[i][n-1] , dp[n+1][j])) dp = [[-1 for _ in range(n+1)] for _ in range(n+1)] def cal_range(i,j): # basic situation if i >= len(dp) or j >= len(dp) or i <= 0 or j <=0: return 0 if i >= j: dp[i][j] = 0 if dp[i][j] != -1: return dp[i][j] for n in range(i,j+1): candidate = n + max(cal_range(i,n-1) , cal_range(n+1,j)) dp[i][j] = candidate if dp[i][j] == -1 else min(candidate,dp[i][j]) return dp[i][j] return cal_range(1,n)
class Question: def __init__(self, q_text, q_answer): self._text = q_text self._answer = q_answer @property def text(self): return self._text @text.setter def text(self, d): self._text = d @property def answer(self): return self._answer
# Given a string, find the first uppercase character. # Solve using both an iterative and recursive solution. input_str_1 = "lucidProgramming" input_str_2 = "LucidProgramming" input_str_3 = "lucidprogramming" def find_uppercase_iterative(input_str): for i in range(len(input_str)): if input_str[i].isupper(): return input_str[i] return "No uppercase character found" def find_uppercase_recursive(input_str, idx=0): if input_str[idx].isupper(): return input_str[idx] if idx == len(input_str) - 1: return "No uppercase character found" return find_uppercase_recursive(input_str, idx+1) print(find_uppercase_iterative(input_str_1)) print(find_uppercase_iterative(input_str_2)) print(find_uppercase_iterative(input_str_3)) print(find_uppercase_recursive(input_str_1)) print(find_uppercase_recursive(input_str_2)) print(find_uppercase_recursive(input_str_3))
def phi1(n): ''' sqrt(n) ''' res=n i=2 while(i*i<=n): if n%i==0: res=res//i res=res*(i-1) while(n%i==0): n=n//i i+=1 if n>1: res=res//n res=res*(n-1) return res ''' log(log(n)) ''' def phi2(maxn): phi=[] for i in range(maxn+2): phi.append(i) for i in range(2,maxn+2): if phi[i]==i: for j in range(i,maxn+2,i): phi[j]=phi[j]//i phi[j]*=(i-1) return phi[maxn] t=10 while(t): n=int(input()) print(phi1(n)) print(phi2(n))
#Faça um Programa que calcule a área de um quadrado, em seguida mostre o dobro desta área #para o usuário. side = float(input("Informe o tamanho do lado do quadrado: ")) area = pow(side,2) dbarea = area * 2 print("A area do quadrado eh %.1f e o dobro desta area eh %.1f"%(area,dbarea))
""" Helita python library """ __all__ = ["io", "obs", "sim", "utils"] #from . import io #from . import obs #from . import sim #from . import utils
# Given an unsorted integer array, find the smallest missing positive integer. # # Example 1: # # Input: [1,2,0] # Output: 3 # Example 2: # # Input: [3,4,-1,1] # Output: 2 # Example 3: # # Input: [7,8,9,11,12] # Output: 1 # Note: # # Your algorithm should run in O(n) time and uses constant extra space. class Solution(object): def firstMissingPositive(self, nums): """ :type nums: List[int] :rtype: int Basic idea: 1. for any array whose length is l, the first missing positive must be in range [1,...,l+1], so we only have to care about those elements in this range and remove the rest. 2. we can use the array index as the hash to restore the frequency of each number within the range [1,...,l+1] """ # nums.append(0) # n = len(nums) # for i in range(len(nums)): # delete those useless elements # if nums[i] < 0 or nums[i] >= n: # nums[i] = 0 # for i in range(len(nums)): # use the index as the hash to record the frequency of each number # nums[nums[i] % n] += n # for i in range(1, len(nums)): # if nums[i] / n == 0: # return i # return n idx = 0 while idx < len(nums): if nums[idx] > 0 and nums[idx] != idx + 1 and nums[idx] <= len(nums) and nums[nums[idx]-1]!=nums[idx]: temp = nums[nums[idx] - 1] nums[nums[idx] - 1] = nums[idx] nums[idx] = temp else: idx += 1 for idx in range(len(nums)): if nums[idx] != idx + 1: return idx + 1 return len(nums) + 1 s = Solution() print(s.firstMissingPositive([1,2,0]))
def say_(func): func() def hi(): print("Hello") # Estoy pasando hi como argumento de say_ say_(hi)
__author__ = 'chris' """ Package for holding all of our protobuf classes """
N, A, B = map(int, input().split()) print(min(A, B), end=" ") if N - A <= B: print(B - N + A) else: print(0)
class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: if hashStudent[sandwich] == 0: break else: hashStudent[sandwich] -= 1 return sum(hashStudent.values()) class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: flag = False break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: flag = False break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = collections.Counter(students) hashSandwich = collections.Counter(sandwiches) while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1]
def main(): a = 1.0 b = 397.0 print(a/b) return(0) main()
somaidade = 0 #Soma de Todas as Idades mediaidade = 0 #Média de todas as idades mih = 0 # Maior idade para Homens nomev = '' #Nome do Homem Mais velho totm20 = 0 # Total de Mulheres com Menos de 20 anos for p in range(1,5): print(f'-----{p}ª Pessoa-----') nome = str(input('Nome: ')).strip() idade = int(input('Idade: ')) sexo = str(input('Sexo [M/F]: ')).strip() somaidade += idade if p == 1 and sexo in 'Mm' : #Se for a primeira rodada do laço mih e nomev recebem os atributos mih = idade nomev = nome if sexo in 'Mm' and idade > mih: #Se o sexo for masculino e a idade for maior que a idade salva trocam-se os atributos mih = idade nomev = nome if sexo in 'Ff' and idade < 20: #Se o sexo for feminino e a idade for abaixo de 20 anos se adiciona um no contador. totm20 += 1 mediaidade = somaidade /4 print(f'A média de idade do grupo é de {mediaidade} anos.') print(f'O homem mais velho tem {mih} anos e se chama {nomev}') print(f'Ao todo são {totm20} mulheres com menos de 20 anos')
class Solution: def nextGreaterElement(self, n: int) -> int: num = list(str(n)) i = len(num) - 2 while i >= 0: if num[i] < num[i + 1]: break i -= 1 if i == -1: return -1 j = len(num) - 1 while num[j] <= num[i]: j -= 1 num[i], num[j] = num[j], num[i] result = int(''.join(num[:i + 1] + num[i + 1:][::-1])) return result if result < (1 << 31) else -1
# 快速排序 def swap(arr, l, r): temp = arr[l] arr[l] = arr[r] arr[r] = temp def quicksort(arr, l, r): # 退出条件即为,上一次的小于区的left为本次l的r,单他们重合则必然有序,退出 # rigth同理 if l < r: p = partition(arr, l, r) quicksort(arr, l, p[0]-1) quicksort(arr, p[1]+1, r) return arr def partition(arr, l, r): """划分""" less = l-1 more = r while l < more: if arr[l] < arr[r]: less += 1 swap(arr, less, l) l += 1 elif arr[l] > arr[r]: more -= 1 swap(arr, l, more) else: l += 1 swap(arr, more, r) arr02 = [less+1, more] return arr02 array_test = [2, 6, 9, 4, 6, 8, 7] result = quicksort(array_test,0, len(array_test)-1) print(result)
def cake(candles,debris): res = 0 for i,v in enumerate(debris): if i%2: res+=ord(v)-97 else: res+=ord(v) if res>0.7*candles and candles: return "Fire!" else: return 'That was close!'
class ColorTheme: def __init__(self, name: str, display_name: str, version: str): self.name = name self.display_name = display_name self.version = version
class ProjectStatus: def __init__(self, name): self.name = name self.icon = None self.status = None def add_icon(self, icon): self.icon = icon def set_status(self, status): self.status = status class ProjectStatusDictionary(object): def __init__(self): self.projects = dict() def get_project(self, project): if project not in self.projects: self.projects[project] = ProjectStatus(project) return self.projects[project] class ProjectCache(object): def __init__(self): self.namespaces = dict() def add_icon(self, namespace, project, icon): self.get_project(namespace, project).add_icon(icon) def set_status(self, namespace, project, status): self.get_project(namespace, project).set_status(status) def get_project(self, namespace, project): if namespace not in self.namespaces: self.namespaces[namespace] = ProjectStatusDictionary() return self.namespaces[namespace].get_project(project) def get_list_of_statuses(self): status_list = [] for namespace in self.namespaces.values(): for project in namespace.projects.values(): status_list.append(project) return status_list
class Vitals: LEARNING_RATE = 0.1 MOMENTUM_RATE = 0.8 FIRST_LAYER = 5 * 7 SECOND_LAYER = 14 OUTPUT_LAYER = 3
# We will register here processors for the message types by name VM_ENGINE_REGISTER = dict() def register_vm_engine(engine_name, engine_class): """ Verifies a message is valid before forwarding it, handling it (should it be different?). """ VM_ENGINE_REGISTER[engine_name] = engine_class
print('C L A S S I C S O L U T I O N') range_of_numbers = [] div_by_2 = [] div_by_3 = [] other_numbers = [] for i in range(1,11): range_of_numbers.append(i) if i%2 == 0: div_by_2.append(i) elif i%3 == 0: div_by_3.append(i) else: other_numbers.append(i) print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers) print('') print('') print('L I S T C O M P R E H E N S I O N') range_of_numbers = [i for i in range (1, 11)] div_by_2 = [i for i in range (1, 11) if i % 2 == 0 ] div_by_3 = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 0] other_numbers = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 1] print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers)
""" Helper modules. These should be stand alone modules that could reasonably be their own PyPI package. This comes with two benefits: 1. The library is void of any business data, which makes it easier to understand. 2. It means that it is decoupled making it easy to reuse the code in different sections of the code. An example is the :mod:`stack_exchange_graph_data.helpers.progress` module. Which is easily used in both :func:`stack_exchange_graph_data.helpers.curl.curl` and :func:`stack_exchange_graph_data.driver.load_xml_stream`. Since it wraps a stream it's easily transferable to any Python loop, and due to lacking business logic means there's no monkey patching. """
# limitation :pattern count of each char to be max 1 text = "912873129" pat = "123" window_found = False prev_min = 0 prev_max = 0 prev_pos = -1 lookup_tab = dict() # detect first window formation when all characters are found # change window whenever new character was the previous minimum # if new window smaller than previous smallest, change current min window for pos, c in enumerate(text): if c in pat: prev_pos = lookup_tab.get(c, -1) lookup_tab[c] = pos if window_found == True: cur_max = pos if prev_pos == cur_min: # new min needed cur_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) print('new min on update of ', c, ' is ', cur_min) if cur_max - cur_min < prev_max - prev_min: prev_min = cur_min prev_max = cur_max elif len(lookup_tab) == len(pat): cur_min = prev_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) cur_max = prev_max = max(list([lookup_tab[k] for k in lookup_tab.keys()])) window_found = True print(prev_min, prev_max)
class ResponseKeys(object): POST = 'post' POSTS = 'posts' POST_SAVED = 'The post was saved successfully' POST_UPDATED = 'The post was updated successfully' POST_DELETED = 'The post was deleted successfully' POST_NOT_FOUND = 'The post could not be found'
# This problem was recently asked by Google: # Given a singly-linked list, reverse the list. This can be done iteratively or recursively. Can you get both solutions? class ListNode(object): def __init__(self, x): self.val = x self.next = None # Function to print the list def printList(self): node = self output = '' while node != None: output += str(node.val) output += " " node = node.next print(output) # Iterative Solution def reverseIteratively(self, head): # Implement this. node = head finalList = [] while node != None: finalList.append(node.val) node = node.next finalList.reverse() startNode = n = ListNode(finalList[0]) for i in range(1, len(finalList)): n.next = ListNode(finalList[i]) n = n.next return startNode # Recursive Solution finalList = [] def reverseRecursively(self, head): # Implement this. if head != None: self.finalList.append(head.val) if head.next != None: self.reverseRecursively(head.next) else: self.finalList.reverse() startNode = n = ListNode(self.finalList[0]) for i in range(1, len(self.finalList)): n.next = ListNode(self.finalList[i]) n = n.next return startNode # Test Program # Initialize the test list: testHead = ListNode(4) node1 = ListNode(3) testHead.next = node1 node2 = ListNode(2) node1.next = node2 node3 = ListNode(1) node2.next = node3 testTail = ListNode(0) node3.next = testTail print("Initial list: ") testHead.printList() # 4 3 2 1 0 print("List after Iterative reversal: ") testHead.reverseIteratively(testHead).printList() # testTail.printList() # 0 1 2 3 4 # print("List after Recursive reversal: ") # testHead.reverseRecursively(testHead).printList() # testTail.printList() # 0 1 2 3 4
# Longest Substring Without Repeating Characters # Medium class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ # DP Solution based on map, not satisfactory. if not s: return 0 word_set = {} counts = [0] * len(s) word_set[s[0]] = 0 counts[0] = 1 for i in range(1, len(s)): if not s[i] in word_set.keys(): counts[i] = counts[i-1] + 1 word_set[s[i]] = i else: for key,value in word_set.items(): if value < word_set[s[i]]: word_set.pop(key) counts[i] = i - word_set[s[i]] word_set[s[i]] = i return max(counts)
""" ======================================================================== Placeholder.py ======================================================================== Author : Shunning Jiang Date : June 1, 2019 """ class Placeholder: pass
#! /usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2019/3/10 5:32 PM # @Author : xiaoliji # @Email : yutian9527@gmail.com """ 丑数 >>> nthUglyNumber(5) 5 >>> nthUglyNumber(1) 1 >>> nthUglyNumber(4) 4 >>> nthUglyNumber(1500) 859963392 """ def nthUglyNumber(n: int) -> int: """ 书中的解法 """ q = [1] t2, t3, t5 = 0, 0, 0 for i in range(n-1): a2, a3, a5 = q[t2]*2, q[t3]*3, q[t5]*5 to_add = min(a2, a3, a5) q.append(to_add) if a2 == to_add: t2 += 1 if a3 == to_add: t3 += 1 if a5 == to_add: t5 += 1 return q[-1]
#!/usr/bin/env python # -*- coding: utf-8 -*- def LF_flux(FL, FR, lmax, lmin, UR, UL, dt, dx): ctilde = dx / dt return 0.5 * (FL + FR) - 0.5 * ctilde * (UR - UL)
""" Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1, 3], [2, 6], [8, 10], [15, 18]], Output: [[1, 6], [8, 10], [15, 18]] Explanation: Since intervals [1, 3] and [2, 6] overlaps, merge them into [1, 6]. Example 2: Input: [[1, 4], [4, 5]], Output: [[1, 5]] Explanation: Intervals [1, 4] and [4, 5] are considered overlapping. """ """ We first sort the list of intervals so they are in ascending order. Sorting the list first means we never have to check the lower part of the last result, as we are guaranteed the subsequent lowers will be either within the last result - in which case we check the upper to see if the last result can be extended or the current interval skipped - or higher than it - in which case it is a new interval and we add it to the results. """ def merge_intervals(intervals): results = [] if not intervals: return results intervals.sort() for interval in intervals: if not results or interval[0] > results[-1][1]: results.append(interval) elif interval[1] > results[-1][1]: results[-1][1] = interval[1] return results assert merge_intervals([[1, 3], [2, 6], [8, 10], [15, 18]]) == [[1, 6], [8, 10], [15, 18]] assert merge_intervals([[1, 4], [4, 5]]) == [[1, 5]] assert merge_intervals([[1, 4], [0, 5]]) == [[0, 5]] assert merge_intervals([[2, 3], [4, 5], [6, 7], [8, 9], [1, 10]]) == [[1, 10]] assert merge_intervals([[2, 3], [4, 6], [5, 7], [3, 4]]) == [[2, 7]] assert merge_intervals( [[2, 3], [5, 7], [0, 1], [4, 6], [5, 5], [4, 6], [5, 6], [1, 3], [4, 4], [0, 0], [3, 5], [2, 2]]) == [[0, 7]] assert merge_intervals( [[3, 5], [0, 0], [4, 4], [0, 2], [5, 6], [4, 5], [3, 5], [1, 3], [4, 6], [4, 6], [3, 4]]) == [[0, 6]]
def get_circles(image): img = image.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 2, 100) if circles is not None: circles = np.round(circles[0, :]).astype("int") for x, y, r in circles: cv2.circle(img, (x, y), r, (255, 0, 0), 4) cv2.rectangle(img, (x - 3, y - 3), (x + 3, y + 3), (255, 0, 0), -1) return img
# Ciholas, Inc. - www.ciholas.com # Licensed under: creativecommons.org/licenses/by/4.0 class Zone: """A zone in the form of a polygon""" def __init__(self, name, vertices, color): self.name = name self.vertices = vertices self.color = color x_list = [] y_list = [] for vertex in self.vertices: x_list.append(vertex[0]) y_list.append(vertex[1]) # Needs to be stored for future tests self.y_list = y_list # Finding these extrema helps with calculating where a point is in respect to the zone self.x_max = max(x_list) self.x_min = min(x_list) self.y_max = max(y_list) self.y_min = min(y_list) # It is easier to calculate position based off each side, so we will now store every line side_num = 0 sides = [] for vertex in self.vertices: side_num += 1 try: sides.append(Line(vertex, self.vertices[side_num])) except Exception: sides.append(Line(vertex, self.vertices[0])) self.sides = sides def __str__(self): return self.name def is_inside(self, point_ray): """Determines if the given point, which has been transformed into a ray, is inside or outside of the zone. """ x = point_ray.x1 y = point_ray.y1 if (x > self.x_max or x < self.x_min or y > self.y_max or y < self.y_min): return False else: # Since the last method didn't work, it is time for the resource expensive test # The ray will be compared to every line. If there is an intersection, it will be tracked # If there is an odd number of intersections, the point is inside the zone # If there is an even number of intersections, the point is outside the zone # If the ray is tangent, it will be counted as two intersections intersections = 0 for side in self.sides: if point_ray.is_intersected(side): intersections += 1 # If a line went through a vertex, it counted as two intersections. This will fix that. # If a line hit a vertex as a tangent, it had to of been at the the Y max or Y min. # We want these counted as 2 intersections, but other vertex intersections should be just 1 if y in self.y_list and y != self.y_max and y != self.y_min: for vertex in self.vertices: if vertex[1] != self.y_max and vertex[1] != self.y_min and vertex[1] == y and vertex[0] > x: intersections -= 1 if intersections % 2 == 1: return True else: return False class Line: """Holds the data for a line in the form of two points""" def __init__(self, point_1, point_2): self.x1 = point_1[0] self.y1 = point_1[1] self.x2 = point_2[0] self.y2 = point_2[1] # a, b, c are used with determining interception. # It is more efficient to calculate them once in the construction # than it is to calculate them every time they are used. self.intercept_coeff_a = self.y2 - self.y1 self.intercept_coeff_b = self.x1 - self.x2 self.intercept_coeff_c = (self.x2 * self.y1) - (self.x1 * self.y2) def is_intersected(self, line): """Determines if this line intersects the given line.""" d1 = (self.intercept_coeff_a * line.x1) + (self.intercept_coeff_b * line.y1) + self.intercept_coeff_c d2 = (self.intercept_coeff_a * line.x2) + (self.intercept_coeff_b * line.y2) + self.intercept_coeff_c if (d1 > 0 and d2 > 0) or (d1 < 0 and d2 < 0): return False d1 = (line.intercept_coeff_a * self.x1) + (line.intercept_coeff_b * self.y1) + line.intercept_coeff_c d2 = (line.intercept_coeff_a * self.x2) + (line.intercept_coeff_b * self.y2) + line.intercept_coeff_c if (d1 > 0 and d2 > 0) or (d1 < 0 and d2 < 0): return False # If both of the above checks pass, the two lines could still be collinear. if (abs((self.intercept_coeff_a * line.intercept_coeff_b) - (line.intercept_coeff_a * self.intercept_coeff_b)) < .00001): return False return True
x, y, w, h = map(int,input().split()) if x >= w-x: a = w-x else: a = x if y >= h-y: b = h-y else: b = y if a >= b: print(b) else: print(a)
word="I'm a boby, I'm a girl. When it is true, it is ture. that are cats, the red is red." word = word.replace('.','').replace(',','') li = word.split() print(li) # 第一种方法: key = set(li) value = [0 for i in range(len(key))] dic = {k:v for k,v in zip(key,value)} print(dic) for i in dic: for j in li: if i == j: dic[i]+=1 continue print(dic) # 第二种方法: s =set(li) for i in s: count=word.count(i) print(i,'出现次数:',count) # 第三种方法: dict = {} for key in li: dict[key] = dict.get(key,0) + 1 print(dic)
#3-1 Names names = ["Jason", "Bob", "James", "Brian", "Marie"] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) #3-2 Greetings message = " you are a friend" print(names[0] + message) print(names[1] + message) print(names[2] + message) print(names[3] + message) print(names[4] + message) #3-3 Your Own List cars = ["BMW", "BatMobile", "Sports Car"] message = (f"I want to own a {cars[0]}") print(message) message = (f"I want to own a {cars[1]}") print(message) message = (f"I want to own a {cars[2]}") print(message) #3-4 Guest List invite_list = ["Augustus Ceasar", "Winston Churchill", "George Washington"] print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-5 Changing Guest List print(invite_list[1] + " is unable to attend") invite_list[1] = "King Alfred" print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-6 print("A larger table has been found and more guests will be invited!") invite_list.insert(0, "Dwayne Johnson") invite_list.insert(1, "Marilyn Monroe") invite_list.append("Emma Watson") print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") print(invite_list[3] + " You are invited to dinner") print(invite_list[4] + " You are invited to dinner") print(invite_list[5] + " You are invited to dinner") #3-7 Shrinking Guest List print(invite_list) print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list[0] + " you are still invited") print(invite_list[1] + " you are still invited") invite_list.remove("Dwayne Johnson") invite_list.remove("Emma Watson") print(invite_list) #3-8 Seeing the World places = ["China", "Japan", "Germany", "Cannada", "Russia", "France"] print(places) print(sorted(places)) print(places) print(sorted(places, reverse=True)) print(places) places.reverse() print(places) places.reverse() print(places) places.sort() print(places) #3-9 Dinner Guests print(len(invite_list)) #3-10 Every Function languages = ["Mandarin", "Japanese", "English", "German", "Irish", "French"] print(sorted(languages)) languages.reverse() languages.sort() languages.append("Russian") languages.insert(3, "Arabic") languages.remove("French") print("I am learning " + languages.pop(5)) print(languages) #3-11 Intentional error (fixed) print("Cat")
# import pytest def test_with_authenticated_client(client, django_user_model): username = "admin" password = "123456" django_user_model.objects.create_user(username=username, password=password) # Use this: # client.login(username=username, password=password) response = client.get('/') assert response.status_code == 302 response = client.get(response.url) assert response.status_code == 200 response = client.get('/accounts/logout') assert response.status_code == 301
def setup(): global s, x_count, y_count, tiles, covers s = 50 x_count = width//s y_count = height//s size(800, 600) tiles = [] covers = [] for x in range(x_count): tiles.append([]) covers.append([]) for y in range(y_count): tiles[x].append("bomb" if random(0, 1) < .2 else 0) covers[x].append(True) for x in range(len(tiles)): for y in range(len(tiles[x])): tiles[x][y] = surrounding_total(x, y) print(tiles) def draw(): background(200) for x in range(x_count+1): line(x * s, 0, x * s, height) for y in range(y_count+1): line(0, y * s, width, y * s) for x in range(len(tiles)): for y in range(len(tiles[x])): fill(0) textAlign(CENTER, CENTER) if tiles[x][y] == "bomb": push() ellipseMode(CORNER) ellipse(x * s + 10, y * s + 10, s-20, s-20) pop() else: text(tiles[x][y] if tiles[x][y] != 0 else "", x*s + s/2, y*s + s/2) def surrounding_total(x_pos, y_pos): on_left = on_right = on_top = on_bot = False top_l = top_c = top_r = cen_l = cen_r = bot_l = bot_c = bot_r = False if tiles[x_pos][y_pos] == "bomb": return "bomb" if not x_pos-1 == abs(x_pos-1): # If on left edge on_left = True cen_r = tiles[x_pos+1][y_pos ] == "bomb" if not x_pos+1 == constrain(x_pos+1, 0, x_count-1): # If on right edge on_right = True cen_l = tiles[x_pos-1][y_pos ] == "bomb" if not y_pos-1 == abs(y_pos-1): # If on top edge on_top = True bot_c = tiles[x_pos ][y_pos+1] == "bomb" if not y_pos+1 == constrain(y_pos+1, 0, y_count-1): # If on bottom edge on_bot = True top_c = tiles[x_pos ][y_pos-1] == "bomb" elif on_left and on_top: bot_r = tiles[x_pos+1][y_pos+1] == "bomb" elif on_right and on_top: bot_l = tiles[x_pos-1][y_pos+1] == "bomb" elif on_left and on_bot: top_r = tiles[x_pos+1][y_pos-1] == "bomb" elif on_right and on_bot: top_l = tiles[x_pos-1][y_pos-1] == "bomb" elif not on_left or on_right: cen_l = tiles[x_pos-1][y_pos ] == "bomb" cen_r = tiles[x_pos+1][y_pos ] == "bomb" else: top_l = tiles[x_pos-1][y_pos-1] == "bomb"# top_c = tiles[x_pos ][y_pos-1] == "bomb"# top_r = tiles[x_pos+1][y_pos-1] == "bomb"# cen_l = tiles[x_pos-1][y_pos ] == "bomb"# cen_r = tiles[x_pos+1][y_pos ] == "bomb"# bot_l = tiles[x_pos-1][y_pos+1] == "bomb"# bot_c = tiles[x_pos ][y_pos+1] == "bomb"# bot_r = tiles[x_pos+1][y_pos+1] == "bomb"# return top_l + top_c + top_r + cen_l + cen_r + bot_l + bot_c + bot_r
#forma de somar comprar de carrinho virtual carrinho = [] carrinho.append(('Produto 1', 30)) carrinho.append(('Produto 2', '20')) carrinho.append(('Produto 3', 50)) #no python essa baixo nao eh muito boa # total = [] # for produto in carrinho: # total.append(produto[1]) # print(sum(total)) total = sum([float(y) for x, y in carrinho])#sum soma float y #jeito certo de fazer soma #print(carrinho)#[('Produto 1', 30), ('Produto 2', 20), ('Produto 3', 50)] print(total)#[30, 20, 50]
# -*- coding: utf-8 -*- { "name": "Import Settings", "vesion": "10.0.1.0.0", "summary": "Allows to save import settings to don't specify columns to fields mapping each time.", "category": "Extra Tools", "images": ["images/icon.png"], "author": "IT-Projects LLC, Dinar Gabbasov", "website": "https://www.twitter.com/gabbasov_dinar", "license": "Other OSI approved licence", # MIT "price": 90.00, "currency": "EUR", "depends": ["base_import"], "data": [ "security/ir.model.access.csv", "views/base_import_map_templates.xml", "views/base_import_map_view.xml", ], "demo": [], "installable": True, "auto_install": False, }
room_cost = { 'room for one person': {'cost': 18, 'discount': (0, 0, 0)}, 'apartment': {'cost': 25, 'discount': (0.3, 0.35, 0.5)}, 'president apartment': {'cost': 35, 'discount': (0.1, 0.15, 0.2)} } def discount_index(days_: int) -> int: if days_ < 10: return 0 elif 10 <= days_ <= 15: return 1 elif days_ > 15: return 2 days = int(input()) room_type = input() evaluation = input() discount = room_cost[room_type]['discount'][discount_index(days)] cost_of_stay = (days - 1) * room_cost[room_type]['cost'] * (1 - discount) if evaluation == 'positive': cost_of_stay *= 1.25 else: cost_of_stay *= 0.9 print(f'{cost_of_stay:.2f}')
''' Utils.py Spencer Tollefson November 7, 2018 For use with lebronjames_sentiment_analysis project ''' def string_clean_df_column(df, col_name): ''' df: DataFrame which contains the column col_name: Name of column in DF one wants to perform cleaning operations to returns: entire DataFrame, with cleaned column ''' # remove URLs and parantheses surrounding URLs df[col_name] = df[col_name].str.replace(r"(\()*https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)(\))*"," ", regex=True) # Chance strange character to contraction symbol df[col_name] = df[col_name].str.replace(r"’", "'", regex=True) # Remove non-standard characters and numbers df[col_name] = df[col_name].str.replace(r"[^A-Za-z(),!?@\'\`\"\_\n]", " ", regex=True) df[col_name] = df[col_name].str.replace(r"@", "at", regex=True) # Drop other non-alphas df[col_name] = df[col_name].str.replace(r"[(),!?\`\"\_]", " ", regex=True) # Strip whitespace df[col_name] = df[col_name].str.strip() # lowercase df[col_name] = df[col_name].str.lower() # Remove extra spaces df[col_name].replace(r"\s+"," ", regex=True, inplace=True) # Drop any cell with only "full quote" as the body df = df.loc[df.body != 'full quote', :] return df
for left in range(7): for right in range(left,7): print("[" + str(left) + "|" + str(right) + "]", end=" ") print
class ConnectionInterrupted(Exception): """连接中断异常""" def __str__(self): error_type = self.__class__.__name__ error_msg = "An error occurred while connecting to redis cluster" return "Redis Cluster %s: %s" % (error_type, error_msg) class CompressorError(Exception): pass
"""Exceptions used throughout Eelbrain""" class DefinitionError(Exception): "MneExperiment definition error" class DimensionMismatchError(Exception): "Trying to align NDVars with mismatching dimensions" @classmethod def from_dims_list(cls, message, dims_list): unique_dims = [] for dims in dims_list: if any(dims == dims_ for dims_ in unique_dims): continue else: unique_dims.append(dims) desc = '\n'.join(map(str, unique_dims)) return cls(f'{message}\n{desc}') class WrongDimension(Exception): "Dimension that is supported" class IncompleteModel(Exception): "Function requires a fully specified model" class OldVersionError(Exception): "Trying to load a file from a version that is no longer supported" class ZeroVariance(Exception): "Trying to do test on data with zero variance"
number = int(input()) bonus_points = 0 if number <= 100: bonus_points += 5 elif number > 1000: bonus_points += number * 0.10 else: bonus_points += number * 0.20 if number % 2 == 0: bonus_points += 1 if number % 10 == 5: bonus_points += 2 print(bonus_points) print(bonus_points + number)
def if_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": a, "//conditions:default": [], }) def if_not_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": [], "//conditions:default": a, }) def new_local_repository_env_impl(repository_ctx): echo_cmd = "echo " + repository_ctx.attr.path echo_result = repository_ctx.execute(["bash", "-c", echo_cmd]) src_path_str = echo_result.stdout.splitlines()[0] source_path = repository_ctx.path(src_path_str) work_path = repository_ctx.path(".") child_list = source_path.readdir() for child in child_list: child_name = child.basename repository_ctx.symlink(child, work_path.get_child(child_name)) build_file_babel = Label("//:" + repository_ctx.attr.build_file) build_file_path = repository_ctx.path(build_file_babel) repository_ctx.symlink(build_file_path, work_path.get_child("BUILD")) # a new_local_repository support environment variable new_local_repository_env = repository_rule( implementation = new_local_repository_env_impl, local = True, attrs = { "path": attr.string(mandatory = True), "build_file": attr.string(mandatory = True), }, )
DATABASE = '/tmp/tmc2.db' DEBUG = False # By default we only listen on localhost. Set this to '0.0.0.0' to accept # requests from any interface HOST = '127.0.0.1' PORT = 5000 # How many quotes per page PAGE_SIZE = 10 # How should dates be formatted. The format is defined in # http://arrow.readthedocs.io/en/latest/index.html#tokens DATE_FORMATS = { 'en_US': 'MMMM D, YYYY', 'fr_FR': 'D MMMM YYYY', } # The locale to use. Must be one of the keys defined in DATE_FORMATS LOCALE = 'en_US' # To customize the configuration, create a local configuration file and point # the TMC2_CONFIG environment variable to it. For example to use TMC2 in # French, define LOCALE to 'fr_FR'.
# -*- coding: utf-8 -*- ''' File name: code\lychrel_numbers\sol_55.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #55 :: Lychrel numbers # # For more information see: # https://projecteuler.net/problem=55 # Problem Statement ''' If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is, 349 took three iterations to arrive at a palindrome. Although no one has proved it yet, it is thought that some numbers, like 196, never produce a palindrome. A number that never forms a palindrome through the reverse and add process is called a Lychrel number. Due to the theoretical nature of these numbers, and for the purpose of this problem, we shall assume that a number is Lychrel until proven otherwise. In addition you are given that for every number below ten-thousand, it will either (i) become a palindrome in less than fifty iterations, or, (ii) no one, with all the computing power that exists, has managed so far to map it to a palindrome. In fact, 10677 is the first number to be shown to require over fifty iterations before producing a palindrome: 4668731596684224866951378664 (53 iterations, 28-digits). Surprisingly, there are palindromic numbers that are themselves Lychrel numbers; the first example is 4994. How many Lychrel numbers are there below ten-thousand? NOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers. ''' # Solution # Solution Approach ''' '''
n,v = map(int,input().split()) mx = -1 for i in range(n): l,w,h = map(int,input().split()) vo = l*w*h #print(vo) if vo>mx: mx = vo print(mx - v)
# # PySNMP MIB module TIARA-IP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-IP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:09:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter64, MibIdentifier, ModuleIdentity, Counter32, Bits, TimeTicks, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, Gauge32, NotificationType, Integer32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "ModuleIdentity", "Counter32", "Bits", "TimeTicks", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "Gauge32", "NotificationType", "Integer32", "ObjectIdentity") DisplayString, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue", "RowStatus") tiaraMgmt, = mibBuilder.importSymbols("TIARA-NETWORKS-SMI", "tiaraMgmt") tiaraIpMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3174, 2, 23)) if mibBuilder.loadTexts: tiaraIpMib.setLastUpdated('0001270000Z') if mibBuilder.loadTexts: tiaraIpMib.setOrganization('Tiara Networks Inc.') tiaraIpRoutingEnable = MibScalar((1, 3, 6, 1, 4, 1, 3174, 2, 23, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tiaraIpRoutingEnable.setStatus('current') tiaraIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2), ) if mibBuilder.loadTexts: tiaraIpIfTable.setStatus('current') tiaraIpIfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex")) if mibBuilder.loadTexts: tiaraIpIfTableEntry.setStatus('current') tiaraIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfIndex.setStatus('current') tiaraIpIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfName.setStatus('current') tiaraIpIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfAddr.setStatus('current') tiaraIpIfMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfMask.setStatus('current') tiaraIpIfPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfPeerAddr.setStatus('current') tiaraIpIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ethernet", 1), ("wan", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfType.setStatus('current') tiaraStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3), ) if mibBuilder.loadTexts: tiaraStaticRouteTable.setStatus('current') tiaraStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraStaticRouteIndex")) if mibBuilder.loadTexts: tiaraStaticRouteEntry.setStatus('current') tiaraStaticRouteIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: tiaraStaticRouteIndex.setStatus('current') tiaraStaticRouteNetworkAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkAddr.setStatus('current') tiaraStaticRouteNetworkMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkMask.setStatus('current') tiaraStaticRouteGatewayAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteGatewayAddr.setStatus('current') tiaraStaticRouteNoOfHops = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNoOfHops.setStatus('current') tiaraStaticRouteRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteRowStatus.setStatus('current') mibBuilder.exportSymbols("TIARA-IP-MIB", tiaraIpIfName=tiaraIpIfName, tiaraIpIfMask=tiaraIpIfMask, tiaraIpIfType=tiaraIpIfType, tiaraIpIfIndex=tiaraIpIfIndex, tiaraStaticRouteGatewayAddr=tiaraStaticRouteGatewayAddr, tiaraStaticRouteNetworkAddr=tiaraStaticRouteNetworkAddr, tiaraIpIfTable=tiaraIpIfTable, tiaraStaticRouteEntry=tiaraStaticRouteEntry, tiaraStaticRouteNetworkMask=tiaraStaticRouteNetworkMask, tiaraStaticRouteNoOfHops=tiaraStaticRouteNoOfHops, tiaraIpRoutingEnable=tiaraIpRoutingEnable, tiaraIpIfTableEntry=tiaraIpIfTableEntry, PYSNMP_MODULE_ID=tiaraIpMib, tiaraStaticRouteTable=tiaraStaticRouteTable, tiaraIpMib=tiaraIpMib, tiaraIpIfAddr=tiaraIpIfAddr, tiaraStaticRouteIndex=tiaraStaticRouteIndex, tiaraIpIfPeerAddr=tiaraIpIfPeerAddr, tiaraStaticRouteRowStatus=tiaraStaticRouteRowStatus)
# # PySNMP MIB module HP-ICF-CHAIN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CHAIN # Produced by pysmi-0.3.4 at Wed May 1 13:33:33 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") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion") hpicfCommonTrapsPrefix, hpicfCommon, hpicfObjectModules = mibBuilder.importSymbols("HP-ICF-OID", "hpicfCommonTrapsPrefix", "hpicfCommon", "hpicfObjectModules") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") IpAddress, MibIdentifier, Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Unsigned32, NotificationType, ModuleIdentity, iso, ObjectIdentity, Counter32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibIdentifier", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Unsigned32", "NotificationType", "ModuleIdentity", "iso", "ObjectIdentity", "Counter32", "TimeTicks") DisplayString, TimeStamp, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention", "TruthValue") hpicfChainMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2)) hpicfChainMib.setRevisions(('2000-11-03 22:16', '1997-03-06 03:33', '1996-09-10 02:08', '1994-02-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfChainMib.setRevisionsDescriptions(('Updated division name.', 'Added NOTIFICATION-GROUP information.', 'Split this MIB module from the former monolithic hp-icf MIB.', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: hpicfChainMib.setLastUpdated('200011032216Z') if mibBuilder.loadTexts: hpicfChainMib.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfChainMib.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfChainMib.setDescription('This MIB module describes management of the Distributed Management Chain for devices in the HP AdvanceStack product line.') hpicfChain = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1)) hpicfChainMaxMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainMaxMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainMaxMembers.setDescription('The maximum number of devices that can be supported on the Distributed Management Chain from this agent.') hpicfChainCurMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainCurMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainCurMembers.setDescription('The number of devices currently on the Distributed Management Chain connected to this agent.') hpicfChainLastChange = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainLastChange.setStatus('current') if mibBuilder.loadTexts: hpicfChainLastChange.setDescription('The value of sysUpTime on this agent the last time a device was added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainChanges = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainChanges.setStatus('current') if mibBuilder.loadTexts: hpicfChainChanges.setDescription('A count of the number of times devices have been added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5), ) if mibBuilder.loadTexts: hpicfChainTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainTable.setDescription('A table of boxes currently connected to the same Distributed Management Chain as this agent.') hpicfChainEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainEntry.setDescription('An entry in the table describing a single box on the Distributed Management Chain connected to this device.') hpicfChainId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainId.setStatus('current') if mibBuilder.loadTexts: hpicfChainId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainObjectId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainObjectId.setStatus('current') if mibBuilder.loadTexts: hpicfChainObjectId.setDescription('The authoritative identification of the box which provides an easy and unambiguous means for determining the type of box.') hpicfChainTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainTimestamp.setStatus('current') if mibBuilder.loadTexts: hpicfChainTimestamp.setDescription("The value of the agent's sysUpTime at which this box was last initialized. If the box has not been initialized since the last reinitialization of the agent, then this object has a zero value.") hpicfChainHasAgent = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainHasAgent.setStatus('current') if mibBuilder.loadTexts: hpicfChainHasAgent.setDescription("This object will contain the value 'true' if this box contains at least one network management agent capable of responding to SNMP requests, and will contain the value 'false' otherwise.") hpicfChainThisBox = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainThisBox.setStatus('current') if mibBuilder.loadTexts: hpicfChainThisBox.setDescription("This object will contain the value 'true' if this entry in the chain table corresponds to the box which contains the agent which is responding to this SNMP request, and will contain the value 'false' otherwise.") hpicfChainLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfChainLocation.setStatus('current') if mibBuilder.loadTexts: hpicfChainLocation.setDescription('This byte is settable by a management station and is not interpreted by the agent. The intent is that a management station can use it to assign an ordering to boxes on the chain that can later be used when displaying the chain.') hpicfChainViewTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6), ) if mibBuilder.loadTexts: hpicfChainViewTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewTable.setDescription('This table contains one entry for each box on the Distributed Management Chain for which this agent is able to act as a proxy.') hpicfChainViewEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainViewId")) if mibBuilder.loadTexts: hpicfChainViewEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewEntry.setDescription('An entry in the hpicfChainViewTable containing information about how to proxy to a single box.') hpicfChainViewId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewId.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainViewName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewName.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewName.setDescription("The local name of this box. This is used by the proxy agent for the box to determine which box on the Distributed Management Chain is being addressed. If an agent does not use this method to distinguish proxy destinations, it should return a zero length octet string for this object. For SNMPv1, the destination box is specified by appending this name to the proxy agent's community name. For example, if this agent has a community with a community name of 'public', and the value of this object is 'repeater1', the community 'public/repeater1' will specify that the agent should proxy to the public community of the 'repeater1' box. The default value for this object for box-level repeaters is an ASCII hex representation of the low-order three bytes of the device MAC address.") hpicfChainAddition = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainAddition.setStatus('deprecated') if mibBuilder.loadTexts: hpicfChainAddition.setDescription('********* THIS NOTIFICATION IS DEPRECATED ********* An hpicfChainAddition trap indicates that a new node has been added to the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the new node. Replaced by Cold Start') hpicfChainRemoval = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainRemoval.setStatus('current') if mibBuilder.loadTexts: hpicfChainRemoval.setDescription('An hpicfChainRemoval trap indicates that a node has been removed from the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the node that was removed.') hpicfChainConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1)) hpicfChainCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1)) hpicfChainGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2)) hpicfChainingCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainTrapGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance = hpicfChainingCompliance.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainingCompliance.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainNotifyGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance2 = hpicfChainingCompliance2.setStatus('current') if mibBuilder.loadTexts: hpicfChainingCompliance2.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainMaxMembers"), ("HP-ICF-CHAIN", "hpicfChainCurMembers"), ("HP-ICF-CHAIN", "hpicfChainLastChange"), ("HP-ICF-CHAIN", "hpicfChainChanges"), ("HP-ICF-CHAIN", "hpicfChainId"), ("HP-ICF-CHAIN", "hpicfChainObjectId"), ("HP-ICF-CHAIN", "hpicfChainTimestamp"), ("HP-ICF-CHAIN", "hpicfChainHasAgent"), ("HP-ICF-CHAIN", "hpicfChainThisBox"), ("HP-ICF-CHAIN", "hpicfChainLocation"), ("HP-ICF-CHAIN", "hpicfChainViewId"), ("HP-ICF-CHAIN", "hpicfChainViewName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingGroup = hpicfChainingGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainingGroup.setDescription('A collection of objects for managing devices on the HP Distributed Management Bus.') hpicfChainTrapGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainAddition"), ("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainTrapGroup = hpicfChainTrapGroup.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainTrapGroup.setDescription('********* THIS GROUP IS OBSOLETE ********* A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') hpicfChainNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 3)).setObjects(("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainNotifyGroup = hpicfChainNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainNotifyGroup.setDescription('A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') mibBuilder.exportSymbols("HP-ICF-CHAIN", hpicfChainHasAgent=hpicfChainHasAgent, PYSNMP_MODULE_ID=hpicfChainMib, hpicfChainingCompliance2=hpicfChainingCompliance2, hpicfChainViewId=hpicfChainViewId, hpicfChainingGroup=hpicfChainingGroup, hpicfChainMaxMembers=hpicfChainMaxMembers, hpicfChainNotifyGroup=hpicfChainNotifyGroup, hpicfChainTable=hpicfChainTable, hpicfChainEntry=hpicfChainEntry, hpicfChainCompliances=hpicfChainCompliances, hpicfChainCurMembers=hpicfChainCurMembers, hpicfChain=hpicfChain, hpicfChainGroups=hpicfChainGroups, hpicfChainThisBox=hpicfChainThisBox, hpicfChainRemoval=hpicfChainRemoval, hpicfChainViewEntry=hpicfChainViewEntry, hpicfChainConformance=hpicfChainConformance, hpicfChainId=hpicfChainId, hpicfChainAddition=hpicfChainAddition, hpicfChainLastChange=hpicfChainLastChange, hpicfChainTrapGroup=hpicfChainTrapGroup, hpicfChainChanges=hpicfChainChanges, hpicfChainMib=hpicfChainMib, hpicfChainLocation=hpicfChainLocation, hpicfChainViewName=hpicfChainViewName, hpicfChainTimestamp=hpicfChainTimestamp, hpicfChainObjectId=hpicfChainObjectId, hpicfChainingCompliance=hpicfChainingCompliance, hpicfChainViewTable=hpicfChainViewTable)
''' Missing number in an array Given an array of size N-1 such that, it can only contain distinct integers in the range of 1 to N. Find the missing element. Example: Input: N = 5 A[] = {1,2,3,5} Output: 4 Input: N = 10 A[] = {1,2,3,4,5,6,7,8,10} Output: 9 ''' # Approach-1 ''' We know that sum of N natural number is 1+2+3+...+n = n*(n+1)//2 So after finding the sum of n natural number as well as sum of given array. The difference between both will give you the missing number in the array Execution time approx: 0.30sec Complexty: O(n) ''' def missingNumber1(array, n): # Computing the total of n natural numbers total = n*(n+1)//2 array_sum = 0 for i in array: array_sum +=i return (total-array_sum) array = [1,2,3,5] n = 5 print("Missing number is {}".format(missingNumber1(array, n)) ) # Approach 2 ''' We know that XOR of same number cancels each other '''
# Writing Files in Python # In order to write to a file, we first open it in write or append mode, after which, we use the python’s f.write() method to write to the file! # f = open(“this.txt”, “w”) # f.write(“This is nice”) #Can be called multiple times # f.close() f = open('this.txt', 'w') f.write("dev - vasu") f.close print(f)
# # PySNMP MIB module CADANT-HW-MEAS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-HW-MEAS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:45:55 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") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") cadIf3CmtsCmUsStatusChIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-IF3-MIB", "cadIf3CmtsCmUsStatusChIfIndex") cadIfMacDomainIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-LAYER2CMTS-MIB", "cadIfMacDomainIfIndex") cadIfCmtsCmStatusMacAddress, = mibBuilder.importSymbols("CADANT-CMTS-MAC-MIB", "cadIfCmtsCmStatusMacAddress") cadEquipment, = mibBuilder.importSymbols("CADANT-PRODUCTS-MIB", "cadEquipment") PortId, CardId, CadIfDirection = mibBuilder.importSymbols("CADANT-TC", "PortId", "CardId", "CadIfDirection") TenthdB, = mibBuilder.importSymbols("DOCS-IF-MIB", "TenthdB") IfDirection, = mibBuilder.importSymbols("DOCS-QOS3-MIB", "IfDirection") docsSubmgt3FilterGrpEntry, = mibBuilder.importSymbols("DOCS-SUBMGT3-MIB", "docsSubmgt3FilterGrpEntry") InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifIndex") pktcEScTapStreamIndex, pktcEScTapMediationContentId = mibBuilder.importSymbols("PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex", "pktcEScTapMediationContentId") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, ObjectIdentity, Gauge32, NotificationType, Counter64, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, MibIdentifier, TimeTicks, Unsigned32, iso, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "Gauge32", "NotificationType", "Counter64", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "MibIdentifier", "TimeTicks", "Unsigned32", "iso", "Integer32", "IpAddress") MacAddress, TimeStamp, TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TimeStamp", "TextualConvention", "DisplayString", "TruthValue") cadHardwareMeasMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2)) cadHardwareMeasMib.setRevisions(('2015-08-27 00:00', '2015-07-13 00:00', '2015-06-03 00:00', '2014-10-14 00:00', '2014-06-13 00:00', '2014-06-04 00:00', '2013-11-22 00:00', '2012-10-30 00:00', '2012-05-09 00:00', '2011-08-31 00:00', '2011-06-29 00:00', '2011-02-28 00:00', '2011-02-24 00:00', '2011-02-18 00:00', '2010-11-22 00:00', '2010-03-09 00:00', '2008-11-24 00:00', '2008-11-21 00:00', '2008-11-05 00:00', '2008-04-24 00:00', '2006-09-14 00:00', '2006-04-14 00:00', '2005-07-13 00:00', '2004-12-10 00:00', '2004-08-31 00:00', '2004-04-09 00:00', '2004-03-09 00:00', '2004-02-23 00:00', '2004-02-18 00:00', '2004-02-15 00:00', '2004-01-24 00:00', '2003-12-18 00:00', '2003-12-10 00:00', '2003-09-19 00:00', '2003-08-26 00:00', '2003-07-30 00:00', '2002-05-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cadHardwareMeasMib.setRevisionsDescriptions(('Add cadantDPortMeasOfdmChanUtilization', 'Add cadInterfaceHighResUtilizationPercentage and cadInterfaceIntervalOctetsForwarded', 'Add cadantDPortMeasDfdmIfSpeed, cadantDPortMeasOfdmHighestAvgBitsPerSubc, and cadantDPortMeasOfdmNumDataSubc', 'Support 384 downstream channels per DCAM-B', 'Add back in cadFftUpstreamChannelTable', 'Add cadDCardIgmpThrottleDropPkts.', 'Remove cadFftUpstreamChannelTable', 'Add cadLaesCountTable', 'Remove cadHWCmUsMeasTable', 'Remove cadantUPortMeasMapFrms', 'Remove cadSFIDMeasEntry', 'Deprecate cadSFIDMeasEntry and add the following MIB objects to cadantUFIDMeasEntry cadantUFIDMeasCcfStatsSgmtValids, cadantUFIDMeasCcfStatsSgmtLost and cadantUFIDMeasCcfStatsSgmtDrop.', 'Remove cadSFIDToSIDEntry', 'Add cadantUFIDMeasSIDMacIfIndex and cadantUFIDMeasSIDBonded to cadantUFIDMeasEntry', 'Change indices of cadDFIDMeasEntry as ifIndex and SFID. Change indices of cadantUFIDMeasEntry as ifIndex and SID', 'Add cadDCardDhcpV6ThrottleDropPkts and cadDCardNdThrottleDropPkts.', 'Add cadHWCmUsMeasEntry', 'Restructure cadantHWUFIDMeasEntry, rename cadantUFIDMeasUFID to cadantUFIDMeasSID, and Add cadantHWMeasUFIDIndex', 'Restructure cadSFIDMeasEntry to support docsQosServiceFlowCcfStatsEntry', 'Use ifindex as key for sfid to sid lookup.', 'Remove fabric tables and add CPWRED tables to match implementation.', 'Added implementation per utilization interval for cadInterfaceUtilizationAvgContSlots.', 'Added cadDFIDMeasPolicedDelayPkts for Traffic Shaping feature.', 'Extended cadSubMgtPktFilterExtTable to allow for packet capturing.', 'Added cadSubMgtPktFilterExtTable to reset docsSubMgtPktFilterMatches.', 'Added cadFftUpstreamChannelTable for FFT counts.', 'Added cadInterfaceUtilizationTable', 'Added support for per-SID HCS and CRC errors.', 'Added cadantDPortMeasIfOutTotalOctets', 'Added support for per UFID microreflection/signalnoise.', 'Added cadantDPortMeasAppMcastPkts', 'Added 10 BCM3214 counts to the cadantUPortMeasTable', ' add more arp throttle counts. ', ' add more receive error counts to cadantEtherPhyMeasTable', ' add error drop and filter drop counts to UPortMeas table', ' Add support for DHCP packets dropped due to throttling. ', ' change cadantUFIDMeasBytsSGreedyDrop to cadantUFIDMeasPktsSGreedyDrop.',)) if mibBuilder.loadTexts: cadHardwareMeasMib.setLastUpdated('201508270000Z') if mibBuilder.loadTexts: cadHardwareMeasMib.setOrganization('Arris International, Inc.') if mibBuilder.loadTexts: cadHardwareMeasMib.setContactInfo('Arris Technical Support E-Mail: support@arrisi.com') if mibBuilder.loadTexts: cadHardwareMeasMib.setDescription('This Mib Module contains all of the counts that are associated with hardware in the ARRIS C4 CMTS. Many of these MIB variables contain the same counts as found in the standard MIBs. However, the grouping of these variables is done for the convenience of the Cadant engineering team. These tables can be used to build value-added interfaces to the Cadant ARRIS C4 CMTS. ') class DFIDIndex(TextualConvention, Unsigned32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295) class PktClassId(TextualConvention, Integer32): description = 'Index assigned to packet classifier entry by the CMTS which is unique per service flow.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535) class SFIDIndex(TextualConvention, Integer32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 2147483647) class UFIDIndex(TextualConvention, Integer32): description = "The 1's-based UFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 32768) class SIDValue(TextualConvention, Integer32): description = "The 1's-based SID. 0 is used when there is no SID, such as for downstream flows." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 16384) class TMSide(TextualConvention, Integer32): description = 'The Traffic Manager side no SID, such as for downstream flows.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("tma", 1), ("tmb", 2)) cadantHWMeasGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1)) cadantFabActualDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabActualDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabActualDepth.setDescription(' The current depth of the fabric.') cadantFabAvgDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabAvgDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabAvgDepth.setDescription(' The average depth of the fabric.') cadantUPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3), ) if mibBuilder.loadTexts: cadantUPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasTable.setDescription(' This table contains information relevant to D Card upstream channels.') cadantUPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasPortId")) if mibBuilder.loadTexts: cadantUPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasEntry.setDescription(' ') cadantUPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 1), CardId()) if mibBuilder.loadTexts: cadantUPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasCardId.setDescription('') cadantUPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 2), PortId()) if mibBuilder.loadTexts: cadantUPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasPortId.setDescription('') cadantUPortMeasUcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasMcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasBcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasUcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasMcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasBcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasDiscardFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setDescription(' The aggregrate number of frames received on this U channel that were dropped for reasons other than ErrorFrms or FilterFrms.') cadantUPortMeasIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setDescription(' The aggregrate number of octets received on this U channel. This includes MAC packets and the length of the MAC header.') cadantUPortMeasIfInDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setDescription(' The aggregrate number of octets received on this U channel. This does not include MAC packets or the length of the MAC header.') cadantUPortMeasIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setDescription(' Aggregrate number of MAC frames with unknown protocol. This count is neither mutually exclusive with cadantUPortMeasErroredFrms nor cadantUPortMeasErroredFrms.') cadantUPortMeasAppMinusBWReqFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setDescription(' The number of (unicast) frames received by the software application which are not bandwidth request frames. ') cadantUPortMeasErroredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setDescription(' The aggregrate number of packets received on this U channel that were received in error and dropped. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasFilteredFrms.') cadantUPortMeasFilteredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setDescription(' The aggregrate number of packets received on this U channel that were dropped due to a filter rule match and discard. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasErroredFrms.') cadantUPortMeasBcastReqOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setDescription('Broadcast contention request opportunity count') cadantUPortMeasBcastReqColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setDescription('Broadcast contention request opportunities with possible collisions count') cadantUPortMeasBcastReqNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setDescription('Broadcast contention request opportunities with no energy condition detected') cadantUPortMeasBcastReqRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setDescription('Broadcast contention request opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasBcastReqRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setDescription('Broadcast contention request opportunities with received power level greater than power threshold 2') cadantUPortMeasInitMaintOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setDescription('Initial maintenance opportunities') cadantUPortMeasInitMaintColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setDescription('Initial maintenance opportunities with possible collision') cadantUPortMeasInitMaintNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setDescription('Initial maintenance opportunities with no energy detected') cadantUPortMeasInitMaintRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setDescription('Initial maintenance opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasInitMaintRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setDescription('Initial maintenance opportunities with received power level greater than power threshold 2') cadantDPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4), ) if mibBuilder.loadTexts: cadantDPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasTable.setDescription(' This table contains information relevant to D Card downstream channels.') cadantDPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasPortId")) if mibBuilder.loadTexts: cadantDPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasEntry.setDescription(' ') cadantDPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 1), CardId()) if mibBuilder.loadTexts: cadantDPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasCardId.setDescription('') cadantDPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 2), PortId()) if mibBuilder.loadTexts: cadantDPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasPortId.setDescription('') cadantDPortMeasIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This includes MAC mgmt messages and the length of the MAC header.') cadantDPortMeasIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This does not include MAC mgmt bytes.') cadantDPortMeasIfOutUcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutMcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutBcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasGotNoDMACs = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setDescription(' Aggregrate number of ???') cadantDPortMeasGotNoClasses = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setDescription(' Aggregrate number of ???.') cadantDPortMeasSyncPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setDescription(' Aggregrate number of sync. frames sent on this D channel.') cadantDPortMeasAppUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setDescription(' Aggregrate number of unicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasAppMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setDescription(' Aggregrate number of multicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasIfOutTotalOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setDescription(' Aggregrate number of octets sent by application software. ') cadantDPortMeasOfdmIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 17), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setDescription('Downstream OFDM channel interface speed.') cadantDPortMeasOfdmHighestAvgBitsPerSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 18), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setDescription('Highest average bits per subcarrier among all the data profiles of the downstream OFDM channel.') cadantDPortMeasOfdmNumDataSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setDescription('The number of data subcarrier of the downstream OFDM channel.') cadantDPortMeasOfdmChanUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setDescription('The utilization of the downstream OFDM channel.') cadantUFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6), ) if mibBuilder.loadTexts: cadantUFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasTable.setDescription(' ') cadantUFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadantUFIDMeasSID")) if mibBuilder.loadTexts: cadantUFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasEntry.setDescription(' ') cadantUFIDMeasSID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 3), SIDValue()) if mibBuilder.loadTexts: cadantUFIDMeasSID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSID.setDescription(' The 14 bit (SID).') cadantUFIDMeasPktsSGreedyDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setDescription(' The aggregrate number of Super Greedy pkts dropped for this UFID for this MAC layer.') cadantUFIDMeasBytsOtherDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setDescription(' The aggregrate number of bytes dropped for this UFID for this MAC layer for any other reason than Super Greedy.') cadantUFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes that arrived for this UFID for this MAC layer.') cadantUFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setDescription(' The aggregrate number of packets that arrived for this UFID for this MAC layer.') cadantUFIDMeasSIDCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDUnerroreds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setDescription(' The aggregrate number of bytes that had no errors for this UFID for this MAC layer.') cadantUFIDMeasSIDUnCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were not corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDNoUniqueWordDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID in which no unique code word was detected for this UFID for this MAC layer.') cadantUFIDMeasSIDCollidedBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setDescription(' The aggregrate number of bytes allocated for this UFID that had burst errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDNoEnergyDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID that had no energy detected in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDLengthErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had no length errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDMACErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had MAC errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 17), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadantUFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 18), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadantUFIDMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 19), SFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setDescription(' The SFID this UFID(SID) is for.') cadantUFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadantUFIDMeasFragPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setDescription('refer to docsQosUpstreamFragPkts') cadantUFIDMeasIncompletePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setDescription('refer to docsQosUpstreamIncompletePkts') cadantUFIDMeasConcatBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setDescription('refer to docsQosUpstreamConcatBursts') cadantUFIDMeasSIDSignalNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 24), TenthdB()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setDescription('refer to docsIfCmtsCmStatusSignalNoise') cadantUFIDMeasSIDMicroreflections = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setDescription('refer to docsIfCmtsCmStatusMicroreflections') cadantUFIDMeasSIDHCSErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setDescription('The number of MAC HCS errors seen for this SID.') cadantUFIDMeasSIDCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setDescription('The number of MAC CRC errors seen for this SID.') cadantUFIDMeasUFIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 28), UFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setDescription(' The 15 bit (UFID).') cadantUFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 29), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadantUFIDMeasSIDMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 30), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setDescription(' The cable Mac domain ifIndex the SID is associated with.') cadantUFIDMeasSIDBonded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 31), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setDescription(' This object indicates whether a SID is associated with a CCF service flow.') cadantUFIDMeasCcfStatsSgmtValids = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 32), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setDescription('This attribute contains the number of segments counted on this service flow regardless of whether the fragment was correctly reassembled into valid packets. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtLost = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 33), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were lost. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 34), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were dropped. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantEtherPhyMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10), ) if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setDescription(' ') cadantEtherPhyMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasPortId")) if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setDescription(' ') cadantEtherPhyMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 1), CardId()) if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setDescription('') cadantEtherPhyMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 2), PortId()) if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setDescription('') cadantEtherPhyMeasRxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setDescription(' .') cadantEtherPhyMeasRxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setDescription(' .') cadantEtherPhyMeasRxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setDescription(' .') cadantEtherPhyMeasRxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setDescription(' .') cadantEtherPhyMeasRxOverflow = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setDescription(' .') cadantEtherPhyMeasRxNormAlign = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setDescription(' .') cadantEtherPhyMeasRxNormCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setDescription(' .') cadantEtherPhyMeasRxLongOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setDescription(' .') cadantEtherPhyMeasRxLongCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setDescription(' .') cadantEtherPhyMeasRxFalsCRS = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setDescription(' .') cadantEtherPhyMeasRxSymbolErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setDescription(' .') cadantEtherPhyMeasRxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setDescription(' .') cadantEtherPhyMeasTxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setDescription(' .') cadantEtherPhyMeasTxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setDescription(' .') cadantEtherPhyMeasTxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setDescription(' .') cadantEtherPhyMeasTxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setDescription(' .') cadantEtherPhyMeasTxScol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setDescription(' .') cadantEtherPhyMeasTxMcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setDescription(' .') cadantEtherPhyMeasTxDeferred = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setDescription(' .') cadantEtherPhyMeasTxLcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setDescription(' .') cadantEtherPhyMeasTxCcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setDescription(' .') cadantEtherPhyMeasTxErr = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setDescription(' .') cadantEtherPhyMeasTxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setDescription(' .') cadantEtherPhyMeasRxShortOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setDescription(' .') cadantEtherPhyMeasRxShortCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setDescription(' .') cadantEtherPhyMeasRxRunt = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setDescription(' .') cadantEtherPhyMeasRxOctBad = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setDescription(' .') cadDFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14), ) if mibBuilder.loadTexts: cadDFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasTable.setDescription('This table contains DFID-specific counts.') cadDFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadDFIDMeasIndex")) if mibBuilder.loadTexts: cadDFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasEntry.setDescription(' ') cadDFIDMeasIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 3), SFIDIndex()) if mibBuilder.loadTexts: cadDFIDMeasIndex.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasIndex.setDescription(' The SFID these DFID counts are for.') cadDFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes arriving to go out, but not necessarily transmitted.') cadDFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setDescription(' The aggregrate number of packets arriving to go out, but not necessarily transmitted.') cadDFIDMeasBytsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setDescription(' The aggregrate number of bytes dropped.') cadDFIDMeasPktsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setDescription(' The aggregrate number of packets dropped.') cadDFIDMeasBytsUnkDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setDescription(' The aggregrate number of bytes dropped due to unknown DMAC.') cadDFIDMeasDFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 9), DFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasDFID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasDFID.setDescription(' The DFID.') cadDFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadDFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 11), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadDFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadDFIDMeasPolicedDelayPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setDescription('refer to docsQosServiceFlowPolicedDelayPkts') cadDFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadQosPktClassMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16), ) if mibBuilder.loadTexts: cadQosPktClassMeasTable.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasTable.setDescription(' This table contains just one data member: cadQosPktClassMeasPkts, which is equivalent to docsQosPktClassPkts in qos-draft-04.') cadQosPktClassMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasIfIndex"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasSFID"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasPktClassId")) if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setDescription(' ') cadQosPktClassMeasIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setDescription(' The ifIndex of ifType 127 for this classifier.') cadQosPktClassMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 2), SFIDIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setDescription(' The Service Flow ID this classifier is for.') cadQosPktClassMeasPktClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 3), PktClassId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setDescription(' The ID of this classifier, which only need be unique for a given Service Flow ID.') cadQosPktClassMeasPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setDescription(' The number of packets that have been classified using this classifier on this flow.') cadIfMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18), ) if mibBuilder.loadTexts: cadIfMeasTable.setStatus('current') if mibBuilder.loadTexts: cadIfMeasTable.setDescription(' This table is designed to concurrently support the counters defined in the ifTable and the ifXTable. Every row that appears in this table should have a corresponding row in both the ifTable and the ifXTable. However, not every row in the ifTable and ifXTable will appear in this table.') cadIfMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadIfMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadIfMeasEntry.setDescription('') cadIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadIfInOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfInDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInErrors.setStatus('current') if mibBuilder.loadTexts: cadIfInErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadIfInUnknownProtos.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadIfOutOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfOutDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutErrors.setStatus('current') if mibBuilder.loadTexts: cadIfOutErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadDCardMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20), ) if mibBuilder.loadTexts: cadDCardMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasTable.setDescription(' This table contains information relevant to D Card counts.') cadDCardMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadDCardMeasCardId")) if mibBuilder.loadTexts: cadDCardMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasEntry.setDescription(' ') cadDCardMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 1), CardId()) if mibBuilder.loadTexts: cadDCardMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasCardId.setDescription('') cadDCardIpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInReceives.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInReceives.setDescription('The contribution to ipInRecevies for this particular D Card.') cadDCardIpInHdrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setDescription('The contribution to ipInHdrErrors for this particular D Card.') cadDCardIpInAddrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setDescription('The contribution to ipInAddrErrors for this particular D Card.') cadDCardDhcpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setDescription('The number of dropped DHCP requests for this D Card.') cadDCardArpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setDescription('The number of dropped ARP requests for this D Card.') cadDCardDhcpV6ThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setDescription('The number of dropped IPV6 DHCP requests for this D Card.') cadDCardNdThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setDescription('The number of dropped IPV6 ND requests for this D Card.') cadDCardIgmpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setDescription('The number of dropped IGMP messages for this UCAM.') cadInterfaceUtilizationTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23), ) if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setDescription('Reports utilization statistics for attached interfaces.') cadInterfaceUtilizationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadInterfaceUtilizationDirection")) if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setDescription('Utilization statistics for a single interface. An entry exists in this table for each ifEntry with an ifType equal to docsCableDownstreamInterface (128), docsCableUpstreamInterface (129), docsCableUpstreamChannel (205), ethernet(6), or gigabitEthernet(117).') cadInterfaceUtilizationDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 1), CadIfDirection()) if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setDescription("The direction of flow this utilization is for. Cable upstream interfaces will only have a value of 'in' for this object. Likewise, cable downstream interfaces will only hav a value of 'out' for this object. Full-duplex interfaces, such as fastEthernet and gigabitEthernet interfaces, will have both 'in' and 'out' rows.") cadInterfaceUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceUtilizationAvgContSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setDescription('Applicable for ifType of docsCableUpstreamChannel (205) only. The average percentage of contention mini-slots for upstream channel. This ratio is calculated the most recent utilization interval. Formula: Upstream contention mini-slots utilization = (100 * ((contention mini-slots ) / (total mini-slots))') cadInterfaceHighResUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Hundredth of a percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate (to 0.01% resolution) as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceIntervalOctetsForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setStatus('current') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setDescription('The number of octets forwarded since the most recent docsIfCmtsChannelUtilizationInterval. Note that this count will only apply to the following interface types: Ethernet, Link-Aggregate. For all other interface types this value will display 0') cadSubMgtPktFilterExtTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25), ) if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setDescription('This table augments the docsSubMgtPktFilterTable. In its current form, it is used to clear docsSubMgtPktFilterMatches and keep track of the change.') cadSubMgtPktFilterExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1), ) docsSubmgt3FilterGrpEntry.registerAugmentions(("CADANT-HW-MEAS-MIB", "cadSubMgtPktFilterExtEntry")) cadSubMgtPktFilterExtEntry.setIndexNames(*docsSubmgt3FilterGrpEntry.getIndexNames()) if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setDescription('For every docsSubmgt3FilterGrpEntry, there is a matching cadSubMgtPktFilterExtEntry.') cadSubMgtPktFilterMatchesReset = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setDescription('This object always return false(2) when read. If the value false(2) is assigned to this object, no action is taken. However, if this object it set to the value true(1), the corresponding docsSubMgtPktFilterMatches counter object is set to 0 and cadSubMgtPktFilterLastChanged is set to the current time.') cadSubMgtPktFilterLastChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 2), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setDescription('The time at which docsSubMgtPktFilterMatches might have experienced a discontinuity, such as when cadSubMgtPktFilterMatchesReset is set to true(1) or when any of the parameters in the docsSubMgtPktFilterTable affecting filtering last changed.') cadSubMgtPktFilterCaptureEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setDescription('Indicates whether packets matching this filter are captured for possible debug logging. A value of true indicates that packets matching this filter will be captured. A value of false indicates that packets matching this filter will not be captured for later debuggging.') cadLaesCountTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26), ) if mibBuilder.loadTexts: cadLaesCountTable.setStatus('current') if mibBuilder.loadTexts: cadLaesCountTable.setDescription('This table references pktcEScTapStreamTable') cadLaesCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1), ).setIndexNames((0, "PKTC-ES-TAP-MIB", "pktcEScTapMediationContentId"), (0, "PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex")) if mibBuilder.loadTexts: cadLaesCountEntry.setStatus('current') if mibBuilder.loadTexts: cadLaesCountEntry.setDescription('For every cadLaesCountEntry, there is a matching pktcEScTapStreamEntry.') cadLaesCountMacDomainIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setStatus('current') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setDescription('This object indicates the cable Mac domain interface index that the LAES stream is associated with.') cadLaesCountStreamDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 2), IfDirection()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountStreamDirection.setStatus('current') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setDescription('This object indicates either downstream or upstream direction that the LAES stream is associated with.') cadLaesCountInterceptedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setDescription('Indicates number of intercepted packets are sent of the LAES stream.') cadLaesCountInterceptDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setDescription('Indicates number of intercepted packets are dropped of the LAES stream.') cadFftUpstreamChannelTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24), ) if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setDescription('Reports current FFT operation status.') cadFftUpstreamChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setDescription('FFT status for a single upstream channel with ifType docsCableUpstreamInterface(129).') cadFftInProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftInProgress.setStatus('current') if mibBuilder.loadTexts: cadFftInProgress.setDescription('The current state on the FFT capture. ') cadFftCurrentTriggers = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftCurrentTriggers.setStatus('current') if mibBuilder.loadTexts: cadFftCurrentTriggers.setDescription('The number of times the FFT capture has triggered and transferred data from the Broadcom device.') mibBuilder.exportSymbols("CADANT-HW-MEAS-MIB", cadDFIDMeasBytsUnkDropped=cadDFIDMeasBytsUnkDropped, cadantDPortMeasIfOutUcastDataPkts=cadantDPortMeasIfOutUcastDataPkts, cadInterfaceUtilizationDirection=cadInterfaceUtilizationDirection, cadDCardIpInReceives=cadDCardIpInReceives, cadLaesCountStreamDirection=cadLaesCountStreamDirection, cadInterfaceUtilizationPercentage=cadInterfaceUtilizationPercentage, cadantUPortMeasInitMaintNoEnergies=cadantUPortMeasInitMaintNoEnergies, cadantUPortMeasErroredFrms=cadantUPortMeasErroredFrms, cadantEtherPhyMeasRxNormCRC=cadantEtherPhyMeasRxNormCRC, cadantEtherPhyMeasRxLongOK=cadantEtherPhyMeasRxLongOK, cadDCardIpInAddrErrors=cadDCardIpInAddrErrors, cadSubMgtPktFilterCaptureEnabled=cadSubMgtPktFilterCaptureEnabled, cadSubMgtPktFilterExtTable=cadSubMgtPktFilterExtTable, cadantUPortMeasUcastDataFrms=cadantUPortMeasUcastDataFrms, cadantUPortMeasBcastReqColls=cadantUPortMeasBcastReqColls, cadantUFIDMeasSIDCollidedBursts=cadantUFIDMeasSIDCollidedBursts, cadIfInUcastPkts=cadIfInUcastPkts, cadantEtherPhyMeasCardId=cadantEtherPhyMeasCardId, cadIfOutUcastPkts=cadIfOutUcastPkts, cadantDPortMeasIfOutMcastPkts=cadantDPortMeasIfOutMcastPkts, SFIDIndex=SFIDIndex, cadDFIDMeasBytsDropped=cadDFIDMeasBytsDropped, cadIfOutErrors=cadIfOutErrors, cadantUFIDMeasSIDNoEnergyDetecteds=cadantUFIDMeasSIDNoEnergyDetecteds, cadantEtherPhyMeasRxMultiOK=cadantEtherPhyMeasRxMultiOK, cadDCardDhcpThrottleDropPkts=cadDCardDhcpThrottleDropPkts, cadantUFIDMeasPktsSGreedyDrop=cadantUFIDMeasPktsSGreedyDrop, cadantEtherPhyMeasRxShortOK=cadantEtherPhyMeasRxShortOK, cadIfInUnknownProtos=cadIfInUnknownProtos, cadantUPortMeasMcastFrms=cadantUPortMeasMcastFrms, cadantUPortMeasBcastDataFrms=cadantUPortMeasBcastDataFrms, cadLaesCountEntry=cadLaesCountEntry, PYSNMP_MODULE_ID=cadHardwareMeasMib, cadantDPortMeasAppMcastPkts=cadantDPortMeasAppMcastPkts, cadantUFIDMeasUFIDIndex=cadantUFIDMeasUFIDIndex, cadantUFIDMeasSIDMacIfIndex=cadantUFIDMeasSIDMacIfIndex, cadQosPktClassMeasSFID=cadQosPktClassMeasSFID, cadantDPortMeasIfOutBcastPkts=cadantDPortMeasIfOutBcastPkts, cadInterfaceUtilizationTable=cadInterfaceUtilizationTable, cadDCardMeasTable=cadDCardMeasTable, cadantUPortMeasEntry=cadantUPortMeasEntry, cadantDPortMeasIfOutOctets=cadantDPortMeasIfOutOctets, cadDFIDMeasPktsArrived=cadDFIDMeasPktsArrived, cadantUPortMeasIfInUnknownProtos=cadantUPortMeasIfInUnknownProtos, cadantUPortMeasBcastReqOpps=cadantUPortMeasBcastReqOpps, cadDFIDMeasGateID=cadDFIDMeasGateID, cadantEtherPhyMeasRxUniOK=cadantEtherPhyMeasRxUniOK, cadantUFIDMeasSCN=cadantUFIDMeasSCN, cadantEtherPhyMeasRxOverflow=cadantEtherPhyMeasRxOverflow, cadantDPortMeasIfOutUcastPkts=cadantDPortMeasIfOutUcastPkts, cadantDPortMeasGotNoDMACs=cadantDPortMeasGotNoDMACs, cadDFIDMeasMacAddress=cadDFIDMeasMacAddress, cadantUFIDMeasBytsOtherDrop=cadantUFIDMeasBytsOtherDrop, cadantUFIDMeasSID=cadantUFIDMeasSID, cadIfOutOctets=cadIfOutOctets, cadantEtherPhyMeasRxRunt=cadantEtherPhyMeasRxRunt, cadantUFIDMeasCcfStatsSgmtValids=cadantUFIDMeasCcfStatsSgmtValids, cadantUPortMeasInitMaintRxPwr2s=cadantUPortMeasInitMaintRxPwr2s, TMSide=TMSide, cadDFIDMeasPHSUnknowns=cadDFIDMeasPHSUnknowns, cadantEtherPhyMeasTxUniOK=cadantEtherPhyMeasTxUniOK, cadantEtherPhyMeasRxOctBad=cadantEtherPhyMeasRxOctBad, cadDFIDMeasDFID=cadDFIDMeasDFID, cadantHWMeasGeneral=cadantHWMeasGeneral, cadQosPktClassMeasPkts=cadQosPktClassMeasPkts, cadDCardIpInHdrErrors=cadDCardIpInHdrErrors, cadFftCurrentTriggers=cadFftCurrentTriggers, cadantEtherPhyMeasRxBroadOK=cadantEtherPhyMeasRxBroadOK, cadDCardIgmpThrottleDropPkts=cadDCardIgmpThrottleDropPkts, cadSubMgtPktFilterMatchesReset=cadSubMgtPktFilterMatchesReset, cadDCardMeasCardId=cadDCardMeasCardId, cadantUFIDMeasEntry=cadantUFIDMeasEntry, cadIfMeasEntry=cadIfMeasEntry, cadDFIDMeasBytsArrived=cadDFIDMeasBytsArrived, cadantUFIDMeasSIDUnerroreds=cadantUFIDMeasSIDUnerroreds, cadIfInDiscards=cadIfInDiscards, cadIfInMulticastPkts=cadIfInMulticastPkts, cadIfOutDiscards=cadIfOutDiscards, cadantUFIDMeasPHSUnknowns=cadantUFIDMeasPHSUnknowns, cadantEtherPhyMeasTxScol=cadantEtherPhyMeasTxScol, cadDCardDhcpV6ThrottleDropPkts=cadDCardDhcpV6ThrottleDropPkts, cadantDPortMeasOfdmIfSpeed=cadantDPortMeasOfdmIfSpeed, DFIDIndex=DFIDIndex, cadInterfaceUtilizationAvgContSlots=cadInterfaceUtilizationAvgContSlots, cadantEtherPhyMeasTxCcol=cadantEtherPhyMeasTxCcol, PktClassId=PktClassId, cadantUPortMeasDiscardFrms=cadantUPortMeasDiscardFrms, cadDCardMeasEntry=cadDCardMeasEntry, cadantEtherPhyMeasTxLcol=cadantEtherPhyMeasTxLcol, cadantUPortMeasBcastReqNoEnergies=cadantUPortMeasBcastReqNoEnergies, cadantUFIDMeasMacAddress=cadantUFIDMeasMacAddress, cadDCardArpThrottleDropPkts=cadDCardArpThrottleDropPkts, cadIfOutMulticastPkts=cadIfOutMulticastPkts, cadInterfaceIntervalOctetsForwarded=cadInterfaceIntervalOctetsForwarded, cadQosPktClassMeasTable=cadQosPktClassMeasTable, cadQosPktClassMeasEntry=cadQosPktClassMeasEntry, cadantUFIDMeasSIDLengthErrors=cadantUFIDMeasSIDLengthErrors, cadantFabActualDepth=cadantFabActualDepth, cadantUFIDMeasCcfStatsSgmtLost=cadantUFIDMeasCcfStatsSgmtLost, cadDFIDMeasPolicedDelayPkts=cadDFIDMeasPolicedDelayPkts, cadantDPortMeasOfdmChanUtilization=cadantDPortMeasOfdmChanUtilization, cadantUFIDMeasSIDUnCorrecteds=cadantUFIDMeasSIDUnCorrecteds, cadDCardNdThrottleDropPkts=cadDCardNdThrottleDropPkts, cadInterfaceUtilizationEntry=cadInterfaceUtilizationEntry, cadantUPortMeasUcastFrms=cadantUPortMeasUcastFrms, cadantDPortMeasPortId=cadantDPortMeasPortId, cadantUFIDMeasFragPkts=cadantUFIDMeasFragPkts, cadantFabAvgDepth=cadantFabAvgDepth, cadLaesCountInterceptedPackets=cadLaesCountInterceptedPackets, cadantDPortMeasSyncPkts=cadantDPortMeasSyncPkts, cadIfInOctets=cadIfInOctets, cadIfOutBroadcastPkts=cadIfOutBroadcastPkts, cadantUPortMeasTable=cadantUPortMeasTable, cadantEtherPhyMeasRxFalsCRS=cadantEtherPhyMeasRxFalsCRS, cadantEtherPhyMeasRxOctOK=cadantEtherPhyMeasRxOctOK, cadInterfaceHighResUtilizationPercentage=cadInterfaceHighResUtilizationPercentage, cadIfInBroadcastPkts=cadIfInBroadcastPkts, cadantEtherPhyMeasTable=cadantEtherPhyMeasTable, cadDFIDMeasEntry=cadDFIDMeasEntry, cadantEtherPhyMeasTxMcol=cadantEtherPhyMeasTxMcol, cadantUFIDMeasConcatBursts=cadantUFIDMeasConcatBursts, cadantEtherPhyMeasRxShortCRC=cadantEtherPhyMeasRxShortCRC, cadHardwareMeasMib=cadHardwareMeasMib, cadantEtherPhyMeasTxBroadOK=cadantEtherPhyMeasTxBroadOK, cadantDPortMeasIfOutBcastDataPkts=cadantDPortMeasIfOutBcastDataPkts, cadantEtherPhyMeasTxDeferred=cadantEtherPhyMeasTxDeferred, cadantDPortMeasGotNoClasses=cadantDPortMeasGotNoClasses, cadSubMgtPktFilterLastChanged=cadSubMgtPktFilterLastChanged, cadantUFIDMeasBytsArrived=cadantUFIDMeasBytsArrived, cadantEtherPhyMeasTxPause=cadantEtherPhyMeasTxPause, cadantUPortMeasCardId=cadantUPortMeasCardId, cadantUFIDMeasSIDCRCErrors=cadantUFIDMeasSIDCRCErrors, cadantUPortMeasIfInDataOctets=cadantUPortMeasIfInDataOctets, cadFftUpstreamChannelTable=cadFftUpstreamChannelTable, cadantUPortMeasInitMaintRxPwr1s=cadantUPortMeasInitMaintRxPwr1s, cadDFIDMeasSCN=cadDFIDMeasSCN, cadantUPortMeasIfInOctets=cadantUPortMeasIfInOctets, cadantUFIDMeasIncompletePkts=cadantUFIDMeasIncompletePkts, cadLaesCountInterceptDrops=cadLaesCountInterceptDrops, cadantDPortMeasIfOutTotalOctets=cadantDPortMeasIfOutTotalOctets, cadQosPktClassMeasPktClassId=cadQosPktClassMeasPktClassId, cadantUFIDMeasSIDSignalNoise=cadantUFIDMeasSIDSignalNoise, cadFftInProgress=cadFftInProgress, cadantUPortMeasBcastReqRxPwr2s=cadantUPortMeasBcastReqRxPwr2s, cadantDPortMeasEntry=cadantDPortMeasEntry, cadantUFIDMeasCcfStatsSgmtDrop=cadantUFIDMeasCcfStatsSgmtDrop, cadantUFIDMeasSIDBonded=cadantUFIDMeasSIDBonded, cadantUPortMeasInitMaintOpps=cadantUPortMeasInitMaintOpps, cadantUPortMeasPortId=cadantUPortMeasPortId, cadantUFIDMeasPktsArrived=cadantUFIDMeasPktsArrived, cadantEtherPhyMeasRxNormAlign=cadantEtherPhyMeasRxNormAlign, cadantUPortMeasAppMinusBWReqFrms=cadantUPortMeasAppMinusBWReqFrms, cadantUFIDMeasTable=cadantUFIDMeasTable, cadIfMeasTable=cadIfMeasTable, cadantEtherPhyMeasTxMultiOK=cadantEtherPhyMeasTxMultiOK, cadIfInErrors=cadIfInErrors, cadantUPortMeasInitMaintColls=cadantUPortMeasInitMaintColls, cadQosPktClassMeasIfIndex=cadQosPktClassMeasIfIndex, cadantEtherPhyMeasPortId=cadantEtherPhyMeasPortId, cadantUFIDMeasSIDMACErrors=cadantUFIDMeasSIDMACErrors, cadantEtherPhyMeasTxOctOK=cadantEtherPhyMeasTxOctOK, cadantDPortMeasCardId=cadantDPortMeasCardId, cadantDPortMeasOfdmNumDataSubc=cadantDPortMeasOfdmNumDataSubc, cadantEtherPhyMeasEntry=cadantEtherPhyMeasEntry, cadantEtherPhyMeasRxSymbolErrors=cadantEtherPhyMeasRxSymbolErrors, SIDValue=SIDValue, cadantDPortMeasOfdmHighestAvgBitsPerSubc=cadantDPortMeasOfdmHighestAvgBitsPerSubc, cadantEtherPhyMeasRxLongCRC=cadantEtherPhyMeasRxLongCRC, cadLaesCountTable=cadLaesCountTable, cadantUPortMeasFilteredFrms=cadantUPortMeasFilteredFrms, cadDFIDMeasPktsDropped=cadDFIDMeasPktsDropped, cadantUPortMeasBcastReqRxPwr1s=cadantUPortMeasBcastReqRxPwr1s, cadantDPortMeasIfOutDataOctets=cadantDPortMeasIfOutDataOctets, cadantEtherPhyMeasRxPause=cadantEtherPhyMeasRxPause, cadantDPortMeasIfOutMcastDataPkts=cadantDPortMeasIfOutMcastDataPkts, cadantUPortMeasBcastFrms=cadantUPortMeasBcastFrms, cadantUFIDMeasSIDMicroreflections=cadantUFIDMeasSIDMicroreflections, cadantUPortMeasMcastDataFrms=cadantUPortMeasMcastDataFrms, cadDFIDMeasTable=cadDFIDMeasTable, cadantDPortMeasAppUcastPkts=cadantDPortMeasAppUcastPkts, UFIDIndex=UFIDIndex, cadantUFIDMeasSFID=cadantUFIDMeasSFID, cadFftUpstreamChannelEntry=cadFftUpstreamChannelEntry, cadantUFIDMeasSIDNoUniqueWordDetecteds=cadantUFIDMeasSIDNoUniqueWordDetecteds, cadSubMgtPktFilterExtEntry=cadSubMgtPktFilterExtEntry, cadantUFIDMeasSIDHCSErrors=cadantUFIDMeasSIDHCSErrors, cadantUFIDMeasGateID=cadantUFIDMeasGateID, cadDFIDMeasIndex=cadDFIDMeasIndex, cadLaesCountMacDomainIfIndex=cadLaesCountMacDomainIfIndex, cadantDPortMeasTable=cadantDPortMeasTable, cadantUFIDMeasSIDCorrecteds=cadantUFIDMeasSIDCorrecteds, cadantEtherPhyMeasTxErr=cadantEtherPhyMeasTxErr)
def isPowerOfTwo(x): return (x != 0) and ((x & (x - 1))) print(isPowerOfTwo(2)) a = 8 print(bin(a), a) print(bin(a - 1), a - 1) print(a & (a - 1)) print(2 & 1, 3 & 1) # for i in range(6): # print(i, i& i-1) # bool isPowerOfTwo(int x) # { # // x will check if x == 0 and !(x & (x - 1)) will check if x is a power of 2 or not # return (x && !(x & (x - 1))); # } # int count_one (int n) # { # while( n ) # { # n = n&(n-1); # count++; # } # return count; # } # void possibleSubsets(char A[], int N) # { # for(int i = 0;i < (1 << N); ++i) # { # for(int j = 0;j < N;++j) # if(i & (1 << j)) # cout << A[j] << ‘ ‘; # cout << endl; # } # } # long largest_power(long N) # { # //changing all right side bits to 1. # N = N| (N>>1); # N = N| (N>>2); # N = N| (N>>4); # N = N| (N>>8); # //as now the number is 2 * x-1, where x is required answer, so adding 1 and dividing it by # 2. # return (N+1)>>1; # } def possible_subsets(arr): for i in range(1 << len(arr)): for j in range(len(arr)): if i & (1 << j): print(arr[j], end=" ") print("\n") print("possible subsets") possible_subsets([1, 2, 3])
class A: def __init__(self, var=0): self.var = var def __str__(self): return "This is class A" a = A() print(a) """ All classes are inherited from object class. > class MyClass: > pass > > print(MyClass.__class__.__bases__) (<class 'object'>,) """ class B: def __new__(cls, *args, **kwargs): """ This will be executing first. It is used to create the object. """ print("__new__ running", cls, args, kwargs) return super(B, cls).__new__(cls) def __init__(self, *args, **kwargs): """ __init__() uses the same object that __new__() returns and initialize it. """ print("__init__ running", self, args, kwargs) return super(B, self).__init__(*args, **kwargs) class MyMetaClass(type): """ Ignore this class for now """ @classmethod def __prepare__(mcs, name, bases, **kwargs): print(f'Meta.__prepare__(mcs={mcs}, name={name}, bases={bases}, {kwargs})') return {} class C(metaclass=MyMetaClass): """ Ignore 'metaclass=' part for now """ var1 = 'variable 1' var2 = 'variable 2' """ When an object of class is created, the following happens due to __prepare__(). obj['var1'] = 'variable 1' obj['var2'] = 'variable 2' """ class SingletonPattern: """ Use case of modifying the __new__() method """ def __new__(cls, *args, **kwargs): if cls._instance is None: # Checking if an instance of this class exists cls._instance = super().__new__(cls, *args, **kwargs) # Creating a new instace return cls._instance # Returing the instance
YT_API_SERVICE_NAME = 'youtube' DEVELOPER_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" MAX_RESULTS = 50 YT_API_VERSION = 'v3' LINK = 'https://www.youtube.com/watch?v='
""" info.py - module to store Info class """ class Info: """ Info - class to store retreived Info from DB """ def __init__(self, ids, texts, name = 'Info'): """ Infor class constructor Inputs: - ids : list of integers Unique ids for info pieces - texts : list of texts Infor texts """ self.ids = ids self.texts = texts self.name = name
out_data = b"\x1c\x91\x73\x94\xba\xfb\x3c\x30" + \ b"\x3c\x30\xac\x26\x62\x09\x74\x65" + \ b"\x73\x74\x31\x2e\x74\x78\x74\x5e" + \ b"\xc5\xf7\x32\x4c\x69\x76\x65\x20" + \ b"\x66\x72\x65\x65\x20\x6f\x72\x20" + \ b"\x64\x69\x65\x20\x68\x61\x72\x64" + \ b"\x0d\x0a\xd3\x14\x7c\x2e\x86\x89" + \ b"\x7a\x42\x58\xed\x06\x53\x9f\x15" + \ b"\xcc\xca\x7e\x7b\x37\x28\x5f\x3c"
# Crie um programa que leia quanto dinheiro uma pessoa # tem na carteira e mostre quantos Dólares ela # pode comprar. # Considere US$ 1.00 = R$ 3.27 d = float(input('Digite quanto tem na carteira: ')) print('Você pode comprar US${:.2f} doláres.'.format(d/3.27))
print('-=-' * 20) print(" LOJA DE COMPRAS BRUCE") print('-=-' * 20) compra = float(input('Preço das compras: R$')) print(''' FORMAS DE PAGAMENTO [ 1 ] à vista dinheiro/cheque [ 2 ] à vista cartão [ 3 ] 2x no cartão [ 4 ] 3x ou mais no cartão''') opcao = int(input('Qual é a sua opção? ')) if opcao == 1: desconto = compra - (compra * 10 / 100) print('sua compra de R${:.2f} vai custar R${:.2f} no final.'.format(compra, desconto)) elif opcao ==2: desconto = compra - (compra * 5 / 100) print('sua compra de R${:.2f} vai custar R${:.2f} no final.'.format(compra, desconto)) elif opcao == 3: print('seu preço final é de {:.2f}.'.format(compra)) elif opcao == 4: parcela = int(input('Quantas parcelas deseja? ')) juros = compra + (compra * 20 / 100) print('sua compra de R${:.2f} vai custar R${:.2f} no final.'.format(compra, juros)) print('juros de {:.2f}.'.format(juros / parcela))
class A(): @staticmethod def staticMethod(): print("STATIC method fired!") print("Nothing is bound to me") print("~"*30) @classmethod def classMethod(cls): print("CLASS method fired!") print(str(cls)+" is bound to me") print("~"*30) # normal method def normalMethod(self): print("'normalMethod' fired!") print(str(self)+" is bound to me") print("~"*30) def __init__(self, val): self.val = val a = A(1) a.staticMethod() a.classMethod() a.normalMethod()
class Solution: def removeDuplicates(self, S: str) -> str: def process(S): lst = [] for key, g in itertools.groupby(S): n = len(list(g)) if n % 2: lst.append(key) return lst S_lst = list(S) while True: new_lst = process(S_lst) if len(new_lst) == len(S_lst): break S_lst = new_lst return ''.join(S_lst)
class User: ''' class that generates new instance of user ''' user_list = [] def __init__ (self, user_name, password): self.user_name = user_name self.password = password def save_user(self): User.user_list.append(self) def delete_user(self): ''' delete user account ''' User.user_list.remove(self) @classmethod def find_user(cls,user_name): ''' finding username ''' for user in cls.user_list: if user.user_name == user_name: return user @classmethod def log_in(cls,user_name, password): ''' login to password locker ''' for user in cls.user_list: if user.user_name == user_name and user.password == user_password: return user @classmethod def display_user(cls): ''' Method that returns the user list ''' return cls.user_list
print("Example 05: [The else Statement] \n" " Print a message once the condition is false") i = 1 while i < 6: print(i) i += 1 else: print("The condition is false")
def isPalindrome(s): temp = [c for c in s] temp.reverse() return ''.join(temp) == s def twodigit(): return reversed(range(100, 999)) q = reversed(sorted([a * b for a in twodigit() for b in twodigit()])) found = False for s in q: if isPalindrome(str(s)): print(s) found = True break if not found: print("guh")
def mutations(inputs): item_a = set(inputs[0].lower()) item_b = set(inputs[1].lower()) return item_b.intersection(item_a) == item_b print(mutations(["hello", "Hello"])) print(mutations(["hello", "hey"])) print(mutations(["Alien", "line"]))
while True: try: n = int(input("Enter N: ")) except ValueError: print("Enter correct number!") else: if n <= 100: print("Error: N must be greater than 100!") else: for i in range(11, n + 1): s = i i = (i-1) + i*i if i < 11: i = 10 print(i) break
# PySNMP SMI module. Autogenerated from smidump -f python RUCKUS-SCG-TTG-MIB # by libsmi2pysnmp-0.1.3 # Python version sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0) # pylint:disable=C0302 mibBuilder = mibBuilder # pylint:disable=undefined-variable,used-before-assignment # Imports (Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") (NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") (ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") (ruckusSCGTTGModule, ) = mibBuilder.importSymbols("RUCKUS-ROOT-MIB", "ruckusSCGTTGModule") (Bits, Counter32, Counter64, Integer32, Integer32, IpAddress, ModuleIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter32", "Counter64", "Integer32", "Integer32", "IpAddress", "ModuleIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32") (DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString") # Objects ruckusTTGMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1)).setRevisions(("2014-05-19 11:00", )) if mibBuilder.loadTexts: ruckusTTGMIB.setOrganization("Ruckus Wireless, Inc.") if mibBuilder.loadTexts: ruckusTTGMIB.setContactInfo("Ruckus Wireless, Inc.\n\n350 West Java Dr.\nSunnyvale, CA 94089\nUSA\n\nT: +1 (650) 265-4200\nF: +1 (408) 738-2065\nEMail: info@ruckuswireless.com\nWeb: www.ruckuswireless.com") if mibBuilder.loadTexts: ruckusTTGMIB.setDescription("Ruckus TTG MIB") ruckusTTGObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1)) ruckusAAAInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1)) ruckusAAATable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1)) if mibBuilder.loadTexts: ruckusAAATable.setDescription("ruckusAAATable") ruckusAAAEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAIndex")) if mibBuilder.loadTexts: ruckusAAAEntry.setDescription("ruckusAAAEntry") ruckusAAAAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAAaaIp.setDescription("ruckusAAAAaaIp") ruckusAAANumSuccAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPerm.setDescription("ruckusAAANumSuccAuthPerm") ruckusAAANumFailAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPerm.setDescription("ruckusAAANumFailAuthPerm") ruckusAAANumSuccAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPsd.setDescription("ruckusAAANumSuccAuthPsd") ruckusAAANumFailAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPsd.setDescription("ruckusAAANumFailAuthPsd") ruckusAAANumSuccFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccFastAuth.setDescription("ruckusAAANumSuccFastAuth") ruckusAAANumFailFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailFastAuth.setDescription("ruckusAAANumFailFastAuth") ruckusAAANumAuthUnknPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknPsd.setDescription("ruckusAAANumAuthUnknPsd") ruckusAAANumAuthUnknFR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknFR.setDescription("ruckusAAANumAuthUnknFR") ruckusAAANumIncompleteAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumIncompleteAuth.setDescription("ruckusAAANumIncompleteAuth") ruckusAAANumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAcc.setDescription("ruckusAAANumSuccAcc") ruckusAAANumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAcc.setDescription("ruckusAAANumFailAcc") ruckusAAANumRadAcsRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRq.setDescription("ruckusAAANumRadAcsRq") ruckusAAANumRadAcsAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsAcpt.setDescription("ruckusAAANumRadAcsAcpt") ruckusAAANumRadAcsChlg = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsChlg.setDescription("ruckusAAANumRadAcsChlg") ruckusAAANumRadAcsRej = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRej.setDescription("ruckusAAANumRadAcsRej") ruckusAAANumRadAccRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccRq.setDescription("ruckusAAANumRadAccRq") ruckusAAANumRadAccAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccAcpt.setDescription("ruckusAAANumRadAccAcpt") ruckusAAANumRadCoaRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadCoaRq.setDescription("ruckusAAANumRadCoaRq") ruckusAAANumSuccCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccCoaAcpt.setDescription("ruckusAAANumSuccCoaAcpt") ruckusAAANumFailCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailCoaAcpt.setDescription("ruckusAAANumFailCoaAcpt") ruckusAAANumRadDmRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadDmRq.setDescription("ruckusAAANumRadDmRq") ruckusAAANumSuccDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccDmAcpt.setDescription("ruckusAAANumSuccDmAcpt") ruckusAAANumFailDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailDmAcpt.setDescription("ruckusAAANumFailDmAcpt") ruckusAAAIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAIndex.setDescription("ruckusAAAIndex") ruckusAAAProxyInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2)) ruckusAAAProxyTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1)) if mibBuilder.loadTexts: ruckusAAAProxyTable.setDescription("ruckusAAAProxyTable") ruckusAAAProxyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAProxyIndex")) if mibBuilder.loadTexts: ruckusAAAProxyEntry.setDescription("ruckusAAAProxyEntry") ruckusAAAProxyAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyAaaIp.setDescription("ruckusAAAProxyAaaIp") ruckusAAAProxyNumSuccAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAuth.setDescription("ruckusAAAProxyNumSuccAuth") ruckusAAAProxyNumFailAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAuth.setDescription("ruckusAAAProxyNumFailAuth") ruckusAAAProxyNumIncmpltAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumIncmpltAuth.setDescription("ruckusAAAProxyNumIncmpltAuth") ruckusAAAProxyNumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAcc.setDescription("ruckusAAAProxyNumSuccAcc") ruckusAAAProxyNumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAcc.setDescription("ruckusAAAProxyNumFailAcc") ruckusAAAProxyNumAcsRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqRcvdNas.setDescription("ruckusAAAProxyNumAcsRqRcvdNas") ruckusAAAProxyNumAcsRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqSntAaa.setDescription("ruckusAAAProxyNumAcsRqSntAaa") ruckusAAAProxyNumAcsChRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChRcvdAaa.setDescription("ruckusAAAProxyNumAcsChRcvdAaa") ruckusAAAProxyNumAcsChSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChSntNas.setDescription("ruckusAAAProxyNumAcsChSntNas") ruckusAAAProxyNumAcsAcpRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpRcvdAaa.setDescription("ruckusAAAProxyNumAcsAcpRcvdAaa") ruckusAAAProxyNumAcsAcpSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpSntNas.setDescription("ruckusAAAProxyNumAcsAcpSntNas") ruckusAAAProxyNumAcsRejRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejRcvdAaa.setDescription("ruckusAAAProxyNumAcsRejRcvdAaa") ruckusAAAProxyNumAcsRejSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejSntNas.setDescription("ruckusAAAProxyNumAcsRejSntNas") ruckusAAAProxyNumAccRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqRcvdNas.setDescription("ruckusAAAProxyNumAccRqRcvdNas") ruckusAAAProxyNumAccRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqSntAaa.setDescription("ruckusAAAProxyNumAccRqSntAaa") ruckusAAAProxyNumAccRspRcdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspRcdAaa.setDescription("ruckusAAAProxyNumAccRspRcdAaa") ruckusAAAProxyNumAccRspSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspSntNas.setDescription("ruckusAAAProxyNumAccRspSntNas") ruckusAAAProxyNumCoaRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaRcvdAaa.setDescription("ruckusAAAProxyNumCoaRcvdAaa") ruckusAAAProxyNumCoaSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaSucSntAaa.setDescription("ruckusAAAProxyNumCoaSucSntAaa") ruckusAAAProxyNumCoaFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaFailSntAaa.setDescription("ruckusAAAProxyNumCoaFailSntAaa") ruckusAAAProxyNumDmRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmRcvdAaa.setDescription("ruckusAAAProxyNumDmRcvdAaa") ruckusAAAProxyNumDmSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSntNas.setDescription("ruckusAAAProxyNumDmSntNas") ruckusAAAProxyNumDmSucRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucRcdNas.setDescription("ruckusAAAProxyNumDmSucRcdNas") ruckusAAAProxyNumDmSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucSntAaa.setDescription("ruckusAAAProxyNumDmSucSntAaa") ruckusAAAProxyNumDmFailRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailRcdNas.setDescription("ruckusAAAProxyNumDmFailRcdNas") ruckusAAAProxyNumDmFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailSntAaa.setDescription("ruckusAAAProxyNumDmFailSntAaa") ruckusAAAProxyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyIndex.setDescription("ruckusAAAProxyIndex") ruckusCGFInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3)) ruckusCGFTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1)) if mibBuilder.loadTexts: ruckusCGFTable.setDescription("ruckusCGFTable") ruckusCGFEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusCGFIndex")) if mibBuilder.loadTexts: ruckusCGFEntry.setDescription("ruckusCGFEntry") ruckusCGFCgfSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfSrvcName.setDescription("ruckusCGFCgfSrvcName") ruckusCGFCgfIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfIp.setDescription("ruckusCGFCgfIp") ruckusCGFNumSuccCdrTxfd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumSuccCdrTxfd.setDescription("ruckusCGFNumSuccCdrTxfd") ruckusCGFNumCdrTxfrFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrTxfrFail.setDescription("ruckusCGFNumCdrTxfrFail") ruckusCGFNumCdrPossDup = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrPossDup.setDescription("ruckusCGFNumCdrPossDup") ruckusCGFNumCdrRlsReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrRlsReq.setDescription("ruckusCGFNumCdrRlsReq") ruckusCGFNumCdrCnclReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrCnclReq.setDescription("ruckusCGFNumCdrCnclReq") ruckusCGFNumDrtrReqSnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrReqSnt.setDescription("ruckusCGFNumDrtrReqSnt") ruckusCGFNumDrtrSucRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrSucRspRcvd.setDescription("ruckusCGFNumDrtrSucRspRcvd") ruckusCGFNumDrtrFailRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrFailRspRcvd.setDescription("ruckusCGFNumDrtrFailRspRcvd") ruckusCGFIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFIndex.setDescription("ruckusCGFIndex") ruckusGTPUInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4)) ruckusGTPUTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1)) if mibBuilder.loadTexts: ruckusGTPUTable.setDescription("ruckusGTPUTable") ruckusGTPUEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGTPUIndex")) if mibBuilder.loadTexts: ruckusGTPUEntry.setDescription("ruckusGTPUEntry") ruckusGTPUGgsnIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUGgsnIPAddr.setDescription("ruckusGTPUGgsnIPAddr") ruckusGTPUTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxPkts.setDescription("ruckusGTPUTxPkts") ruckusGTPUTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxBytes.setDescription("ruckusGTPUTxBytes") ruckusGTPURxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxPkts.setDescription("ruckusGTPURxPkts") ruckusGTPURxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxBytes.setDescription("ruckusGTPURxBytes") ruckusGTPUTxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxDrops.setDescription("ruckusGTPUTxDrops") ruckusGTPURxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxDrops.setDescription("ruckusGTPURxDrops") ruckusGTPUNumBadGTPU = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumBadGTPU.setDescription("ruckusGTPUNumBadGTPU") ruckusGTPUNumRXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumRXTeidInvalid.setDescription("ruckusGTPUNumRXTeidInvalid") ruckusGTPUNumTXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumTXTeidInvalid.setDescription("ruckusGTPUNumTXTeidInvalid") ruckusGTPUNumOfEchoRX = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumOfEchoRX.setDescription("ruckusGTPUNumOfEchoRX") ruckusGTPUIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUIndex.setDescription("ruckusGTPUIndex") ruckusGGSNGTPCInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5)) ruckusGGSNGTPCTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1)) if mibBuilder.loadTexts: ruckusGGSNGTPCTable.setDescription("ruckusGGSNGTPCTable") ruckusGGSNGTPCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGGSNGTPCIndex")) if mibBuilder.loadTexts: ruckusGGSNGTPCEntry.setDescription("ruckusGGSNGTPCEntry") ruckusGGSNGTPCGgsnIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCGgsnIp.setDescription("ruckusGGSNGTPCGgsnIp") ruckusGGSNGTPCNumActPdp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCNumActPdp.setDescription("ruckusGGSNGTPCNumActPdp") ruckusGGSNGTPCSuccPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpCrt.setDescription("ruckusGGSNGTPCSuccPdpCrt") ruckusGGSNGTPCFailPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpCrt.setDescription("ruckusGGSNGTPCFailPdpCrt") ruckusGGSNGTPCSuccPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdRcvd.setDescription("ruckusGGSNGTPCSuccPdpUpdRcvd") ruckusGGSNGTPCFailPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdRcvd.setDescription("ruckusGGSNGTPCFailPdpUpdRcvd") ruckusGGSNGTPCSuccPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitRM.setDescription("ruckusGGSNGTPCSuccPdpUpdInitRM") ruckusGGSNGTPCFailPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitRM.setDescription("ruckusGGSNGTPCFailPdpUpdInitRM") ruckusGGSNGTPCSuccPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitAAA.setDescription("ruckusGGSNGTPCSuccPdpUpdInitAAA") ruckusGGSNGTPCFailPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitAAA.setDescription("ruckusGGSNGTPCFailPdpUpdInitAAA") ruckusGGSNGTPCSuccPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitHLR.setDescription("ruckusGGSNGTPCSuccPdpUpdInitHLR") ruckusGGSNGTPCFailPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitHLR.setDescription("ruckusGGSNGTPCFailPdpUpdInitHLR") ruckusGGSNGTPCSuccDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpRcvd.setDescription("ruckusGGSNGTPCSuccDelPdpRcvd") ruckusGGSNGTPCFailDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpRcvd.setDescription("ruckusGGSNGTPCFailDelPdpRcvd") ruckusGGSNGTPCSuccDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitErr.setDescription("ruckusGGSNGTPCSuccDelPdpInitErr") ruckusGGSNGTPCFailDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitErr.setDescription("ruckusGGSNGTPCFailDelPdpInitErr") ruckusGGSNGTPCSuccDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitDM.setDescription("ruckusGGSNGTPCSuccDelPdpInitDM") ruckusGGSNGTPCFailDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitDM.setDescription("ruckusGGSNGTPCFailDelPdpInitDM") ruckusGGSNGTPCSuccDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitHLR.setDescription("ruckusGGSNGTPCSuccDelPdpInitHLR") ruckusGGSNGTPCFailDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitHLR.setDescription("ruckusGGSNGTPCFailDelPdpInitHLR") ruckusGGSNGTPCSuccDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitSCG.setDescription("ruckusGGSNGTPCSuccDelPdpInitSCG") ruckusGGSNGTPCFailDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitSCG.setDescription("ruckusGGSNGTPCFailDelPdpInitSCG") ruckusGGSNGTPCSuccDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitAP.setDescription("ruckusGGSNGTPCSuccDelPdpInitAP") ruckusGGSNGTPCFailDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitAP.setDescription("ruckusGGSNGTPCFailDelPdpInitAP") ruckusGGSNGTPCSuccDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitD.setDescription("ruckusGGSNGTPCSuccDelPdpInitD") ruckusGGSNGTPCFailDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitD.setDescription("ruckusGGSNGTPCFailDelPdpInitD") ruckusGGSNGTPCSuccDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitClnt.setDescription("ruckusGGSNGTPCSuccDelPdpInitClnt") ruckusGGSNGTPCFailDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitClnt.setDescription("ruckusGGSNGTPCFailDelPdpInitClnt") ruckusGGSNGTPCIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCIndex.setDescription("ruckusGGSNGTPCIndex") ruckusHLRInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7)) ruckusHLRTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1)) if mibBuilder.loadTexts: ruckusHLRTable.setDescription("ruckusHLRTable") ruckusHLREntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusHLRIndex")) if mibBuilder.loadTexts: ruckusHLREntry.setDescription("ruckusHLREntry") ruckusHLRHlrSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRHlrSrvcName.setDescription("ruckusHLRHlrSrvcName") ruckusHLRNumSucAuthInfoReqSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqSim.setDescription("ruckusHLRNumSucAuthInfoReqSim") ruckusHLRNumAuthInfoRqErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrSim.setDescription("ruckusHLRNumAuthInfoRqErrHlrSim") ruckusHLRNumAuthInfoRqTmotSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotSim.setDescription("ruckusHLRNumAuthInfoRqTmotSim") ruckusHLRNumSucAuthInfoReqAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqAka.setDescription("ruckusHLRNumSucAuthInfoReqAka") ruckusHLRNumAuthInfoRqErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrAka.setDescription("ruckusHLRNumAuthInfoRqErrHlrAka") ruckusHLRNumAuthInfoRqTmotAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotAka.setDescription("ruckusHLRNumAuthInfoRqTmotAka") ruckusHLRNumUpdGprsSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccSim.setDescription("ruckusHLRNumUpdGprsSuccSim") ruckusHLRNumUpdGprsFailErrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrSim.setDescription("ruckusHLRNumUpdGprsFailErrSim") ruckusHLRNumUpdGprsFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoSim.setDescription("ruckusHLRNumUpdGprsFailTmoSim") ruckusHLRNumUpdGprsSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccAka.setDescription("ruckusHLRNumUpdGprsSuccAka") ruckusHLRNumUpdGprsFailErrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrAka.setDescription("ruckusHLRNumUpdGprsFailErrAka") ruckusHLRNumUpdGprsFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoAka.setDescription("ruckusHLRNumUpdGprsFailTmoAka") ruckusHLRNumRstDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccSim.setDescription("ruckusHLRNumRstDtaSuccSim") ruckusHLRNumRstDtaFailErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrSim.setDescription("ruckusHLRNumRstDtaFailErrHlrSim") ruckusHLRNumRstDtaFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoSim.setDescription("ruckusHLRNumRstDtaFailTmoSim") ruckusHLRNumRstDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccAka.setDescription("ruckusHLRNumRstDtaSuccAka") ruckusHLRNumRstDtaFailErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrAka.setDescription("ruckusHLRNumRstDtaFailErrHlrAka") ruckusHLRNumRstDtaFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoAka.setDescription("ruckusHLRNumRstDtaFailTmoAka") ruckusHLRNumInsrtDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccSim.setDescription("ruckusHLRNumInsrtDtaSuccSim") ruckusHLRNumInsrtDtaFailSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailSim.setDescription("ruckusHLRNumInsrtDtaFailSim") ruckusHLRNumInsrtDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccAka.setDescription("ruckusHLRNumInsrtDtaSuccAka") ruckusHLRNumInsrtDtaFailAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailAka.setDescription("ruckusHLRNumInsrtDtaFailAka") ruckusHLRNumSaInsrtDtaSucc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaSucc.setDescription("ruckusHLRNumSaInsrtDtaSucc") ruckusHLRNumSaInsrtDtaFailUnkS = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailUnkS.setDescription("ruckusHLRNumSaInsrtDtaFailUnkS") ruckusHLRNumSaInsrtDtaFailErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailErr.setDescription("ruckusHLRNumSaInsrtDtaFailErr") ruckusHLRNumCfgAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumCfgAssoc.setDescription("ruckusHLRNumCfgAssoc") ruckusHLRNumActAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumActAssoc.setDescription("ruckusHLRNumActAssoc") ruckusHLRNumRtgFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRtgFail.setDescription("ruckusHLRNumRtgFail") ruckusHLRIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRIndex.setDescription("ruckusHLRIndex") # Augmentions # Exports # Module identity mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", PYSNMP_MODULE_ID=ruckusTTGMIB) # Objects mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusTTGMIB=ruckusTTGMIB, ruckusTTGObjects=ruckusTTGObjects, ruckusAAAInfo=ruckusAAAInfo, ruckusAAATable=ruckusAAATable, ruckusAAAEntry=ruckusAAAEntry, ruckusAAAAaaIp=ruckusAAAAaaIp, ruckusAAANumSuccAuthPerm=ruckusAAANumSuccAuthPerm, ruckusAAANumFailAuthPerm=ruckusAAANumFailAuthPerm, ruckusAAANumSuccAuthPsd=ruckusAAANumSuccAuthPsd, ruckusAAANumFailAuthPsd=ruckusAAANumFailAuthPsd, ruckusAAANumSuccFastAuth=ruckusAAANumSuccFastAuth, ruckusAAANumFailFastAuth=ruckusAAANumFailFastAuth, ruckusAAANumAuthUnknPsd=ruckusAAANumAuthUnknPsd, ruckusAAANumAuthUnknFR=ruckusAAANumAuthUnknFR, ruckusAAANumIncompleteAuth=ruckusAAANumIncompleteAuth, ruckusAAANumSuccAcc=ruckusAAANumSuccAcc, ruckusAAANumFailAcc=ruckusAAANumFailAcc, ruckusAAANumRadAcsRq=ruckusAAANumRadAcsRq, ruckusAAANumRadAcsAcpt=ruckusAAANumRadAcsAcpt, ruckusAAANumRadAcsChlg=ruckusAAANumRadAcsChlg, ruckusAAANumRadAcsRej=ruckusAAANumRadAcsRej, ruckusAAANumRadAccRq=ruckusAAANumRadAccRq, ruckusAAANumRadAccAcpt=ruckusAAANumRadAccAcpt, ruckusAAANumRadCoaRq=ruckusAAANumRadCoaRq, ruckusAAANumSuccCoaAcpt=ruckusAAANumSuccCoaAcpt, ruckusAAANumFailCoaAcpt=ruckusAAANumFailCoaAcpt, ruckusAAANumRadDmRq=ruckusAAANumRadDmRq, ruckusAAANumSuccDmAcpt=ruckusAAANumSuccDmAcpt, ruckusAAANumFailDmAcpt=ruckusAAANumFailDmAcpt, ruckusAAAIndex=ruckusAAAIndex, ruckusAAAProxyInfo=ruckusAAAProxyInfo, ruckusAAAProxyTable=ruckusAAAProxyTable, ruckusAAAProxyEntry=ruckusAAAProxyEntry, ruckusAAAProxyAaaIp=ruckusAAAProxyAaaIp, ruckusAAAProxyNumSuccAuth=ruckusAAAProxyNumSuccAuth, ruckusAAAProxyNumFailAuth=ruckusAAAProxyNumFailAuth, ruckusAAAProxyNumIncmpltAuth=ruckusAAAProxyNumIncmpltAuth, ruckusAAAProxyNumSuccAcc=ruckusAAAProxyNumSuccAcc, ruckusAAAProxyNumFailAcc=ruckusAAAProxyNumFailAcc, ruckusAAAProxyNumAcsRqRcvdNas=ruckusAAAProxyNumAcsRqRcvdNas, ruckusAAAProxyNumAcsRqSntAaa=ruckusAAAProxyNumAcsRqSntAaa, ruckusAAAProxyNumAcsChRcvdAaa=ruckusAAAProxyNumAcsChRcvdAaa, ruckusAAAProxyNumAcsChSntNas=ruckusAAAProxyNumAcsChSntNas, ruckusAAAProxyNumAcsAcpRcvdAaa=ruckusAAAProxyNumAcsAcpRcvdAaa, ruckusAAAProxyNumAcsAcpSntNas=ruckusAAAProxyNumAcsAcpSntNas, ruckusAAAProxyNumAcsRejRcvdAaa=ruckusAAAProxyNumAcsRejRcvdAaa, ruckusAAAProxyNumAcsRejSntNas=ruckusAAAProxyNumAcsRejSntNas, ruckusAAAProxyNumAccRqRcvdNas=ruckusAAAProxyNumAccRqRcvdNas, ruckusAAAProxyNumAccRqSntAaa=ruckusAAAProxyNumAccRqSntAaa, ruckusAAAProxyNumAccRspRcdAaa=ruckusAAAProxyNumAccRspRcdAaa, ruckusAAAProxyNumAccRspSntNas=ruckusAAAProxyNumAccRspSntNas, ruckusAAAProxyNumCoaRcvdAaa=ruckusAAAProxyNumCoaRcvdAaa, ruckusAAAProxyNumCoaSucSntAaa=ruckusAAAProxyNumCoaSucSntAaa, ruckusAAAProxyNumCoaFailSntAaa=ruckusAAAProxyNumCoaFailSntAaa, ruckusAAAProxyNumDmRcvdAaa=ruckusAAAProxyNumDmRcvdAaa, ruckusAAAProxyNumDmSntNas=ruckusAAAProxyNumDmSntNas, ruckusAAAProxyNumDmSucRcdNas=ruckusAAAProxyNumDmSucRcdNas, ruckusAAAProxyNumDmSucSntAaa=ruckusAAAProxyNumDmSucSntAaa, ruckusAAAProxyNumDmFailRcdNas=ruckusAAAProxyNumDmFailRcdNas, ruckusAAAProxyNumDmFailSntAaa=ruckusAAAProxyNumDmFailSntAaa, ruckusAAAProxyIndex=ruckusAAAProxyIndex, ruckusCGFInfo=ruckusCGFInfo, ruckusCGFTable=ruckusCGFTable, ruckusCGFEntry=ruckusCGFEntry, ruckusCGFCgfSrvcName=ruckusCGFCgfSrvcName, ruckusCGFCgfIp=ruckusCGFCgfIp, ruckusCGFNumSuccCdrTxfd=ruckusCGFNumSuccCdrTxfd, ruckusCGFNumCdrTxfrFail=ruckusCGFNumCdrTxfrFail, ruckusCGFNumCdrPossDup=ruckusCGFNumCdrPossDup, ruckusCGFNumCdrRlsReq=ruckusCGFNumCdrRlsReq, ruckusCGFNumCdrCnclReq=ruckusCGFNumCdrCnclReq, ruckusCGFNumDrtrReqSnt=ruckusCGFNumDrtrReqSnt, ruckusCGFNumDrtrSucRspRcvd=ruckusCGFNumDrtrSucRspRcvd, ruckusCGFNumDrtrFailRspRcvd=ruckusCGFNumDrtrFailRspRcvd, ruckusCGFIndex=ruckusCGFIndex, ruckusGTPUInfo=ruckusGTPUInfo, ruckusGTPUTable=ruckusGTPUTable, ruckusGTPUEntry=ruckusGTPUEntry, ruckusGTPUGgsnIPAddr=ruckusGTPUGgsnIPAddr, ruckusGTPUTxPkts=ruckusGTPUTxPkts, ruckusGTPUTxBytes=ruckusGTPUTxBytes, ruckusGTPURxPkts=ruckusGTPURxPkts, ruckusGTPURxBytes=ruckusGTPURxBytes, ruckusGTPUTxDrops=ruckusGTPUTxDrops, ruckusGTPURxDrops=ruckusGTPURxDrops, ruckusGTPUNumBadGTPU=ruckusGTPUNumBadGTPU, ruckusGTPUNumRXTeidInvalid=ruckusGTPUNumRXTeidInvalid, ruckusGTPUNumTXTeidInvalid=ruckusGTPUNumTXTeidInvalid, ruckusGTPUNumOfEchoRX=ruckusGTPUNumOfEchoRX, ruckusGTPUIndex=ruckusGTPUIndex, ruckusGGSNGTPCInfo=ruckusGGSNGTPCInfo, ruckusGGSNGTPCTable=ruckusGGSNGTPCTable, ruckusGGSNGTPCEntry=ruckusGGSNGTPCEntry, ruckusGGSNGTPCGgsnIp=ruckusGGSNGTPCGgsnIp, ruckusGGSNGTPCNumActPdp=ruckusGGSNGTPCNumActPdp, ruckusGGSNGTPCSuccPdpCrt=ruckusGGSNGTPCSuccPdpCrt, ruckusGGSNGTPCFailPdpCrt=ruckusGGSNGTPCFailPdpCrt, ruckusGGSNGTPCSuccPdpUpdRcvd=ruckusGGSNGTPCSuccPdpUpdRcvd, ruckusGGSNGTPCFailPdpUpdRcvd=ruckusGGSNGTPCFailPdpUpdRcvd, ruckusGGSNGTPCSuccPdpUpdInitRM=ruckusGGSNGTPCSuccPdpUpdInitRM, ruckusGGSNGTPCFailPdpUpdInitRM=ruckusGGSNGTPCFailPdpUpdInitRM, ruckusGGSNGTPCSuccPdpUpdInitAAA=ruckusGGSNGTPCSuccPdpUpdInitAAA, ruckusGGSNGTPCFailPdpUpdInitAAA=ruckusGGSNGTPCFailPdpUpdInitAAA, ruckusGGSNGTPCSuccPdpUpdInitHLR=ruckusGGSNGTPCSuccPdpUpdInitHLR, ruckusGGSNGTPCFailPdpUpdInitHLR=ruckusGGSNGTPCFailPdpUpdInitHLR, ruckusGGSNGTPCSuccDelPdpRcvd=ruckusGGSNGTPCSuccDelPdpRcvd, ruckusGGSNGTPCFailDelPdpRcvd=ruckusGGSNGTPCFailDelPdpRcvd, ruckusGGSNGTPCSuccDelPdpInitErr=ruckusGGSNGTPCSuccDelPdpInitErr, ruckusGGSNGTPCFailDelPdpInitErr=ruckusGGSNGTPCFailDelPdpInitErr, ruckusGGSNGTPCSuccDelPdpInitDM=ruckusGGSNGTPCSuccDelPdpInitDM, ruckusGGSNGTPCFailDelPdpInitDM=ruckusGGSNGTPCFailDelPdpInitDM, ruckusGGSNGTPCSuccDelPdpInitHLR=ruckusGGSNGTPCSuccDelPdpInitHLR, ruckusGGSNGTPCFailDelPdpInitHLR=ruckusGGSNGTPCFailDelPdpInitHLR, ruckusGGSNGTPCSuccDelPdpInitSCG=ruckusGGSNGTPCSuccDelPdpInitSCG, ruckusGGSNGTPCFailDelPdpInitSCG=ruckusGGSNGTPCFailDelPdpInitSCG, ruckusGGSNGTPCSuccDelPdpInitAP=ruckusGGSNGTPCSuccDelPdpInitAP, ruckusGGSNGTPCFailDelPdpInitAP=ruckusGGSNGTPCFailDelPdpInitAP, ruckusGGSNGTPCSuccDelPdpInitD=ruckusGGSNGTPCSuccDelPdpInitD, ruckusGGSNGTPCFailDelPdpInitD=ruckusGGSNGTPCFailDelPdpInitD, ruckusGGSNGTPCSuccDelPdpInitClnt=ruckusGGSNGTPCSuccDelPdpInitClnt, ruckusGGSNGTPCFailDelPdpInitClnt=ruckusGGSNGTPCFailDelPdpInitClnt, ruckusGGSNGTPCIndex=ruckusGGSNGTPCIndex, ruckusHLRInfo=ruckusHLRInfo, ruckusHLRTable=ruckusHLRTable, ruckusHLREntry=ruckusHLREntry, ruckusHLRHlrSrvcName=ruckusHLRHlrSrvcName) mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusHLRNumSucAuthInfoReqSim=ruckusHLRNumSucAuthInfoReqSim, ruckusHLRNumAuthInfoRqErrHlrSim=ruckusHLRNumAuthInfoRqErrHlrSim, ruckusHLRNumAuthInfoRqTmotSim=ruckusHLRNumAuthInfoRqTmotSim, ruckusHLRNumSucAuthInfoReqAka=ruckusHLRNumSucAuthInfoReqAka, ruckusHLRNumAuthInfoRqErrHlrAka=ruckusHLRNumAuthInfoRqErrHlrAka, ruckusHLRNumAuthInfoRqTmotAka=ruckusHLRNumAuthInfoRqTmotAka, ruckusHLRNumUpdGprsSuccSim=ruckusHLRNumUpdGprsSuccSim, ruckusHLRNumUpdGprsFailErrSim=ruckusHLRNumUpdGprsFailErrSim, ruckusHLRNumUpdGprsFailTmoSim=ruckusHLRNumUpdGprsFailTmoSim, ruckusHLRNumUpdGprsSuccAka=ruckusHLRNumUpdGprsSuccAka, ruckusHLRNumUpdGprsFailErrAka=ruckusHLRNumUpdGprsFailErrAka, ruckusHLRNumUpdGprsFailTmoAka=ruckusHLRNumUpdGprsFailTmoAka, ruckusHLRNumRstDtaSuccSim=ruckusHLRNumRstDtaSuccSim, ruckusHLRNumRstDtaFailErrHlrSim=ruckusHLRNumRstDtaFailErrHlrSim, ruckusHLRNumRstDtaFailTmoSim=ruckusHLRNumRstDtaFailTmoSim, ruckusHLRNumRstDtaSuccAka=ruckusHLRNumRstDtaSuccAka, ruckusHLRNumRstDtaFailErrHlrAka=ruckusHLRNumRstDtaFailErrHlrAka, ruckusHLRNumRstDtaFailTmoAka=ruckusHLRNumRstDtaFailTmoAka, ruckusHLRNumInsrtDtaSuccSim=ruckusHLRNumInsrtDtaSuccSim, ruckusHLRNumInsrtDtaFailSim=ruckusHLRNumInsrtDtaFailSim, ruckusHLRNumInsrtDtaSuccAka=ruckusHLRNumInsrtDtaSuccAka, ruckusHLRNumInsrtDtaFailAka=ruckusHLRNumInsrtDtaFailAka, ruckusHLRNumSaInsrtDtaSucc=ruckusHLRNumSaInsrtDtaSucc, ruckusHLRNumSaInsrtDtaFailUnkS=ruckusHLRNumSaInsrtDtaFailUnkS, ruckusHLRNumSaInsrtDtaFailErr=ruckusHLRNumSaInsrtDtaFailErr, ruckusHLRNumCfgAssoc=ruckusHLRNumCfgAssoc, ruckusHLRNumActAssoc=ruckusHLRNumActAssoc, ruckusHLRNumRtgFail=ruckusHLRNumRtgFail, ruckusHLRIndex=ruckusHLRIndex)
''' 编写一个函数: 1) 计算所有参数的和的基数倍(默认基数为base=3) ''' def sumpow(*num,base=3): sumn=0 for i in num: sumn+=i return sumn*base if __name__=="__main__": l=[1,2,3] print(sumpow(*l))
class Slot: def __init__(name, _type=None, item=None): self.name = name, if _type is not None: self.type = _type else: self.type = name self.item = item, def equip(self): pass def unequip(self): pass def show(self): pass
def test_modulemap(snapshot): snapshot.assert_match([1, 2, 4]) def test_runlist(): assert 1 == 1
# Charlie Conneely # Dictionary parser file def parse(f): file = open(f, "r") words = file.read().split() file.close() return words if __name__ == "__main__": print("please run runner.py instead")
def fibonacci(n): if n == 0: return (0, 1) else: a, b = fibonacci(n // 2) c = a * (b * 2 - a) d = a * a + b * b if n % 2 == 0: return (c, d) else: return (d, c + d) x = 0 y = 0 num = 1 while len(str(x)) < 1000: x, y = fibonacci(num) num += 1 print(len(str(y)),len(str(x)),num)
def add(x, y): return x + y print(add(5, 7)) # -- Written as a lambda -- add = lambda x, y: x + y print(add(5, 7)) # Four parts # lambda # parameters # : # return value # Lambdas are meant to be short functions, often used without giving them a name. # For example, in conjunction with built-in function map # map applies the function to all values in the sequence def double(x): return x * 2 sequence = [1, 3, 5, 9] doubled = [ double(x) for x in sequence ] # Put the result of double(x) in a new list, for each of the values in `sequence` doubled = map(double, sequence) print(list(doubled)) # -- Written as a lambda -- sequence = [1, 3, 5, 9] doubled = map(lambda x: x * 2, sequence) print(list(doubled)) # -- Important to remember -- # Lambdas are just functions without a name. # They are used to return a value calculated from its parameters. # Almost always single-line, so don't do anything complicated in them. # Very often better to just define a function and give it a proper name.
""" atpthings.util -------------- Utilities """
def test_3_5_15(n): if (n % 15 == 0) and n != 0 : return 'FizzBuzz' elif n % 3 ==0 and n != 0: return 'Fizz' elif n % 5 == 0 and n != 0: return 'Buzz' else: return n def coundown(): for x in range (0,101): print(test_3_5_15(x)) coundown()
def average(data): if isinstance(data[0], int): return sum(data) / len(data) else: raw_data = list(map(lambda r: r.value, data)) return sum(raw_data) / len(raw_data) def minimum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return min(data_slice) def maximum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return max(data_slice) def data_range(data): return minimum(data), maximum(data) def median(data): sorted_data = sorted(data) data_length = len(data) index = (data_length - 1) // 2 if data_length % 2: return sorted_data[index] else: return (sorted_data[index] + sorted_data[index + 1]) / 2.0 def celsius_to_fahrenheit(celsius): return (celsius * 9 / 5) + 32 def fahrenheit_to_celsius(fahrenheit): return (fahrenheit - 32) * 5/9