content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
def is_anagram(word, another_word):
word = list(tuple(word))
word.sort()
another_word = list(tuple(another_word))
another_word.sort()
return word == another_word
def main():
words = []
new_words = []
anagrams = []
print("***** Anagram Finder *****")
word = input("Enter a word: ")
try:
file = open("EnglishWords.txt")
for line in file:
if line == "START\n":
words = file.readlines()
break
for text in words:
text = text[:-1]
new_words.append(text)
for text in new_words:
if is_anagram(word, text) and text != word:
anagrams.append(text)
except FileNotFoundError as err:
print("Sorry, could not find file 'EnglishWords.txt'.")
else:
if len(anagrams) == 0:
print("Sorry, anagrams of '" + word + "' could not be found.")
file.close()
file.close()
print(str(anagrams))
if __name__ == "__main__":
main() | def is_anagram(word, another_word):
word = list(tuple(word))
word.sort()
another_word = list(tuple(another_word))
another_word.sort()
return word == another_word
def main():
words = []
new_words = []
anagrams = []
print('***** Anagram Finder *****')
word = input('Enter a word: ')
try:
file = open('EnglishWords.txt')
for line in file:
if line == 'START\n':
words = file.readlines()
break
for text in words:
text = text[:-1]
new_words.append(text)
for text in new_words:
if is_anagram(word, text) and text != word:
anagrams.append(text)
except FileNotFoundError as err:
print("Sorry, could not find file 'EnglishWords.txt'.")
else:
if len(anagrams) == 0:
print("Sorry, anagrams of '" + word + "' could not be found.")
file.close()
file.close()
print(str(anagrams))
if __name__ == '__main__':
main() |
# coding: utf8
# Author: Wing Yung Chan (~wy)
# Date: 2017
def palindrome(n):
j = str(n)
for i in range(len(j)//2):
if j[i] != j[len(j)-1-i]:
return False
return True
def problem4():
# Try all 3 digit pairs
# Got to be careful with how you iterate
# Need to create a Zig Zag flow
i = 999
j = 999
i_anchor = 999
j_anchor = 999
while i > 99 and j > 99:
if palindrome(i*j):
return i*j
if i == 999 or j == 100:
if i_anchor == j_anchor:
j_anchor = j_anchor - 1
else:
i_anchor = i_anchor - 1
i = i_anchor
j = j_anchor
else:
#Go up right
i = i + 1
j = j - 1
| def palindrome(n):
j = str(n)
for i in range(len(j) // 2):
if j[i] != j[len(j) - 1 - i]:
return False
return True
def problem4():
i = 999
j = 999
i_anchor = 999
j_anchor = 999
while i > 99 and j > 99:
if palindrome(i * j):
return i * j
if i == 999 or j == 100:
if i_anchor == j_anchor:
j_anchor = j_anchor - 1
else:
i_anchor = i_anchor - 1
i = i_anchor
j = j_anchor
else:
i = i + 1
j = j - 1 |
TEST_RECORD_1 = {
"Vendor": "Forcepoint CASB",
"Product": "SaaS Security Gateway",
"Version": "1.0",
"SignatureID": "250677275138",
"Name": "login",
"Severity": "9",
"CEFVersion": "0",
"act": "Block",
"app": "Office Apps",
"cat": "Block Access to personal Office365/Block Access to personal Office365",
"destinationServiceName": '"Office365"',
"deviceExternalId": "2fe1d47db",
"deviceFacility": "true",
"deviceProcessName": '""',
"dpriv": "User",
"dst": "40.90.23.111",
"dvc": "10.1.4.11",
"dvchost": "my.skyfence.com",
"end": "1569171970000",
"externalId": "787",
"fsize": "0",
"msg": "//France/United States/",
"outcome": "Success",
"proto": "Office Apps",
"reason": "login",
"request": "https://login.live.com/rst2.srf",
"requestClientApplication": 'Desktop/Windows 10/"mozilla/4.0 (compatible; msie 6.0; windows nt 10.0; win64; .net4.0c; .net4.0e; idcrl 14.10.0.15063.0.0; idcrl-cfg 16.0.26889.0; app svchost.exe, 10.0.15063.0, {df60e2df-88ad})"',
"rt": "1569171970000",
"sourceServiceName": "Managed",
"src": "192.168.122.178",
"start": "1569171970000",
"suser": "02v",
"cs5": "false",
"dproc": "Unknown",
"suid": "02vt",
"cn1": "null",
"AD.IPOrigin": "External",
"AD.samAccountName": "02vta",
}
FIELDS_LST = ["Name", "suid", "suser", "duser"]
USER_CONFIG_SEVERITY_LIST = [8, 10]
USER_CONFIG_ACTION_LIST = ["block", "monitor"]
USER_CONFIG_PRODUCT_LIST = [
"saas security gateway",
"casb incidents",
"casb admin audit log",
"cloud service monitoring",
]
| test_record_1 = {'Vendor': 'Forcepoint CASB', 'Product': 'SaaS Security Gateway', 'Version': '1.0', 'SignatureID': '250677275138', 'Name': 'login', 'Severity': '9', 'CEFVersion': '0', 'act': 'Block', 'app': 'Office Apps', 'cat': 'Block Access to personal Office365/Block Access to personal Office365', 'destinationServiceName': '"Office365"', 'deviceExternalId': '2fe1d47db', 'deviceFacility': 'true', 'deviceProcessName': '""', 'dpriv': 'User', 'dst': '40.90.23.111', 'dvc': '10.1.4.11', 'dvchost': 'my.skyfence.com', 'end': '1569171970000', 'externalId': '787', 'fsize': '0', 'msg': '//France/United States/', 'outcome': 'Success', 'proto': 'Office Apps', 'reason': 'login', 'request': 'https://login.live.com/rst2.srf', 'requestClientApplication': 'Desktop/Windows 10/"mozilla/4.0 (compatible; msie 6.0; windows nt 10.0; win64; .net4.0c; .net4.0e; idcrl 14.10.0.15063.0.0; idcrl-cfg 16.0.26889.0; app svchost.exe, 10.0.15063.0, {df60e2df-88ad})"', 'rt': '1569171970000', 'sourceServiceName': 'Managed', 'src': '192.168.122.178', 'start': '1569171970000', 'suser': '02v', 'cs5': 'false', 'dproc': 'Unknown', 'suid': '02vt', 'cn1': 'null', 'AD.IPOrigin': 'External', 'AD.samAccountName': '02vta'}
fields_lst = ['Name', 'suid', 'suser', 'duser']
user_config_severity_list = [8, 10]
user_config_action_list = ['block', 'monitor']
user_config_product_list = ['saas security gateway', 'casb incidents', 'casb admin audit log', 'cloud service monitoring'] |
class Solution:
def rob(self, nums) -> int:
return max(self.helper(nums, 0, len(nums) - 2), self.helper(nums, 1, len(nums) - 1))
def helper(self, nums, start, end):
include = 0
exclude = 0
for i in range(start, end + 1):
i = exclude
i = nums[i] + i
exclude = max(exclude, include)
include = i
return max(exclude, include) | class Solution:
def rob(self, nums) -> int:
return max(self.helper(nums, 0, len(nums) - 2), self.helper(nums, 1, len(nums) - 1))
def helper(self, nums, start, end):
include = 0
exclude = 0
for i in range(start, end + 1):
i = exclude
i = nums[i] + i
exclude = max(exclude, include)
include = i
return max(exclude, include) |
BOTS = [
{
"name": "bot1",
"username": "username",
"password": "password",
"api_key": "111AA1111AAAA11A1A11AA1AA1AAA111",
"secrets": {
"steamid": "76511111111111111",
"shared_secret": "Aa11aA1+1aa1aAa1a=",
"identity_secret": "aA11aaaa/aa11a/aAAa1a1=",
},
},
{
"name": "bot2",
"username": "username",
"password": "password",
"api_key": "111AA1111AAAA11A1A11AA1AA1AAA111",
"secrets": {
"steamid": "76511111111111111",
"shared_secret": "Aa11aA1+1aa1aAa1a=",
"identity_secret": "aA11aaaa/aa11a/aAAa1a1=",
},
},
]
OWNERS = ["76511111111111111"]
TIMEOUT = 30
DEBUG = True
| bots = [{'name': 'bot1', 'username': 'username', 'password': 'password', 'api_key': '111AA1111AAAA11A1A11AA1AA1AAA111', 'secrets': {'steamid': '76511111111111111', 'shared_secret': 'Aa11aA1+1aa1aAa1a=', 'identity_secret': 'aA11aaaa/aa11a/aAAa1a1='}}, {'name': 'bot2', 'username': 'username', 'password': 'password', 'api_key': '111AA1111AAAA11A1A11AA1AA1AAA111', 'secrets': {'steamid': '76511111111111111', 'shared_secret': 'Aa11aA1+1aa1aAa1a=', 'identity_secret': 'aA11aaaa/aa11a/aAAa1a1='}}]
owners = ['76511111111111111']
timeout = 30
debug = True |
class strategyLogic():
def SMA(self, prices, length, period):
return sum(prices[(length-period):length]) / period
def SMAprev(self, prices, length, period):
return sum(prices[(length-period-1):length-1]) / period
| class Strategylogic:
def sma(self, prices, length, period):
return sum(prices[length - period:length]) / period
def sm_aprev(self, prices, length, period):
return sum(prices[length - period - 1:length - 1]) / period |
def Draw(update=True):
global WreckContainer, ShipContainer, PlanetContainer, Frames, frozen_surface
if GamePaused and update:
if not frozen_surface:
Text = Font.render("Game paused...", True, (255, 255, 255))
Surface.blit(Text, (40, 80))
frozen_surface = Surface.copy()
Surface.blit(frozen_surface, (0, 0))
else:
if gameData.shootings > 0:
Surface.fill((100, 0, 0))
gameData.shootings -= 1
else:
Surface.fill((0, 0, 0))
# Display direction (Thanks, retroredge, for pointing it out!)
tmpColor = (playerView.zoomfactor * SCR_SIZE[0] * 2 / 640,) * 3
radius = SCR_SIZE[1] / 8 * 3
aacircle(Surface, tmpColor, (midx, midy), radius, 45, 1)
rads = radians(playerShip.faceAngle + 90)
rads2 = rads + 2.094 # radians(120)
rads3 = rads - 2.094 # this should be precise enough
# 240/180
# 180/3*4=240
xy = (midx + radius * cos(rads), midy + radius * sin(rads))
pygame.draw.aaline(
Surface,
tmpColor,
xy,
(midx + radius * cos(rads2), midy + radius * sin(rads2)),
1,
)
pygame.draw.aaline(
Surface,
tmpColor,
xy,
(midx + radius * cos(rads3), midy + radius * sin(rads3)),
1,
)
if playerShip.shoot > 0:
pygame.draw.circle(
Surface, (128, 128, 128), (midx, midy), int(
200 / playerView.zoomfactor)
)
playerShip.shoot -= 1
STARy = midy - playerView.Y / 200
STARx = midx - playerView.X / 200
for i in star.xlist:
for j in star.ylist:
tmp = (
(i + star.params[0]) * star.params[1]
+ (j + star.params[2]) * star.params[3]
+ star.params[4]
)
x = STARx + i * 200 * cos(tmp)
y = STARy + j * 200 * sin(tmp)
pygame.draw.aaline(
Surface, (255, 255, 255), (x, y), (x + 1.5, y + 1.5), 1
)
pygame.draw.aaline(
Surface, (255, 255, 255), (x + 1.5, y), (x, y + 1.5), 1
)
for Thing in PlanetContainer:
aacircle(
Surface,
(255, 255, 255),
(
(Thing.X - playerView.X) / playerView.zoomfactor + midx,
(-Thing.Y - playerView.Y) / playerView.zoomfactor + midy,
),
Thing.size / playerView.zoomfactor,
int(10 * log(Thing.size * 0.2 / playerView.zoomfactor, 2)) + 20,
1,
)
tmpExVisStr = ""
if Thing.baseAt is not None:
print(Thing.baseAt)
Surface.blit(
base,
(
(
midx
+ (
-playerView.X
+ Thing.X
+ Thing.size * cos(radians(Thing.baseAt + 90))
)
/ playerView.zoomfactor,
midy
+ (
-playerView.Y
- Thing.Y
- Thing.size * sin(radians(Thing.baseAt + 90))
)
/ playerView.zoomfactor,
)
),
)
pygame.transform.rotate(base, (Thing.baseAt))
pygame.transform.scale(base, (playerView.zoomfactor, 8))
tmpExVisStr = "Own base"
if Thing.enemyAt is not None:
Surface.blit(
enemybase,
(
(
midx
+ (
-playerView.X
+ Thing.X
+ Thing.size * cos(radians(Thing.enemyAt + 90))
)
/ playerView.zoomfactor,
midy
+ (
-playerView.Y
- Thing.Y
- Thing.size * sin(radians(Thing.enemyAt + 90))
)
/ playerView.zoomfactor,
)
),
)
pygame.transform.rotate(enemybase, (Thing.enemyAt))
pygame.transform.scale(enemybase, (playerView.zoomfactor, 8))
tmpExVisStr = "Enemy base"
if ExtendedVision:
tmpExVisx = (Thing.X - playerView.X) / \
playerView.zoomfactor + midx
tmpExVisy = (-Thing.Y - playerView.Y) / \
playerView.zoomfactor + midy
Surface.blit(
Font.render(tmpExVisStr, True, (255, 255, 255)),
(tmpExVisx, tmpExVisy),
)
Surface.blit(
Font.render("Oil: " + str(int(Thing.oil)),
True, (255, 255, 255)),
(tmpExVisx, tmpExVisy + 15),
)
for Thing in ShipContainer:
Surface.blit(
enemyship,
(
midx + (-playerView.X + Thing.X) / playerView.zoomfactor,
midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor,
),
)
pygame.transform.rotate(enemyship, Thing.faceAngle)
pygame.transform.scale(enemyship, (playerView.zoomfactor, 8))
for Thing in WreckContainer:
Surface.blit(
enemybase,
(
midx + (-playerView.X + Thing.X) / playerView.zoomfactor,
midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor,
),
)
pygame.transform.rotate(enemyship, Thing.faceAngle)
pygame.transform.scale(enemyship, playerView.zoomfactor)
pygame.transform.scale.draw(
Surface, (255, 255, 255), max=int(7 - Thing.explosion)
)
if PlayerImages == 0:
player = player1
elif PlayerImages == 1:
if (Frames // 5) % 2:
player = player3
else:
player = player2
elif PlayerImages == 2:
if (Frames // 5) % 2:
player = player2
else:
player = player3
Surface.blit(player, ((midx, midy)))
pygame.transform.rotate(
player, (-playerShip.faceAngle - 180 + playerView.angle)
)
# pygame.transform.scale(player, (playerView.zoomfactor))
pygame.draw.rect(
Surface,
(
255 - playerShip.oil * 255 / playerShip.maxoil
if playerShip.oil > 0
else 255,
0,
playerShip.oil * 255 / playerShip.maxoil if playerShip.oil > 0 else 0,
),
(
8,
8
+ (playerShip.maxoil - playerShip.oil)
* (SCR_SIZE[1] - 16)
/ playerShip.maxoil,
20,
playerShip.oil * (SCR_SIZE[1] - 16) / playerShip.maxoil,
),
0,
)
if playerShip.oil < 100:
c_ = CLR_WARNING
n_ = 2
else:
c_ = CLR_NORMAL
n_ = 1
# pygame.draw.rect(Surface, c_, (8, 8, 20, 464), n_)
pygame.draw.rect(Surface, c_, (8, 8, 20, SCR_SIZE[1] - 16), n_)
pygame.draw.rect(
Surface,
(0, 255, 0),
(40, 8, (SCR_SIZE[0] - 48) *
playerShip.hull / playerShip.maxhull, 20),
0,
)
if playerShip.hull < 50:
c_ = CLR_WARNING
n_ = 2
else:
c_ = CLR_NORMAL
n_ = 1
pygame.draw.rect(Surface, c_, (40, 8, SCR_SIZE[0] - 48, 20), n_)
if playerShip.speed > 16:
c_ = CLR_WARNING
else:
c_ = CLR_NORMAL
Text = BigFont.render("Speed: %.2d" % playerShip.speed, True, c_)
Surface.blit(Text, (40, 40))
Text = Font.render(
"Bases built: " + str(gameData.basesBuilt), True, (255, 255, 255)
)
Surface.blit(Text, (40, 95))
Text = Font.render(
"You are in Sector " +
sectors.pixels2sector(playerShip.X, playerShip.Y),
True,
(255, 255, 255),
)
Surface.blit(Text, (40, 125))
top = 40
for task in gameData.tasks:
Text = Font.render(task, True, (255, 255, 255))
top += 13
Surface.blit(Text, (SCR_SIZE[0] - 240, top))
if playerShip.landedOn is not None:
if PlanetContainer[playerShip.landedOn].playerLanded == "base":
Text = Font.render(
"Oil on planet: "
+ str(int(PlanetContainer[playerShip.landedOn].oil)),
True,
(255, 255, 255),
)
Surface.blit(Text, (40, 110))
elif playerShip.landedBefore is not None:
if PlanetContainer[playerShip.landedBefore].playerLanded == "base":
Text = Font.render(
"Oil on planet: "
+ str(int(PlanetContainer[playerShip.landedBefore].oil)),
True,
(255, 255, 255),
)
Surface.blit(Text, (40, 110))
if update:
pygame.display.flip()
| def draw(update=True):
global WreckContainer, ShipContainer, PlanetContainer, Frames, frozen_surface
if GamePaused and update:
if not frozen_surface:
text = Font.render('Game paused...', True, (255, 255, 255))
Surface.blit(Text, (40, 80))
frozen_surface = Surface.copy()
Surface.blit(frozen_surface, (0, 0))
else:
if gameData.shootings > 0:
Surface.fill((100, 0, 0))
gameData.shootings -= 1
else:
Surface.fill((0, 0, 0))
tmp_color = (playerView.zoomfactor * SCR_SIZE[0] * 2 / 640,) * 3
radius = SCR_SIZE[1] / 8 * 3
aacircle(Surface, tmpColor, (midx, midy), radius, 45, 1)
rads = radians(playerShip.faceAngle + 90)
rads2 = rads + 2.094
rads3 = rads - 2.094
xy = (midx + radius * cos(rads), midy + radius * sin(rads))
pygame.draw.aaline(Surface, tmpColor, xy, (midx + radius * cos(rads2), midy + radius * sin(rads2)), 1)
pygame.draw.aaline(Surface, tmpColor, xy, (midx + radius * cos(rads3), midy + radius * sin(rads3)), 1)
if playerShip.shoot > 0:
pygame.draw.circle(Surface, (128, 128, 128), (midx, midy), int(200 / playerView.zoomfactor))
playerShip.shoot -= 1
sta_ry = midy - playerView.Y / 200
sta_rx = midx - playerView.X / 200
for i in star.xlist:
for j in star.ylist:
tmp = (i + star.params[0]) * star.params[1] + (j + star.params[2]) * star.params[3] + star.params[4]
x = STARx + i * 200 * cos(tmp)
y = STARy + j * 200 * sin(tmp)
pygame.draw.aaline(Surface, (255, 255, 255), (x, y), (x + 1.5, y + 1.5), 1)
pygame.draw.aaline(Surface, (255, 255, 255), (x + 1.5, y), (x, y + 1.5), 1)
for thing in PlanetContainer:
aacircle(Surface, (255, 255, 255), ((Thing.X - playerView.X) / playerView.zoomfactor + midx, (-Thing.Y - playerView.Y) / playerView.zoomfactor + midy), Thing.size / playerView.zoomfactor, int(10 * log(Thing.size * 0.2 / playerView.zoomfactor, 2)) + 20, 1)
tmp_ex_vis_str = ''
if Thing.baseAt is not None:
print(Thing.baseAt)
Surface.blit(base, (midx + (-playerView.X + Thing.X + Thing.size * cos(radians(Thing.baseAt + 90))) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y - Thing.size * sin(radians(Thing.baseAt + 90))) / playerView.zoomfactor))
pygame.transform.rotate(base, Thing.baseAt)
pygame.transform.scale(base, (playerView.zoomfactor, 8))
tmp_ex_vis_str = 'Own base'
if Thing.enemyAt is not None:
Surface.blit(enemybase, (midx + (-playerView.X + Thing.X + Thing.size * cos(radians(Thing.enemyAt + 90))) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y - Thing.size * sin(radians(Thing.enemyAt + 90))) / playerView.zoomfactor))
pygame.transform.rotate(enemybase, Thing.enemyAt)
pygame.transform.scale(enemybase, (playerView.zoomfactor, 8))
tmp_ex_vis_str = 'Enemy base'
if ExtendedVision:
tmp_ex_visx = (Thing.X - playerView.X) / playerView.zoomfactor + midx
tmp_ex_visy = (-Thing.Y - playerView.Y) / playerView.zoomfactor + midy
Surface.blit(Font.render(tmpExVisStr, True, (255, 255, 255)), (tmpExVisx, tmpExVisy))
Surface.blit(Font.render('Oil: ' + str(int(Thing.oil)), True, (255, 255, 255)), (tmpExVisx, tmpExVisy + 15))
for thing in ShipContainer:
Surface.blit(enemyship, (midx + (-playerView.X + Thing.X) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor))
pygame.transform.rotate(enemyship, Thing.faceAngle)
pygame.transform.scale(enemyship, (playerView.zoomfactor, 8))
for thing in WreckContainer:
Surface.blit(enemybase, (midx + (-playerView.X + Thing.X) / playerView.zoomfactor, midy + (-playerView.Y - Thing.Y) / playerView.zoomfactor))
pygame.transform.rotate(enemyship, Thing.faceAngle)
pygame.transform.scale(enemyship, playerView.zoomfactor)
pygame.transform.scale.draw(Surface, (255, 255, 255), max=int(7 - Thing.explosion))
if PlayerImages == 0:
player = player1
elif PlayerImages == 1:
if Frames // 5 % 2:
player = player3
else:
player = player2
elif PlayerImages == 2:
if Frames // 5 % 2:
player = player2
else:
player = player3
Surface.blit(player, (midx, midy))
pygame.transform.rotate(player, -playerShip.faceAngle - 180 + playerView.angle)
pygame.draw.rect(Surface, (255 - playerShip.oil * 255 / playerShip.maxoil if playerShip.oil > 0 else 255, 0, playerShip.oil * 255 / playerShip.maxoil if playerShip.oil > 0 else 0), (8, 8 + (playerShip.maxoil - playerShip.oil) * (SCR_SIZE[1] - 16) / playerShip.maxoil, 20, playerShip.oil * (SCR_SIZE[1] - 16) / playerShip.maxoil), 0)
if playerShip.oil < 100:
c_ = CLR_WARNING
n_ = 2
else:
c_ = CLR_NORMAL
n_ = 1
pygame.draw.rect(Surface, c_, (8, 8, 20, SCR_SIZE[1] - 16), n_)
pygame.draw.rect(Surface, (0, 255, 0), (40, 8, (SCR_SIZE[0] - 48) * playerShip.hull / playerShip.maxhull, 20), 0)
if playerShip.hull < 50:
c_ = CLR_WARNING
n_ = 2
else:
c_ = CLR_NORMAL
n_ = 1
pygame.draw.rect(Surface, c_, (40, 8, SCR_SIZE[0] - 48, 20), n_)
if playerShip.speed > 16:
c_ = CLR_WARNING
else:
c_ = CLR_NORMAL
text = BigFont.render('Speed: %.2d' % playerShip.speed, True, c_)
Surface.blit(Text, (40, 40))
text = Font.render('Bases built: ' + str(gameData.basesBuilt), True, (255, 255, 255))
Surface.blit(Text, (40, 95))
text = Font.render('You are in Sector ' + sectors.pixels2sector(playerShip.X, playerShip.Y), True, (255, 255, 255))
Surface.blit(Text, (40, 125))
top = 40
for task in gameData.tasks:
text = Font.render(task, True, (255, 255, 255))
top += 13
Surface.blit(Text, (SCR_SIZE[0] - 240, top))
if playerShip.landedOn is not None:
if PlanetContainer[playerShip.landedOn].playerLanded == 'base':
text = Font.render('Oil on planet: ' + str(int(PlanetContainer[playerShip.landedOn].oil)), True, (255, 255, 255))
Surface.blit(Text, (40, 110))
elif playerShip.landedBefore is not None:
if PlanetContainer[playerShip.landedBefore].playerLanded == 'base':
text = Font.render('Oil on planet: ' + str(int(PlanetContainer[playerShip.landedBefore].oil)), True, (255, 255, 255))
Surface.blit(Text, (40, 110))
if update:
pygame.display.flip() |
'''
For this Kata you will have to forget how to add two numbers together.
The best explanation on what to do for this kata is this meme :
https://i.ibb.co/Y01rMJR/caf.png
In simple terms our method does not like the principle of carrying over numbers and just writes down every number it calculates.
You may assume both integers arepositive integersand the result will not be bigger than Integer.MAX_VALUE (only for java)
'''
def add(num1, num2):
num1 = [int(i) for i in list(str(num1))]
num2 = [int(i) for i in list(str(num2))]
soma = []
if len(num1) != len(num2):
dif = abs(len(num1) - len(num2))
if len(num1) > len(num2):
for _ in range(dif):
num2.insert(0, 0)
elif len(num2) > len(num1):
for _ in range(dif):
num1.insert(0, 0)
for a,b in zip(num1[::-1], num2[::-1]):
soma.append(a+b)
return int(''.join([str(i) for i in soma[::-1]]))
| """
For this Kata you will have to forget how to add two numbers together.
The best explanation on what to do for this kata is this meme :
https://i.ibb.co/Y01rMJR/caf.png
In simple terms our method does not like the principle of carrying over numbers and just writes down every number it calculates.
You may assume both integers arepositive integersand the result will not be bigger than Integer.MAX_VALUE (only for java)
"""
def add(num1, num2):
num1 = [int(i) for i in list(str(num1))]
num2 = [int(i) for i in list(str(num2))]
soma = []
if len(num1) != len(num2):
dif = abs(len(num1) - len(num2))
if len(num1) > len(num2):
for _ in range(dif):
num2.insert(0, 0)
elif len(num2) > len(num1):
for _ in range(dif):
num1.insert(0, 0)
for (a, b) in zip(num1[::-1], num2[::-1]):
soma.append(a + b)
return int(''.join([str(i) for i in soma[::-1]])) |
def ExportResults(aggr):
results = []
for topic in aggr.topics:
if len(aggr.topics[topic]) > 1:
temp_links = []
temp_plaintexts = []
for idx in aggr.topics[topic]:
if aggr.articles[idx].metadata["plaintext"] not in temp_plaintexts:
temp_plaintexts.append(aggr.articles[idx].metadata["plaintext"])
temp_links.append(aggr.articles[idx].url)
if len(temp_links) > 2:
results.append(temp_links)
return results
| def export_results(aggr):
results = []
for topic in aggr.topics:
if len(aggr.topics[topic]) > 1:
temp_links = []
temp_plaintexts = []
for idx in aggr.topics[topic]:
if aggr.articles[idx].metadata['plaintext'] not in temp_plaintexts:
temp_plaintexts.append(aggr.articles[idx].metadata['plaintext'])
temp_links.append(aggr.articles[idx].url)
if len(temp_links) > 2:
results.append(temp_links)
return results |
class property(object):
def __init__(self, *args):
int = ___id("%int")
length = ___delta("tuple-len", args, int)
self.fget = None
self.fset = None
self.fdel = None
if length > 0:
self.fget = args[0]
if length > 1:
self.fset = args[1]
if length > 2:
self.fdel = args[2]
def __get__(self, obj, obj_cls):
if obj is None:
return self
if self.fget is None:
raise AttributeError("Unreadable attribute")
return self.fget(obj)
def __set__(self, obj, value):
if self.fset is None:
raise AttributeError("Can't set attribute")
self.fset(obj, value)
def __delete__(self, obj):
if self.fdel is None:
raise AttributeError("Can't delete attribute")
self.fdel(obj)
def getter(self, g):
self.fget = g
return self
def setter(self, s):
self.fset = s
return self
def deleter(self, d):
self.fdel = d
return self
| class Property(object):
def __init__(self, *args):
int = ___id('%int')
length = ___delta('tuple-len', args, int)
self.fget = None
self.fset = None
self.fdel = None
if length > 0:
self.fget = args[0]
if length > 1:
self.fset = args[1]
if length > 2:
self.fdel = args[2]
def __get__(self, obj, obj_cls):
if obj is None:
return self
if self.fget is None:
raise attribute_error('Unreadable attribute')
return self.fget(obj)
def __set__(self, obj, value):
if self.fset is None:
raise attribute_error("Can't set attribute")
self.fset(obj, value)
def __delete__(self, obj):
if self.fdel is None:
raise attribute_error("Can't delete attribute")
self.fdel(obj)
def getter(self, g):
self.fget = g
return self
def setter(self, s):
self.fset = s
return self
def deleter(self, d):
self.fdel = d
return self |
JUDGE_LANG_C = 1 # C
JUDGE_LANG_CPP = 2 # C++
JUDGE_LANG_PYTHON = 3 # Python/PyPy
JUDGE_LANG_RUST = 4 # Rust
JUDGE_LANG_JS = 5 # Node.js
JUDGE_LANG_GO = 6 # Golang
JUDGE_LANG_JAVA = 7 # Java
JUDGE_LANG_RUBY = 8 # Ruby
JUDGE_LANG_PASCAL = 9 # Pascal
JUDGE_LANG_SUBMIT_ANSWER = 10 # For submit answer problem
DEFAULT_LANG_INFO = {
JUDGE_LANG_C: '89,clang,O2', # standard, compiler, optimize level
JUDGE_LANG_CPP: '17,clang,O2', # standard, compiler, optimize level
JUDGE_LANG_PYTHON: 'cpython,36', # runner, version
JUDGE_LANG_JAVA: 'java', # frontend
JUDGE_LANG_PASCAL: 'O2', # optimize level
JUDGE_LANG_SUBMIT_ANSWER: 'sha256', # hash algorithm
JUDGE_LANG_RUST: '',
JUDGE_LANG_JS: '',
JUDGE_LANG_GO: '',
JUDGE_LANG_RUBY: '',
}
| judge_lang_c = 1
judge_lang_cpp = 2
judge_lang_python = 3
judge_lang_rust = 4
judge_lang_js = 5
judge_lang_go = 6
judge_lang_java = 7
judge_lang_ruby = 8
judge_lang_pascal = 9
judge_lang_submit_answer = 10
default_lang_info = {JUDGE_LANG_C: '89,clang,O2', JUDGE_LANG_CPP: '17,clang,O2', JUDGE_LANG_PYTHON: 'cpython,36', JUDGE_LANG_JAVA: 'java', JUDGE_LANG_PASCAL: 'O2', JUDGE_LANG_SUBMIT_ANSWER: 'sha256', JUDGE_LANG_RUST: '', JUDGE_LANG_JS: '', JUDGE_LANG_GO: '', JUDGE_LANG_RUBY: ''} |
class TextTrigger:
STRUCT_NAME = "TileMap_TextTrigger"
def __init__(
self, id: int, x: int, y: int, width: int, height: int, string: str, ability_pickup: int
) -> None:
self.id = id
self.x = x
self.y = y
self.width = width
self.height = height
self.string = string
self.id = id
self.ability_pickup = int(ability_pickup) if not ability_pickup is None else -1
def make_static_init_entry(self) -> str:
return f'({TextTrigger.typename()}) {{.id = {self.id}, .x={self.x}, .y={self.y}, .width={self.width}, .height={self.height}, .string = "{self.string}", .length={len(self.string)}, .ability_pickup={self.ability_pickup}}}'
def typename() -> str:
return f"struct {TextTrigger.STRUCT_NAME}"
class StaticTextTriggerList:
def __init__(self, ctx_name: str) -> None:
self.triggers = []
self.ctx_name = ctx_name
def add_trigger(self, x: TextTrigger):
self.triggers.append(x)
def make_static_init(self) -> str:
list_entries = ", ".join([s.make_static_init_entry() for s in self.triggers])
return f"{TextTrigger.typename()} {self.get_static_array_name()}[] = {{{list_entries}}};"
def get_static_array_name(self):
return f"{self.ctx_name}_text_triggers_data"
class TextTriggers:
def __init__(self, ctx_name: str) -> None:
self.text_triggers = StaticTextTriggerList(ctx_name)
self.ctx_name = ctx_name
def make_assignment(self) -> str:
return (
"{\n"
f".text_triggers = {self.text_triggers.get_static_array_name()},"
f".length = {len(self.text_triggers.triggers)},"
"},\n"
)
| class Texttrigger:
struct_name = 'TileMap_TextTrigger'
def __init__(self, id: int, x: int, y: int, width: int, height: int, string: str, ability_pickup: int) -> None:
self.id = id
self.x = x
self.y = y
self.width = width
self.height = height
self.string = string
self.id = id
self.ability_pickup = int(ability_pickup) if not ability_pickup is None else -1
def make_static_init_entry(self) -> str:
return f'({TextTrigger.typename()}) {{.id = {self.id}, .x={self.x}, .y={self.y}, .width={self.width}, .height={self.height}, .string = "{self.string}", .length={len(self.string)}, .ability_pickup={self.ability_pickup}}}'
def typename() -> str:
return f'struct {TextTrigger.STRUCT_NAME}'
class Statictexttriggerlist:
def __init__(self, ctx_name: str) -> None:
self.triggers = []
self.ctx_name = ctx_name
def add_trigger(self, x: TextTrigger):
self.triggers.append(x)
def make_static_init(self) -> str:
list_entries = ', '.join([s.make_static_init_entry() for s in self.triggers])
return f'{TextTrigger.typename()} {self.get_static_array_name()}[] = {{{list_entries}}};'
def get_static_array_name(self):
return f'{self.ctx_name}_text_triggers_data'
class Texttriggers:
def __init__(self, ctx_name: str) -> None:
self.text_triggers = static_text_trigger_list(ctx_name)
self.ctx_name = ctx_name
def make_assignment(self) -> str:
return f'{{\n.text_triggers = {self.text_triggers.get_static_array_name()},.length = {len(self.text_triggers.triggers)},}},\n' |
def messageFromBinaryCode(c):
j = 8
i = 0
message = ''
for item in range(len(c)//8):
message += chr(int(c[i:j],2))
i += 8
j += 8
return message | def message_from_binary_code(c):
j = 8
i = 0
message = ''
for item in range(len(c) // 8):
message += chr(int(c[i:j], 2))
i += 8
j += 8
return message |
# IF STATEMENTS
#
# In this problem, write a function named "lossy_transform" that takes an
# integer parameter and returns the corresponding value found in this table
# | Input | Output |
# |------------------------------------------------|------------------------|
# | Less than 10 | 0 |
# | Greater than or equal to 10 and less than 47 | The input times 2 |
# | Greater than or equal to 47 and less than 1001 | The input divided by 3 |
# | Greater than or equal to 1001 | None |
#
# That last output is the literal None, not a string.
#
# Your code must include at least one of each of the following keywords:
# * if
# * elif
# * else
#
# All inputs are guaranteed to be greater than 0.
#
# There are four sample data calls for you to use.
# WRITE YOUR FUNCTION HERE
def lossy_transform(num):
if num < 10:
return 0
elif num < 47:
return num * 2
elif num < 1001:
return num / 3
else:
return None
# TEST DATA
print(lossy_transform(8)) # > 0
print(lossy_transform(33)) # > 66
print(lossy_transform(99)) # > 33
print(lossy_transform(1002)) # > None
| def lossy_transform(num):
if num < 10:
return 0
elif num < 47:
return num * 2
elif num < 1001:
return num / 3
else:
return None
print(lossy_transform(8))
print(lossy_transform(33))
print(lossy_transform(99))
print(lossy_transform(1002)) |
#generates hg19_splits for cross-validation
#hg19 (i.e. /mnt/data/annotations/by_release/hg19.GRCh37/hg19.chrom.sizes). Any chromosome from this chrom.sizes file that is not in the test/validation split is assumed to be in the training split (only considering chroms 1 - 22, X, Y
hg19_chroms=['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']
hg19_splits=dict()
hg19_splits[0]={'test':['chr1'],
'valid':['chr10','chr8'],
'train':['chr2','chr3','chr4','chr5','chr6','chr7','chr9','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']}
hg19_splits[1]={'test':['chr19','chr2'],
'valid':['chr1'],
'train':['chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr20','chr21','chr22','chrX','chrY']}
hg19_splits[2]={'test':['chr3','chr20'],
'valid':['chr19','chr2'],
'train':['chr1','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr21','chr22','chrX','chrY']}
hg19_splits[3]={'test':['chr13','chr6','chr22'],
'valid':['chr3','chr20'],
'train':['chr1','chr2','chr4','chr5','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr16','chr17','chr18','chr19','chr21','chrX','chrY']}
hg19_splits[4]={'test':['chr5','chr16','chrY'],
'valid':['chr13','chr6','chr22'],
'train':['chr1','chr2','chr3','chr4','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chr20','chr21','chrX']}
hg19_splits[5]={'test':['chr4','chr15','chr21'],
'valid':['chr5','chr16','chrY'],
'train':['chr1','chr2','chr3','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr17','chr18','chr19','chr20','chr22','chrX']}
hg19_splits[6]={'test':['chr7','chr18','chr14'],
'valid':['chr4','chr15','chr21'],
'train':['chr1','chr2','chr3','chr5','chr6','chr8','chr9','chr10','chr11','chr12','chr13','chr16','chr17','chr19','chr20','chr22','chrX','chrY']}
hg19_splits[7]={'test':['chr11','chr17','chrX'],
'valid':['chr7','chr18','chr14'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr8','chr9','chr10','chr12','chr13','chr15','chr16','chr19','chr20','chr21','chr22','chrY']}
hg19_splits[8]={'test':['chr12','chr9'],
'valid':['chr11','chr17','chrX'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr10','chr13','chr14','chr15','chr16','chr18','chr19','chr20','chr21','chr22','chrY']}
hg19_splits[9]={'test':['chr10','chr8'],
'valid':['chr12','chr9'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr11','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']}
#Note: the splits for hg19 and hg38 are the same, as are the chromosomes used for training models.
splits=dict()
splits['hg19']=hg19_splits
splits['hg38']=hg19_splits
chroms=dict()
chroms['hg19']=hg19_chroms
chroms['hg38']=hg19_chroms
mm10_chroms = ['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY']
mm10_splits = dict()
mm10_splits[0] = {'test':['chr1'],
'valid':['chr10','chr8'],
'train':['chr2','chr3','chr4','chr5','chr6','chr7','chr9','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY']}
mm10_splits[1] = {'test':['chr19','chr2'],
'valid':['chr1'],
'train':['chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chrX','chrY']}
mm10_splits[2] = {'test':['chr3'],
'valid':['chr19','chr2'],
'train':['chr1','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chrX','chrY']}
mm10_splits[3] = {'test':['chr13','chr6'],
'valid':['chr3'],
'train':['chr1','chr2','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chrX','chrY']}
mm10_splits[4] = {'test':['chr5','chr16','chrY'],
'valid':['chr13','chr6'],
'train':['chr1','chr2','chr3','chr4','chr7','chr8','chr9','chr10','chr11','chr12','chr14','chr15','chr17','chr18','chr19','chrX']}
mm10_splits[5] = {'test':['chr4','chr15'],
'valid':['chr5','chr16','chrY'],
'train':['chr1','chr2','chr3','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr17','chr18','chr19','chrX']}
mm10_splits[6] = {'test':['chr7','chr18','chr14'],
'valid':['chr4','chr15'],
'train':['chr1','chr2','chr3','chr5','chr6','chr8','chr9','chr10','chr11','chr12','chr13','chr16','chr17','chr19','chrX','chrY']}
mm10_splits[7] = {'test':['chr11','chr17','chrX'],
'valid':['chr7','chr18','chr14'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr8','chr9','chr10','chr12','chr13','chr15','chr16','chr19','chrY']}
mm10_splits[8] = {'test':['chr12','chr9'],
'valid':['chr11','chr17','chrX'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr10','chr13','chr14','chr15','chr16','chr18','chr19','chrY']}
mm10_splits[9] = {'test':['chr10','chr8'],
'valid':['chr12','chr9'],
'train':['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr11','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chrX','chrY']}
#mm9 & mm10 splits are the same
splits['mm10']=mm10_splits
splits['mm9']=mm10_splits
chroms['mm10']=mm10_splits
chroms['mm9']=mm10_splits
def get_chroms(args,split):
if split=="train":
if args.train_chroms is not None:
return args.train_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['train']
elif split=='valid':
if args.validation_chroms is not None:
return args.validation_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['valid']
elif split=="test":
if args.predict_chroms is not None:
return args.predict_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['test']
else:
raise Exception("invalid split specified, must be one of train,valid,test; you gave:"+str(split))
def get_bed_regions_for_fold_split(bed_regions,genome,fold,split):
chroms_to_keep=splits[genome][int(fold)][split]
bed_regions_to_keep=bed_regions[bed_regions[0].isin(chroms_to_keep)]
print("got split:"+str(split)+" for fold:"+str(fold) +" for bed regions:"+str(bed_regions_to_keep.shape))
return bed_regions_to_keep
| hg19_chroms = ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chr20', 'chr21', 'chr22', 'chrX', 'chrY']
hg19_splits = dict()
hg19_splits[0] = {'test': ['chr1'], 'valid': ['chr10', 'chr8'], 'train': ['chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr9', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chr20', 'chr21', 'chr22', 'chrX', 'chrY']}
hg19_splits[1] = {'test': ['chr19', 'chr2'], 'valid': ['chr1'], 'train': ['chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr20', 'chr21', 'chr22', 'chrX', 'chrY']}
hg19_splits[2] = {'test': ['chr3', 'chr20'], 'valid': ['chr19', 'chr2'], 'train': ['chr1', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr21', 'chr22', 'chrX', 'chrY']}
hg19_splits[3] = {'test': ['chr13', 'chr6', 'chr22'], 'valid': ['chr3', 'chr20'], 'train': ['chr1', 'chr2', 'chr4', 'chr5', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chr21', 'chrX', 'chrY']}
hg19_splits[4] = {'test': ['chr5', 'chr16', 'chrY'], 'valid': ['chr13', 'chr6', 'chr22'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr14', 'chr15', 'chr17', 'chr18', 'chr19', 'chr20', 'chr21', 'chrX']}
hg19_splits[5] = {'test': ['chr4', 'chr15', 'chr21'], 'valid': ['chr5', 'chr16', 'chrY'], 'train': ['chr1', 'chr2', 'chr3', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr17', 'chr18', 'chr19', 'chr20', 'chr22', 'chrX']}
hg19_splits[6] = {'test': ['chr7', 'chr18', 'chr14'], 'valid': ['chr4', 'chr15', 'chr21'], 'train': ['chr1', 'chr2', 'chr3', 'chr5', 'chr6', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr16', 'chr17', 'chr19', 'chr20', 'chr22', 'chrX', 'chrY']}
hg19_splits[7] = {'test': ['chr11', 'chr17', 'chrX'], 'valid': ['chr7', 'chr18', 'chr14'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr8', 'chr9', 'chr10', 'chr12', 'chr13', 'chr15', 'chr16', 'chr19', 'chr20', 'chr21', 'chr22', 'chrY']}
hg19_splits[8] = {'test': ['chr12', 'chr9'], 'valid': ['chr11', 'chr17', 'chrX'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr10', 'chr13', 'chr14', 'chr15', 'chr16', 'chr18', 'chr19', 'chr20', 'chr21', 'chr22', 'chrY']}
hg19_splits[9] = {'test': ['chr10', 'chr8'], 'valid': ['chr12', 'chr9'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr11', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chr20', 'chr21', 'chr22', 'chrX', 'chrY']}
splits = dict()
splits['hg19'] = hg19_splits
splits['hg38'] = hg19_splits
chroms = dict()
chroms['hg19'] = hg19_chroms
chroms['hg38'] = hg19_chroms
mm10_chroms = ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chrX', 'chrY']
mm10_splits = dict()
mm10_splits[0] = {'test': ['chr1'], 'valid': ['chr10', 'chr8'], 'train': ['chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr9', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chrX', 'chrY']}
mm10_splits[1] = {'test': ['chr19', 'chr2'], 'valid': ['chr1'], 'train': ['chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chrX', 'chrY']}
mm10_splits[2] = {'test': ['chr3'], 'valid': ['chr19', 'chr2'], 'train': ['chr1', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chrX', 'chrY']}
mm10_splits[3] = {'test': ['chr13', 'chr6'], 'valid': ['chr3'], 'train': ['chr1', 'chr2', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr14', 'chr15', 'chr17', 'chr18', 'chr19', 'chrX', 'chrY']}
mm10_splits[4] = {'test': ['chr5', 'chr16', 'chrY'], 'valid': ['chr13', 'chr6'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr14', 'chr15', 'chr17', 'chr18', 'chr19', 'chrX']}
mm10_splits[5] = {'test': ['chr4', 'chr15'], 'valid': ['chr5', 'chr16', 'chrY'], 'train': ['chr1', 'chr2', 'chr3', 'chr6', 'chr7', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr14', 'chr17', 'chr18', 'chr19', 'chrX']}
mm10_splits[6] = {'test': ['chr7', 'chr18', 'chr14'], 'valid': ['chr4', 'chr15'], 'train': ['chr1', 'chr2', 'chr3', 'chr5', 'chr6', 'chr8', 'chr9', 'chr10', 'chr11', 'chr12', 'chr13', 'chr16', 'chr17', 'chr19', 'chrX', 'chrY']}
mm10_splits[7] = {'test': ['chr11', 'chr17', 'chrX'], 'valid': ['chr7', 'chr18', 'chr14'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr8', 'chr9', 'chr10', 'chr12', 'chr13', 'chr15', 'chr16', 'chr19', 'chrY']}
mm10_splits[8] = {'test': ['chr12', 'chr9'], 'valid': ['chr11', 'chr17', 'chrX'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr8', 'chr10', 'chr13', 'chr14', 'chr15', 'chr16', 'chr18', 'chr19', 'chrY']}
mm10_splits[9] = {'test': ['chr10', 'chr8'], 'valid': ['chr12', 'chr9'], 'train': ['chr1', 'chr2', 'chr3', 'chr4', 'chr5', 'chr6', 'chr7', 'chr11', 'chr13', 'chr14', 'chr15', 'chr16', 'chr17', 'chr18', 'chr19', 'chrX', 'chrY']}
splits['mm10'] = mm10_splits
splits['mm9'] = mm10_splits
chroms['mm10'] = mm10_splits
chroms['mm9'] = mm10_splits
def get_chroms(args, split):
if split == 'train':
if args.train_chroms is not None:
return args.train_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['train']
elif split == 'valid':
if args.validation_chroms is not None:
return args.validation_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['valid']
elif split == 'test':
if args.predict_chroms is not None:
return args.predict_chroms
else:
assert args.genome is not None
assert args.fold is not None
return splits[args.genome][args.fold]['test']
else:
raise exception('invalid split specified, must be one of train,valid,test; you gave:' + str(split))
def get_bed_regions_for_fold_split(bed_regions, genome, fold, split):
chroms_to_keep = splits[genome][int(fold)][split]
bed_regions_to_keep = bed_regions[bed_regions[0].isin(chroms_to_keep)]
print('got split:' + str(split) + ' for fold:' + str(fold) + ' for bed regions:' + str(bed_regions_to_keep.shape))
return bed_regions_to_keep |
#
# PySNMP MIB module ENTERASYS-CLASS-OF-SERVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-CLASS-OF-SERVICE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:48:47 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")
ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint")
dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort")
etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules")
ifName, = mibBuilder.importSymbols("IF-MIB", "ifName")
EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus")
PortList, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
IpAddress, TimeTicks, NotificationType, Counter32, Bits, ModuleIdentity, Counter64, MibIdentifier, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Integer32, ObjectIdentity, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "TimeTicks", "NotificationType", "Counter32", "Bits", "ModuleIdentity", "Counter64", "MibIdentifier", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Integer32", "ObjectIdentity", "Gauge32")
TruthValue, RowStatus, DisplayString, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "RowStatus", "DisplayString", "TextualConvention", "TimeStamp")
etsysCosMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55))
etsysCosMIB.setRevisions(('2008-02-13 15:03', '2007-05-24 02:29', '2005-04-13 21:22', '2004-11-22 16:28', '2004-11-09 15:52',))
if mibBuilder.loadTexts: etsysCosMIB.setLastUpdated('200802131503Z')
if mibBuilder.loadTexts: etsysCosMIB.setOrganization('Enterasys Networks, Inc.')
class TxqArbiterModes(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("strict", 0), ("weightedFairQ", 1), ("lowLatencyQ", 2))
class TxqAlgorithms(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("tailDrop", 0), ("headDrop", 1), ("red", 2), ("wred", 3))
class TxQueueList(TextualConvention, OctetString):
status = 'current'
class EtsysCosRateTypes(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("percentage", 0), ("pps", 1), ("kbps", 2), ("mbps", 3), ("gbps", 4), ("tbps", 5))
class EtsysCosRlCapabilities(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("drop", 0), ("reprioritize", 1), ("count", 2), ("chainingAnd", 3), ("chainingOr", 4), ("syslog", 5), ("trap", 6), ("disable", 7))
class EtsysViolationAction(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("syslog", 0), ("trap", 1), ("disable", 2))
class EtsysRateLimitingType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))
namedValues = NamedValues(("drop", 0), ("dropOR", 1), ("rePrioritize", 2), ("rePrioritizeOR", 3), ("count", 4))
class EtsysRateLimitResetBits(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("clearViolation", 0), ("clearUnitCounter", 1))
etsysCosObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1))
etsysCosNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0))
etsysCosMasterReset = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1))
etsysCosCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2))
etsysCos = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3))
etsysCosTxq = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4))
etsysCosIrl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5))
etsysCosOrl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6))
etsysCosFloodControl = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7))
etsysCosMibObjectAnullingBehavior = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosMibObjectAnullingBehavior.setStatus('current')
etsysCosCapability = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2, 1), Bits().clone(namedValues=NamedValues(("supports8021Dpriority", 0), ("supportsTosOverwrite", 1), ("supportsTosMasking", 2), ("supportsTransmitQueue", 3), ("supportsInboundRateLimiting", 4), ("supportsOutBoundRateLimiting", 5), ("supportsDropPrecedence", 6), ("supportsUnknownUnicastRateLimiting", 7), ("supportsMulticastRateLimiting", 8), ("supportsBroadcastRateLimiting", 9), ("supportsTransmitQueuePortShaping", 10)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosCapability.setStatus('current')
etsysCosMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosMaxEntries.setStatus('current')
etsysCosNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosNumEntries.setStatus('current')
etsysCosLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 3), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosLastChange.setStatus('current')
etsysCosEnableState = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 4), EnabledStatus().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosEnableState.setStatus('current')
etsysCosTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5), )
if mibBuilder.loadTexts: etsysCosTable.setStatus('current')
etsysCosEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIndex"))
if mibBuilder.loadTexts: etsysCosEntry.setStatus('current')
etsysCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosIndex.setStatus('current')
etsysCosRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosRowStatus.setStatus('current')
etsysCos8021dPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 7), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCos8021dPriority.setStatus('current')
etsysCosTosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2)).clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTosValue.setStatus('current')
etsysCosTxqReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqReference.setStatus('current')
etsysCosIrlReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosIrlReference.setStatus('current')
etsysCosOrlReference = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosOrlReference.setStatus('current')
etsysCosDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 255), )).clone(-1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosDropPrecedence.setStatus('current')
etsysCosFloodControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 9), EnabledStatus().clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosFloodControlStatus.setStatus('current')
etsysCosTxqNumPortTypes = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqNumPortTypes.setStatus('current')
etsysCosTxqPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2), )
if mibBuilder.loadTexts: etsysCosTxqPortTypeTable.setStatus('current')
etsysCosTxqPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosTxqPortTypeEntry.setStatus('current')
etsysCosTxqPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosTxqPortTypeIndex.setStatus('current')
etsysCosTxqPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeDescr.setStatus('current')
etsysCosTxqPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeEligiblePorts.setStatus('current')
etsysCosTxqPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeUnselectedPorts.setStatus('current')
etsysCosTxqPortTypeNumberOfQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeNumberOfQueues.setStatus('current')
etsysCosTxqPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeSupportedRateTypes.setStatus('current')
etsysCosTxqPortTypeNumberOfSlices = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeNumberOfSlices.setStatus('current')
etsysCosTxqPortTypeQueueAlgorithms = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 8), TxqAlgorithms()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeQueueAlgorithms.setStatus('current')
etsysCosTxqPortTypeQueueArbiterModes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 9), TxqArbiterModes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeQueueArbiterModes.setStatus('current')
etsysCosTxqPortTypeMaxDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeMaxDropPrecedence.setStatus('current')
etsysCosTxqPortTypeLLQEligibleQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 11), TxQueueList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortTypeLLQEligibleQueues.setStatus('current')
etsysCosTxqUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3), )
if mibBuilder.loadTexts: etsysCosTxqUnitTable.setStatus('current')
etsysCosTxqUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitTypeIndex"))
if mibBuilder.loadTexts: etsysCosTxqUnitEntry.setStatus('current')
etsysCosTxqUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 1), EtsysCosRateTypes())
if mibBuilder.loadTexts: etsysCosTxqUnitTypeIndex.setStatus('current')
etsysCosTxqUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqUnitMaxRate.setStatus('current')
etsysCosTxqUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqUnitMinRate.setStatus('current')
etsysCosTxqUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqUnitGranularity.setStatus('current')
etsysCosTxqMaxPortGroups = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqMaxPortGroups.setStatus('current')
etsysCosTxqNumPortGroups = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqNumPortGroups.setStatus('current')
etsysCosTxqPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortGroupLastChange.setStatus('current')
etsysCosTxqPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7), )
if mibBuilder.loadTexts: etsysCosTxqPortGroupTable.setStatus('current')
etsysCosTxqPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosTxqPortGroupEntry.setStatus('current')
etsysCosTxqPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), )))
if mibBuilder.loadTexts: etsysCosTxqPortGroupIndex.setStatus('current')
etsysCosTxqPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqPortGroupRowStatus.setStatus('current')
etsysCosTxqPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqPortGroupList.setStatus('current')
etsysCosTxqPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqPortGroupName.setStatus('current')
etsysCosTxqPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8), )
if mibBuilder.loadTexts: etsysCosTxqPortCfgTable.setStatus('current')
etsysCosTxqPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosTxqPortCfgEntry.setStatus('current')
etsysCosTxqPortArbMode = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 1), TxqArbiterModes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqPortArbMode.setStatus('current')
etsysCosTxqPortSliceSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 256))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqPortSliceSetting.setStatus('current')
etsysCosTxqResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9), )
if mibBuilder.loadTexts: etsysCosTxqResourceTable.setStatus('current')
etsysCosTxqResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNum"))
if mibBuilder.loadTexts: etsysCosTxqResourceEntry.setStatus('current')
etsysCosTxqResourceQueueNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosTxqResourceQueueNum.setStatus('current')
etsysCosTxqPortQUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 2), EtsysCosRateTypes()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqPortQUnit.setStatus('current')
etsysCosTxqPortQRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqPortQRate.setStatus('current')
etsysCosTxqPortQAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 4), TxqAlgorithms()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqPortQAlgorithm.setStatus('current')
etsysCosTxqPortQLLQenable = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 5), EnabledStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqPortQLLQenable.setStatus('current')
etsysCosTxqReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqReferenceMappingMaxReference.setStatus('current')
etsysCosTxqReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11), )
if mibBuilder.loadTexts: etsysCosTxqReferenceMappingTable.setStatus('current')
etsysCosTxqReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference"))
if mibBuilder.loadTexts: etsysCosTxqReferenceMappingEntry.setStatus('current')
etsysCosTxqResourceQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqResourceQueueNumber.setStatus('current')
etsysCosTxqDropProfilesMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesMaxEntries.setStatus('current')
etsysCosTxqDropProfilesNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 13), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesNumEntries.setStatus('current')
etsysCosTxqDropProfilesLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 14), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesLastChange.setStatus('current')
etsysCosTxqDropProfilesTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15), )
if mibBuilder.loadTexts: etsysCosTxqDropProfilesTable.setStatus('current')
etsysCosTxqDropProfilesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropSettingIndex"))
if mibBuilder.loadTexts: etsysCosTxqDropProfilesEntry.setStatus('current')
etsysCosTxqDropSettingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 1), Unsigned32())
if mibBuilder.loadTexts: etsysCosTxqDropSettingIndex.setStatus('current')
etsysCosTxqDropProfilesRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesRowStatus.setStatus('current')
etsysCosTxqDropProfilesMin = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesMin.setStatus('current')
etsysCosTxqDropProfilesMax = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)).clone(100)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesMax.setStatus('current')
etsysCosTxqDropProfilesMaxDropProb = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesMaxDropProb.setStatus('current')
etsysCosTxqDropProfilesQueueDepthAtMaxProb = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)).clone(100)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosTxqDropProfilesQueueDepthAtMaxProb.setStatus('current')
etsysCosTxqDropPrecedenceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16), )
if mibBuilder.loadTexts: etsysCosTxqDropPrecedenceTable.setStatus('current')
etsysCosTxqDropPrecedenceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNum"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTableDropPrecedence"))
if mibBuilder.loadTexts: etsysCosTxqDropPrecedenceEntry.setStatus('current')
etsysCosTableDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 1), Unsigned32())
if mibBuilder.loadTexts: etsysCosTableDropPrecedence.setStatus('current')
etsysCosTxqDropProfileQueueCfgID = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosTxqDropProfileQueueCfgID.setStatus('current')
etsysCosIrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeMaxEntries.setStatus('current')
etsysCosIrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2), )
if mibBuilder.loadTexts: etsysCosIrlPortTypeTable.setStatus('current')
etsysCosIrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosIrlPortTypeEntry.setStatus('current')
etsysCosIrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosIrlPortTypeIndex.setStatus('current')
etsysCosIrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeDescr.setStatus('current')
etsysCosIrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeEligiblePorts.setStatus('current')
etsysCosIrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeUnselectedPorts.setStatus('current')
etsysCosIrlPortTypeNumberOfIRLs = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeNumberOfIRLs.setStatus('current')
etsysCosIrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeSupportedRateTypes.setStatus('current')
etsysCosIrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortTypeCapabilities.setStatus('current')
etsysCosIrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3), )
if mibBuilder.loadTexts: etsysCosIrlUnitTable.setStatus('current')
etsysCosIrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitTypeIndex"))
if mibBuilder.loadTexts: etsysCosIrlUnitEntry.setStatus('current')
etsysCosIrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 1), EtsysCosRateTypes())
if mibBuilder.loadTexts: etsysCosIrlUnitTypeIndex.setStatus('current')
etsysCosIrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlUnitMaxRate.setStatus('current')
etsysCosIrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlUnitMinRate.setStatus('current')
etsysCosIrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlUnitGranularity.setStatus('current')
etsysCosIrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortGroupMaxEntries.setStatus('current')
etsysCosIrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortGroupNumEntries.setStatus('current')
etsysCosIrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlPortGroupLastChange.setStatus('current')
etsysCosIrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7), )
if mibBuilder.loadTexts: etsysCosIrlPortGroupTable.setStatus('current')
etsysCosIrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosIrlPortGroupEntry.setStatus('current')
etsysCosIrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), )))
if mibBuilder.loadTexts: etsysCosIrlPortGroupIndex.setStatus('current')
etsysCosIrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosIrlPortGroupRowStatus.setStatus('current')
etsysCosIrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlPortGroupList.setStatus('current')
etsysCosIrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlPortGroupName.setStatus('current')
etsysCosIrlPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8), )
if mibBuilder.loadTexts: etsysCosIrlPortCfgTable.setStatus('current')
etsysCosIrlPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosIrlPortCfgEntry.setStatus('current')
etsysCosIrlPortCfgFloodLimiter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 65535), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlPortCfgFloodLimiter.setStatus('deprecated')
etsysCosIrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9), )
if mibBuilder.loadTexts: etsysCosIrlResourceTable.setStatus('current')
etsysCosIrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNum"))
if mibBuilder.loadTexts: etsysCosIrlResourceEntry.setStatus('current')
etsysCosIrlResourceIrlNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 1), Unsigned32())
if mibBuilder.loadTexts: etsysCosIrlResourceIrlNum.setStatus('current')
etsysCosIrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceUnits.setStatus('current')
etsysCosIrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceRate.setStatus('current')
etsysCosIrlResourceParentIrl = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 4), Integer32().clone(-1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceParentIrl.setStatus('current')
etsysCosIrlResourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 5), EtsysRateLimitingType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceType.setStatus('current')
etsysCosIrlResourceActionCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 6), Integer32().clone(-1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceActionCosIndex.setStatus('current')
etsysCosIrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 7), EtsysViolationAction()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceAction.setStatus('current')
etsysCosIrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 8), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceViolationPortList.setStatus('current')
etsysCosIrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceClearCounters.setStatus('current')
etsysCosIrlReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlReferenceMappingMaxReference.setStatus('current')
etsysCosIrlReferenceMappingLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlReferenceMappingLastChange.setStatus('current')
etsysCosIrlReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12), )
if mibBuilder.loadTexts: etsysCosIrlReferenceMappingTable.setStatus('current')
etsysCosIrlReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference"))
if mibBuilder.loadTexts: etsysCosIrlReferenceMappingEntry.setStatus('current')
etsysCosIrlResourceIrlNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResourceIrlNumber.setStatus('current')
etsysCosIrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 13), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlViolationClearTable.setStatus('current')
etsysCosIrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 14), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlViolationLastChange.setStatus('current')
etsysCosIrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 15), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlDisabledPortsList.setStatus('current')
etsysCosIrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16), )
if mibBuilder.loadTexts: etsysCosIrlViolationTable.setStatus('current')
etsysCosIrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNumber"))
if mibBuilder.loadTexts: etsysCosIrlViolationEntry.setStatus('current')
etsysCosIrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosIrlPortIndex.setStatus('current')
etsysCosIrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlViolation.setStatus('current')
etsysCosIrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosIrlCounter.setStatus('current')
etsysCosIrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 4), EtsysRateLimitResetBits()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosIrlResetFlags.setStatus('current')
etsysCosOrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeMaxEntries.setStatus('current')
etsysCosOrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2), )
if mibBuilder.loadTexts: etsysCosOrlPortTypeTable.setStatus('current')
etsysCosOrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosOrlPortTypeEntry.setStatus('current')
etsysCosOrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosOrlPortTypeIndex.setStatus('current')
etsysCosOrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeDescr.setStatus('current')
etsysCosOrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeEligiblePorts.setStatus('current')
etsysCosOrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeUnselectedPorts.setStatus('current')
etsysCosOrlPortTypeNumberOfORLs = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeNumberOfORLs.setStatus('current')
etsysCosOrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 6), EtsysCosRateTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeSupportedRateTypes.setStatus('current')
etsysCosOrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortTypeCapabilities.setStatus('current')
etsysCosOrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3), )
if mibBuilder.loadTexts: etsysCosOrlUnitTable.setStatus('current')
etsysCosOrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitTypeIndex"))
if mibBuilder.loadTexts: etsysCosOrlUnitEntry.setStatus('current')
etsysCosOrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 1), EtsysCosRateTypes())
if mibBuilder.loadTexts: etsysCosOrlUnitTypeIndex.setStatus('current')
etsysCosOrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlUnitMaxRate.setStatus('current')
etsysCosOrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlUnitMinRate.setStatus('current')
etsysCosOrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlUnitGranularity.setStatus('current')
etsysCosOrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortGroupMaxEntries.setStatus('current')
etsysCosOrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortGroupNumEntries.setStatus('current')
etsysCosOrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlPortGroupLastChange.setStatus('current')
etsysCosOrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7), )
if mibBuilder.loadTexts: etsysCosOrlPortGroupTable.setStatus('current')
etsysCosOrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosOrlPortGroupEntry.setStatus('current')
etsysCosOrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), )))
if mibBuilder.loadTexts: etsysCosOrlPortGroupIndex.setStatus('current')
etsysCosOrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosOrlPortGroupRowStatus.setStatus('current')
etsysCosOrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlPortGroupList.setStatus('current')
etsysCosOrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlPortGroupName.setStatus('current')
etsysCosOrlPortCfgTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8), )
if mibBuilder.loadTexts: etsysCosOrlPortCfgTable.setStatus('current')
etsysCosOrlPortCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosOrlPortCfgEntry.setStatus('current')
etsysCosOrlPortCfgFloodLimiter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 65535), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlPortCfgFloodLimiter.setStatus('current')
etsysCosOrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9), )
if mibBuilder.loadTexts: etsysCosOrlResourceTable.setStatus('current')
etsysCosOrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNum"))
if mibBuilder.loadTexts: etsysCosOrlResourceEntry.setStatus('current')
etsysCosOrlResourceOrlNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 1), Unsigned32())
if mibBuilder.loadTexts: etsysCosOrlResourceOrlNum.setStatus('current')
etsysCosOrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceUnits.setStatus('current')
etsysCosOrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceRate.setStatus('current')
etsysCosOrlResourceParentOrl = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 4), Integer32().clone(-1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceParentOrl.setStatus('current')
etsysCosOrlResourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 5), EtsysRateLimitingType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceType.setStatus('current')
etsysCosOrlResourceActionCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 6), Integer32().clone(-1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceActionCosIndex.setStatus('current')
etsysCosOrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 7), EtsysViolationAction()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceAction.setStatus('current')
etsysCosOrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 8), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceViolationPortList.setStatus('current')
etsysCosOrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceClearCounters.setStatus('current')
etsysCosOrlReferenceMappingMaxReference = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlReferenceMappingMaxReference.setStatus('current')
etsysCosOrlReferenceMappingLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlReferenceMappingLastChange.setStatus('current')
etsysCosOrlReferenceMappingTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12), )
if mibBuilder.loadTexts: etsysCosOrlReferenceMappingTable.setStatus('current')
etsysCosOrlReferenceMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference"))
if mibBuilder.loadTexts: etsysCosOrlReferenceMappingEntry.setStatus('current')
etsysCosOrlResourceOrlNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 32767), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResourceOrlNumber.setStatus('current')
etsysCosOrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 13), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlViolationClearTable.setStatus('current')
etsysCosOrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 14), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlViolationLastChange.setStatus('current')
etsysCosOrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 15), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlDisabledPortsList.setStatus('current')
etsysCosOrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16), )
if mibBuilder.loadTexts: etsysCosOrlViolationTable.setStatus('current')
etsysCosOrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNumber"))
if mibBuilder.loadTexts: etsysCosOrlViolationEntry.setStatus('current')
etsysCosOrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767)))
if mibBuilder.loadTexts: etsysCosOrlPortIndex.setStatus('current')
etsysCosOrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlViolation.setStatus('current')
etsysCosOrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosOrlCounter.setStatus('current')
etsysCosOrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 4), EtsysRateLimitResetBits()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosOrlResetFlags.setStatus('current')
etsysCosFloodCtrlPortTypeMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeMaxEntries.setStatus('current')
etsysCosFloodCtrlPortTypeTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2), )
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeTable.setStatus('current')
etsysCosFloodCtrlPortTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeEntry.setStatus('current')
etsysCosFloodCtrlPortTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32767))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeIndex.setStatus('current')
etsysCosFloodCtrlPortTypeDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeDescr.setStatus('current')
etsysCosFloodCtrlPortTypeEligiblePorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeEligiblePorts.setStatus('current')
etsysCosFloodCtrlPortTypeUnselectedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeUnselectedPorts.setStatus('current')
etsysCosFloodCtrlPortTypeSupportedRateTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 5), EtsysCosRateTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeSupportedRateTypes.setStatus('current')
etsysCosFloodCtrlPortTypeCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 7), EtsysCosRlCapabilities()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortTypeCapabilities.setStatus('current')
etsysCosFloodCtrlUnitTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3), )
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitTable.setStatus('current')
etsysCosFloodCtrlUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlUnitTypeIndex"))
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitEntry.setStatus('current')
etsysCosFloodCtrlUnitTypeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 1), EtsysCosRateTypes())
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitTypeIndex.setStatus('current')
etsysCosFloodCtrlUnitMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitMaxRate.setStatus('current')
etsysCosFloodCtrlUnitMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitMinRate.setStatus('current')
etsysCosFloodCtrlUnitGranularity = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlUnitGranularity.setStatus('current')
etsysCosFloodCtrlPortGroupMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupMaxEntries.setStatus('current')
etsysCosFloodCtrlPortGroupNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupNumEntries.setStatus('current')
etsysCosFloodCtrlPortGroupLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupLastChange.setStatus('current')
etsysCosFloodCtrlPortGroupTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7), )
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupTable.setStatus('current')
etsysCosFloodCtrlPortGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"))
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupEntry.setStatus('current')
etsysCosFloodCtrlPortGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 32767), ))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupIndex.setStatus('current')
etsysCosFloodCtrlPortGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupRowStatus.setStatus('current')
etsysCosFloodCtrlPortGroupList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 3), PortList().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupList.setStatus('current')
etsysCosFloodCtrlPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 4), SnmpAdminString().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlPortGroupName.setStatus('current')
etsysCosFloodCtrlSyslogActionMsgFormat = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notification", 1), ("notificationWithPktHdr", 2))).clone('notification')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlSyslogActionMsgFormat.setStatus('current')
etsysCosFloodCtrlResourceTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9), )
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceTable.setStatus('current')
etsysCosFloodCtrlResourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1), ).setIndexNames((0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortGroupIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlPortTypeIndex"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlFloodType"))
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceEntry.setStatus('current')
etsysCosFloodCtrlFloodType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unicastUnknown", 1), ("multicast", 2), ("broadcast", 3)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: etsysCosFloodCtrlFloodType.setStatus('current')
etsysCosFloodCtrlResourceUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 2), EtsysCosRateTypes().clone(namedValues=NamedValues(("pps", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceUnits.setStatus('current')
etsysCosFloodCtrlResourceRate = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 2147483647), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceRate.setStatus('current')
etsysCosFloodCtrlResourceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 4), Bits().clone(namedValues=NamedValues(("drop", 0), ("syslog", 1), ("trap", 2), ("disable", 3))).clone(namedValues=NamedValues(("drop", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceAction.setStatus('current')
etsysCosFloodCtrlResourceViolationPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 5), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceViolationPortList.setStatus('current')
etsysCosFloodCtrlResourceClearCounters = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResourceClearCounters.setStatus('current')
etsysCosFloodCtrlViolationClearTable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlViolationClearTable.setStatus('current')
etsysCosFloodCtrlViolationLastChange = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlViolationLastChange.setStatus('current')
etsysCosFloodCtrlDisabledPortsList = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 12), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlDisabledPortsList.setStatus('current')
etsysCosFloodCtrlViolationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13), )
if mibBuilder.loadTexts: etsysCosFloodCtrlViolationTable.setStatus('current')
etsysCosFloodCtrlViolationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlFloodType"))
if mibBuilder.loadTexts: etsysCosFloodCtrlViolationEntry.setStatus('current')
etsysCosFloodCtrlViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlViolation.setStatus('current')
etsysCosFloodCtrlCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: etsysCosFloodCtrlCounter.setStatus('current')
etsysCosFloodCtrlResetFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 3), EtsysRateLimitResetBits()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: etsysCosFloodCtrlResetFlags.setStatus('current')
etsysCosIrlExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 1)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolation"))
if mibBuilder.loadTexts: etsysCosIrlExceededNotification.setStatus('current')
etsysCosOrlExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 2)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolation"))
if mibBuilder.loadTexts: etsysCosOrlExceededNotification.setStatus('current')
etsysCosFloodLimitExceededNotification = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 3)).setObjects(("IF-MIB", "ifName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosFloodCtrlViolation"))
if mibBuilder.loadTexts: etsysCosFloodLimitExceededNotification.setStatus('current')
etsysCosConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2))
etsysCosGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1))
etsysCosCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2))
etsysCosMasterResetGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 1)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMibObjectAnullingBehavior"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosMasterResetGroup = etsysCosMasterResetGroup.setStatus('current')
etsysCosCapabilitiesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 2)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosCapability"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosCapabilitiesGroup = etsysCosCapabilitiesGroup.setStatus('current')
etsysCosGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 3)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosEnableState"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCos8021dPriority"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTosValue"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosDropPrecedence"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosGroup = etsysCosGroup.setStatus('current')
etsysCosTxqGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 4)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqNumPortTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeNumberOfQueues"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeNumberOfSlices"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeQueueAlgorithms"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeQueueArbiterModes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeMaxDropPrecedence"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortTypeLLQEligibleQueues"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqMaxPortGroups"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqNumPortGroups"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortArbMode"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortSliceSetting"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQUnit"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQAlgorithm"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqPortQLLQenable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqResourceQueueNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMin"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMax"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesMaxDropProb"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfilesQueueDepthAtMaxProb"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqDropProfileQueueCfgID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosTxqGroup = etsysCosTxqGroup.setStatus('current')
etsysCosIrlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 5)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeNumberOfIRLs"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeCapabilities"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlPortCfgFloodLimiter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceIrlNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceUnits"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceParentIrl"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceActionCosIndex"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceType"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceAction"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceViolationPortList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResourceClearCounters"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlReferenceMappingLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolationLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlDisabledPortsList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolation"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlViolationClearTable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlCounter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlResetFlags"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosIrlGroup = etsysCosIrlGroup.setStatus('current')
etsysCosOrlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 6)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeDescr"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeEligiblePorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeUnselectedPorts"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeNumberOfORLs"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeCapabilities"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortTypeSupportedRateTypes"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitMaxRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitMinRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlUnitGranularity"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupMaxEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupNumEntries"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupRowStatus"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortGroupName"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlPortCfgFloodLimiter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceOrlNumber"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceUnits"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceRate"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceParentOrl"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceActionCosIndex"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceType"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceAction"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceViolationPortList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResourceClearCounters"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReferenceMappingMaxReference"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlReferenceMappingLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolationLastChange"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlDisabledPortsList"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolation"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlViolationClearTable"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlCounter"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlResetFlags"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosOrlGroup = etsysCosOrlGroup.setStatus('current')
etsysCosNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 7)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlExceededNotification"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlExceededNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosNotificationGroup = etsysCosNotificationGroup.setStatus('current')
etsysCosCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2, 1)).setObjects(("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosMasterResetGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosCapabilitiesGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosTxqGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosIrlGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosOrlGroup"), ("ENTERASYS-CLASS-OF-SERVICE-MIB", "etsysCosNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsysCosCompliance = etsysCosCompliance.setStatus('current')
mibBuilder.exportSymbols("ENTERASYS-CLASS-OF-SERVICE-MIB", TxqAlgorithms=TxqAlgorithms, etsysCosFloodCtrlViolationLastChange=etsysCosFloodCtrlViolationLastChange, etsysCosIrlViolationClearTable=etsysCosIrlViolationClearTable, etsysCosFloodCtrlResourceEntry=etsysCosFloodCtrlResourceEntry, etsysCosOrlResourceAction=etsysCosOrlResourceAction, etsysCosIrlPortIndex=etsysCosIrlPortIndex, etsysCosFloodCtrlSyslogActionMsgFormat=etsysCosFloodCtrlSyslogActionMsgFormat, etsysCosFloodLimitExceededNotification=etsysCosFloodLimitExceededNotification, etsysCosOrlPortTypeEntry=etsysCosOrlPortTypeEntry, etsysCosTosValue=etsysCosTosValue, etsysCosIrlExceededNotification=etsysCosIrlExceededNotification, etsysCosFloodCtrlUnitEntry=etsysCosFloodCtrlUnitEntry, etsysCosIrlPortTypeIndex=etsysCosIrlPortTypeIndex, etsysCosOrlResourceActionCosIndex=etsysCosOrlResourceActionCosIndex, etsysCosTxqReferenceMappingTable=etsysCosTxqReferenceMappingTable, etsysCosFloodCtrlPortGroupLastChange=etsysCosFloodCtrlPortGroupLastChange, etsysCosIrlViolationEntry=etsysCosIrlViolationEntry, etsysCosOrlPortGroupIndex=etsysCosOrlPortGroupIndex, etsysCosFloodCtrlPortTypeIndex=etsysCosFloodCtrlPortTypeIndex, etsysCosIrlPortGroupNumEntries=etsysCosIrlPortGroupNumEntries, etsysCosIrlPortTypeDescr=etsysCosIrlPortTypeDescr, etsysCosEnableState=etsysCosEnableState, etsysCosTxqPortGroupRowStatus=etsysCosTxqPortGroupRowStatus, etsysCosOrlUnitTypeIndex=etsysCosOrlUnitTypeIndex, etsysCosTxqDropProfilesMin=etsysCosTxqDropProfilesMin, etsysCosTxqPortTypeUnselectedPorts=etsysCosTxqPortTypeUnselectedPorts, etsysCosTxqPortSliceSetting=etsysCosTxqPortSliceSetting, etsysCosFloodCtrlFloodType=etsysCosFloodCtrlFloodType, etsysCosTxqDropProfileQueueCfgID=etsysCosTxqDropProfileQueueCfgID, etsysCosTxqReferenceMappingEntry=etsysCosTxqReferenceMappingEntry, etsysCosNumEntries=etsysCosNumEntries, etsysCosOrlResourceViolationPortList=etsysCosOrlResourceViolationPortList, etsysCosIrlUnitMaxRate=etsysCosIrlUnitMaxRate, etsysCosIrlResourceEntry=etsysCosIrlResourceEntry, etsysCosFloodCtrlCounter=etsysCosFloodCtrlCounter, EtsysCosRlCapabilities=EtsysCosRlCapabilities, etsysCosIrlViolation=etsysCosIrlViolation, etsysCosOrlViolation=etsysCosOrlViolation, etsysCosTxqPortTypeNumberOfQueues=etsysCosTxqPortTypeNumberOfQueues, etsysCosMasterReset=etsysCosMasterReset, etsysCosIrlUnitEntry=etsysCosIrlUnitEntry, etsysCosIrlPortGroupList=etsysCosIrlPortGroupList, etsysCosIrlCounter=etsysCosIrlCounter, etsysCosFloodCtrlPortTypeCapabilities=etsysCosFloodCtrlPortTypeCapabilities, etsysCosFloodCtrlViolationTable=etsysCosFloodCtrlViolationTable, etsysCosTxqPortTypeNumberOfSlices=etsysCosTxqPortTypeNumberOfSlices, etsysCosOrlResourceOrlNum=etsysCosOrlResourceOrlNum, etsysCosFloodCtrlPortTypeDescr=etsysCosFloodCtrlPortTypeDescr, etsysCosMibObjectAnullingBehavior=etsysCosMibObjectAnullingBehavior, etsysCosIrlPortCfgFloodLimiter=etsysCosIrlPortCfgFloodLimiter, etsysCosTxqPortTypeMaxDropPrecedence=etsysCosTxqPortTypeMaxDropPrecedence, etsysCosOrlUnitGranularity=etsysCosOrlUnitGranularity, etsysCosFloodCtrlDisabledPortsList=etsysCosFloodCtrlDisabledPortsList, etsysCosFloodCtrlViolation=etsysCosFloodCtrlViolation, TxqArbiterModes=TxqArbiterModes, etsysCosOrlPortTypeUnselectedPorts=etsysCosOrlPortTypeUnselectedPorts, etsysCosOrlPortTypeTable=etsysCosOrlPortTypeTable, etsysCosIrlPortGroupLastChange=etsysCosIrlPortGroupLastChange, etsysCosOrlViolationEntry=etsysCosOrlViolationEntry, etsysCosMaxEntries=etsysCosMaxEntries, etsysCosIndex=etsysCosIndex, etsysCosIrlReferenceMappingMaxReference=etsysCosIrlReferenceMappingMaxReference, etsysCosTxqPortQAlgorithm=etsysCosTxqPortQAlgorithm, etsysCosOrlPortGroupName=etsysCosOrlPortGroupName, etsysCosTxqPortCfgEntry=etsysCosTxqPortCfgEntry, etsysCosIrlResourceUnits=etsysCosIrlResourceUnits, etsysCosIrlPortGroupRowStatus=etsysCosIrlPortGroupRowStatus, etsysCosDropPrecedence=etsysCosDropPrecedence, etsysCosTxqDropProfilesMax=etsysCosTxqDropProfilesMax, etsysCosCompliances=etsysCosCompliances, etsysCosTxqDropProfilesNumEntries=etsysCosTxqDropProfilesNumEntries, etsysCosMIB=etsysCosMIB, etsysCosIrlResourceType=etsysCosIrlResourceType, etsysCosTxqDropProfilesMaxDropProb=etsysCosTxqDropProfilesMaxDropProb, etsysCosTableDropPrecedence=etsysCosTableDropPrecedence, etsysCosIrlPortTypeMaxEntries=etsysCosIrlPortTypeMaxEntries, etsysCosOrlPortCfgFloodLimiter=etsysCosOrlPortCfgFloodLimiter, etsysCosTxqPortQRate=etsysCosTxqPortQRate, etsysCosIrlUnitGranularity=etsysCosIrlUnitGranularity, etsysCosIrlResourceParentIrl=etsysCosIrlResourceParentIrl, etsysCosOrlUnitMinRate=etsysCosOrlUnitMinRate, etsysCosFloodCtrlResourceUnits=etsysCosFloodCtrlResourceUnits, etsysCosEntry=etsysCosEntry, etsysCosIrlPortTypeTable=etsysCosIrlPortTypeTable, etsysCosFloodCtrlPortTypeEligiblePorts=etsysCosFloodCtrlPortTypeEligiblePorts, etsysCosNotificationGroup=etsysCosNotificationGroup, etsysCos=etsysCos, etsysCosTxqResourceTable=etsysCosTxqResourceTable, etsysCosFloodCtrlPortGroupEntry=etsysCosFloodCtrlPortGroupEntry, etsysCosIrl=etsysCosIrl, etsysCosFloodControlStatus=etsysCosFloodControlStatus, EtsysViolationAction=EtsysViolationAction, etsysCosIrlResourceTable=etsysCosIrlResourceTable, EtsysRateLimitResetBits=EtsysRateLimitResetBits, etsysCosOrlResourceTable=etsysCosOrlResourceTable, etsysCosOrlResourceEntry=etsysCosOrlResourceEntry, etsysCosOrlResourceUnits=etsysCosOrlResourceUnits, etsysCosTable=etsysCosTable, etsysCosTxqNumPortGroups=etsysCosTxqNumPortGroups, etsysCosTxqPortGroupName=etsysCosTxqPortGroupName, etsysCosTxqDropProfilesEntry=etsysCosTxqDropProfilesEntry, etsysCosIrlViolationLastChange=etsysCosIrlViolationLastChange, etsysCosIrlReference=etsysCosIrlReference, etsysCosTxqPortTypeTable=etsysCosTxqPortTypeTable, etsysCosTxqDropSettingIndex=etsysCosTxqDropSettingIndex, etsysCosOrlPortIndex=etsysCosOrlPortIndex, etsysCosTxqPortTypeEntry=etsysCosTxqPortTypeEntry, etsysCosIrlGroup=etsysCosIrlGroup, etsysCosFloodCtrlResetFlags=etsysCosFloodCtrlResetFlags, etsysCosTxqPortGroupIndex=etsysCosTxqPortGroupIndex, etsysCosOrlUnitMaxRate=etsysCosOrlUnitMaxRate, etsysCosOrlDisabledPortsList=etsysCosOrlDisabledPortsList, etsysCosIrlPortTypeEligiblePorts=etsysCosIrlPortTypeEligiblePorts, etsysCosFloodCtrlPortGroupTable=etsysCosFloodCtrlPortGroupTable, etsysCosTxqResourceEntry=etsysCosTxqResourceEntry, etsysCosOrlPortTypeDescr=etsysCosOrlPortTypeDescr, etsysCosCapabilities=etsysCosCapabilities, etsysCosOrlPortGroupRowStatus=etsysCosOrlPortGroupRowStatus, etsysCosFloodCtrlPortTypeSupportedRateTypes=etsysCosFloodCtrlPortTypeSupportedRateTypes, etsysCosNotifications=etsysCosNotifications, etsysCosOrlPortGroupList=etsysCosOrlPortGroupList, etsysCosOrlPortGroupNumEntries=etsysCosOrlPortGroupNumEntries, etsysCosFloodCtrlResourceAction=etsysCosFloodCtrlResourceAction, etsysCosIrlResourceAction=etsysCosIrlResourceAction, etsysCosIrlPortCfgEntry=etsysCosIrlPortCfgEntry, etsysCosFloodCtrlViolationClearTable=etsysCosFloodCtrlViolationClearTable, etsysCosTxqResourceQueueNumber=etsysCosTxqResourceQueueNumber, etsysCosTxqPortTypeLLQEligibleQueues=etsysCosTxqPortTypeLLQEligibleQueues, etsysCosLastChange=etsysCosLastChange, etsysCosTxqUnitGranularity=etsysCosTxqUnitGranularity, etsysCosOrlPortGroupEntry=etsysCosOrlPortGroupEntry, etsysCosOrlReferenceMappingEntry=etsysCosOrlReferenceMappingEntry, etsysCosFloodCtrlUnitMaxRate=etsysCosFloodCtrlUnitMaxRate, etsysCosOrlResourceType=etsysCosOrlResourceType, etsysCosTxqPortTypeQueueArbiterModes=etsysCosTxqPortTypeQueueArbiterModes, etsysCosOrlPortTypeIndex=etsysCosOrlPortTypeIndex, etsysCosCompliance=etsysCosCompliance, etsysCosTxqNumPortTypes=etsysCosTxqNumPortTypes, etsysCosIrlPortGroupEntry=etsysCosIrlPortGroupEntry, etsysCosIrlPortGroupTable=etsysCosIrlPortGroupTable, etsysCosIrlResourceActionCosIndex=etsysCosIrlResourceActionCosIndex, etsysCosCapability=etsysCosCapability, etsysCosFloodCtrlPortGroupList=etsysCosFloodCtrlPortGroupList, etsysCosIrlPortTypeCapabilities=etsysCosIrlPortTypeCapabilities, etsysCosOrlPortCfgTable=etsysCosOrlPortCfgTable, etsysCosMasterResetGroup=etsysCosMasterResetGroup, etsysCosOrlExceededNotification=etsysCosOrlExceededNotification, etsysCosTxqDropPrecedenceTable=etsysCosTxqDropPrecedenceTable, etsysCosFloodCtrlPortTypeEntry=etsysCosFloodCtrlPortTypeEntry, etsysCosIrlPortTypeEntry=etsysCosIrlPortTypeEntry, etsysCosOrlPortTypeMaxEntries=etsysCosOrlPortTypeMaxEntries, etsysCosIrlUnitTypeIndex=etsysCosIrlUnitTypeIndex, etsysCosFloodCtrlResourceClearCounters=etsysCosFloodCtrlResourceClearCounters, etsysCosIrlResourceViolationPortList=etsysCosIrlResourceViolationPortList, etsysCosFloodCtrlPortGroupRowStatus=etsysCosFloodCtrlPortGroupRowStatus, etsysCosGroups=etsysCosGroups, etsysCosObjects=etsysCosObjects, etsysCosTxqReference=etsysCosTxqReference, etsysCosTxq=etsysCosTxq, etsysCosTxqPortCfgTable=etsysCosTxqPortCfgTable, etsysCosTxqDropPrecedenceEntry=etsysCosTxqDropPrecedenceEntry, etsysCosTxqDropProfilesTable=etsysCosTxqDropProfilesTable, etsysCosCapabilitiesGroup=etsysCosCapabilitiesGroup, etsysCosIrlReferenceMappingEntry=etsysCosIrlReferenceMappingEntry, etsysCosTxqDropProfilesLastChange=etsysCosTxqDropProfilesLastChange, etsysCosFloodCtrlPortGroupIndex=etsysCosFloodCtrlPortGroupIndex, etsysCosFloodControl=etsysCosFloodControl, etsysCosRowStatus=etsysCosRowStatus, etsysCosTxqPortTypeSupportedRateTypes=etsysCosTxqPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupName=etsysCosFloodCtrlPortGroupName, etsysCosTxqDropProfilesQueueDepthAtMaxProb=etsysCosTxqDropProfilesQueueDepthAtMaxProb, etsysCosTxqDropProfilesRowStatus=etsysCosTxqDropProfilesRowStatus, etsysCosIrlReferenceMappingTable=etsysCosIrlReferenceMappingTable, etsysCosOrlResetFlags=etsysCosOrlResetFlags, etsysCosOrlPortTypeSupportedRateTypes=etsysCosOrlPortTypeSupportedRateTypes, etsysCosTxqUnitTypeIndex=etsysCosTxqUnitTypeIndex, etsysCosTxqPortTypeQueueAlgorithms=etsysCosTxqPortTypeQueueAlgorithms, etsysCosIrlDisabledPortsList=etsysCosIrlDisabledPortsList, etsysCosOrlReferenceMappingTable=etsysCosOrlReferenceMappingTable, etsysCosFloodCtrlUnitTable=etsysCosFloodCtrlUnitTable, etsysCosFloodCtrlResourceRate=etsysCosFloodCtrlResourceRate, etsysCosTxqPortArbMode=etsysCosTxqPortArbMode, etsysCosIrlResourceIrlNum=etsysCosIrlResourceIrlNum, etsysCosTxqPortTypeEligiblePorts=etsysCosTxqPortTypeEligiblePorts, etsysCosFloodCtrlUnitGranularity=etsysCosFloodCtrlUnitGranularity, etsysCosIrlPortTypeNumberOfIRLs=etsysCosIrlPortTypeNumberOfIRLs, etsysCosIrlResourceClearCounters=etsysCosIrlResourceClearCounters, etsysCosTxqUnitEntry=etsysCosTxqUnitEntry, etsysCosOrlResourceClearCounters=etsysCosOrlResourceClearCounters, etsysCosIrlResourceRate=etsysCosIrlResourceRate, etsysCosIrlViolationTable=etsysCosIrlViolationTable, EtsysRateLimitingType=EtsysRateLimitingType, etsysCosTxqUnitMaxRate=etsysCosTxqUnitMaxRate, etsysCosOrlResourceRate=etsysCosOrlResourceRate, TxQueueList=TxQueueList, etsysCosFloodCtrlPortGroupNumEntries=etsysCosFloodCtrlPortGroupNumEntries, etsysCosIrlPortGroupName=etsysCosIrlPortGroupName, etsysCosFloodCtrlViolationEntry=etsysCosFloodCtrlViolationEntry, etsysCosIrlPortGroupIndex=etsysCosIrlPortGroupIndex, etsysCosOrlPortTypeEligiblePorts=etsysCosOrlPortTypeEligiblePorts, etsysCosTxqReferenceMappingMaxReference=etsysCosTxqReferenceMappingMaxReference, etsysCosOrlPortGroupTable=etsysCosOrlPortGroupTable, etsysCosIrlResetFlags=etsysCosIrlResetFlags, etsysCosGroup=etsysCosGroup, etsysCosIrlPortTypeSupportedRateTypes=etsysCosIrlPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupMaxEntries=etsysCosFloodCtrlPortGroupMaxEntries, etsysCosTxqPortTypeIndex=etsysCosTxqPortTypeIndex, etsysCosOrlPortGroupMaxEntries=etsysCosOrlPortGroupMaxEntries, etsysCosTxqPortGroupEntry=etsysCosTxqPortGroupEntry, etsysCosFloodCtrlUnitMinRate=etsysCosFloodCtrlUnitMinRate, etsysCosOrlUnitTable=etsysCosOrlUnitTable, etsysCosOrlResourceOrlNumber=etsysCosOrlResourceOrlNumber, etsysCosOrlViolationClearTable=etsysCosOrlViolationClearTable, etsysCosFloodCtrlResourceViolationPortList=etsysCosFloodCtrlResourceViolationPortList, etsysCosTxqResourceQueueNum=etsysCosTxqResourceQueueNum, etsysCosIrlPortTypeUnselectedPorts=etsysCosIrlPortTypeUnselectedPorts, etsysCosOrlPortCfgEntry=etsysCosOrlPortCfgEntry, etsysCosTxqUnitTable=etsysCosTxqUnitTable, etsysCosOrlGroup=etsysCosOrlGroup, etsysCosIrlUnitTable=etsysCosIrlUnitTable, etsysCosOrl=etsysCosOrl, etsysCosIrlResourceIrlNumber=etsysCosIrlResourceIrlNumber, etsysCosOrlReferenceMappingLastChange=etsysCosOrlReferenceMappingLastChange, etsysCos8021dPriority=etsysCos8021dPriority, etsysCosOrlViolationTable=etsysCosOrlViolationTable, etsysCosTxqPortGroupTable=etsysCosTxqPortGroupTable, etsysCosIrlUnitMinRate=etsysCosIrlUnitMinRate, etsysCosOrlResourceParentOrl=etsysCosOrlResourceParentOrl, etsysCosTxqPortGroupList=etsysCosTxqPortGroupList, etsysCosTxqPortQLLQenable=etsysCosTxqPortQLLQenable, etsysCosFloodCtrlResourceTable=etsysCosFloodCtrlResourceTable, etsysCosOrlPortTypeCapabilities=etsysCosOrlPortTypeCapabilities, PYSNMP_MODULE_ID=etsysCosMIB, etsysCosTxqDropProfilesMaxEntries=etsysCosTxqDropProfilesMaxEntries, etsysCosOrlViolationLastChange=etsysCosOrlViolationLastChange, etsysCosFloodCtrlUnitTypeIndex=etsysCosFloodCtrlUnitTypeIndex, etsysCosIrlPortCfgTable=etsysCosIrlPortCfgTable, etsysCosOrlReferenceMappingMaxReference=etsysCosOrlReferenceMappingMaxReference, etsysCosFloodCtrlPortTypeTable=etsysCosFloodCtrlPortTypeTable, etsysCosTxqPortTypeDescr=etsysCosTxqPortTypeDescr, etsysCosOrlUnitEntry=etsysCosOrlUnitEntry, EtsysCosRateTypes=EtsysCosRateTypes, etsysCosIrlPortGroupMaxEntries=etsysCosIrlPortGroupMaxEntries, etsysCosOrlPortTypeNumberOfORLs=etsysCosOrlPortTypeNumberOfORLs, etsysCosOrlCounter=etsysCosOrlCounter, etsysCosTxqPortGroupLastChange=etsysCosTxqPortGroupLastChange, etsysCosFloodCtrlPortTypeUnselectedPorts=etsysCosFloodCtrlPortTypeUnselectedPorts, etsysCosTxqMaxPortGroups=etsysCosTxqMaxPortGroups, etsysCosOrlPortGroupLastChange=etsysCosOrlPortGroupLastChange, etsysCosFloodCtrlPortTypeMaxEntries=etsysCosFloodCtrlPortTypeMaxEntries, etsysCosTxqGroup=etsysCosTxqGroup, etsysCosTxqPortQUnit=etsysCosTxqPortQUnit, etsysCosIrlReferenceMappingLastChange=etsysCosIrlReferenceMappingLastChange, etsysCosOrlReference=etsysCosOrlReference)
mibBuilder.exportSymbols("ENTERASYS-CLASS-OF-SERVICE-MIB", etsysCosConformance=etsysCosConformance, etsysCosTxqUnitMinRate=etsysCosTxqUnitMinRate)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint')
(dot1d_base_port,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dBasePort')
(etsys_modules,) = mibBuilder.importSymbols('ENTERASYS-MIB-NAMES', 'etsysModules')
(if_name,) = mibBuilder.importSymbols('IF-MIB', 'ifName')
(enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus')
(port_list,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'PortList')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(ip_address, time_ticks, notification_type, counter32, bits, module_identity, counter64, mib_identifier, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, integer32, object_identity, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'TimeTicks', 'NotificationType', 'Counter32', 'Bits', 'ModuleIdentity', 'Counter64', 'MibIdentifier', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Integer32', 'ObjectIdentity', 'Gauge32')
(truth_value, row_status, display_string, textual_convention, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'RowStatus', 'DisplayString', 'TextualConvention', 'TimeStamp')
etsys_cos_mib = module_identity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55))
etsysCosMIB.setRevisions(('2008-02-13 15:03', '2007-05-24 02:29', '2005-04-13 21:22', '2004-11-22 16:28', '2004-11-09 15:52'))
if mibBuilder.loadTexts:
etsysCosMIB.setLastUpdated('200802131503Z')
if mibBuilder.loadTexts:
etsysCosMIB.setOrganization('Enterasys Networks, Inc.')
class Txqarbitermodes(TextualConvention, Bits):
status = 'current'
named_values = named_values(('strict', 0), ('weightedFairQ', 1), ('lowLatencyQ', 2))
class Txqalgorithms(TextualConvention, Bits):
status = 'current'
named_values = named_values(('tailDrop', 0), ('headDrop', 1), ('red', 2), ('wred', 3))
class Txqueuelist(TextualConvention, OctetString):
status = 'current'
class Etsyscosratetypes(TextualConvention, Bits):
status = 'current'
named_values = named_values(('percentage', 0), ('pps', 1), ('kbps', 2), ('mbps', 3), ('gbps', 4), ('tbps', 5))
class Etsyscosrlcapabilities(TextualConvention, Bits):
status = 'current'
named_values = named_values(('drop', 0), ('reprioritize', 1), ('count', 2), ('chainingAnd', 3), ('chainingOr', 4), ('syslog', 5), ('trap', 6), ('disable', 7))
class Etsysviolationaction(TextualConvention, Bits):
status = 'current'
named_values = named_values(('syslog', 0), ('trap', 1), ('disable', 2))
class Etsysratelimitingtype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4))
named_values = named_values(('drop', 0), ('dropOR', 1), ('rePrioritize', 2), ('rePrioritizeOR', 3), ('count', 4))
class Etsysratelimitresetbits(TextualConvention, Bits):
status = 'current'
named_values = named_values(('clearViolation', 0), ('clearUnitCounter', 1))
etsys_cos_objects = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1))
etsys_cos_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0))
etsys_cos_master_reset = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1))
etsys_cos_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2))
etsys_cos = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3))
etsys_cos_txq = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4))
etsys_cos_irl = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5))
etsys_cos_orl = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6))
etsys_cos_flood_control = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7))
etsys_cos_mib_object_anulling_behavior = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosMibObjectAnullingBehavior.setStatus('current')
etsys_cos_capability = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 2, 1), bits().clone(namedValues=named_values(('supports8021Dpriority', 0), ('supportsTosOverwrite', 1), ('supportsTosMasking', 2), ('supportsTransmitQueue', 3), ('supportsInboundRateLimiting', 4), ('supportsOutBoundRateLimiting', 5), ('supportsDropPrecedence', 6), ('supportsUnknownUnicastRateLimiting', 7), ('supportsMulticastRateLimiting', 8), ('supportsBroadcastRateLimiting', 9), ('supportsTransmitQueuePortShaping', 10)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosCapability.setStatus('current')
etsys_cos_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosMaxEntries.setStatus('current')
etsys_cos_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosNumEntries.setStatus('current')
etsys_cos_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 3), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosLastChange.setStatus('current')
etsys_cos_enable_state = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 4), enabled_status().clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosEnableState.setStatus('current')
etsys_cos_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5))
if mibBuilder.loadTexts:
etsysCosTable.setStatus('current')
etsys_cos_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIndex'))
if mibBuilder.loadTexts:
etsysCosEntry.setStatus('current')
etsys_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosIndex.setStatus('current')
etsys_cos_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosRowStatus.setStatus('current')
etsys_cos8021d_priority = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 7))).clone(-1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCos8021dPriority.setStatus('current')
etsys_cos_tos_value = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2)).clone(hexValue='')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTosValue.setStatus('current')
etsys_cos_txq_reference = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqReference.setStatus('current')
etsys_cos_irl_reference = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 32767)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosIrlReference.setStatus('current')
etsys_cos_orl_reference = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 32767)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosOrlReference.setStatus('current')
etsys_cos_drop_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 255))).clone(-1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosDropPrecedence.setStatus('current')
etsys_cos_flood_control_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 3, 5, 1, 9), enabled_status().clone('disabled')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosFloodControlStatus.setStatus('current')
etsys_cos_txq_num_port_types = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2048))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqNumPortTypes.setStatus('current')
etsys_cos_txq_port_type_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2))
if mibBuilder.loadTexts:
etsysCosTxqPortTypeTable.setStatus('current')
etsys_cos_txq_port_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosTxqPortTypeEntry.setStatus('current')
etsys_cos_txq_port_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosTxqPortTypeIndex.setStatus('current')
etsys_cos_txq_port_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeDescr.setStatus('current')
etsys_cos_txq_port_type_eligible_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeEligiblePorts.setStatus('current')
etsys_cos_txq_port_type_unselected_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeUnselectedPorts.setStatus('current')
etsys_cos_txq_port_type_number_of_queues = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeNumberOfQueues.setStatus('current')
etsys_cos_txq_port_type_supported_rate_types = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 6), etsys_cos_rate_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeSupportedRateTypes.setStatus('current')
etsys_cos_txq_port_type_number_of_slices = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeNumberOfSlices.setStatus('current')
etsys_cos_txq_port_type_queue_algorithms = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 8), txq_algorithms()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeQueueAlgorithms.setStatus('current')
etsys_cos_txq_port_type_queue_arbiter_modes = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 9), txq_arbiter_modes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeQueueArbiterModes.setStatus('current')
etsys_cos_txq_port_type_max_drop_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeMaxDropPrecedence.setStatus('current')
etsys_cos_txq_port_type_llq_eligible_queues = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 2, 1, 11), tx_queue_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortTypeLLQEligibleQueues.setStatus('current')
etsys_cos_txq_unit_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3))
if mibBuilder.loadTexts:
etsysCosTxqUnitTable.setStatus('current')
etsys_cos_txq_unit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqUnitTypeIndex'))
if mibBuilder.loadTexts:
etsysCosTxqUnitEntry.setStatus('current')
etsys_cos_txq_unit_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 1), etsys_cos_rate_types())
if mibBuilder.loadTexts:
etsysCosTxqUnitTypeIndex.setStatus('current')
etsys_cos_txq_unit_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqUnitMaxRate.setStatus('current')
etsys_cos_txq_unit_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqUnitMinRate.setStatus('current')
etsys_cos_txq_unit_granularity = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 3, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqUnitGranularity.setStatus('current')
etsys_cos_txq_max_port_groups = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqMaxPortGroups.setStatus('current')
etsys_cos_txq_num_port_groups = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqNumPortGroups.setStatus('current')
etsys_cos_txq_port_group_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortGroupLastChange.setStatus('current')
etsys_cos_txq_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7))
if mibBuilder.loadTexts:
etsysCosTxqPortGroupTable.setStatus('current')
etsys_cos_txq_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosTxqPortGroupEntry.setStatus('current')
etsys_cos_txq_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 32767))))
if mibBuilder.loadTexts:
etsysCosTxqPortGroupIndex.setStatus('current')
etsys_cos_txq_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqPortGroupRowStatus.setStatus('current')
etsys_cos_txq_port_group_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 3), port_list().clone(hexValue='')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqPortGroupList.setStatus('current')
etsys_cos_txq_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 7, 1, 4), snmp_admin_string().clone(hexValue='')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqPortGroupName.setStatus('current')
etsys_cos_txq_port_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8))
if mibBuilder.loadTexts:
etsysCosTxqPortCfgTable.setStatus('current')
etsys_cos_txq_port_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosTxqPortCfgEntry.setStatus('current')
etsys_cos_txq_port_arb_mode = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 1), txq_arbiter_modes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqPortArbMode.setStatus('current')
etsys_cos_txq_port_slice_setting = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 8, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 256))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqPortSliceSetting.setStatus('current')
etsys_cos_txq_resource_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9))
if mibBuilder.loadTexts:
etsysCosTxqResourceTable.setStatus('current')
etsys_cos_txq_resource_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqResourceQueueNum'))
if mibBuilder.loadTexts:
etsysCosTxqResourceEntry.setStatus('current')
etsys_cos_txq_resource_queue_num = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosTxqResourceQueueNum.setStatus('current')
etsys_cos_txq_port_q_unit = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 2), etsys_cos_rate_types()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqPortQUnit.setStatus('current')
etsys_cos_txq_port_q_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 2147483647)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqPortQRate.setStatus('current')
etsys_cos_txq_port_q_algorithm = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 4), txq_algorithms()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqPortQAlgorithm.setStatus('current')
etsys_cos_txq_port_qll_qenable = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 9, 1, 5), enabled_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqPortQLLQenable.setStatus('current')
etsys_cos_txq_reference_mapping_max_reference = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqReferenceMappingMaxReference.setStatus('current')
etsys_cos_txq_reference_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11))
if mibBuilder.loadTexts:
etsysCosTxqReferenceMappingTable.setStatus('current')
etsys_cos_txq_reference_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqReference'))
if mibBuilder.loadTexts:
etsysCosTxqReferenceMappingEntry.setStatus('current')
etsys_cos_txq_resource_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqResourceQueueNumber.setStatus('current')
etsys_cos_txq_drop_profiles_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesMaxEntries.setStatus('current')
etsys_cos_txq_drop_profiles_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 13), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesNumEntries.setStatus('current')
etsys_cos_txq_drop_profiles_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 14), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesLastChange.setStatus('current')
etsys_cos_txq_drop_profiles_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15))
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesTable.setStatus('current')
etsys_cos_txq_drop_profiles_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropSettingIndex'))
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesEntry.setStatus('current')
etsys_cos_txq_drop_setting_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 1), unsigned32())
if mibBuilder.loadTexts:
etsysCosTxqDropSettingIndex.setStatus('current')
etsys_cos_txq_drop_profiles_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesRowStatus.setStatus('current')
etsys_cos_txq_drop_profiles_min = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesMin.setStatus('current')
etsys_cos_txq_drop_profiles_max = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100)).clone(100)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesMax.setStatus('current')
etsys_cos_txq_drop_profiles_max_drop_prob = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesMaxDropProb.setStatus('current')
etsys_cos_txq_drop_profiles_queue_depth_at_max_prob = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 15, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 100)).clone(100)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosTxqDropProfilesQueueDepthAtMaxProb.setStatus('current')
etsys_cos_txq_drop_precedence_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16))
if mibBuilder.loadTexts:
etsysCosTxqDropPrecedenceTable.setStatus('current')
etsys_cos_txq_drop_precedence_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqResourceQueueNum'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTableDropPrecedence'))
if mibBuilder.loadTexts:
etsysCosTxqDropPrecedenceEntry.setStatus('current')
etsys_cos_table_drop_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 1), unsigned32())
if mibBuilder.loadTexts:
etsysCosTableDropPrecedence.setStatus('current')
etsys_cos_txq_drop_profile_queue_cfg_id = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 4, 16, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosTxqDropProfileQueueCfgID.setStatus('current')
etsys_cos_irl_port_type_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeMaxEntries.setStatus('current')
etsys_cos_irl_port_type_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2))
if mibBuilder.loadTexts:
etsysCosIrlPortTypeTable.setStatus('current')
etsys_cos_irl_port_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosIrlPortTypeEntry.setStatus('current')
etsys_cos_irl_port_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosIrlPortTypeIndex.setStatus('current')
etsys_cos_irl_port_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeDescr.setStatus('current')
etsys_cos_irl_port_type_eligible_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeEligiblePorts.setStatus('current')
etsys_cos_irl_port_type_unselected_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeUnselectedPorts.setStatus('current')
etsys_cos_irl_port_type_number_of_ir_ls = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeNumberOfIRLs.setStatus('current')
etsys_cos_irl_port_type_supported_rate_types = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 6), etsys_cos_rate_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeSupportedRateTypes.setStatus('current')
etsys_cos_irl_port_type_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 2, 1, 7), etsys_cos_rl_capabilities()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortTypeCapabilities.setStatus('current')
etsys_cos_irl_unit_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3))
if mibBuilder.loadTexts:
etsysCosIrlUnitTable.setStatus('current')
etsys_cos_irl_unit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlUnitTypeIndex'))
if mibBuilder.loadTexts:
etsysCosIrlUnitEntry.setStatus('current')
etsys_cos_irl_unit_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 1), etsys_cos_rate_types())
if mibBuilder.loadTexts:
etsysCosIrlUnitTypeIndex.setStatus('current')
etsys_cos_irl_unit_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlUnitMaxRate.setStatus('current')
etsys_cos_irl_unit_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlUnitMinRate.setStatus('current')
etsys_cos_irl_unit_granularity = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 3, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlUnitGranularity.setStatus('current')
etsys_cos_irl_port_group_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupMaxEntries.setStatus('current')
etsys_cos_irl_port_group_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupNumEntries.setStatus('current')
etsys_cos_irl_port_group_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupLastChange.setStatus('current')
etsys_cos_irl_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7))
if mibBuilder.loadTexts:
etsysCosIrlPortGroupTable.setStatus('current')
etsys_cos_irl_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosIrlPortGroupEntry.setStatus('current')
etsys_cos_irl_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 32767))))
if mibBuilder.loadTexts:
etsysCosIrlPortGroupIndex.setStatus('current')
etsys_cos_irl_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupRowStatus.setStatus('current')
etsys_cos_irl_port_group_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 3), port_list().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupList.setStatus('current')
etsys_cos_irl_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 7, 1, 4), snmp_admin_string().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlPortGroupName.setStatus('current')
etsys_cos_irl_port_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8))
if mibBuilder.loadTexts:
etsysCosIrlPortCfgTable.setStatus('current')
etsys_cos_irl_port_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosIrlPortCfgEntry.setStatus('current')
etsys_cos_irl_port_cfg_flood_limiter = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 8, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 65535)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlPortCfgFloodLimiter.setStatus('deprecated')
etsys_cos_irl_resource_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9))
if mibBuilder.loadTexts:
etsysCosIrlResourceTable.setStatus('current')
etsys_cos_irl_resource_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceIrlNum'))
if mibBuilder.loadTexts:
etsysCosIrlResourceEntry.setStatus('current')
etsys_cos_irl_resource_irl_num = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 1), unsigned32())
if mibBuilder.loadTexts:
etsysCosIrlResourceIrlNum.setStatus('current')
etsys_cos_irl_resource_units = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 2), etsys_cos_rate_types().clone(namedValues=named_values(('pps', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceUnits.setStatus('current')
etsys_cos_irl_resource_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 2147483647)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceRate.setStatus('current')
etsys_cos_irl_resource_parent_irl = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 4), integer32().clone(-1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceParentIrl.setStatus('current')
etsys_cos_irl_resource_type = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 5), etsys_rate_limiting_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceType.setStatus('current')
etsys_cos_irl_resource_action_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 6), integer32().clone(-1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceActionCosIndex.setStatus('current')
etsys_cos_irl_resource_action = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 7), etsys_violation_action()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceAction.setStatus('current')
etsys_cos_irl_resource_violation_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 8), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceViolationPortList.setStatus('current')
etsys_cos_irl_resource_clear_counters = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 9, 1, 9), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceClearCounters.setStatus('current')
etsys_cos_irl_reference_mapping_max_reference = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlReferenceMappingMaxReference.setStatus('current')
etsys_cos_irl_reference_mapping_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 11), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlReferenceMappingLastChange.setStatus('current')
etsys_cos_irl_reference_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12))
if mibBuilder.loadTexts:
etsysCosIrlReferenceMappingTable.setStatus('current')
etsys_cos_irl_reference_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlReference'))
if mibBuilder.loadTexts:
etsysCosIrlReferenceMappingEntry.setStatus('current')
etsys_cos_irl_resource_irl_number = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 32767)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResourceIrlNumber.setStatus('current')
etsys_cos_irl_violation_clear_table = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 13), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlViolationClearTable.setStatus('current')
etsys_cos_irl_violation_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 14), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlViolationLastChange.setStatus('current')
etsys_cos_irl_disabled_ports_list = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 15), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlDisabledPortsList.setStatus('current')
etsys_cos_irl_violation_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16))
if mibBuilder.loadTexts:
etsysCosIrlViolationTable.setStatus('current')
etsys_cos_irl_violation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceIrlNumber'))
if mibBuilder.loadTexts:
etsysCosIrlViolationEntry.setStatus('current')
etsys_cos_irl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosIrlPortIndex.setStatus('current')
etsys_cos_irl_violation = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlViolation.setStatus('current')
etsys_cos_irl_counter = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosIrlCounter.setStatus('current')
etsys_cos_irl_reset_flags = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 5, 16, 1, 4), etsys_rate_limit_reset_bits()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosIrlResetFlags.setStatus('current')
etsys_cos_orl_port_type_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeMaxEntries.setStatus('current')
etsys_cos_orl_port_type_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2))
if mibBuilder.loadTexts:
etsysCosOrlPortTypeTable.setStatus('current')
etsys_cos_orl_port_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosOrlPortTypeEntry.setStatus('current')
etsys_cos_orl_port_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosOrlPortTypeIndex.setStatus('current')
etsys_cos_orl_port_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeDescr.setStatus('current')
etsys_cos_orl_port_type_eligible_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeEligiblePorts.setStatus('current')
etsys_cos_orl_port_type_unselected_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeUnselectedPorts.setStatus('current')
etsys_cos_orl_port_type_number_of_or_ls = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeNumberOfORLs.setStatus('current')
etsys_cos_orl_port_type_supported_rate_types = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 6), etsys_cos_rate_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeSupportedRateTypes.setStatus('current')
etsys_cos_orl_port_type_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 2, 1, 7), etsys_cos_rl_capabilities()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortTypeCapabilities.setStatus('current')
etsys_cos_orl_unit_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3))
if mibBuilder.loadTexts:
etsysCosOrlUnitTable.setStatus('current')
etsys_cos_orl_unit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlUnitTypeIndex'))
if mibBuilder.loadTexts:
etsysCosOrlUnitEntry.setStatus('current')
etsys_cos_orl_unit_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 1), etsys_cos_rate_types())
if mibBuilder.loadTexts:
etsysCosOrlUnitTypeIndex.setStatus('current')
etsys_cos_orl_unit_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlUnitMaxRate.setStatus('current')
etsys_cos_orl_unit_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlUnitMinRate.setStatus('current')
etsys_cos_orl_unit_granularity = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 3, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlUnitGranularity.setStatus('current')
etsys_cos_orl_port_group_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupMaxEntries.setStatus('current')
etsys_cos_orl_port_group_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupNumEntries.setStatus('current')
etsys_cos_orl_port_group_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupLastChange.setStatus('current')
etsys_cos_orl_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7))
if mibBuilder.loadTexts:
etsysCosOrlPortGroupTable.setStatus('current')
etsys_cos_orl_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosOrlPortGroupEntry.setStatus('current')
etsys_cos_orl_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 32767))))
if mibBuilder.loadTexts:
etsysCosOrlPortGroupIndex.setStatus('current')
etsys_cos_orl_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupRowStatus.setStatus('current')
etsys_cos_orl_port_group_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 3), port_list().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupList.setStatus('current')
etsys_cos_orl_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 7, 1, 4), snmp_admin_string().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlPortGroupName.setStatus('current')
etsys_cos_orl_port_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8))
if mibBuilder.loadTexts:
etsysCosOrlPortCfgTable.setStatus('current')
etsys_cos_orl_port_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosOrlPortCfgEntry.setStatus('current')
etsys_cos_orl_port_cfg_flood_limiter = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 8, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 65535)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlPortCfgFloodLimiter.setStatus('current')
etsys_cos_orl_resource_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9))
if mibBuilder.loadTexts:
etsysCosOrlResourceTable.setStatus('current')
etsys_cos_orl_resource_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceOrlNum'))
if mibBuilder.loadTexts:
etsysCosOrlResourceEntry.setStatus('current')
etsys_cos_orl_resource_orl_num = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 1), unsigned32())
if mibBuilder.loadTexts:
etsysCosOrlResourceOrlNum.setStatus('current')
etsys_cos_orl_resource_units = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 2), etsys_cos_rate_types().clone(namedValues=named_values(('pps', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceUnits.setStatus('current')
etsys_cos_orl_resource_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 2147483647)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceRate.setStatus('current')
etsys_cos_orl_resource_parent_orl = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 4), integer32().clone(-1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceParentOrl.setStatus('current')
etsys_cos_orl_resource_type = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 5), etsys_rate_limiting_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceType.setStatus('current')
etsys_cos_orl_resource_action_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 6), integer32().clone(-1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceActionCosIndex.setStatus('current')
etsys_cos_orl_resource_action = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 7), etsys_violation_action()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceAction.setStatus('current')
etsys_cos_orl_resource_violation_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 8), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceViolationPortList.setStatus('current')
etsys_cos_orl_resource_clear_counters = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 9, 1, 9), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceClearCounters.setStatus('current')
etsys_cos_orl_reference_mapping_max_reference = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlReferenceMappingMaxReference.setStatus('current')
etsys_cos_orl_reference_mapping_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 11), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlReferenceMappingLastChange.setStatus('current')
etsys_cos_orl_reference_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12))
if mibBuilder.loadTexts:
etsysCosOrlReferenceMappingTable.setStatus('current')
etsys_cos_orl_reference_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlReference'))
if mibBuilder.loadTexts:
etsysCosOrlReferenceMappingEntry.setStatus('current')
etsys_cos_orl_resource_orl_number = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 12, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 32767)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResourceOrlNumber.setStatus('current')
etsys_cos_orl_violation_clear_table = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 13), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlViolationClearTable.setStatus('current')
etsys_cos_orl_violation_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 14), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlViolationLastChange.setStatus('current')
etsys_cos_orl_disabled_ports_list = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 15), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlDisabledPortsList.setStatus('current')
etsys_cos_orl_violation_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16))
if mibBuilder.loadTexts:
etsysCosOrlViolationTable.setStatus('current')
etsys_cos_orl_violation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceOrlNumber'))
if mibBuilder.loadTexts:
etsysCosOrlViolationEntry.setStatus('current')
etsys_cos_orl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767)))
if mibBuilder.loadTexts:
etsysCosOrlPortIndex.setStatus('current')
etsys_cos_orl_violation = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlViolation.setStatus('current')
etsys_cos_orl_counter = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosOrlCounter.setStatus('current')
etsys_cos_orl_reset_flags = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 6, 16, 1, 4), etsys_rate_limit_reset_bits()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosOrlResetFlags.setStatus('current')
etsys_cos_flood_ctrl_port_type_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeMaxEntries.setStatus('current')
etsys_cos_flood_ctrl_port_type_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2))
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeTable.setStatus('current')
etsys_cos_flood_ctrl_port_type_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeEntry.setStatus('current')
etsys_cos_flood_ctrl_port_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32767))).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeIndex.setStatus('current')
etsys_cos_flood_ctrl_port_type_descr = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 2), snmp_admin_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeDescr.setStatus('current')
etsys_cos_flood_ctrl_port_type_eligible_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeEligiblePorts.setStatus('current')
etsys_cos_flood_ctrl_port_type_unselected_ports = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeUnselectedPorts.setStatus('current')
etsys_cos_flood_ctrl_port_type_supported_rate_types = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 5), etsys_cos_rate_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeSupportedRateTypes.setStatus('current')
etsys_cos_flood_ctrl_port_type_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 2, 1, 7), etsys_cos_rl_capabilities()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortTypeCapabilities.setStatus('current')
etsys_cos_flood_ctrl_unit_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3))
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitTable.setStatus('current')
etsys_cos_flood_ctrl_unit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlUnitTypeIndex'))
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitEntry.setStatus('current')
etsys_cos_flood_ctrl_unit_type_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 1), etsys_cos_rate_types())
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitTypeIndex.setStatus('current')
etsys_cos_flood_ctrl_unit_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitMaxRate.setStatus('current')
etsys_cos_flood_ctrl_unit_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitMinRate.setStatus('current')
etsys_cos_flood_ctrl_unit_granularity = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 3, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlUnitGranularity.setStatus('current')
etsys_cos_flood_ctrl_port_group_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupMaxEntries.setStatus('current')
etsys_cos_flood_ctrl_port_group_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupNumEntries.setStatus('current')
etsys_cos_flood_ctrl_port_group_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupLastChange.setStatus('current')
etsys_cos_flood_ctrl_port_group_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7))
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupTable.setStatus('current')
etsys_cos_flood_ctrl_port_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortTypeIndex'))
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupEntry.setStatus('current')
etsys_cos_flood_ctrl_port_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 32767)))).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupIndex.setStatus('current')
etsys_cos_flood_ctrl_port_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupRowStatus.setStatus('current')
etsys_cos_flood_ctrl_port_group_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 3), port_list().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupList.setStatus('current')
etsys_cos_flood_ctrl_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 7, 1, 4), snmp_admin_string().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlPortGroupName.setStatus('current')
etsys_cos_flood_ctrl_syslog_action_msg_format = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notification', 1), ('notificationWithPktHdr', 2))).clone('notification')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlSyslogActionMsgFormat.setStatus('current')
etsys_cos_flood_ctrl_resource_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9))
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceTable.setStatus('current')
etsys_cos_flood_ctrl_resource_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1)).setIndexNames((0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortGroupIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlPortTypeIndex'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlFloodType'))
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceEntry.setStatus('current')
etsys_cos_flood_ctrl_flood_type = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unicastUnknown', 1), ('multicast', 2), ('broadcast', 3)))).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
etsysCosFloodCtrlFloodType.setStatus('current')
etsys_cos_flood_ctrl_resource_units = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 2), etsys_cos_rate_types().clone(namedValues=named_values(('pps', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceUnits.setStatus('current')
etsys_cos_flood_ctrl_resource_rate = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 2147483647)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceRate.setStatus('current')
etsys_cos_flood_ctrl_resource_action = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 4), bits().clone(namedValues=named_values(('drop', 0), ('syslog', 1), ('trap', 2), ('disable', 3))).clone(namedValues=named_values(('drop', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceAction.setStatus('current')
etsys_cos_flood_ctrl_resource_violation_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 5), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceViolationPortList.setStatus('current')
etsys_cos_flood_ctrl_resource_clear_counters = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 9, 1, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResourceClearCounters.setStatus('current')
etsys_cos_flood_ctrl_violation_clear_table = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlViolationClearTable.setStatus('current')
etsys_cos_flood_ctrl_violation_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 11), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlViolationLastChange.setStatus('current')
etsys_cos_flood_ctrl_disabled_ports_list = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 12), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlDisabledPortsList.setStatus('current')
etsys_cos_flood_ctrl_violation_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13))
if mibBuilder.loadTexts:
etsysCosFloodCtrlViolationTable.setStatus('current')
etsys_cos_flood_ctrl_violation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1)).setIndexNames((0, 'BRIDGE-MIB', 'dot1dBasePort'), (0, 'ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlFloodType'))
if mibBuilder.loadTexts:
etsysCosFloodCtrlViolationEntry.setStatus('current')
etsys_cos_flood_ctrl_violation = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlViolation.setStatus('current')
etsys_cos_flood_ctrl_counter = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
etsysCosFloodCtrlCounter.setStatus('current')
etsys_cos_flood_ctrl_reset_flags = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 7, 13, 1, 3), etsys_rate_limit_reset_bits()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
etsysCosFloodCtrlResetFlags.setStatus('current')
etsys_cos_irl_exceeded_notification = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 1)).setObjects(('IF-MIB', 'ifName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlViolation'))
if mibBuilder.loadTexts:
etsysCosIrlExceededNotification.setStatus('current')
etsys_cos_orl_exceeded_notification = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 2)).setObjects(('IF-MIB', 'ifName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlViolation'))
if mibBuilder.loadTexts:
etsysCosOrlExceededNotification.setStatus('current')
etsys_cos_flood_limit_exceeded_notification = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 1, 0, 3)).setObjects(('IF-MIB', 'ifName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosFloodCtrlViolation'))
if mibBuilder.loadTexts:
etsysCosFloodLimitExceededNotification.setStatus('current')
etsys_cos_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2))
etsys_cos_groups = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1))
etsys_cos_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2))
etsys_cos_master_reset_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 1)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosMibObjectAnullingBehavior'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_master_reset_group = etsysCosMasterResetGroup.setStatus('current')
etsys_cos_capabilities_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 2)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosCapability'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_capabilities_group = etsysCosCapabilitiesGroup.setStatus('current')
etsys_cos_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 3)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosNumEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosEnableState'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosRowStatus'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCos8021dPriority'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTosValue'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosDropPrecedence'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_group = etsysCosGroup.setStatus('current')
etsys_cos_txq_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 4)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqNumPortTypes'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeDescr'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeEligiblePorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeUnselectedPorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeNumberOfQueues'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeSupportedRateTypes'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeNumberOfSlices'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeQueueAlgorithms'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeQueueArbiterModes'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeMaxDropPrecedence'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortTypeLLQEligibleQueues'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqUnitMaxRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqUnitMinRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqUnitGranularity'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqMaxPortGroups'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqNumPortGroups'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupRowStatus'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortGroupName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortArbMode'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortSliceSetting'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortQUnit'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortQRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortQAlgorithm'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqPortQLLQenable'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqReferenceMappingMaxReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqResourceQueueNumber'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesNumEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesRowStatus'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesMin'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesMax'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesMaxDropProb'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfilesQueueDepthAtMaxProb'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqDropProfileQueueCfgID'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_txq_group = etsysCosTxqGroup.setStatus('current')
etsys_cos_irl_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 5)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeDescr'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeEligiblePorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeUnselectedPorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeNumberOfIRLs'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeCapabilities'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortTypeSupportedRateTypes'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlUnitMaxRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlUnitMinRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlUnitGranularity'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupNumEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupRowStatus'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortGroupName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlPortCfgFloodLimiter'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceIrlNumber'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceUnits'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceParentIrl'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceActionCosIndex'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceType'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceAction'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceViolationPortList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResourceClearCounters'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlReferenceMappingMaxReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlReferenceMappingLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlViolationLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlDisabledPortsList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlViolation'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlViolationClearTable'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlCounter'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlResetFlags'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_irl_group = etsysCosIrlGroup.setStatus('current')
etsys_cos_orl_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 6)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeDescr'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeEligiblePorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeUnselectedPorts'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeNumberOfORLs'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeCapabilities'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortTypeSupportedRateTypes'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlUnitMaxRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlUnitMinRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlUnitGranularity'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupMaxEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupNumEntries'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupRowStatus'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortGroupName'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlPortCfgFloodLimiter'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceOrlNumber'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceUnits'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceRate'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceParentOrl'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceActionCosIndex'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceType'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceAction'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceViolationPortList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResourceClearCounters'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlReferenceMappingMaxReference'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlReferenceMappingLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlViolationLastChange'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlDisabledPortsList'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlViolation'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlViolationClearTable'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlCounter'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlResetFlags'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_orl_group = etsysCosOrlGroup.setStatus('current')
etsys_cos_notification_group = notification_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 1, 7)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlExceededNotification'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlExceededNotification'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_notification_group = etsysCosNotificationGroup.setStatus('current')
etsys_cos_compliance = module_compliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 55, 2, 2, 1)).setObjects(('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosMasterResetGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosCapabilitiesGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosTxqGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosIrlGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosOrlGroup'), ('ENTERASYS-CLASS-OF-SERVICE-MIB', 'etsysCosNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
etsys_cos_compliance = etsysCosCompliance.setStatus('current')
mibBuilder.exportSymbols('ENTERASYS-CLASS-OF-SERVICE-MIB', TxqAlgorithms=TxqAlgorithms, etsysCosFloodCtrlViolationLastChange=etsysCosFloodCtrlViolationLastChange, etsysCosIrlViolationClearTable=etsysCosIrlViolationClearTable, etsysCosFloodCtrlResourceEntry=etsysCosFloodCtrlResourceEntry, etsysCosOrlResourceAction=etsysCosOrlResourceAction, etsysCosIrlPortIndex=etsysCosIrlPortIndex, etsysCosFloodCtrlSyslogActionMsgFormat=etsysCosFloodCtrlSyslogActionMsgFormat, etsysCosFloodLimitExceededNotification=etsysCosFloodLimitExceededNotification, etsysCosOrlPortTypeEntry=etsysCosOrlPortTypeEntry, etsysCosTosValue=etsysCosTosValue, etsysCosIrlExceededNotification=etsysCosIrlExceededNotification, etsysCosFloodCtrlUnitEntry=etsysCosFloodCtrlUnitEntry, etsysCosIrlPortTypeIndex=etsysCosIrlPortTypeIndex, etsysCosOrlResourceActionCosIndex=etsysCosOrlResourceActionCosIndex, etsysCosTxqReferenceMappingTable=etsysCosTxqReferenceMappingTable, etsysCosFloodCtrlPortGroupLastChange=etsysCosFloodCtrlPortGroupLastChange, etsysCosIrlViolationEntry=etsysCosIrlViolationEntry, etsysCosOrlPortGroupIndex=etsysCosOrlPortGroupIndex, etsysCosFloodCtrlPortTypeIndex=etsysCosFloodCtrlPortTypeIndex, etsysCosIrlPortGroupNumEntries=etsysCosIrlPortGroupNumEntries, etsysCosIrlPortTypeDescr=etsysCosIrlPortTypeDescr, etsysCosEnableState=etsysCosEnableState, etsysCosTxqPortGroupRowStatus=etsysCosTxqPortGroupRowStatus, etsysCosOrlUnitTypeIndex=etsysCosOrlUnitTypeIndex, etsysCosTxqDropProfilesMin=etsysCosTxqDropProfilesMin, etsysCosTxqPortTypeUnselectedPorts=etsysCosTxqPortTypeUnselectedPorts, etsysCosTxqPortSliceSetting=etsysCosTxqPortSliceSetting, etsysCosFloodCtrlFloodType=etsysCosFloodCtrlFloodType, etsysCosTxqDropProfileQueueCfgID=etsysCosTxqDropProfileQueueCfgID, etsysCosTxqReferenceMappingEntry=etsysCosTxqReferenceMappingEntry, etsysCosNumEntries=etsysCosNumEntries, etsysCosOrlResourceViolationPortList=etsysCosOrlResourceViolationPortList, etsysCosIrlUnitMaxRate=etsysCosIrlUnitMaxRate, etsysCosIrlResourceEntry=etsysCosIrlResourceEntry, etsysCosFloodCtrlCounter=etsysCosFloodCtrlCounter, EtsysCosRlCapabilities=EtsysCosRlCapabilities, etsysCosIrlViolation=etsysCosIrlViolation, etsysCosOrlViolation=etsysCosOrlViolation, etsysCosTxqPortTypeNumberOfQueues=etsysCosTxqPortTypeNumberOfQueues, etsysCosMasterReset=etsysCosMasterReset, etsysCosIrlUnitEntry=etsysCosIrlUnitEntry, etsysCosIrlPortGroupList=etsysCosIrlPortGroupList, etsysCosIrlCounter=etsysCosIrlCounter, etsysCosFloodCtrlPortTypeCapabilities=etsysCosFloodCtrlPortTypeCapabilities, etsysCosFloodCtrlViolationTable=etsysCosFloodCtrlViolationTable, etsysCosTxqPortTypeNumberOfSlices=etsysCosTxqPortTypeNumberOfSlices, etsysCosOrlResourceOrlNum=etsysCosOrlResourceOrlNum, etsysCosFloodCtrlPortTypeDescr=etsysCosFloodCtrlPortTypeDescr, etsysCosMibObjectAnullingBehavior=etsysCosMibObjectAnullingBehavior, etsysCosIrlPortCfgFloodLimiter=etsysCosIrlPortCfgFloodLimiter, etsysCosTxqPortTypeMaxDropPrecedence=etsysCosTxqPortTypeMaxDropPrecedence, etsysCosOrlUnitGranularity=etsysCosOrlUnitGranularity, etsysCosFloodCtrlDisabledPortsList=etsysCosFloodCtrlDisabledPortsList, etsysCosFloodCtrlViolation=etsysCosFloodCtrlViolation, TxqArbiterModes=TxqArbiterModes, etsysCosOrlPortTypeUnselectedPorts=etsysCosOrlPortTypeUnselectedPorts, etsysCosOrlPortTypeTable=etsysCosOrlPortTypeTable, etsysCosIrlPortGroupLastChange=etsysCosIrlPortGroupLastChange, etsysCosOrlViolationEntry=etsysCosOrlViolationEntry, etsysCosMaxEntries=etsysCosMaxEntries, etsysCosIndex=etsysCosIndex, etsysCosIrlReferenceMappingMaxReference=etsysCosIrlReferenceMappingMaxReference, etsysCosTxqPortQAlgorithm=etsysCosTxqPortQAlgorithm, etsysCosOrlPortGroupName=etsysCosOrlPortGroupName, etsysCosTxqPortCfgEntry=etsysCosTxqPortCfgEntry, etsysCosIrlResourceUnits=etsysCosIrlResourceUnits, etsysCosIrlPortGroupRowStatus=etsysCosIrlPortGroupRowStatus, etsysCosDropPrecedence=etsysCosDropPrecedence, etsysCosTxqDropProfilesMax=etsysCosTxqDropProfilesMax, etsysCosCompliances=etsysCosCompliances, etsysCosTxqDropProfilesNumEntries=etsysCosTxqDropProfilesNumEntries, etsysCosMIB=etsysCosMIB, etsysCosIrlResourceType=etsysCosIrlResourceType, etsysCosTxqDropProfilesMaxDropProb=etsysCosTxqDropProfilesMaxDropProb, etsysCosTableDropPrecedence=etsysCosTableDropPrecedence, etsysCosIrlPortTypeMaxEntries=etsysCosIrlPortTypeMaxEntries, etsysCosOrlPortCfgFloodLimiter=etsysCosOrlPortCfgFloodLimiter, etsysCosTxqPortQRate=etsysCosTxqPortQRate, etsysCosIrlUnitGranularity=etsysCosIrlUnitGranularity, etsysCosIrlResourceParentIrl=etsysCosIrlResourceParentIrl, etsysCosOrlUnitMinRate=etsysCosOrlUnitMinRate, etsysCosFloodCtrlResourceUnits=etsysCosFloodCtrlResourceUnits, etsysCosEntry=etsysCosEntry, etsysCosIrlPortTypeTable=etsysCosIrlPortTypeTable, etsysCosFloodCtrlPortTypeEligiblePorts=etsysCosFloodCtrlPortTypeEligiblePorts, etsysCosNotificationGroup=etsysCosNotificationGroup, etsysCos=etsysCos, etsysCosTxqResourceTable=etsysCosTxqResourceTable, etsysCosFloodCtrlPortGroupEntry=etsysCosFloodCtrlPortGroupEntry, etsysCosIrl=etsysCosIrl, etsysCosFloodControlStatus=etsysCosFloodControlStatus, EtsysViolationAction=EtsysViolationAction, etsysCosIrlResourceTable=etsysCosIrlResourceTable, EtsysRateLimitResetBits=EtsysRateLimitResetBits, etsysCosOrlResourceTable=etsysCosOrlResourceTable, etsysCosOrlResourceEntry=etsysCosOrlResourceEntry, etsysCosOrlResourceUnits=etsysCosOrlResourceUnits, etsysCosTable=etsysCosTable, etsysCosTxqNumPortGroups=etsysCosTxqNumPortGroups, etsysCosTxqPortGroupName=etsysCosTxqPortGroupName, etsysCosTxqDropProfilesEntry=etsysCosTxqDropProfilesEntry, etsysCosIrlViolationLastChange=etsysCosIrlViolationLastChange, etsysCosIrlReference=etsysCosIrlReference, etsysCosTxqPortTypeTable=etsysCosTxqPortTypeTable, etsysCosTxqDropSettingIndex=etsysCosTxqDropSettingIndex, etsysCosOrlPortIndex=etsysCosOrlPortIndex, etsysCosTxqPortTypeEntry=etsysCosTxqPortTypeEntry, etsysCosIrlGroup=etsysCosIrlGroup, etsysCosFloodCtrlResetFlags=etsysCosFloodCtrlResetFlags, etsysCosTxqPortGroupIndex=etsysCosTxqPortGroupIndex, etsysCosOrlUnitMaxRate=etsysCosOrlUnitMaxRate, etsysCosOrlDisabledPortsList=etsysCosOrlDisabledPortsList, etsysCosIrlPortTypeEligiblePorts=etsysCosIrlPortTypeEligiblePorts, etsysCosFloodCtrlPortGroupTable=etsysCosFloodCtrlPortGroupTable, etsysCosTxqResourceEntry=etsysCosTxqResourceEntry, etsysCosOrlPortTypeDescr=etsysCosOrlPortTypeDescr, etsysCosCapabilities=etsysCosCapabilities, etsysCosOrlPortGroupRowStatus=etsysCosOrlPortGroupRowStatus, etsysCosFloodCtrlPortTypeSupportedRateTypes=etsysCosFloodCtrlPortTypeSupportedRateTypes, etsysCosNotifications=etsysCosNotifications, etsysCosOrlPortGroupList=etsysCosOrlPortGroupList, etsysCosOrlPortGroupNumEntries=etsysCosOrlPortGroupNumEntries, etsysCosFloodCtrlResourceAction=etsysCosFloodCtrlResourceAction, etsysCosIrlResourceAction=etsysCosIrlResourceAction, etsysCosIrlPortCfgEntry=etsysCosIrlPortCfgEntry, etsysCosFloodCtrlViolationClearTable=etsysCosFloodCtrlViolationClearTable, etsysCosTxqResourceQueueNumber=etsysCosTxqResourceQueueNumber, etsysCosTxqPortTypeLLQEligibleQueues=etsysCosTxqPortTypeLLQEligibleQueues, etsysCosLastChange=etsysCosLastChange, etsysCosTxqUnitGranularity=etsysCosTxqUnitGranularity, etsysCosOrlPortGroupEntry=etsysCosOrlPortGroupEntry, etsysCosOrlReferenceMappingEntry=etsysCosOrlReferenceMappingEntry, etsysCosFloodCtrlUnitMaxRate=etsysCosFloodCtrlUnitMaxRate, etsysCosOrlResourceType=etsysCosOrlResourceType, etsysCosTxqPortTypeQueueArbiterModes=etsysCosTxqPortTypeQueueArbiterModes, etsysCosOrlPortTypeIndex=etsysCosOrlPortTypeIndex, etsysCosCompliance=etsysCosCompliance, etsysCosTxqNumPortTypes=etsysCosTxqNumPortTypes, etsysCosIrlPortGroupEntry=etsysCosIrlPortGroupEntry, etsysCosIrlPortGroupTable=etsysCosIrlPortGroupTable, etsysCosIrlResourceActionCosIndex=etsysCosIrlResourceActionCosIndex, etsysCosCapability=etsysCosCapability, etsysCosFloodCtrlPortGroupList=etsysCosFloodCtrlPortGroupList, etsysCosIrlPortTypeCapabilities=etsysCosIrlPortTypeCapabilities, etsysCosOrlPortCfgTable=etsysCosOrlPortCfgTable, etsysCosMasterResetGroup=etsysCosMasterResetGroup, etsysCosOrlExceededNotification=etsysCosOrlExceededNotification, etsysCosTxqDropPrecedenceTable=etsysCosTxqDropPrecedenceTable, etsysCosFloodCtrlPortTypeEntry=etsysCosFloodCtrlPortTypeEntry, etsysCosIrlPortTypeEntry=etsysCosIrlPortTypeEntry, etsysCosOrlPortTypeMaxEntries=etsysCosOrlPortTypeMaxEntries, etsysCosIrlUnitTypeIndex=etsysCosIrlUnitTypeIndex, etsysCosFloodCtrlResourceClearCounters=etsysCosFloodCtrlResourceClearCounters, etsysCosIrlResourceViolationPortList=etsysCosIrlResourceViolationPortList, etsysCosFloodCtrlPortGroupRowStatus=etsysCosFloodCtrlPortGroupRowStatus, etsysCosGroups=etsysCosGroups, etsysCosObjects=etsysCosObjects, etsysCosTxqReference=etsysCosTxqReference, etsysCosTxq=etsysCosTxq, etsysCosTxqPortCfgTable=etsysCosTxqPortCfgTable, etsysCosTxqDropPrecedenceEntry=etsysCosTxqDropPrecedenceEntry, etsysCosTxqDropProfilesTable=etsysCosTxqDropProfilesTable, etsysCosCapabilitiesGroup=etsysCosCapabilitiesGroup, etsysCosIrlReferenceMappingEntry=etsysCosIrlReferenceMappingEntry, etsysCosTxqDropProfilesLastChange=etsysCosTxqDropProfilesLastChange, etsysCosFloodCtrlPortGroupIndex=etsysCosFloodCtrlPortGroupIndex, etsysCosFloodControl=etsysCosFloodControl, etsysCosRowStatus=etsysCosRowStatus, etsysCosTxqPortTypeSupportedRateTypes=etsysCosTxqPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupName=etsysCosFloodCtrlPortGroupName, etsysCosTxqDropProfilesQueueDepthAtMaxProb=etsysCosTxqDropProfilesQueueDepthAtMaxProb, etsysCosTxqDropProfilesRowStatus=etsysCosTxqDropProfilesRowStatus, etsysCosIrlReferenceMappingTable=etsysCosIrlReferenceMappingTable, etsysCosOrlResetFlags=etsysCosOrlResetFlags, etsysCosOrlPortTypeSupportedRateTypes=etsysCosOrlPortTypeSupportedRateTypes, etsysCosTxqUnitTypeIndex=etsysCosTxqUnitTypeIndex, etsysCosTxqPortTypeQueueAlgorithms=etsysCosTxqPortTypeQueueAlgorithms, etsysCosIrlDisabledPortsList=etsysCosIrlDisabledPortsList, etsysCosOrlReferenceMappingTable=etsysCosOrlReferenceMappingTable, etsysCosFloodCtrlUnitTable=etsysCosFloodCtrlUnitTable, etsysCosFloodCtrlResourceRate=etsysCosFloodCtrlResourceRate, etsysCosTxqPortArbMode=etsysCosTxqPortArbMode, etsysCosIrlResourceIrlNum=etsysCosIrlResourceIrlNum, etsysCosTxqPortTypeEligiblePorts=etsysCosTxqPortTypeEligiblePorts, etsysCosFloodCtrlUnitGranularity=etsysCosFloodCtrlUnitGranularity, etsysCosIrlPortTypeNumberOfIRLs=etsysCosIrlPortTypeNumberOfIRLs, etsysCosIrlResourceClearCounters=etsysCosIrlResourceClearCounters, etsysCosTxqUnitEntry=etsysCosTxqUnitEntry, etsysCosOrlResourceClearCounters=etsysCosOrlResourceClearCounters, etsysCosIrlResourceRate=etsysCosIrlResourceRate, etsysCosIrlViolationTable=etsysCosIrlViolationTable, EtsysRateLimitingType=EtsysRateLimitingType, etsysCosTxqUnitMaxRate=etsysCosTxqUnitMaxRate, etsysCosOrlResourceRate=etsysCosOrlResourceRate, TxQueueList=TxQueueList, etsysCosFloodCtrlPortGroupNumEntries=etsysCosFloodCtrlPortGroupNumEntries, etsysCosIrlPortGroupName=etsysCosIrlPortGroupName, etsysCosFloodCtrlViolationEntry=etsysCosFloodCtrlViolationEntry, etsysCosIrlPortGroupIndex=etsysCosIrlPortGroupIndex, etsysCosOrlPortTypeEligiblePorts=etsysCosOrlPortTypeEligiblePorts, etsysCosTxqReferenceMappingMaxReference=etsysCosTxqReferenceMappingMaxReference, etsysCosOrlPortGroupTable=etsysCosOrlPortGroupTable, etsysCosIrlResetFlags=etsysCosIrlResetFlags, etsysCosGroup=etsysCosGroup, etsysCosIrlPortTypeSupportedRateTypes=etsysCosIrlPortTypeSupportedRateTypes, etsysCosFloodCtrlPortGroupMaxEntries=etsysCosFloodCtrlPortGroupMaxEntries, etsysCosTxqPortTypeIndex=etsysCosTxqPortTypeIndex, etsysCosOrlPortGroupMaxEntries=etsysCosOrlPortGroupMaxEntries, etsysCosTxqPortGroupEntry=etsysCosTxqPortGroupEntry, etsysCosFloodCtrlUnitMinRate=etsysCosFloodCtrlUnitMinRate, etsysCosOrlUnitTable=etsysCosOrlUnitTable, etsysCosOrlResourceOrlNumber=etsysCosOrlResourceOrlNumber, etsysCosOrlViolationClearTable=etsysCosOrlViolationClearTable, etsysCosFloodCtrlResourceViolationPortList=etsysCosFloodCtrlResourceViolationPortList, etsysCosTxqResourceQueueNum=etsysCosTxqResourceQueueNum, etsysCosIrlPortTypeUnselectedPorts=etsysCosIrlPortTypeUnselectedPorts, etsysCosOrlPortCfgEntry=etsysCosOrlPortCfgEntry, etsysCosTxqUnitTable=etsysCosTxqUnitTable, etsysCosOrlGroup=etsysCosOrlGroup, etsysCosIrlUnitTable=etsysCosIrlUnitTable, etsysCosOrl=etsysCosOrl, etsysCosIrlResourceIrlNumber=etsysCosIrlResourceIrlNumber, etsysCosOrlReferenceMappingLastChange=etsysCosOrlReferenceMappingLastChange, etsysCos8021dPriority=etsysCos8021dPriority, etsysCosOrlViolationTable=etsysCosOrlViolationTable, etsysCosTxqPortGroupTable=etsysCosTxqPortGroupTable, etsysCosIrlUnitMinRate=etsysCosIrlUnitMinRate, etsysCosOrlResourceParentOrl=etsysCosOrlResourceParentOrl, etsysCosTxqPortGroupList=etsysCosTxqPortGroupList, etsysCosTxqPortQLLQenable=etsysCosTxqPortQLLQenable, etsysCosFloodCtrlResourceTable=etsysCosFloodCtrlResourceTable, etsysCosOrlPortTypeCapabilities=etsysCosOrlPortTypeCapabilities, PYSNMP_MODULE_ID=etsysCosMIB, etsysCosTxqDropProfilesMaxEntries=etsysCosTxqDropProfilesMaxEntries, etsysCosOrlViolationLastChange=etsysCosOrlViolationLastChange, etsysCosFloodCtrlUnitTypeIndex=etsysCosFloodCtrlUnitTypeIndex, etsysCosIrlPortCfgTable=etsysCosIrlPortCfgTable, etsysCosOrlReferenceMappingMaxReference=etsysCosOrlReferenceMappingMaxReference, etsysCosFloodCtrlPortTypeTable=etsysCosFloodCtrlPortTypeTable, etsysCosTxqPortTypeDescr=etsysCosTxqPortTypeDescr, etsysCosOrlUnitEntry=etsysCosOrlUnitEntry, EtsysCosRateTypes=EtsysCosRateTypes, etsysCosIrlPortGroupMaxEntries=etsysCosIrlPortGroupMaxEntries, etsysCosOrlPortTypeNumberOfORLs=etsysCosOrlPortTypeNumberOfORLs, etsysCosOrlCounter=etsysCosOrlCounter, etsysCosTxqPortGroupLastChange=etsysCosTxqPortGroupLastChange, etsysCosFloodCtrlPortTypeUnselectedPorts=etsysCosFloodCtrlPortTypeUnselectedPorts, etsysCosTxqMaxPortGroups=etsysCosTxqMaxPortGroups, etsysCosOrlPortGroupLastChange=etsysCosOrlPortGroupLastChange, etsysCosFloodCtrlPortTypeMaxEntries=etsysCosFloodCtrlPortTypeMaxEntries, etsysCosTxqGroup=etsysCosTxqGroup, etsysCosTxqPortQUnit=etsysCosTxqPortQUnit, etsysCosIrlReferenceMappingLastChange=etsysCosIrlReferenceMappingLastChange, etsysCosOrlReference=etsysCosOrlReference)
mibBuilder.exportSymbols('ENTERASYS-CLASS-OF-SERVICE-MIB', etsysCosConformance=etsysCosConformance, etsysCosTxqUnitMinRate=etsysCosTxqUnitMinRate) |
# Tern
# domain: set of inputs
# co-domain: a set from which the function's output values are chosen.
# image: set of outputs, may smaller than co-domain
# this procedure is a real function in math.
def caesar(plaintext: str):
code = []
for char in plaintext:
code_ = ord(char) + 3
if char in "xyzXYZ":
code_ = code_ - 26
code_ = chr(code_)
code.append(code_)
return "".join(code) | def caesar(plaintext: str):
code = []
for char in plaintext:
code_ = ord(char) + 3
if char in 'xyzXYZ':
code_ = code_ - 26
code_ = chr(code_)
code.append(code_)
return ''.join(code) |
def get_counting_line(line_position, frame_width, frame_height):
line_positions = ['top', 'bottom', 'left', 'right']
if line_position == None:
line_position = 'bottom'
if line_position not in line_positions:
raise Exception('Invalid line position specified (options: top, bottom, left, right)')
if line_position == 'top':
# counting_line_y = round(1 / 5 * frame_height)
# Hamburg_Hall_080007032018_000,top
# counting_line_y = round(3 / 5 * frame_height)
# Parking1_083915032018_000, top
# counting_line_y = round(13 / 20 * frame_height)
# Hamburg_Hall1_073301102019_000, top
counting_line_y = round(3 / 4 * frame_height)
return [(0, counting_line_y), (frame_width, counting_line_y)]
elif line_position == 'bottom':
# Hamburg_Hall_080007032018_000, bottom
# counting_line_y = round(13 / 20 * frame_height)
# Parking1_083915032018_000, bottom
# counting_line_y = round(2 / 3 * frame_height)
# Hamburg_Hall1_064721092018_020, bottom
# counting_line_y = round(3 / 4 * frame_height)
# Hamburg_Hall1_073301102019_000, bottom
# counting_line_y = round(7 / 8 * frame_height)
# Parking2_050101102019_025, bottom
counting_line_y = round(31 / 128 * frame_height)
# counting_line_y = round(1 / 2 * frame_height)
# counting_line_y = round(31 / 128 * frame_height)
# counting_line_y = round(14 / 16 * frame_height)
return [(0, counting_line_y), (frame_width, counting_line_y)]
elif line_position == 'left':
counting_line_x = round(1 / 5 * frame_width)
return [(counting_line_x, 0), (counting_line_x, frame_height)]
elif line_position == 'right':
counting_line_x = round(4 / 5 * frame_width)
return [(counting_line_x, 0), (counting_line_x, frame_height)]
def is_passed_counting_line(point, counting_line, line_position):
if line_position == 'top':
return point[1] < counting_line[0][1]
elif line_position == 'bottom':
return point[1] > counting_line[0][1]
elif line_position == 'left':
return point[0] < counting_line[0][0]
elif line_position == 'right':
return point[0] > counting_line[0][0] | def get_counting_line(line_position, frame_width, frame_height):
line_positions = ['top', 'bottom', 'left', 'right']
if line_position == None:
line_position = 'bottom'
if line_position not in line_positions:
raise exception('Invalid line position specified (options: top, bottom, left, right)')
if line_position == 'top':
counting_line_y = round(3 / 4 * frame_height)
return [(0, counting_line_y), (frame_width, counting_line_y)]
elif line_position == 'bottom':
counting_line_y = round(31 / 128 * frame_height)
return [(0, counting_line_y), (frame_width, counting_line_y)]
elif line_position == 'left':
counting_line_x = round(1 / 5 * frame_width)
return [(counting_line_x, 0), (counting_line_x, frame_height)]
elif line_position == 'right':
counting_line_x = round(4 / 5 * frame_width)
return [(counting_line_x, 0), (counting_line_x, frame_height)]
def is_passed_counting_line(point, counting_line, line_position):
if line_position == 'top':
return point[1] < counting_line[0][1]
elif line_position == 'bottom':
return point[1] > counting_line[0][1]
elif line_position == 'left':
return point[0] < counting_line[0][0]
elif line_position == 'right':
return point[0] > counting_line[0][0] |
class Timer:
def __init__(self, tempo = "int used in real timer", settings = "obj used in real timer"):
pass
def start_question_timer(self):
self._times_asked = 0
def question_time_up(self):
self._times_asked += 1
return self._times_asked >= 18
def question_hint_1_up(self):
return self._times_asked >= 4
def question_hint_2_up(self):
return self._times_asked >= 8
def wait(self):
pass
| class Timer:
def __init__(self, tempo='int used in real timer', settings='obj used in real timer'):
pass
def start_question_timer(self):
self._times_asked = 0
def question_time_up(self):
self._times_asked += 1
return self._times_asked >= 18
def question_hint_1_up(self):
return self._times_asked >= 4
def question_hint_2_up(self):
return self._times_asked >= 8
def wait(self):
pass |
st="Hello everyone are you enjoying learning Python ?"
st2 = st.split()
print(st2)
print(st.strip())
print(st.replace('o','0'))
print(st.isalpha()) | st = 'Hello everyone are you enjoying learning Python ?'
st2 = st.split()
print(st2)
print(st.strip())
print(st.replace('o', '0'))
print(st.isalpha()) |
class Solution:
def smallestNumber(self, num: int) -> int:
s = sorted(str(abs(num)), reverse=num < 0)
firstNonZeroIndex = next((i for i, c in enumerate(s) if c != '0'), 0)
s[0], s[firstNonZeroIndex] = s[firstNonZeroIndex], s[0]
return int(''.join(s)) * (-1 if num < 0 else 1)
| class Solution:
def smallest_number(self, num: int) -> int:
s = sorted(str(abs(num)), reverse=num < 0)
first_non_zero_index = next((i for (i, c) in enumerate(s) if c != '0'), 0)
(s[0], s[firstNonZeroIndex]) = (s[firstNonZeroIndex], s[0])
return int(''.join(s)) * (-1 if num < 0 else 1) |
'''
EASY 1108. Defanging an IP Address
You are given a license key represented as a string S which consists only alphanumeric character and dashes.
The string is separated into N+1 groups by N dashes.
Given a number K, we would want to reformat the strings such that each group contains exactly K characters,
except for the first group which could be shorter than K, but still must contain at least one character.
Furthermore, there must be a dash inserted between two groups and all lowercase letters should be converted to uppercase.
Given a non-empty string S and a number K, format the string according to the rules described above.
Example 1:
Input: S = "5F3Z-2e-9-w", K = 4
Output: "5F3Z-2E9W"
Explanation: The string S has been split into two parts, each part has 4 characters.
Note that the two extra dashes are not needed and can be removed.
'''
class Solution:
def defangIPaddr(self, address: str) -> str:
separate = address.split('.')
separate = "[.]".join(separate)
#return separate
def anotherVersion():
return "[.]".join(address.split('.'))
def mostEfficient():
return address.replace(".","[.]")
return anotherVersion() | """
EASY 1108. Defanging an IP Address
You are given a license key represented as a string S which consists only alphanumeric character and dashes.
The string is separated into N+1 groups by N dashes.
Given a number K, we would want to reformat the strings such that each group contains exactly K characters,
except for the first group which could be shorter than K, but still must contain at least one character.
Furthermore, there must be a dash inserted between two groups and all lowercase letters should be converted to uppercase.
Given a non-empty string S and a number K, format the string according to the rules described above.
Example 1:
Input: S = "5F3Z-2e-9-w", K = 4
Output: "5F3Z-2E9W"
Explanation: The string S has been split into two parts, each part has 4 characters.
Note that the two extra dashes are not needed and can be removed.
"""
class Solution:
def defang_i_paddr(self, address: str) -> str:
separate = address.split('.')
separate = '[.]'.join(separate)
def another_version():
return '[.]'.join(address.split('.'))
def most_efficient():
return address.replace('.', '[.]')
return another_version() |
#!/usr/bin/env python
f = open('/Users/kosta/dev/advent-of-code-17/day11/input.txt')
steps = f.readline().split(',')
moves = {
'n': (0, 1),
's': (0, -1),
'ne': (1, 0.5),
'nw': (-1, 0.5),
'sw': (-1, -0.5),
'se': (1, -0.5)
}
x_total = 0
y_total = 0
for step in steps:
x_total += moves[step][0]
y_total += moves[step][1]
normalized_x = abs(x_total)
normalized_y = abs(y_total)
total_steps = 0
while(True):
total_steps += 1
normalized_x -= 1
normalized_y -= 0.5
if normalized_x == 0:
total_steps += normalized_y
break
print(total_steps)
| f = open('/Users/kosta/dev/advent-of-code-17/day11/input.txt')
steps = f.readline().split(',')
moves = {'n': (0, 1), 's': (0, -1), 'ne': (1, 0.5), 'nw': (-1, 0.5), 'sw': (-1, -0.5), 'se': (1, -0.5)}
x_total = 0
y_total = 0
for step in steps:
x_total += moves[step][0]
y_total += moves[step][1]
normalized_x = abs(x_total)
normalized_y = abs(y_total)
total_steps = 0
while True:
total_steps += 1
normalized_x -= 1
normalized_y -= 0.5
if normalized_x == 0:
total_steps += normalized_y
break
print(total_steps) |
#
# @lc app=leetcode.cn id=1389 lang=python3
#
# [1389] minimum-moves-to-move-a-box-to-their-target-location
#
None
# @lc code=end | None |
class Post():
def __init__(self, post_json):
self.post_id = post_json["id"]
self.annotations = {}
if "annotations" in post_json:
self.annotations = post_json["annotations"]
self.user_id = post_json["user"]["id"]
self.user_followers_count = post_json["user"]["followers_count"]
self.url = post_json["url"]
self.title = post_json["title"]
self.body = post_json["body"]
self.rendered_body = post_json["rendered_body"]
def quality(self, zero_one=True):
score = 0
if len(self.annotations) == 0:
return -1
for a in self.annotations:
score += int(a["quality"])
if not zero_one:
return score
else:
if score > 1:
return 1
else:
return 0
| class Post:
def __init__(self, post_json):
self.post_id = post_json['id']
self.annotations = {}
if 'annotations' in post_json:
self.annotations = post_json['annotations']
self.user_id = post_json['user']['id']
self.user_followers_count = post_json['user']['followers_count']
self.url = post_json['url']
self.title = post_json['title']
self.body = post_json['body']
self.rendered_body = post_json['rendered_body']
def quality(self, zero_one=True):
score = 0
if len(self.annotations) == 0:
return -1
for a in self.annotations:
score += int(a['quality'])
if not zero_one:
return score
elif score > 1:
return 1
else:
return 0 |
class EntropyException(Exception):
pass
class EntropyHttpUnauthorizedException(EntropyException):
pass
class EntropyHttpMkcolException(EntropyException):
pass
class EntropyHttpPropFindException(EntropyException):
pass
class EntropyHttpNoContentException(EntropyException):
pass
class EntropyHttpPutException(EntropyException):
pass
class EntropyVerifyCodeDirectoryException(EntropyException):
pass
| class Entropyexception(Exception):
pass
class Entropyhttpunauthorizedexception(EntropyException):
pass
class Entropyhttpmkcolexception(EntropyException):
pass
class Entropyhttppropfindexception(EntropyException):
pass
class Entropyhttpnocontentexception(EntropyException):
pass
class Entropyhttpputexception(EntropyException):
pass
class Entropyverifycodedirectoryexception(EntropyException):
pass |
class Dog:
def __init__(self, name):
self.name = name
class Cat:
def __init__(self, age):
self.age = age
def classify(pet):
match pet:
case Cat(age=age):
print("A cat that's {} years old".format(age))
case Dog:
print("A dog named {}".format(pet.name))
def number(x):
match x:
case 1: print("one"),
case 2 | 3: print("two or three"),
case x if x >=4: print("four or bigger"), # range matching not yet possible
case _: print("anything"),
if __name__ == "__main__":
for x in range(0, 6):
number(x)
classify(Dog("Fido"))
classify(Cat(3))
| class Dog:
def __init__(self, name):
self.name = name
class Cat:
def __init__(self, age):
self.age = age
def classify(pet):
match pet:
case Cat(age=age):
print("A cat that's {} years old".format(age))
case Dog:
print('A dog named {}'.format(pet.name))
def number(x):
match x:
case 1:
(print('one'),)
case 2 | 3:
(print('two or three'),)
case x if x >= 4:
(print('four or bigger'),)
case _:
(print('anything'),)
if __name__ == '__main__':
for x in range(0, 6):
number(x)
classify(dog('Fido'))
classify(cat(3)) |
###############EXAMPLE 4: Inputs #################
#input() function waits for an input from the keyboard
salutation = "Hello"
name = input("Tell me your name: ")
complete_salut = salutation + ', ' + name + '!'
print (complete_salut)
weight = input("Enter your weight in lb: ")
weight = int(weight) #what am I doing here???
weight_kg = weight/2.205
print (weight_kg)
###############EXAMPLE 5: Conditionals #################
if (x > y):
print ("x is greater than y")
elif (y < x):
print ("y is greater than x")
else:
print ("they are equal!")
###############EXAMPLE 6: Functions #################
def BMI(weight, height):
bmi = weight / (height ** 2)
return bmi
def convert_lb_to_kg (weight_lb):
weight_kg = weight_lb/2.205
return weight_kg
def convert_ft_in_to_m(feet, inches):
meters = feet*0.305 + inches*0.0254
return meters
print (BMI(convert_lb_to_kg(210),convert_ft_in_to_m(6,0)))
###############EXAMPLE 7: Lists #################
list_of_numbers = [1,2,3,4,5]
len(list_of_numbers)
list_of_numbers[0]
print(list_of_numbers)
list_of_numbers[4]
print(list_of_numbers)
list_of_numbers[-2]
print(list_of_numbers)
#extending it
list_of_numbers.extend([6,7,8])
print(list_of_numbers)
#slicing it
piece = list_of_numbers[:4] #beginning to 4
print (piece)
piece = list_of_numbers[2:6] #from position 2 to 6
print (piece)
#shrinking it
del list_of_numbers [2:5]
print(list_of_numbers)
#merging
list1 = [1,2,3]
list2 = [4,5,6]
list3 = list1 + list2
print(list3)
list1.extend(list2)
print(list1)
#sorting
list1 = [-1,4,0,9,2,7]
list1.sort()
print (list1)
| salutation = 'Hello'
name = input('Tell me your name: ')
complete_salut = salutation + ', ' + name + '!'
print(complete_salut)
weight = input('Enter your weight in lb: ')
weight = int(weight)
weight_kg = weight / 2.205
print(weight_kg)
if x > y:
print('x is greater than y')
elif y < x:
print('y is greater than x')
else:
print('they are equal!')
def bmi(weight, height):
bmi = weight / height ** 2
return bmi
def convert_lb_to_kg(weight_lb):
weight_kg = weight_lb / 2.205
return weight_kg
def convert_ft_in_to_m(feet, inches):
meters = feet * 0.305 + inches * 0.0254
return meters
print(bmi(convert_lb_to_kg(210), convert_ft_in_to_m(6, 0)))
list_of_numbers = [1, 2, 3, 4, 5]
len(list_of_numbers)
list_of_numbers[0]
print(list_of_numbers)
list_of_numbers[4]
print(list_of_numbers)
list_of_numbers[-2]
print(list_of_numbers)
list_of_numbers.extend([6, 7, 8])
print(list_of_numbers)
piece = list_of_numbers[:4]
print(piece)
piece = list_of_numbers[2:6]
print(piece)
del list_of_numbers[2:5]
print(list_of_numbers)
list1 = [1, 2, 3]
list2 = [4, 5, 6]
list3 = list1 + list2
print(list3)
list1.extend(list2)
print(list1)
list1 = [-1, 4, 0, 9, 2, 7]
list1.sort()
print(list1) |
class CachePolicy:
def __init__(self):
self.cache = []
self.cache_size = 5
| class Cachepolicy:
def __init__(self):
self.cache = []
self.cache_size = 5 |
cube = lambda x: x ** 3
def fibonacci(n):
first, second = 0, 1
for i in range(n):
yield first
first, second = second, first + second
if __name__ == '__main__':
n = int(input())
print(list(map(cube, fibonacci(n))))
| cube = lambda x: x ** 3
def fibonacci(n):
(first, second) = (0, 1)
for i in range(n):
yield first
(first, second) = (second, first + second)
if __name__ == '__main__':
n = int(input())
print(list(map(cube, fibonacci(n)))) |
FACE_CASCADE = "C:/openCV/sources/data/haarcascades/haarcascade_frontalface_alt.xml"
EYE_CASCADE = "C:/openCV/sources/data/haarcascades/haarcascade_eye.xml"
DEFAULT_FACE_SIZE = (200, 200)
RECOGNIZER_OUTPUT_FILE = "train_result.out" | face_cascade = 'C:/openCV/sources/data/haarcascades/haarcascade_frontalface_alt.xml'
eye_cascade = 'C:/openCV/sources/data/haarcascades/haarcascade_eye.xml'
default_face_size = (200, 200)
recognizer_output_file = 'train_result.out' |
split = 'exp'
dataset = 'folder'
height = 320
width = 640
disparity_smoothness = 1e-3
scales = [0, 1, 2, 3, 4]
min_depth = 0.1
max_depth = 100.0
frame_ids = [0, -1, 1]
learning_rate = 1e-4
depth_num_layers = 50
pose_num_layers = 18
total_epochs = 45
device_ids = range(8)
depth_pretrained_path = './weights/resnet{}.pth'.format(depth_num_layers)
pose_pretrained_path = './weights/resnet{}.pth'.format(pose_num_layers)
in_path = './datasets/my_dataset/image_undistort'
gt_depth_path = ''
checkpoint_path = '/node01_data5/monodepth2-test/model/refine/smallfigure.pth'
imgs_per_gpu = 2
workers_per_gpu = 4
model = dict(
name = 'mono_fm',# select a model by name
depth_num_layers = depth_num_layers,
pose_num_layers = pose_num_layers,
frame_ids = frame_ids,
imgs_per_gpu = imgs_per_gpu,
height = height,
width = width,
scales = [0, 1, 2, 3],# output different scales of depth maps
min_depth = 0.1, # minimum of predicted depth value
max_depth = 100.0, # maximum of predicted depth value
depth_pretrained_path = './weights/resnet{}.pth'.format(depth_num_layers),# pretrained weights for resnet
pose_pretrained_path = './weights/resnet{}.pth'.format(pose_num_layers),# pretrained weights for resnet
extractor_pretrained_path = './weights/autoencoder.pth', # pretrained weights for autoencoder
automask = False if 's' in frame_ids else True,
disp_norm = False if 's' in frame_ids else True,
perception_weight = 1e-3,
smoothness_weight = 1e-3,
)
validate = False
png = False
scale_invariant = False
plane_fitting = False
finetune = False
perception = False
focus_loss = False
scale_invariant_weight = 0.01
plane_fitting_weight = 0.0001
perceptional_weight = 0.001
optimizer = dict(type='Adam', lr=learning_rate, weight_decay=0)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
# learning policy
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=500,
warmup_ratio=1.0 / 3,
step=[15,25,35],
gamma=0.5,
)
checkpoint_config = dict(interval=1)
# yapf:disable
log_config = dict(interval=50,
hooks=[dict(type='TextLoggerHook'),])
# yapf:enable
# runtime settings
dist_params = dict(backend='nccl')
log_level = 'INFO'
load_from = None
resume_from = None
workflow = [('train', 1)] | split = 'exp'
dataset = 'folder'
height = 320
width = 640
disparity_smoothness = 0.001
scales = [0, 1, 2, 3, 4]
min_depth = 0.1
max_depth = 100.0
frame_ids = [0, -1, 1]
learning_rate = 0.0001
depth_num_layers = 50
pose_num_layers = 18
total_epochs = 45
device_ids = range(8)
depth_pretrained_path = './weights/resnet{}.pth'.format(depth_num_layers)
pose_pretrained_path = './weights/resnet{}.pth'.format(pose_num_layers)
in_path = './datasets/my_dataset/image_undistort'
gt_depth_path = ''
checkpoint_path = '/node01_data5/monodepth2-test/model/refine/smallfigure.pth'
imgs_per_gpu = 2
workers_per_gpu = 4
model = dict(name='mono_fm', depth_num_layers=depth_num_layers, pose_num_layers=pose_num_layers, frame_ids=frame_ids, imgs_per_gpu=imgs_per_gpu, height=height, width=width, scales=[0, 1, 2, 3], min_depth=0.1, max_depth=100.0, depth_pretrained_path='./weights/resnet{}.pth'.format(depth_num_layers), pose_pretrained_path='./weights/resnet{}.pth'.format(pose_num_layers), extractor_pretrained_path='./weights/autoencoder.pth', automask=False if 's' in frame_ids else True, disp_norm=False if 's' in frame_ids else True, perception_weight=0.001, smoothness_weight=0.001)
validate = False
png = False
scale_invariant = False
plane_fitting = False
finetune = False
perception = False
focus_loss = False
scale_invariant_weight = 0.01
plane_fitting_weight = 0.0001
perceptional_weight = 0.001
optimizer = dict(type='Adam', lr=learning_rate, weight_decay=0)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
lr_config = dict(policy='step', warmup='linear', warmup_iters=500, warmup_ratio=1.0 / 3, step=[15, 25, 35], gamma=0.5)
checkpoint_config = dict(interval=1)
log_config = dict(interval=50, hooks=[dict(type='TextLoggerHook')])
dist_params = dict(backend='nccl')
log_level = 'INFO'
load_from = None
resume_from = None
workflow = [('train', 1)] |
def kadane(a):
max_current = max_global = a[0]
for i in range(1, len(a)):
max_current = max(a[i], max_current + a[i])
if max_current > max_global:
max_global = max_current
return max_global
n = int(input())
a = [int(x) for x in input().split()]
print(kadane(a))
| def kadane(a):
max_current = max_global = a[0]
for i in range(1, len(a)):
max_current = max(a[i], max_current + a[i])
if max_current > max_global:
max_global = max_current
return max_global
n = int(input())
a = [int(x) for x in input().split()]
print(kadane(a)) |
#
# @lc app=leetcode id=22 lang=python3
#
# [22] Generate Parentheses
#
class Solution:
def parse(self, acc: str):
nl, nr = 0, 0
for c in acc:
if c == '(':
nl += 1
else:
nr += 1
return nl, nr
def gen(self, n: int, acc: str) -> List[str]:
nl, nr = self.parse(acc)
if nr > nl:
raise RuntimeError('should not reach here')
if nl == n:
acc += ')' * (n - nr)
return [acc]
if nl == nr:
return self.gen(n, acc + '(')
return self.gen(n, acc + '(') + self.gen(n, acc + ')')
def generateParenthesis(self, n: int) -> List[str]:
if n == 0:
return []
return self.gen(n, '')
| class Solution:
def parse(self, acc: str):
(nl, nr) = (0, 0)
for c in acc:
if c == '(':
nl += 1
else:
nr += 1
return (nl, nr)
def gen(self, n: int, acc: str) -> List[str]:
(nl, nr) = self.parse(acc)
if nr > nl:
raise runtime_error('should not reach here')
if nl == n:
acc += ')' * (n - nr)
return [acc]
if nl == nr:
return self.gen(n, acc + '(')
return self.gen(n, acc + '(') + self.gen(n, acc + ')')
def generate_parenthesis(self, n: int) -> List[str]:
if n == 0:
return []
return self.gen(n, '') |
def math():
test_case = int(input())
for i in range(test_case):
i_put = input()
count = len(i_put)
res = (count/100).__format__('.2f')
print(res)
if __name__ == '__main__':
math()
| def math():
test_case = int(input())
for i in range(test_case):
i_put = input()
count = len(i_put)
res = (count / 100).__format__('.2f')
print(res)
if __name__ == '__main__':
math() |
# Empty Box (2002016) | Treasure Room of Queen (926000010)
reactor.incHitCount()
reactor.increaseState()
if reactor.getHitCount() >= 4:
sm.removeReactor()
| reactor.incHitCount()
reactor.increaseState()
if reactor.getHitCount() >= 4:
sm.removeReactor() |
NONE_ENUM_INDEX = 0
ACTIVATE_ENUM_INDEX = 1
ABORT_ENUM_INDEX = 2
SUSPEND_ENUM_INDEX = 3
RESUME_ENUM_INDEX = 4
STOP_ENUM_INDEX = 5
TERMINATE_ENUM_INDEX = 6
REMOVE_ENUM_INDEX = 7
| none_enum_index = 0
activate_enum_index = 1
abort_enum_index = 2
suspend_enum_index = 3
resume_enum_index = 4
stop_enum_index = 5
terminate_enum_index = 6
remove_enum_index = 7 |
# -*- coding: utf-8 -*-
def goes_after(word: str, first: str, second: str) -> bool:
if first in word and second in word:
if word.index(second) - word.index(first) == 1:
result = True
else:
result = False
else:
result = False
return result
# another pattern
try:
return word.index(second)-word.index(first) == 1
except ValueError:
return False
if __name__ == '__main__':
print("Example:")
print(goes_after('world', 'w', 'o'))
# These "asserts" are used for self-checking and not for an auto-testing
assert goes_after('world', 'w', 'o') == True
assert goes_after('world', 'w', 'r') == False
assert goes_after('world', 'l', 'o') == False
assert goes_after('panorama', 'a', 'n') == True
assert goes_after('list', 'l', 'o') == False
assert goes_after('', 'l', 'o') == False
assert goes_after('list', 'l', 'l') == False
assert goes_after('world', 'd', 'w') == False
print("Coding complete? Click 'Check' to earn cool rewards!")
| def goes_after(word: str, first: str, second: str) -> bool:
if first in word and second in word:
if word.index(second) - word.index(first) == 1:
result = True
else:
result = False
else:
result = False
return result
try:
return word.index(second) - word.index(first) == 1
except ValueError:
return False
if __name__ == '__main__':
print('Example:')
print(goes_after('world', 'w', 'o'))
assert goes_after('world', 'w', 'o') == True
assert goes_after('world', 'w', 'r') == False
assert goes_after('world', 'l', 'o') == False
assert goes_after('panorama', 'a', 'n') == True
assert goes_after('list', 'l', 'o') == False
assert goes_after('', 'l', 'o') == False
assert goes_after('list', 'l', 'l') == False
assert goes_after('world', 'd', 'w') == False
print("Coding complete? Click 'Check' to earn cool rewards!") |
class Solution(object):
# Time Complexity: O(n)
# Space Complexity: O(1)
@staticmethod
def remove_element(nums, val):
size = len(nums)
j = size -1 # going backwards
i = 0
while i <= j:
if nums[i] == val:
if nums[j] != val:
nums[i] = nums[j]
j -= 1
i += 1
else:
j -= 1
else:
i += 1
return j+1
if __name__ == '__main__':
s = Solution()
val = 2
nums = [0, 1, 2, 2, 3, 0, 4, 2]
| class Solution(object):
@staticmethod
def remove_element(nums, val):
size = len(nums)
j = size - 1
i = 0
while i <= j:
if nums[i] == val:
if nums[j] != val:
nums[i] = nums[j]
j -= 1
i += 1
else:
j -= 1
else:
i += 1
return j + 1
if __name__ == '__main__':
s = solution()
val = 2
nums = [0, 1, 2, 2, 3, 0, 4, 2] |
def strongest(to_assign, pins_to_match, strength):
def matches(segment):
a,b = segment
return a == pins_to_match or b == pins_to_match
compatible_segments = [s for s in to_assign if matches(s)]
if(len(compatible_segments) == 0):
return strength
def next(segment):
a,b = segment
left_to_assign = [s for s in to_assign if s != segment]
next_pin = a if a != pins_to_match else b
return strongest(left_to_assign, next_pin, strength + a + b)
return max(map(next, compatible_segments))
def longest(to_assign, pins_to_match, strength, length):
def matches(segment):
a,b = segment
return a == pins_to_match or b == pins_to_match
compatible_segments = [s for s in to_assign if matches(s)]
if(len(compatible_segments) == 0):
return (strength, length)
def next(segment):
a,b = segment
left_to_assign = [s for s in to_assign if s != segment]
next_pin = a if a != pins_to_match else b
return longest(left_to_assign, next_pin, strength + a + b, length + 1)
max_strenght = 0
max_length = 0
for s, l in map(next, compatible_segments):
if l > max_length:
max_length = l
max_strenght = s
elif l == max_length:
max_strenght = max(max_strenght, s)
return (max_strenght, max_length)
def parse(line):
tokens = line.split("/")
return (int(tokens[0]), int(tokens[1]))
with open("input.txt") as f:
input = list(map(parse, f.readlines()))
print(strongest(input, 0, 0))
print(longest(input, 0, 0, 0))
| def strongest(to_assign, pins_to_match, strength):
def matches(segment):
(a, b) = segment
return a == pins_to_match or b == pins_to_match
compatible_segments = [s for s in to_assign if matches(s)]
if len(compatible_segments) == 0:
return strength
def next(segment):
(a, b) = segment
left_to_assign = [s for s in to_assign if s != segment]
next_pin = a if a != pins_to_match else b
return strongest(left_to_assign, next_pin, strength + a + b)
return max(map(next, compatible_segments))
def longest(to_assign, pins_to_match, strength, length):
def matches(segment):
(a, b) = segment
return a == pins_to_match or b == pins_to_match
compatible_segments = [s for s in to_assign if matches(s)]
if len(compatible_segments) == 0:
return (strength, length)
def next(segment):
(a, b) = segment
left_to_assign = [s for s in to_assign if s != segment]
next_pin = a if a != pins_to_match else b
return longest(left_to_assign, next_pin, strength + a + b, length + 1)
max_strenght = 0
max_length = 0
for (s, l) in map(next, compatible_segments):
if l > max_length:
max_length = l
max_strenght = s
elif l == max_length:
max_strenght = max(max_strenght, s)
return (max_strenght, max_length)
def parse(line):
tokens = line.split('/')
return (int(tokens[0]), int(tokens[1]))
with open('input.txt') as f:
input = list(map(parse, f.readlines()))
print(strongest(input, 0, 0))
print(longest(input, 0, 0, 0)) |
# API messages
MATCH_DOES_NOT_EXIST_ERROR = "Match does not exist"
MATCH_WAS_NOT_FOUND_ERROR = "Match was not found"
MORE_THAN_ONE_MATCH_FOUND_ERROR = "More than one match was found to be similar. Try to increase similarity threshold"
BET_DOES_NOT_EXIST_ERROR = "Bet does not exist" | match_does_not_exist_error = 'Match does not exist'
match_was_not_found_error = 'Match was not found'
more_than_one_match_found_error = 'More than one match was found to be similar. Try to increase similarity threshold'
bet_does_not_exist_error = 'Bet does not exist' |
all_attentions_list = []
for model_name, attentions4players in best_attentions_dict.items():
for player_id, attentions4player in attentions4players.items():
all_attentions_list = all_attentions_list + [attentions4player]#.reshape(15, 1)
# mean_att = np.mean(attention_sum_list_dict['30_300_16_32_2_1_3_prefinal'], axis=0)
mean_att = np.mean(all_attentions_list[::], axis=0)
index_order = np.argsort(mean_att)
mean_att = np.median(all_attentions_list[::], axis=0)
index_order = np.argsort(mean_att)
color_att = 'olivedrab'
color_att = 'olive'
color_att = 'darkslategrey'
color_att = 'darkcyan'
margin = 0.018
fontsize = 14
plt.close()
plt.figure(figsize=(8, 5))
y_ticks = list(range(len(index_order)))
plt.barh(y_ticks, mean_att[index_order], color=color_att)
plt.xlim((mean_att.min() - margin, mean_att.max() + margin * 0.7))
plt.yticks(y_ticks, np.array(features_pretty)[index_order], fontsize=fontsize)
plt.xlabel('Mean Attention', fontsize=fontsize+3)
plt.title('Feature Importance', fontsize=fontsize+6)
plt.tight_layout()
plt.savefig('pic/attention_importance_v0.png')
plt.interactive(True)
plt.barh(mean_att[index_order], np.array(features_pretty)[index_order])
# for time_step in [5, 10, 20, 30, 40, 60, 120]:
# command = f'python TimeseriesFinalPreprocessing.py --TIMESTEP {time_step}'
# os.system(command)
# print('Done')
#
| all_attentions_list = []
for (model_name, attentions4players) in best_attentions_dict.items():
for (player_id, attentions4player) in attentions4players.items():
all_attentions_list = all_attentions_list + [attentions4player]
mean_att = np.mean(all_attentions_list[:], axis=0)
index_order = np.argsort(mean_att)
mean_att = np.median(all_attentions_list[:], axis=0)
index_order = np.argsort(mean_att)
color_att = 'olivedrab'
color_att = 'olive'
color_att = 'darkslategrey'
color_att = 'darkcyan'
margin = 0.018
fontsize = 14
plt.close()
plt.figure(figsize=(8, 5))
y_ticks = list(range(len(index_order)))
plt.barh(y_ticks, mean_att[index_order], color=color_att)
plt.xlim((mean_att.min() - margin, mean_att.max() + margin * 0.7))
plt.yticks(y_ticks, np.array(features_pretty)[index_order], fontsize=fontsize)
plt.xlabel('Mean Attention', fontsize=fontsize + 3)
plt.title('Feature Importance', fontsize=fontsize + 6)
plt.tight_layout()
plt.savefig('pic/attention_importance_v0.png')
plt.interactive(True)
plt.barh(mean_att[index_order], np.array(features_pretty)[index_order]) |
def mult(x, y):
result_mult = 0
i = 0
while i < y: # Here I choose 'y' (witch is the base) to show how many times 'x' going to be sum with itself.
i += 1
result_mult += x
return result_mult
def expo():
base = int(input("Type a base: "))
expo = int(input("Type an exponent: "))
if base < 0 or 0 > expo:
print("Don't type any negative value, please try again.")
else:
result_expo = 1
if expo == 0: # If the exponent is equal 0 the result number going to be '1'.
print(f"{base} ^ {expo} = {result_expo}".format(base,expo,result_expo))
else:
i = 0
while i < expo:
i += 1
result_expo = mult(result_expo, base) # result_expo is being multiplied by the base, it's the same thing as ( result_expo * base )
print(f"{base} ^ {expo} = {result_expo}".format(base,expo,result_expo))
expo()
| def mult(x, y):
result_mult = 0
i = 0
while i < y:
i += 1
result_mult += x
return result_mult
def expo():
base = int(input('Type a base: '))
expo = int(input('Type an exponent: '))
if base < 0 or 0 > expo:
print("Don't type any negative value, please try again.")
else:
result_expo = 1
if expo == 0:
print(f'{base} ^ {expo} = {result_expo}'.format(base, expo, result_expo))
else:
i = 0
while i < expo:
i += 1
result_expo = mult(result_expo, base)
print(f'{base} ^ {expo} = {result_expo}'.format(base, expo, result_expo))
expo() |
def magicalWell(a, b, n):
total = 0
for i in range(n):
total += a * b
a += 1
b += 1
return total
| def magical_well(a, b, n):
total = 0
for i in range(n):
total += a * b
a += 1
b += 1
return total |
# n is not required in this program
# to meet the requirements of STDIN of hackerrank we are using n variable
def soln(a, scores):
scores = sorted(list(dict.fromkeys(scores)))
print(scores[-2])
if __name__ == "__main__":
n = int(input())
arr = map(int, input().split())
soln(n, arr)
| def soln(a, scores):
scores = sorted(list(dict.fromkeys(scores)))
print(scores[-2])
if __name__ == '__main__':
n = int(input())
arr = map(int, input().split())
soln(n, arr) |
# Copyright (c) 2020. Brendan Johnson. All Rights Reserved.
#import connect
#import config
class ReportTemplates:
def __init__(self, config, connection):
self._config=config
self._connection = connection
##EventBasedTasks
def list(self):
return self._connection.get(url='/reporttemplates')
def search(self, payload):
return self._connection.post(url='/reporttemplates/search', data=payload)
def describe(self, reportID):
return self._connection.get(url='/reporttemplates/{reportTemplateID}'.format(reportTemplateID=reportID))
| class Reporttemplates:
def __init__(self, config, connection):
self._config = config
self._connection = connection
def list(self):
return self._connection.get(url='/reporttemplates')
def search(self, payload):
return self._connection.post(url='/reporttemplates/search', data=payload)
def describe(self, reportID):
return self._connection.get(url='/reporttemplates/{reportTemplateID}'.format(reportTemplateID=reportID)) |
#!/usr/bin/env python
def clamp(low, x, high):
return low if x < low else high if x > high else x
def unwrap(txt):
return ' '.join(( s.strip() for s in txt.strip().splitlines() ))
| def clamp(low, x, high):
return low if x < low else high if x > high else x
def unwrap(txt):
return ' '.join((s.strip() for s in txt.strip().splitlines())) |
def get_detail(param: str, field: str, message: str, err: str):
detail = [
{
'loc': [
f'{param}', # ex. body
f'{field}' # ex. title
],
"msg": message, # ex. field required, not found
"type": f"{err}.missing" # ex. value_error
}
]
return detail
class InternalException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class NoSuchElementException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class InvalidArgumentException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class RequestConflictException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class ForbiddenException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class RequestInvalidException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message | def get_detail(param: str, field: str, message: str, err: str):
detail = [{'loc': [f'{param}', f'{field}'], 'msg': message, 'type': f'{err}.missing'}]
return detail
class Internalexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class Nosuchelementexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class Invalidargumentexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class Requestconflictexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class Forbiddenexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class Requestinvalidexception(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message |
#!/bin/python3
def poisonousPlants(p):
# Complete this function
survives = list()
survives.append(p[0])
dies = list()
num_plants = len(p)
p_killed = [0]*num_plants
killed_day = [0]*num_plants
for i in range(1,num_plants):
if(p[i] > p[i - 1]):
if(p_killed[i - 1] == 1):
if(survives[-1] < p[i] and dies[-1] < p[i]):
killed_day[i] = killed_day[i-1]
elif(survives[-1] < p[i] and dies[-1] > p[i]):
killed_day[i] = 1 + killed_day[i-1]
dies.append(p[i])
p_killed[i] = 1
else:
#survives.append(p[i])
dies.append(p[i])
p_killed[i] = 1
killed_day[i] = 1
elif(p[i] < p[i - 1]):
if(p_killed[i-1] == 1 and (p[i] > survives[-1] or p[i] > dies[-1])):
killed_day[i] = 1 + killed_day[i-1]
dies.append(p[i])
p_killed[i] = 1
else:
survives.append(p[i])
else:
if(p_killed[i-1] == 1):
p_killed[i] = 1
killed_day = killed_day[i-1]
dies.append(p[i])
else:
survives.append(p[i])
days = max(killed_day)
return days
if __name__ == "__main__":
n = int(input().strip())
p = list(map(int, input().strip().split(' ')))
result = poisonousPlants(p)
print(result) | def poisonous_plants(p):
survives = list()
survives.append(p[0])
dies = list()
num_plants = len(p)
p_killed = [0] * num_plants
killed_day = [0] * num_plants
for i in range(1, num_plants):
if p[i] > p[i - 1]:
if p_killed[i - 1] == 1:
if survives[-1] < p[i] and dies[-1] < p[i]:
killed_day[i] = killed_day[i - 1]
elif survives[-1] < p[i] and dies[-1] > p[i]:
killed_day[i] = 1 + killed_day[i - 1]
dies.append(p[i])
p_killed[i] = 1
else:
dies.append(p[i])
p_killed[i] = 1
killed_day[i] = 1
elif p[i] < p[i - 1]:
if p_killed[i - 1] == 1 and (p[i] > survives[-1] or p[i] > dies[-1]):
killed_day[i] = 1 + killed_day[i - 1]
dies.append(p[i])
p_killed[i] = 1
else:
survives.append(p[i])
elif p_killed[i - 1] == 1:
p_killed[i] = 1
killed_day = killed_day[i - 1]
dies.append(p[i])
else:
survives.append(p[i])
days = max(killed_day)
return days
if __name__ == '__main__':
n = int(input().strip())
p = list(map(int, input().strip().split(' ')))
result = poisonous_plants(p)
print(result) |
def least_rotation(s):
s += s
i, ans = 0, 0
while 2*i < len(s):
ans = i
j, k = i + 1, i
while (2*j < len(s)) and (s[k] <= s[j]):
if s[k] < s[j]:
k = i
else:
k += 1
j += 1
while i <= k:
i += j - k
return s[ans:ans + (len(s) // 2)]
| def least_rotation(s):
s += s
(i, ans) = (0, 0)
while 2 * i < len(s):
ans = i
(j, k) = (i + 1, i)
while 2 * j < len(s) and s[k] <= s[j]:
if s[k] < s[j]:
k = i
else:
k += 1
j += 1
while i <= k:
i += j - k
return s[ans:ans + len(s) // 2] |
'''
Title : Check Strict Superset
Subdomain : Sets
Domain : Python
Author : codeperfectplus
Created : 17 January 2020
'''
a = set(map(int, input().split()))
f = 0
for i in range(int(input())):
b = set(map(int, input().split()))
if len(b.difference(a)) != 0:
f = 1
else:
if len(b) == len(a):
f =1
if f == 0:
print('True')
else:
print('False') | """
Title : Check Strict Superset
Subdomain : Sets
Domain : Python
Author : codeperfectplus
Created : 17 January 2020
"""
a = set(map(int, input().split()))
f = 0
for i in range(int(input())):
b = set(map(int, input().split()))
if len(b.difference(a)) != 0:
f = 1
elif len(b) == len(a):
f = 1
if f == 0:
print('True')
else:
print('False') |
print("I will now count my chickens:") #presents the question
print("Hens", 25 + 30 / 6) #counts the Hens
print("Roosters", 100 - 25 * 3 % 4) #counts the Roosters
print("Now I will count the eggs:") #presents another question
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6) #counts the eggs
print("Is it true that 3 + 2 < 5 - 7?") #shows False bevcause this is False
print(3 + 2 < 5 - 7) #counts
print("What is 3 + 2?", 3 + 2) #counts
print("What is 5 - 7?", 5 - 7) #counts
print("Oh, that's why it's False.") #explains why false
print("How about some more.") #presents more
print("Is it greater?", 5 > -2) #shows true because this is true
print("Is it greater or equal?", 5 >= -2) #shows true because this is true
print("Is it less or equal?", 5 <= -2) #shows false because this is false
| print('I will now count my chickens:')
print('Hens', 25 + 30 / 6)
print('Roosters', 100 - 25 * 3 % 4)
print('Now I will count the eggs:')
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
print('Is it true that 3 + 2 < 5 - 7?')
print(3 + 2 < 5 - 7)
print('What is 3 + 2?', 3 + 2)
print('What is 5 - 7?', 5 - 7)
print("Oh, that's why it's False.")
print('How about some more.')
print('Is it greater?', 5 > -2)
print('Is it greater or equal?', 5 >= -2)
print('Is it less or equal?', 5 <= -2) |
n_lines = int(input("How many lines? "))
counter = 1
while n_lines >= counter:
print("This is line " + str(counter))
counter += 1
# print("This is line " + str(counter))
print()
input("Press return to continue ...")
| n_lines = int(input('How many lines? '))
counter = 1
while n_lines >= counter:
print('This is line ' + str(counter))
counter += 1
print()
input('Press return to continue ...') |
'''
Token class that will hold each encountered lexeme, its associated token type (e.g. TokenType.PLUS), the line number in the file where it was found as well as the actual literal value.
Note that the "literal" argument in most cases when we're creating Tokens will be empty. The only times we will care about the "literal" argument is when we need to extract the actual numeric or string value of our lexeme
'''
class Token:
def __init__(self, token_type, lexeme: str, line : int, literal=""):
self.token_type = token_type
self.lexeme = lexeme
self.line = line
self.literal = literal
def __str__(self):
return str(self.token_type.name + " " + self.lexeme + " " + str(self.literal))
| """
Token class that will hold each encountered lexeme, its associated token type (e.g. TokenType.PLUS), the line number in the file where it was found as well as the actual literal value.
Note that the "literal" argument in most cases when we're creating Tokens will be empty. The only times we will care about the "literal" argument is when we need to extract the actual numeric or string value of our lexeme
"""
class Token:
def __init__(self, token_type, lexeme: str, line: int, literal=''):
self.token_type = token_type
self.lexeme = lexeme
self.line = line
self.literal = literal
def __str__(self):
return str(self.token_type.name + ' ' + self.lexeme + ' ' + str(self.literal)) |
def lonelyinteger(nums):
for i in range(len(nums)):
if nums.count(nums[i]) == 1:
return nums[i]
if __name__ == '__main__':
a = input()
nums = map(int, raw_input().strip().split(" "))
print(lonelyinteger(nums))
| def lonelyinteger(nums):
for i in range(len(nums)):
if nums.count(nums[i]) == 1:
return nums[i]
if __name__ == '__main__':
a = input()
nums = map(int, raw_input().strip().split(' '))
print(lonelyinteger(nums)) |
bins_met_px = {"in": "MET_px", "out": "met_px", "bins": dict(nbins=10, low=0, high=100)}
bins_py = {"in": "Jet_Py", "out": "py_leadJet", "bins": dict(edges=[0, 20., 100.], overflow=True), "index": 0}
bins_nmuon = {"in": "NMuon", "out": "nmuon"}
weight_list = ["EventWeight"]
weight_dict = dict(weighted="EventWeight")
| bins_met_px = {'in': 'MET_px', 'out': 'met_px', 'bins': dict(nbins=10, low=0, high=100)}
bins_py = {'in': 'Jet_Py', 'out': 'py_leadJet', 'bins': dict(edges=[0, 20.0, 100.0], overflow=True), 'index': 0}
bins_nmuon = {'in': 'NMuon', 'out': 'nmuon'}
weight_list = ['EventWeight']
weight_dict = dict(weighted='EventWeight') |
mystr = 'TutorialsTeacher'
nums = [1,2,3,4,5,6,7,8,9,10]
portion1 = slice(9)
portion2 = slice(0, -2, None)
print('slice: ', portion1)
print('String value: ', mystr[portion1])
print('List value: ', nums[portion1])
print('slice: ', portion2)
print('String value: ', mystr[portion2])
print('List value: ', nums[portion2])
nums = [1,2,3,4,5,6,7,8,9,10]
odd_portion = slice(0, 10, 2)
print(nums[odd_portion])
even_portion = slice(1, 10, 2)
print(nums[even_portion]) | mystr = 'TutorialsTeacher'
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
portion1 = slice(9)
portion2 = slice(0, -2, None)
print('slice: ', portion1)
print('String value: ', mystr[portion1])
print('List value: ', nums[portion1])
print('slice: ', portion2)
print('String value: ', mystr[portion2])
print('List value: ', nums[portion2])
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
odd_portion = slice(0, 10, 2)
print(nums[odd_portion])
even_portion = slice(1, 10, 2)
print(nums[even_portion]) |
class Guardian:
@staticmethod
def adjust_difficulty(original_difficulty: int, block_height: int):
return original_difficulty // 1000
# TODO: decide on the parameters for mainnet
# if block_height < 1000:
# return original_difficulty // 1000
# if block_height < 10000:
# return original_difficulty // 100
# if block_height < 100000:
# return original_difficulty // 10
# return original_difficulty
| class Guardian:
@staticmethod
def adjust_difficulty(original_difficulty: int, block_height: int):
return original_difficulty // 1000 |
class RepresentMixin:
def __repr__(self):
return repr(self.to_dict())
def to_dict(self):
return {f: getattr(self, f) for f in self.non_empty_fields}
| class Representmixin:
def __repr__(self):
return repr(self.to_dict())
def to_dict(self):
return {f: getattr(self, f) for f in self.non_empty_fields} |
class Profile:
def __init__(self, name, age, xp, time_on_calls):
self.__name = name
self.__age = age
self.__xp = xp
self.__time_on_calls = time_on_calls
@property
def name(self):
return self.__name
@property
def age(self):
return self.__age
@property
def xp(self):
return self.__xp
@property
def level(self):
return self.__xp/1000
@property
def time_on_calls(self):
return self.__time_on_calls
| class Profile:
def __init__(self, name, age, xp, time_on_calls):
self.__name = name
self.__age = age
self.__xp = xp
self.__time_on_calls = time_on_calls
@property
def name(self):
return self.__name
@property
def age(self):
return self.__age
@property
def xp(self):
return self.__xp
@property
def level(self):
return self.__xp / 1000
@property
def time_on_calls(self):
return self.__time_on_calls |
class Solution:
def memLeak(self, memory1: int, memory2: int):
count = 1
while count <= memory1 or count <= memory2:
if memory1 < memory2:
memory2 -= count
else:
memory1 -= count
count += 1
return [count, memory1, memory2]
if __name__ == '__main__':
s = Solution()
r = s.memLeak(8,10)
print(r) | class Solution:
def mem_leak(self, memory1: int, memory2: int):
count = 1
while count <= memory1 or count <= memory2:
if memory1 < memory2:
memory2 -= count
else:
memory1 -= count
count += 1
return [count, memory1, memory2]
if __name__ == '__main__':
s = solution()
r = s.memLeak(8, 10)
print(r) |
def main():
# input
N, M = map(int, input().split())
As = list(map(int, input().split()))
Bs = list(map(int, input().split()))
# compute
numbers = [0] * (10**3+5)
for i in As:
numbers[i] += 1
for i in Bs:
numbers[i] += 1
anss = []
for i, figure in enumerate(numbers):
if figure == 1:
anss.append(i)
# output
print(*anss)
if __name__ == '__main__':
main()
| def main():
(n, m) = map(int, input().split())
as = list(map(int, input().split()))
bs = list(map(int, input().split()))
numbers = [0] * (10 ** 3 + 5)
for i in As:
numbers[i] += 1
for i in Bs:
numbers[i] += 1
anss = []
for (i, figure) in enumerate(numbers):
if figure == 1:
anss.append(i)
print(*anss)
if __name__ == '__main__':
main() |
# ELEVSTRS
for i in range(int(input())):
n,v1,v2=map(int,input().split())
time=[]
ele=2*n/v2
st=n*(2**(1/2))/v1
if(ele>st):print("Stairs")
else:print("Elevator") | for i in range(int(input())):
(n, v1, v2) = map(int, input().split())
time = []
ele = 2 * n / v2
st = n * 2 ** (1 / 2) / v1
if ele > st:
print('Stairs')
else:
print('Elevator') |
# The MIT License (MIT)
# Copyright (c) 2015 Brian Wray (brian@wrocket.org)
# 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 script generates the square/piece score tables. Basically, tables that
# describe the "goodness" of a particular piece being on a particular square.
def write_row(scores):
return '\t' + ', '.join([str(x).rjust(4) for x in scores]) + ','
def add_row_border(ordered_rows):
border = [0] * 12
side = [0] * 2
result = [border, border]
for r in ordered_rows:
result.append(side + r + side)
result.append(border)
result.append(border)
return result
def make_12x12(white_version_map, perspective='white'):
result = []
key_list = list(white_version_map.keys())
if perspective == 'black':
key_list = reversed(key_list)
for k in key_list:
result.append(white_version_map[k])
result = add_row_border(result)
return result
def write_array(name, whiteVersion):
white_name = 'SQ_SCORE_%s_WHITE' % name.upper()
black_name = 'SQ_SCORE_%s_BLACK' % name.upper()
lines = []
lines.append('const int %s[144] = {' % white_name)
for row in make_12x12(whiteVersion, perspective='white'):
lines.append(write_row(row))
lines.append('};')
lines.append('')
lines.append('const int %s[144] = {' % black_name)
for row in make_12x12(whiteVersion, perspective='black'):
lines.append(write_row(row))
lines.append('};')
print('\n'.join(lines))
white_pawn_opening_scores = {
8: [0, 0, 0, 0, 0, 0, 0, 0],
7: [0, 0, 0, 0, 0, 0, 0, 0],
6: [0, 0, 0, 0, 0, 0, 0, 0],
5: [0, 0, 0, 15, 15, 0, 0, 0],
4: [0, 0, 8, 15, 15, 8, 0, 0],
3: [0, 0, 10, 10, 10, 10, 0, 0],
2: [0, 0, -5, -5, -5, -5, 0, 0],
1: [0, 0, 0, 0, 0, 0, 0, 0]
}
write_array('PAWN_OPENING', white_pawn_opening_scores)
white_knight_opening_scores = {
8: [0, 0, 0, 0, 0, 0, 0, 0],
7: [0, 0, 0, 0, 0, 0, 0, 0],
6: [0, 0, 0, 0, 0, 0, 0, 0],
5: [0, 0, 0, 0, 0, 0, 0, 0],
4: [0, 0, 0, 0, 0, 0, 0, 0],
3: [-10, 0, 10, 0, 0, 10, 0, -10],
2: [-10, 0, 0, 5, 0, 5, 0, -10],
1: [-20, -5, 0, 0, 0, 0, -5, -20]
}
write_array('KNIGHT_OPENING', white_knight_opening_scores)
white_queen_opening_scores = {
8: [-10, -10, -10, -10, -10, -10, -10, -10],
7: [-10, -10, -10, -10, -10, -10, -10, -10],
6: [-10, -10, -10, -10, -10, -10, -10, -10],
5: [-10, -10, -10, -10, -10, -10, -10, -10],
4: [-10, -10, -10, -10, -10, -10, -10, -10],
3: [-10, -10, -10, -10, -10, -10, -10, -10],
2: [0, 0, 0, 0, 0, 0, 0, 0],
1: [0, 0, 0, 0, 0, 0, 0, 0],
}
write_array('QUEEN_OPENING', white_queen_opening_scores)
| def write_row(scores):
return '\t' + ', '.join([str(x).rjust(4) for x in scores]) + ','
def add_row_border(ordered_rows):
border = [0] * 12
side = [0] * 2
result = [border, border]
for r in ordered_rows:
result.append(side + r + side)
result.append(border)
result.append(border)
return result
def make_12x12(white_version_map, perspective='white'):
result = []
key_list = list(white_version_map.keys())
if perspective == 'black':
key_list = reversed(key_list)
for k in key_list:
result.append(white_version_map[k])
result = add_row_border(result)
return result
def write_array(name, whiteVersion):
white_name = 'SQ_SCORE_%s_WHITE' % name.upper()
black_name = 'SQ_SCORE_%s_BLACK' % name.upper()
lines = []
lines.append('const int %s[144] = {' % white_name)
for row in make_12x12(whiteVersion, perspective='white'):
lines.append(write_row(row))
lines.append('};')
lines.append('')
lines.append('const int %s[144] = {' % black_name)
for row in make_12x12(whiteVersion, perspective='black'):
lines.append(write_row(row))
lines.append('};')
print('\n'.join(lines))
white_pawn_opening_scores = {8: [0, 0, 0, 0, 0, 0, 0, 0], 7: [0, 0, 0, 0, 0, 0, 0, 0], 6: [0, 0, 0, 0, 0, 0, 0, 0], 5: [0, 0, 0, 15, 15, 0, 0, 0], 4: [0, 0, 8, 15, 15, 8, 0, 0], 3: [0, 0, 10, 10, 10, 10, 0, 0], 2: [0, 0, -5, -5, -5, -5, 0, 0], 1: [0, 0, 0, 0, 0, 0, 0, 0]}
write_array('PAWN_OPENING', white_pawn_opening_scores)
white_knight_opening_scores = {8: [0, 0, 0, 0, 0, 0, 0, 0], 7: [0, 0, 0, 0, 0, 0, 0, 0], 6: [0, 0, 0, 0, 0, 0, 0, 0], 5: [0, 0, 0, 0, 0, 0, 0, 0], 4: [0, 0, 0, 0, 0, 0, 0, 0], 3: [-10, 0, 10, 0, 0, 10, 0, -10], 2: [-10, 0, 0, 5, 0, 5, 0, -10], 1: [-20, -5, 0, 0, 0, 0, -5, -20]}
write_array('KNIGHT_OPENING', white_knight_opening_scores)
white_queen_opening_scores = {8: [-10, -10, -10, -10, -10, -10, -10, -10], 7: [-10, -10, -10, -10, -10, -10, -10, -10], 6: [-10, -10, -10, -10, -10, -10, -10, -10], 5: [-10, -10, -10, -10, -10, -10, -10, -10], 4: [-10, -10, -10, -10, -10, -10, -10, -10], 3: [-10, -10, -10, -10, -10, -10, -10, -10], 2: [0, 0, 0, 0, 0, 0, 0, 0], 1: [0, 0, 0, 0, 0, 0, 0, 0]}
write_array('QUEEN_OPENING', white_queen_opening_scores) |
#
# PySNMP MIB module CISCO-DYNAMIC-PORT-VSAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DYNAMIC-PORT-VSAN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:56:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint")
CpsmActivateResult, CpsmDiffDb, CpsmDbActivate, CpsmDiffReason = mibBuilder.importSymbols("CISCO-PSM-MIB", "CpsmActivateResult", "CpsmDiffDb", "CpsmDbActivate", "CpsmDiffReason")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
VsanIndex, FcNameIdOrZero, FcNameId = mibBuilder.importSymbols("CISCO-ST-TC", "VsanIndex", "FcNameIdOrZero", "FcNameId")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
TimeTicks, Counter32, Gauge32, MibIdentifier, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, iso, Counter64, ModuleIdentity, Bits, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Counter32", "Gauge32", "MibIdentifier", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "iso", "Counter64", "ModuleIdentity", "Bits", "Integer32", "NotificationType")
RowStatus, TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "DisplayString", "TruthValue")
ciscoDpvmMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 421))
ciscoDpvmMIB.setRevisions(('2004-06-22 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoDpvmMIB.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts: ciscoDpvmMIB.setLastUpdated('200406220000Z')
if mibBuilder.loadTexts: ciscoDpvmMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts: ciscoDpvmMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-san@cisco.com')
if mibBuilder.loadTexts: ciscoDpvmMIB.setDescription('The MIB module for the management of the Dynamic Port Vsan Membership (DPVM) module. DPVM provides the ability to assign (virtual storage area network) VSAN IDs dynamically to switch ports based on the device logging in on the port. The logging-in device can be identified by its port World Wide Name (pWWN) and/or its node World Wide Name (nWWN).')
ciscoDpvmMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 0))
ciscoDpvmMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 1))
ciscoDpvmMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2))
cdpvmConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1))
class CdpvmDevType(TextualConvention, Integer32):
description = 'Represents the type of device. pwwn(1) - Represents the port WWN of the device. nwwn(2) - Represents the node WWN of the device.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("pwwn", 1), ("nwwn", 2))
cdpvmNextAvailIndex = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 16384))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmNextAvailIndex.setStatus('current')
if mibBuilder.loadTexts: cdpvmNextAvailIndex.setDescription('This object contains an appropriate value to be used for cdpvmIndex when creating entries in the cdpvmTable. The value 0 indicates that all entries are assigned. A management application should read this object, get the (non-zero) value and use same for creating an entry in the cdpvmTable. After each retrieval and use, the agent should modify the value to the next unassigned index. After a manager retrieves a value the agent will determine through its local policy when this index value will be made available for reuse. A suggested mechanism is to make an index available when the corresponding entry is deleted.')
cdpvmTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2), )
if mibBuilder.loadTexts: cdpvmTable.setStatus('current')
if mibBuilder.loadTexts: cdpvmTable.setDescription("This table contains the set of all valid bindings of devices to VSANs configured on the local device. A valid binding consists of a pWWN/nWWN bound to a VSAN. If a device is bound to a VSAN, then when that device logs in through a port on the local device, that port is assigned the configured VSAN. Such a VSAN is called a 'dynamic' VSAN. The set of valid bindings configured in this table should be activated by means of the cdpvmActivate object. When activated, these bindings are enforced and all subsequent logins will be subject to these bindings.")
cdpvmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmIndex"))
if mibBuilder.loadTexts: cdpvmEntry.setStatus('current')
if mibBuilder.loadTexts: cdpvmEntry.setDescription('An entry (conceptual row) in this table. Each entry contains the mapping between a device and its dynamic VSAN.')
cdpvmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 16384)))
if mibBuilder.loadTexts: cdpvmIndex.setStatus('current')
if mibBuilder.loadTexts: cdpvmIndex.setDescription('Identifies a binding between a device and its dynamic VSAN.')
cdpvmLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 2), CdpvmDevType().clone('pwwn')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cdpvmLoginDevType.setStatus('current')
if mibBuilder.loadTexts: cdpvmLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmLoginDev object.')
cdpvmLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 3), FcNameId()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cdpvmLoginDev.setStatus('current')
if mibBuilder.loadTexts: cdpvmLoginDev.setDescription("Represents the logging-in device. If the value of the corresponding instance of cdpvmLoginDevType is 'pwwn', then this object contains a pWWN. If the value of the corresponding instance of cdpvmLoginDevType is 'nwwn', then this object contains a nWWN. This object MUST be set to a valid value before or concurrently with setting the corresponding instance of cdpvmRowStatus to 'active'. The agent should not allow creation of 2 entries in this table with same values for cdpvmLoginDev and cdpvmLoginDevVsan.")
cdpvmLoginDevVsan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 4), VsanIndex().clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cdpvmLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts: cdpvmLoginDevVsan.setDescription('Represents the VSAN to be associated to the port on the local device on which the device represented by cdpvmLoginDev logs in.')
cdpvmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cdpvmRowStatus.setStatus('current')
if mibBuilder.loadTexts: cdpvmRowStatus.setDescription("The status of this conceptual row. Before setting this object to 'active', the cdpvmLoginDev object MUST be set to a valid value. Only cdpvmLoginDevVsan object can be modified when the value of this object is 'active'.")
cdpvmActivate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 3), CpsmDbActivate()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmActivate.setStatus('current')
if mibBuilder.loadTexts: cdpvmActivate.setDescription("This object helps in activating the set of bindings in the cdpvmTable. Setting this object to 'activate(1)' will result in the valid bindings present in cdpvmTable being activated and copied to the cpdvmEnfTable. By default auto learn will be turned 'on' after activation. Before activation is attempted, it should be turned 'off'. Setting this object to 'forceActivate(3)', will result in forced activation, even if there are errors during activation and the activated bindings will be copied to the cdpvmEnfTable. Setting this object to 'deactivate(5)', will result in deactivation of currently activated valid bindings (if any). Currently active entries (if any), which would have been present in the cdpvmEnfTable, will be removed. Setting this object to 'activateWithAutoLearnOff(2)' and 'forceActivateWithAutoLearnOff(4)' is not allowed. Setting this object to 'noop(6)', results in no action. The value of this object when read is always 'noop(6)'. Activation will not be allowed if auto-learn is enabled.")
cdpvmActivateResult = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 4), CpsmActivateResult()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmActivateResult.setStatus('current')
if mibBuilder.loadTexts: cdpvmActivateResult.setDescription('This object indicates the outcome of the activation.')
cdpvmAutoLearn = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmAutoLearn.setStatus('current')
if mibBuilder.loadTexts: cdpvmAutoLearn.setDescription("This object helps to 'learn' the configuration of devices logged into the local device on all its ports and the VSANs to which they are associated. This information will be populated in the the enforced binding table (cdpvmEnfTable). This mechanism of 'learning' the configuration of devices and their VSAN association over a period of time and populating the configuration is a convenience mechanism for users. If this object is set to 'true(1)' all subsequent logins and their VSAN association will be populated in the enforced binding database, provided it is not in conflict with existing enforced bindings. When this object is set to 'false(2)', the mechanism of learning is stopped. The learned entries will however be in the enforced binding database.")
cdpvmCopyEnfToConfig = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("copy", 1), ("noop", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmCopyEnfToConfig.setStatus('current')
if mibBuilder.loadTexts: cdpvmCopyEnfToConfig.setDescription("This object when set to 'copy(1)', results in the active (enforced) binding database to be copied on to the configuration binding database. Note that the learned entries are also copied. No action is taken if this object is set to 'noop(2)'. The value of this object when read is always 'noop'.")
cdpvmEnfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7), )
if mibBuilder.loadTexts: cdpvmEnfTable.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfTable.setDescription('This table contains information on all currently enforced bindings on the local device. The enforced set of bindings is the set of valid bindings copied from the configuration binding database (cdpvmTable) at the time they were activated. These entries cannot be modified. The learnt entries are also a part of this table. Entries can get into this table or be deleted from this table only by means of explicit activation/deactivation. Note that this table will be empty when no valid bindings have been activated.')
cdpvmEnfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1), ).setIndexNames((0, "CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmEnfIndex"))
if mibBuilder.loadTexts: cdpvmEnfEntry.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfEntry.setDescription('An entry (conceptual row) in this table.')
cdpvmEnfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 16384)))
if mibBuilder.loadTexts: cdpvmEnfIndex.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfIndex.setDescription('The index of this entry.')
cdpvmEnfLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 2), CdpvmDevType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmEnfLoginDevType.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmEnfLoginDev.')
cdpvmEnfLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 3), FcNameId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmEnfLoginDev.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfLoginDev.setDescription('This object represents the logging in device address. This object was copied from the cdpvmLoginDev object in the cdpvmTable at the time when the currently active bindings were activated.')
cdpvmEnfLoginDevVsan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 4), VsanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmEnfLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfLoginDevVsan.setDescription("This object represents the VSAN of the port on the local device thru' which the device represented by cdpvmEnfLoginDev logs in. This object was copied from the cdpvmLoginDevVsan object in the cdpvmTable at the time when the currently active bindings were activated")
cdpvmEnfIsLearnt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmEnfIsLearnt.setStatus('current')
if mibBuilder.loadTexts: cdpvmEnfIsLearnt.setDescription("This object indicates if this is a learnt entry or not. If the value of this object is 'true', then it is a learnt entry. If the value of this object is 'false', then it is not.")
cdpvmDynPortsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8), )
if mibBuilder.loadTexts: cdpvmDynPortsTable.setStatus('current')
if mibBuilder.loadTexts: cdpvmDynPortsTable.setDescription('This table contains the set of all ports that are operating with a dynamic VSAN on the local device.')
cdpvmDynPortsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: cdpvmDynPortsEntry.setStatus('current')
if mibBuilder.loadTexts: cdpvmDynPortsEntry.setDescription('An entry (conceptual row) in this table.')
cdpvmDynPortVsan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 1), VsanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDynPortVsan.setStatus('current')
if mibBuilder.loadTexts: cdpvmDynPortVsan.setDescription("The 'dynamic' VSAN of this port on the local device.")
cdpvmDynPortDevPwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 2), FcNameId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDynPortDevPwwn.setStatus('current')
if mibBuilder.loadTexts: cdpvmDynPortDevPwwn.setDescription('The pWWN of the device currently logged-in through this port on the local device.')
cdpvmDynPortDevNwwn = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 3), FcNameId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDynPortDevNwwn.setStatus('current')
if mibBuilder.loadTexts: cdpvmDynPortDevNwwn.setDescription("The nWWN of the device currently logged-in thru' this port on the local device.")
cdpvmDiffConfig = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 9), CpsmDiffDb()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmDiffConfig.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffConfig.setDescription("The config database represented by cdpvmTable and the enforced database represented by cdpvmEnfTable can be compared to list out the differences. This object specifies the reference database for the comparison. This object when set to 'configDb(1)', compares the configuration database (cdpvmTable) with respect to the enforced database (cdpvmEnfTable). So, the enforced database will be the reference database and the results of comparison operation will be with respect to the enforced database. This object when set to 'activeDb(2)', compares the enforced database with respect to the configuration database. So, the configured database will be the reference database and the results of comparison operation will be with respect to the configuration database. No action will be taken if this object is set to 'noop(3)'. The value of this object when read is always 'noop(3)'.")
cdpvmDiffTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10), )
if mibBuilder.loadTexts: cdpvmDiffTable.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffTable.setDescription('This table contains the result of the compare operation configured by means of the cdpvmDiffConfig object.')
cdpvmDiffEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1), ).setIndexNames((0, "CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffIndex"))
if mibBuilder.loadTexts: cdpvmDiffEntry.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffEntry.setDescription('An entry (conceptual row) in this table.')
cdpvmDiffIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 16384)))
if mibBuilder.loadTexts: cdpvmDiffIndex.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffIndex.setDescription('The index of this entry.')
cdpvmDiffReason = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 2), CpsmDiffReason()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDiffReason.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffReason.setDescription('This object indicates the reason for the difference between the databases being compared, for this entry.')
cdpvmDiffLoginDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 3), CdpvmDevType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDiffLoginDevType.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmDiffLoginDev object.')
cdpvmDiffLoginDev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 4), FcNameId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDiffLoginDev.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffLoginDev.setDescription('This object represents the logging-in device address. This object was copied from either the cdpvmLoginDev object in the cdpvmTable or from cdpvmEnfLoginDev object in the cdpvmEnfTable at the time when the comparison was done.')
cdpvmDiffLoginDevVsan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 5), VsanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmDiffLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts: cdpvmDiffLoginDevVsan.setDescription("This object represents the VSAN of the port on the local device thru' which the device represented by the corresponding instance of cdpvmDiffLoginDev object, logged-in. It was copied from either the cdpvmLoginDevVsan object in the cdpvmTable or from cdpvmEnfLoginDevVsan object in the cdpvmEnfTable at the time when the comparison was done.")
cdpvmClearAutoLearn = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("clear", 1), ("clearOnWwn", 2), ("noop", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmClearAutoLearn.setStatus('current')
if mibBuilder.loadTexts: cdpvmClearAutoLearn.setDescription("This object assists in clearing the auto-learnt entries. Setting this object to 'clear(1)' will result in all auto-learnt entries being cleared. Setting this object to 'clearOnWwn(2)' will result in a particular entry represented by cdpvmClearAutoLearnWwn object being cleared. Before setting this object to 'clearOnWwn(2)', the cpdvmClearAutoLearnWwn object should be set to the pWWN that is to be cleared. Setting this object to 'noop(3)', will result in no action being taken. The value of this object when read is always 'noop'.")
cdpvmClearAutoLearnWwn = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 12), FcNameIdOrZero().clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cdpvmClearAutoLearnWwn.setStatus('current')
if mibBuilder.loadTexts: cdpvmClearAutoLearnWwn.setDescription('Represents the port WWN (pWWN) to be used for clearing its corresponding auto-learnt entry.')
cdpvmActivationState = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 13), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cdpvmActivationState.setStatus('current')
if mibBuilder.loadTexts: cdpvmActivationState.setDescription("This object indicates the state of activation. If the value of this object is 'true', then an activation has been attempted as the most recent operation. If the value of this object is 'false', then an activation has not been attempted as the most recent operation.")
ciscoDpvmMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 1))
ciscoDpvmMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2))
ciscoDpvmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 1, 1)).setObjects(("CISCO-DYNAMIC-PORT-VSAN-MIB", "ciscoDpvmConfigGroup"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "ciscoDpvmEnforcedGroup"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "ciscoDpvmAutoLearnGroup"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "ciscoDpvmDiffGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoDpvmMIBCompliance = ciscoDpvmMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: ciscoDpvmMIBCompliance.setDescription('The compliance statement for entities which implement the Dynamic Port VSAN Membership Manager.')
ciscoDpvmConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 1)).setObjects(("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmNextAvailIndex"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmLoginDevType"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmLoginDev"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmLoginDevVsan"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmRowStatus"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmActivate"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmActivateResult"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmCopyEnfToConfig"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDynPortVsan"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDynPortDevPwwn"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDynPortDevNwwn"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmActivationState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoDpvmConfigGroup = ciscoDpvmConfigGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoDpvmConfigGroup.setDescription('A set of objects for configuration of DPVM bindings.')
ciscoDpvmEnforcedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 2)).setObjects(("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmEnfLoginDevType"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmEnfLoginDev"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmEnfLoginDevVsan"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmEnfIsLearnt"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoDpvmEnforcedGroup = ciscoDpvmEnforcedGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoDpvmEnforcedGroup.setDescription('A set of objects for displaying enforced DPVM bindings.')
ciscoDpvmAutoLearnGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 3)).setObjects(("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmAutoLearn"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmClearAutoLearn"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmClearAutoLearnWwn"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoDpvmAutoLearnGroup = ciscoDpvmAutoLearnGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoDpvmAutoLearnGroup.setDescription('A set of object(s) for configuring auto-learn of DPVM bindings.')
ciscoDpvmDiffGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 4)).setObjects(("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffConfig"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffReason"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffLoginDevType"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffLoginDev"), ("CISCO-DYNAMIC-PORT-VSAN-MIB", "cdpvmDiffLoginDevVsan"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoDpvmDiffGroup = ciscoDpvmDiffGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoDpvmDiffGroup.setDescription('A set of objects for configuring and displaying database compare operations.')
mibBuilder.exportSymbols("CISCO-DYNAMIC-PORT-VSAN-MIB", cdpvmDynPortDevPwwn=cdpvmDynPortDevPwwn, cdpvmTable=cdpvmTable, ciscoDpvmMIBCompliance=ciscoDpvmMIBCompliance, cdpvmNextAvailIndex=cdpvmNextAvailIndex, cdpvmDynPortsTable=cdpvmDynPortsTable, cdpvmDiffTable=cdpvmDiffTable, ciscoDpvmMIBObjects=ciscoDpvmMIBObjects, cdpvmDiffLoginDev=cdpvmDiffLoginDev, cdpvmLoginDev=cdpvmLoginDev, ciscoDpvmMIBCompliances=ciscoDpvmMIBCompliances, cdpvmDynPortDevNwwn=cdpvmDynPortDevNwwn, cdpvmLoginDevType=cdpvmLoginDevType, cdpvmDiffIndex=cdpvmDiffIndex, cdpvmDiffConfig=cdpvmDiffConfig, ciscoDpvmMIBNotifs=ciscoDpvmMIBNotifs, cdpvmCopyEnfToConfig=cdpvmCopyEnfToConfig, cdpvmActivate=cdpvmActivate, cdpvmActivateResult=cdpvmActivateResult, PYSNMP_MODULE_ID=ciscoDpvmMIB, cdpvmDiffLoginDevType=cdpvmDiffLoginDevType, cdpvmEntry=cdpvmEntry, cdpvmClearAutoLearnWwn=cdpvmClearAutoLearnWwn, cdpvmLoginDevVsan=cdpvmLoginDevVsan, cdpvmEnfEntry=cdpvmEnfEntry, ciscoDpvmMIB=ciscoDpvmMIB, cdpvmEnfLoginDevType=cdpvmEnfLoginDevType, cdpvmAutoLearn=cdpvmAutoLearn, cdpvmEnfLoginDevVsan=cdpvmEnfLoginDevVsan, ciscoDpvmDiffGroup=ciscoDpvmDiffGroup, cdpvmRowStatus=cdpvmRowStatus, cdpvmDiffEntry=cdpvmDiffEntry, cdpvmEnfIsLearnt=cdpvmEnfIsLearnt, ciscoDpvmMIBConform=ciscoDpvmMIBConform, cdpvmDynPortsEntry=cdpvmDynPortsEntry, cdpvmEnfLoginDev=cdpvmEnfLoginDev, cdpvmClearAutoLearn=cdpvmClearAutoLearn, ciscoDpvmEnforcedGroup=ciscoDpvmEnforcedGroup, ciscoDpvmMIBGroups=ciscoDpvmMIBGroups, cdpvmDiffReason=cdpvmDiffReason, cdpvmEnfIndex=cdpvmEnfIndex, cdpvmDiffLoginDevVsan=cdpvmDiffLoginDevVsan, ciscoDpvmAutoLearnGroup=ciscoDpvmAutoLearnGroup, cdpvmConfiguration=cdpvmConfiguration, ciscoDpvmConfigGroup=ciscoDpvmConfigGroup, cdpvmDynPortVsan=cdpvmDynPortVsan, CdpvmDevType=CdpvmDevType, cdpvmActivationState=cdpvmActivationState, cdpvmEnfTable=cdpvmEnfTable, cdpvmIndex=cdpvmIndex)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint')
(cpsm_activate_result, cpsm_diff_db, cpsm_db_activate, cpsm_diff_reason) = mibBuilder.importSymbols('CISCO-PSM-MIB', 'CpsmActivateResult', 'CpsmDiffDb', 'CpsmDbActivate', 'CpsmDiffReason')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(vsan_index, fc_name_id_or_zero, fc_name_id) = mibBuilder.importSymbols('CISCO-ST-TC', 'VsanIndex', 'FcNameIdOrZero', 'FcNameId')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup')
(time_ticks, counter32, gauge32, mib_identifier, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, unsigned32, iso, counter64, module_identity, bits, integer32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Counter32', 'Gauge32', 'MibIdentifier', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Unsigned32', 'iso', 'Counter64', 'ModuleIdentity', 'Bits', 'Integer32', 'NotificationType')
(row_status, textual_convention, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TextualConvention', 'DisplayString', 'TruthValue')
cisco_dpvm_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 421))
ciscoDpvmMIB.setRevisions(('2004-06-22 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoDpvmMIB.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts:
ciscoDpvmMIB.setLastUpdated('200406220000Z')
if mibBuilder.loadTexts:
ciscoDpvmMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts:
ciscoDpvmMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-san@cisco.com')
if mibBuilder.loadTexts:
ciscoDpvmMIB.setDescription('The MIB module for the management of the Dynamic Port Vsan Membership (DPVM) module. DPVM provides the ability to assign (virtual storage area network) VSAN IDs dynamically to switch ports based on the device logging in on the port. The logging-in device can be identified by its port World Wide Name (pWWN) and/or its node World Wide Name (nWWN).')
cisco_dpvm_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 0))
cisco_dpvm_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 1))
cisco_dpvm_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2))
cdpvm_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1))
class Cdpvmdevtype(TextualConvention, Integer32):
description = 'Represents the type of device. pwwn(1) - Represents the port WWN of the device. nwwn(2) - Represents the node WWN of the device.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('pwwn', 1), ('nwwn', 2))
cdpvm_next_avail_index = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 16384))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmNextAvailIndex.setStatus('current')
if mibBuilder.loadTexts:
cdpvmNextAvailIndex.setDescription('This object contains an appropriate value to be used for cdpvmIndex when creating entries in the cdpvmTable. The value 0 indicates that all entries are assigned. A management application should read this object, get the (non-zero) value and use same for creating an entry in the cdpvmTable. After each retrieval and use, the agent should modify the value to the next unassigned index. After a manager retrieves a value the agent will determine through its local policy when this index value will be made available for reuse. A suggested mechanism is to make an index available when the corresponding entry is deleted.')
cdpvm_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2))
if mibBuilder.loadTexts:
cdpvmTable.setStatus('current')
if mibBuilder.loadTexts:
cdpvmTable.setDescription("This table contains the set of all valid bindings of devices to VSANs configured on the local device. A valid binding consists of a pWWN/nWWN bound to a VSAN. If a device is bound to a VSAN, then when that device logs in through a port on the local device, that port is assigned the configured VSAN. Such a VSAN is called a 'dynamic' VSAN. The set of valid bindings configured in this table should be activated by means of the cdpvmActivate object. When activated, these bindings are enforced and all subsequent logins will be subject to these bindings.")
cdpvm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmIndex'))
if mibBuilder.loadTexts:
cdpvmEntry.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEntry.setDescription('An entry (conceptual row) in this table. Each entry contains the mapping between a device and its dynamic VSAN.')
cdpvm_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 16384)))
if mibBuilder.loadTexts:
cdpvmIndex.setStatus('current')
if mibBuilder.loadTexts:
cdpvmIndex.setDescription('Identifies a binding between a device and its dynamic VSAN.')
cdpvm_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 2), cdpvm_dev_type().clone('pwwn')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cdpvmLoginDevType.setStatus('current')
if mibBuilder.loadTexts:
cdpvmLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmLoginDev object.')
cdpvm_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 3), fc_name_id()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cdpvmLoginDev.setStatus('current')
if mibBuilder.loadTexts:
cdpvmLoginDev.setDescription("Represents the logging-in device. If the value of the corresponding instance of cdpvmLoginDevType is 'pwwn', then this object contains a pWWN. If the value of the corresponding instance of cdpvmLoginDevType is 'nwwn', then this object contains a nWWN. This object MUST be set to a valid value before or concurrently with setting the corresponding instance of cdpvmRowStatus to 'active'. The agent should not allow creation of 2 entries in this table with same values for cdpvmLoginDev and cdpvmLoginDevVsan.")
cdpvm_login_dev_vsan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 4), vsan_index().clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cdpvmLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts:
cdpvmLoginDevVsan.setDescription('Represents the VSAN to be associated to the port on the local device on which the device represented by cdpvmLoginDev logs in.')
cdpvm_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 2, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cdpvmRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cdpvmRowStatus.setDescription("The status of this conceptual row. Before setting this object to 'active', the cdpvmLoginDev object MUST be set to a valid value. Only cdpvmLoginDevVsan object can be modified when the value of this object is 'active'.")
cdpvm_activate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 3), cpsm_db_activate()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmActivate.setStatus('current')
if mibBuilder.loadTexts:
cdpvmActivate.setDescription("This object helps in activating the set of bindings in the cdpvmTable. Setting this object to 'activate(1)' will result in the valid bindings present in cdpvmTable being activated and copied to the cpdvmEnfTable. By default auto learn will be turned 'on' after activation. Before activation is attempted, it should be turned 'off'. Setting this object to 'forceActivate(3)', will result in forced activation, even if there are errors during activation and the activated bindings will be copied to the cdpvmEnfTable. Setting this object to 'deactivate(5)', will result in deactivation of currently activated valid bindings (if any). Currently active entries (if any), which would have been present in the cdpvmEnfTable, will be removed. Setting this object to 'activateWithAutoLearnOff(2)' and 'forceActivateWithAutoLearnOff(4)' is not allowed. Setting this object to 'noop(6)', results in no action. The value of this object when read is always 'noop(6)'. Activation will not be allowed if auto-learn is enabled.")
cdpvm_activate_result = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 4), cpsm_activate_result()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmActivateResult.setStatus('current')
if mibBuilder.loadTexts:
cdpvmActivateResult.setDescription('This object indicates the outcome of the activation.')
cdpvm_auto_learn = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmAutoLearn.setStatus('current')
if mibBuilder.loadTexts:
cdpvmAutoLearn.setDescription("This object helps to 'learn' the configuration of devices logged into the local device on all its ports and the VSANs to which they are associated. This information will be populated in the the enforced binding table (cdpvmEnfTable). This mechanism of 'learning' the configuration of devices and their VSAN association over a period of time and populating the configuration is a convenience mechanism for users. If this object is set to 'true(1)' all subsequent logins and their VSAN association will be populated in the enforced binding database, provided it is not in conflict with existing enforced bindings. When this object is set to 'false(2)', the mechanism of learning is stopped. The learned entries will however be in the enforced binding database.")
cdpvm_copy_enf_to_config = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('copy', 1), ('noop', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmCopyEnfToConfig.setStatus('current')
if mibBuilder.loadTexts:
cdpvmCopyEnfToConfig.setDescription("This object when set to 'copy(1)', results in the active (enforced) binding database to be copied on to the configuration binding database. Note that the learned entries are also copied. No action is taken if this object is set to 'noop(2)'. The value of this object when read is always 'noop'.")
cdpvm_enf_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7))
if mibBuilder.loadTexts:
cdpvmEnfTable.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfTable.setDescription('This table contains information on all currently enforced bindings on the local device. The enforced set of bindings is the set of valid bindings copied from the configuration binding database (cdpvmTable) at the time they were activated. These entries cannot be modified. The learnt entries are also a part of this table. Entries can get into this table or be deleted from this table only by means of explicit activation/deactivation. Note that this table will be empty when no valid bindings have been activated.')
cdpvm_enf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1)).setIndexNames((0, 'CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmEnfIndex'))
if mibBuilder.loadTexts:
cdpvmEnfEntry.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfEntry.setDescription('An entry (conceptual row) in this table.')
cdpvm_enf_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 16384)))
if mibBuilder.loadTexts:
cdpvmEnfIndex.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfIndex.setDescription('The index of this entry.')
cdpvm_enf_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 2), cdpvm_dev_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmEnfLoginDevType.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmEnfLoginDev.')
cdpvm_enf_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 3), fc_name_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmEnfLoginDev.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfLoginDev.setDescription('This object represents the logging in device address. This object was copied from the cdpvmLoginDev object in the cdpvmTable at the time when the currently active bindings were activated.')
cdpvm_enf_login_dev_vsan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 4), vsan_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmEnfLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfLoginDevVsan.setDescription("This object represents the VSAN of the port on the local device thru' which the device represented by cdpvmEnfLoginDev logs in. This object was copied from the cdpvmLoginDevVsan object in the cdpvmTable at the time when the currently active bindings were activated")
cdpvm_enf_is_learnt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 7, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmEnfIsLearnt.setStatus('current')
if mibBuilder.loadTexts:
cdpvmEnfIsLearnt.setDescription("This object indicates if this is a learnt entry or not. If the value of this object is 'true', then it is a learnt entry. If the value of this object is 'false', then it is not.")
cdpvm_dyn_ports_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8))
if mibBuilder.loadTexts:
cdpvmDynPortsTable.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDynPortsTable.setDescription('This table contains the set of all ports that are operating with a dynamic VSAN on the local device.')
cdpvm_dyn_ports_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
cdpvmDynPortsEntry.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDynPortsEntry.setDescription('An entry (conceptual row) in this table.')
cdpvm_dyn_port_vsan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 1), vsan_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDynPortVsan.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDynPortVsan.setDescription("The 'dynamic' VSAN of this port on the local device.")
cdpvm_dyn_port_dev_pwwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 2), fc_name_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDynPortDevPwwn.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDynPortDevPwwn.setDescription('The pWWN of the device currently logged-in through this port on the local device.')
cdpvm_dyn_port_dev_nwwn = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 8, 1, 3), fc_name_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDynPortDevNwwn.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDynPortDevNwwn.setDescription("The nWWN of the device currently logged-in thru' this port on the local device.")
cdpvm_diff_config = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 9), cpsm_diff_db()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmDiffConfig.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffConfig.setDescription("The config database represented by cdpvmTable and the enforced database represented by cdpvmEnfTable can be compared to list out the differences. This object specifies the reference database for the comparison. This object when set to 'configDb(1)', compares the configuration database (cdpvmTable) with respect to the enforced database (cdpvmEnfTable). So, the enforced database will be the reference database and the results of comparison operation will be with respect to the enforced database. This object when set to 'activeDb(2)', compares the enforced database with respect to the configuration database. So, the configured database will be the reference database and the results of comparison operation will be with respect to the configuration database. No action will be taken if this object is set to 'noop(3)'. The value of this object when read is always 'noop(3)'.")
cdpvm_diff_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10))
if mibBuilder.loadTexts:
cdpvmDiffTable.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffTable.setDescription('This table contains the result of the compare operation configured by means of the cdpvmDiffConfig object.')
cdpvm_diff_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1)).setIndexNames((0, 'CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffIndex'))
if mibBuilder.loadTexts:
cdpvmDiffEntry.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffEntry.setDescription('An entry (conceptual row) in this table.')
cdpvm_diff_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 16384)))
if mibBuilder.loadTexts:
cdpvmDiffIndex.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffIndex.setDescription('The index of this entry.')
cdpvm_diff_reason = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 2), cpsm_diff_reason()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDiffReason.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffReason.setDescription('This object indicates the reason for the difference between the databases being compared, for this entry.')
cdpvm_diff_login_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 3), cdpvm_dev_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDiffLoginDevType.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffLoginDevType.setDescription('Specifies the type of the corresponding instance of cdpvmDiffLoginDev object.')
cdpvm_diff_login_dev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 4), fc_name_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDiffLoginDev.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffLoginDev.setDescription('This object represents the logging-in device address. This object was copied from either the cdpvmLoginDev object in the cdpvmTable or from cdpvmEnfLoginDev object in the cdpvmEnfTable at the time when the comparison was done.')
cdpvm_diff_login_dev_vsan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 10, 1, 5), vsan_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmDiffLoginDevVsan.setStatus('current')
if mibBuilder.loadTexts:
cdpvmDiffLoginDevVsan.setDescription("This object represents the VSAN of the port on the local device thru' which the device represented by the corresponding instance of cdpvmDiffLoginDev object, logged-in. It was copied from either the cdpvmLoginDevVsan object in the cdpvmTable or from cdpvmEnfLoginDevVsan object in the cdpvmEnfTable at the time when the comparison was done.")
cdpvm_clear_auto_learn = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('clear', 1), ('clearOnWwn', 2), ('noop', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmClearAutoLearn.setStatus('current')
if mibBuilder.loadTexts:
cdpvmClearAutoLearn.setDescription("This object assists in clearing the auto-learnt entries. Setting this object to 'clear(1)' will result in all auto-learnt entries being cleared. Setting this object to 'clearOnWwn(2)' will result in a particular entry represented by cdpvmClearAutoLearnWwn object being cleared. Before setting this object to 'clearOnWwn(2)', the cpdvmClearAutoLearnWwn object should be set to the pWWN that is to be cleared. Setting this object to 'noop(3)', will result in no action being taken. The value of this object when read is always 'noop'.")
cdpvm_clear_auto_learn_wwn = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 12), fc_name_id_or_zero().clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cdpvmClearAutoLearnWwn.setStatus('current')
if mibBuilder.loadTexts:
cdpvmClearAutoLearnWwn.setDescription('Represents the port WWN (pWWN) to be used for clearing its corresponding auto-learnt entry.')
cdpvm_activation_state = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 421, 1, 1, 13), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cdpvmActivationState.setStatus('current')
if mibBuilder.loadTexts:
cdpvmActivationState.setDescription("This object indicates the state of activation. If the value of this object is 'true', then an activation has been attempted as the most recent operation. If the value of this object is 'false', then an activation has not been attempted as the most recent operation.")
cisco_dpvm_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 1))
cisco_dpvm_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2))
cisco_dpvm_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 1, 1)).setObjects(('CISCO-DYNAMIC-PORT-VSAN-MIB', 'ciscoDpvmConfigGroup'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'ciscoDpvmEnforcedGroup'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'ciscoDpvmAutoLearnGroup'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'ciscoDpvmDiffGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_dpvm_mib_compliance = ciscoDpvmMIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
ciscoDpvmMIBCompliance.setDescription('The compliance statement for entities which implement the Dynamic Port VSAN Membership Manager.')
cisco_dpvm_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 1)).setObjects(('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmNextAvailIndex'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmLoginDevType'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmLoginDev'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmLoginDevVsan'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmRowStatus'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmActivate'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmActivateResult'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmCopyEnfToConfig'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDynPortVsan'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDynPortDevPwwn'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDynPortDevNwwn'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmActivationState'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_dpvm_config_group = ciscoDpvmConfigGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoDpvmConfigGroup.setDescription('A set of objects for configuration of DPVM bindings.')
cisco_dpvm_enforced_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 2)).setObjects(('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmEnfLoginDevType'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmEnfLoginDev'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmEnfLoginDevVsan'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmEnfIsLearnt'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_dpvm_enforced_group = ciscoDpvmEnforcedGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoDpvmEnforcedGroup.setDescription('A set of objects for displaying enforced DPVM bindings.')
cisco_dpvm_auto_learn_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 3)).setObjects(('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmAutoLearn'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmClearAutoLearn'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmClearAutoLearnWwn'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_dpvm_auto_learn_group = ciscoDpvmAutoLearnGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoDpvmAutoLearnGroup.setDescription('A set of object(s) for configuring auto-learn of DPVM bindings.')
cisco_dpvm_diff_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 421, 2, 2, 4)).setObjects(('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffConfig'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffReason'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffLoginDevType'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffLoginDev'), ('CISCO-DYNAMIC-PORT-VSAN-MIB', 'cdpvmDiffLoginDevVsan'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_dpvm_diff_group = ciscoDpvmDiffGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoDpvmDiffGroup.setDescription('A set of objects for configuring and displaying database compare operations.')
mibBuilder.exportSymbols('CISCO-DYNAMIC-PORT-VSAN-MIB', cdpvmDynPortDevPwwn=cdpvmDynPortDevPwwn, cdpvmTable=cdpvmTable, ciscoDpvmMIBCompliance=ciscoDpvmMIBCompliance, cdpvmNextAvailIndex=cdpvmNextAvailIndex, cdpvmDynPortsTable=cdpvmDynPortsTable, cdpvmDiffTable=cdpvmDiffTable, ciscoDpvmMIBObjects=ciscoDpvmMIBObjects, cdpvmDiffLoginDev=cdpvmDiffLoginDev, cdpvmLoginDev=cdpvmLoginDev, ciscoDpvmMIBCompliances=ciscoDpvmMIBCompliances, cdpvmDynPortDevNwwn=cdpvmDynPortDevNwwn, cdpvmLoginDevType=cdpvmLoginDevType, cdpvmDiffIndex=cdpvmDiffIndex, cdpvmDiffConfig=cdpvmDiffConfig, ciscoDpvmMIBNotifs=ciscoDpvmMIBNotifs, cdpvmCopyEnfToConfig=cdpvmCopyEnfToConfig, cdpvmActivate=cdpvmActivate, cdpvmActivateResult=cdpvmActivateResult, PYSNMP_MODULE_ID=ciscoDpvmMIB, cdpvmDiffLoginDevType=cdpvmDiffLoginDevType, cdpvmEntry=cdpvmEntry, cdpvmClearAutoLearnWwn=cdpvmClearAutoLearnWwn, cdpvmLoginDevVsan=cdpvmLoginDevVsan, cdpvmEnfEntry=cdpvmEnfEntry, ciscoDpvmMIB=ciscoDpvmMIB, cdpvmEnfLoginDevType=cdpvmEnfLoginDevType, cdpvmAutoLearn=cdpvmAutoLearn, cdpvmEnfLoginDevVsan=cdpvmEnfLoginDevVsan, ciscoDpvmDiffGroup=ciscoDpvmDiffGroup, cdpvmRowStatus=cdpvmRowStatus, cdpvmDiffEntry=cdpvmDiffEntry, cdpvmEnfIsLearnt=cdpvmEnfIsLearnt, ciscoDpvmMIBConform=ciscoDpvmMIBConform, cdpvmDynPortsEntry=cdpvmDynPortsEntry, cdpvmEnfLoginDev=cdpvmEnfLoginDev, cdpvmClearAutoLearn=cdpvmClearAutoLearn, ciscoDpvmEnforcedGroup=ciscoDpvmEnforcedGroup, ciscoDpvmMIBGroups=ciscoDpvmMIBGroups, cdpvmDiffReason=cdpvmDiffReason, cdpvmEnfIndex=cdpvmEnfIndex, cdpvmDiffLoginDevVsan=cdpvmDiffLoginDevVsan, ciscoDpvmAutoLearnGroup=ciscoDpvmAutoLearnGroup, cdpvmConfiguration=cdpvmConfiguration, ciscoDpvmConfigGroup=ciscoDpvmConfigGroup, cdpvmDynPortVsan=cdpvmDynPortVsan, CdpvmDevType=CdpvmDevType, cdpvmActivationState=cdpvmActivationState, cdpvmEnfTable=cdpvmEnfTable, cdpvmIndex=cdpvmIndex) |
# Title : Print alphabets from mix string
# Author : Kiran Raj R.
# Date : 04:11:2020
string_to_filter = "he712047070l13212l213*(&(ow76968o172830r%*&$d"
def check_alpha(c):
if c.isalpha():
return c
def check_num(c):
if c.isnumeric():
return c
out = "".join(list(filter(check_alpha, string_to_filter)))
print(out)
out = "".join(list(filter(check_num, string_to_filter)))
print(out) | string_to_filter = 'he712047070l13212l213*(&(ow76968o172830r%*&$d'
def check_alpha(c):
if c.isalpha():
return c
def check_num(c):
if c.isnumeric():
return c
out = ''.join(list(filter(check_alpha, string_to_filter)))
print(out)
out = ''.join(list(filter(check_num, string_to_filter)))
print(out) |
# Create Allergy check code
# [ ] get input for input_test variable
input_test = input("What have you eaten in the last 24hrs: ")
# [ ] print "True" message if "dairy" is in the input or False message if not
print("Your food intake of",input_test,'contains "dairy" =',"dairy".lower() in input_test.lower())
#test works
# [ ] print True message if "nuts" is in the input or False if not
print("Your food intake of",input_test,'contains "Nuts" =',"Nuts".lower() in input_test.lower())
# [ ] Challenge: Check if "seafood" is in the input - print message
print("Your food intake of",input_test,'contains "seafood" =',"seafood".lower() in input_test.lower())
# [ ] Challenge: Check if "chocolate" is in the input - print message
print("Your food intake of",input_test,'contains "chocolate" =',"chocolate".lower() in input_test.lower()) | input_test = input('What have you eaten in the last 24hrs: ')
print('Your food intake of', input_test, 'contains "dairy" =', 'dairy'.lower() in input_test.lower())
print('Your food intake of', input_test, 'contains "Nuts" =', 'Nuts'.lower() in input_test.lower())
print('Your food intake of', input_test, 'contains "seafood" =', 'seafood'.lower() in input_test.lower())
print('Your food intake of', input_test, 'contains "chocolate" =', 'chocolate'.lower() in input_test.lower()) |
def largestComponent(G):
V, E = G;
vertexDeletedIndex = 0;
largestComponent = 0;
component = 0;
colour = [];
for i in range(len(V)):
Vcopy = V;
del Vcopy[i];
for v in V:
colour[v] = "white";
for v in Vcopy:
if colour[v] == "white":
component = DFS(G, v);
if(component > largestComponent):
largestComponent = component;
vertexDeletedIndex = v;
return vertexDeletedIndex, largestComponent;
def DFS(G, v):
pass;
| def largest_component(G):
(v, e) = G
vertex_deleted_index = 0
largest_component = 0
component = 0
colour = []
for i in range(len(V)):
vcopy = V
del Vcopy[i]
for v in V:
colour[v] = 'white'
for v in Vcopy:
if colour[v] == 'white':
component = dfs(G, v)
if component > largestComponent:
largest_component = component
vertex_deleted_index = v
return (vertexDeletedIndex, largestComponent)
def dfs(G, v):
pass |
n = int(input())
s = sum(list(map(int, input().split())))
c = 0
for i in range(1, 6):
if (s+i)%(n+1)!=1:
c += 1
print(c)
| n = int(input())
s = sum(list(map(int, input().split())))
c = 0
for i in range(1, 6):
if (s + i) % (n + 1) != 1:
c += 1
print(c) |
names = ['Christopher', 'Susan']
print(len(names)) # Get the number of items
names.insert(0, 'Bill') # Insert before index
print(names)
| names = ['Christopher', 'Susan']
print(len(names))
names.insert(0, 'Bill')
print(names) |
numBottles=int(input('pleas enter the number of full buttles: '))
numExchange=int(input('pleas enter number of empty bottels to exchange with full bottels: '))
fullbottels=numBottles
result=0
while numBottles>=numExchange or fullbottels>0:
result+=fullbottels
fullbottels=numBottles//numExchange
numBottles%=numExchange
numBottles+=fullbottels
print(result) | num_bottles = int(input('pleas enter the number of full buttles: '))
num_exchange = int(input('pleas enter number of empty bottels to exchange with full bottels: '))
fullbottels = numBottles
result = 0
while numBottles >= numExchange or fullbottels > 0:
result += fullbottels
fullbottels = numBottles // numExchange
num_bottles %= numExchange
num_bottles += fullbottels
print(result) |
detection_data_path = os.path.join('datasets', 'detection')
# training dataset
detection_train_set = DetectionDataset(detection_data_path, mode='train', transforms=get_transform(True))
# validation dataset
detection_valid_set = DetectionDataset(detection_data_path, mode='valid', transforms=get_transform(True))
#testing dataset
detection_test_set = DetectionDataset(detection_data_path, mode='test', transforms=get_transform(False))
detection_classes = detection_train_set.classes
num_detection_classes = len(detection_classes) | detection_data_path = os.path.join('datasets', 'detection')
detection_train_set = detection_dataset(detection_data_path, mode='train', transforms=get_transform(True))
detection_valid_set = detection_dataset(detection_data_path, mode='valid', transforms=get_transform(True))
detection_test_set = detection_dataset(detection_data_path, mode='test', transforms=get_transform(False))
detection_classes = detection_train_set.classes
num_detection_classes = len(detection_classes) |
# from pynvim import attach
# nvim = attach('socket', path='/tmp/nvim')
# handle = nvim.request("nvim_create_buf",1,0)
# nvim.request("nvim_open_win",2,True,{'relative':'win','width':50,'height':3,'row':3,'col':3})
# maybe get current window's config and based on it? but resizing will make things weird, like fzf
# src = nvim.new_highlight_source()
buf = nvim.current.buffer
# # for i in range(5):
# # # has async parameter
# # buf.add_highlight("String",i,0,-1,src_id=src)
# # # some time later ...
# # buf.clear_namespace(src)
# nvim.command("silent split")
# nvim.command("silent e FilterJump")
# nvim.command("silent setlocal buftype=nofile")
# nvim.command('silent setlocal filetype=FilterJump')
# nvim.current.window.height = 1
# nvim.command("silent CocDisable")
# nvim.command("startinsert")
| buf = nvim.current.buffer |
# Leetcode 323
class Solution:
def countComponents(self, n: int, edges: List[List[int]]) -> int:
visited = [False] * n
adj_list = [None] * n
for vertex in range(n):
adj_list[vertex] = list()
for edge in edges:
adj_list[edge[0]].append(edge[1])
adj_list[edge[1]].append(edge[0])
# 96 ms, faster than 9x%
def bfs(source):
q = []
q.append(source)
visited[source] = True
while q:
node = q.pop(0)
for neighbor in adj_list[node]:
if not visited[neighbor]:
visited[neighbor] = True
q.append(neighbor)
# 116 ms, faster than 67.25%
def dfs(source):
q = []
q.append(source)
visited[source] = True
while q:
node = q.pop()
for neighbor in adj_list[node]:
if not visited[neighbor]:
visited[neighbor] = True
q.append(neighbor)
components = 0
for vertex in range(n):
if not visited[vertex]:
components += 1
dfs(vertex)
return components
| class Solution:
def count_components(self, n: int, edges: List[List[int]]) -> int:
visited = [False] * n
adj_list = [None] * n
for vertex in range(n):
adj_list[vertex] = list()
for edge in edges:
adj_list[edge[0]].append(edge[1])
adj_list[edge[1]].append(edge[0])
def bfs(source):
q = []
q.append(source)
visited[source] = True
while q:
node = q.pop(0)
for neighbor in adj_list[node]:
if not visited[neighbor]:
visited[neighbor] = True
q.append(neighbor)
def dfs(source):
q = []
q.append(source)
visited[source] = True
while q:
node = q.pop()
for neighbor in adj_list[node]:
if not visited[neighbor]:
visited[neighbor] = True
q.append(neighbor)
components = 0
for vertex in range(n):
if not visited[vertex]:
components += 1
dfs(vertex)
return components |
#
# PySNMP MIB module RTBRICK-SYSLOG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///home/tin/Dev/mibs.snmplabs.com/asn1/RTBRICK-SYSLOG-MIB
# Produced by pysmi-0.3.4 at Fri Jan 31 21:33:01 2020
# On host bier platform Linux version 5.4.0-3-amd64 by user tin
# Using Python version 3.7.6 (default, Jan 19 2020, 22:34:52)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
rtbrickSyslogNotifications, rtbrickTraps, rtbrickModules = mibBuilder.importSymbols("RTBRICK-MIB", "rtbrickSyslogNotifications", "rtbrickTraps", "rtbrickModules")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Bits, NotificationType, Counter32, Counter64, MibIdentifier, IpAddress, TimeTicks, Unsigned32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Gauge32, ModuleIdentity, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "NotificationType", "Counter32", "Counter64", "MibIdentifier", "IpAddress", "TimeTicks", "Unsigned32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Gauge32", "ModuleIdentity", "ObjectIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
rtBrickSyslogMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 50058, 104, 2))
rtBrickSyslogMIB.setRevisions(('2019-01-04 00:00',))
if mibBuilder.loadTexts: rtBrickSyslogMIB.setLastUpdated('201804140000Z')
if mibBuilder.loadTexts: rtBrickSyslogMIB.setOrganization('RtBrick')
syslogMessage = MibIdentifier((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1))
class SyslogSeverity(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))
namedValues = NamedValues(("emergency", 1), ("alert", 2), ("critical", 3), ("error", 4), ("warning", 5), ("notice", 6), ("info", 7), ("debug", 8))
syslogMsgNumber = MibScalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 1), Unsigned32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: syslogMsgNumber.setStatus('current')
syslogMsgFacility = MibScalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 2), DisplayString()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: syslogMsgFacility.setStatus('current')
syslogMsgSeverity = MibScalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 3), SyslogSeverity()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: syslogMsgSeverity.setStatus('current')
syslogMsgText = MibScalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 4), DisplayString()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: syslogMsgText.setStatus('current')
rtbrickSyslogNotificationPrefix = ObjectIdentity((1, 3, 6, 1, 4, 1, 50058, 103, 1, 0))
if mibBuilder.loadTexts: rtbrickSyslogNotificationPrefix.setStatus('current')
rtbrickSyslogTrap = NotificationType((1, 3, 6, 1, 4, 1, 50058, 103, 1, 0, 1))
if mibBuilder.loadTexts: rtbrickSyslogTrap.setStatus('current')
mibBuilder.exportSymbols("RTBRICK-SYSLOG-MIB", SyslogSeverity=SyslogSeverity, rtbrickSyslogNotificationPrefix=rtbrickSyslogNotificationPrefix, rtbrickSyslogTrap=rtbrickSyslogTrap, syslogMsgFacility=syslogMsgFacility, rtBrickSyslogMIB=rtBrickSyslogMIB, PYSNMP_MODULE_ID=rtBrickSyslogMIB, syslogMsgText=syslogMsgText, syslogMsgSeverity=syslogMsgSeverity, syslogMsgNumber=syslogMsgNumber, syslogMessage=syslogMessage)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(rtbrick_syslog_notifications, rtbrick_traps, rtbrick_modules) = mibBuilder.importSymbols('RTBRICK-MIB', 'rtbrickSyslogNotifications', 'rtbrickTraps', 'rtbrickModules')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(bits, notification_type, counter32, counter64, mib_identifier, ip_address, time_ticks, unsigned32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, gauge32, module_identity, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'NotificationType', 'Counter32', 'Counter64', 'MibIdentifier', 'IpAddress', 'TimeTicks', 'Unsigned32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Gauge32', 'ModuleIdentity', 'ObjectIdentity')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
rt_brick_syslog_mib = module_identity((1, 3, 6, 1, 4, 1, 50058, 104, 2))
rtBrickSyslogMIB.setRevisions(('2019-01-04 00:00',))
if mibBuilder.loadTexts:
rtBrickSyslogMIB.setLastUpdated('201804140000Z')
if mibBuilder.loadTexts:
rtBrickSyslogMIB.setOrganization('RtBrick')
syslog_message = mib_identifier((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1))
class Syslogseverity(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))
named_values = named_values(('emergency', 1), ('alert', 2), ('critical', 3), ('error', 4), ('warning', 5), ('notice', 6), ('info', 7), ('debug', 8))
syslog_msg_number = mib_scalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 1), unsigned32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
syslogMsgNumber.setStatus('current')
syslog_msg_facility = mib_scalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 2), display_string()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
syslogMsgFacility.setStatus('current')
syslog_msg_severity = mib_scalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 3), syslog_severity()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
syslogMsgSeverity.setStatus('current')
syslog_msg_text = mib_scalar((1, 3, 6, 1, 4, 1, 50058, 104, 2, 1, 4), display_string()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
syslogMsgText.setStatus('current')
rtbrick_syslog_notification_prefix = object_identity((1, 3, 6, 1, 4, 1, 50058, 103, 1, 0))
if mibBuilder.loadTexts:
rtbrickSyslogNotificationPrefix.setStatus('current')
rtbrick_syslog_trap = notification_type((1, 3, 6, 1, 4, 1, 50058, 103, 1, 0, 1))
if mibBuilder.loadTexts:
rtbrickSyslogTrap.setStatus('current')
mibBuilder.exportSymbols('RTBRICK-SYSLOG-MIB', SyslogSeverity=SyslogSeverity, rtbrickSyslogNotificationPrefix=rtbrickSyslogNotificationPrefix, rtbrickSyslogTrap=rtbrickSyslogTrap, syslogMsgFacility=syslogMsgFacility, rtBrickSyslogMIB=rtBrickSyslogMIB, PYSNMP_MODULE_ID=rtBrickSyslogMIB, syslogMsgText=syslogMsgText, syslogMsgSeverity=syslogMsgSeverity, syslogMsgNumber=syslogMsgNumber, syslogMessage=syslogMessage) |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == '__main__':
with open("file.txt", 'r') as f:
content = f.read();
print(content)
| if __name__ == '__main__':
with open('file.txt', 'r') as f:
content = f.read()
print(content) |
class Solution(object):
def numIslands(self, grid):
if not grid:
return 0
count = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == '1':
self.dfs(grid, i, j)
count += 1
return count
def dfs(self, grid, i, j):
if i < 0 or i >= len(grid) \
or j < 0 or j >= len(grid[0]) or grid[i][j] != '1':
return
grid[i][j] = '#'
self.dfs(grid, i + 1, j)
self.dfs(grid, i - 1, j)
self.dfs(grid, i, j + 1)
self.dfs(grid, i, j - 1)
def test_num_islands():
s = Solution()
assert 1 == s.numIslands([['1', '1', '1', '1', '0'],
['1', '1', '0', '1', '0'],
['1', '1', '0', '0', '0'],
['0', '0', '0', '0', '0']])
assert 3 == s.numIslands([['1', '1', '0', '0', '0'],
['1', '1', '0', '0', '0'],
['0', '0', '1', '0', '0'],
['0', '0', '0', '1', '1']])
| class Solution(object):
def num_islands(self, grid):
if not grid:
return 0
count = 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j] == '1':
self.dfs(grid, i, j)
count += 1
return count
def dfs(self, grid, i, j):
if i < 0 or i >= len(grid) or j < 0 or (j >= len(grid[0])) or (grid[i][j] != '1'):
return
grid[i][j] = '#'
self.dfs(grid, i + 1, j)
self.dfs(grid, i - 1, j)
self.dfs(grid, i, j + 1)
self.dfs(grid, i, j - 1)
def test_num_islands():
s = solution()
assert 1 == s.numIslands([['1', '1', '1', '1', '0'], ['1', '1', '0', '1', '0'], ['1', '1', '0', '0', '0'], ['0', '0', '0', '0', '0']])
assert 3 == s.numIslands([['1', '1', '0', '0', '0'], ['1', '1', '0', '0', '0'], ['0', '0', '1', '0', '0'], ['0', '0', '0', '1', '1']]) |
print('Insert first string')
string1 = input()
print('Insert second string')
string2 = input()
print(string1 + ' - ' + string2 + ' are anagrams?', sorted(string1) == sorted(string2))
'''
Check whether the strings in input are anagrams or not.
Two strings, a and b, are called anagrams if they contain all the same characters in the same frequencies.
For example, the anagrams of CAT are CAT, ACT, TAC, TCA, ATC, and CTA.
Sample Input:
string1=CAT
string2=ACT
Sample Output:
true
Time complexity : O(N log N)
Space complexity: O(1)
'''
| print('Insert first string')
string1 = input()
print('Insert second string')
string2 = input()
print(string1 + ' - ' + string2 + ' are anagrams?', sorted(string1) == sorted(string2))
'\nCheck whether the strings in input are anagrams or not.\n\nTwo strings, a and b, are called anagrams if they contain all the same characters in the same frequencies. \nFor example, the anagrams of CAT are CAT, ACT, TAC, TCA, ATC, and CTA.\n\nSample Input:\nstring1=CAT\nstring2=ACT\n\nSample Output:\ntrue\n\nTime complexity : O(N log N)\nSpace complexity: O(1)\n' |
class Scaler1D:
def __init__(self) -> None:
self.max_num: float = None
self.min_num: float = None
def transform(self, num_list: list) -> list:
if self.max_num is None:
self.max_num = max(num_list)
if self.min_num is None:
self.min_num = min(num_list)
return [(x - self.min_num) / (self.max_num - self.min_num) for x in num_list]
def inverse_transform(self, num_list: list) -> list:
return [x * (self.max_num - self.min_num) + self.min_num for x in num_list]
class Scaler2D:
def __init__(self) -> None:
self.max_num: float = None
self.min_num: float = None
def transform(self, num_list: list) -> list:
if self.max_num is None:
self.max_num = max([max(x[0], x[1]) for x in num_list])
if self.min_num is None:
self.min_num = min([min(x[0], x[1]) for x in num_list])
return [[(x[0] - self.min_num) / (self.max_num - self.min_num),
(x[1] - self.min_num) / (self.max_num - self.min_num)]
for x in num_list]
def inverse_transform(self, num_list: list) -> list:
return [[x[0] * (self.max_num - self.min_num) + self.min_num,
x[1] * (self.max_num - self.min_num) + self.min_num]
for x in num_list]
| class Scaler1D:
def __init__(self) -> None:
self.max_num: float = None
self.min_num: float = None
def transform(self, num_list: list) -> list:
if self.max_num is None:
self.max_num = max(num_list)
if self.min_num is None:
self.min_num = min(num_list)
return [(x - self.min_num) / (self.max_num - self.min_num) for x in num_list]
def inverse_transform(self, num_list: list) -> list:
return [x * (self.max_num - self.min_num) + self.min_num for x in num_list]
class Scaler2D:
def __init__(self) -> None:
self.max_num: float = None
self.min_num: float = None
def transform(self, num_list: list) -> list:
if self.max_num is None:
self.max_num = max([max(x[0], x[1]) for x in num_list])
if self.min_num is None:
self.min_num = min([min(x[0], x[1]) for x in num_list])
return [[(x[0] - self.min_num) / (self.max_num - self.min_num), (x[1] - self.min_num) / (self.max_num - self.min_num)] for x in num_list]
def inverse_transform(self, num_list: list) -> list:
return [[x[0] * (self.max_num - self.min_num) + self.min_num, x[1] * (self.max_num - self.min_num) + self.min_num] for x in num_list] |
# SWAPPING THE NUMBERS
a=5
b=2
print(a,b)
a,b=b,a
print(a,b) | a = 5
b = 2
print(a, b)
(a, b) = (b, a)
print(a, b) |
BASE_URL = "https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?expr"
PAPER_ATTRIBUTES = "AA.DAuN,DN,D,ECC,DFN,J.JN,PB,Y"
AUTHOR_ATTRIBUTES = "Id,DAuN,ECC,LKA.AfN,PC"
STUDY_FIELD_ATTRIBUTES = "Id,PC,FP.FN,ECC,DFN,FC.FN"
PAPER = 'paper'
AUTHOR = 'author'
AFFILIATION = 'affiliation'
STUDY_FIELD = 'study field' | base_url = 'https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?expr'
paper_attributes = 'AA.DAuN,DN,D,ECC,DFN,J.JN,PB,Y'
author_attributes = 'Id,DAuN,ECC,LKA.AfN,PC'
study_field_attributes = 'Id,PC,FP.FN,ECC,DFN,FC.FN'
paper = 'paper'
author = 'author'
affiliation = 'affiliation'
study_field = 'study field' |
def mergeSort(arr):
if len(arr) > 1:
mid = len(arr) // 2
leftHalf = arr[:mid] # 56,24,93,17
rightHalf = arr[mid:] # 77,31,44,55,20
mergeSort(leftHalf)
mergeSort(rightHalf)
i = j = k = 0
while i < len(leftHalf) and j < len(rightHalf):
if leftHalf[i] < rightHalf[j]:
arr[k] = leftHalf[i]
i += 1
else:
arr[k] = rightHalf[j]
j += 1
k += 1
while i < len(leftHalf):
arr[k] = leftHalf[i]
i += 1
k += 1
while j < len(rightHalf):
arr[k] = rightHalf[j]
j += 1
k += 1
arr = [56,24,93,17,77,31,44,55,20]
mergeSort(arr)
print(arr) | def merge_sort(arr):
if len(arr) > 1:
mid = len(arr) // 2
left_half = arr[:mid]
right_half = arr[mid:]
merge_sort(leftHalf)
merge_sort(rightHalf)
i = j = k = 0
while i < len(leftHalf) and j < len(rightHalf):
if leftHalf[i] < rightHalf[j]:
arr[k] = leftHalf[i]
i += 1
else:
arr[k] = rightHalf[j]
j += 1
k += 1
while i < len(leftHalf):
arr[k] = leftHalf[i]
i += 1
k += 1
while j < len(rightHalf):
arr[k] = rightHalf[j]
j += 1
k += 1
arr = [56, 24, 93, 17, 77, 31, 44, 55, 20]
merge_sort(arr)
print(arr) |
# ask for int, report runnig total / version 1
num = 0
total = 0
while num != -1:
total = total + num
print("total so far = " + str(total))
num = int(input("next int: "))
# ask for int, report runnig total / version 2
total = 0
while True:
num = int(input("next int: "))
if num == -1:
break
total += num
print("total so far = " + str(total))
# check if number is prime
num = int(input("int: "))
total = 0
for x in range(2, num):
if num % x == 0:
print(str(num) + " is NOT prime")
break # we don't need to continue checking
else:
print(str(num) + " is PRIME")
# check multiple numbers
while True:
num = int(input("int: "))
if num == -1:
break
if num < 3:
print("int must be greater than 2")
continue
is_prime = True
for i in range(2, num):
if num % i == 0:
is_prime = False
break
if is_prime:
print(str(num) + " is PRIME")
else:
print(str(num) + " is NOT prime")
# print out primes up to 100
for i in range(3, 101):
is_prime = True
for j in range(2, i-1):
if i % j == 0:
is_prime = False
break
if is_prime:
print(str(i) + " is PRIME")
else:
print(str(i) + " is NOT prime")
# print multilication table
for i in range(1, 11):
for j in range(1, 11):
print("%3d" % (i * j), end=' ')
print()
print()
| num = 0
total = 0
while num != -1:
total = total + num
print('total so far = ' + str(total))
num = int(input('next int: '))
total = 0
while True:
num = int(input('next int: '))
if num == -1:
break
total += num
print('total so far = ' + str(total))
num = int(input('int: '))
total = 0
for x in range(2, num):
if num % x == 0:
print(str(num) + ' is NOT prime')
break
else:
print(str(num) + ' is PRIME')
while True:
num = int(input('int: '))
if num == -1:
break
if num < 3:
print('int must be greater than 2')
continue
is_prime = True
for i in range(2, num):
if num % i == 0:
is_prime = False
break
if is_prime:
print(str(num) + ' is PRIME')
else:
print(str(num) + ' is NOT prime')
for i in range(3, 101):
is_prime = True
for j in range(2, i - 1):
if i % j == 0:
is_prime = False
break
if is_prime:
print(str(i) + ' is PRIME')
else:
print(str(i) + ' is NOT prime')
for i in range(1, 11):
for j in range(1, 11):
print('%3d' % (i * j), end=' ')
print()
print() |
#!/usr/bin/env python3
#################################################################################
# #
# Program purpose: Generate message based on user input. #
# Program Author : Happi Yvan <ivensteinpoker@gmail.com> #
# Creation Date : September 10, 2019 #
# #
#################################################################################
def get_message(info: {}):
basic_info = f"Hi there {info['name']}!, nice knowing you!"
if int(info['age']) < 18:
basic_info += f" You're relatively young at {info['age']}."
if 18 < int(info['age']) < 30:
if info['gender'] == "male":
basic_info += f" Becoming a man, huh!"
else:
basic_info += f" Becoming a woman, hun!"
elif int(info['age']) < 18:
basic_info += " Enjoy your teens"
else:
basic_info += " You're getting old, you know!"
basic_info += f" Living in {info['location']} should be pretty fun!"
return basic_info
if __name__ == "__main__":
name = str(input("Enter your name: "))
gender = str(input("Enter your gender: "))
age = 0
cont = True
while cont:
try:
age = int(input("Enter your age: "))
cont = False
except ValueError as ve:
print(f"[ERROR]: {ve}")
location = str(input("Where do you live: "))
print(get_message({'name': name, 'gender': gender, 'age': age, 'location': location}))
| def get_message(info: {}):
basic_info = f"Hi there {info['name']}!, nice knowing you!"
if int(info['age']) < 18:
basic_info += f" You're relatively young at {info['age']}."
if 18 < int(info['age']) < 30:
if info['gender'] == 'male':
basic_info += f' Becoming a man, huh!'
else:
basic_info += f' Becoming a woman, hun!'
elif int(info['age']) < 18:
basic_info += ' Enjoy your teens'
else:
basic_info += " You're getting old, you know!"
basic_info += f" Living in {info['location']} should be pretty fun!"
return basic_info
if __name__ == '__main__':
name = str(input('Enter your name: '))
gender = str(input('Enter your gender: '))
age = 0
cont = True
while cont:
try:
age = int(input('Enter your age: '))
cont = False
except ValueError as ve:
print(f'[ERROR]: {ve}')
location = str(input('Where do you live: '))
print(get_message({'name': name, 'gender': gender, 'age': age, 'location': location})) |
class Tree:
def __init__(self):
self.left = None
self.right = None
self.data = None
def init_left_child(self):
self.left = Tree()
def init_right_child(self):
self.right = Tree()
def init_both_childs(self):
self.init_left_child()
self.init_right_child()
def init_data(self, data):
self.data = data
def init_both_childs_and_data(self, data):
self.init_both_childs()
self.init_data(data)
def main():
root = Tree()
root.init_both_childs()
| class Tree:
def __init__(self):
self.left = None
self.right = None
self.data = None
def init_left_child(self):
self.left = tree()
def init_right_child(self):
self.right = tree()
def init_both_childs(self):
self.init_left_child()
self.init_right_child()
def init_data(self, data):
self.data = data
def init_both_childs_and_data(self, data):
self.init_both_childs()
self.init_data(data)
def main():
root = tree()
root.init_both_childs() |
'''
Title : Loops
Subdomain : Introduction
Domain : Python
Author : Kalpak Seal
Created : 28 September 2016
'''
# Enter your code here. Read input from STDIN. Print output to STDOUT
n = int(raw_input())
for i in range(0, n):
print (i ** 2) | """
Title : Loops
Subdomain : Introduction
Domain : Python
Author : Kalpak Seal
Created : 28 September 2016
"""
n = int(raw_input())
for i in range(0, n):
print(i ** 2) |
local_val = 'magical creature'
def square(x):
return x * x
class User:
def __init__(self, name):
self.name = name
def say_hello(self):
return 'Hello'
# This conditional allows us to run certain blocks of code depending on which file they're in
if __name__ == "__main__":
print('the file is being executed directly')
else:
print('the file is being executed because it is imported by another file, this file is called', __name__)
pass
# print(square(5))
# user = User("Luigi")
# print(user.name)
# print(user.say_hello())
# print(__name__)
| local_val = 'magical creature'
def square(x):
return x * x
class User:
def __init__(self, name):
self.name = name
def say_hello(self):
return 'Hello'
if __name__ == '__main__':
print('the file is being executed directly')
else:
print('the file is being executed because it is imported by another file, this file is called', __name__)
pass |
t = int(input())
for _ in range(t):
a, b = [int(x) for x in input().split()]
print(a * b)
| t = int(input())
for _ in range(t):
(a, b) = [int(x) for x in input().split()]
print(a * b) |
class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
res = []
candidates.sort()
def backtrack(pos,cur,target):
if target == 0 :
res.append(cur.copy())
if target <= 0 :
return
prev = -1
for i in range(pos,len(candidates)):
if candidates[i] == prev :
continue
cur.append(candidates[i])
backtrack(i+1,cur,target - candidates[i] )
cur.pop()
prev = candidates[i]
backtrack(0,[],target)
return res
| class Solution:
def combination_sum2(self, candidates: List[int], target: int) -> List[List[int]]:
res = []
candidates.sort()
def backtrack(pos, cur, target):
if target == 0:
res.append(cur.copy())
if target <= 0:
return
prev = -1
for i in range(pos, len(candidates)):
if candidates[i] == prev:
continue
cur.append(candidates[i])
backtrack(i + 1, cur, target - candidates[i])
cur.pop()
prev = candidates[i]
backtrack(0, [], target)
return res |
class NumString:
def __init__(self, value):
self.value = str(value)
def __str__(self):
return self.value
def __int__(self):
return int(self.value)
def __float__(self):
return float(self.value)
#EXAMPLE: NumString(5) + 5 = 10
def __add__(self, other):
if '.' in self.value:
return float(self) + other
return int(self) + other
#If you reflect your addition, this method will reflect it again so the __add__ method can be used
#EXAMPLE: 2 + NumString(5) becomes NumString(5) + 2
def __radd__(self, other):
return self + other
#will store a calculated self.value and therefore change the instance of NumString
#EXAMPLE: NumString(25) += 5 will change Numstring(25) into Numstring(30)
def __iadd__(self, other):
self.value = self + other
return self.value
| class Numstring:
def __init__(self, value):
self.value = str(value)
def __str__(self):
return self.value
def __int__(self):
return int(self.value)
def __float__(self):
return float(self.value)
def __add__(self, other):
if '.' in self.value:
return float(self) + other
return int(self) + other
def __radd__(self, other):
return self + other
def __iadd__(self, other):
self.value = self + other
return self.value |
# import time
def slowprint(string):
for letter in string:
print(letter, end='')
# time.sleep(.05)
| def slowprint(string):
for letter in string:
print(letter, end='') |
def prob1():
sum = 0
i = 1
for i in range(1000):
if (((i % 3) == 0) or ((i % 5) == 0)):
sum = sum +i
print(sum)
print(i)
if __name__ == "__main__":
print("Project Euler Problem 1")
prob1() | def prob1():
sum = 0
i = 1
for i in range(1000):
if i % 3 == 0 or i % 5 == 0:
sum = sum + i
print(sum)
print(i)
if __name__ == '__main__':
print('Project Euler Problem 1')
prob1() |
# String Formation
'''
Given an array of strings, each of the same length and a target string construct the target string using characters from the strings in the given array such that the indices of the characters in the order in which they are used to form a strictly increasing sequence. Here the index of character is the position at which it appears in the string. Note that it is acceptable to use multiple characters from the same string.
Determine the number of ways to construct the target string. One construction is different from another if either the sequences of indices they use are different, or the sequences are same but there exists a character at some index such that it is chosen from a different string in these constructions. Since the answer can be very large, return the value modulo (10^9 + 7).
'''
# mod = 1000000007
mod = 10 ** 9 + 7
dp = [[-1 for i in range(1000)] for j in range(1000)]
def calculate(pos, prev, s, index):
if pos == len(s):
return 1
if dp[pos][prev] != -1:
return dp[pos][prev]
c = ord(s[pos]) - ord('a');
answer = 0
for i in range(len(index[c])):
if index[c][i] > prev:
answer = (answer % mod + calculate(pos + 1, index[c][i], s, index) % mod) % mod
dp[pos][prev] = answer
# Store and return the solution for this subproblem
return dp[pos][prev]
def countWays(a, s):
n = len(a)
index = [[] for i in range(26)]
for i in range(n):
for j in range(len(a[i])):
index[ord(a[i][j]) - ord('a')].append(j + 1)
return calculate(0, 0, s, index)
# Driver Code
if __name__ == '__main__':
A = []
A.append("adc")
A.append("aec")
A.append("erg")
S = "ac"
# A = ["valya", "lyglb", "vldoh"]
# S = "val"
# A = ["xzu", "dfw", "eor", "mat", "jyc"]
# S = "cf"
# A = ["afsdc", "aeeeedc", "ddegerg"]
# S = "ae"
print(countWays(A, S))
| """
Given an array of strings, each of the same length and a target string construct the target string using characters from the strings in the given array such that the indices of the characters in the order in which they are used to form a strictly increasing sequence. Here the index of character is the position at which it appears in the string. Note that it is acceptable to use multiple characters from the same string.
Determine the number of ways to construct the target string. One construction is different from another if either the sequences of indices they use are different, or the sequences are same but there exists a character at some index such that it is chosen from a different string in these constructions. Since the answer can be very large, return the value modulo (10^9 + 7).
"""
mod = 10 ** 9 + 7
dp = [[-1 for i in range(1000)] for j in range(1000)]
def calculate(pos, prev, s, index):
if pos == len(s):
return 1
if dp[pos][prev] != -1:
return dp[pos][prev]
c = ord(s[pos]) - ord('a')
answer = 0
for i in range(len(index[c])):
if index[c][i] > prev:
answer = (answer % mod + calculate(pos + 1, index[c][i], s, index) % mod) % mod
dp[pos][prev] = answer
return dp[pos][prev]
def count_ways(a, s):
n = len(a)
index = [[] for i in range(26)]
for i in range(n):
for j in range(len(a[i])):
index[ord(a[i][j]) - ord('a')].append(j + 1)
return calculate(0, 0, s, index)
if __name__ == '__main__':
a = []
A.append('adc')
A.append('aec')
A.append('erg')
s = 'ac'
print(count_ways(A, S)) |
#!/usr/bin/env python
grid = [['.', '.', '.', '.', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['O', 'O', 'O', 'O', 'O', '.'],
['.', 'O', 'O', 'O', 'O', 'O'],
['O', 'O', 'O', 'O', 'O', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['.', '.', '.', '.', '.', '.']]
#grid[0][0] grid[1][0] grid[2][0]
#grid[0][1] grid[1][1] grid[2][1]
for i in range(len(grid[0])):
for j in range(len(grid)):
print(grid[j][i], end='')
print('')
| grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']]
for i in range(len(grid[0])):
for j in range(len(grid)):
print(grid[j][i], end='')
print('') |
# Python code to reverse a string
# using loop
def reverse(s):
str = ""
for i in s:
str = i + str
return str
s = "Geeksforgeeks"
print ("The original string is : ",end="")
print (s)
print ("The reversed string(using loops) is : ",end="")
print (reverse(s))
| def reverse(s):
str = ''
for i in s:
str = i + str
return str
s = 'Geeksforgeeks'
print('The original string is : ', end='')
print(s)
print('The reversed string(using loops) is : ', end='')
print(reverse(s)) |
def has_line(game_result):
for l in game_result:
if l == tuple("XXX"):
return "X"
elif l == tuple("OOO"):
return "O"
return None
def has_col(game_result):
return has_line(zip(*[list(e) for e in game_result]))
def has_diag(game_result):
def check_diag(c, reverse=False) :
for i in range(len(game_result)):
if (not reverse and game_result[i][i] != c) or \
(reverse and game_result[i][len(game_result) - 1 - i] != c):
return False
return True
return "X" if check_diag("X") or check_diag("X", reverse=True) else "O" if check_diag("O") or check_diag("O", reverse=True) else None
def checkio(game_result):
line = has_line([tuple(e) for e in game_result])
col = has_col(game_result)
diag = has_diag(game_result)
return line if line is not None else col if col is not None else diag if diag is not None else "D"
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for
#auto-testing
assert checkio(["X.O",
"XX.",
"XOO"]) == "X", "Xs wins"
assert checkio(["OO.",
"XOX",
"XOX"]) == "O", "Os wins"
assert checkio(["OOX",
"XXO",
"OXX"]) == "D", "Draw"
assert checkio(["O.X",
"XX.",
"XOO"]) == "X", "Xs wins again"
| def has_line(game_result):
for l in game_result:
if l == tuple('XXX'):
return 'X'
elif l == tuple('OOO'):
return 'O'
return None
def has_col(game_result):
return has_line(zip(*[list(e) for e in game_result]))
def has_diag(game_result):
def check_diag(c, reverse=False):
for i in range(len(game_result)):
if not reverse and game_result[i][i] != c or (reverse and game_result[i][len(game_result) - 1 - i] != c):
return False
return True
return 'X' if check_diag('X') or check_diag('X', reverse=True) else 'O' if check_diag('O') or check_diag('O', reverse=True) else None
def checkio(game_result):
line = has_line([tuple(e) for e in game_result])
col = has_col(game_result)
diag = has_diag(game_result)
return line if line is not None else col if col is not None else diag if diag is not None else 'D'
if __name__ == '__main__':
assert checkio(['X.O', 'XX.', 'XOO']) == 'X', 'Xs wins'
assert checkio(['OO.', 'XOX', 'XOX']) == 'O', 'Os wins'
assert checkio(['OOX', 'XXO', 'OXX']) == 'D', 'Draw'
assert checkio(['O.X', 'XX.', 'XOO']) == 'X', 'Xs wins again' |
#!/usr/bin/env python3
def validate_no_repeated(passphrase):
words = passphrase.strip().split()
return len(set(words)) == len(words)
def validate_no_anagrams(passphrase):
words = [''.join(sorted(word)) for word in passphrase.strip().split()]
return len(set(words)) == len(words)
assert validate_no_repeated("aa bb cc dd ee")
assert validate_no_repeated("aa bb cc dd aaa")
assert not validate_no_repeated("aa bb cc dd aa")
assert validate_no_anagrams("aa bb cc dd ee")
assert validate_no_anagrams("aa bb cc dd aaa")
assert validate_no_anagrams("abcde fghij")
assert validate_no_anagrams("a ab abc abd abf abj")
assert validate_no_anagrams("iiii oiii ooii oooi oooo")
assert not validate_no_anagrams("aa bb cc dd aa")
assert not validate_no_anagrams("abcde xyz ecdab")
assert not validate_no_anagrams("oiii ioii iioi iiio")
if __name__ == '__main__':
with open('input') as f:
lines = f.readlines()
print(sum(validate_no_repeated(passphrase) for passphrase in lines))
print(sum(validate_no_anagrams(passphrase) for passphrase in lines))
| def validate_no_repeated(passphrase):
words = passphrase.strip().split()
return len(set(words)) == len(words)
def validate_no_anagrams(passphrase):
words = [''.join(sorted(word)) for word in passphrase.strip().split()]
return len(set(words)) == len(words)
assert validate_no_repeated('aa bb cc dd ee')
assert validate_no_repeated('aa bb cc dd aaa')
assert not validate_no_repeated('aa bb cc dd aa')
assert validate_no_anagrams('aa bb cc dd ee')
assert validate_no_anagrams('aa bb cc dd aaa')
assert validate_no_anagrams('abcde fghij')
assert validate_no_anagrams('a ab abc abd abf abj')
assert validate_no_anagrams('iiii oiii ooii oooi oooo')
assert not validate_no_anagrams('aa bb cc dd aa')
assert not validate_no_anagrams('abcde xyz ecdab')
assert not validate_no_anagrams('oiii ioii iioi iiio')
if __name__ == '__main__':
with open('input') as f:
lines = f.readlines()
print(sum((validate_no_repeated(passphrase) for passphrase in lines)))
print(sum((validate_no_anagrams(passphrase) for passphrase in lines))) |
linha = '-' * 30
totMais18 = 0
totHomens = 0
totMulherMenos20 = 0
while True:
print(linha)
print('{:^30}'.format('CADASTRE UMA PESSOA'))
print(linha)
idadeTXT = ' '
while not idadeTXT.isnumeric():
idadeTXT = str(input('Idade: '))
idade = int(idadeTXT)
sexo = ' '
while sexo not in 'MF':
sexo = str(input('Sexo: [M/F] ')).strip().upper()[0]
if idade > 18:
totMais18 += 1
if sexo == 'M':
totHomens += 1
if (sexo == 'F' and idade < 20):
totMulherMenos20 += 1
continuar = ' '
while continuar not in 'SN':
continuar = str(input('Deseja continuar? [S/N?] ')).strip().upper()[0]
if continuar == 'N':
break
print(linha)
print('Total de pessoas com mais de 18:', totMais18)
print('Ao todo, temos {} homens cadastrados'.format(totHomens))
print(f'E temos {totMulherMenos20} mulheres com menos de 20 anos')
| linha = '-' * 30
tot_mais18 = 0
tot_homens = 0
tot_mulher_menos20 = 0
while True:
print(linha)
print('{:^30}'.format('CADASTRE UMA PESSOA'))
print(linha)
idade_txt = ' '
while not idadeTXT.isnumeric():
idade_txt = str(input('Idade: '))
idade = int(idadeTXT)
sexo = ' '
while sexo not in 'MF':
sexo = str(input('Sexo: [M/F] ')).strip().upper()[0]
if idade > 18:
tot_mais18 += 1
if sexo == 'M':
tot_homens += 1
if sexo == 'F' and idade < 20:
tot_mulher_menos20 += 1
continuar = ' '
while continuar not in 'SN':
continuar = str(input('Deseja continuar? [S/N?] ')).strip().upper()[0]
if continuar == 'N':
break
print(linha)
print('Total de pessoas com mais de 18:', totMais18)
print('Ao todo, temos {} homens cadastrados'.format(totHomens))
print(f'E temos {totMulherMenos20} mulheres com menos de 20 anos') |
GRAPH = {
"A": ["B","D","E"],
"B": ["A","C","D"],
"C": ["B","G"],
"D": ["A","B","E","F"],
"E": ["A","D"],
"F": ["D"],
"G": ["C"]
}
def bfs(graph, current_vertex):
queue = [] # an empty queue
visited = [] # an empty list of visited nodes
queue.append(current_vertex) # enqueue
while len(queue) > 0: # while queue not empty
current_vertex = queue.pop(0) # dequeue
visited.append(current_vertex)
for neighbour in graph[current_vertex]:
if neighbour not in visited and \
neighbour not in queue:
queue.append(neighbour)
return visited
# main program
traversal = bfs(GRAPH, 'A')
print('Nodes visited in this order:', traversal)
| graph = {'A': ['B', 'D', 'E'], 'B': ['A', 'C', 'D'], 'C': ['B', 'G'], 'D': ['A', 'B', 'E', 'F'], 'E': ['A', 'D'], 'F': ['D'], 'G': ['C']}
def bfs(graph, current_vertex):
queue = []
visited = []
queue.append(current_vertex)
while len(queue) > 0:
current_vertex = queue.pop(0)
visited.append(current_vertex)
for neighbour in graph[current_vertex]:
if neighbour not in visited and neighbour not in queue:
queue.append(neighbour)
return visited
traversal = bfs(GRAPH, 'A')
print('Nodes visited in this order:', traversal) |
# use an increment and assign operator
count = 0
while count != 5:
count += 1
print(count)
# increment count by 3
count = 0
while count <= 20:
count += 3
print(count)
# decrements count by 3
count = 20
while count >= 0:
count -= 3
print(count)
| count = 0
while count != 5:
count += 1
print(count)
count = 0
while count <= 20:
count += 3
print(count)
count = 20
while count >= 0:
count -= 3
print(count) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.