content
stringlengths 7
1.05M
|
---|
mystr = "Anupam"
newstr = ""
# Iterating the loop in backward direction.
# for char in mystr[::-1]:
for char in reversed(mystr):
newstr = newstr + char
print(newstr)
|
#
# PySNMP MIB module F3-TIMEZONE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F3-TIMEZONE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:11:37 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)
#
fsp150cm, = mibBuilder.importSymbols("ADVA-MIB", "fsp150cm")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
ObjectIdentity, NotificationType, Counter64, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, IpAddress, Gauge32, Bits, ModuleIdentity, Counter32, Integer32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "NotificationType", "Counter64", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32", "IpAddress", "Gauge32", "Bits", "ModuleIdentity", "Counter32", "Integer32", "iso")
TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString")
f3TimeZoneMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32))
f3TimeZoneMIB.setRevisions(('2014-06-05 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: f3TimeZoneMIB.setRevisionsDescriptions((' Notes from release 201406050000Z, (1) MIB version ready for release FSP150CC 6.5.CC.',))
if mibBuilder.loadTexts: f3TimeZoneMIB.setLastUpdated('201406050000Z')
if mibBuilder.loadTexts: f3TimeZoneMIB.setOrganization('ADVA Optical Networking')
if mibBuilder.loadTexts: f3TimeZoneMIB.setContactInfo(' Michal Pawlowski ADVA Optical Networking, Inc. Tel: +48 58 7716 416 E-mail: [email protected] Postal: ul. Slaska 35/37 81-310 Gdynia, Poland')
if mibBuilder.loadTexts: f3TimeZoneMIB.setDescription('This module defines the Time Zone MIB definitions used by the F3 (FSP150CM/CC) product lines. Copyright (C) ADVA Optical Networking.')
f3TimeZoneConfigObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1))
f3TimeZoneConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2))
class MonthOfYear(TextualConvention, Integer32):
description = 'Month of year.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
namedValues = NamedValues(("january", 1), ("february", 2), ("march", 3), ("april", 4), ("may", 5), ("june", 6), ("july", 7), ("august", 8), ("september", 9), ("october", 10), ("november", 11), ("december", 12))
f3TimeZoneUtcOffset = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneUtcOffset.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneUtcOffset.setDescription('This object provides the ability to set UTC offset.')
f3TimeZoneDstControlEnabled = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstControlEnabled.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstControlEnabled.setDescription('This object provides the ability to toggle DST functionality.')
f3TimeZoneDstUtcOffset = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstUtcOffset.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstUtcOffset.setDescription('This object provides the ability to set DST Offset which is the Daylight Savings Time offset from Local Time.')
f3TimeZoneDstStartMonth = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 4), MonthOfYear()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartMonth.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartMonth.setDescription('This object provides the ability to set DST start month.')
f3TimeZoneDstStartDay = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartDay.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartDay.setDescription('This object provides the ability to set DST start day.')
f3TimeZoneDstStartTime = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartTime.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartTime.setDescription('This object provides the ability to set DST start time.')
f3TimeZoneDstEndMonth = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 7), MonthOfYear()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndMonth.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndMonth.setDescription('This object provides the ability to set DST end month.')
f3TimeZoneDstEndDay = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndDay.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndDay.setDescription('This object provides the ability to set DST end day.')
f3TimeZoneDstEndTime = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndTime.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndTime.setDescription('This object provides the ability to set DST end time.')
f3TimeZoneCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1))
f3TimeZoneGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2))
f3TimeZoneCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1, 1)).setObjects(("F3-TIMEZONE-MIB", "f3TimeZoneConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3TimeZoneCompliance = f3TimeZoneCompliance.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneCompliance.setDescription('Describes the requirements for conformance to the F3-TIMEZONE-MIB compliance.')
f3TimeZoneConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2, 1)).setObjects(("F3-TIMEZONE-MIB", "f3TimeZoneUtcOffset"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstControlEnabled"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstUtcOffset"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartMonth"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartDay"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartTime"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndMonth"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndDay"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3TimeZoneConfigGroup = f3TimeZoneConfigGroup.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneConfigGroup.setDescription('A collection of objects used to manage the Time Zone.')
mibBuilder.exportSymbols("F3-TIMEZONE-MIB", f3TimeZoneDstControlEnabled=f3TimeZoneDstControlEnabled, f3TimeZoneDstStartMonth=f3TimeZoneDstStartMonth, MonthOfYear=MonthOfYear, f3TimeZoneDstStartDay=f3TimeZoneDstStartDay, PYSNMP_MODULE_ID=f3TimeZoneMIB, f3TimeZoneUtcOffset=f3TimeZoneUtcOffset, f3TimeZoneDstUtcOffset=f3TimeZoneDstUtcOffset, f3TimeZoneDstEndDay=f3TimeZoneDstEndDay, f3TimeZoneCompliances=f3TimeZoneCompliances, f3TimeZoneGroups=f3TimeZoneGroups, f3TimeZoneCompliance=f3TimeZoneCompliance, f3TimeZoneDstEndTime=f3TimeZoneDstEndTime, f3TimeZoneConfigObjects=f3TimeZoneConfigObjects, f3TimeZoneDstEndMonth=f3TimeZoneDstEndMonth, f3TimeZoneConfigGroup=f3TimeZoneConfigGroup, f3TimeZoneDstStartTime=f3TimeZoneDstStartTime, f3TimeZoneConformance=f3TimeZoneConformance, f3TimeZoneMIB=f3TimeZoneMIB)
|
class EmptyContextManager:
"""
A context manager that does nothing. Only to support conditional change of context managers,
eg in such a way:
>>> if tx_enabled:
>>> ctxt = transaction.atomic
>>> else:
>>> ctxt = EmptyContextManager()
>>> with ctxt:
>>> ...
"""
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
return False
|
def setup ():
size (500, 500)
smooth ()
background(255)
strokeWeight(30)
noLoop ()
def draw ():
stroke(20)
line(50*1,200,150+50*0,300)
line(50*2,200,150+50*1,300)
line(50*3,200,150+50*2,300)
|
def number_indice_to_string(index)->str:
"""
Convert a number to a string.
"""
indicename = ["x", "y", "z"]
return "".join([indicename[i] for i in index]) |
def validate_pin(pin):
if (len(pin) == 4 or len(pin) == 6) and pin.isdigit():
return True
else:
return False |
'''
- Leetcode problem: 351
- Difficulty: Medium
- Brief problem description:
Given an Android 3x3 key lock screen and two integers m and n, where 1 ≤ m ≤ n ≤ 9, count the total number of unlock
patterns of the Android lock screen, which consist of minimum of m keys and maximum n keys.
Rules for a valid pattern:
Each pattern must connect at least m keys and at most n keys.
All the keys must be distinct.
If the line connecting two consecutive keys in the pattern passes through any other keys, the other keys must have
previously selected in the pattern. No jumps through non selected key is allowed.
The order of keys used matters.
Explanation:
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
Invalid move: 4 - 1 - 3 - 6
Line 1 - 3 passes through key 2 which had not been selected in the pattern.
Invalid move: 4 - 1 - 9 - 2
Line 1 - 9 passes through key 5 which had not been selected in the pattern.
Valid move: 2 - 4 - 1 - 3 - 6
Line 1 - 3 is valid because it passes through key 2, which had been selected in the pattern
Valid move: 6 - 5 - 4 - 1 - 9 - 2
Line 1 - 9 is valid because it passes through key 5, which had been selected in the pattern.
Example:
Input: m = 1, n = 1
Output: 9
- Solution Summary:
- Used Resources:
--- Bo Zhou
'''
class Solution:
def numberOfPatterns(self, m: int, n: int) -> int:
invalidPattern = {
1: [(2, 3), (4, 7), (5, 9)],
2: [(5, 8)],
3: [(2, 1), (5, 7), (6, 9)],
4: [(5, 6)],
6: [(5, 4)],
7: [(4, 1), (5, 3), (8, 9)],
8: [(5, 2)],
9: [(5, 1), (6, 3), (8, 7)],
}
count = 0
result = set()
self.backTrack(set(), [], m, n, result, invalidPattern)
return len(result)
def backTrack(self, visited, combined, m, n, result, invalidPattern):
if m <= len(combined) <= n:
result.add(tuple(combined))
if len(combined) == n:
return
for i in range(1, 10):
if (i not in visited) and self.isValid(combined, i, invalidPattern):
visited.add(i)
self.backTrack(visited, combined + [i], m, n, result, invalidPattern)
visited.remove(i)
def isValid(self, combined, n, invalidPattern):
if len(combined) == 0:
return True
last = combined[-1]
pattern = invalidPattern.get(last, [])
for block, target in pattern:
if n == target and block not in combined:
return False
return True
|
"""solved with help, hard """
class Solution:
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
result = []
while n > 0:
n -= 1
result.append(chr(n % 26 + 65))
n = n // 26
return ''.join(result[::-1])
if __name__ == '__main__':
print(Solution().convertToTitle(1024))
exit()
assert Solution().convertToTitle(1) == 'A'
assert Solution().convertToTitle(28) == 'AB'
assert Solution().convertToTitle(701) == 'ZY' |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Breno Alef Dourado Sá'
#Number of problem constraints
clausesCount = 0
#At least one queen on each line
#(p1 ∨ ... ∨ p4) ∧ ... ∧ (p13 ∨ ... ∨ p16)
def existence(n):
global clausesCount
clauses = ""
for i in range(0, n):
value = ""
for j in range(1,n+1):
num = "" + str(j + n * i)
value = str(value+num) + " "
clauses += value+"0\n"
clausesCount += 1
return clauses
#Only one queen in each row
#(¬p1 ∨ ¬p2) ∧ (¬p1 ∨ ¬p3) ∧ (¬p1 ∨ ¬p4) ∧ (¬p2 ∨ ¬p3) ∧ ... ∧ (¬p15 ∨ ¬p16)
def rows(n):
global clausesCount
clauses = ""
for i in range(0, n):
for j in range(1, n):
num = "" + str(j+n*i)
for l in range(1, n - j + 1):
aux = int(num) + l
value = "-" + num + " -" + str(aux)
clauses += value + " 0\n"
clausesCount += 1
return clauses
#Only one queen in each col
#(¬p1 ∨ ¬p5) ∧ (¬p1 ∨ ¬p9) ∧ (¬p1 ∨ ¬p13) ∧ (¬p5 ∨ ¬p9) ∧ ... ∧ (¬p12 ∨ ¬p16)
def cols(n):
global clausesCount
clauses = ""
for j in range(1, n+1):
for i in range(0, n):
num = "" + str(j+n*i)
for l in range(1, n-i):
aux = int(num) + l * n #celula para combinacao
value = "-" + num + " -" + str(aux)
clauses += value + " 0\n"
clausesCount += 1
return clauses
#Only one queen in each diagonal
#(¬p1 ∨ ¬p6) ∧ (¬p1 ∨ ¬p11) ∧ (¬p1 ∨ ¬p16) ∧ (¬p2 ∨ ¬p5) ∧ ... ∧ (¬p12 ∨ ¬p15)
def diagonals(n):
global clausesCount
clauses = ""
#superior left to right
for i in range(0, n-1):
for j in range(i, n-1):
num = "" + str(j+1+n*i)
for l in range(1, n-j):
aux = int(num) + l * (n+1)
value = "-" + num + " -" + str(aux)
clauses += value + " 0\n"
clausesCount += 1
#inferior left to right
for i in range(0, n-1):
for j in range(0, i):
num = "" + str(j + 1 + n * i)
for l in range(1, n-i):
aux = int(num) + l * (n + 1)
value = "-" + num + " -" + str(aux)+ " 0"
clauses += value + "\n"
clausesCount += 1
#superior right to left
for i in range(0, n):
for j in range(0, n-i):
num = "" + str(j+1+n*i)
for l in range(1, j+1):
aux = int(num) + l * (n - 1)
value = "-" + num + " -" + str(aux) + " 0"
clauses += value + "\n"
clausesCount += 1
#inferior right to left
for i in range(0, n):
for j in range(n-i, n):
num = "" + str(j+1+n*i)
if((j + 1 + n * i) != (n * n)):
for l in range(1, n-i):
aux = int(num) + l * (n - 1)
value = "-" + num + " -" + str(aux) + " 0"
clauses += value + "\n"
clausesCount += 1
return clauses
def generateFile(n):
if(n < 4):
raise ValueError('Minimum dimension: 4')
quit()
res = ""
res += existence(n)
res += rows(n)
res += cols(n)
res += diagonals(n)
file = open(str(n) +"queens.dimacs","w")
file.write("c dimacs for the " + str(n) + " queens puzzle\n")
file.write("p cnf " + str(n*n) + " " + str(clausesCount) + "\n")
file.write(res)
file.close()
if __name__ == '__main__':
n = input("Board size: ")
generateFile(n)
print("Saved to: " + str(n) + "queens.dimacs")
|
"""Membership operators
@see: https://www.w3schools.com/python/python_operators.asp
Membership operators are used to test if a sequence is presented in an object.
"""
def test_membership_operators():
"""Membership operators"""
# Let's use the following fruit list to illustrate membership concept.
fruit_list = ["apple", "banana"]
# in
# Returns True if a sequence with the specified value is present in the object.
# Returns True because a sequence with the value "banana" is in the list
assert "banana" in fruit_list
# not in
# Returns True if a sequence with the specified value is not present in the object
# Returns True because a sequence with the value "pineapple" is not in the list.
assert "pineapple" not in fruit_list
|
def moveElementToEnd(array, toMove):
# Write your code here.
left = 0
right = len(array) - 1
while left < right:
if array[right] == toMove:
right -= 1
elif array[left] != toMove:
left += 1
elif array[left] == toMove:
array[left], array[right] = array[right], array[left]
left += 1
right -= 1
return array
|
people = [
{"name": "Harry", "house":"Gryffibdor"},
{"name": "Ron", "house":"Ravenclaw"},
{"name": "Hermione", "house":"Gryffibdor"}
]
# def f(person):
# return person["house"]
people.sort(key=lambda person: person["house"])
print(people) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
PIXEL_ON = '#'
PIXEL_OFF = '.'
GROWTH_PER_ITERATION = 3
ITERATIONS_PART_ONE = 2
ITERATIONS_PART_TWO = 50
def filter_to_integer(image, x, y, default_value):
# The image enhancement algorithm describes how to enhance an image by simultaneously
# converting all pixels in the input image into an output image. Each pixel of the
# output image is determined by looking at a 3x3 square of pixels centered on the
# corresponding input image pixel.
integer = 0
for y_local in range(y - 1, y + 2):
for x_local in range(x - 1, x + 2):
# These nine input pixels are combined into a single binary number
# that is used as an index in the image enhancement algorithm string.
integer <<= 1
if image.get((x_local, y_local), default_value) == PIXEL_ON:
integer += 1
return integer
def run_filter(i, default_value):
# Scan a 3x3 area for each pixel in the image we're going to generate.
# Because our filter is sneaky and lights up infinite pixels sometimes,
# we'll provide a default value for what we expect in the image if we
# don't get a hit.
new_image = {}
for x in range(0 - (GROWTH_PER_ITERATION * iteration), image_size_x + (GROWTH_PER_ITERATION * iteration) + 1):
for y in range(0 - (GROWTH_PER_ITERATION * iteration), image_size_y + (GROWTH_PER_ITERATION * iteration) + 1):
filter_index = filter_to_integer(i, x, y, default_value)
new_image[(x, y)] = enhancement_algo[filter_index]
return new_image
def lit_pixels(image):
pixel_count = 0
for pixel in image:
if image[pixel] == PIXEL_ON: pixel_count += 1
return pixel_count
# Parse the ocean trench map file
with open('day20_input.txt') as f:
lines = [line.rstrip('\n') for line in f]
# The first section is the image enhancement algorithm. It is normally given on a single line,
# but it has been wrapped to multiple lines in this example for legibility.
enhancement_algo = lines[0]
# The second section is the input image, a two-dimensional grid of light pixels (#) and dark pixels (.).
input_image = lines[2:]
image = {}
for y in range(len(input_image)):
for x in range(len(input_image[y])):
if input_image[y][x] == PIXEL_ON: image[(x, y)] = input_image[y][x]
image_size_x = x
image_size_y = y
iteration = 1
while iteration <= ITERATIONS_PART_TWO:
# The puzzle input very subtly deviates from the example given in the puzzle description:
# Any 3x3 region with no lit pixels will be lit in the next iteration, meaning an infinite
# number will be lit on odd ticks, and then be unlit on the subsequent (even) tick.
#
# To handle this, the filter only examines an area 3 pixels larger in every dimension
# than the existing image. We then know on the next tick that every pixel should default
# to "lit" if it's not in the given image.
image_with_infinite_pixels_lit = run_filter(image, default_value=PIXEL_OFF)
iteration += 1
# Run the same filter, but now defaulting to "lit" out to infinity.
image = run_filter(image_with_infinite_pixels_lit, default_value=PIXEL_ON)
iteration += 1
# Start with the original input image and apply the image enhancement algorithm twice, being careful to account
# for the infinite size of the images. How many pixels are lit in the resulting image?
if iteration - 1 == ITERATIONS_PART_ONE:
print('Part One: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_ONE))
# Start again with the original input image and apply the image enhancement algorithm 50 times.
# How many pixels are lit in the resulting image?
print('Part Two: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_TWO)) |
# FIBONACCI PROBLEM
# Write a function 'fib(N)' that takes in a number as an argument.
# The function should return the nth number of the Fibonnaci sequence.
#
# The 0th number of sequence is 0.
# The 1st number of sequence is 1.
#
# To generate the next number of the sequence,we sum the previous two.
#
# N : 0, 1, 2, 3, 4, 5, 6, 7, ...
# fib(N): 0, 1, 1, 2, 3, 5, 8, 13, ...
# --------------------------------------
# A Brute force implementation
# Time Complexity: O(2^N)
# Space Complexity: O(N)
def fib_brute(N):
# Base conditions
if N == 0:
return 0
elif N == 1:
return 1
# Recursive call
return fib_brute(N - 1) + fib_brute(N - 2)
# --------------------------------------
# A DP implementation
# Time Complexity: O(N)
# Space Complexity: O(N)
def fib_dp(N, cache = {}):
# First check if fib(N) present in cache
if N in cache:
return cache[N]
# Base conditions
if N == 0:
return 0
elif N == 1:
return 1
# Make the Recursive call, save it in cache
# and then return the value from cache
cache[N] = fib_dp(N - 1, cache) + fib_dp(N - 2, cache)
return cache[N]
if __name__ == "__main__":
print(fib_brute(7)) # Output must be 13.
print(fib_dp(50)) # Output must be 12586269025. |
#lg1009
def exp(n):
ans = 1
for i in range(2, n + 1):
ans *= i
pass
return ans
pass
n = int(input())
tot = 0
for i in range(1, n + 1):
tot += exp(i)
pass
print(tot)
|
'''
Problem Description:
------------------
The program takes a file name from the user and
reads the contents of the file in reverse order.
'''
print(__doc__,end="")
print('-'*25)
fileName=input('Enter file name: ')
print('-'*40)
print('Contents of text in reversed order are: ')
for line in reversed(list(open(fileName))):
print(line.rstrip()) |
class Solution:
def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
if not list1 or not list2:
return list1 if list1 else list2
if list1.val > list2.val:
list1, list2 = list2, list1
list1.next = self.mergeTwoLists(list1.next, list2)
return list1
|
#exercicio 97
def escreva(txt):
c = len(txt)
print ('-'*c)
print (txt)
print ('-'*c)
escreva (' Exercicio97 ')
escreva (' resolvido ') |
# 74. Search a 2D Matrix
class Solution:
def searchMatrix(self, matrix: [[int]], target: int) -> bool:
"""
Efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
- Integers in each row are sorted from left to right.
- The first integer of each row is greater than the last integer of the previous row.
"""
if not len(matrix):
return False
row, colum = 0, len(matrix[0]) - 1
while row < len(matrix) and colum >= 0:
matrixItem = matrix[row][colum]
print(matrixItem)
if matrixItem < target:
row += 1
elif matrixItem > target:
colum -= 1
else:
return True
return False
|
class Elemento:
dado = None
anterior = None
proximo = None
def __init__(self, dado, anterior=None, proximo=None):
self.dado = dado
self.anterior = anterior
self.proximo = proximo
class Lista:
cabeca = None
cauda = None
def __init__(self, elemento):
self.cabeca = elemento
self.cauda = elemento
def inserir_no_meio(self, elemento, posicao):
contador = 0
elemento_atual = self.cabeca
while (contador != posicao):
elemento_atual = elemento_atual.proximo
contador += 1
elemento.proximo = elemento_atual
elemento_atual.anterior.proximo = elemento
elemento_atual.anterior = elemento
def inserir_no_fim(self, elemento):
elemento.anterior = self.cauda
self.cauda.proximo = elemento
self.cauda = elemento
def inserir_no_inicio(self, elemento):
elemento.proximo = self.cabeca
self.cabeca.anterior = elemento
self.cabeca = elemento
|
"""Storage module for static ids of DataProviders for consistent access.
IDs stored in this module should not be modified programmatically for any reason. Don't do it.
"""
INDICATOR_BLOCK_PROVIDER_ID = "IndicatorBlockProvider"
CLUSTERED_BLOCK_PROVIDER_ID = "ClusteredBlockProvider"
SPLIT_BLOCK_PROVIDER_ID = "SplitBlockProvider"
TREND_DETERMINISTIC_BLOCK_PROVIDER_ID = "TrendDeterministicBlockProvider"
CLOSING_PRICE_REGRESSION_BLOCK_PROVIDER_ID = "ClosingPriceRegressionBlockProvider"
PERCENTAGE_CHANGE_BLOCK_PROVIDER_ID = "PercentageChangeBlockProvider"
|
hexN = '0x41ba0320'
print(hexN)
hexP = hexN[2:]
print (hexP[0:2])
print (hexP[2:4])
print (hexP[4:6])
print (hexP[6:8])
print(hexP)
print("{}.{}.{}.{}".format(hexP[0:2],hexP[2:4],hexP[4:6],hexP[6:8])) |
# print('Hello, what is your name?') will type out the text in the ()
print('Hello, what is your name?')
# name = input() means that the name you typed is the answer to the question.
name = input()
# print('your name is '+name) will print the sentence plus the name you put in at name = input().
print('Your name is '+name)
|
#!/usr/bin/python3
# file: coroutine_3_生成器_1_fibonacci.py
# Created by Guang at 19-7-21
# description:
# *-* coding:utf8 *-*
def create_num(all_num):
a, b = 0, 1
current_num = 0
while current_num < all_num:
ret = yield a
print(">>>ret>>>>", ret)
a, b = b, a+b
current_num += 1
obj = create_num(10)
# obj.send(None) # send一般不会放到第一次启动生成器,如果非要这样做 那么传递None
ret = next(obj) # 唤醒 yield a (等号右边的部分), 然后生成器对象 “暂停”, 并将 a 返回给 24行的ret
print(ret) # ret = 1
# send里面的数据会 传递给第13行,当做yield a的结果,然后第13行的 ret保存这个结果,,,
# send的结果是下一次调用yield时 yield后面的值
ret = obj.send("hahahha") # 开始执行 等号左边(即yield a)左边的代码, 将send()内部的参数作为值传递给等号左边的变量ret; 同时 生成器继续向下执行
print(ret) # ret = 第二次取出来的a,即1
"""
上述代码执行结果:
0
>>>ret>>>> hahahha
1
"""
"""
笔记:
1. next() 等价于 send(None)
- 第一次不能调用 含非None参数的 send() 函数, 否则会报错; 一般第一次都调用 next() 函数
2. 从执行结果推断出结论:
- 1. ret = next(obj) # 唤醒 yield a (等号右边的部分), 然后生成器对象 “暂停”, 并将 a 返回给 接收next()函数返回值的变量ret
- 2. send里面的数据会传递给yield a 所在行的等号左边的结果,然后 yield a 左边的变量 保存这个结果
- 3. send的结果是下一次调用yield时 yield后面的值
3. 唤醒操作除了 send next 还可以用原生的 __next__()
""" |
n,k = map(int,input().split())
l = list(map(int,input().split()))
l.append("fake")
idx=0
ans=[l[0]]
s=set(l)
for i in range(1,n*k+1):
if i not in s:
ans.append(i)
if len(ans)==n:
print(*ans)
idx+=1
ans=[l[idx]] |
class Solution:
def maxValue(self, grid: List[List[int]]) -> int:
if not grid:
return 0
m, n = len(grid), len(grid[0])
dp = [0] * n
for idx, _ in enumerate(grid[0]):
if idx == 0:
dp[idx] = _
else:
dp[idx] = _ + dp[idx - 1]
for i in range(1, m):
for j in range(n):
if j == 0:
dp[j] += grid[i][j]
else:
dp[j] = max(dp[j - 1], dp[j]) + grid[i][j]
return dp[-1]
|
NON_EMPTY_FILEKEYS = """
.Contents[]
| select(.Size > 0)
| .Key
| select(endswith(".jsonl"))
"""
EMPTY_FILEKEYS = """
.Contents[]
| select(.Size == 0)
| .Key
| select(endswith(".jsonl"))
"""
DELETE_FILTER = """
.ResponseMetadata | {HTTPStatusCode, RetryAttempts}
"""
|
def yes_no_query():
result = input("[y/n | yes/no]")
result = result.lower()
if result == 'y' or result == 'yes':
return True
elif result == 'n' or result == 'no':
return False
else:
print("[Please Enter yes or no]")
return yes_no_query()
def do_discussion():
# todo: implement speaking stack
# todo: add handling for motion to table
# todo: add handling for call to question
pass
def do_motion(motion_text, motion_maker):
print(f"Motion is {motion_text}")
print("[confirm summary of motion is correct with motion maker and note taker]")
input("[Press any key to continue...]")
print("Do I have a second?")
seconded = yes_no_query()
if not seconded:
return {
"motion text": motion_text,
"motion maker": motion_maker,
"seconded": seconded
}
print("Do I hear any questions or opposition")
discussion = yes_no_query()
if discussion:
do_discussion()
# todo confirm input type, warning on incorrect input and ask again
yay = input("Those in favor: ")
nay = input("Those opposed: ")
abstain = input("Those abstaining: ")
print("[confirm vote tally with note taker]")
input("[Press any key to continue...]")
return {
"motion text": motion_text,
"motion maker": motion_maker,
"seconded": seconded,
"result": (yay, nay, abstain)
}
|
load(
"//rules/common:private/utils.bzl",
_action_singlejar = "action_singlejar",
)
#
# PHASE: binary_deployjar
#
# Writes the optional deploy jar that includes all of the dependencies
#
def phase_binary_deployjar(ctx, g):
main_class = None
if getattr(ctx.attr, "main_class", ""):
main_class = ctx.attr.main_class
_action_singlejar(
ctx,
inputs = depset(
[ctx.outputs.jar],
transitive = [g.javainfo.java_info.transitive_runtime_jars],
),
main_class = main_class,
output = ctx.outputs.deploy_jar,
progress_message = "scala deployable %s" % ctx.label,
compression = True,
)
|
"""
Discounts are determined by a combination of user and course, and have a one to one relationship with the enrollment
(if already enrolled) or a join table of user and course. They are determined in LMS, because all of the data for
the business rules exists here. Discount rules are meant to be permanent.
"""
|
def find_pattern(given):
total = len(given)
pattern = given[0]
to_compare = len(pattern)
for i in range(1, total):
for j in range(to_compare):
if given[i][j] != pattern[j]:
pattern = pattern[:j] + '?' + pattern[j + 1:]
return pattern
if __name__ == '__main__':
n = int(input())
test_case = [input() for _ in range(n)]
# print(test_case)
print(find_pattern(test_case))
|
"""Some utils to make parsing easier."""
def _string_to_db(stream: str) -> list:
db_values = []
if stream == '':
return db_values
escaped_actual = (
(r'\n', ord('\n')),
(r'\t', ord('\t'))
)
for c, val in escaped_actual:
if c in stream:
a, b = stream.split(c, maxsplit=1)
a = _string_to_db(a)
b = _string_to_db(b)
db_values.extend([*a, val, *b])
return db_values
return [stream]
def string_to_db(stream: str) -> str:
vals = _string_to_db(stream)
vals_quoted = []
length = 0
for val in vals:
if isinstance(val, str):
length += len(val)
vals_quoted.append(f'"{val}"')
else:
length += 1
vals_quoted.append(str(val))
return ','.join(vals_quoted) + ', 0', length + 1
def read_until_sentinel(iterator, sentinel: str) -> str:
acc = ''
for item in iterator:
acc += item
if item == sentinel:
break
return acc
def remove_comments(stream: str) -> str:
"""
Remove comments from a stream of code.
Not the prettiest of solutions but it'll do
"""
def remove_comment_from_line(line):
return line.split('#', maxsplit=1)[0]
uncommented_lines = map(remove_comment_from_line, stream.split('\n'))
uncommented_code = '\n'.join(uncommented_lines)
return uncommented_code
def pyre_split(stream: str) -> list:
"""Get a list of lexemes from a stream of code."""
# We add a space at the end to force the last item to be added
# Modern problems require modern solutions
stream = stream.strip() + ' '
items = []
acc = ''
stream_iterator = iter(stream)
for c in stream_iterator:
if c == '"' or c == "'":
assert acc == ''
acc = c + read_until_sentinel(stream_iterator, sentinel=c)
elif c == '[':
acc += c + read_until_sentinel(stream_iterator, sentinel=']')
elif c.isspace():
if acc != '':
items.append(acc)
acc = ''
continue
else:
acc += c
return items
|
class DMIntervention(object):
"""DM人工干预"""
pass
|
x = float(input())
n = int(input())
def expo(x, n):
num = 1
den = 1
sumi = 1
if n == 1:
return 1
for cnt in range(1, n):
num *= x
den *= cnt
sumi += num / den
return sumi
print("{:.3f}".format(expo(x, n) ))
|
# fo =open("/disk/lulu/TCGA11.txt","w")
with open(r"/disk/lulu/TCGA1.txt","r") as TCGA:
temp=[]
cancerlist=[]
cancer =[]
for line in TCGA:
list = line.strip().split("\t")
temp = list[0]
cancerlist.append(temp)
cancer = sorted(set(cancerlist))
print (cancer)
TCGAlist=[]
for item in cancer:
# print (item)
dict = {item: []}
with open(r"/disk/lulu/TCGA1.txt", "r") as TCGA1:
for line in TCGA1:
list = line.strip().split("\t")
if item==list[0]:
dict[item].append(list[2])
TCGAlist.append(dict)
print (TCGAlist)
# print (dict)
# temp.append(line1)
# mytemp = sorted(set(temp))
# for item in mytemp:
# fo.write(item+"\t"+str(round(temp.count(item)/38,2))+"\n")
# # print(item+"\t"+str(round(temp.count(item)/38,2))+"\n") |
# https://www.hackerrank.com/challenges/strange-code/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign
starting = 3
index = 1
# time and value seperated by 2 min
time,value = [],[]
for i in range(1,40+1):
time.append(index) # time
value.append(starting) # value
index = starting+index
starting *= 2
cycle = list(zip(time,value))
# time
t = 213921847123
# value to find in time
f = 0
for i in range(len(time)):
if ((t<time[i]) is True) and ((t>time[i]) is False):
f = (i-1,time[i-1])
break
a = abs(f[1]-t)
print(value[f[0]]-a) |
#
# PySNMP MIB module HPN-ICF-EPON-DEVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-EPON-DEVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:38: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, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
hpnicfEpon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfEpon")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Integer32, TimeTicks, NotificationType, Gauge32, mib_2, ObjectIdentity, Counter64, IpAddress, zeroDotZero, iso, MibIdentifier, Counter32, ModuleIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Integer32", "TimeTicks", "NotificationType", "Gauge32", "mib-2", "ObjectIdentity", "Counter64", "IpAddress", "zeroDotZero", "iso", "MibIdentifier", "Counter32", "ModuleIdentity", "Unsigned32")
MacAddress, DateAndTime, RowStatus, TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "DateAndTime", "RowStatus", "TextualConvention", "TruthValue", "DisplayString")
hpnicfEponDeviceMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4))
hpnicfEponDeviceMIB.setRevisions(('2004-09-21 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setRevisionsDescriptions(('Initial version, published as RFC XXXX.',))
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setLastUpdated('200409210000Z')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setOrganization('')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setContactInfo('')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setDescription("The objects in this MIB module are used to manage Ethernet Passive Optical Network (EPON) devices which are based on the Ethernet in the First Mile (EFM) PON as defined in IEEE Draft P802.3ah/D3.0 clause 60,64,65. This MIB is excerpted from the draft files directly,only changed the object name,added the hpnicf as prefix. The following reference is used throughout this MIB module: [802.3ah] refers to: IEEE Draft P802.3ah/D3.3: 'Draft amendment to - Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications - Media Access Control Parameters, Physical Layers and Management Parameters for subscriber access networks', 22 April 2004. Of particular interest are Clause 64(MPCP) 65(P2mP RS) and 60 (PON PMDs). Clause 30, 'Management', and Clause 45,'Management Data Input/Output (MDIO) Interface'. Copyright (C) The Internet Society (2004). This version of this MIB module is part of XXXX see the RFC itself for full legal notices.")
hpnicfEponDeviceObjectMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1))
hpnicfEponDeviceObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1))
hpnicfEponDeviceConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2))
hpnicfEponDeviceControlObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1))
hpnicfEponDeviceStatObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2))
hpnicfEponDeviceEventObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3))
hpnicfEponDeviceControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceControlTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceControlTable.setDescription('Table for EPON device MIB modules.')
hpnicfEponDeviceControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceControlEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceControlEntry.setDescription('An entry in the EPON device Control table.')
hpnicfEponDeviceObjectReset = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("running", 1), ("reset", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReset.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReset.setDescription('This variable is used to reset the EPON device. The interface may be unavailable while the reset occurs and data may be lost. During reading operation it returns the state of the EPON device. running(1) indicates and operates normal operation, reset(2) indicates and operates reset mode. Writing can be done all the time.')
hpnicfEponDeviceObjectModes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("olt", 1), ("onu", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectModes.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectModes.setDescription('This variable defines the mode of the EPON device. When an olt(1) it is an Optical Line Terminal device (server) and when an onu(2) and Optical Network Unit device (client)')
hpnicfEponDeviceObjectFecEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noFecEnabled", 1), ("fecTxEnabled", 2), ("fecRxEnabled", 3), ("fecTxRxEnabled", 4))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectFecEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectFecEnabled.setDescription('This variable defines and provides information whether the EPON device uses FEC as defined in the [802.3ah] clause 65.2 for EPON. When noFECEnabled(1) the device does not support FEC mode When fecTxEnabled(2) the device supports the FEC transmission mode. When fecRxEnabled(3) the device supports the FEC Receive mode. When fecTxRxEnabled(4) the device supports the FEC transmission and receive mode. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectOamMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOam", 1), ("oamServer", 2), ("oamclient", 3))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectOamMode.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectOamMode.setDescription('This variable defines and provides information on the Operation Administration and Maintenance (OAM) mode of an EPON device as defined by the [802.3ah] clause 57. When noOam(1) the device does not supports the OAM mode. When oamServer(2) the device supports the OAM mode as a server unit. When oamClient(3) the device supports the OAM mode as a client unit. Writing can be done during initialization, hpnicfEponDeviceObjectDeviceReadyMode is in notReady(1) or inProcess(2). This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectDeviceReadyMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notReady", 1), ("inProcess", 2), ("ready", 3))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectDeviceReadyMode.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectDeviceReadyMode.setDescription('This variable defines the mode of an EPON device and provides information on the mode in initialization - ready for registration as defined by the [802.3ah] clause 64. When notReady(1) the device is not ready for operation. When inProcess(2) the device is in initialization process. When ready(3) the device is ready for registration. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectPowerDown = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectPowerDown.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectPowerDown.setDescription('Setting this variable to True(1) will cause Device to be entered into Power down mode where no registration is allowed and only receiving data from the link. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectNumberOfLLIDs = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectNumberOfLLIDs.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectNumberOfLLIDs.setDescription('A read only variable which defines the number of registered LLIDs (as defined by the [802.3ah] clause 65) in a EPON network for an OLT and an ONU. Initialization value is 0. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectReportThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 9), Integer32()).setUnits('TQ (16nsec)').setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReportThreshold.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReportThreshold.setDescription('A set of 8 integers, for each LLID, that defines the threshold reporting for each Queue in the REPORT message, as defined in [802.3ah] 64. First Queue set reporting will provide information on the queue occupancy of frames below this Threshold. The value returned shall be in Time quanta (TQ) which is 16nsec or 2 octets increments. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceRemoteMACAddressLLIDControl = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("resetLog", 2), ("useDefaultReporting", 3))).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDControl.setDescription('Indicates and controls the resetting of the LLID MAC address log. Setting this object to none(1) has no action resetLog(2) empties the LLID MAC address log. All data is deleted. Setting it to useDefaultReporting(3) returns all entries priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicfEponDeviceRemoteMACAddressLLIDTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2), )
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDTable.setDescription('A table of read-only value that identifies the source_address and LLIDs parameter of the remote devices in the network. This MacAddress value, as defined in [802.3ah], 30.3.5.1.5, is updated on reception of a valid frame with a unicast destination Field or (1) a destination Field equal to the reserved multicast address for MAC Control specified in [802.3ah] Annex 31A, (2) lengthOrType field value equal to the reserved Type for MAC Control as specified in [802.3ah] Annex 31A. (3)an MPCP subtype value equal to the subtype reserved for MPCP as specified in [802.3ah] Annex 31A, and an LLID as allocated by the OLT. The table is defined as Remote MAC address - LLID (RMadL) The table is relevant only for an OLT device, and is equivalent from a bridge emulation to the bridge port-MAC address table where the LLIDs are equivalent to virtual bridge ports.')
hpnicfEponDeviceRemoteMACAddressLLIDEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDEntry.setDescription('A group of entries. Applications create and delete entries using hpnicfEponDeviceRMadlEntryStatus. When adding objects to an LLID they are added in the persistent order of their index in this table.')
hpnicfEponDeviceRemoteMACAddressLLIDName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDName.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDName.setDescription('A locally-unique, administratively assigned name for a group of entries.')
hpnicfEponDeviceRMadlLLID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLLID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLLID.setDescription('An arbitrary integer for the purpose of identifying the LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlLogID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 3), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLogID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLogID.setDescription('The object identifier of a MIB module object to add to an entry, indicating the entry ID in the table. Writing can be done all the time.')
hpnicfEponDeviceRMadlRemoteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 4), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlRemoteAddress.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlRemoteAddress.setDescription('The remote MAC address of the LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notRegister", 1), ("registered", 2))).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlType.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlType.setDescription('A list of types for entries - LLIDs. Indicates and defines the state of registration. notRegister(1) marks a non registered LID, registered(2) marks a registered LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlAction = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("register", 2), ("deregister", 3), ("reregister", 4))).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlAction.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlAction.setDescription('A list of actions for an entry - LLID. Indicates and defines the state of registration for the remote device. none(1) marks no action, register(2) marks to register an LLID, deregister(3) marks to deregister an LLID, reregister(4) marks reregistered LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlEntryStatus.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicfEponDeviceStatTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceStatTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTable.setDescription('This table defines the list of statistics counters of EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicfEponDeviceStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceStatEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatEntry.setDescription('Table entries for Table of statistics counters of EPON devices.')
hpnicfEponDeviceStatTxFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 5), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 6), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 7), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 8), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatRxFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 9), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 10), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 11), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 12), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 13), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 14), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 15), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 16), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatDroppedFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 17), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 18), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 19), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 20), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 21), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 22), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 23), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 24), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceEventObjectTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectTable.setDescription('This table defines the Event Objects for EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicfEponDeviceEventObjectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectEntry.setDescription('Table entries for Table of Event objects for EPON devices.')
hpnicfEponDeviceSampleMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)).clone(1)).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceSampleMinimum.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceSampleMinimum.setDescription("The minimum Frequency of events this system will accept. A system may use the larger values of this minimum to lessen the impact of constant sampling. For larger sampling intervals the system samples less often and suffers less overhead. Unless explicitly resource limited, a system's value for this object SHOULD be 1, allowing as small as a 1 second interval for ongoing trigger sampling. Writing of the value can be done all the time.")
hpnicfEponDeviceDyingGaspAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmState.setDescription('A read-only variable, which defines the state of the Dying Gasp indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a dying gasp alarm asserted. When false the dying gasp alarm is reset ')
hpnicfEponDeviceDyingGaspAlarmEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmEnabled.setDescription('A control to allow DyingGaspAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceCriticalEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventState.setDescription('A read-only variable, which defines the state of the Critical Event indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Critical Event asserted. When false the Critical Event is reset.')
hpnicfEponDeviceCriticalEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventEnabled.setDescription('A control to allow CriticalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceLocalLinkFaultAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmState.setDescription('A read-only variable, which defines the state of the Local Link Fault indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Local Link Fault alarm asserted. When false the Local Link Fault alarm is reset.')
hpnicfEponDeviceLocalLinkFaultAlarmEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setDescription('A control to allow LocalLinkFaultAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceTemperatureEventIndicationState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationState.setDescription('A read-only variable, which defines the state of the Temperature Event indication of an EPON device. When condition of box temperature is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Temperature Event Indication asserted. When false the Temperature Event Indication is reset.')
hpnicfEponDeviceTemperatureEventIndicationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationEnabled.setDescription('A control to allow TemperatureEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDevicePowerVoltageEventIndicationState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationState.setDescription('A read-only variable, which defines the state of the Power/Voltage Event Indication of an EPON device. When condition of box Power/voltage is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Power/Voltage Event Indication asserted. When false the Power/Voltage Event Indication is reset. ')
hpnicfEponDevicePowerVoltageEventIndicationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationEnabled.setDescription('A control to allow PowerVoltageEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceGlobalEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 12), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventState.setDescription('A read-only variable, which defines the state of the Global Event indication of an EPON device. When the indication of the event input occurs the event is asserted. When the input is removed that event is de-asserted. When true the device has a Global Event asserted. When false the Global Event Indication is reset.')
hpnicfEponDeviceGlobalEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 13), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventEnabled.setDescription('A control to allow GlobalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredSymbolPeriodEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 14), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Symbol Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Symbol Period Event asserted. When false the Errored Symbol Period Event is reset.')
hpnicfEponDeviceErroredSymbolPeriodEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 15), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setDescription('A control to allow ErroredSymbolPeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFrameEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 16), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Event asserted. When false the Errored Frame Event is reset.')
hpnicfEponDeviceErroredFrameEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventEnabled.setDescription('A control to allow ErroredFrameEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFramePeriodEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 18), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Period Event asserted. When false the Errored Frame Period Event is reset.')
hpnicfEponDeviceErroredFramePeriodEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 19), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventEnabled.setDescription('A control to allow ErroredFramePeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFrameSecondsSummaryEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 20), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Seconds Summary Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Seconds Summary Event asserted. When false the Errored Frame Seconds Summary Event is reset.')
hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 21), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setDescription('A control to allow ErroredFrameSecondsSummaryEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceOrganizationSpecificEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 22), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventState.setDescription('A read-only variable, which defines the state of the Organization Specific Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Organization Specific Event asserted. When false the Organization Specific Event is reset.')
hpnicfEponDeviceOrganizationSpecificEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 23), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventEnabled.setDescription('A control to allow OrganizationSpecificEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceEventControl = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("resetLog", 2), ("useDefaultReporting", 3))).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceEventControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventControl.setDescription('Indicates and controls the resetting of the Event log. Setting this object to none(1) has no action resetLog(2) empties the event log. All data is deleted. Setting it to useDefaultReporting(3) returns all event priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicfEponDeviceEventsLogTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2), )
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogTable.setDescription('A table of objects provides a log of notification based on the event as pointed to by entries in those tables. The intent is a MAC level event log (set of events to when they happened). This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceEventsLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1), ).setIndexNames((0, "HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogName"), (0, "HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntry.setDescription('A group of Events. Applications create and delete entries using hpnicfEponDeviceEventsEntryStatus. When adding objects to a notification they are added in the lexical order of their index in this table.')
hpnicfEponDeviceEventsLogName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogName.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogName.setDescription('A locally-unique, administratively assigned name for a group of Events.')
hpnicfEponDeviceEventsLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogIndex.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogIndex.setDescription('An arbitrary integer for the purpose of identifying individual Events within a hpnicfEponDeviceEventsLogName group. Events within a group are placed in the notification in the numerical order of this index.')
hpnicfEponDeviceEventsLogID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 3), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogID.setDescription('The object identifier of a MIB module object to add to a Notification that results from the event. Writing can be done all the time.')
hpnicfEponDeviceEventsLogFirstTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogFirstTime.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogFirstTime.setDescription('The time that an entry was created.')
hpnicfEponDeviceEventsLogLastTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 5), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogLastTime.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogLastTime.setDescription('If multiple events are reported via the same entry, the time that the last event for this entry occurred, otherwise this should have the same value as hpnicfEponDeviceEventsLogFirstTime.')
hpnicfEponDeviceEventsLogCounts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogCounts.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogCounts.setDescription('The number of consecutive event instances reported by this entry. This starts at 1 with the creation of this row and increments by 1 for each subsequent duplicate event.')
hpnicfEponDeviceEventsLogType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("hpnicfEponDeviceDyingGaspAlarmState", 1), ("hpnicfEponDeviceCriticalEventState", 2), ("hpnicfEponDeviceLocalLinkFaultAlarmState", 3), ("hpnicfEponDeviceTemperatureEventIndicationState", 4), ("hpnicfEponDevicePowerVoltageEventIndicationState", 5), ("hpnicfEponDeviceGlobalEventState", 6), ("hpnicfEponDeviceErroredSymbolPeriodEventState", 7), ("hpnicfEponDeviceErroredFrameEventState", 8), ("hpnicfEponDeviceErroredFramePeriodEventState", 9), ("hpnicfEponDeviceErroredFrameSecondsSummaryEventState", 10), ("hpnicfEponDeviceOrganizationSpecificEventState", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogType.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogType.setDescription('A list of types for Events. Events are ordered according to their significance where 1 is the highest severity. hpnicfEponDeviceDyingGaspAlarmState(1) indicates a Dying Gasp Alarm State, hpnicfEponDeviceCriticalEventState(2) indicates a Critical Event State, hpnicfEponDeviceLocalLinkFaultAlarmState(3) indicates a Local Link Fault Alarm State, hpnicfEponDeviceTemperatureEventIndicationState(4) indicates a Temperature Event Indication State, hpnicfEponDevicePowerVoltageEventIndicationState(5) indicates a Power Voltage Event Indication State, hpnicfEponDeviceGlobalEventState(6) indicates a Global Event State, hpnicfEponDeviceErroredSymbolPeriodEventState(7) indicates an Errored Symbol Period Event State, hpnicfEponDeviceErroredFrameEventState(8) indicates an Errored Frame Event State, hpnicfEponDeviceErroredFramePeriodEventState(9) indicates an Errored Frame Period Event State, hpnicfEponDeviceErroredFrameSecondsSummaryEventState(10) indicates an Errored Frame Seconds Summary Event State, hpnicfEponDeviceOrganizationSpecificEventState(11) indicates an Organization Specific Event State. ')
hpnicfEponDeviceEventsLogEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 8), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntryStatus.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicfEponDeviceGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1))
hpnicfEponDeviceGroupControl = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 1)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectReset"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectModes"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectFecEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectOamMode"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectDeviceReadyMode"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectPowerDown"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectNumberOfLLIDs"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectReportThreshold"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRemoteMACAddressLLIDControl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupControl = hpnicfEponDeviceGroupControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupControl.setDescription('A collection of objects of hpnicfEponDevice control definition.')
hpnicfEponDeviceGroupRMadLTable = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 2)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlLLID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlLogID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlRemoteAddress"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlType"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlAction"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupRMadLTable = hpnicfEponDeviceGroupRMadLTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupRMadLTable.setDescription('A collection of objects of hpnicfEponDevice remote Mac address to LLID table.')
hpnicfEponDeviceGroupStat = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 3)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue7"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue7"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue7"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupStat = hpnicfEponDeviceGroupStat.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupStat.setDescription('A collection of objects of EPON device Statistics')
hpnicfEponDeviceGroupEvent = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 4)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceSampleMinimum"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceDyingGaspAlarmState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceDyingGaspAlarmEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceCriticalEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceCriticalEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceLocalLinkFaultAlarmState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceLocalLinkFaultAlarmEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceTemperatureEventIndicationState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceTemperatureEventIndicationEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDevicePowerVoltageEventIndicationState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDevicePowerVoltageEventIndicationEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGlobalEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGlobalEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredSymbolPeriodEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredSymbolPeriodEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFramePeriodEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFramePeriodEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameSecondsSummaryEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceOrganizationSpecificEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceOrganizationSpecificEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventControl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupEvent = hpnicfEponDeviceGroupEvent.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupEvent.setDescription('A collection of objects for EPON device Events')
hpnicfEponDeviceGroupEventLog = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 5)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogFirstTime"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogLastTime"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogCounts"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogType"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupEventLog = hpnicfEponDeviceGroupEventLog.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupEventLog.setDescription('A collection of objects for EPON device Events log')
hpnicfEponDeviceCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2))
hpnicfEponDeviceCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2, 1)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupControl"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupRMadLTable"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupStat"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupEvent"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupEventLog"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceCompliance = hpnicfEponDeviceCompliance.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCompliance.setDescription('The compliance statement for EPON Devices.')
mibBuilder.exportSymbols("HPN-ICF-EPON-DEVICE-MIB", hpnicfEponDeviceGroupEventLog=hpnicfEponDeviceGroupEventLog, hpnicfEponDeviceStatEntry=hpnicfEponDeviceStatEntry, hpnicfEponDeviceEventsLogEntryStatus=hpnicfEponDeviceEventsLogEntryStatus, hpnicfEponDeviceCompliance=hpnicfEponDeviceCompliance, hpnicfEponDeviceGroupControl=hpnicfEponDeviceGroupControl, hpnicfEponDeviceStatTxFramesQueue4=hpnicfEponDeviceStatTxFramesQueue4, hpnicfEponDeviceStatObjects=hpnicfEponDeviceStatObjects, hpnicfEponDeviceLocalLinkFaultAlarmState=hpnicfEponDeviceLocalLinkFaultAlarmState, hpnicfEponDeviceConformance=hpnicfEponDeviceConformance, hpnicfEponDeviceEventsLogFirstTime=hpnicfEponDeviceEventsLogFirstTime, hpnicfEponDeviceStatTable=hpnicfEponDeviceStatTable, hpnicfEponDeviceErroredFramePeriodEventEnabled=hpnicfEponDeviceErroredFramePeriodEventEnabled, hpnicfEponDeviceErroredFrameEventState=hpnicfEponDeviceErroredFrameEventState, hpnicfEponDeviceErroredSymbolPeriodEventEnabled=hpnicfEponDeviceErroredSymbolPeriodEventEnabled, hpnicfEponDeviceEventControl=hpnicfEponDeviceEventControl, hpnicfEponDeviceEventsLogName=hpnicfEponDeviceEventsLogName, hpnicfEponDeviceErroredFrameSecondsSummaryEventState=hpnicfEponDeviceErroredFrameSecondsSummaryEventState, hpnicfEponDeviceEventsLogLastTime=hpnicfEponDeviceEventsLogLastTime, hpnicfEponDeviceStatTxFramesQueue6=hpnicfEponDeviceStatTxFramesQueue6, hpnicfEponDeviceStatTxFramesQueue1=hpnicfEponDeviceStatTxFramesQueue1, hpnicfEponDeviceOrganizationSpecificEventEnabled=hpnicfEponDeviceOrganizationSpecificEventEnabled, hpnicfEponDeviceMIB=hpnicfEponDeviceMIB, hpnicfEponDeviceObjectReset=hpnicfEponDeviceObjectReset, hpnicfEponDeviceObjectModes=hpnicfEponDeviceObjectModes, hpnicfEponDeviceStatDroppedFramesQueue6=hpnicfEponDeviceStatDroppedFramesQueue6, hpnicfEponDeviceStatDroppedFramesQueue7=hpnicfEponDeviceStatDroppedFramesQueue7, hpnicfEponDeviceEventsLogCounts=hpnicfEponDeviceEventsLogCounts, hpnicfEponDeviceEventsLogTable=hpnicfEponDeviceEventsLogTable, hpnicfEponDeviceGroupStat=hpnicfEponDeviceGroupStat, hpnicfEponDeviceStatDroppedFramesQueue1=hpnicfEponDeviceStatDroppedFramesQueue1, hpnicfEponDeviceStatRxFramesQueue0=hpnicfEponDeviceStatRxFramesQueue0, hpnicfEponDeviceEventObjects=hpnicfEponDeviceEventObjects, hpnicfEponDeviceEventsLogType=hpnicfEponDeviceEventsLogType, hpnicfEponDeviceSampleMinimum=hpnicfEponDeviceSampleMinimum, hpnicfEponDeviceStatRxFramesQueue4=hpnicfEponDeviceStatRxFramesQueue4, hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled=hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled, hpnicfEponDeviceCriticalEventEnabled=hpnicfEponDeviceCriticalEventEnabled, hpnicfEponDeviceGroupRMadLTable=hpnicfEponDeviceGroupRMadLTable, hpnicfEponDeviceControlObjects=hpnicfEponDeviceControlObjects, hpnicfEponDeviceRMadlType=hpnicfEponDeviceRMadlType, hpnicfEponDeviceRemoteMACAddressLLIDEntry=hpnicfEponDeviceRemoteMACAddressLLIDEntry, hpnicfEponDeviceRMadlLLID=hpnicfEponDeviceRMadlLLID, hpnicfEponDeviceStatTxFramesQueue0=hpnicfEponDeviceStatTxFramesQueue0, hpnicfEponDeviceErroredFrameEventEnabled=hpnicfEponDeviceErroredFrameEventEnabled, hpnicfEponDeviceObjectPowerDown=hpnicfEponDeviceObjectPowerDown, hpnicfEponDeviceStatTxFramesQueue7=hpnicfEponDeviceStatTxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue3=hpnicfEponDeviceStatDroppedFramesQueue3, hpnicfEponDeviceObjectReportThreshold=hpnicfEponDeviceObjectReportThreshold, hpnicfEponDeviceRemoteMACAddressLLIDTable=hpnicfEponDeviceRemoteMACAddressLLIDTable, hpnicfEponDeviceStatTxFramesQueue5=hpnicfEponDeviceStatTxFramesQueue5, hpnicfEponDeviceTemperatureEventIndicationState=hpnicfEponDeviceTemperatureEventIndicationState, hpnicfEponDeviceOrganizationSpecificEventState=hpnicfEponDeviceOrganizationSpecificEventState, hpnicfEponDeviceLocalLinkFaultAlarmEnabled=hpnicfEponDeviceLocalLinkFaultAlarmEnabled, hpnicfEponDeviceControlTable=hpnicfEponDeviceControlTable, hpnicfEponDeviceStatRxFramesQueue2=hpnicfEponDeviceStatRxFramesQueue2, hpnicfEponDeviceDyingGaspAlarmState=hpnicfEponDeviceDyingGaspAlarmState, hpnicfEponDeviceCriticalEventState=hpnicfEponDeviceCriticalEventState, hpnicfEponDeviceObjectOamMode=hpnicfEponDeviceObjectOamMode, PYSNMP_MODULE_ID=hpnicfEponDeviceMIB, hpnicfEponDeviceErroredFramePeriodEventState=hpnicfEponDeviceErroredFramePeriodEventState, hpnicfEponDeviceObjectMIB=hpnicfEponDeviceObjectMIB, hpnicfEponDevicePowerVoltageEventIndicationEnabled=hpnicfEponDevicePowerVoltageEventIndicationEnabled, hpnicfEponDeviceErroredSymbolPeriodEventState=hpnicfEponDeviceErroredSymbolPeriodEventState, hpnicfEponDeviceEventObjectEntry=hpnicfEponDeviceEventObjectEntry, hpnicfEponDeviceDyingGaspAlarmEnabled=hpnicfEponDeviceDyingGaspAlarmEnabled, hpnicfEponDevicePowerVoltageEventIndicationState=hpnicfEponDevicePowerVoltageEventIndicationState, hpnicfEponDeviceObjectFecEnabled=hpnicfEponDeviceObjectFecEnabled, hpnicfEponDeviceRemoteMACAddressLLIDName=hpnicfEponDeviceRemoteMACAddressLLIDName, hpnicfEponDeviceEventsLogEntry=hpnicfEponDeviceEventsLogEntry, hpnicfEponDeviceEventsLogID=hpnicfEponDeviceEventsLogID, hpnicfEponDeviceGroupEvent=hpnicfEponDeviceGroupEvent, hpnicfEponDeviceObjectNumberOfLLIDs=hpnicfEponDeviceObjectNumberOfLLIDs, hpnicfEponDeviceTemperatureEventIndicationEnabled=hpnicfEponDeviceTemperatureEventIndicationEnabled, hpnicfEponDeviceStatDroppedFramesQueue5=hpnicfEponDeviceStatDroppedFramesQueue5, hpnicfEponDeviceGlobalEventState=hpnicfEponDeviceGlobalEventState, hpnicfEponDeviceEventObjectTable=hpnicfEponDeviceEventObjectTable, hpnicfEponDeviceStatDroppedFramesQueue4=hpnicfEponDeviceStatDroppedFramesQueue4, hpnicfEponDeviceStatTxFramesQueue3=hpnicfEponDeviceStatTxFramesQueue3, hpnicfEponDeviceStatTxFramesQueue2=hpnicfEponDeviceStatTxFramesQueue2, hpnicfEponDeviceGroups=hpnicfEponDeviceGroups, hpnicfEponDeviceStatRxFramesQueue6=hpnicfEponDeviceStatRxFramesQueue6, hpnicfEponDeviceObjectDeviceReadyMode=hpnicfEponDeviceObjectDeviceReadyMode, hpnicfEponDeviceRMadlRemoteAddress=hpnicfEponDeviceRMadlRemoteAddress, hpnicfEponDeviceGlobalEventEnabled=hpnicfEponDeviceGlobalEventEnabled, hpnicfEponDeviceRMadlLogID=hpnicfEponDeviceRMadlLogID, hpnicfEponDeviceStatRxFramesQueue3=hpnicfEponDeviceStatRxFramesQueue3, hpnicfEponDeviceRMadlEntryStatus=hpnicfEponDeviceRMadlEntryStatus, hpnicfEponDeviceEventsLogIndex=hpnicfEponDeviceEventsLogIndex, hpnicfEponDeviceObjects=hpnicfEponDeviceObjects, hpnicfEponDeviceCompliances=hpnicfEponDeviceCompliances, hpnicfEponDeviceStatRxFramesQueue7=hpnicfEponDeviceStatRxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue0=hpnicfEponDeviceStatDroppedFramesQueue0, hpnicfEponDeviceRemoteMACAddressLLIDControl=hpnicfEponDeviceRemoteMACAddressLLIDControl, hpnicfEponDeviceStatRxFramesQueue1=hpnicfEponDeviceStatRxFramesQueue1, hpnicfEponDeviceControlEntry=hpnicfEponDeviceControlEntry, hpnicfEponDeviceStatDroppedFramesQueue2=hpnicfEponDeviceStatDroppedFramesQueue2, hpnicfEponDeviceRMadlAction=hpnicfEponDeviceRMadlAction, hpnicfEponDeviceStatRxFramesQueue5=hpnicfEponDeviceStatRxFramesQueue5)
|
# Question Link : https://leetcode.com/explore/challenge/card/august-leetcoding-challenge/552/week-4-august-22nd-august-28th/3436/
# Level : Hard
# Solution right below :-
class Solution(object):
def mincostTickets(self, days, costs):
"""
:type days: List[int]
:type costs: List[int]
:rtype: int
"""
def dp(day):
if day>days[-1]:
return 0
if memo[day]:
return memo[day]
if(day in days):
ans = min(dp(day+1)+costs[0],dp(day+7)+costs[1],dp(day+30)+costs[2])
else:
ans = dp(day+1)
memo[day] = ans
return ans
memo = [False]*(days[-1]+1)
return dp(1)
print('Min Cost :',Solution().mincostTickets([1,4,6,7,8,20],[2,7,15]))
|
# comprehensive solution
class Solution:
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/527360/Several-Python-solution.-w-Explanation
jewel = set(J)
return sum( 1 for item in S if item in jewel )
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/527360/Several-Python-solution.-w-Explanation
return sum( S.count(jewel) for jewel in J )
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/?currentPage=1&orderBy=most_votes&query=
return sum(s in J for s in S)
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/?currentPage=1&orderBy=most_votes&query=
return sum(map(J.count, S)) |
TIEMPO_POR_INSTRUCCION = 15
TIEMPO_AVISO_NO_MOVIMIENTO = 10
constante_cambio_area = 1000 # constante de cambio de area, entre mayor sea el numero, mayor es el area a detectar para cambio, es decir el equivalente a la velocidad de movimiento
valor_cambio = 200 # Constante incremental para cambio de estado [Lavandose_manos, Persona_ausente_o_sin_movimiento]
STATUS_MOVIMIENTO = ("MOVE", "NO_MOVE")
TIEMPO_VOLVER_LAVAR_MANOS = 60 # segundos (recomendado 5 minutos)
|
# -*- coding=utf-8 -*-
# library: jionlp
# author: dongrixinyu
# license: Apache License 2.0
# Email: [email protected]
# github: https://github.com/dongrixinyu/JioNLP
# description: Preprocessing tool for Chinese NLP
def bracket(regular_expression):
return ''.join([r'(', regular_expression, r')'])
def bracket_absence(regular_expression):
return ''.join([r'(', regular_expression, r')?'])
def absence(regular_expression):
return ''.join([regular_expression, r'?'])
def start_end(regular_expression):
return ''.join([r'^', regular_expression, r'$'])
|
"""
Programa VamoAI:
Aluna: Gisele Rodrigues Manuel
Atividade : Estrutura de repetição
Descrição do Exercício
Criar um programa com for com if;
"""
# cabeçalho do programa
print('-' * 25)
print(f'{"Contando até 10":^25}')
print('-' * 25)
# exibindo a contagem de 1 até 10
for conta_num in range (1,11):
if conta_num == 11:
break
print(conta_num, end=' ')
print("\nFim da contagem.") |
t = int(input())
s = "abcdefghijklmnopqrstuvwxyz"
for _ in range(t):
total = 0
l = list(map(int, input().split()))
string = input()
lst = list(set(s) - set(string))
for i in lst:
total += l[ord(i) - ord('a')]
print(total) |
#
# License: BSD
# https://raw.githubusercontent.com/stonier/groot_tools/devel/LICENSE
#
##############################################################################
# Documentation
##############################################################################
"""
Groot tools and utilities
"""
##############################################################################
# Imports
##############################################################################
##############################################################################
# Constants
##############################################################################
__version__ = '0.3.2'
|
# Fury Incarnate
medal = 1142554
if sm.canHold(medal):
sm.chatScript("You obtained the <Fury Incarnate> medal.")
sm.startQuest(parentID)
sm.completeQuest(parentID) |
#
# PySNMP MIB module WHISP-SM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WHISP-SM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:36:30 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")
ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Bits, TimeTicks, Gauge32, IpAddress, ObjectIdentity, MibIdentifier, Unsigned32, ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Integer32, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "TimeTicks", "Gauge32", "IpAddress", "ObjectIdentity", "MibIdentifier", "Unsigned32", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Integer32", "Counter64", "Counter32")
TextualConvention, MacAddress, PhysAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "MacAddress", "PhysAddress", "DisplayString")
dhcpRfPublicIp, whispBoxEsn = mibBuilder.importSymbols("WHISP-BOX-MIBV2-MIB", "dhcpRfPublicIp", "whispBoxEsn")
whispSm, whispBox, whispModules, whispAps = mibBuilder.importSymbols("WHISP-GLOBAL-REG-MIB", "whispSm", "whispBox", "whispModules", "whispAps")
WhispMACAddress, WhispLUID = mibBuilder.importSymbols("WHISP-TCV2-MIB", "WhispMACAddress", "WhispLUID")
whispSmMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 161, 19, 1, 1, 13))
if mibBuilder.loadTexts: whispSmMibModule.setLastUpdated('200304150000Z')
if mibBuilder.loadTexts: whispSmMibModule.setOrganization('Cambium Networks')
if mibBuilder.loadTexts: whispSmMibModule.setContactInfo('Canopy Technical Support email: [email protected]')
if mibBuilder.loadTexts: whispSmMibModule.setDescription('This module contains MIB definitions for Subscriber Modem.')
whispSmConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1))
whispSmSecurity = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7))
whispSmStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2))
whispSmGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3))
whispSmEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4))
whispSmDfsEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1))
whispSmSpAnEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2))
whispSmDHCPClientEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3))
whispSmControls = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8))
rfScanList = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfScanList.setStatus('current')
if mibBuilder.loadTexts: rfScanList.setDescription('RF scan list. The frequencies are: 2.4 radios:24150,24175,24200,24225,24250,24275,24300,24325,24350,24375, 24400,24425,24450,24475,24500,24525,24550,24575. 3.5 radios:340000-360000 added and removed dynamically. 4.9 radios:494500-498500 added and removed dynamically. 5.1 radios:5175,5180,5185,5190,5195,5200,5205,5210,5215,5220,5225,5230,5240, 5245,5250,5255,5260,5265,5270,5275,5280,5285,5290,5295,5300,5305, 5310,5315,5320,5325. 5.2 radios:5275,5280,5285,5290,5295,5300,5305,5310,5315,5320,5325. 5.4 FSK radios:5495,5500,5505,5510,5515,5520,5525, 5530,5535,5540,5545,5550,5555,5560,5565,5570,5575,5580,5585,5590,5595, 5600,5605,5610,5615,5620,5625,5630,5635,5640,5645,5650,5655,5660,5665, 5670,5675,5680,5685,5690,5695,5700,5705. 5.4 OFDM radios 5 mhz channels: 547250,547500,547750,548000,548500,548750,549000,549250,549500,549750,550000,550250,550500,550750,551000,551250,551500,551750,552000,552250,552500,552750, 553000,553250,553500,553750,554000,554250,554500,554750,555000,555250,555500,555750,556000,556250,556500,556750,557000,557250,557500,557750,558000,558250,558500,558750,559000,559250,559500,559750, 560000,560250,560500,560750,561000,561250,561500,561750,562000,562250,562500,562750,563000,563250,563500,563750,564000,564250,564500,564750,565000,565250,565500,565750,566000,566250,566500,566750, 567000,567250,567500,567750,568000,568250,568500,568750,569000,569250,569500,569750,570000,570250,570500,570750,571000,571250,571500,571750. 5.4 OFDM radios 10 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.4 OFDM radios 20 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.7 FSK radios with ISM enabled :5735,5740,5745,5750,5755,5760,5765,5770,5775, 5780,5785,5790,5795,5800,5805,5810,5815,5820,5825,5830,5835,5840. 5.7 OFDM radios 5 mhz channels :572750,573000,573250,573500,573750,574000,574250,574500,574750,575000,575250,575500,575750,576000,576250,576500,576750,577000,577250,577500,577750, 578000,578250,578500,578750,579000,579250,579500,579750,580000,580250,580500,580750,581000,581250,581500,581750,582000,582250,582500,582750,583000,583250,583500,583750,584000, 584250,584500,584750,585000,585250,585500,585750,586000,586250,586500,586750,587000,587250. 5.7 OFDM radios 10 mhz channels:573000,573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500,587000. 5.7 OFDM radios 20 mhz channels :573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500. 5.8 radios:5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910. 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 5.9 radios:5735,5740,5745,5750,5755,5760,5765,5770,5775,5780,5785,5790,5795,5800, 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 6.050 radios:5850,5855,5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910,5915,5920, 5925,5930,5935,5940,5945,5950,5955,5960,5965,5970,5975,5980,5985,5990,5995,6000, 6005,6010,6015,6020,6025,6030,6035,6040,6045,6050. 900 radios:9060,9070,9080,9090,9100,9110,9120,9130,9140,9150,9160,9170,9180,9190,9200,9220,9230,9240. 0: none. all: All frequencies in the band(s) supported by the radio will be selected. all54: All frequencies in the 5.4 band will be selected (only available on dual band radios). all57: All frequencies in the 5.7 band will be selected (only available on dual band radios). When doing a set, separate values with comma with no white space between values.')
powerUpMode = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("operational", 0), ("aim", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: powerUpMode.setStatus('current')
if mibBuilder.loadTexts: powerUpMode.setDescription('SM Power Up Mode With No 802.3 Link. 1 -- Power up in Aim mode 2 -- Power up in Operational mode.')
lanIpSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lanIpSm.setStatus('current')
if mibBuilder.loadTexts: lanIpSm.setDescription('LAN IP.')
lanMaskSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lanMaskSm.setStatus('current')
if mibBuilder.loadTexts: lanMaskSm.setDescription('LAN subnet mask.')
defaultGwSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: defaultGwSm.setStatus('current')
if mibBuilder.loadTexts: defaultGwSm.setDescription('Default gateway.')
networkAccess = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("localIP", 0), ("publicIP", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: networkAccess.setStatus('current')
if mibBuilder.loadTexts: networkAccess.setDescription('Network accessibility. Public or local IP. For multipoint only.')
authKeySm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authKeySm.setStatus('current')
if mibBuilder.loadTexts: authKeySm.setDescription('Authentication key. It should be equal or less than 32 characters long.')
enable8023link = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: enable8023link.setStatus('current')
if mibBuilder.loadTexts: enable8023link.setDescription('To enable or disable 802.3 link. For SMs only.')
authKeyOption = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("useDefault", 0), ("useKeySet", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authKeyOption.setStatus('current')
if mibBuilder.loadTexts: authKeyOption.setDescription('This option is for SMs only. Backhaul timing slave always uses the set key. 0 - Use default key. 1 - Use set key.')
timingPulseGated = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: timingPulseGated.setStatus('current')
if mibBuilder.loadTexts: timingPulseGated.setDescription('0 - Disable (Always propagate the frame timing pulse). 1 - Enable (If SM out of sync then dont propagate the frame timing pulse).')
naptPrivateIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 11), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPrivateIP.setStatus('current')
if mibBuilder.loadTexts: naptPrivateIP.setDescription('NAPT private IP address. Only the first three bytes can be changed when NAPT is enabled.')
naptPrivateSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 12), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPrivateSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptPrivateSubnetMask.setDescription('NAPT private subnet mask. Only the last byte can be changed when NAPT is enabled. The address will always be: 255.255.255.x.')
naptPublicIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 13), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicIP.setStatus('current')
if mibBuilder.loadTexts: naptPublicIP.setDescription('IP Address of NAPT Public Interface. The variable is available only when NAPT is enabled.')
naptPublicSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 14), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptPublicSubnetMask.setDescription('Subnet mask for NAPT Public Interface. The variable is available only when NAPT is enabled.')
naptPublicGatewayIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 15), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicGatewayIP.setStatus('current')
if mibBuilder.loadTexts: naptPublicGatewayIP.setDescription('IP Address of NAPT Public Interface Gateway. The variable is available only when NAPT is enabled.')
naptRFPublicIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 16), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicIP.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicIP.setDescription('IP Address of RF Public Interface. The variable is available only when NAPT is enabled.')
naptRFPublicSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 17), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicSubnetMask.setDescription('Subnet mask of RF Public Interface. The variable is available only when NAPT is enabled.')
naptRFPublicGateway = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 18), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicGateway.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicGateway.setDescription('IP Address of RF Public Interface Gateway. The variable is available only when NAPT is enabled.')
naptEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptEnable.setStatus('current')
if mibBuilder.loadTexts: naptEnable.setDescription('To enable or disable NAPT. For multipoint only. 1=Enable NAPT, 0=Disable NAPT.')
arpCacheTimeout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: arpCacheTimeout.setStatus('current')
if mibBuilder.loadTexts: arpCacheTimeout.setDescription('ARP cache time out in unit of minutes. For multipoint only. Range from 1-30.')
tcpGarbageCollectTmout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tcpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts: tcpGarbageCollectTmout.setDescription('Units of minutes for TCP garbage collection. For multipoint only. Range 4-1440.')
udpGarbageCollectTmout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 22), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: udpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts: udpGarbageCollectTmout.setDescription('Units of minutes for UDP garbage collection. For multipoint only. Range 1-1440.')
dhcpClientEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpClientEnable.setStatus('obsolete')
if mibBuilder.loadTexts: dhcpClientEnable.setDescription("To enable or disable DHCP client. For multipoint SM's with NAPT enabled.")
dhcpServerEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpServerEnable.setStatus('current')
if mibBuilder.loadTexts: dhcpServerEnable.setDescription("To enable or disable DHCP server. For multipoint SM's with NAPT enabled.")
dhcpServerLeaseTime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpServerLeaseTime.setStatus('current')
if mibBuilder.loadTexts: dhcpServerLeaseTime.setDescription("Units of days for DHCP server lease time. For multipoint SM's with NAPT enabled. Range from 1-30.")
dhcpIPStart = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 26), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpIPStart.setStatus('current')
if mibBuilder.loadTexts: dhcpIPStart.setDescription('The last byte will be set for the starting IP that our DHCP server gives away. The first 3 bytes of the starting IP are the same as those of NAPT private IP')
dnsAutomatic = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("manually", 0), ("automatically", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dnsAutomatic.setStatus('current')
if mibBuilder.loadTexts: dnsAutomatic.setDescription('To have DHCP Server obtain DNS information automatically or manually.')
prefferedDNSIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 28), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: prefferedDNSIP.setStatus('current')
if mibBuilder.loadTexts: prefferedDNSIP.setDescription('The preferred DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
alternateDNSIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 29), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: alternateDNSIP.setStatus('current')
if mibBuilder.loadTexts: alternateDNSIP.setDescription('The alternate DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
dmzIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 30), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dmzIP.setStatus('current')
if mibBuilder.loadTexts: dmzIP.setDescription('Only the last byte of DMZ Host IP will be set. The first 3 bytes of DMZ IP are the same as those of NAPT private IP.')
dmzEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dmzEnable.setStatus('current')
if mibBuilder.loadTexts: dmzEnable.setDescription('To enable or disable DMZ host functionality.')
dhcpNumIPsToLease = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 32), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpNumIPsToLease.setStatus('current')
if mibBuilder.loadTexts: dhcpNumIPsToLease.setDescription('Number of IP addresses that our DHCP server can give away.')
pppoeFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeFilter.setStatus('obsolete')
if mibBuilder.loadTexts: pppoeFilter.setDescription('To set PPPoE packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
smbFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smbFilter.setStatus('obsolete')
if mibBuilder.loadTexts: smbFilter.setDescription('To set SMB packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
snmpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: snmpFilter.setDescription('To set SNMP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP1Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP1Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP1Filter.setDescription('To set user defined port 1 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP2Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP2Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP2Filter.setDescription('To set user defined port 2 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP3Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP3Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP3Filter.setDescription('To set user defined port 3 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
allOtherIpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allOtherIpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: allOtherIpFilter.setDescription('To set all other IPv4 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
upLinkBCastFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLinkBCastFilter.setStatus('obsolete')
if mibBuilder.loadTexts: upLinkBCastFilter.setDescription('This variable is currently obsolete.')
arpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: arpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: arpFilter.setDescription('To set ARP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
allOthersFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allOthersFilter.setStatus('obsolete')
if mibBuilder.loadTexts: allOthersFilter.setDescription('To set all other packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 43), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort1.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort1.setDescription('An integer value of number one user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port1TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port1TCPFilter.setDescription('To set user defined port 1 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port1UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port1UDPFilter.setDescription('To set user defined port 1 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 46), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort2.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort2.setDescription('An integer value of number two user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port2TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port2TCPFilter.setDescription('To set user defined port 2 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port2UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port2UDPFilter.setDescription('To set user defined port 2 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 49), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort3.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort3.setDescription('An integer value of number three user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port3TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port3TCPFilter.setDescription('To set user defined port 3 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port3UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port3UDPFilter.setDescription('To set user defined port 3 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootpcFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 52), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bootpcFilter.setStatus('obsolete')
if mibBuilder.loadTexts: bootpcFilter.setDescription('To set bootp client sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootpsFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bootpsFilter.setStatus('obsolete')
if mibBuilder.loadTexts: bootpsFilter.setDescription('To set bootp server sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ip4MultFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ip4MultFilter.setStatus('obsolete')
if mibBuilder.loadTexts: ip4MultFilter.setDescription('To set IPv4 MultiCast packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ingressVID = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 55), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ingressVID.setStatus('current')
if mibBuilder.loadTexts: ingressVID.setDescription('Untagged ingress VID.')
lowPriorityUplinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 56), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lowPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts: lowPriorityUplinkCIR.setDescription('Low priority uplink CIR.')
lowPriorityDownlinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 57), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lowPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts: lowPriorityDownlinkCIR.setDescription('Low priority downlink CIR.')
hiPriorityChannel = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 58), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityChannel.setStatus('current')
if mibBuilder.loadTexts: hiPriorityChannel.setDescription('To enable or disable high priority channel.')
hiPriorityUplinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 59), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts: hiPriorityUplinkCIR.setDescription('High priority uplink CIR.')
hiPriorityDownlinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 60), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts: hiPriorityDownlinkCIR.setDescription('High priority downlink CIR.')
smRateAdapt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("onex", 0), ("onextwox", 1), ("onextwoxthreex", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smRateAdapt.setStatus('obsolete')
if mibBuilder.loadTexts: smRateAdapt.setDescription('Rate adaptation parameter. 0: no rate adaptation. 1: 1x and 2x adaptation. 2: 1x,2x and 3x adaptation.')
upLnkDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 62), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkDataRate.setStatus('current')
if mibBuilder.loadTexts: upLnkDataRate.setDescription('Sustained uplink bandwidth cap.')
upLnkLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 63), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkLimit.setStatus('current')
if mibBuilder.loadTexts: upLnkLimit.setDescription('Burst uplink bandwidth cap.')
dwnLnkDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 64), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkDataRate.setStatus('current')
if mibBuilder.loadTexts: dwnLnkDataRate.setDescription('Sustained downlink bandwidth cap.')
dwnLnkLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 65), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkLimit.setStatus('current')
if mibBuilder.loadTexts: dwnLnkLimit.setDescription('Burst downlink bandwidth cap.')
dfsConfig = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dfsConfig.setStatus('obsolete')
if mibBuilder.loadTexts: dfsConfig.setDescription('To configure proper regions for Dynamic Frequency Shifting. For 5.2/5.4/5.7 GHz radios.')
ethAccessFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 67), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ethAccessFilterEnable.setStatus('obsolete')
if mibBuilder.loadTexts: ethAccessFilterEnable.setDescription('To enable or disable Ethernet Port access filtering to SM Management Functions. (0) - Ethernet access to SM Management allowed. (1) - Ethernet access to SM Management blocked.')
ipAccessFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 68), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipAccessFilterEnable.setStatus('current')
if mibBuilder.loadTexts: ipAccessFilterEnable.setDescription('To enable or disable IP access filtering to Management functions. (0) - IP access will be allowed from all addresses. (1) - IP access will be controlled using allowedIPAccess1-3 entries.')
allowedIPAccess1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 69), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess1.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess1.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowedIPAccess2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 70), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess2.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess2.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowedIPAccess3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 71), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess3.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess3.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
rfDhcpState = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 72), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfDhcpState.setStatus('current')
if mibBuilder.loadTexts: rfDhcpState.setDescription('To enable or disable RF Interface DHCP feature.')
bCastMIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 73), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("disabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bCastMIR.setStatus('current')
if mibBuilder.loadTexts: bCastMIR.setDescription('To enable and set Broadcast/ Multicast MIR feature. Use value of 0 to disable. Units are in kbps')
bhsReReg = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 74), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bhsReReg.setStatus('obsolete')
if mibBuilder.loadTexts: bhsReReg.setDescription('Allows BHS re-registration every 24 hours. Enable allows re-registration and Disable does not. 24 Hour Encryption Refresh.')
smLEDModeFlag = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("legacy", 0), ("revised", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smLEDModeFlag.setStatus('current')
if mibBuilder.loadTexts: smLEDModeFlag.setDescription('To set LED Panel Operation to Revised Mode(1) or to Legacy Mode(0)')
ethAccessEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 76), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ethAccessEnable.setStatus('current')
if mibBuilder.loadTexts: ethAccessEnable.setDescription('To enable or disable Ethernet Port access to SM Management Functions. (1) - Ethernet access to SM Management allowed. (0) - Ethernet access to SM Management blocked.')
pppoeEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 77), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeEnable.setDescription('Enable or disable PPPoE on the SM. NAT MUST be enabled prior and Translation Bridging MUST be DISABLED on the AP.')
pppoeAuthenticationType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 78), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("chap-pap", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeAuthenticationType.setStatus('current')
if mibBuilder.loadTexts: pppoeAuthenticationType.setDescription('Set the PPPoE Authentication Type to either None or CHAP/pap')
pppoeAccessConcentrator = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 79), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeAccessConcentrator.setStatus('current')
if mibBuilder.loadTexts: pppoeAccessConcentrator.setDescription('Set the PPPoE Access Concentrator Name. Less than or equal to 32 characters')
pppoeServiceName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 80), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeServiceName.setStatus('current')
if mibBuilder.loadTexts: pppoeServiceName.setDescription('Set the PPPoE Service Name. Less than or equal to 32 characters')
pppoeUserName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 81), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeUserName.setStatus('current')
if mibBuilder.loadTexts: pppoeUserName.setDescription('Set the PPPoE Username. Less than or equal to 32 characters')
pppoePassword = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 82), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoePassword.setStatus('current')
if mibBuilder.loadTexts: pppoePassword.setDescription('Set the PPPoE Password. Less than or equal to 32 characters')
pppoeTCPMSSClampEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTCPMSSClampEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeTCPMSSClampEnable.setDescription('Enable or disable TCP MSS Clamping. Enabling this will cause the SM to edit the TCP MSS in TCP SYN and SYN-ACK packets. This will allow for a workaround for MTU issues so that the TCP session will only go up to the clamped MSS. If you are using PMTUD reliably, this should not be needed.')
pppoeMTUOverrideEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 84), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeMTUOverrideEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideEnable.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used.")
pppoeMTUOverrideValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 85), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1492))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeMTUOverrideValue.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideValue.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used. Max MTU of a PPPoE link is 1492.")
pppoeTimerType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 86), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("keepAlive", 1), ("idleTimeout", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTimerType.setStatus('current')
if mibBuilder.loadTexts: pppoeTimerType.setDescription('Set the PPPoE Timer type. Can be a Keep Alive timer where the link will be checked periodically and automatically redialed if the link is down. Also could be an Idle Timeout where the link will be automatically dropped after an idle period and redialed if user data is present. Keep Alive timers are in seconds while Idle Timeout timers are in minutes.')
pppoeTimeoutPeriod = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 87), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTimeoutPeriod.setStatus('current')
if mibBuilder.loadTexts: pppoeTimeoutPeriod.setDescription('The Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes. Minimum values are 20 seconds for KeepAlive timer, and 5 minutes for Idle Timeout.')
timedSpectrumAnalysisDuration = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 88), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: timedSpectrumAnalysisDuration.setStatus('deprecated')
if mibBuilder.loadTexts: timedSpectrumAnalysisDuration.setDescription('As of release 13.0.2 this value is depricated. Please use the OID in whispBoxConfig. Value in seconds for a timed spectrum analysis. Range is 10-1000 seconds.')
spectrumAnalysisOnBoot = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 89), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisOnBoot.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisOnBoot.setDescription('To enable or disable Spectrum Analysis on boot up for one scan through the band. (0) - Disabled (1) - Enabled')
spectrumAnalysisAction = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 90), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("stopSpectrumAnalysis", 0), ("startTimedSpectrumAnalysis", 1), ("startContinuousSpectrumAnalysis", 2), ("idleNoSpectrumAnalysis", 3), ("idleCompleteSpectrumAnalysis", 4), ("inProgressTimedSpectrumAnalysis", 5), ("inProgressContinuousSpectrumAnalysis", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisAction.setStatus('deprecated')
if mibBuilder.loadTexts: spectrumAnalysisAction.setDescription('As of release 13.0.2, this OID has been deprecated. Please use the OID in whispBoxConfig. Start or stop timed or continuous Spectrum Analysis and also give status. (0) - Stop Spectrum Analysis (1) - Start Timed Spectrum Analysis (2) - Start Continuous Spectrum Analysis (3) - Idle, no Spectrum Analysis results. (4) - Idle, Spectrum Analysis results available. (5) - Timed or Remote Spectrum Analysis in progress. (6) - Continuous Spectrum Analysis in progress. Note: Continuous mode has a max of 24 hours.')
pppoeConnectOD = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 91), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("connectOnDemand", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeConnectOD.setStatus('current')
if mibBuilder.loadTexts: pppoeConnectOD.setDescription('Force a manual PPPoE connection attempt.')
pppoeDisconnectOD = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 92), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("disconnectOnDemand", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeDisconnectOD.setStatus('current')
if mibBuilder.loadTexts: pppoeDisconnectOD.setDescription('Force a manual PPPoE disconnection.')
smAntennaType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("integrated", 0), ("external", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smAntennaType.setStatus('obsolete')
if mibBuilder.loadTexts: smAntennaType.setDescription('Deprecated. See whispBoxStatus.antType for antenna type information.')
natConnectionType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("staticIP", 0), ("dhcp", 1), ("pppoe", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: natConnectionType.setStatus('current')
if mibBuilder.loadTexts: natConnectionType.setDescription('To configure the SM NAT connection type. Options are Static IP, DHCP, or PPPoE.')
wanPingReplyEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 95), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wanPingReplyEnable.setStatus('current')
if mibBuilder.loadTexts: wanPingReplyEnable.setDescription('Allow Ping replies from SM WAN interface. Applies to both NAT and PPPoE WAN interfaces.')
packetFilterDirection = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 96), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("upstream", 1), ("downstream", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: packetFilterDirection.setStatus('obsolete')
if mibBuilder.loadTexts: packetFilterDirection.setDescription('To packet filter direction when NAT is disabled. Upstream is default. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
colorCode2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 97), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode2.setStatus('current')
if mibBuilder.loadTexts: colorCode2.setDescription('Second Color code.')
colorCodepriority2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 98), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority2.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority2.setDescription('Priority setting for second color code.')
colorCode3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 99), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode3.setStatus('current')
if mibBuilder.loadTexts: colorCode3.setDescription('Third Color code.')
colorCodepriority3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 100), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority3.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority3.setDescription('Priority setting for the third color code.')
colorCode4 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 101), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode4.setStatus('current')
if mibBuilder.loadTexts: colorCode4.setDescription('Fourth Color code.')
colorCodepriority4 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 102), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority4.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority4.setDescription('Priority setting for the fourth color code.')
colorCode5 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 103), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode5.setStatus('current')
if mibBuilder.loadTexts: colorCode5.setDescription('Fifth Color code.')
colorCodepriority5 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 104), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority5.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority5.setDescription('Priority setting for the fifth color code.')
colorCode6 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 105), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode6.setStatus('current')
if mibBuilder.loadTexts: colorCode6.setDescription('Sixth Color code.')
colorCodepriority6 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 106), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority6.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority6.setDescription('Priority setting for the sixth color code.')
colorCode7 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 107), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode7.setStatus('current')
if mibBuilder.loadTexts: colorCode7.setDescription('Seventh Color code.')
colorCodepriority7 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 108), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority7.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority7.setDescription('Priority setting for the seventh color code.')
colorCode8 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 109), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode8.setStatus('current')
if mibBuilder.loadTexts: colorCode8.setDescription('Eighth Color code.')
colorCodepriority8 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 110), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority8.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority8.setDescription('Priority setting for the eighth color code.')
colorCode9 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 111), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode9.setStatus('current')
if mibBuilder.loadTexts: colorCode9.setDescription('Ninth Color code.')
colorCodepriority9 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 112), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority9.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority9.setDescription('Priority setting for the ninth color code.')
colorCode10 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 113), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode10.setStatus('current')
if mibBuilder.loadTexts: colorCode10.setDescription('Tenth Color code.')
colorCodepriority10 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 114), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority10.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority10.setDescription('Priority setting for the tenth color code.')
natDNSProxyEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 115), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: natDNSProxyEnable.setStatus('current')
if mibBuilder.loadTexts: natDNSProxyEnable.setDescription('If enabled, the SM will advertise itself as the DNS server when it sends out DHCP client leases and forward DNS queries automatically. If disabled, the SM will forward on upstream DNS server information when it sends out DHCP client leases.')
allIpv4Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 116), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allIpv4Filter.setStatus('obsolete')
if mibBuilder.loadTexts: allIpv4Filter.setDescription('To set all IPv4 packet filter when NAT is disabled. Enabling this will automatically enable all of the known IP filters (SMB, SNMP, Bootp, IPv4 Mcast, User Defined Ports, and All Other IPv4). Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
spectrumAnalysisDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 117), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("averaging", 0), ("instantaneous", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisDisplay.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisDisplay.setDescription('The display for Spectrum Analyzer: (0) - Averaging over entire period (1) - Instantaneous showing the last reading')
syslogSMXmitSetting = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 118), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("obtain-from-AP", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogSMXmitSetting.setStatus('deprecated')
if mibBuilder.loadTexts: syslogSMXmitSetting.setDescription('Obtains Syslog transmit configuration from AP/BHM if set to 0, overrides if 1 or 2. Transmits syslog data to Syslog server if enabled(1), stops if disabled (2).')
syslogServerApPreferred = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 119), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("use-local", 0), ("use-AP-preferred", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogServerApPreferred.setStatus('current')
if mibBuilder.loadTexts: syslogServerApPreferred.setDescription('Uses Syslog server configuration from AP/BHM if enabled and available, otherwise uses local configuration.')
syslogMinLevelApPreferred = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 120), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("use-local", 0), ("use-AP-preferred", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogMinLevelApPreferred.setStatus('current')
if mibBuilder.loadTexts: syslogMinLevelApPreferred.setDescription('Uses Syslog minimum transmit level configuration from AP/BHM if available, otherwise uses local configuration.')
syslogSMXmitControl = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 121), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("obtain-from-AP-default-disabled", 0), ("obtain-from-AP-default-enabled", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogSMXmitControl.setStatus('current')
if mibBuilder.loadTexts: syslogSMXmitControl.setDescription('Obtains Syslog transmit configuration from AP/BHM if available, or specifies the local transmit state.')
eapPeerAAAServerCommonName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 126), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eapPeerAAAServerCommonName.setStatus('current')
if mibBuilder.loadTexts: eapPeerAAAServerCommonName.setDescription('THIS OID IS CURRENTLY UNUSED: EAP Peer Server Common Name')
rfScanListBandFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 127), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(8, 9))).clone(namedValues=NamedValues(("band5400", 8), ("band5700", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfScanListBandFilter.setStatus('obsolete')
if mibBuilder.loadTexts: rfScanListBandFilter.setDescription('This element is obsolete.')
upLnkMaxBurstDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 128), Integer32()).setUnits('Kilobits/sec').setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts: upLnkMaxBurstDataRate.setDescription('Maximum burst uplink rate.')
dwnLnkMaxBurstDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 129), Integer32()).setUnits('Kilobits/sec').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts: dwnLnkMaxBurstDataRate.setDescription('Maximum burst downlink rate.')
cyclicPrefixScan = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 130), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cyclicPrefixScan.setStatus('current')
if mibBuilder.loadTexts: cyclicPrefixScan.setDescription('Cyclic Prefix value for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of cyclic prefixes with no spaces. For example: 1/8,1/16')
bandwidthScan = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 131), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bandwidthScan.setStatus('current')
if mibBuilder.loadTexts: bandwidthScan.setDescription('Bandwidth values for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of bandwidths. For example: 10, 20')
apSelection = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 132), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("powerLevel", 1), ("optimizeForThroughput", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apSelection.setStatus('current')
if mibBuilder.loadTexts: apSelection.setDescription("This OID affects what AP to attempt to register to when Canopy SMs scan see more than one AP that are valid in it's configuration. (0) - Default, Canopy radios after scanning select the best AP that will optimize for estimated throughput. (1) - Select the AP with the best receive power level. Note this is only if multiple APs fit the current scan configuration, and will be overriden by color codes, RADIUS, etc.")
radioBandscanConfig = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 133), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("instant", 0), ("delayed", 1), ("apply", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioBandscanConfig.setStatus('current')
if mibBuilder.loadTexts: radioBandscanConfig.setDescription('Used to determine when frequency, cyclic prefix and bandwidth settings take effect for band scanning MIMO SMs. 0 - Instant 1 - Delayed 2 - Apply changes')
forcepoweradjust = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 134), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: forcepoweradjust.setStatus('current')
if mibBuilder.loadTexts: forcepoweradjust.setDescription('This will force a multipoint SM to initiate an asynchronous power adjust sequence.')
clearBerrResults = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 135), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: clearBerrResults.setStatus('current')
if mibBuilder.loadTexts: clearBerrResults.setDescription('This will clear the BERR results.')
berrautoupdateflag = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 136), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: berrautoupdateflag.setStatus('current')
if mibBuilder.loadTexts: berrautoupdateflag.setDescription('This indicates if the once a second BERR updating of counters is enabled. 1 = enabled 0 = disabled')
testSMBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 137), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: testSMBER.setStatus('current')
if mibBuilder.loadTexts: testSMBER.setDescription('0 - Disable (Return the SM to a normal operation state). 1 - Enable (Set SM into a BERR test state).')
allowedIPAccessNMLength1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 138), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength1.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength1.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowedIPAccessNMLength2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 139), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength2.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength2.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowedIPAccessNMLength3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 140), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength3.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength3.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
naptRemoteManage = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 141), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disable", 0), ("enable-standalone", 1), ("enable-wan", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRemoteManage.setStatus('current')
if mibBuilder.loadTexts: naptRemoteManage.setDescription('To enable or disable Remote Management. For multipoint only. 0=Disable Remote Management, 1=Enable - Standalone Config, 2=Enable - Use WAN Interface.')
spectrumAnalysisScanBandwidth = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 142), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("bandwidth5MHz", 0), ("bandwidth10MHz", 1), ("bandwidth20MHz", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisScanBandwidth.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisScanBandwidth.setDescription('Scanning Bandwidth used for the Spectrum Analyzer. Only available on PMP 450.')
berDeModSelect = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 143), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("qpsk", 0), ("qam-16", 1), ("qam-64", 2), ("qam-256", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: berDeModSelect.setStatus('current')
if mibBuilder.loadTexts: berDeModSelect.setDescription('The BER demodulation level the SM is set. 0 for QPSK, 1 for 16-QAM, 2 for 64-QAM, and 3 for 256-QAM.')
multicastVCRcvRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 144), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: multicastVCRcvRate.setStatus('current')
if mibBuilder.loadTexts: multicastVCRcvRate.setDescription('Multicast VC Receive Rate')
pmp430ApRegistrationOptions = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 145), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pmp430", 1), ("pmp450", 2), ("both", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pmp430ApRegistrationOptions.setStatus('current')
if mibBuilder.loadTexts: pmp430ApRegistrationOptions.setDescription('Selects AP types (430 and/or 450) that are available for the PMP430 SM. When both AP types are selected, if the SM does not register to an AP, it will reboot to scan the other AP type.')
switchRadioModeAndReboot = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 146), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("finishedReboot", 0), ("switchRadioModeAndReboot", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: switchRadioModeAndReboot.setStatus('current')
if mibBuilder.loadTexts: switchRadioModeAndReboot.setDescription('Setting this to 1 will force switch the SM to the other radio mode and immediately reboot the unit. When the unit finishes rebooting, it will be in finishedReboot state. Only will be allowed to be set if both registration options are configured. PMP 430 SM only. Introduced in release 12.2.')
numAuthCerts = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: numAuthCerts.setStatus('current')
if mibBuilder.loadTexts: numAuthCerts.setDescription('can have a max value of 2')
authenticationEnforce = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disable", 0), ("aaa", 1), ("presharedkey", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authenticationEnforce.setStatus('current')
if mibBuilder.loadTexts: authenticationEnforce.setDescription('enforce SM to register with specifed Auth Enabled AP')
phase1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("eapttls", 0), ("eapMSChapV2", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: phase1.setStatus('current')
if mibBuilder.loadTexts: phase1.setDescription('Select the outer method for EAP Authentication')
phase2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("pap", 0), ("chap", 1), ("mschapv2", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: phase2.setStatus('current')
if mibBuilder.loadTexts: phase2.setDescription('Select the outer method for EAP Authentication')
authOuterId = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 253))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authOuterId.setStatus('current')
if mibBuilder.loadTexts: authOuterId.setDescription('EAP Peer Username')
authPassword = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authPassword.setStatus('current')
if mibBuilder.loadTexts: authPassword.setDescription('EAP Peer password')
authUsername = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authUsername.setStatus('current')
if mibBuilder.loadTexts: authUsername.setDescription('EAP Peer Identity')
useRealm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: useRealm.setStatus('current')
if mibBuilder.loadTexts: useRealm.setDescription('Enable or disable the use of realm option.')
realm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: realm.setStatus('current')
if mibBuilder.loadTexts: realm.setDescription('EAP Peer Realm')
certTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1), )
if mibBuilder.loadTexts: certTable.setStatus('current')
if mibBuilder.loadTexts: certTable.setDescription('The table of CA Certificates on SM.')
certEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1), ).setIndexNames((0, "WHISP-SM-MIB", "certIndex"))
if mibBuilder.loadTexts: certEntry.setStatus('current')
if mibBuilder.loadTexts: certEntry.setDescription('Entry of Certifcates.')
certIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: certIndex.setStatus('current')
if mibBuilder.loadTexts: certIndex.setDescription('User information table index.')
cert = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("inactive", 0), ("active", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cert.setStatus('current')
if mibBuilder.loadTexts: cert.setDescription('0: Inactive 1: Active')
action = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noop", 0), ("delete", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: action.setStatus('current')
if mibBuilder.loadTexts: action.setDescription('0: No Operation 1: Delete Certificate')
certificateDN = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: certificateDN.setStatus('current')
if mibBuilder.loadTexts: certificateDN.setDescription('Distinguished Name of Certificate 2')
sessionStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sessionStatus.setStatus('current')
if mibBuilder.loadTexts: sessionStatus.setDescription('SM registered or not.')
rssi = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rssi.setStatus('current')
if mibBuilder.loadTexts: rssi.setDescription('Radio signal strength index. FSK only.')
jitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: jitter.setStatus('current')
if mibBuilder.loadTexts: jitter.setDescription('A measure of multipath interference. Applicable to FSK radios only.')
airDelay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: airDelay.setStatus('current')
if mibBuilder.loadTexts: airDelay.setDescription('Round trip delay in bits.')
radioSlicingSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioSlicingSm.setStatus('obsolete')
if mibBuilder.loadTexts: radioSlicingSm.setDescription('This variable is deprecated.')
radioTxGainSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioTxGainSm.setStatus('current')
if mibBuilder.loadTexts: radioTxGainSm.setDescription('Radio transmission gain setting. Applicable to FSK radios only.')
calibrationStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: calibrationStatus.setStatus('deprecated')
if mibBuilder.loadTexts: calibrationStatus.setDescription('Varible deprecated. Please use calibrationStatusBox.')
radioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbm.setStatus('current')
if mibBuilder.loadTexts: radioDbm.setDescription('Rx Power level. For MIMO this is the combined power of the horizontal and vertical paths.')
registeredToAp = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: registeredToAp.setStatus('current')
if mibBuilder.loadTexts: registeredToAp.setDescription('AP MAC address that the SM registered to.')
dhcpCip = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 10), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpCip.setStatus('current')
if mibBuilder.loadTexts: dhcpCip.setDescription('Assigned IP address to DHCP client.')
dhcpSip = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 11), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpSip.setStatus('current')
if mibBuilder.loadTexts: dhcpSip.setDescription('Public DHCP server IP.')
dhcpClientLease = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 12), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpClientLease.setStatus('current')
if mibBuilder.loadTexts: dhcpClientLease.setDescription('DHCP client lease time.')
dhcpCSMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 13), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpCSMask.setStatus('current')
if mibBuilder.loadTexts: dhcpCSMask.setDescription('Public DHCP server subnet mask.')
dhcpDfltRterIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 14), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpDfltRterIP.setStatus('current')
if mibBuilder.loadTexts: dhcpDfltRterIP.setDescription('Public default router IP address.')
dhcpcdns1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns1.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns1.setDescription('Primary public domain name server.')
dhcpcdns2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 16), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns2.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns2.setDescription('Secondary public domain name server.')
dhcpcdns3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 17), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns3.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns3.setDescription('Third public domain name server.')
dhcpDomName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 18), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpDomName.setStatus('current')
if mibBuilder.loadTexts: dhcpDomName.setDescription('Public domain name server.')
adaptRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 20), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRate.setStatus('current')
if mibBuilder.loadTexts: adaptRate.setDescription('VC adapt rate.')
radioDbmInt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmInt.setStatus('current')
if mibBuilder.loadTexts: radioDbmInt.setDescription('Radio power level(integer). For MIMO radios this is the combined power of the horiztontal and vertical paths.')
dfsStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 22), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dfsStatus.setStatus('current')
if mibBuilder.loadTexts: dfsStatus.setDescription('Dynamic frequency shifting status. For DFS Radio only.')
radioTxPwr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 23), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioTxPwr.setStatus('current')
if mibBuilder.loadTexts: radioTxPwr.setDescription('Tx Power level. Valid for FSK and OFDM SMs.')
activeRegion = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 24), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: activeRegion.setStatus('current')
if mibBuilder.loadTexts: activeRegion.setDescription('The active region of the radio.')
snmpBerLevel = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 4, 6, 8))).clone(namedValues=NamedValues(("twoLevelOrMimoQPSK", 2), ("fourLevelOrMimo16QAM", 4), ("mimo64QAM", 6), ("mimo256QAM", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snmpBerLevel.setStatus('current')
if mibBuilder.loadTexts: snmpBerLevel.setDescription('BER level. For PMP450 systems: 2=MIMO QPSK, 4=MIMO 16-QAM, 6=MIMO64-QAM, 8=256-QAM For non PMP450: 2=2 level BER, 4=4 level BER.')
nbBitsRcvd = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 26), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbBitsRcvd.setStatus('current')
if mibBuilder.loadTexts: nbBitsRcvd.setDescription('Number of BER bits received (non MIMO platforms only).')
nbPriBitsErr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbPriBitsErr.setStatus('current')
if mibBuilder.loadTexts: nbPriBitsErr.setDescription('Number of Primary bit errors (non MIMO platforms only).')
nbSndBitsErr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbSndBitsErr.setStatus('current')
if mibBuilder.loadTexts: nbSndBitsErr.setDescription('Number of secondary bit errors (non MIMO platforms only).')
primaryBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 29), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: primaryBER.setStatus('obsolete')
if mibBuilder.loadTexts: primaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Primary Bit Error Rate.')
secondaryBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 30), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: secondaryBER.setStatus('obsolete')
if mibBuilder.loadTexts: secondaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Secondary Bit Error Rate.')
totalBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 31), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: totalBER.setStatus('obsolete')
if mibBuilder.loadTexts: totalBER.setDescription('Obsoleted, invalid type to represent this data. Measured Total Bit Error Rate.')
minRSSI = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 32), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minRSSI.setStatus('current')
if mibBuilder.loadTexts: minRSSI.setDescription('Measured Min. RSSI. Applicable to FSK radios only.')
maxRSSI = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 33), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRSSI.setStatus('current')
if mibBuilder.loadTexts: maxRSSI.setDescription('Measured Max. RSSI. Applicable to FSK radios only.')
minJitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 34), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: minJitter.setStatus('current')
if mibBuilder.loadTexts: minJitter.setDescription('Measured Min. Jitter. Applicable to FSK radios only.')
maxJitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 35), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxJitter.setStatus('current')
if mibBuilder.loadTexts: maxJitter.setDescription('Measured Max. Jitter. Applicable to FSK radios only.')
smSessionTimer = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 36), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: smSessionTimer.setStatus('current')
if mibBuilder.loadTexts: smSessionTimer.setDescription('SM current session timer.')
pppoeSessionStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 37), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessionStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeSessionStatus.setDescription('Current PPPoE Session Status')
pppoeSessionID = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 38), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessionID.setStatus('current')
if mibBuilder.loadTexts: pppoeSessionID.setDescription('Current PPPoE Session ID')
pppoeIPCPAddress = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 39), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeIPCPAddress.setStatus('current')
if mibBuilder.loadTexts: pppoeIPCPAddress.setDescription('Current PPPoE IPCP IP Address')
pppoeMTUOverrideEn = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeMTUOverrideEn.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideEn.setDescription('Current PPPoE MTU Override Setting')
pppoeMTUValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 41), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeMTUValue.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUValue.setDescription('Current PPPoE MTU Value')
pppoeTimerTypeValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disabled", 0), ("keepAlive", 1), ("idleTimeout", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTimerTypeValue.setStatus('current')
if mibBuilder.loadTexts: pppoeTimerTypeValue.setDescription('Current PPPoE Timer Type. 0 is disabled, 1 is Keep Alive timer, and 2 is Idle Timeout timer.')
pppoeTimeoutValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 43), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTimeoutValue.setStatus('current')
if mibBuilder.loadTexts: pppoeTimeoutValue.setDescription('Current PPPoE Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes.')
pppoeDNSServer1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 44), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDNSServer1.setStatus('current')
if mibBuilder.loadTexts: pppoeDNSServer1.setDescription('PPPoE DNS Server 1')
pppoeDNSServer2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 45), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDNSServer2.setStatus('current')
if mibBuilder.loadTexts: pppoeDNSServer2.setDescription('PPPoE DNS Server 2')
pppoeControlBytesSent = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeControlBytesSent.setStatus('current')
if mibBuilder.loadTexts: pppoeControlBytesSent.setDescription('PPPoE Control Bytes Sent')
pppoeControlBytesReceived = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeControlBytesReceived.setStatus('current')
if mibBuilder.loadTexts: pppoeControlBytesReceived.setDescription('PPPoE Control Bytes Received')
pppoeDataBytesSent = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 48), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDataBytesSent.setStatus('current')
if mibBuilder.loadTexts: pppoeDataBytesSent.setDescription('PPPoE Data Bytes Sent')
pppoeDataBytesReceived = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 49), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDataBytesReceived.setStatus('current')
if mibBuilder.loadTexts: pppoeDataBytesReceived.setDescription('PPPoE Data Bytes Received')
pppoeEnabledStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeEnabledStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeEnabledStatus.setDescription('PPPoE Enabled')
pppoeTCPMSSClampEnableStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTCPMSSClampEnableStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeTCPMSSClampEnableStatus.setDescription('PPPoE TCP MSS Clamping Enable')
pppoeACNameStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 52), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeACNameStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeACNameStatus.setDescription('Current PPPoE Access Concentrator In Use')
pppoeSvcNameStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 53), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSvcNameStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeSvcNameStatus.setDescription('Current PPPoE Service Name In Use')
pppoeSessUptime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 54), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessUptime.setStatus('current')
if mibBuilder.loadTexts: pppoeSessUptime.setDescription('Uptime of current PPPoE Session in ticks')
primaryBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 55), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: primaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts: primaryBERDisplay.setDescription('Measured Primary Bit Error Rate. Non MIMO platforms only.')
secondaryBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 56), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: secondaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts: secondaryBERDisplay.setDescription('Measured Secondary Bit Error Rate. FSK platforms only.')
totalBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 57), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: totalBERDisplay.setStatus('current')
if mibBuilder.loadTexts: totalBERDisplay.setDescription('Measured Total Bit Error Rate. For MIMO this is combined both paths.')
minRadioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 58), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minRadioDbm.setStatus('current')
if mibBuilder.loadTexts: minRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
maxRadioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 59), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRadioDbm.setStatus('current')
if mibBuilder.loadTexts: maxRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
pppoeSessIdleTime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 60), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessIdleTime.setStatus('current')
if mibBuilder.loadTexts: pppoeSessIdleTime.setDescription('Idle Time of current PPPoE Session in ticks')
radioDbmAvg = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 61), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmAvg.setStatus('current')
if mibBuilder.loadTexts: radioDbmAvg.setDescription("Average Receive Power of the AP's beacon in dBm. OFDM Radios only. For MIMO this is only the verical path, as the beacon is not transmitted on horizontal.")
zoltarFPGAFreqOffset = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 62), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zoltarFPGAFreqOffset.setStatus('current')
if mibBuilder.loadTexts: zoltarFPGAFreqOffset.setDescription('FPGA peek of 70001088')
zoltarSWFreqOffset = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 63), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zoltarSWFreqOffset.setStatus('current')
if mibBuilder.loadTexts: zoltarSWFreqOffset.setDescription('FPGA peek of 7000108C')
airDelayns = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 64), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: airDelayns.setStatus('current')
if mibBuilder.loadTexts: airDelayns.setDescription('Round trip delay in nanoseconds.')
currentColorCode = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 65), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentColorCode.setStatus('current')
if mibBuilder.loadTexts: currentColorCode.setDescription('The current Color Code of the Registered AP/BHM. A value of -1 is return when the device is not registered.')
currentColorCodePri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("primary", 1), ("secondary", 2), ("tertiary", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentColorCodePri.setStatus('current')
if mibBuilder.loadTexts: currentColorCodePri.setDescription('The current priority of the Registered color code')
currentChanFreq = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 67), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentChanFreq.setStatus('current')
if mibBuilder.loadTexts: currentChanFreq.setDescription('The Current Channel Frequency of the AP/BHM when in session.')
linkQualityBeacon = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 68), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityBeacon.setStatus('current')
if mibBuilder.loadTexts: linkQualityBeacon.setDescription('Engineering only. Link Quality for incoming beacons. For Gen II OFDM radios and forward. For PMP450 and forward this is vertical path.')
dhcpServerPktXmt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktXmt.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktXmt.setDescription('Number of packets transmitted by SM DHCP Server')
dhcpServerPktRcv = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktRcv.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktRcv.setDescription('Number of packets received by SM DHCP Server')
dhcpServerPktToss = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 74), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktToss.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktToss.setDescription('Number of packets tossed by SM DHCP Server')
receiveFragmentsModulationPercentage = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 86), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: receiveFragmentsModulationPercentage.setStatus('current')
if mibBuilder.loadTexts: receiveFragmentsModulationPercentage.setDescription('Engineering use only. The percentage of recent fragments received at which modulation. For Gen II OFDM only and forward.')
fragmentsReceived1XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 87), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived1XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived1XVertical.setDescription('Engineering use only. Number of fragments received in 1x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived2XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 88), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived2XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived2XVertical.setDescription('Engineering use only. Number of fragments received in 2x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived3XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 89), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived3XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived3XVertical.setDescription('Engineering use only. Number of fragments received in 3x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived4XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 90), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived4XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived4XVertical.setDescription('Engineering use only. Number of fragments received in 4x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
linkQualityData1XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 91), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData1XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData1XVertical.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData2XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 92), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData2XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData2XVertical.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData3XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 93), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData3XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData3XVertical.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData4XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 94), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData4XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData4XVertical.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
signalToNoiseRatioSMVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 95), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalToNoiseRatioSMVertical.setStatus('current')
if mibBuilder.loadTexts: signalToNoiseRatioSMVertical.setDescription('An estimated signal to noise ratio based on the last received data. For GenII OFDM only and forward. For MIMO this is the vertical antenna. Will return zero if Signal to Noise Ratio Calculation is disabled.')
rfStatTxSuppressionCount = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 96), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rfStatTxSuppressionCount.setStatus('current')
if mibBuilder.loadTexts: rfStatTxSuppressionCount.setDescription('RF Scheduler Stats DFS TX Suppression Count')
bridgecbUplinkCreditRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 97), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkCreditRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecbUplinkCreditLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 98), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkCreditLimit.setDescription('Uplink Burst Allocation.')
bridgecbDownlinkCreditRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 99), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkCreditRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecbDownlinkCreditLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 100), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkCreditLimit.setDescription('Uplink Burst Allocation.')
mimoQpskBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 101), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimoQpskBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimoQpskBerDisplay.setDescription('QPSK BER statistics. MIMO platforms only.')
mimo16QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 102), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo16QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo16QamBerDisplay.setDescription('16-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo64QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 103), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo64QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo64QamBerDisplay.setDescription('64-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo256QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 104), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo256QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo256QamBerDisplay.setDescription('256-QAM BER statistics MIMO platforms only. Engineering use only.')
mimoBerRcvModulationType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 105), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimoBerRcvModulationType.setStatus('current')
if mibBuilder.loadTexts: mimoBerRcvModulationType.setDescription('Receive modulation type. MIMO platforms only.')
signalToNoiseRatioSMHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 106), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalToNoiseRatioSMHorizontal.setStatus('current')
if mibBuilder.loadTexts: signalToNoiseRatioSMHorizontal.setDescription('An estimated signal to noise ratio based on the last received data for horizontal antenna. MIMO radios only. Will return zero if Signal to Noise Ratio Calculation is disabled.')
maxRadioDbmDeprecated = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 107), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRadioDbmDeprecated.setStatus('deprecated')
if mibBuilder.loadTexts: maxRadioDbmDeprecated.setDescription('This OID was inadvertently moved in 12.0.2. Please use maxRadioDbm. This OID is deprecated and kept for backwards compatibility.')
signalStrengthRatio = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 108), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalStrengthRatio.setStatus('current')
if mibBuilder.loadTexts: signalStrengthRatio.setDescription('Signal Strength Ratio in dB is the power received by the vertical antenna input (dB) - power received by the horizontal antenna input (dB). MIMO radios only.')
fragmentsReceived1XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 109), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived1XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived1XHorizontal.setDescription('Engineering use only. Number of fragments received in 1x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived2XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 110), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived2XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived2XHorizontal.setDescription('Engineering use only. Number of fragments received in 2x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived3XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 111), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived3XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived3XHorizontal.setDescription('Engineering use only. Number of fragments received in 3x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived4XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 112), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived4XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived4XHorizontal.setDescription('Engineering use only. Number of fragments received in 4x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData1XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 113), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData1XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData1XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData2XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 114), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData2XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData2XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData3XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 115), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData3XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData3XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData4XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 116), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData4XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData4XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For MIMO radios only. For MIMO this is the horizontal path.')
radioDbmHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 117), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmHorizontal.setStatus('current')
if mibBuilder.loadTexts: radioDbmHorizontal.setDescription('Receive power level of the horizontal antenna in dBm. MIMO radios only.')
radioDbmVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 118), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmVertical.setStatus('current')
if mibBuilder.loadTexts: radioDbmVertical.setDescription('Receive power level of the vertical antenna in dBm. MIMO radios only.')
bridgecbDownlinkMaxBurstBitRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 119), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkMaxBurstBitRate.setDescription('Maximum burst downlink rate.')
bridgecbUplinkMaxBurstBitRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 120), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkMaxBurstBitRate.setDescription('Maximum burst uplink Rate.')
currentCyclicPrefix = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 121), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("one-quarter", 0), ("one-eighth", 1), ("one-sixteenth", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentCyclicPrefix.setStatus('current')
if mibBuilder.loadTexts: currentCyclicPrefix.setDescription('The Current Cyclic Prefix of the AP/BHM when in session.')
currentBandwidth = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 122), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 5))).clone(namedValues=NamedValues(("bandwidth5mhz", 1), ("bandwidth10mhz", 3), ("bandwidth20mhz", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentBandwidth.setStatus('current')
if mibBuilder.loadTexts: currentBandwidth.setDescription('The Current Bandwidth of the AP/BHM when in session.')
berPwrRxFPGAPathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 123), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: berPwrRxFPGAPathA.setStatus('current')
if mibBuilder.loadTexts: berPwrRxFPGAPathA.setDescription('BER power level on FPGA Rx Path A of SM.')
berPwrRxFPGAPathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 124), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: berPwrRxFPGAPathB.setStatus('current')
if mibBuilder.loadTexts: berPwrRxFPGAPathB.setDescription('BER power level on FPGA Rx Path B of SM.')
rawBERPwrRxPathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 125), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rawBERPwrRxPathA.setStatus('current')
if mibBuilder.loadTexts: rawBERPwrRxPathA.setDescription('Raw unadjusted BER power level on FPGA Rx Path A of SM.')
rawBERPwrRxPathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 126), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rawBERPwrRxPathB.setStatus('current')
if mibBuilder.loadTexts: rawBERPwrRxPathB.setDescription('Raw unadjusted BER power level on FPGA Rx Path B of SM.')
radioModeStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 127), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("undefined", 0), ("pmp430", 1), ("pmp450Interoperability", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioModeStatus.setStatus('current')
if mibBuilder.loadTexts: radioModeStatus.setDescription('The current radio mode that SM is operating in. PMP 430 SMs only. Introduced in release 12.2.')
adaptRateLowPri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 128), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 6, 8))).clone(namedValues=NamedValues(("noSession", 0), ("rate1X", 1), ("rate2X", 2), ("rete3X", 3), ("rate4X", 4), ("rate6X", 6), ("rate8X", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRateLowPri.setStatus('current')
if mibBuilder.loadTexts: adaptRateLowPri.setDescription('The current transmitting rate of the low priority VC. 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
adaptRateHighPri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 129), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(-1, 0, 1, 2, 3, 4, 6, 8))).clone(namedValues=NamedValues(("noHighPriorityChannel", -1), ("noSession", 0), ("rate1X", 1), ("rate2X", 2), ("rete3X", 3), ("rate4X", 4), ("rate6X", 6), ("rate8X", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRateHighPri.setStatus('current')
if mibBuilder.loadTexts: adaptRateHighPri.setDescription('The current transmitting rate of the high priority VC. -1 : High Priority Channel not configured 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
bitErrorsQSPKpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 130), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrorsQSPKpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrorsQSPKpathA.setDescription('Number of bit errors received from BER packet at QPSK path A. Valid MIMO platforms only.')
bitErrorsQSPKpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 131), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrorsQSPKpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrorsQSPKpathB.setDescription('Number of bit errors received from BER packet at QPSK path B. Valid MIMO platforms only.')
bitErrors16QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 132), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors16QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors16QAMpathA.setDescription('Number of bit errors received from BER packet at 16-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors16QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 133), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors16QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors16QAMpathB.setDescription('Number of bit errors received from BER packet at 16-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitErrors64QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 134), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors64QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors64QAMpathA.setDescription('Number of bit errors received from BER packet at 64-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors64QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 135), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors64QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors64QAMpathB.setDescription('Number of bit errors received from BER packet at 64-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitErrors256QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 136), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors256QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors256QAMpathA.setDescription('Number of bit errors received from BER packet at 256-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors256QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 137), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors256QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors256QAMpathB.setDescription('Number of bit errors received from BER packet at 256-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitsReceivedPerPathModulation = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 138), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitsReceivedPerPathModulation.setStatus('current')
if mibBuilder.loadTexts: bitsReceivedPerPathModulation.setDescription('Number of bit received from BER. To calculate Bit Error Rate, take bit errors at a modulation and path and divide by this OID. To get combined BER add errors and divide by this multiplied by each path and modulation. i.e. MIMO QPSK combined BER = ((errors on path A) + (errors on path B))/(bits recieved per path modulation * 2) Valid MIMO platforms only.')
dhcpServerTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19), )
if mibBuilder.loadTexts: dhcpServerTable.setStatus('current')
if mibBuilder.loadTexts: dhcpServerTable.setDescription('The table of DHCP server hosts.')
dhcpServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1), ).setIndexNames((0, "WHISP-SM-MIB", "hostIp"))
if mibBuilder.loadTexts: dhcpServerEntry.setStatus('current')
if mibBuilder.loadTexts: dhcpServerEntry.setDescription('Entry of DHCP server hosts.')
hostIp = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIp.setStatus('current')
if mibBuilder.loadTexts: hostIp.setDescription('DHCP server IP address.')
hostMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 2), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostMacAddress.setStatus('current')
if mibBuilder.loadTexts: hostMacAddress.setDescription('Private host MAC address.')
hostLease = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostLease.setStatus('current')
if mibBuilder.loadTexts: hostLease.setDescription('Lease time assigned by DHCP server host.')
whispSmConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 1)).setObjects(("WHISP-SM-MIB", "rfScanList"), ("WHISP-SM-MIB", "rfScanListBandFilter"), ("WHISP-SM-MIB", "powerUpMode"), ("WHISP-SM-MIB", "lanIpSm"), ("WHISP-SM-MIB", "lanMaskSm"), ("WHISP-SM-MIB", "defaultGwSm"), ("WHISP-SM-MIB", "networkAccess"), ("WHISP-SM-MIB", "authKeySm"), ("WHISP-SM-MIB", "enable8023link"), ("WHISP-SM-MIB", "authKeyOption"), ("WHISP-SM-MIB", "timingPulseGated"), ("WHISP-SM-MIB", "naptPrivateIP"), ("WHISP-SM-MIB", "naptPrivateSubnetMask"), ("WHISP-SM-MIB", "naptPublicIP"), ("WHISP-SM-MIB", "naptPublicSubnetMask"), ("WHISP-SM-MIB", "naptPublicGatewayIP"), ("WHISP-SM-MIB", "naptRFPublicIP"), ("WHISP-SM-MIB", "naptRFPublicSubnetMask"), ("WHISP-SM-MIB", "naptRFPublicGateway"), ("WHISP-SM-MIB", "naptEnable"), ("WHISP-SM-MIB", "arpCacheTimeout"), ("WHISP-SM-MIB", "tcpGarbageCollectTmout"), ("WHISP-SM-MIB", "udpGarbageCollectTmout"), ("WHISP-SM-MIB", "dhcpClientEnable"), ("WHISP-SM-MIB", "dhcpServerEnable"), ("WHISP-SM-MIB", "dhcpServerLeaseTime"), ("WHISP-SM-MIB", "dhcpIPStart"), ("WHISP-SM-MIB", "dnsAutomatic"), ("WHISP-SM-MIB", "prefferedDNSIP"), ("WHISP-SM-MIB", "alternateDNSIP"), ("WHISP-SM-MIB", "natDNSProxyEnable"), ("WHISP-SM-MIB", "spectrumAnalysisDisplay"), ("WHISP-SM-MIB", "dmzIP"), ("WHISP-SM-MIB", "dmzEnable"), ("WHISP-SM-MIB", "dhcpNumIPsToLease"), ("WHISP-SM-MIB", "pppoeFilter"), ("WHISP-SM-MIB", "smbFilter"), ("WHISP-SM-MIB", "snmpFilter"), ("WHISP-SM-MIB", "userP1Filter"), ("WHISP-SM-MIB", "userP2Filter"), ("WHISP-SM-MIB", "userP3Filter"), ("WHISP-SM-MIB", "allOtherIpFilter"), ("WHISP-SM-MIB", "allIpv4Filter"), ("WHISP-SM-MIB", "upLinkBCastFilter"), ("WHISP-SM-MIB", "arpFilter"), ("WHISP-SM-MIB", "allOthersFilter"), ("WHISP-SM-MIB", "userDefinedPort1"), ("WHISP-SM-MIB", "port1TCPFilter"), ("WHISP-SM-MIB", "port1UDPFilter"), ("WHISP-SM-MIB", "userDefinedPort2"), ("WHISP-SM-MIB", "port2TCPFilter"), ("WHISP-SM-MIB", "port2UDPFilter"), ("WHISP-SM-MIB", "userDefinedPort3"), ("WHISP-SM-MIB", "port3TCPFilter"), ("WHISP-SM-MIB", "port3UDPFilter"), ("WHISP-SM-MIB", "bootpcFilter"), ("WHISP-SM-MIB", "bootpsFilter"), ("WHISP-SM-MIB", "ip4MultFilter"), ("WHISP-SM-MIB", "ingressVID"), ("WHISP-SM-MIB", "lowPriorityUplinkCIR"), ("WHISP-SM-MIB", "lowPriorityDownlinkCIR"), ("WHISP-SM-MIB", "hiPriorityChannel"), ("WHISP-SM-MIB", "hiPriorityUplinkCIR"), ("WHISP-SM-MIB", "hiPriorityDownlinkCIR"), ("WHISP-SM-MIB", "smRateAdapt"), ("WHISP-SM-MIB", "upLnkMaxBurstDataRate"), ("WHISP-SM-MIB", "upLnkDataRate"), ("WHISP-SM-MIB", "upLnkLimit"), ("WHISP-SM-MIB", "dwnLnkMaxBurstDataRate"), ("WHISP-SM-MIB", "cyclicPrefixScan"), ("WHISP-SM-MIB", "bandwidthScan"), ("WHISP-SM-MIB", "apSelection"), ("WHISP-SM-MIB", "radioBandscanConfig"), ("WHISP-SM-MIB", "forcepoweradjust"), ("WHISP-SM-MIB", "clearBerrResults"), ("WHISP-SM-MIB", "berrautoupdateflag"), ("WHISP-SM-MIB", "testSMBER"), ("WHISP-SM-MIB", "dwnLnkDataRate"), ("WHISP-SM-MIB", "dwnLnkLimit"), ("WHISP-SM-MIB", "dfsConfig"), ("WHISP-SM-MIB", "ethAccessFilterEnable"), ("WHISP-SM-MIB", "ipAccessFilterEnable"), ("WHISP-SM-MIB", "allowedIPAccess1"), ("WHISP-SM-MIB", "allowedIPAccess2"), ("WHISP-SM-MIB", "allowedIPAccess3"), ("WHISP-SM-MIB", "allowedIPAccessNMLength1"), ("WHISP-SM-MIB", "allowedIPAccessNMLength2"), ("WHISP-SM-MIB", "allowedIPAccessNMLength3"), ("WHISP-SM-MIB", "rfDhcpState"), ("WHISP-SM-MIB", "bCastMIR"), ("WHISP-SM-MIB", "bhsReReg"), ("WHISP-SM-MIB", "smLEDModeFlag"), ("WHISP-SM-MIB", "ethAccessEnable"), ("WHISP-SM-MIB", "pppoeEnable"), ("WHISP-SM-MIB", "pppoeAuthenticationType"), ("WHISP-SM-MIB", "pppoeAccessConcentrator"), ("WHISP-SM-MIB", "pppoeServiceName"), ("WHISP-SM-MIB", "pppoeUserName"), ("WHISP-SM-MIB", "pppoePassword"), ("WHISP-SM-MIB", "pppoeTCPMSSClampEnable"), ("WHISP-SM-MIB", "pppoeMTUOverrideEnable"), ("WHISP-SM-MIB", "pppoeMTUOverrideValue"), ("WHISP-SM-MIB", "pppoeTimerType"), ("WHISP-SM-MIB", "pppoeTimeoutPeriod"), ("WHISP-SM-MIB", "timedSpectrumAnalysisDuration"), ("WHISP-SM-MIB", "spectrumAnalysisScanBandwidth"), ("WHISP-SM-MIB", "spectrumAnalysisOnBoot"), ("WHISP-SM-MIB", "spectrumAnalysisAction"), ("WHISP-SM-MIB", "pppoeConnectOD"), ("WHISP-SM-MIB", "pppoeDisconnectOD"), ("WHISP-SM-MIB", "smAntennaType"), ("WHISP-SM-MIB", "natConnectionType"), ("WHISP-SM-MIB", "wanPingReplyEnable"), ("WHISP-SM-MIB", "packetFilterDirection"), ("WHISP-SM-MIB", "colorCode2"), ("WHISP-SM-MIB", "colorCodepriority2"), ("WHISP-SM-MIB", "colorCode3"), ("WHISP-SM-MIB", "colorCodepriority3"), ("WHISP-SM-MIB", "colorCode4"), ("WHISP-SM-MIB", "colorCodepriority4"), ("WHISP-SM-MIB", "colorCode5"), ("WHISP-SM-MIB", "colorCodepriority5"), ("WHISP-SM-MIB", "colorCode6"), ("WHISP-SM-MIB", "colorCodepriority6"), ("WHISP-SM-MIB", "colorCode7"), ("WHISP-SM-MIB", "colorCodepriority7"), ("WHISP-SM-MIB", "colorCode8"), ("WHISP-SM-MIB", "colorCodepriority8"), ("WHISP-SM-MIB", "colorCode9"), ("WHISP-SM-MIB", "colorCodepriority9"), ("WHISP-SM-MIB", "colorCode10"), ("WHISP-SM-MIB", "colorCodepriority10"), ("WHISP-SM-MIB", "berDeModSelect"), ("WHISP-SM-MIB", "multicastVCRcvRate"), ("WHISP-SM-MIB", "syslogServerApPreferred"), ("WHISP-SM-MIB", "syslogMinLevelApPreferred"), ("WHISP-SM-MIB", "syslogSMXmitSetting"), ("WHISP-SM-MIB", "syslogSMXmitControl"), ("WHISP-SM-MIB", "naptRemoteManage"), ("WHISP-SM-MIB", "eapPeerAAAServerCommonName"), ("WHISP-SM-MIB", "pmp430ApRegistrationOptions"), ("WHISP-SM-MIB", "switchRadioModeAndReboot"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmConfigGroup = whispSmConfigGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmConfigGroup.setDescription('Canopy Subscriber Module configuration group.')
whispSmStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 2)).setObjects(("WHISP-SM-MIB", "sessionStatus"), ("WHISP-SM-MIB", "rssi"), ("WHISP-SM-MIB", "jitter"), ("WHISP-SM-MIB", "airDelay"), ("WHISP-SM-MIB", "radioSlicingSm"), ("WHISP-SM-MIB", "radioTxGainSm"), ("WHISP-SM-MIB", "calibrationStatus"), ("WHISP-SM-MIB", "radioDbm"), ("WHISP-SM-MIB", "registeredToAp"), ("WHISP-SM-MIB", "dhcpCip"), ("WHISP-SM-MIB", "dhcpSip"), ("WHISP-SM-MIB", "dhcpClientLease"), ("WHISP-SM-MIB", "dhcpCSMask"), ("WHISP-SM-MIB", "dhcpDfltRterIP"), ("WHISP-SM-MIB", "dhcpcdns1"), ("WHISP-SM-MIB", "dhcpcdns2"), ("WHISP-SM-MIB", "dhcpcdns3"), ("WHISP-SM-MIB", "dhcpDomName"), ("WHISP-SM-MIB", "adaptRate"), ("WHISP-SM-MIB", "adaptRateLowPri"), ("WHISP-SM-MIB", "adaptRateHighPri"), ("WHISP-SM-MIB", "bitErrorsQSPKpathA"), ("WHISP-SM-MIB", "bitErrorsQSPKpathB"), ("WHISP-SM-MIB", "bitErrors16QAMpathA"), ("WHISP-SM-MIB", "bitErrors16QAMpathB"), ("WHISP-SM-MIB", "bitErrors64QAMpathA"), ("WHISP-SM-MIB", "bitErrors64QAMpathB"), ("WHISP-SM-MIB", "bitErrors256QAMpathA"), ("WHISP-SM-MIB", "bitErrors256QAMpathB"), ("WHISP-SM-MIB", "bitsReceivedPerPathModulation"), ("WHISP-SM-MIB", "radioDbmInt"), ("WHISP-SM-MIB", "dfsStatus"), ("WHISP-SM-MIB", "radioTxPwr"), ("WHISP-SM-MIB", "activeRegion"), ("WHISP-SM-MIB", "snmpBerLevel"), ("WHISP-SM-MIB", "nbBitsRcvd"), ("WHISP-SM-MIB", "nbPriBitsErr"), ("WHISP-SM-MIB", "nbSndBitsErr"), ("WHISP-SM-MIB", "primaryBER"), ("WHISP-SM-MIB", "secondaryBER"), ("WHISP-SM-MIB", "totalBER"), ("WHISP-SM-MIB", "minRSSI"), ("WHISP-SM-MIB", "maxRSSI"), ("WHISP-SM-MIB", "minJitter"), ("WHISP-SM-MIB", "maxJitter"), ("WHISP-SM-MIB", "smSessionTimer"), ("WHISP-SM-MIB", "pppoeSessionStatus"), ("WHISP-SM-MIB", "pppoeSessionID"), ("WHISP-SM-MIB", "pppoeIPCPAddress"), ("WHISP-SM-MIB", "pppoeMTUOverrideEn"), ("WHISP-SM-MIB", "pppoeMTUValue"), ("WHISP-SM-MIB", "pppoeTimerTypeValue"), ("WHISP-SM-MIB", "pppoeTimeoutValue"), ("WHISP-SM-MIB", "pppoeDNSServer1"), ("WHISP-SM-MIB", "pppoeDNSServer2"), ("WHISP-SM-MIB", "pppoeControlBytesSent"), ("WHISP-SM-MIB", "pppoeControlBytesReceived"), ("WHISP-SM-MIB", "pppoeDataBytesSent"), ("WHISP-SM-MIB", "pppoeDataBytesReceived"), ("WHISP-SM-MIB", "pppoeEnabledStatus"), ("WHISP-SM-MIB", "pppoeTCPMSSClampEnableStatus"), ("WHISP-SM-MIB", "pppoeACNameStatus"), ("WHISP-SM-MIB", "pppoeSvcNameStatus"), ("WHISP-SM-MIB", "pppoeSessUptime"), ("WHISP-SM-MIB", "primaryBERDisplay"), ("WHISP-SM-MIB", "secondaryBERDisplay"), ("WHISP-SM-MIB", "totalBERDisplay"), ("WHISP-SM-MIB", "mimoQpskBerDisplay"), ("WHISP-SM-MIB", "mimo16QamBerDisplay"), ("WHISP-SM-MIB", "mimo64QamBerDisplay"), ("WHISP-SM-MIB", "mimo256QamBerDisplay"), ("WHISP-SM-MIB", "mimoBerRcvModulationType"), ("WHISP-SM-MIB", "minRadioDbm"), ("WHISP-SM-MIB", "maxRadioDbm"), ("WHISP-SM-MIB", "maxRadioDbmDeprecated"), ("WHISP-SM-MIB", "pppoeSessIdleTime"), ("WHISP-SM-MIB", "radioDbmAvg"), ("WHISP-SM-MIB", "zoltarFPGAFreqOffset"), ("WHISP-SM-MIB", "zoltarSWFreqOffset"), ("WHISP-SM-MIB", "airDelayns"), ("WHISP-SM-MIB", "currentColorCode"), ("WHISP-SM-MIB", "currentColorCodePri"), ("WHISP-SM-MIB", "currentChanFreq"), ("WHISP-SM-MIB", "linkQualityBeacon"), ("WHISP-SM-MIB", "currentCyclicPrefix"), ("WHISP-SM-MIB", "currentBandwidth"), ("WHISP-SM-MIB", "berPwrRxFPGAPathA"), ("WHISP-SM-MIB", "berPwrRxFPGAPathB"), ("WHISP-SM-MIB", "rawBERPwrRxPathA"), ("WHISP-SM-MIB", "rawBERPwrRxPathB"), ("WHISP-SM-MIB", "linkQualityData1XVertical"), ("WHISP-SM-MIB", "linkQualityData2XVertical"), ("WHISP-SM-MIB", "linkQualityData3XVertical"), ("WHISP-SM-MIB", "linkQualityData4XVertical"), ("WHISP-SM-MIB", "linkQualityData1XHorizontal"), ("WHISP-SM-MIB", "linkQualityData2XHorizontal"), ("WHISP-SM-MIB", "linkQualityData3XHorizontal"), ("WHISP-SM-MIB", "linkQualityData4XHorizontal"), ("WHISP-SM-MIB", "signalToNoiseRatioSMVertical"), ("WHISP-SM-MIB", "signalToNoiseRatioSMHorizontal"), ("WHISP-SM-MIB", "signalStrengthRatio"), ("WHISP-SM-MIB", "radioDbmHorizontal"), ("WHISP-SM-MIB", "radioDbmVertical"), ("WHISP-SM-MIB", "rfStatTxSuppressionCount"), ("WHISP-SM-MIB", "receiveFragmentsModulationPercentage"), ("WHISP-SM-MIB", "fragmentsReceived1XVertical"), ("WHISP-SM-MIB", "fragmentsReceived2XVertical"), ("WHISP-SM-MIB", "fragmentsReceived3XVertical"), ("WHISP-SM-MIB", "fragmentsReceived4XVertical"), ("WHISP-SM-MIB", "fragmentsReceived1XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived2XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived3XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived4XHorizontal"), ("WHISP-SM-MIB", "bridgecbUplinkCreditRate"), ("WHISP-SM-MIB", "bridgecbUplinkCreditLimit"), ("WHISP-SM-MIB", "bridgecbDownlinkCreditRate"), ("WHISP-SM-MIB", "bridgecbDownlinkCreditLimit"), ("WHISP-SM-MIB", "bridgecbDownlinkMaxBurstBitRate"), ("WHISP-SM-MIB", "bridgecbUplinkMaxBurstBitRate"), ("WHISP-SM-MIB", "radioModeStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmStatusGroup = whispSmStatusGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmStatusGroup.setDescription('Canopy Subscriber Module status group.')
whispSmNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 3)).setObjects(("WHISP-SM-MIB", "enterSpectrumAnalysis"), ("WHISP-SM-MIB", "availableSpectrumAnalysis"), ("WHISP-SM-MIB", "whispRadarDetected"), ("WHISP-SM-MIB", "whispRadarEnd"), ("WHISP-SM-MIB", "smNatWanDHCPClientEvent"), ("WHISP-SM-MIB", "smNatRFPubDHCPClientEvent"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmNotifGroup = whispSmNotifGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmNotifGroup.setDescription('WHiSP SMs notification group.')
whispMappingTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 4)).setObjects(("WHISP-SM-MIB", "tableIndex"), ("WHISP-SM-MIB", "protocol"), ("WHISP-SM-MIB", "port"), ("WHISP-SM-MIB", "localIp"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispMappingTableGroup = whispMappingTableGroup.setStatus('current')
if mibBuilder.loadTexts: whispMappingTableGroup.setDescription('Canopy SM NAT port mapping Table group.')
whispRadarDetected = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 1)).setObjects(("WHISP-SM-MIB", "dfsStatus"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: whispRadarDetected.setStatus('current')
if mibBuilder.loadTexts: whispRadarDetected.setDescription('Radar detected transmit stopped.')
whispRadarEnd = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 2)).setObjects(("WHISP-SM-MIB", "dfsStatus"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: whispRadarEnd.setStatus('current')
if mibBuilder.loadTexts: whispRadarEnd.setDescription('Radar ended back to normal transmit.')
enterSpectrumAnalysis = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 1)).setObjects(("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: enterSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts: enterSpectrumAnalysis.setDescription('Entering spectrum analysis. physAddress - MAC address of the SM')
availableSpectrumAnalysis = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 2)).setObjects(("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: availableSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts: availableSpectrumAnalysis.setDescription('Spectrum analysis is complete, SM is re-registered with AP and results are available. physAddress - MAC address of the SM')
smNatWanDHCPClientEvent = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 1)).setObjects(("WHISP-SM-MIB", "dhcpCip"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: smNatWanDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts: smNatWanDHCPClientEvent.setDescription('NAT WAN DHCP Client has received a new address via DHCP.')
smNatRFPubDHCPClientEvent = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 2)).setObjects(("WHISP-BOX-MIBV2-MIB", "dhcpRfPublicIp"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: smNatRFPubDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts: smNatRFPubDHCPClientEvent.setDescription('NAT RF Public DHCP Client has received a new address via DHCP.')
clearLinkStats = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: clearLinkStats.setStatus('current')
if mibBuilder.loadTexts: clearLinkStats.setDescription('Setting this to a nonzero value will clear the link stats.')
whispMappingTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5), )
if mibBuilder.loadTexts: whispMappingTable.setStatus('current')
if mibBuilder.loadTexts: whispMappingTable.setDescription('NAT port mapping information table.')
whispMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1), ).setIndexNames((0, "WHISP-SM-MIB", "tableIndex"))
if mibBuilder.loadTexts: whispMappingEntry.setStatus('current')
if mibBuilder.loadTexts: whispMappingEntry.setDescription('Mapping table entry.')
tableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tableIndex.setStatus('current')
if mibBuilder.loadTexts: tableIndex.setDescription('User information table index.')
protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: protocol.setStatus('current')
if mibBuilder.loadTexts: protocol.setDescription('Protocol type: 0:both UDP and TCP, 1:UDP, 2:TCP.')
port = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port.setStatus('current')
if mibBuilder.loadTexts: port.setDescription('Application port number. e.g. 23=telnet, 21=ftp etc. Should be a positive integer.')
localIp = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: localIp.setStatus('current')
if mibBuilder.loadTexts: localIp.setDescription('IP of local host to which the incoming packet mapped to an application should be forwarded.')
whispSmTranslationTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6), )
if mibBuilder.loadTexts: whispSmTranslationTable.setStatus('current')
if mibBuilder.loadTexts: whispSmTranslationTable.setDescription('Translation Table.')
whispSmTranslationTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1), ).setIndexNames((0, "WHISP-SM-MIB", "whispTranslationTableIndex"))
if mibBuilder.loadTexts: whispSmTranslationTableEntry.setStatus('current')
if mibBuilder.loadTexts: whispSmTranslationTableEntry.setDescription('Translation Table Entry.')
whispTranslationTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableIndex.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableIndex.setDescription('Index into translation table.')
whispTranslationTableMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableMacAddr.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableMacAddr.setDescription('MAC Address of the registered enity.')
whispTranslationTableIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableIpAddr.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableIpAddr.setDescription('Ip Address of the registered entity.')
whispTranslationTableAge = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableAge.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableAge.setDescription('Age of the registered entity.')
mibBuilder.exportSymbols("WHISP-SM-MIB", packetFilterDirection=packetFilterDirection, dhcpServerPktRcv=dhcpServerPktRcv, rssi=rssi, bridgecbDownlinkMaxBurstBitRate=bridgecbDownlinkMaxBurstBitRate, pppoeMTUOverrideValue=pppoeMTUOverrideValue, maxRSSI=maxRSSI, ethAccessEnable=ethAccessEnable, naptPrivateIP=naptPrivateIP, port1TCPFilter=port1TCPFilter, linkQualityData3XHorizontal=linkQualityData3XHorizontal, colorCode5=colorCode5, dhcpServerEntry=dhcpServerEntry, pppoeIPCPAddress=pppoeIPCPAddress, syslogSMXmitSetting=syslogSMXmitSetting, minJitter=minJitter, phase1=phase1, pppoeTimeoutPeriod=pppoeTimeoutPeriod, lanMaskSm=lanMaskSm, dhcpServerPktToss=dhcpServerPktToss, bitErrors16QAMpathA=bitErrors16QAMpathA, ip4MultFilter=ip4MultFilter, upLnkLimit=upLnkLimit, upLinkBCastFilter=upLinkBCastFilter, snmpFilter=snmpFilter, allowedIPAccessNMLength1=allowedIPAccessNMLength1, jitter=jitter, airDelay=airDelay, colorCodepriority4=colorCodepriority4, arpFilter=arpFilter, fragmentsReceived3XHorizontal=fragmentsReceived3XHorizontal, currentColorCodePri=currentColorCodePri, whispMappingTableGroup=whispMappingTableGroup, smLEDModeFlag=smLEDModeFlag, clearLinkStats=clearLinkStats, multicastVCRcvRate=multicastVCRcvRate, receiveFragmentsModulationPercentage=receiveFragmentsModulationPercentage, signalToNoiseRatioSMVertical=signalToNoiseRatioSMVertical, allIpv4Filter=allIpv4Filter, dhcpSip=dhcpSip, ipAccessFilterEnable=ipAccessFilterEnable, whispTranslationTableIndex=whispTranslationTableIndex, nbBitsRcvd=nbBitsRcvd, linkQualityData1XVertical=linkQualityData1XVertical, radioDbmHorizontal=radioDbmHorizontal, hiPriorityChannel=hiPriorityChannel, pppoeControlBytesSent=pppoeControlBytesSent, fragmentsReceived2XHorizontal=fragmentsReceived2XHorizontal, bridgecbDownlinkCreditLimit=bridgecbDownlinkCreditLimit, wanPingReplyEnable=wanPingReplyEnable, colorCode10=colorCode10, hostIp=hostIp, rfDhcpState=rfDhcpState, radioTxPwr=radioTxPwr, totalBERDisplay=totalBERDisplay, zoltarSWFreqOffset=zoltarSWFreqOffset, prefferedDNSIP=prefferedDNSIP, bitErrors16QAMpathB=bitErrors16QAMpathB, colorCodepriority7=colorCodepriority7, whispRadarDetected=whispRadarDetected, port2TCPFilter=port2TCPFilter, dhcpDomName=dhcpDomName, udpGarbageCollectTmout=udpGarbageCollectTmout, whispMappingEntry=whispMappingEntry, spectrumAnalysisDisplay=spectrumAnalysisDisplay, rfScanListBandFilter=rfScanListBandFilter, whispMappingTable=whispMappingTable, pppoeTCPMSSClampEnableStatus=pppoeTCPMSSClampEnableStatus, action=action, whispSmTranslationTable=whispSmTranslationTable, spectrumAnalysisOnBoot=spectrumAnalysisOnBoot, powerUpMode=powerUpMode, linkQualityData1XHorizontal=linkQualityData1XHorizontal, colorCodepriority8=colorCodepriority8, enable8023link=enable8023link, colorCode3=colorCode3, lowPriorityDownlinkCIR=lowPriorityDownlinkCIR, pppoeDataBytesSent=pppoeDataBytesSent, protocol=protocol, PYSNMP_MODULE_ID=whispSmMibModule, mimo256QamBerDisplay=mimo256QamBerDisplay, ethAccessFilterEnable=ethAccessFilterEnable, activeRegion=activeRegion, radioDbmAvg=radioDbmAvg, secondaryBERDisplay=secondaryBERDisplay, natConnectionType=natConnectionType, pppoeMTUOverrideEnable=pppoeMTUOverrideEnable, dwnLnkLimit=dwnLnkLimit, bitErrorsQSPKpathA=bitErrorsQSPKpathA, naptPublicSubnetMask=naptPublicSubnetMask, whispSmSecurity=whispSmSecurity, colorCodepriority3=colorCodepriority3, port=port, colorCodepriority6=colorCodepriority6, rfStatTxSuppressionCount=rfStatTxSuppressionCount, primaryBER=primaryBER, certTable=certTable, whispSmDfsEvent=whispSmDfsEvent, userDefinedPort1=userDefinedPort1, pppoeDisconnectOD=pppoeDisconnectOD, pppoeTimerType=pppoeTimerType, bridgecbUplinkCreditLimit=bridgecbUplinkCreditLimit, userP2Filter=userP2Filter, pppoeEnabledStatus=pppoeEnabledStatus, bCastMIR=bCastMIR, pppoeTimerTypeValue=pppoeTimerTypeValue, port3UDPFilter=port3UDPFilter, allowedIPAccessNMLength3=allowedIPAccessNMLength3, naptPublicGatewayIP=naptPublicGatewayIP, naptEnable=naptEnable, dhcpIPStart=dhcpIPStart, allowedIPAccess2=allowedIPAccess2, adaptRateHighPri=adaptRateHighPri, userDefinedPort3=userDefinedPort3, pppoeACNameStatus=pppoeACNameStatus, calibrationStatus=calibrationStatus, radioDbm=radioDbm, pppoeDNSServer2=pppoeDNSServer2, rfScanList=rfScanList, allOthersFilter=allOthersFilter, dhcpServerLeaseTime=dhcpServerLeaseTime, pppoeSessUptime=pppoeSessUptime, fragmentsReceived1XVertical=fragmentsReceived1XVertical, bridgecbUplinkMaxBurstBitRate=bridgecbUplinkMaxBurstBitRate, colorCodepriority2=colorCodepriority2, authKeyOption=authKeyOption, timedSpectrumAnalysisDuration=timedSpectrumAnalysisDuration, pppoeDNSServer1=pppoeDNSServer1, whispSmConfig=whispSmConfig, currentColorCode=currentColorCode, bitErrors64QAMpathA=bitErrors64QAMpathA, sessionStatus=sessionStatus, whispSmStatus=whispSmStatus, whispSmMibModule=whispSmMibModule, authUsername=authUsername, colorCode7=colorCode7, linkQualityData4XVertical=linkQualityData4XVertical, dhcpcdns1=dhcpcdns1, currentChanFreq=currentChanFreq, cert=cert, enterSpectrumAnalysis=enterSpectrumAnalysis, phase2=phase2, nbPriBitsErr=nbPriBitsErr, bootpcFilter=bootpcFilter, linkQualityData2XVertical=linkQualityData2XVertical, fragmentsReceived4XVertical=fragmentsReceived4XVertical, smRateAdapt=smRateAdapt, userP1Filter=userP1Filter, allowedIPAccess1=allowedIPAccess1, rawBERPwrRxPathB=rawBERPwrRxPathB, pppoeAuthenticationType=pppoeAuthenticationType, airDelayns=airDelayns, allOtherIpFilter=allOtherIpFilter, bitErrors256QAMpathA=bitErrors256QAMpathA, pppoeControlBytesReceived=pppoeControlBytesReceived, linkQualityData2XHorizontal=linkQualityData2XHorizontal, nbSndBitsErr=nbSndBitsErr, pppoeMTUOverrideEn=pppoeMTUOverrideEn, pmp430ApRegistrationOptions=pmp430ApRegistrationOptions, alternateDNSIP=alternateDNSIP, port2UDPFilter=port2UDPFilter, upLnkDataRate=upLnkDataRate, smAntennaType=smAntennaType, timingPulseGated=timingPulseGated, userDefinedPort2=userDefinedPort2, colorCode4=colorCode4, naptRFPublicSubnetMask=naptRFPublicSubnetMask, smbFilter=smbFilter, colorCode6=colorCode6, clearBerrResults=clearBerrResults, pppoeEnable=pppoeEnable, natDNSProxyEnable=natDNSProxyEnable, berrautoupdateflag=berrautoupdateflag, useRealm=useRealm, hostLease=hostLease, linkQualityData4XHorizontal=linkQualityData4XHorizontal, bitErrorsQSPKpathB=bitErrorsQSPKpathB, bitsReceivedPerPathModulation=bitsReceivedPerPathModulation, dhcpcdns2=dhcpcdns2, bandwidthScan=bandwidthScan, allowedIPAccess3=allowedIPAccess3, port1UDPFilter=port1UDPFilter, pppoeTCPMSSClampEnable=pppoeTCPMSSClampEnable, berPwrRxFPGAPathA=berPwrRxFPGAPathA, whispSmEvent=whispSmEvent, arpCacheTimeout=arpCacheTimeout, switchRadioModeAndReboot=switchRadioModeAndReboot, whispSmDHCPClientEvent=whispSmDHCPClientEvent, networkAccess=networkAccess, userP3Filter=userP3Filter, dmzEnable=dmzEnable, pppoeTimeoutValue=pppoeTimeoutValue, pppoeMTUValue=pppoeMTUValue, dfsConfig=dfsConfig, smNatWanDHCPClientEvent=smNatWanDHCPClientEvent, radioTxGainSm=radioTxGainSm, snmpBerLevel=snmpBerLevel, fragmentsReceived2XVertical=fragmentsReceived2XVertical, linkQualityBeacon=linkQualityBeacon, dhcpCSMask=dhcpCSMask, spectrumAnalysisScanBandwidth=spectrumAnalysisScanBandwidth, radioModeStatus=radioModeStatus, defaultGwSm=defaultGwSm, berDeModSelect=berDeModSelect, availableSpectrumAnalysis=availableSpectrumAnalysis, whispSmNotifGroup=whispSmNotifGroup, pppoeServiceName=pppoeServiceName, maxRadioDbmDeprecated=maxRadioDbmDeprecated, apSelection=apSelection, radioDbmVertical=radioDbmVertical, totalBER=totalBER, dhcpServerTable=dhcpServerTable, dhcpClientLease=dhcpClientLease, whispSmControls=whispSmControls, bhsReReg=bhsReReg, colorCode2=colorCode2, whispSmConfigGroup=whispSmConfigGroup, dhcpDfltRterIP=dhcpDfltRterIP, pppoeSessIdleTime=pppoeSessIdleTime, radioSlicingSm=radioSlicingSm, syslogSMXmitControl=syslogSMXmitControl, secondaryBER=secondaryBER, maxRadioDbm=maxRadioDbm, smSessionTimer=smSessionTimer, cyclicPrefixScan=cyclicPrefixScan, adaptRate=adaptRate, whispRadarEnd=whispRadarEnd, pppoeSvcNameStatus=pppoeSvcNameStatus, pppoeSessionStatus=pppoeSessionStatus, dnsAutomatic=dnsAutomatic, allowedIPAccessNMLength2=allowedIPAccessNMLength2, lowPriorityUplinkCIR=lowPriorityUplinkCIR, hostMacAddress=hostMacAddress, currentBandwidth=currentBandwidth, numAuthCerts=numAuthCerts, berPwrRxFPGAPathB=berPwrRxFPGAPathB, hiPriorityUplinkCIR=hiPriorityUplinkCIR, colorCodepriority5=colorCodepriority5, dmzIP=dmzIP, pppoeConnectOD=pppoeConnectOD, lanIpSm=lanIpSm, rawBERPwrRxPathA=rawBERPwrRxPathA, colorCode9=colorCode9, naptPrivateSubnetMask=naptPrivateSubnetMask, certEntry=certEntry, naptPublicIP=naptPublicIP, realm=realm, dhcpcdns3=dhcpcdns3, localIp=localIp, fragmentsReceived3XVertical=fragmentsReceived3XVertical, signalStrengthRatio=signalStrengthRatio, eapPeerAAAServerCommonName=eapPeerAAAServerCommonName, pppoeDataBytesReceived=pppoeDataBytesReceived, whispSmStatusGroup=whispSmStatusGroup, mimo64QamBerDisplay=mimo64QamBerDisplay)
mibBuilder.exportSymbols("WHISP-SM-MIB", upLnkMaxBurstDataRate=upLnkMaxBurstDataRate, minRSSI=minRSSI, radioBandscanConfig=radioBandscanConfig, spectrumAnalysisAction=spectrumAnalysisAction, fragmentsReceived1XHorizontal=fragmentsReceived1XHorizontal, pppoeUserName=pppoeUserName, pppoePassword=pppoePassword, currentCyclicPrefix=currentCyclicPrefix, dhcpClientEnable=dhcpClientEnable, mimo16QamBerDisplay=mimo16QamBerDisplay, maxJitter=maxJitter, dwnLnkMaxBurstDataRate=dwnLnkMaxBurstDataRate, testSMBER=testSMBER, tcpGarbageCollectTmout=tcpGarbageCollectTmout, syslogServerApPreferred=syslogServerApPreferred, colorCodepriority10=colorCodepriority10, whispTranslationTableMacAddr=whispTranslationTableMacAddr, authOuterId=authOuterId, hiPriorityDownlinkCIR=hiPriorityDownlinkCIR, minRadioDbm=minRadioDbm, naptRFPublicIP=naptRFPublicIP, adaptRateLowPri=adaptRateLowPri, dwnLnkDataRate=dwnLnkDataRate, bridgecbUplinkCreditRate=bridgecbUplinkCreditRate, zoltarFPGAFreqOffset=zoltarFPGAFreqOffset, dhcpCip=dhcpCip, pppoeFilter=pppoeFilter, smNatRFPubDHCPClientEvent=smNatRFPubDHCPClientEvent, mimoQpskBerDisplay=mimoQpskBerDisplay, bootpsFilter=bootpsFilter, colorCodepriority9=colorCodepriority9, bitErrors256QAMpathB=bitErrors256QAMpathB, dhcpNumIPsToLease=dhcpNumIPsToLease, pppoeAccessConcentrator=pppoeAccessConcentrator, dfsStatus=dfsStatus, certificateDN=certificateDN, whispSmTranslationTableEntry=whispSmTranslationTableEntry, naptRemoteManage=naptRemoteManage, authenticationEnforce=authenticationEnforce, mimoBerRcvModulationType=mimoBerRcvModulationType, whispTranslationTableAge=whispTranslationTableAge, fragmentsReceived4XHorizontal=fragmentsReceived4XHorizontal, bridgecbDownlinkCreditRate=bridgecbDownlinkCreditRate, dhcpServerPktXmt=dhcpServerPktXmt, colorCode8=colorCode8, radioDbmInt=radioDbmInt, tableIndex=tableIndex, ingressVID=ingressVID, syslogMinLevelApPreferred=syslogMinLevelApPreferred, primaryBERDisplay=primaryBERDisplay, whispTranslationTableIpAddr=whispTranslationTableIpAddr, linkQualityData3XVertical=linkQualityData3XVertical, certIndex=certIndex, authKeySm=authKeySm, dhcpServerEnable=dhcpServerEnable, bitErrors64QAMpathB=bitErrors64QAMpathB, whispSmSpAnEvent=whispSmSpAnEvent, port3TCPFilter=port3TCPFilter, signalToNoiseRatioSMHorizontal=signalToNoiseRatioSMHorizontal, naptRFPublicGateway=naptRFPublicGateway, pppoeSessionID=pppoeSessionID, forcepoweradjust=forcepoweradjust, registeredToAp=registeredToAp, whispSmGroups=whispSmGroups, authPassword=authPassword)
|
'''
The sum of the squares of the first ten natural numbers is,
1^2+2^2+...+10^2 = 385
The square of the sum of the first ten natural numbers is,
(1+2+...+10)^2 = 55^2 = 3025
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025−385=2640.
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
'''
# using some borrowed formulas we find the values
#sum of squared natural numbers
n = 100
s1 = n*(n+1)*(2*n+1)/6
#sum of the natural numbers sum, squared
s2 = (n*(n+1)/2)**2
# print the difference
print(s2-s1)
|
"""Class to store customized UI parameters."""
class UIConfig():
"""Stores customized UI parameters."""
def __init__(self, description='Description',
button_text='Submit',
placeholder='Default placeholder',
show_example_form=False):
self.description = description
self.button_text = button_text
self.placeholder = placeholder
self.show_example_form = show_example_form
def get_description(self):
"""Returns the input of the example."""
return self.description
def get_button_text(self):
"""Returns the intended output of the example."""
return self.button_text
def get_placeholder(self):
"""Returns the intended output of the example."""
return self.placeholder
def get_show_example_form(self):
"""Returns whether editable example form is shown."""
return self.show_example_form
def json(self):
"""Used to send the parameter values to the API."""
return {"description": self.description,
"button_text": self.button_text,
"placeholder": self.placeholder,
"show_example_form": self.show_example_form}
|
#
# PySNMP MIB module NETSCREEN-SERVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETSCREEN-SERVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:20:18 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, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint")
netscreenService, = mibBuilder.importSymbols("NETSCREEN-SMI", "netscreenService")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, ModuleIdentity, ObjectIdentity, MibIdentifier, Integer32, Counter32, IpAddress, NotificationType, Unsigned32, Counter64, Gauge32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "ModuleIdentity", "ObjectIdentity", "MibIdentifier", "Integer32", "Counter32", "IpAddress", "NotificationType", "Unsigned32", "Counter64", "Gauge32", "TimeTicks")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
netscreenServiceMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3224, 13, 0))
netscreenServiceMibModule.setRevisions(('2004-05-03 00:00', '2004-03-03 00:00', '2003-11-10 00:00', '2001-09-28 00:00', '2001-05-14 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: netscreenServiceMibModule.setRevisionsDescriptions(('Modified copyright and contact information', 'Converted to SMIv2 by Longview Software', 'Correct spelling mistake', 'No Comment', 'Creation Date',))
if mibBuilder.loadTexts: netscreenServiceMibModule.setLastUpdated('200405032022Z')
if mibBuilder.loadTexts: netscreenServiceMibModule.setOrganization('Juniper Networks, Inc.')
if mibBuilder.loadTexts: netscreenServiceMibModule.setContactInfo('Customer Support 1194 North Mathilda Avenue Sunnyvale, California 94089-1206 USA Tel: 1-800-638-8296 E-mail: [email protected] HTTP://www.juniper.net')
if mibBuilder.loadTexts: netscreenServiceMibModule.setDescription('This module defines the object that are used to monitor service configuration in NetScreen device.')
nsServiceTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 1), )
if mibBuilder.loadTexts: nsServiceTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceTable.setDescription('Services are types of IP traffic for which protocol standards exist. This table collects all the service configurations existing in NetScreen device.')
nsServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceIndex"))
if mibBuilder.loadTexts: nsServiceEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceEntry.setDescription('Each enry in the nsServiceTable holds a set of configuration parameters associated with an instance of service.')
nsServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceIndex.setDescription('A unique value for each address. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceName.setStatus('current')
if mibBuilder.loadTexts: nsServiceName.setDescription('Service name.')
nsServiceCategory = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("remote", 1), ("email", 2), ("infoseek", 3), ("security", 4), ("other", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceCategory.setStatus('current')
if mibBuilder.loadTexts: nsServiceCategory.setDescription('Category this service belongs to.')
nsServiceTransProto = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 6, 17, 8, 9, 17, 46, 47, 89))).clone(namedValues=NamedValues(("other", 0), ("icmp", 1), ("tcp", 6), ("udp", 17), ("egp", 8), ("igp", 9), ("udp", 17), ("rsvp", 46), ("gre", 47), ("ospf", 89)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceTransProto.setStatus('current')
if mibBuilder.loadTexts: nsServiceTransProto.setDescription('Service trans protocol. 6 means tcp 17 means udp')
nsServiceSrcPortLow = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceSrcPortLow.setStatus('current')
if mibBuilder.loadTexts: nsServiceSrcPortLow.setDescription('The low source port number associated with service.')
nsServiceSrcPortHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceSrcPortHigh.setStatus('current')
if mibBuilder.loadTexts: nsServiceSrcPortHigh.setDescription('The high source port number associated with service.')
nsServiceDstPortLow = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceDstPortLow.setStatus('current')
if mibBuilder.loadTexts: nsServiceDstPortLow.setDescription('The low destination port number associated with service.')
nsServiceDstPortHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceDstPortHigh.setStatus('current')
if mibBuilder.loadTexts: nsServiceDstPortHigh.setDescription('The high source port number associated with service.')
nsServiceFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("pre-define", 0), ("usr-define", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceFlag.setStatus('current')
if mibBuilder.loadTexts: nsServiceFlag.setDescription('Service flag used to indicate if the service is a pre-defined one or a custom one.')
nsServiceVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceVsys.setDescription('Virtual system this configuration belongs to.')
nsServiceGroupTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 2), )
if mibBuilder.loadTexts: nsServiceGroupTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupTable.setDescription('Services can be organized into service group for convenience. This table collects all service group entries in NetScreen device.')
nsServiceGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceGroupIndex"))
if mibBuilder.loadTexts: nsServiceGroupEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupEntry.setDescription('Each entry in the nsServiceGroupTable holds a set of information about service group.')
nsServiceGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupName.setDescription('Service group name.')
nsServiceGroupMember = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMember.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMember.setDescription('Service member number in service group.')
nsServiceGroupComment = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupComment.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupComment.setDescription('Comments for service group.')
nsServiceGroupVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupVsys.setDescription('Virtual system this group belongs to.')
nsServiceGrpMemberTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 3), )
if mibBuilder.loadTexts: nsServiceGrpMemberTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberTable.setDescription('Service group membership info table will show detail information of a service group.')
nsServiceGrpMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceGrpMemberIndex"))
if mibBuilder.loadTexts: nsServiceGrpMemberEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberEntry.setDescription("An entry containing attributes service group's member info")
nsServiceGrpMemberIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGrpMemberIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceGrpName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGrpName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpName.setDescription('Specific service group name')
nsServiceGroupMemberName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMemberName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMemberName.setDescription('Specific service name in the service group.')
nsServiceGroupMemberVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMemberVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMemberVsys.setDescription('Virtual system this configuration belongs to')
mibBuilder.exportSymbols("NETSCREEN-SERVICE-MIB", nsServiceGroupMember=nsServiceGroupMember, nsServiceGroupName=nsServiceGroupName, nsServiceGroupComment=nsServiceGroupComment, nsServiceSrcPortLow=nsServiceSrcPortLow, nsServiceSrcPortHigh=nsServiceSrcPortHigh, nsServiceGroupVsys=nsServiceGroupVsys, nsServiceDstPortHigh=nsServiceDstPortHigh, nsServiceIndex=nsServiceIndex, nsServiceGroupMemberVsys=nsServiceGroupMemberVsys, nsServiceFlag=nsServiceFlag, nsServiceVsys=nsServiceVsys, nsServiceGrpMemberIndex=nsServiceGrpMemberIndex, nsServiceGrpMemberEntry=nsServiceGrpMemberEntry, nsServiceGrpMemberTable=nsServiceGrpMemberTable, nsServiceGroupEntry=nsServiceGroupEntry, nsServiceGroupTable=nsServiceGroupTable, nsServiceDstPortLow=nsServiceDstPortLow, nsServiceTable=nsServiceTable, nsServiceEntry=nsServiceEntry, nsServiceTransProto=nsServiceTransProto, PYSNMP_MODULE_ID=netscreenServiceMibModule, nsServiceCategory=nsServiceCategory, nsServiceGroupIndex=nsServiceGroupIndex, nsServiceGroupMemberName=nsServiceGroupMemberName, netscreenServiceMibModule=netscreenServiceMibModule, nsServiceGrpName=nsServiceGrpName, nsServiceName=nsServiceName)
|
#
# PySNMP MIB module DT1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DT1-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:39:59 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Bits, NotificationType, IpAddress, Counter32, iso, experimental, enterprises, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ObjectIdentity, Unsigned32, ModuleIdentity, MibIdentifier, Gauge32, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "NotificationType", "IpAddress", "Counter32", "iso", "experimental", "enterprises", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "MibIdentifier", "Gauge32", "Integer32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
usr = MibIdentifier((1, 3, 6, 1, 4, 1, 429))
nas = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1))
dt1 = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3))
dt1Id = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 1))
dt1IdTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1), )
if mibBuilder.loadTexts: dt1IdTable.setStatus('mandatory')
dt1IdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1IdIndex"))
if mibBuilder.loadTexts: dt1IdEntry.setStatus('mandatory')
dt1IdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdIndex.setStatus('mandatory')
dt1IdHardwareSerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdHardwareSerNum.setStatus('mandatory')
dt1IdHardwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdHardwareRev.setStatus('mandatory')
dt1IdSoftwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdSoftwareRev.setStatus('mandatory')
dt1Cfg = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 2))
dt1CfgTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1), )
if mibBuilder.loadTexts: dt1CfgTable.setStatus('mandatory')
dt1CfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1CfgIndex"))
if mibBuilder.loadTexts: dt1CfgEntry.setStatus('mandatory')
dt1CfgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CfgIndex.setStatus('mandatory')
dt1CfgSpanATmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSpanATmgSrcPrio.setStatus('mandatory')
dt1CfgSpanBTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSpanBTmgSrcPrio.setStatus('mandatory')
dt1CfgInternTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgInternTmgSrcPrio.setStatus('mandatory')
dt1CfgTdmBusTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CfgTdmBusTmgSrcPrio.setStatus('deprecated')
dt1CfgIdleDiscPatt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgIdleDiscPatt.setStatus('mandatory')
dt1CfgNumT1TypeNacs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("single", 2), ("multiple", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgNumT1TypeNacs.setStatus('mandatory')
dt1CfgCallEventFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notSupported", 1), ("filterOutNone", 2), ("filterOutBoth", 3), ("filterOutSuccess", 4), ("filterOutFailure", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgCallEventFilter.setStatus('mandatory')
dt1CfgSetDs0OutofService = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSetDs0OutofService.setStatus('mandatory')
dt1CfgWirelessMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("wireless", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgWirelessMode.setStatus('mandatory')
dt1Stat = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 3))
dt1StatTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1), )
if mibBuilder.loadTexts: dt1StatTable.setStatus('mandatory')
dt1StatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1StatIndex"))
if mibBuilder.loadTexts: dt1StatEntry.setStatus('mandatory')
dt1StatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatIndex.setStatus('mandatory')
dt1StatCurrentTmgSrc = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("spanLineA", 1), ("spanLineB", 2), ("internalClock", 3), ("tdmBusClock", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCurrentTmgSrc.setStatus('mandatory')
dt1StatSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatSelfTest.setStatus('mandatory')
dt1StatUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatUpTime.setStatus('mandatory')
dt1StatCallEventCode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))).clone(namedValues=NamedValues(("notSupported", 1), ("setup", 2), ("usrSetup", 3), ("telcoDisconnect", 4), ("usrDisconnect", 5), ("noFreeModem", 6), ("modemsNotAllowed", 7), ("modemsRejectCall", 8), ("modemSetupTimeout", 9), ("noFreeIGW", 10), ("igwRejectCall", 11), ("igwSetupTimeout", 12), ("noFreeTdmts", 13), ("bcReject", 14), ("ieReject", 15), ("chidReject", 16), ("progReject", 17), ("callingPartyReject", 18), ("calledPartyReject", 19), ("blocked", 20), ("analogBlocked", 21), ("digitalBlocked", 22), ("outOfService", 23), ("busy", 24), ("congestion", 25), ("protocolError", 26), ("noFreeBchannel", 27), ("inOutCallCollision", 28), ("inCallArrival", 29), ("outCallArrival", 30), ("inCallConnect", 31), ("outCallConnect", 32)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCallEventCode.setStatus('mandatory')
dt1StatCallEventQ931Value = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCallEventQ931Value.setStatus('mandatory')
dt1Cmd = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 4))
dt1CmdTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1), )
if mibBuilder.loadTexts: dt1CmdTable.setStatus('mandatory')
dt1CmdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1CmdIndex"))
if mibBuilder.loadTexts: dt1CmdEntry.setStatus('mandatory')
dt1CmdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdIndex.setStatus('mandatory')
dt1CmdMgtStationId = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdMgtStationId.setStatus('mandatory')
dt1CmdReqId = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdReqId.setStatus('mandatory')
dt1CmdFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("noCommand", 1), ("saveToNVRAM", 2), ("restoreFromNVRAM", 3), ("restoreFromDefault", 4), ("nonDisruptSelfTest", 5), ("disruptSelfTest", 6), ("softwareReset", 7), ("resetToHiPrioTimingSrc", 8), ("forceTdmBusMastership", 9), ("enterSpanToSpanLoopback", 10), ("exitSpanToSpanLoopback", 11), ("restoreDefaultUIPassword", 12)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdFunction.setStatus('mandatory')
dt1CmdForce = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("force", 1), ("noForce", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdForce.setStatus('mandatory')
dt1CmdParam = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdParam.setStatus('mandatory')
dt1CmdResult = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("success", 2), ("inProgress", 3), ("notSupported", 4), ("unAbleToRun", 5), ("aborted", 6), ("failed", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdResult.setStatus('mandatory')
dt1CmdCode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 8, 12, 20, 22, 25, 58, 73))).clone(namedValues=NamedValues(("noError", 1), ("unable", 2), ("unrecognizedCommand", 6), ("slotEmpty", 8), ("noResponse", 12), ("unsupportedCommand", 20), ("deviceDisabled", 22), ("testFailed", 25), ("userInterfaceActive", 58), ("pendingSoftwareDownload", 73)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdCode.setStatus('mandatory')
dt1TrapEnaTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 5), )
if mibBuilder.loadTexts: dt1TrapEnaTable.setStatus('mandatory')
dt1TrapEnaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1), ).setIndexNames((0, "DT1-MIB", "dt1TrapEnaIndex"))
if mibBuilder.loadTexts: dt1TrapEnaEntry.setStatus('mandatory')
dt1TrapEnaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1TrapEnaIndex.setStatus('mandatory')
dt1TrapEnaTxTmgSrcSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaTxTmgSrcSwitch.setStatus('mandatory')
dt1TrapEnaCallEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallEvent.setStatus('mandatory')
dt1TrapEnaCallArriveEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallArriveEvent.setStatus('mandatory')
dt1TrapEnaCallConnEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallConnEvent.setStatus('mandatory')
dt1TrapEnaCallTermEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallTermEvent.setStatus('mandatory')
dt1TrapEnaCallFailEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallFailEvent.setStatus('mandatory')
mibBuilder.exportSymbols("DT1-MIB", dt1IdIndex=dt1IdIndex, dt1TrapEnaCallEvent=dt1TrapEnaCallEvent, dt1StatCallEventQ931Value=dt1StatCallEventQ931Value, dt1StatTable=dt1StatTable, dt1TrapEnaTxTmgSrcSwitch=dt1TrapEnaTxTmgSrcSwitch, dt1StatUpTime=dt1StatUpTime, usr=usr, dt1CmdParam=dt1CmdParam, nas=nas, dt1CmdTable=dt1CmdTable, dt1TrapEnaTable=dt1TrapEnaTable, dt1CfgSpanATmgSrcPrio=dt1CfgSpanATmgSrcPrio, dt1StatSelfTest=dt1StatSelfTest, dt1TrapEnaCallArriveEvent=dt1TrapEnaCallArriveEvent, dt1StatIndex=dt1StatIndex, dt1CmdEntry=dt1CmdEntry, dt1StatCallEventCode=dt1StatCallEventCode, dt1TrapEnaCallTermEvent=dt1TrapEnaCallTermEvent, dt1IdSoftwareRev=dt1IdSoftwareRev, dt1CfgTdmBusTmgSrcPrio=dt1CfgTdmBusTmgSrcPrio, dt1CmdReqId=dt1CmdReqId, dt1CmdCode=dt1CmdCode, dt1CfgSpanBTmgSrcPrio=dt1CfgSpanBTmgSrcPrio, dt1TrapEnaIndex=dt1TrapEnaIndex, dt1IdEntry=dt1IdEntry, dt1CfgCallEventFilter=dt1CfgCallEventFilter, dt1StatEntry=dt1StatEntry, dt1=dt1, dt1CfgWirelessMode=dt1CfgWirelessMode, dt1Cmd=dt1Cmd, dt1CfgIndex=dt1CfgIndex, dt1CfgEntry=dt1CfgEntry, dt1TrapEnaCallFailEvent=dt1TrapEnaCallFailEvent, dt1IdHardwareSerNum=dt1IdHardwareSerNum, dt1CfgIdleDiscPatt=dt1CfgIdleDiscPatt, dt1IdTable=dt1IdTable, dt1Id=dt1Id, dt1TrapEnaEntry=dt1TrapEnaEntry, dt1CmdForce=dt1CmdForce, dt1CfgSetDs0OutofService=dt1CfgSetDs0OutofService, dt1StatCurrentTmgSrc=dt1StatCurrentTmgSrc, dt1CmdIndex=dt1CmdIndex, dt1Cfg=dt1Cfg, dt1CmdMgtStationId=dt1CmdMgtStationId, dt1CfgTable=dt1CfgTable, dt1Stat=dt1Stat, dt1CfgInternTmgSrcPrio=dt1CfgInternTmgSrcPrio, dt1IdHardwareRev=dt1IdHardwareRev, dt1TrapEnaCallConnEvent=dt1TrapEnaCallConnEvent, dt1CfgNumT1TypeNacs=dt1CfgNumT1TypeNacs, dt1CmdResult=dt1CmdResult, dt1CmdFunction=dt1CmdFunction)
|
# Copyright (c) 2006-2010 Tampere University of Technology
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
This module implements the basis for logging system where many logger
objects may share the same targets and any logger object may have many
targets.
LoggerBase class shows the interface which every logger should
implement. When inherited, you should implement log,
_really_open_target and _really_close_target methods.
Every logger module should export Logger class inherited from
LoggerBase.
"""
_targetstr_refcount={}
_target_str2obj={}
def _attach_target(loggerobject,target):
"""Appends opened target object to the targets attribute of the
logger object."""
if _targetstr_refcount.get(target,0)>0:
_targetstr_refcount[target]+=1
else:
targetobj=loggerobj._really_open_target(target)
target_str2obj[target]=targetobj
targetstr_refcount[target]=1
loggerobj.targets.append(target_str2obj[target])
def _detatch_target(target):
global target_logger_map, target_refcount
if target_refcount[target]==1:
target_logger_map[target]._really_close_target()
target_refcount[target]-=1
target_logger_map[target]
class LoggerBase:
"""Base class for multi-target logging."""
def __init__(self):
self.targets=[]
def open(self,target):
"""Inform the target pool that this logger object will write
to the target. If the target is not already open for writing,
the target pool will call _really_open_target method of this
object. The attach_target function will append the target to
the self.targets list """
_attach_target(self, target)
def log(self,entry):
"""Write entry to open target. Most likely this includes row
for t in self.targets: t.write(xxx) or t.send(xxx)."""
raise NotImplementedError
def close(self):
"""Inform the target pool that this logger will not be needing
its targets anymore. Do not redefine this method --- if you
still do, do not forget to call the original."""
for t in self.targets:
_detatch_target(self,t)
def _really_close_target(self):
"""This is a call-back from the target pool. If the last
reference to the target has been closed, the target can be
closed."""
raise NotImplementedError
def _really_open_target(self,target):
"""Open the target and return writable target object."""
raise NotImplementedError
|
print(''' _____
.-" .-. "-.
_/ '=(0.0)=' \_
/` .='|m|'=. `\
\________________ /
.--.__///`'-,__~\\\\~`
/ /6|__\// a (__)-\\\\
\ \/--`(( ._\ ,)))
/ \\ ))\ -==- (O)(
/ )\((((\ . /)))))
/ _.' / __(`~~~~`)__
//"\\,-'-"` `~~~~\\~~`"-.
// /`" ` `\
//''')
print("Welcome to Tresure Island.")
print("Your mission is to find the treasure.")
choice1 = input('You\'re at a crossroad, where do you want to go? Type "Left" or "Right". ').lower()
if choice1 == "left":
choice2 = input('You\'ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait for a boat. Type "swim" to swim across. ').lower()
if choice2 == "wait":
choice3 = input('You arrive at the island unharmed. There is a house with 3 doors. One red, one yellow, and on blue. Which color do you choose? ').lower()
if choice3 == "red":
print("It's a room full of fire. Game Over")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room of beasts. Game Over")
else:
print("You chose a door that doesn't exist. Game Over")
else:
print("You got attacked by a shark, Game Over")
else:
print("You fell into a hole. Game Over") |
'''
Created on Dec 20, 2016
@author: bardya
'''
# HOG_herit = [0,1,2]
#
# hogset = set()
#
# for i in HOG_herit:
# fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Gains/{}".format(i), 'r')
# hogset |= set([line.strip() for line in fh if line.strip()])
# fh.close()
#
# fh2 = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Losses/{}".format(i), 'r')
# hogset -= set([line.strip() for line in fh2 if line.strip()])
# fh2.close()
#
# LCA_set = []
# for i in hogset:
# i_sample = i.replace('.fa', '_sample.fa')
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
# for line in fh3:
# if line.startswith('>'):
# protein_id = line.split(' ', 1)[0][1:]
# LCA_set.append(protein_id)
#
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOG_LCA/{}_LCA_set.txt'.format(HOG_herit[-1]), 'w') as LCA_seth:
# for protein_id in LCA_set:
# LCA_seth.write(protein_id + '\n')
HOG_herit = [0]
hogset = set()
fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Gains/{}".format(HOG_herit[0]), 'r')
hogset |= set([line.strip() for line in fh if line.strip()])
fh.close()
LCA_set = []
for i in hogset:
i_sample = i.replace('.fa', '_sample.fa')
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
for line in fh3:
if line.startswith('>'):
protein_id = line.split(' ', 1)[0][1:]
LCA_set.append(protein_id)
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/{}_Gains.txt'.format(HOG_herit[0]), 'w') as LCA_seth:
for protein_id in LCA_set:
LCA_seth.write(protein_id + '\n')
# HOG_herit = [20]
#
#
# hogset = set()
# fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Losses/{}".format(HOG_herit[0]), 'r')
# hogset |= set([line.strip() for line in fh if line.strip()])
# fh.close()
#
# LCA_set = []
#
# for i in hogset:
# i_sample = i.replace('.fa', '_sample.fa')
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
# for line in fh3:
# if line.startswith('>'):
# protein_id = line.split(' ', 1)[0][1:]
# LCA_set.append(protein_id)
#
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/{}_Losses.txt'.format(HOG_herit[0]), 'w') as LCA_seth:
# for protein_id in LCA_set:
# LCA_seth.write(protein_id + '\n')
|
class FModifierEnvelopeControlPoint:
frame = None
max = None
min = None
|
self.description = "Try to upgrade two packages which would break deps"
lp1 = pmpkg("pkg1")
lp1.depends = ["pkg2=1.0"]
self.addpkg2db("local", lp1)
lp2 = pmpkg("pkg2", "1.0-1")
self.addpkg2db("local", lp2)
p1 = pmpkg("pkg1", "1.1-1")
p1.depends = ["pkg2=1.0-1"]
self.addpkg(p1)
p2 = pmpkg("pkg2", "1.1-1")
self.addpkg(p2)
self.args = "-U %s" % " ".join([p.filename() for p in (p1, p2)])
self.addrule("PACMAN_RETCODE=1")
self.addrule("PKG_VERSION=pkg1|1.0-1")
self.addrule("PKG_VERSION=pkg2|1.0-1")
|
def intersection_of(lhs, rhs):
"""
Intersects two posting lists.
"""
i = 0
j = 0
intersection = []
while (i < len(lhs) and j < len(rhs)):
if (lhs[i] == rhs[j]):
intersection.append(lhs[i])
i += 1
j += 1
elif (lhs[i] < rhs[j]):
i += 1
else:
j += 1
return intersection
def intersection_of_all(posting_lists):
"""
Intersects multiple posting lists.
"""
posting_lists = _to_list(posting_lists)
if (posting_lists):
posting_lists.sort(key=len)
answer = posting_lists[0]
for list in posting_lists[1:]:
answer = intersection_of(answer, list)
return answer
else:
return []
def _to_list(iterable):
return (list(iterable)
if (not isinstance(iterable, list))
else iterable)
def union_of(lhs, rhs):
"""
Computes the union of two posting lists.
"""
i = 0
j = 0
answer = []
while (i < len(lhs) or j < len(rhs)):
if (j == len(rhs) or
(i < len(lhs) and lhs[i] < rhs[j])):
answer.append(lhs[i])
i += 1
elif (i == len(lhs) or rhs[j] < lhs[i]):
answer.append(rhs[j])
j += 1
else:
answer.append(lhs[i])
i += 1
j += 1
return answer
def union_of_all(posting_lists):
"""
Computes the union of multiple posting lists.
"""
answer = []
for p in posting_lists:
answer = union_of(answer, p)
return answer
def difference_of(lhs, rhs):
"""
Computes the difference of two posting lists, that is, the elements
in the first list which are not elements in the second list.
"""
i = 0
j = 0
answer = []
while (i < len(lhs)):
if (j == len(rhs) or lhs[i] < rhs[j]):
answer.append(lhs[i])
i += 1
elif (rhs[j] < lhs[i]):
j += 1
else:
i += 1
return answer
|
class Node:
def __init__(self, data):
self.data = data
self.next = None
class Solution:
def insert(self, head, data):
p = Node(data)
if head == None:
head = p
elif head.next == None:
head.next = p
else:
start = head
while (start.next != None):
start = start.next
start.next = p
return head
def display(self, head):
current = head
while current:
print(current.data, end=' ')
current = current.next
def removeDuplicates(self, head):
node = head
while node.next:
if node.data == node.next.data:
node.next = node.next.next
else:
node = node.next
return head
mylist = Solution()
T = [1, 2, 2, 3, 3, 4]
head = None
for i in T:
data = i
head = mylist.insert(head, data)
head = mylist.removeDuplicates(head)
mylist.display(head)
|
class Solution:
def isStraight(self, nums: List[int]) -> bool:
joker = 0
nums.sort()
for i in range(4):
if nums[i] == 0: joker += 1 # 统计大小王数量
elif nums[i] == nums[i+1]: return False # 若有重复,提前返回 False
return nums[4] - nums[joker] < 5 # 最大牌 - 最小牌 < 5 则可以构成顺子
|
class TVBase(object):
"""Абстрактный телевизор"""
def tune_channel(self, channel):
raise NotImplementedError()
class SonyTV(TVBase):
"""Телевизор Sony"""
def tune_channel(self, channel):
print('Sony TV: выбран %d канал' % channel)
class SharpTV(TVBase):
"""Телевизор Sharp"""
def tune_channel(self, channel):
print('Sharp TV: выбран %d канал' % channel)
class RemoteControlBase(object):
"""Абстрактный пульт управления"""
def __init__(self):
self._tv = self.get_tv()
def get_tv(self):
raise NotImplementedError()
def tune_channel(self, channel):
self._tv.tune_channel(channel)
class RemoteControl(RemoteControlBase):
"""Пульт управления"""
def __init__(self):
super(RemoteControl, self).__init__()
self._channel = 0 # текущий канал
def get_tv(self):
return SharpTV()
def tune_channel(self, channel):
super(RemoteControl, self).tune_channel(channel)
self._channel = channel
def next_channel(self):
self._channel += 1
self.tune_channel(self._channel)
def previous_channel(self):
self._channel -= 1
self.tune_channel(self._channel)
remote_control = RemoteControl()
remote_control.tune_channel(5) # Sharp TV: выбран 5 канал
remote_control.next_channel() # Sharp TV: выбран 6 канал |
__version__ = "1.1.0"
'''
1.1.0
- Base demo module with version info
''' |
#
# PySNMP MIB module CISCOSB-EVENTS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-EVENTS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:06:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection")
switch001, = mibBuilder.importSymbols("CISCOSB-MIB", "switch001")
RlSmartPortsMacroNameOrZero, = mibBuilder.importSymbols("CISCOSB-SMARTPORTS-MIB", "RlSmartPortsMacroNameOrZero")
InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "InterfaceIndexOrZero")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, NotificationType, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter64, TimeTicks, Unsigned32, Gauge32, MibIdentifier, Integer32, Bits, ObjectIdentity, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "NotificationType", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter64", "TimeTicks", "Unsigned32", "Gauge32", "MibIdentifier", "Integer32", "Bits", "ObjectIdentity", "IpAddress")
RowStatus, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TruthValue", "DisplayString", "TextualConvention")
rlEventsMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150))
rlEventsMib.setRevisions(('2010-09-11 00:00',))
if mibBuilder.loadTexts: rlEventsMib.setLastUpdated('201009110000Z')
if mibBuilder.loadTexts: rlEventsMib.setOrganization('Cisco Small Business')
class SmartPortType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))
namedValues = NamedValues(("unknown", 1), ("default", 2), ("printer", 3), ("desktop", 4), ("guest", 5), ("server", 6), ("host", 7), ("ip-camera", 8), ("ip-phone", 9), ("ip-phone-desktop", 10), ("switch", 11), ("router", 12), ("ap", 13))
class SmartPortMacroParameterName(DisplayString):
status = 'current'
subtypeSpec = DisplayString.subtypeSpec + ValueSizeConstraint(1, 32)
class SmartPortMacroParameterValue(DisplayString):
status = 'current'
subtypeSpec = DisplayString.subtypeSpec + ValueSizeConstraint(1, 80)
class SmartPortMacroType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("built-in", 1), ("user-defined", 2))
class SmartPortMacroParameterOrder(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("single", 1), ("first", 2), ("middle", 3), ("last", 4))
rlPortEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1))
rlAutoSmartPortAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("controlled", 3))).clone('controlled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortAdminStatus.setStatus('current')
rlAutoSmartPortOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortOperStatus.setStatus('current')
rlAutoSmartPortLastVoiceVlanStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortLastVoiceVlanStatus.setStatus('current')
rlAutoSmartPortLastVoiceVlanId = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortLastVoiceVlanId.setStatus('current')
rlAutoSmartPortLearningProtocols = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 5), Bits().clone(namedValues=NamedValues(("cdp", 0), ("lldp", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortLearningProtocols.setStatus('current')
rlAutoSmartPortTypesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6), )
if mibBuilder.loadTexts: rlAutoSmartPortTypesTable.setStatus('current')
rlAutoSmartPortTypesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1), ).setIndexNames((0, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortTypesType"))
if mibBuilder.loadTexts: rlAutoSmartPortTypesEntry.setStatus('current')
rlAutoSmartPortTypesType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 1), SmartPortType())
if mibBuilder.loadTexts: rlAutoSmartPortTypesType.setStatus('current')
rlAutoSmartPortTypeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("default", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortTypeStatus.setStatus('current')
rlAutoSmartPortMacro = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 3), RlSmartPortsMacroNameOrZero()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortMacro.setStatus('current')
rlAutoSmartPortTypesRevertToDefaultMacro = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortTypesRevertToDefaultMacro.setStatus('current')
rlAutoSmartPortTypesRevertToDefaultParams = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortTypesRevertToDefaultParams.setStatus('current')
rlAutoSmartPortTypesBuiltinMacro = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 6, 1, 6), SmartPortMacroType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortTypesBuiltinMacro.setStatus('current')
rlAutoSmartPortMacrosParamTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7), )
if mibBuilder.loadTexts: rlAutoSmartPortMacrosParamTable.setStatus('current')
rlAutoSmartPortMacrosParamEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7, 1), ).setIndexNames((0, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortTypesType"), (0, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortMacroType"), (1, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortMacrosParamName"))
if mibBuilder.loadTexts: rlAutoSmartPortMacrosParamEntry.setStatus('current')
rlAutoSmartPortMacroType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7, 1, 1), SmartPortMacroType())
if mibBuilder.loadTexts: rlAutoSmartPortMacroType.setStatus('current')
rlAutoSmartPortMacrosParamName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7, 1, 2), SmartPortMacroParameterName())
if mibBuilder.loadTexts: rlAutoSmartPortMacrosParamName.setStatus('current')
rlAutoSmartPortMacrosParamOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7, 1, 3), SmartPortMacroParameterOrder()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortMacrosParamOrder.setStatus('current')
rlAutoSmartPortMacrosParamValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 7, 1, 4), SmartPortMacroParameterValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortMacrosParamValue.setStatus('current')
rlAutoSmartPortPortsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8), )
if mibBuilder.loadTexts: rlAutoSmartPortPortsTable.setStatus('current')
rlAutoSmartPortPortsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1), ).setIndexNames((0, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortPort"))
if mibBuilder.loadTexts: rlAutoSmartPortPortsEntry.setStatus('current')
rlAutoSmartPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: rlAutoSmartPortPort.setStatus('current')
rlAutoSmartPortPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortPortStatus.setStatus('current')
rlAutoSmartPortPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 3), SmartPortType().clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortPortType.setStatus('current')
rlAutoSmartPortPersistency = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("persistent", 1), ("not-persistent", 2))).clone('not-persistent')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortPersistency.setStatus('current')
rlAutoSmartPortLearntPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 5), SmartPortType().clone('default')).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortLearntPortType.setStatus('current')
rlAutoSmartPortPortAcquiringType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("default", 1), ("configuration", 2), ("persistency", 3), ("learning", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortPortAcquiringType.setStatus('current')
rlAutoSmartPortLastActivatedMacro = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 7), RlSmartPortsMacroNameOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortLastActivatedMacro.setStatus('current')
rlAutoSmartPortFailedCommandNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartPortFailedCommandNumber.setStatus('current')
rlAutoSmartPortSetLearntPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 8, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortSetLearntPortType.setStatus('current')
rlAutoSmartPortParamsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9), )
if mibBuilder.loadTexts: rlAutoSmartPortParamsTable.setStatus('current')
rlAutoSmartPortParamsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9, 1), ).setIndexNames((0, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortIfIndex"), (1, "CISCOSB-EVENTS-MIB", "rlAutoSmartPortParamName"))
if mibBuilder.loadTexts: rlAutoSmartPortParamsEntry.setStatus('current')
rlAutoSmartPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: rlAutoSmartPortIfIndex.setStatus('current')
rlAutoSmartPortParamName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9, 1, 2), SmartPortMacroParameterName())
if mibBuilder.loadTexts: rlAutoSmartPortParamName.setStatus('current')
rlAutoSmartPortParamOrder = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9, 1, 3), SmartPortMacroParameterOrder()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlAutoSmartPortParamOrder.setStatus('current')
rlAutoSmartPortParamValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 9, 1, 4), SmartPortMacroParameterValue())
if mibBuilder.loadTexts: rlAutoSmartPortParamValue.setStatus('current')
rlAutoSmartTrunkRefreshTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 10), )
if mibBuilder.loadTexts: rlAutoSmartTrunkRefreshTable.setStatus('current')
rlAutoSmartTrunkRefreshEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 10, 1), ).setIndexNames((0, "CISCOSB-EVENTS-MIB", "rlAutoSmartTrunkRefreshSmartPortType"), (0, "CISCOSB-EVENTS-MIB", "rlAutoSmartTrunkRefreshIfIndex"))
if mibBuilder.loadTexts: rlAutoSmartTrunkRefreshEntry.setStatus('current')
rlAutoSmartTrunkRefreshSmartPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 11, 12, 13))).clone(namedValues=NamedValues(("default", 1), ("switch", 11), ("router", 12), ("ap", 13))))
if mibBuilder.loadTexts: rlAutoSmartTrunkRefreshSmartPortType.setStatus('current')
rlAutoSmartTrunkRefreshIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 10, 1, 2), InterfaceIndexOrZero())
if mibBuilder.loadTexts: rlAutoSmartTrunkRefreshIfIndex.setStatus('current')
rlAutoSmartTrunkRefreshRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 10, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlAutoSmartTrunkRefreshRowStatus.setStatus('current')
rlAutoSmartBusy = MibScalar((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 150, 1, 11), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlAutoSmartBusy.setStatus('current')
mibBuilder.exportSymbols("CISCOSB-EVENTS-MIB", rlAutoSmartPortPort=rlAutoSmartPortPort, rlAutoSmartPortLastVoiceVlanStatus=rlAutoSmartPortLastVoiceVlanStatus, rlAutoSmartPortTypesRevertToDefaultMacro=rlAutoSmartPortTypesRevertToDefaultMacro, rlAutoSmartPortTypesBuiltinMacro=rlAutoSmartPortTypesBuiltinMacro, rlAutoSmartPortMacrosParamTable=rlAutoSmartPortMacrosParamTable, rlAutoSmartPortFailedCommandNumber=rlAutoSmartPortFailedCommandNumber, rlAutoSmartTrunkRefreshIfIndex=rlAutoSmartTrunkRefreshIfIndex, rlPortEvents=rlPortEvents, rlAutoSmartPortLearningProtocols=rlAutoSmartPortLearningProtocols, rlAutoSmartPortParamName=rlAutoSmartPortParamName, SmartPortMacroType=SmartPortMacroType, rlAutoSmartBusy=rlAutoSmartBusy, rlAutoSmartPortMacrosParamName=rlAutoSmartPortMacrosParamName, rlAutoSmartPortOperStatus=rlAutoSmartPortOperStatus, rlAutoSmartPortTypesTable=rlAutoSmartPortTypesTable, rlAutoSmartPortPortsEntry=rlAutoSmartPortPortsEntry, rlAutoSmartPortTypesEntry=rlAutoSmartPortTypesEntry, rlAutoSmartPortTypeStatus=rlAutoSmartPortTypeStatus, rlAutoSmartPortPortAcquiringType=rlAutoSmartPortPortAcquiringType, SmartPortMacroParameterValue=SmartPortMacroParameterValue, rlAutoSmartPortPortStatus=rlAutoSmartPortPortStatus, SmartPortType=SmartPortType, rlAutoSmartPortTypesRevertToDefaultParams=rlAutoSmartPortTypesRevertToDefaultParams, rlAutoSmartPortLastActivatedMacro=rlAutoSmartPortLastActivatedMacro, rlAutoSmartPortMacrosParamOrder=rlAutoSmartPortMacrosParamOrder, rlAutoSmartTrunkRefreshSmartPortType=rlAutoSmartTrunkRefreshSmartPortType, rlAutoSmartPortLearntPortType=rlAutoSmartPortLearntPortType, rlAutoSmartTrunkRefreshRowStatus=rlAutoSmartTrunkRefreshRowStatus, rlAutoSmartPortAdminStatus=rlAutoSmartPortAdminStatus, rlAutoSmartPortParamsEntry=rlAutoSmartPortParamsEntry, rlAutoSmartPortMacroType=rlAutoSmartPortMacroType, rlAutoSmartPortParamsTable=rlAutoSmartPortParamsTable, rlAutoSmartPortPortType=rlAutoSmartPortPortType, rlAutoSmartPortTypesType=rlAutoSmartPortTypesType, rlAutoSmartPortMacro=rlAutoSmartPortMacro, rlAutoSmartPortPersistency=rlAutoSmartPortPersistency, PYSNMP_MODULE_ID=rlEventsMib, rlAutoSmartTrunkRefreshTable=rlAutoSmartTrunkRefreshTable, rlAutoSmartPortLastVoiceVlanId=rlAutoSmartPortLastVoiceVlanId, rlAutoSmartPortPortsTable=rlAutoSmartPortPortsTable, rlAutoSmartPortParamOrder=rlAutoSmartPortParamOrder, rlEventsMib=rlEventsMib, rlAutoSmartPortIfIndex=rlAutoSmartPortIfIndex, SmartPortMacroParameterName=SmartPortMacroParameterName, rlAutoSmartPortParamValue=rlAutoSmartPortParamValue, rlAutoSmartTrunkRefreshEntry=rlAutoSmartTrunkRefreshEntry, SmartPortMacroParameterOrder=SmartPortMacroParameterOrder, rlAutoSmartPortMacrosParamEntry=rlAutoSmartPortMacrosParamEntry, rlAutoSmartPortMacrosParamValue=rlAutoSmartPortMacrosParamValue, rlAutoSmartPortSetLearntPortType=rlAutoSmartPortSetLearntPortType)
|
# https://leetcode.com/problems/lru-cache/
class Node:
def __init__(self, key, value, nxt=None, prev=None):
self.key = key
self.value = value
self.next = nxt
self.prev = prev
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.map = dict()
# Setup doubly linked list
self.linked_list_head = Node(None, None)
self.linked_list_tail = Node(None, None, None, self.linked_list_head)
self.linked_list_head.next = self.linked_list_tail
def get(self, key: int) -> int:
if key not in self.map:
return -1
curNode = self.map[key]
# Remove from list
curNode.prev.next = curNode.next
curNode.next.prev = curNode.prev
# Add to front
curNode.next = self.linked_list_head.next
curNode.next.prev = curNode
self.linked_list_head.next = curNode
curNode.prev = self.linked_list_head
return curNode.value
def put(self, key: int, value: int) -> None:
if key in self.map:
self.map[key].value = value
self.get(key)
return
if len(self.map) >= self.capacity:
nodeToEvict = self.linked_list_tail.prev
# Remove the node from list
self.linked_list_tail.prev = nodeToEvict.prev
nodeToEvict.prev.next = self.linked_list_tail
# Remove from map
del self.map[nodeToEvict.key]
# Add to front
curNode = Node(key, value, self.linked_list_head.next, self.linked_list_head)
self.linked_list_head.next = curNode
curNode.next.prev = curNode
# Add to map
self.map[key] = curNode
# Your LRUCache object will be instantiated and called as such:
# obj = LRUCache(capacity)
# param_1 = obj.get(key)
# obj.put(key,value)
|
#memocate.py: The Trivial Memory Allocator in Python
#Disclaimer: Use this at your own discretion. I am not responsible for anything that happens.
#Author: TD
#initialization
a = "a"
mode = input("(0) Intensive or (1) Safe: ")
#Storing string to memory until overflow.
#Concatenating Runtime: O(n)
if(mode):
print("Safe Mode O(n)")
while(1):
a = a + "a"
#Concatenating Runtime O(n^2)
else:
print("Intensive Mode O(n^2)")
while(1):
a = a + a
|
#
# @lc app=leetcode id=1275 lang=python3
#
# [1275] Find Winner on a Tic Tac Toe Game
#
# @lc code=start
class Solution:
def tictactoe(self, moves: list[list[int]]) -> str:
rows, cols, hill, dale, mark = [0, 0, 0], [0, 0, 0], 0, 0, 1
for i, j in moves:
rows[i] += mark
cols[j] += mark
hill += mark * (i == 2 - j)
dale += mark * (i == j)
if abs(rows[i]) == 3:
return "A" if rows[i] == 3 else "B"
elif abs(cols[j]) == 3:
return "A" if cols[j] == 3 else "B"
elif abs(hill) == 3:
return "A" if hill == 3 else "B"
elif abs(dale) == 3:
return "A" if dale == 3 else "B"
mark = -mark
return "Pending" if len(moves) < 9 else "Draw"
# @lc code=end
|
'''
File: imports.py
Project: src
File Created: Sunday, 28th February 2021 3:10:35 am
Author: Sparsh Dutta ([email protected])
-----
Last Modified: Sunday, 28th February 2021 3:10:35 am
Modified By: Sparsh Dutta ([email protected]>)
-----
Copyright 2021 Sparsh Dutta
'''
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def geometric_mid(*args):
if args:
ans = 1
for item in args:
ans *= item
return pow(ans, 1/len(args))
else:
return None
if __name__ == "__main__":
print(geometric_mid())
print(geometric_mid(5, 4, 2, 8, 9))
print(geometric_mid(3, 7, 4, 9, 4, 5))
|
"""
Clothing is a class that represents pieces of clothing in a closet. It tracks the color, category, and clean/dirty state.
"""
class Clothing:
"""
>>> blue_shirt = Clothing("shirt", "blue")
>>> blue_shirt.category
'shirt'
>>> blue_shirt.color
'blue'
>>> blue_shirt.is_clean
True
>>> blue_shirt.wear()
>>> blue_shirt.is_clean
False
>>> blue_shirt.clean()
>>> blue_shirt.is_clean
True
"""
# Write an __init__ method
def __init__(self, category, color):
self.category = category
self.color = color
self.is_clean = True
# Write the wear() method
def wear(self):
self.is_clean = False
# Write the clean() method
def clean(self):
self.is_clean = True |
# Compute mean of combined data set: combined_mean
combined_mean = np.mean(np.concatenate((bd_1975, bd_2012)))
# Shift the samples
bd_1975_shifted = bd_1975 - np.mean(bd_1975) + combined_mean
bd_2012_shifted = bd_2012 - np.mean(bd_2012) + combined_mean
# Get bootstrap replicates of shifted data sets
bs_replicates_1975 = draw_bs_reps(bd_1975_shifted, np.mean, 10000)
bs_replicates_2012 = draw_bs_reps(bd_2012_shifted, np.mean, 10000)
# Compute replicates of difference of means: bs_diff_replicates
bs_diff_replicates = bs_replicates_2012 - bs_replicates_1975
# Compute the p-value: p
p = np.sum(bs_diff_replicates >= mean_diff) / len(bs_diff_replicates)
# Print p-value
print('p =', p)
|
##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terceira Edição - Janeiro/2019 - ISBN 978-85-7522-718-3
#
# Site: https://python.nilo.pro.br/
#
# Arquivo: exercicios3\capitulo 06\exercicio-06-02.py
##############################################################################
primeira = []
segunda = []
while True:
e = int(input("Digite um valor para a primeira lista (0 para terminar): "))
if e == 0:
break
primeira.append(e)
while True:
e = int(input("Digite um valor para a segunda lista (0 para terminar): "))
if e == 0:
break
segunda.append(e)
terceira = primeira[:] # Copia os elementos da primeira lista
terceira.extend(segunda)
x = 0
while x < len(terceira):
print(f"{x}: {terceira[x]}")
x = x + 1
|
class Solution(object):
def convert_phone(self, phone):
phone = phone.strip().replace(' ', '').replace('(', '').replace(')', '').replace('-', '').replace('+', '')
if len(phone) == 10:
return "***-***-" + phone[-4:]
else:
return "+" + '*' * (len(phone) - 10) + "-***-***-" + phone[-4:]
def convert_email(self, email):
email = email.lower()
first_name, host = email.split('@')
return first_name[0] + '*****' + first_name[-1] + '@' + host
def maskPII(self, S):
"""
:type S: str
:rtype: str
"""
return self.convert_email(S) if '@' in S else self.convert_phone(S) |
"""
Given only a reference to a specific node in a linked list, delete that node from a singly-linked list.
Example:
The code below should first construct a linked list (x -> y -> z) and then delete `y`
from the linked list by calling the function `delete_node`. It is your job to write the `delete_node` function.
"""
class LinkedListNode():
def __init__(self, value):
self.value = value
self.next = None
def delete_node(delete_this_node):
# Your code here
next_node = delete_this_node.next
# copy all of next node into the current node we are "deleting"
# start with the value
if next_node is not None:
delete_this_node.value = next_node.value
# skip over the next_node in our linked list
delete_this_node.next = next_node.next
else:
print("Sorry we cannot delete the last node using this technique")
x = LinkedListNode('X')
y = LinkedListNode('Y')
z = LinkedListNode('Z')
x.next = y
y.next = z
delete_node(y)
"""
Linked Lists Core Operations:
- access
- search
- insert
- delete
""" |
__author__ = "Max Dippel, Michael Burkart and Matthias Urban"
__version__ = "0.0.1"
__license__ = "BSD"
CSConfig = dict()
# SchedulerStepLR
step_lr = dict()
step_lr['step_size'] = (1, 10)
step_lr['gamma'] = (0.001, 0.9)
CSConfig['step_lr'] = step_lr
# SchedulerExponentialLR
exponential_lr = dict()
exponential_lr['gamma'] = (0.8, 0.9999)
CSConfig['exponential_lr'] = exponential_lr
# SchedulerReduceLROnPlateau
reduce_on_plateau = dict()
reduce_on_plateau['factor'] = (0.05, 0.5)
reduce_on_plateau['patience'] = (3, 10)
CSConfig['reduce_on_plateau'] = reduce_on_plateau
# SchedulerCyclicLR
cyclic_lr = dict()
cyclic_lr['max_factor'] = (1.0, 2)
cyclic_lr['min_factor'] = (0.001, 1.0)
cyclic_lr['cycle_length'] = (3, 10)
CSConfig['cyclic_lr'] = cyclic_lr
# SchedulerCosineAnnealingWithRestartsLR
cosine_annealing_lr = dict()
cosine_annealing_lr['T_max'] = (1, 20)
cosine_annealing_lr['T_mult'] = (1.0, 2.0)
CSConfig['cosine_annealing_lr'] = cosine_annealing_lr
|
# [8 kyu] Double Char
#
# Author: Hsins
# Date: 2019/11/28
def two_sort(array):
word = sorted(array)[0]
return "".join(c + '***' for c in word)[0:-3]
|
def func(x,y):
if(y == 0):
return 0
else:
print(x,y)
return x + func(x,y-1)
func(10,10)
|
"""
Factorial of a number
e.g. 4! = 4*3*2*1
"""
def factorial_of_number(num):
if num > 0:
return num * factorial_of_number(num - 1)
else:
return 1
if __name__ == "__main__":
print(factorial_of_number(5))
|
class Person(Thing):
"""A person (alive, dead, undead, or fictional)."""
address: Optional[str] = None
affiliations: Optional[Array["Organization"]] = None
emails: Optional[Array[str]] = None
familyNames: Optional[Array[str]] = None
funders: Optional[Array[Union["Organization", "Person"]]] = None
givenNames: Optional[Array[str]] = None
honorificPrefix: Optional[str] = None
honorificSuffix: Optional[str] = None
jobTitle: Optional[str] = None
memberOf: Optional[Array["Organization"]] = None
telephoneNumbers: Optional[Array[str]] = None
def __init__(
self,
address: Optional[str] = None,
affiliations: Optional[Array["Organization"]] = None,
alternateNames: Optional[Array[str]] = None,
description: Optional[Union[str, Array["Node"]]] = None,
emails: Optional[Array[str]] = None,
familyNames: Optional[Array[str]] = None,
funders: Optional[Array[Union["Organization", "Person"]]] = None,
givenNames: Optional[Array[str]] = None,
honorificPrefix: Optional[str] = None,
honorificSuffix: Optional[str] = None,
id: Optional[str] = None,
jobTitle: Optional[str] = None,
memberOf: Optional[Array["Organization"]] = None,
meta: Optional[Dict[str, Any]] = None,
name: Optional[str] = None,
telephoneNumbers: Optional[Array[str]] = None,
url: Optional[str] = None
) -> None:
super().__init__(
alternateNames=alternateNames,
description=description,
id=id,
meta=meta,
name=name,
url=url
)
if address is not None:
self.address = address
if affiliations is not None:
self.affiliations = affiliations
if emails is not None:
self.emails = emails
if familyNames is not None:
self.familyNames = familyNames
if funders is not None:
self.funders = funders
if givenNames is not None:
self.givenNames = givenNames
if honorificPrefix is not None:
self.honorificPrefix = honorificPrefix
if honorificSuffix is not None:
self.honorificSuffix = honorificSuffix
if jobTitle is not None:
self.jobTitle = jobTitle
if memberOf is not None:
self.memberOf = memberOf
if telephoneNumbers is not None:
self.telephoneNumbers = telephoneNumbers
|
class Solution:
"""
@param nums: a list of integers
@param lower: a integer
@param upper: a integer
@return: return a integer
"""
def countRangeSum(self, nums, lower, upper):
prefixSumCnt = {0: 1}
presum = 0
result = 0
for num in nums:
presum += num
for j in range(lower, upper + 1):
if presum - j in prefixSumCnt:
result += prefixSumCnt[presum - j]
prefixSumCnt[presum] = prefixSumCnt.get(presum, 0) + 1
return result
|
class Params:
# the most important parameter
random_seed = 224422
# system params
verbose = True
device = None # to be set on runtime
num_workers = 2
# dataset params
datasets_dir = 'datasets'
dataset = 'churches'
train_suffix = 'train'
valid_suffix = 'val'
flip = True
normalize = True
# images params
image_size = (512, 1024)
input_left = True
in_channels = 3
out_channels = 3
# experimenter params
runs_dir = 'runs'
save_checkpoints = True
load_checkpoint = None
checkpoints_subdir = 'checkpoints'
checkpoints_template = 'pix2pix{}.pt'
checkpoints_freq = 10
examples_subdir = 'examples'
metadata_file = 'metadata.json'
metrics_file = 'metrics.json'
examples_ids = [6, 9, 11, 16, 45]
# generator params
generator_channels = 64
generator_layers = 4
generator_kernel = 5
generator_dropout = 0.5
generator_norm = 'instance'
# discriminator params
adversarial = True
discriminator_channels = 64
discriminator_layers = 3
discriminator_norm = 'instance'
# train params
batch_size = 4
num_epochs = 50
lr = 3e-4
loss = 'L2'
loss_lambda = 100.0
def set_params():
return Params()
|
#
# Example file for working with functions
#
# define a basic function
def func1():
print ("I am a function")
# function that takes arguments
def func2(arg1, arg2):
print (arg1, " ", arg2)
# function that returns a value
def cube(x):
return x*x*x
# function with default value for an argument
def power(num, x=1):
result = 1;
for i in range(x):
result = result * num
return result
#function with variable number of arguments
def multi_add(*args):
result = 0;
for x in args:
result = result + x
return result
#func1()
#print (func1())
#print (func1)
#func2(10,20)
#print (func2(10,20))
#print (func2)
#print (cube(3))
#print (power(2))
#print (power(2,3))
print (power(x=10, num=10))
#print (multi_add(4,5,10,4))
|
class CarrinhoDeCompras: # pode existir sem produtos, mas precisa dos produtos
def __init__(self):
self.__produtos = []
def inserir_produto(self, produto):
self.__produtos.append(produto)
def lista_produto(self):
for produto in self.__produtos:
print(produto.nome, produto.valor)
def soma_total(self):
total = 0
for produto in self.__produtos:
total += produto.valor
return total
class Produto: # produtos não depende do carrinhosdecompras
def __init__(self, nome, valor):
self.__nome = nome
self.__valor = valor
@property
def nome(self):
return self.__nome
@property
def valor(self):
return self.__valor
|
name = input("Enter lenght of name: ")
if len(name) < 3:
print("name must be at least 3 characters")
elif len(name) > 50:
print("name can be a maximum of 50 characters")
else:
print("name looks good!")
|
# File: Lists_inside_Dictionary_in_Python.py
# Description: Calculating the scores of sports team by using Lists inside Dictionary
# Environment: PyCharm and Anaconda environment
#
# MIT License
# Copyright (c) 2018 Valentyn N Sichkar
# github.com/sichkar-valentyn
# Reference to:
# [1] Valentyn N Sichkar. Lists inside Dictionary in Python // GitHub platform [Electronic resource]. URL: https://github.com/sichkar-valentyn/Lists_inside_Dictionary_in_Python (date of access: XX.XX.XXXX)
# Implementing the task
# Lists inside dictionary
# Calculating the scores of sports team
n = int(input()) # number of games
string = ''
d = {}
# Format of input is following:
# Team;score;Team;score
for i in range(n):
string = input().split(';')
# If there is no yet teams in the dictionary
if string[0] not in d:
d[string[0]] = [1, 0, 0, 0, 0]
else:
d[string[0]][0] += 1
if string[2] not in d:
d[string[2]] = [1, 0, 0, 0, 0]
else:
d[string[2]][0] += 1
# Calculating data
if int(string[1]) > int(string[3]): # Who wins
d[string[0]][1] += 1
d[string[0]][4] += 3
d[string[2]][3] += 1
elif int(string[1]) == int(string[3]): # If draw
d[string[0]][2] += 1
d[string[2]][2] += 1
d[string[0]][4] += 1
d[string[2]][4] += 1
elif int(string[1]) < int(string[3]): # Who loses
d[string[2]][1] += 1
d[string[2]][4] += 3
d[string[0]][3] += 1
# Showing the table with results
# Format of output is following:
# Team: number_of_games number_of_wins number_of_draw_games number_of_lost_games score_of_win_games
for x, y in d.items():
print(x, end=':')
for z in y:
print(z, end=' ')
print()
|
my_list = [1, 2, 3, 4, 5, 6, 7, 8]
def filter_iter(list, pred):
filtered = []
for i in list:
if pred(i):
filtered.append(i)
return filtered
def filter_beautiful(list, pred):
return [x for x in list if pred(x)]
def even(x):
return x % 2 == 0
print(filter_iter(my_list, even))
print(filter_beautiful(my_list, even)) |
"""
986. Interval List Intersections
Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order.
Return the intersection of these two interval lists.
(Formally, a closed interval [a, b] (with a <= b) denotes the set of real numbers x with a <= x <= b. The intersection of two closed intervals is a set of real numbers that is either empty, or can be represented as a closed interval. For example, the intersection of [1, 3] and [2, 4] is [2, 3].)
Input: A = [[0,2],[5,10],[13,23],[24,25]], B = [[1,5],[8,12],[15,24],[25,26]]
Output: [[1,2],[5,5],[8,10],[15,23],[24,24],[25,25]]
Reminder: The inputs and the desired output are lists of Interval objects, and not arrays or lists.
"""
# SWEEP line method
# Runtime: 172 ms, faster than 22.99% of Python3 online submissions for Interval List Intersections.
# Memory Usage: 14 MB, less than 6.06% of Python3 online submissions for Interval List Intersections.
class Solution:
def intervalIntersection(self, A: List[List[int]], B: List[List[int]]) -> List[List[int]]:
indices = []
for start, end in A:
indices.append([start, 1])
indices.append([end, -1])
for start, end in B:
indices.append([start, 1])
indices.append([end, -1])
indices = sorted(indices, key=lambda x:(x[0], -x[1]))
start = -1
res = []
num_interval = 0
for index, is_start in indices:
if is_start == 1:
start = max(index, start)
num_interval += 1
else:
if start != -1 and num_interval > 1:
res.append([start, index])
start = -1
num_interval -= 1
return res |
title=xpath("div[@class=BlogTitle]")
urls="http://my\\.oschina\\.net/flashsword/blog/\\d+"
result={"title":title,"urls":urls}
|
print("nihao,shijie")
print("lalalalal")
print("ninniiiinnij")
|
# -*- coding: utf-8 -*-
"""Top-level package for condastats."""
__author__ = """Sophia Man Yang"""
__version__ = '0.1.0'
|
for _ in range(int(input())):
n=int(input())
nums=list(map(int, input().split()))
ini=10**5
for i in range(n):
if ini>nums[i]:
ini=nums[i]
res=i
print(res+1)
|
#
# Copyright (C) 2018 SecurityCentral Contributors see LICENSE for license
#
'''
This base platform module exports platform dependant constants.
'''
class SecurityCentralPlatformBaseConstants(object):
pass
|
expected_output = {
'Et0/2:12': {
'type': 'BD_PORT',
'is_path_list': False,
'port': 'Et0/2:12'
},
'[IR]20012:2.2.2.2': {
'type':'VXLAN_REP',
'is_path_list': True,
'path_list': {
'id': 1191,
'path_count': 1,
'type': 'VXLAN_REP',
'description': '[IR]20012:2.2.2.2'
}
},
'[IR]20012:3.3.3.2': {
'type':'VXLAN_REP',
'is_path_list': True,
'path_list': {
'id': 1184,
'path_count': 1,
'type': 'VXLAN_REP',
'description': '[IR]20012:3.3.3.2'
}
}
} |
#!/usr/bin/env python
# -*- coding: utf-8; -*-
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
class Timeseries:
def __init__(self, col_name, df, date_range=None, min=None, max=None):
self.col_name = col_name
self.df = df
self.date_range = date_range
self.min = min
self.max = max
def plot(self, **kwargs):
# this could be improved :)
pass
|
nums = input('Please enter 5 numbers, separated by commas:\n')
nums1 = nums.split(',')
#print('You entered ' + nums1[0] + ', ' + nums1[1] + ', ' + nums1[2] + ', ' + nums1[3] + ', ' + nums1[4] + ', ' )
print('You entered ' + nums1[0] + ', ' + nums1[1] + ', ' + nums1[2] + ', ' + nums1[3] + ', ' + nums1[4] +'.')
nums1[0] = int(nums1[0])
nums1[1] = int(nums1[1])
nums1[2] = int(nums1[2])
nums1[3] = int(nums1[3])
nums1[4] = int(nums1[4])
total = (nums1[0] + nums1[1] + nums1[2] + nums1[3] + nums1[4])
total = str(total)
print('The sum is: ' + total) |
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
class VmwareTagActions(object):
# vSphere Automation API (6.5)
# API Reference: https://code.vmware.com/web/dp/explorer-apis?id=191
def __init__(self, session, url_base):
self.session = session
self.url_base = url_base
############################################################################
# Request Actions
def make_url(self, endpoint):
return self.url_base + endpoint
def get(self, endpoint):
url = self.make_url(endpoint)
response = self.session.get(url)
response.raise_for_status()
return response.json()
def post(self, endpoint, payload=None):
url = self.make_url(endpoint)
response = self.session.post(url, json=payload)
response.raise_for_status()
if response.text:
return response.json()
return None
def delete(self, endpoint, payload=None):
url = self.make_url(endpoint)
response = self.session.delete(url, json=payload)
response.raise_for_status()
if response.text:
return response.json()
return None
############################################################################
# Category Functions
def category_list(self):
response = self.get("/rest/com/vmware/cis/tagging/category")
return response['value']
def category_get(self, category_id):
response = self.get("/rest/com/vmware/cis/tagging/category/id:{}".format(category_id))
return response['value']
def category_delete(self, category_id):
response = self.delete("/rest/com/vmware/cis/tagging/category/id:{}".format(category_id))
return response
def category_find_by_name(self, name):
category_id_list = self.category_list()
for category_id in category_id_list:
category = self.category_get(category_id)
if category["name"] == name:
return category
return None
def category_create_spec(self):
return {"name": "",
"description": "",
"cardinality": "SINGLE", # "SINGLE", "MULTIPLE"
"associable_types": ["VirtualMachine"]} # One or more VMWARE_OBJECT_TYPES
def category_create(self, name, description=None, cardinality=None,
associable_types=None):
create_spec = self.category_create_spec()
create_spec['name'] = name
if description:
create_spec['description'] = description
if cardinality:
create_spec['cardinality'] = cardinality
if associable_types is not None:
create_spec['associable_types'] = associable_types
response = self.post("/rest/com/vmware/cis/tagging/category",
payload={'create_spec': create_spec})
return response['value']
def category_get_or_create(self, name, description=None, cardinality=None,
associable_types=None):
category = self.category_find_by_name(name)
if not category:
# on success this returns the new category's id
category_id = self.category_create(name, description, cardinality, associable_types)
category = self.category_get(category_id)
return category
############################################################################
# Tag Functions
def tag_list(self, category_id=None):
# Return all tags from the given category, or all tags from all categories
if category_id:
response = self.post("/rest/com/vmware/cis/tagging/tag/id:{}?~action="
"list-tags-for-category".format(category_id))
else:
response = self.get("/rest/com/vmware/cis/tagging/tag")
return response["value"]
def tag_get(self, tag_id):
response = self.get("/rest/com/vmware/cis/tagging/tag/id:{}".format(tag_id))
return response['value']
def tag_delete(self, tag_id):
response = self.delete("/rest/com/vmware/cis/tagging/tag/id:{}".format(tag_id))
return response
# If a category ID is not given then this will return the first tag it finds with the given name
def tag_find_by_name(self, name, category_id=None):
tag_id_list = self.tag_list(category_id)
for tag_id in tag_id_list:
tag = self.tag_get(tag_id)
if tag['name'] == name:
return tag
return None
def tag_create_spec(self):
return {"name": "",
"description": "",
"category_id": ""}
def tag_create(self, name, category_id, description=None):
create_spec = self.tag_create_spec()
create_spec["name"] = name
create_spec["category_id"] = category_id
if description:
create_spec["description"] = description
response = self.post("/rest/com/vmware/cis/tagging/tag",
payload={"create_spec": create_spec})
return response["value"]
# This does not create a new category, it will fail if the given category ID doesn't exist
def tag_get_or_create(self, name, category_id, description=None):
tag = self.tag_find_by_name(name, category_id)
if not tag:
# on success this returns the new tag's id
created_tag_id = self.tag_create(name, category_id, description)
tag = self.tag_get(created_tag_id)
return tag
############################################################################
# Tag Association Functions
def tag_association_endpoint(self, action, tag_id=None):
if tag_id:
return "/rest/com/vmware/cis/tagging/tag-association/id:{}?~action={}".format(tag_id,
action)
else:
return "/rest/com/vmware/cis/tagging/tag-association?~action={}".format(action)
def tag_association_attach(self, tag_id, obj_type, obj_id):
return self.post(self.tag_association_endpoint("attach", tag_id),
payload={"object_id": {"id": obj_id,
"type": obj_type}})
def tag_association_attach_multiple(self, tag_ids, obj_type, obj_id):
return self.post(self.tag_association_endpoint("attach-multiple-tags-to-object"),
payload={"tag_ids": tag_ids,
"object_id": {"id": obj_id,
"type": obj_type}})
def tag_association_detach(self, tag_id, obj_type, obj_id):
return self.post(self.tag_association_endpoint("detach", tag_id),
payload={"object_id": {"id": obj_id,
"type": obj_type}})
def tag_association_list_attached_tags(self, obj_type, obj_id):
response = self.post(self.tag_association_endpoint("list-attached-tags"),
payload={"object_id": {"id": obj_id,
"type": obj_type}})
return response['value']
def tag_association_list_attached_objects(self, tag_id):
response = self.post(self.tag_association_endpoint("list-attached-objects",
tag_id))
return response['value']
def tag_association_detach_category(self, category_id, obj_type, obj_id):
# get all tags for this object
tag_id_list = self.tag_association_list_attached_tags(obj_type, obj_id)
# if the tag's category matches category_id then detach the tag
results = []
for tag_id in tag_id_list:
tag = self.tag_get(tag_id)
if tag['category_id'] == category_id:
self.tag_association_detach(tag_id, obj_type, obj_id)
results.append(tag)
return results
def tag_association_replace(self, tag_id, obj_type, obj_id):
# remove all tags
tag = self.tag_get(tag_id)
self.tag_association_detach_category(tag['category_id'], obj_type, obj_id)
# attach the provided tag in this category to the object
return self.tag_association_attach(tag_id, obj_type, obj_id)
|
class Solution:
def countBits(self, n: int) -> list[int]:
res = []
for i in range(n + 1):
res.append(bin(i).count("1"))
return res
class Solution:
def countBits(self, n: int) -> list[int]:
res = [0] * (n + 1)
for x in range(1, n + 1):
res[x] = res[x & (x - 1)] + 1
return res
|
# Used for CSRF protection of wtforms (other than that, the session cookie is not used)
# give a random string, at best generated by import secrets; print(secrets.token_bytes(16))
SECRET_KEY = None
# Used to pepper the hashes of the identifier, just in case there is some information there
PEPPER = b'.\x02G\x04\xc39\xec\xdc1\xe3\xad\xc6\xc3\xec8\xe5'
# Base URL of the system, used in SMS and emails
BASE_URL = 'http://127.0.0.1:5000'
# Regular expression covering all allowed identifiers to access lab results (case insensitive)
CODE_REGEXP = r'^ *LAB-([A-Z\d] *){16} *$'
# API keys to push data to the system, i.e. ['1ed51a78b2959cbfd035aa6de641253355bcd91a509bf3806275aaa8388d9128']
# (do not use the super secret key as everyone can get it from Github now, generate your own with:
# import secrets; print(secrets.token_hex(32))
API_KEYS = []
# SMS are send via email to [email protected] (user can enter +43..., 017... or 00...., default country is +49 Germany)
SMS_GATEWAY_EMAIL = '@sms.example.com'
# SMTP details
SMTP_HOST = '127.0.0.1'
SMTP_FROM = '[email protected]'
SMTP_ERROR_TO = ['[email protected]']
# All messages sent by regular operation, i.e. without the error messages, are BCCed to these addresses
SMTP_BCC = SMTP_ERROR_TO
# Message template, currently only all
SMTP_TOKEN_TEMPLATE = """From: {sender}
To: {to}
Subject: Abrufcode Laborergebnisse
{token} ist Ihr Abrufcode zu dem Laborergebnis auf {base_url}/query?token={token}. Vielen Dank, Ihr Klinikum Stuttgart"""
SMTP_NOTIFY_TEMPLATE = """From: {sender}
Subject: SMS Notification Lab Result
Sie können Ihr Laborergebnis unter {base_url} abrufen.
"""
# Used to normalize the code received from the user, after this it should match the code used to import the data (or used to create the hash)
def CODE_CLEANUP(code):
# Harmonize input prior to hash generation for comparing to existing hashes
return code.upper().strip()
|
R1_info = {
'device_type': 'cisco_ios',
'ip': '192.168.1.1',
'username': 'user',
'password': 'pass',
}
R2_info = {
'device_type': 'cisco_ios',
'ip': '192.168.1.2',
'username': 'user',
'password': 'pass',
}
R3_info = {
'device_type': 'cisco_ios',
'ip': '192.168.1.3',
'username': 'user',
'password': 'pass',
}
R4_info = {
'device_type': 'cisco_ios',
'ip': '192.168.1.4',
'username': 'user',
'password': 'pass',
}
R5_info = {
'device_type': 'cisco_ios',
'ip': '192.168.1.5',
'username': 'user',
'password': 'pass',
}
R1_connections = {
'2': 's2/0',
'3': 's2/1',
'4': 's2/2',
}
R2_connections = {
'1': 's2/0',
'3': 'e0/0',
'5': 's3/0',
}
R3_connections = {
'1': 's2/1',
'2': 'e0/0',
'4': 'e0/1',
'5': 's3/1',
}
R4_connections = {
'1': 's2/2',
'3': 'e0/1',
'5': 's3/2',
}
R5_connections = {
'2': 's3/0',
'3': 's3/1',
'4': 's3/2',
}
R1 = (R1_info, R1_connections)
R2 = (R2_info, R2_connections)
R3 = (R3_info, R3_connections)
R4 = (R4_info, R4_connections)
R5 = (R5_info, R5_connections) |
# -*- coding: utf-8 -*-
"""
webelementspy.jsscripts
~~~~~~~~~~~~
This file contain JS scripts to be injected to webdriver
:copyright: (c) 2019 by Yasser.
:license: MIT, see LICENSE for more details.
"""
__all__ = ['js_init', 'js_listner_capture', 'js_raw_html']
js_init = {}
js_init['js_init_init_check'] = r'''
if(document.pyspy_html_elem) return;
'''
js_init['js_init_html_elem'] = r'''
document.pyspy_html_elem = function(name) {
if (document.contentType == 'application/xhtml+xml') {
return 'x:' + name
} else {
return name
}
}
'''
js_init['js_init_xp_attr_val'] = r'''
document.pyspy_xp_attr_val = function(value) {
if (value.indexOf("'") < 0) {
return "'" + value + "'"
} else if (value.indexOf('"') < 0) {
return '"' + value + '"'
} else {
let result = 'concat('
let part = ''
let didReachEndOfValue = false
while (!didReachEndOfValue) {
let apos = value.indexOf("'")
let quot = value.indexOf('"')
if (apos < 0) {
result += "'" + value + "'"
didReachEndOfValue = true
break
} else if (quot < 0) {
result += '"' + value + '"'
didReachEndOfValue = true
break
} else if (quot < apos) {
part = value.substring(0, apos)
result += "'" + part + "'"
value = value.substring(part.length)
} else {
part = value.substring(0, quot)
result += '"' + part + '"'
value = value.substring(part.length)
}
result += ','
}
result += ')'
return result
}
}
'''
js_init['js_init_find_elem'] = r'''
document.pyspy_find_elem = function(loc) {
try {
const locator = parse_locator(loc, true)
return document.pyspy_find_elem({ [locator.type]: locator.string }, document)
} catch (error) {
return null
}
}
'''
js_init['js_init_xp_precise'] = r'''
document.pyspy_xp_precise = function(xpath, e) {
if (document.pyspy_find_elem(xpath) != e) {
let result = e.ownerDocument.evaluate(
xpath,
e.ownerDocument,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null
)
for (let i = 0, len = result.snapshotLength; i < len; i++) {
let newPath = 'xpath=(' + xpath + ')[' + (i + 1) + ']'
if (document.pyspy_find_elem(newPath) == e) {
return newPath
}
}
}
return xpath
}
'''
js_init['js_init_generate_ids'] = r'''
document.pyspy_generate_ids = function(e){
document.IDs_builder = new Object()
document.IDs_builder.EVENT = e.type
document.IDs_builder.PATHS = {}
document.IDs_builder.add = function(name, finder) {
if (finder){
this.PATHS[name] = finder
}
}
var jsonParser
if(Object.toJSON){
jsonParser = Object.toJSON;
}
else{
jsonParser = JSON.stringify;
}
document.IDs_builder.add('id', document.pyspy_find_by_id(e.target))
document.IDs_builder.add('name', document.pyspy_find_by_name(e.target))
document.IDs_builder.add('css', document.pyspy_find_by_css(e.target))
document.IDs_builder.add('xpath:link', document.pyspy_find_by_xpath_link(e.target))
document.IDs_builder.add('xpath:innerText', document.pyspy_find_by_xpath_innerText(e.target))
document.IDs_builder.add('xpath:img', document.pyspy_find_by_xpath_img(e.target))
return jsonParser(document.IDs_builder);
}
'''
js_init['js_init_find_by_id'] = r'''
document.pyspy_find_by_id = function id(elem) {
if (elem.id) {
return elem.id
}
return null
}
'''
js_init['js_init_find_by_name'] = r'''
document.pyspy_find_by_name = function name(elem) {
if (elem.name) {
return elem.name
}
return null
}
'''
js_init['js_init_find_by_xpath_innerText'] = r'''
document.pyspy_find_by_xpath_innerText = function xpath_innerText(elem) {
if (elem.innerText) {
return `//${elem.nodeName.toLowerCase()}[contains(.,'${elem.innerText}')]`
}
return null
}
'''
js_init['js_init_find_by_xpath_link'] = r'''
document.pyspy_find_by_xpath_link = function xpath_link(elem) {
if (elem.nodeName == 'A') {
let text = elem.textContent
if (!text.match(/^\s*$/)) {
return document.pyspy_xp_precise(
'//' +
document.pyspy_html_elem('a') +
"[contains(text(),'" +
text.replace(/^\s+/, '').replace(/\s+$/, '') +
"')]",
elem
)
}
}
return null
}
'''
js_init['js_init_find_by_xpath_img'] = r'''
document.pyspy_find_by_xpath_img = function xpath_img(elem) {
if (elem.nodeName == 'IMG') {
if (elem.alt != '') {
return document.pyspy_xp_precise(
'//' +
document.pyspy_html_elem('img') +
'[@alt=' +
document.pyspy_xp_attr_val(elem.alt) +
']',
elem
)
} else if (elem.title != '') {
return document.pyspy_xp_precise(
'//' +
document.pyspy_html_elem('img') +
'[@title=' +
document.pyspy_xp_attr_val(elem.title) +
']',
elem
)
} else if (elem.src != '') {
return document.pyspy_xp_precise(
'//' +
document.pyspy_html_elem('img') +
'[contains(@src,' +
document.pyspy_xp_attr_val(elem.src) +
')]',
elem
)
}
}
return null
}
'''
js_init['js_init_find_by_css'] = r'''
document.pyspy_find_by_css = function css_attr(elem) {
const dataAttributes = ['data-test', 'data-test-id']
for (let i = 0; i < dataAttributes.length; i++) {
const attr = dataAttributes[i]
const value = elem.getAttribute(attr)
if (value) {
return `*[${attr}="${value}"]`
}
}
return null
}
'''
js_init['js_init_mouse_over'] = r'''
document.pyspy_mouse_over = function(e){
if(e.target == document.documentElement) return
document.pyspy_last_elem = e.target;
document.pyspy_border_color = e.target.style.outline;
document.pyspy_highlight_color = e.target.style.backgroundColor;
e.target.style.backgroundColor = "#FDFF47";
document.pyspy_spy_listener = document.pyspy_generate_ids(e);
}
'''
js_init['js_init_onmouseout'] = r'''
document.onmouseout = function(ev){
if(document.pyspy_last_elem){
ev.target.style.outline = document.pyspy_border_color;
ev.target.style.backgroundColor = document.pyspy_highlight_color;
}
}
'''
js_init['js_init_onclick'] = r'''
document.pyspy_click = function(e){
if(e.target == document.documentElement) return
document.pyspy_last_elem = e.target;
document.pyspy_border_color = e.target.style.outline;
document.pyspy_highlight_color = e.target.style.backgroundColor;
e.target.style.backgroundColor = "#7CFC00";
document.pyspy_spy_listener = document.pyspy_generate_ids(e);
}
'''
js_init['js_init_onmouseup'] = r'''
document.onmouseup = function(ev){
if(document.pyspy_last_elem){
ev.target.style.outline = document.pyspy_border_color;
ev.target.style.backgroundColor = document.pyspy_highlight_color;
}
}
'''
js_init['js_init_cursor'] = r'''
document.pyspy_cursor = document.body.style.cursor;
'''
js_init['js_init_start_listner'] = r'''
document.body.style.cursor = "pointer";
document.pyspy_spy_listener = null;
document.addEventListener('click', document.pyspy_click,false);
document.addEventListener('mouseover', document.pyspy_mouse_over, false);
'''
js_listner_capture = r'''
var callback = arguments[arguments.length - 1];
if(!document.pyspy_mouse_over){
callback('{"pyspy_error":"*** spy listner not running ***"}');
return;
}
var waitForActions = function(){
if(document.pyspy_spy_listener){
var response = document.pyspy_spy_listener
document.pyspy_spy_listener = null;
callback(response);
}
else{
setTimeout(waitForActions, 50);
}
}
waitForActions();
'''
js_raw_html = r'''
var callback = arguments[arguments.length - 1];
callback(document.documentElement.innerHTML);
'''
|
'''
Created on 10/02/2012
@author: Alumno
'''
def suma(x, y):
return x+y
def multiplica(x, y):
return x*y
def cuadrado(x):
return x*x |
#!/usr/bin/env python3
#https://codeforces.com/problemset/problem/1029/B
n = int(input())
al = list(map(int,input().split()))
cnt = 1
mxc = 0
for i in range(n-1):
if al[i+1]-al[i] <= al[i]:
cnt += 1
else:
if cnt>mxc:
mxc = cnt
cnt = 1
print(max(mxc,cnt))
|
def solve_knapsack(profits, weights, capacity):
if profits is None \
or weights is None \
or len(profits) == 0 \
or len(profits) != len(weights):
return 0
return unbounded_knapsack(profits, weights, capacity, 0)
# We are trying to find the maximum profit
def unbounded_knapsack(profits, weights, capacity, curr_index):
n = len(profits) # or len(weights)
if capacity <= 0 or curr_index >= n: # base checks
return 0
# recursive call after choosing the items at the curr_index,
# Note that we recursive call on all items as we did not increment curr_index
profit_by_inclusion = 0
if weights[curr_index] <= capacity:
profit_by_inclusion = profits[curr_index] + \
unbounded_knapsack(profits, weights, capacity - weights[curr_index], curr_index)
# recursive call after excluding the element at the currentIndex
profit_by_exclusion = unbounded_knapsack(profits, weights, capacity, curr_index + 1)
return max(profit_by_inclusion, profit_by_exclusion)
def main():
print(solve_knapsack([15, 50, 60, 90], [1, 3, 4, 5], 8))
print(solve_knapsack([15, 50, 60, 90], [1, 3, 4, 5], 6))
main()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.