content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class MyOwnExceptionError(Exception):
pass
def do_exception():
try:
1/0
except ZeroDivisionError as error:
raise MyOwnExceptionError from error
if __name__ == "__main__":
try:
do_exception()
except MyOwnExceptionError:
print("My exception was caught!") | class Myownexceptionerror(Exception):
pass
def do_exception():
try:
1 / 0
except ZeroDivisionError as error:
raise MyOwnExceptionError from error
if __name__ == '__main__':
try:
do_exception()
except MyOwnExceptionError:
print('My exception was caught!') |
temperature_change_rate = -2.3 * units.delta_degF / (10 * units.minutes)
temperature = 25 * units.degC
dt = 1.5 * units.hours
print(temperature + temperature_change_rate * dt)
| temperature_change_rate = -2.3 * units.delta_degF / (10 * units.minutes)
temperature = 25 * units.degC
dt = 1.5 * units.hours
print(temperature + temperature_change_rate * dt) |
# pylint: disable=no-member
# -*- encoding: utf-8 -*-
'''
@File : zones.py
@Time : 2020/03/17 12:45:54
@Author : Kellan Fan
@Version : 1.0
@Contact : kellanfan1989@gmail.com
@Desc : None
'''
# here put the import lib
class Zones(object):
def __init__(self, status='active'):
self.__data = {
'action': 'DescribeZones',
'status': status
}
def __call__(self):
return self.__data | """
@File : zones.py
@Time : 2020/03/17 12:45:54
@Author : Kellan Fan
@Version : 1.0
@Contact : kellanfan1989@gmail.com
@Desc : None
"""
class Zones(object):
def __init__(self, status='active'):
self.__data = {'action': 'DescribeZones', 'status': status}
def __call__(self):
return self.__data |
# youtube-search-requests
# parser/related_video_data.py
# for mobile user-agent
def parse_related_video_data1(data):
try:
d = data['contents']['singleColumnWatchNextResults']['results']['results']['contents']
except KeyError:
return None
for i in d:
try:
c = i['itemSectionRenderer']['contents']
except KeyError:
continue
except TypeError:
continue
for v in c:
try:
v['compactVideoRenderer']
return c
except KeyError:
continue
# for desktop user-agent
def parse_related_video_data2(data):
try:
return data['contents']['twoColumnWatchNextResults']['secondaryResults']['secondaryResults']['results']
except KeyError:
return None
# for bot or unknown user-agent maybe ?
def parse_related_video_data3(data):
try:
d = data['contents']['singleColumnWatchNextResults']['results']['results']['contents']
except KeyError:
return None
for i in d:
try:
c = i['itemSectionRenderer']['contents']
except KeyError:
continue
except TypeError:
continue
for v in c:
try:
v['videoWithContextRenderer']
return c
except KeyError:
continue
# for internal API
def parse_related_video_data4(data):
try:
d = data['onResponseReceivedEndpoints']
except KeyError:
return None
else:
for key in d:
try:
return key['appendContinuationItemsAction']['continuationItems']
except KeyError:
continue
| def parse_related_video_data1(data):
try:
d = data['contents']['singleColumnWatchNextResults']['results']['results']['contents']
except KeyError:
return None
for i in d:
try:
c = i['itemSectionRenderer']['contents']
except KeyError:
continue
except TypeError:
continue
for v in c:
try:
v['compactVideoRenderer']
return c
except KeyError:
continue
def parse_related_video_data2(data):
try:
return data['contents']['twoColumnWatchNextResults']['secondaryResults']['secondaryResults']['results']
except KeyError:
return None
def parse_related_video_data3(data):
try:
d = data['contents']['singleColumnWatchNextResults']['results']['results']['contents']
except KeyError:
return None
for i in d:
try:
c = i['itemSectionRenderer']['contents']
except KeyError:
continue
except TypeError:
continue
for v in c:
try:
v['videoWithContextRenderer']
return c
except KeyError:
continue
def parse_related_video_data4(data):
try:
d = data['onResponseReceivedEndpoints']
except KeyError:
return None
else:
for key in d:
try:
return key['appendContinuationItemsAction']['continuationItems']
except KeyError:
continue |
t = int(input())
while(t!=0):
n = input()
if(n=='b' or n=='B'):
print('BattleShip')
elif(n=='c' or n=='C'):
print('Cruiser')
elif(n=='d' or n=='D'):
print('Destroyer')
elif(n=='f' or n=='F'):
print('Frigate')
t-=1
| t = int(input())
while t != 0:
n = input()
if n == 'b' or n == 'B':
print('BattleShip')
elif n == 'c' or n == 'C':
print('Cruiser')
elif n == 'd' or n == 'D':
print('Destroyer')
elif n == 'f' or n == 'F':
print('Frigate')
t -= 1 |
"""
not solved
"""
def get_prime(max_number):
number_tiles = set(range(2, max_number))
prime_list = list()
while len(number_tiles) > 0:
min_number = min(number_tiles)
prime_list.append(min_number)
delete_tiles = set(range(min_number, max_number, min_number))
number_tiles = number_tiles - delete_tiles
print(len(number_tiles))
return prime_list
if __name__ == "__main__":
# print(get_prime(987654321))
pass
| """
not solved
"""
def get_prime(max_number):
number_tiles = set(range(2, max_number))
prime_list = list()
while len(number_tiles) > 0:
min_number = min(number_tiles)
prime_list.append(min_number)
delete_tiles = set(range(min_number, max_number, min_number))
number_tiles = number_tiles - delete_tiles
print(len(number_tiles))
return prime_list
if __name__ == '__main__':
pass |
class NoSuchFileOrDirectory(Exception):
def __init__(self):
super().__init__("no such file or directory")
class FileOrDirectoryAlreadyExist(Exception):
def __init__(self):
super().__init__("file or directory already exist")
class NotAnDirectory(Exception):
def __init__(self):
super().__init__("not an directory")
class NotAnFile(Exception):
def __init__(self):
super().__init__("not an file")
class NotAnIntiger(Exception):
def __init__(self):
super().__init__("not an intiger")
class PermisionDenied(Exception):
def __init__(self):
super().__init__("permision denied")
class NoSuchIndex(Exception):
def __init__(self):
super().__init__("no such index")
| class Nosuchfileordirectory(Exception):
def __init__(self):
super().__init__('no such file or directory')
class Fileordirectoryalreadyexist(Exception):
def __init__(self):
super().__init__('file or directory already exist')
class Notandirectory(Exception):
def __init__(self):
super().__init__('not an directory')
class Notanfile(Exception):
def __init__(self):
super().__init__('not an file')
class Notanintiger(Exception):
def __init__(self):
super().__init__('not an intiger')
class Permisiondenied(Exception):
def __init__(self):
super().__init__('permision denied')
class Nosuchindex(Exception):
def __init__(self):
super().__init__('no such index') |
class Solution:
def findTheDifference(self, s: str, t: str) -> str:
seen = {}
for ch in s:
if ch not in seen:
seen[ch] = 0
seen[ch] += 1
for ch in t:
if ch in seen and seen[ch] > 0:
seen[ch] -= 1
else:
return ch
return ""
if __name__ == '__main__':
s = "abcd"
t = "bdeac"
print(f"Input: s = {s}, t = {t}")
print(f"Output: {Solution().findTheDifference(s, t)}")
| class Solution:
def find_the_difference(self, s: str, t: str) -> str:
seen = {}
for ch in s:
if ch not in seen:
seen[ch] = 0
seen[ch] += 1
for ch in t:
if ch in seen and seen[ch] > 0:
seen[ch] -= 1
else:
return ch
return ''
if __name__ == '__main__':
s = 'abcd'
t = 'bdeac'
print(f'Input: s = {s}, t = {t}')
print(f'Output: {solution().findTheDifference(s, t)}') |
"""Framework errors."""
class Error(Exception):
"""Base error type."""
class ConfigError(Error):
"""Raised on configuration error."""
class DocumentError(Error):
"""Base class for all document related errors."""
message = "document error"
def __init__(self, message=None, document=None, field=None, value=None):
"""Format a document or field error message."""
message = message or self.message
if document:
if isinstance(document, type):
document = document.__name__
elif isinstance(document, object):
document = document.__class__.__name__
if field:
message = "{}: {}.{} = {}".format(message, document, field, repr(value))
else: # pragma: no cover
message = "{}: {}".format(message, document)
elif field and value:
message = "{}: {} = {}".format(message, field, repr(value))
elif field: # pragma: no cover
message = "{}: {}".format(message, field)
elif value:
message = "{}: {}".format(message, repr(value))
super(DocumentError, self).__init__(message)
class OperationError(DocumentError):
"""Raised when an operation fails for a document."""
message = "operation failed"
class ValidationError(DocumentError):
"""Raised when document or field validation fails."""
message = "value is invalid"
class EncodingError(DocumentError):
"""Raised on field encoding/decoding error."""
encode_message = "failed to encode value"
decode_message = "failed to decode value"
def __init__(self, message=None, document=None, field=None, value=None, encode=True):
"""Format an encoding error message."""
self.message = encode and self.encode_message or self.decode_message
super(EncodingError, self).__init__(message, document, field, value)
| """Framework errors."""
class Error(Exception):
"""Base error type."""
class Configerror(Error):
"""Raised on configuration error."""
class Documenterror(Error):
"""Base class for all document related errors."""
message = 'document error'
def __init__(self, message=None, document=None, field=None, value=None):
"""Format a document or field error message."""
message = message or self.message
if document:
if isinstance(document, type):
document = document.__name__
elif isinstance(document, object):
document = document.__class__.__name__
if field:
message = '{}: {}.{} = {}'.format(message, document, field, repr(value))
else:
message = '{}: {}'.format(message, document)
elif field and value:
message = '{}: {} = {}'.format(message, field, repr(value))
elif field:
message = '{}: {}'.format(message, field)
elif value:
message = '{}: {}'.format(message, repr(value))
super(DocumentError, self).__init__(message)
class Operationerror(DocumentError):
"""Raised when an operation fails for a document."""
message = 'operation failed'
class Validationerror(DocumentError):
"""Raised when document or field validation fails."""
message = 'value is invalid'
class Encodingerror(DocumentError):
"""Raised on field encoding/decoding error."""
encode_message = 'failed to encode value'
decode_message = 'failed to decode value'
def __init__(self, message=None, document=None, field=None, value=None, encode=True):
"""Format an encoding error message."""
self.message = encode and self.encode_message or self.decode_message
super(EncodingError, self).__init__(message, document, field, value) |
"""
This file references all the environment variables that can be passed to the
application, and their default value.
Kubemen will load its configuration from this file first, and then will try to
override each variable with what is defined in the process environment. If a
matching variable is found in the environment, its value will be casted to the
type of the default value defined here.
Kubemen will then follow the same process if a matching annotation is found in
a watched resource, and modify its behavior for the handling of this particular
object. But only connector prefixed options can be modified this way.
Please refer to the description of :class:`~kubemen.connectors.base.Connector`
for more information on this behavior.
"""
#: This is only useful when running locally. When using the Docker image, you
#: should pass those as arguments of gunicorn with the ``GUNICORN_CMD_ARGS``
#: environment variable (``GUNICORN_CMD_ARGS="-b 0.0.0.0:8080"``, for example).
APP_HOST, APP_PORT = "0.0.0.0", 8080
#: This is only useful when running locally (hot reload on code changes).
#: Production setups must disable it by passing APP_DEBUG=0 as an environment
#: variable.
APP_DEBUG = True
#: Prefix to use for Kubemen-specific annotations. Must not contain a slash.
ANNOTATIONS_PREFIX = "kubemen.numberly.com"
#: How to display usernames, given the groups matched with
#: :obj:`~USERNAME_REGEXP`.
USERNAME_FORMAT = "{0}"
#: What usernames should be taken into account and how to extract them.
#: If you want to keep everything, and not just the first part of an email as
#: in the default value, use the following one (be cautious though, this will
#: allow serviceaccounts): ``USERNAMES_REGEX = r"(.*)"``
USERNAME_REGEXP = r"(.*)@.*"
#: RegExps of YAML paths that shouldn't be taken into account when searching
#: differences between two versions of an object that changed.
USELESS_DIFF_PATHS_REGEXPS = (
r'\.metadata\.generation',
r'.*\.annotations\["kubectl\.kubernetes\.io/last-applied-configuration"\]',
r'.*\.annotations\["kubectl\.kubernetes\.io/restartedAt"\]'
)
#: List of connectors that can be used through annotations, even if the
#: connector is disabled globally.
AVAILABLE_CONNECTORS = (
"kubemen.connectors.mattermost.Mattermost",
"kubemen.connectors.email.Email"
)
#: Enable the Mattermost connector globally.
#: This can still be overriden for any given resource with the
#: ``kubemen.numberly.com/mattermost.enable`` annotation. See
#: :obj:`AVAILABLE_CONNECTORS` if you wish to forbid this connector.
MATTERMOST_ENABLE = False
#: Hook URL as defined with the "Incoming Webhook" configuration. This is the
#: URL that Kubemen will use to send messages to Mattermost.
MATTERMOST_HOOK_URL = ""
#: The Mattermost channel on which the message should be posted. Keep blank to
#: use the default channel (the one that was configured in Mattermost when
#: creating the webhook). Make sure that the webhook is not "locked" to a
#: channel in its configuration.
MATTERMOST_CHANNEL_ID = ""
#: How to format messages sent to Mattermost.
MATTERMOST_TEXT_MESSAGE_FORMAT = "{emoji} **{operation}** of `{kind}` **{name}** by `{username}` in `{namespace}` {hashtag}"
#: Whether to list images used by Deployments or not.
MATTERMOST_ATTACH_IMAGES = True
#: Whether to display a diff of the resource's configuration or not.
MATTERMOST_ATTACH_DIFF = True
#: Whether to add a fancy badge to attachments (it's more visible) or not.
MATTERMOST_ATTACH_BADGE = True
#: If :obj:`~MATTERMOST_ATTACH_BADGE` is true, define the badge URL.
MATTERMOST_BADGE_URL = "https://raw.githubusercontent.com/numberly/kubemen/master/artwork/icons/kubemen.png"
#: The Mattermost custom username for the message that will be posted.
#: If set, this will override name configured in Mattermost at the creation of the webhook.
MATTERMOST_USERNAME = ""
#: The Mattermost custom avatar for the message that will be posted.
#: If set, this will override the image configured in Mattermost at the creation of the webhook.
MATTERMOST_ICON_URL = ""
#: Whether to replace the default or custom Mattermost avatar and name with
#: a Watchmen character (i.e. `Rorschach`, `Doctor Manhattan`, etc) or not.
MATTERMOST_USE_RANDOM_CHARACTER = True
#: If :obj:`~MATTERMOST_USE_RANDOM_CHARACTER` is true, define the base URL on
#: which the icons of Watchmen can be fetched.
MATTERMOST_ICONS_BASE_URL = "https://raw.githubusercontent.com/numberly/kubemen/master/artwork/icons/"
#: Enable the Email connector globally.
#: This can still be overriden for any given resource with the
#: ``kubemen.numberly.com/mattermost.enable`` annotation. See
#: :obj:`AVAILABLE_CONNECTORS` if you wish to forbid this connector.
EMAIL_ENABLE = False
| """
This file references all the environment variables that can be passed to the
application, and their default value.
Kubemen will load its configuration from this file first, and then will try to
override each variable with what is defined in the process environment. If a
matching variable is found in the environment, its value will be casted to the
type of the default value defined here.
Kubemen will then follow the same process if a matching annotation is found in
a watched resource, and modify its behavior for the handling of this particular
object. But only connector prefixed options can be modified this way.
Please refer to the description of :class:`~kubemen.connectors.base.Connector`
for more information on this behavior.
"""
(app_host, app_port) = ('0.0.0.0', 8080)
app_debug = True
annotations_prefix = 'kubemen.numberly.com'
username_format = '{0}'
username_regexp = '(.*)@.*'
useless_diff_paths_regexps = ('\\.metadata\\.generation', '.*\\.annotations\\["kubectl\\.kubernetes\\.io/last-applied-configuration"\\]', '.*\\.annotations\\["kubectl\\.kubernetes\\.io/restartedAt"\\]')
available_connectors = ('kubemen.connectors.mattermost.Mattermost', 'kubemen.connectors.email.Email')
mattermost_enable = False
mattermost_hook_url = ''
mattermost_channel_id = ''
mattermost_text_message_format = '{emoji} **{operation}** of `{kind}` **{name}** by `{username}` in `{namespace}` {hashtag}'
mattermost_attach_images = True
mattermost_attach_diff = True
mattermost_attach_badge = True
mattermost_badge_url = 'https://raw.githubusercontent.com/numberly/kubemen/master/artwork/icons/kubemen.png'
mattermost_username = ''
mattermost_icon_url = ''
mattermost_use_random_character = True
mattermost_icons_base_url = 'https://raw.githubusercontent.com/numberly/kubemen/master/artwork/icons/'
email_enable = False |
AL = 'AL'
NL = 'NL'
MLB = 'MLB'
LEAGUES = [AL, NL, MLB]
def mlb_teams(year):
""" For given year return teams active in the majors.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
year = int(year)
return sorted(al_teams(year) + nl_teams(year))
def al_teams(year):
""" For given year return teams existing in AL.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
teams = []
year = int(year)
if year >= 1901:
teams.append('BOS')
teams.append('CLE')
teams.append('CHW')
teams.append('DET')
else:
return []
if year >= 1903:
teams.append('NYY')
if year >= 1969:
teams.append('KCR')
if year >= 1977:
teams.append('SEA')
teams.append('TOR')
league = AL
angels(year, teams)
astros(year, teams, league)
athletics(year, teams)
brewers(year, teams, league)
orioles(year, teams)
rangers(year, teams)
rays(year, teams)
twins(year, teams)
return sorted(teams)
def nl_teams(year):
""" For given year return teams existing in NL.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
teams = []
year = int(year)
if year >= 1876:
teams.append('CHC')
else:
return []
if year >= 1883:
teams.append('PHI')
if year >= 1887:
teams.append('PIT')
if year >= 1890:
teams.append('CIN')
if year >= 1892:
teams.append('STL')
if year >= 1962:
teams.append('NYM')
if year >= 1969:
teams.append('SDP')
if year >= 1993:
teams.append('COL')
if year >= 1996:
teams.append('ARI')
league = NL
astros(year, teams, league)
braves(year, teams)
brewers(year, teams, league)
dodgers(year, teams)
giants(year, teams)
marlins(year, teams)
nationals(year, teams)
return sorted(teams)
TEAMS = {AL : al_teams, NL : nl_teams, MLB : mlb_teams}
def angels(year, teams):
""" Append appropriate Angels abbreviation for year if applicable.
"""
if year >= 2005:
teams.append('LAA')
elif year >= 1997:
teams.append('ANA')
elif year >= 1965:
teams.append('CAL')
elif year >= 1961:
teams.append('LAA')
def astros(year, teams, league):
""" Append appropriate Astros abbreviation for year if applicable.
"""
if year >= 2013 and league == AL:
teams.append('HOU')
elif year >= 1962 and year < 2013 and league == NL:
teams.append('HOU')
def athletics(year, teams):
""" Append appropriate Athletics abbreviation for year if applicable.
"""
if year >= 1968:
teams.append('OAK')
elif year >= 1955:
teams.append('KCA')
elif year >= 1901:
teams.append('PHA')
def braves(year, teams):
""" Append appropriate Braves abbreviation for year if applicable.
"""
if year >= 1966:
teams.append('ATL')
elif year >= 1953:
teams.append('MLN')
elif year >= 1876:
teams.append('BSN')
def brewers(year, teams, league):
""" Append appropriate Brewers abbreviation for year if applicable.
"""
if year >= 1970:
if year >= 1993 and league == NL:
teams.append('MIL')
elif year < 1993 and league == AL:
teams.append('MIL')
elif year == 1969 and league == AL:
teams.append('SEP')
def dodgers(year, teams):
""" Append appropriate Dodgers abbreviation for year if applicable.
"""
if year >= 1958:
teams.append('LAD')
elif year >= 1884:
teams.append('BRO')
def giants(year, teams):
""" Append appropriate Giants abbreviation for year if applicable.
"""
if year >= 1958:
teams.append('SFG')
elif year >= 1883:
teams.append('NYG')
def marlins(year, teams):
""" Append appropriate Marlins abbreviation for year if applicable.
"""
if year >= 2012:
teams.append('MIA')
elif year >= 1993:
teams.append('FLA')
def nationals(year, teams):
""" Append appropriate Nationals abbreviation for year if applicable.
"""
if year >= 2005:
teams.append('WSN')
elif year >= 1969:
teams.append('MON')
def orioles(year, teams):
""" Append appropriate Orioles abbreviation for year if applicable.
"""
if year >= 1954:
teams.append('BAL')
elif year >= 1902:
teams.append('SLB')
elif year == 1901:
teams.append('MLA')
def rangers(year, teams):
""" Append appropriate Rangers abbreviation for year if applicable.
"""
if year >= 1972:
teams.append('TEX')
elif year >= 1961:
teams.append('WSA')
def rays(year, teams):
""" Append appropriate Rays abbreviation for year if applicable.
"""
if year >= 2008:
teams.append('TBR')
elif year >= 1998:
teams.append('TBD')
def twins(year, teams):
""" Append appropriate Twins abbreviation for year if applicable.
"""
if year >= 1961:
teams.append('MIN')
elif year >= 1901:
teams.append('WSH')
def valid_teams_subset(year, teams):
""" Ensure teams list is valid.
"""
all_teams = mlb_teams(int(year))
for team in teams:
if team not in all_teams:
return False
return True
| al = 'AL'
nl = 'NL'
mlb = 'MLB'
leagues = [AL, NL, MLB]
def mlb_teams(year):
""" For given year return teams active in the majors.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
year = int(year)
return sorted(al_teams(year) + nl_teams(year))
def al_teams(year):
""" For given year return teams existing in AL.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
teams = []
year = int(year)
if year >= 1901:
teams.append('BOS')
teams.append('CLE')
teams.append('CHW')
teams.append('DET')
else:
return []
if year >= 1903:
teams.append('NYY')
if year >= 1969:
teams.append('KCR')
if year >= 1977:
teams.append('SEA')
teams.append('TOR')
league = AL
angels(year, teams)
astros(year, teams, league)
athletics(year, teams)
brewers(year, teams, league)
orioles(year, teams)
rangers(year, teams)
rays(year, teams)
twins(year, teams)
return sorted(teams)
def nl_teams(year):
""" For given year return teams existing in NL.
Caveat, list is not complete; those included are only those
with a current team still active.
"""
teams = []
year = int(year)
if year >= 1876:
teams.append('CHC')
else:
return []
if year >= 1883:
teams.append('PHI')
if year >= 1887:
teams.append('PIT')
if year >= 1890:
teams.append('CIN')
if year >= 1892:
teams.append('STL')
if year >= 1962:
teams.append('NYM')
if year >= 1969:
teams.append('SDP')
if year >= 1993:
teams.append('COL')
if year >= 1996:
teams.append('ARI')
league = NL
astros(year, teams, league)
braves(year, teams)
brewers(year, teams, league)
dodgers(year, teams)
giants(year, teams)
marlins(year, teams)
nationals(year, teams)
return sorted(teams)
teams = {AL: al_teams, NL: nl_teams, MLB: mlb_teams}
def angels(year, teams):
""" Append appropriate Angels abbreviation for year if applicable.
"""
if year >= 2005:
teams.append('LAA')
elif year >= 1997:
teams.append('ANA')
elif year >= 1965:
teams.append('CAL')
elif year >= 1961:
teams.append('LAA')
def astros(year, teams, league):
""" Append appropriate Astros abbreviation for year if applicable.
"""
if year >= 2013 and league == AL:
teams.append('HOU')
elif year >= 1962 and year < 2013 and (league == NL):
teams.append('HOU')
def athletics(year, teams):
""" Append appropriate Athletics abbreviation for year if applicable.
"""
if year >= 1968:
teams.append('OAK')
elif year >= 1955:
teams.append('KCA')
elif year >= 1901:
teams.append('PHA')
def braves(year, teams):
""" Append appropriate Braves abbreviation for year if applicable.
"""
if year >= 1966:
teams.append('ATL')
elif year >= 1953:
teams.append('MLN')
elif year >= 1876:
teams.append('BSN')
def brewers(year, teams, league):
""" Append appropriate Brewers abbreviation for year if applicable.
"""
if year >= 1970:
if year >= 1993 and league == NL:
teams.append('MIL')
elif year < 1993 and league == AL:
teams.append('MIL')
elif year == 1969 and league == AL:
teams.append('SEP')
def dodgers(year, teams):
""" Append appropriate Dodgers abbreviation for year if applicable.
"""
if year >= 1958:
teams.append('LAD')
elif year >= 1884:
teams.append('BRO')
def giants(year, teams):
""" Append appropriate Giants abbreviation for year if applicable.
"""
if year >= 1958:
teams.append('SFG')
elif year >= 1883:
teams.append('NYG')
def marlins(year, teams):
""" Append appropriate Marlins abbreviation for year if applicable.
"""
if year >= 2012:
teams.append('MIA')
elif year >= 1993:
teams.append('FLA')
def nationals(year, teams):
""" Append appropriate Nationals abbreviation for year if applicable.
"""
if year >= 2005:
teams.append('WSN')
elif year >= 1969:
teams.append('MON')
def orioles(year, teams):
""" Append appropriate Orioles abbreviation for year if applicable.
"""
if year >= 1954:
teams.append('BAL')
elif year >= 1902:
teams.append('SLB')
elif year == 1901:
teams.append('MLA')
def rangers(year, teams):
""" Append appropriate Rangers abbreviation for year if applicable.
"""
if year >= 1972:
teams.append('TEX')
elif year >= 1961:
teams.append('WSA')
def rays(year, teams):
""" Append appropriate Rays abbreviation for year if applicable.
"""
if year >= 2008:
teams.append('TBR')
elif year >= 1998:
teams.append('TBD')
def twins(year, teams):
""" Append appropriate Twins abbreviation for year if applicable.
"""
if year >= 1961:
teams.append('MIN')
elif year >= 1901:
teams.append('WSH')
def valid_teams_subset(year, teams):
""" Ensure teams list is valid.
"""
all_teams = mlb_teams(int(year))
for team in teams:
if team not in all_teams:
return False
return True |
# https://dmoj.ca/problem/dwite09c1p3
# https://dmoj.ca/submission/2184915
for i in range(5):
n = int(input())
nums = []
for j in range(n):
nums.append(int(input()))
m = 0
for j in range(1,n+2):
try:
nums.index(j)
except ValueError:
m = j
break
print(m) | for i in range(5):
n = int(input())
nums = []
for j in range(n):
nums.append(int(input()))
m = 0
for j in range(1, n + 2):
try:
nums.index(j)
except ValueError:
m = j
break
print(m) |
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
res = 0
n = len(matrix)
if n==0:
return res
m = len(matrix[0])
dp = [[0 for k in range(m)] for l in range(n)]
for i in range(n):
for j in range(m):
if matrix[i][j] == '1':
dp[i][j] = 1
res = 1
for i in range(1,n):
for j in range(1,m):
if (dp[i][j] != 0):
dp[i][j] = min(min(dp[i-1][j-1],dp[i-1][j]),dp[i][j-1]) + 1
if res < dp[i][j]:
res = dp[i][j]
return res*res
| class Solution:
def maximal_square(self, matrix: List[List[str]]) -> int:
res = 0
n = len(matrix)
if n == 0:
return res
m = len(matrix[0])
dp = [[0 for k in range(m)] for l in range(n)]
for i in range(n):
for j in range(m):
if matrix[i][j] == '1':
dp[i][j] = 1
res = 1
for i in range(1, n):
for j in range(1, m):
if dp[i][j] != 0:
dp[i][j] = min(min(dp[i - 1][j - 1], dp[i - 1][j]), dp[i][j - 1]) + 1
if res < dp[i][j]:
res = dp[i][j]
return res * res |
# -*- coding:utf-8 -*-
# https://leetcode.com/problems/length-of-last-word/description/
class Solution(object):
def lengthOfLastWord(self, s):
"""
:type s: str
:rtype: int
"""
ret = 0
pos = len(s) - 1
while pos >= 0 and s[pos] == ' ':
pos -= 1
while pos >= 0 and s[pos] != ' ':
pos -= 1
ret += 1
return ret | class Solution(object):
def length_of_last_word(self, s):
"""
:type s: str
:rtype: int
"""
ret = 0
pos = len(s) - 1
while pos >= 0 and s[pos] == ' ':
pos -= 1
while pos >= 0 and s[pos] != ' ':
pos -= 1
ret += 1
return ret |
def countAndSay(n):
seq = "1"
for i in range(n-1):
seq = getNext(seq)
return seq
def getNext(seq):
i, next_seq = 0, ""
while i < len(seq):
count = 1
while i < len(seq) -1 and seq[i] == seq[i+1]:
count += 1
i += 1
next_seq += str(count) + seq[i]
i += 1
return next_seq
| def count_and_say(n):
seq = '1'
for i in range(n - 1):
seq = get_next(seq)
return seq
def get_next(seq):
(i, next_seq) = (0, '')
while i < len(seq):
count = 1
while i < len(seq) - 1 and seq[i] == seq[i + 1]:
count += 1
i += 1
next_seq += str(count) + seq[i]
i += 1
return next_seq |
# coding=utf-8
"""Edit distance problem Python solution."""
def edit_dist(s1, s2):
dp = [[None for y in range(len(s2) + 1)] for x in range(len(s1) + 1)]
for x in range(len(s1) + 1):
for y in range(len(s2) + 1):
if not x:
dp[x][y] = y
elif not y:
dp[x][y] = x
elif s1[x - 1] == s2[y - 1]:
dp[x][y] = dp[x - 1][y - 1]
else:
dp[x][y] = 1 + min(dp[x][y - 1], dp[x - 1][y], dp[x - 1][y - 1])
return dp[len(s1)][len(s2)]
if __name__ == "__main__":
s1 = "sunday"
s2 = "saturday"
print(edit_dist(s1, s2))
| """Edit distance problem Python solution."""
def edit_dist(s1, s2):
dp = [[None for y in range(len(s2) + 1)] for x in range(len(s1) + 1)]
for x in range(len(s1) + 1):
for y in range(len(s2) + 1):
if not x:
dp[x][y] = y
elif not y:
dp[x][y] = x
elif s1[x - 1] == s2[y - 1]:
dp[x][y] = dp[x - 1][y - 1]
else:
dp[x][y] = 1 + min(dp[x][y - 1], dp[x - 1][y], dp[x - 1][y - 1])
return dp[len(s1)][len(s2)]
if __name__ == '__main__':
s1 = 'sunday'
s2 = 'saturday'
print(edit_dist(s1, s2)) |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module contains errors/exceptions and warnings of general use for
sunpy. Exceptions that are specific to a given subpackage should *not*
be here, but rather in the particular subpackage.
"""
class SunpyWarning(Warning):
"""
The base warning class from which all Sunpy warnings should inherit.
"""
class SunpyUserWarning(UserWarning, SunpyWarning):
"""
The primary warning class for Sunpy.
Use this if you do not need a specific sub-class.
"""
class SunpyDeprecationWarning(SunpyWarning):
"""
A warning class to indicate a deprecated feature.
"""
| """
This module contains errors/exceptions and warnings of general use for
sunpy. Exceptions that are specific to a given subpackage should *not*
be here, but rather in the particular subpackage.
"""
class Sunpywarning(Warning):
"""
The base warning class from which all Sunpy warnings should inherit.
"""
class Sunpyuserwarning(UserWarning, SunpyWarning):
"""
The primary warning class for Sunpy.
Use this if you do not need a specific sub-class.
"""
class Sunpydeprecationwarning(SunpyWarning):
"""
A warning class to indicate a deprecated feature.
""" |
# -*- coding: utf-8 -*-
def get_default_options(num_machines=1, max_wallclock_seconds=1800):
"""
Return an instance of the options dictionary with the minimally required parameters
for a JobCalculation and set to default values unless overriden
:param num_machines: set the number of nodes, default=1
:param max_wallclock_seconds: set the maximum number of wallclock seconds, default=1800
"""
return {
'resources': {
'num_machines': int(num_machines)
},
'max_wallclock_seconds': int(max_wallclock_seconds),
} | def get_default_options(num_machines=1, max_wallclock_seconds=1800):
"""
Return an instance of the options dictionary with the minimally required parameters
for a JobCalculation and set to default values unless overriden
:param num_machines: set the number of nodes, default=1
:param max_wallclock_seconds: set the maximum number of wallclock seconds, default=1800
"""
return {'resources': {'num_machines': int(num_machines)}, 'max_wallclock_seconds': int(max_wallclock_seconds)} |
# Instead of parsing cromwell metadata we pass the intermediate SS2 files
ANALYSIS_FILE_INPUT = {
"input_uuid": "0244354d-cf37-4483-8db3-425b7e504ca6",
"input_file": "",
"pipeline_type": "SS2",
"workspace_version": "2021-10-19T17:43:52.000000Z",
"ss2_bam_file": "call-HISAT2PairedEnd/cacheCopy/0244354d-cf37-4483-8db3-425b7e504ca6_qc.bam",
"ss2_bai_file": "call-HISAT2PairedEnd/cacheCopy/0244354d-cf37-4483-8db3-425b7e504ca6_qc.bam.bai",
"project_level": False,
}
| analysis_file_input = {'input_uuid': '0244354d-cf37-4483-8db3-425b7e504ca6', 'input_file': '', 'pipeline_type': 'SS2', 'workspace_version': '2021-10-19T17:43:52.000000Z', 'ss2_bam_file': 'call-HISAT2PairedEnd/cacheCopy/0244354d-cf37-4483-8db3-425b7e504ca6_qc.bam', 'ss2_bai_file': 'call-HISAT2PairedEnd/cacheCopy/0244354d-cf37-4483-8db3-425b7e504ca6_qc.bam.bai', 'project_level': False} |
def login():
for n in range(3):
username = input("username: ")
password = input("password: ")
print()
if username == "admin" and password == "super_secure":
return True
print("Nice try @ssh013")
def main():
session = login()
if session:
print("Welcome")
if __name__ == '__main__':
main()
| def login():
for n in range(3):
username = input('username: ')
password = input('password: ')
print()
if username == 'admin' and password == 'super_secure':
return True
print('Nice try @ssh013')
def main():
session = login()
if session:
print('Welcome')
if __name__ == '__main__':
main() |
'''
Rooms
'''
f_number = int(input())
l_number = int(input())
step = l_number - f_number + 1
if ((l_number % step == 0) and (f_number % step == 1)):
print('YES')
elif (step == 1):
print('YES')
else:
print('NO')
| """
Rooms
"""
f_number = int(input())
l_number = int(input())
step = l_number - f_number + 1
if l_number % step == 0 and f_number % step == 1:
print('YES')
elif step == 1:
print('YES')
else:
print('NO') |
class ConfigError(Exception):
...
class HTTPException(Exception):
def __init__(self, status_code: int, detail: str = None) -> None:
self.status_code = status_code
self.detail = detail or 'no detail'
def __repr__(self) -> str:
class_name = self.__class__.__name__
return f"{class_name}(status_code={self.status_code!r}, detail={self.detail!r})"
| class Configerror(Exception):
...
class Httpexception(Exception):
def __init__(self, status_code: int, detail: str=None) -> None:
self.status_code = status_code
self.detail = detail or 'no detail'
def __repr__(self) -> str:
class_name = self.__class__.__name__
return f'{class_name}(status_code={self.status_code!r}, detail={self.detail!r})' |
# https://leetcode.com/problems/find-numbers-with-even-number-of-digits/
class Solution:
def findNumbers(self, nums):
#1 with string and len
count=0
for i in range(0,len(nums)):
if (len(str(nums[i]))%2==0): count+=1
return count
'''
#2 Using division
count=0
for i in nums:
cur=0
while(i>0):
cur+=1
i=i//10
if cur%2==0: count+=1
return count
#3 using log and floor
#floor(log10(num)) gives 1 value less than length of integer ie odd
return sum((floor(log10(i)))%2 for i in nums)
'''
| class Solution:
def find_numbers(self, nums):
count = 0
for i in range(0, len(nums)):
if len(str(nums[i])) % 2 == 0:
count += 1
return count
'\n #2 Using division\n count=0\n for i in nums:\n cur=0\n while(i>0):\n cur+=1\n i=i//10\n if cur%2==0: count+=1\n return count \n \n #3 using log and floor \n #floor(log10(num)) gives 1 value less than length of integer ie odd\n return sum((floor(log10(i)))%2 for i in nums)\n ' |
sounds = {
#'ON': 'data/bin/sounds/on.mp3',
'SUCCESS': ['data/bin/sounds/wicked_sick.mp3', 'data/bin/sounds/holyshit.mp3'],
#'FAIL': 'data/bin/sounds/fail.mp3',
'STAGED': 'data/bin/sounds/pwned.mp3',
'KILL': 'data/bin/sounds/killing_spree.mp3',
'STAGER': 'data/bin/sounds/firstblood.mp3'
} | sounds = {'SUCCESS': ['data/bin/sounds/wicked_sick.mp3', 'data/bin/sounds/holyshit.mp3'], 'STAGED': 'data/bin/sounds/pwned.mp3', 'KILL': 'data/bin/sounds/killing_spree.mp3', 'STAGER': 'data/bin/sounds/firstblood.mp3'} |
class CodeforcesException(Exception):
"""Exception raised for errors in the input salary.
Attributes:
message -- explanation of the error
"""
def __init__(self, message="Salary is not in (5000, 15000) range"):
self.message = message
super().__init__(self.message)
class CodeforcesCredentialException(CodeforcesException):
def __init__(self, message="Credentials provided is invalid."):
self.message = message
super().__init__(self.message)
class CodeforcesSessionException(CodeforcesException):
def __init__(self, message="Session is invalid."):
self.message = message
super().__init__(self.message)
| class Codeforcesexception(Exception):
"""Exception raised for errors in the input salary.
Attributes:
message -- explanation of the error
"""
def __init__(self, message='Salary is not in (5000, 15000) range'):
self.message = message
super().__init__(self.message)
class Codeforcescredentialexception(CodeforcesException):
def __init__(self, message='Credentials provided is invalid.'):
self.message = message
super().__init__(self.message)
class Codeforcessessionexception(CodeforcesException):
def __init__(self, message='Session is invalid.'):
self.message = message
super().__init__(self.message) |
# Data mapping functions
def zigbee2mqtt_device_name(topic, data, srv=None):
"""Return the last part of the MQTT topic name."""
return dict(name=topic.split("/")[-1])
# Filter functions
def filter_xiaomi_aqara_battery_low(topic, message):
"""Ignore messages from Xiaomi Aqara when the battery is OK."""
data = json.loads(message)
if "battery" in data:
return int(data["battery"]) > 20
return True
| def zigbee2mqtt_device_name(topic, data, srv=None):
"""Return the last part of the MQTT topic name."""
return dict(name=topic.split('/')[-1])
def filter_xiaomi_aqara_battery_low(topic, message):
"""Ignore messages from Xiaomi Aqara when the battery is OK."""
data = json.loads(message)
if 'battery' in data:
return int(data['battery']) > 20
return True |
# link:
#########
# Approach1: find rotation index using BS and using BS search on left and
# right part of rotation index
#
########
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
if len(nums) == 0:
return -1
if len(nums) == 1:
return 0 if nums[0] == target else -1
rotation_index = self.finRotationIndex(nums, 0, len(nums) - 1)
if nums[rotation_index] == target: return rotation_index
if rotation_index == 0:
return self.binarySearch(nums, 0, len(nums) - 1, target)
if target < nums[0]:
return self.binarySearch(nums, rotation_index, len(nums) - 1, target)
return self.binarySearch(nums, 0, rotation_index, target)
def finRotationIndex(self, nums, left, right):
if nums[left] < nums[right]:
return 0
while left <= right:
mid = (left + right) // 2
if nums[mid] > nums[mid + 1]:
return mid + 1
else:
if nums[mid] < nums[left]:
right = mid - 1
else:
left = mid + 1
def binarySearch(self, nums, left, right, target):
# print(nums)
while left <= right:
mid = (left + right) // 2
# print(mid)
if nums[mid] == target:
return mid
else:
if nums[mid] < target:
left = mid + 1
else:
right = mid - 1
return -1
#####
# Approach2: In single pass BS
#
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
start, end = 0, len(nums) -1
while start <= end:
mid = (start+end)//2
if nums[mid] == target:
return mid
elif nums[mid] >= nums[start]:
if target < nums[mid] and target >= nums[start]:
end = mid-1
else:
start = mid+1
else:
if target > nums[mid] and target <= nums[end]:
start = mid+1
else:
end=mid-1
return -1
#
#### | class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
if len(nums) == 0:
return -1
if len(nums) == 1:
return 0 if nums[0] == target else -1
rotation_index = self.finRotationIndex(nums, 0, len(nums) - 1)
if nums[rotation_index] == target:
return rotation_index
if rotation_index == 0:
return self.binarySearch(nums, 0, len(nums) - 1, target)
if target < nums[0]:
return self.binarySearch(nums, rotation_index, len(nums) - 1, target)
return self.binarySearch(nums, 0, rotation_index, target)
def fin_rotation_index(self, nums, left, right):
if nums[left] < nums[right]:
return 0
while left <= right:
mid = (left + right) // 2
if nums[mid] > nums[mid + 1]:
return mid + 1
elif nums[mid] < nums[left]:
right = mid - 1
else:
left = mid + 1
def binary_search(self, nums, left, right, target):
while left <= right:
mid = (left + right) // 2
if nums[mid] == target:
return mid
elif nums[mid] < target:
left = mid + 1
else:
right = mid - 1
return -1
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
(start, end) = (0, len(nums) - 1)
while start <= end:
mid = (start + end) // 2
if nums[mid] == target:
return mid
elif nums[mid] >= nums[start]:
if target < nums[mid] and target >= nums[start]:
end = mid - 1
else:
start = mid + 1
elif target > nums[mid] and target <= nums[end]:
start = mid + 1
else:
end = mid - 1
return -1 |
class Solution:
def restoreString(self, s: str, indices: List[int]) -> str:
# Time complexity O(n)
array = [0] * len(indices)
for idx in range(len(indices)):
array[indices[idx]] = s[idx]
return "".join(array)
class Solution:
def restoreString(self, s: str, indices: List[int]) -> str:
HashMap = {}
string = str()
for idx in range(len(indices)):
HashMap[indices[idx]] = s[idx]
for idx in range(len(indices)):
string += HashMap[idx]
return string
| class Solution:
def restore_string(self, s: str, indices: List[int]) -> str:
array = [0] * len(indices)
for idx in range(len(indices)):
array[indices[idx]] = s[idx]
return ''.join(array)
class Solution:
def restore_string(self, s: str, indices: List[int]) -> str:
hash_map = {}
string = str()
for idx in range(len(indices)):
HashMap[indices[idx]] = s[idx]
for idx in range(len(indices)):
string += HashMap[idx]
return string |
FI_NAME, PYPATH = (
"preparation.py",
"/home/nversbra/anaconda3/envs/py36/bin/python"
)
with open('command_lines.txt', 'w') as f_output:
for i in range(4096):
n, file_name = i, ""
while n > 0:
file_name += str(n % 2)
n //= 2
file_name = file_name + "0"*(12 - len(file_name))
f_output.write(" ".join(
[PYPATH, FI_NAME, file_name + '\n']
))
| (fi_name, pypath) = ('preparation.py', '/home/nversbra/anaconda3/envs/py36/bin/python')
with open('command_lines.txt', 'w') as f_output:
for i in range(4096):
(n, file_name) = (i, '')
while n > 0:
file_name += str(n % 2)
n //= 2
file_name = file_name + '0' * (12 - len(file_name))
f_output.write(' '.join([PYPATH, FI_NAME, file_name + '\n'])) |
{
"targets" : [
{
"target_name" : "edflib",
"sources" : ["../lib/edf.cpp", "edfjs.cpp"],
"conditions" : [
[ "OS == \"mac\"", {
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : ["-std=c++11","-stdlib=libc++"],
"OTHER_LDFLAGS": ["-stdlib=libc++"],
"MACOSX_DEPLOYMENT_TARGET": "10.7"
}
}]
]
}
]
} | {'targets': [{'target_name': 'edflib', 'sources': ['../lib/edf.cpp', 'edfjs.cpp'], 'conditions': [['OS == "mac"', {'xcode_settings': {'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++'], 'OTHER_LDFLAGS': ['-stdlib=libc++'], 'MACOSX_DEPLOYMENT_TARGET': '10.7'}}]]}]} |
def number(a,b):
if(a%2==0 and b%2==0):
print(min(a,b))
# if(a>b):
# print (b)
# else:
# print (a)
elif(a%2!=0 and b%2!=0):
print(max(a,b))
# if(a>b):
# print (a)
# else:
# print (b)
else:
print(max(a,b))
# if(a>b):
# print (a)
# else:
# print (b)
a = int(input("Enter the 1st number"))
b = int(input("Enter the 2nd number"))
number(a,b)
| def number(a, b):
if a % 2 == 0 and b % 2 == 0:
print(min(a, b))
elif a % 2 != 0 and b % 2 != 0:
print(max(a, b))
else:
print(max(a, b))
a = int(input('Enter the 1st number'))
b = int(input('Enter the 2nd number'))
number(a, b) |
class Bin:
def __init__(self, index, floor, ceiling, is_last_bin):
self.index = index
self.floor = floor
self.ceiling = ceiling
self.range = self.floor - self.ceiling
self.is_last_bin = is_last_bin
self.members_asc = []
def count(self):
return len(self.members_asc)
def add(self, val):
if self.is_last_bin == True:
if (self.floor <= val) and (val <= self.ceiling):
self.members_asc.append(val)
else:
return False
else: # if self.is_last_bin == False
if (self.floor <= val) and (val < self.ceiling):
self.members_asc.append(val)
else:
return False
return True
def sort(self):
self.members_asc.sort()
def __unicode__(self):
s = '[%s, %s' % (str(self.floor), str(self.ceiling))
if (self.is_last_bin == False):
s = s + ')'
else:
s = s + ']'
s = s + ': ' + str(self.count())
return s
def __str__(self):
s = '[%.4f, %.4f' % (self.floor, self.ceiling)
if (self.is_last_bin == False):
s = s + ')'
else:
s = s + ']'
s = s + ': ' + str(self.count())
return s
| class Bin:
def __init__(self, index, floor, ceiling, is_last_bin):
self.index = index
self.floor = floor
self.ceiling = ceiling
self.range = self.floor - self.ceiling
self.is_last_bin = is_last_bin
self.members_asc = []
def count(self):
return len(self.members_asc)
def add(self, val):
if self.is_last_bin == True:
if self.floor <= val and val <= self.ceiling:
self.members_asc.append(val)
else:
return False
elif self.floor <= val and val < self.ceiling:
self.members_asc.append(val)
else:
return False
return True
def sort(self):
self.members_asc.sort()
def __unicode__(self):
s = '[%s, %s' % (str(self.floor), str(self.ceiling))
if self.is_last_bin == False:
s = s + ')'
else:
s = s + ']'
s = s + ': ' + str(self.count())
return s
def __str__(self):
s = '[%.4f, %.4f' % (self.floor, self.ceiling)
if self.is_last_bin == False:
s = s + ')'
else:
s = s + ']'
s = s + ': ' + str(self.count())
return s |
class PlayerBase:
def __init__(self, position=None, team=None):
self.position = position
self.team = team
self.hand = []
class Players(PlayerBase):
def __init__(self, number_of_players=4):
if number_of_players % 2:
raise Exception('Error: number of players must be even')
super().__init__()
self.players = [PlayerBase(position=i, team=i % 2) for i in range(0, number_of_players)]
| class Playerbase:
def __init__(self, position=None, team=None):
self.position = position
self.team = team
self.hand = []
class Players(PlayerBase):
def __init__(self, number_of_players=4):
if number_of_players % 2:
raise exception('Error: number of players must be even')
super().__init__()
self.players = [player_base(position=i, team=i % 2) for i in range(0, number_of_players)] |
logo_array = [['--------------------------------------',
'--------------------------------------',
'--------------------------------------',
'---\\\\\\\\\\\\\\\\\\\\\\\\-----------------------',
'----\\\\\\ \\\\\\----------------------',
'-----\\\\\\ \\\\\\---------------------',
'------\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\------',
'-------\\\\\\ \\\\\\-----',
'--------\\\\\\ \\\\\\----',
'---------\\\\\\ ______ \\\\\\---',
'----------\\\\\\ ///---',
'-----------\\\\\\ ///----',
'------------\\\\\\ ///-----',
'-------------\\\\\\////////////////------',
'--------------------------------------',
'--------------------------------------',
'--------------------------------------']] | logo_array = [['--------------------------------------', '--------------------------------------', '--------------------------------------', '---\\\\\\\\\\\\\\\\\\\\\\\\-----------------------', '----\\\\\\ \\\\\\----------------------', '-----\\\\\\ \\\\\\---------------------', '------\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\------', '-------\\\\\\ \\\\\\-----', '--------\\\\\\ \\\\\\----', '---------\\\\\\ ______ \\\\\\---', '----------\\\\\\ ///---', '-----------\\\\\\ ///----', '------------\\\\\\ ///-----', '-------------\\\\\\////////////////------', '--------------------------------------', '--------------------------------------', '--------------------------------------']] |
def remove_none_entries(dictionary):
keys = [k for k in dictionary if dictionary[k] is None]
for k in keys:
del dictionary[k]
def make_dict_body(object):
if object is None:
return dict()
if hasattr(object, 'to_dict'):
return object.to_dict()
return object
def get_body_or_raise_error(resp, exp_code):
if resp.status_code == exp_code and exp_code == 204:
return None # Since 204 is for 'No Content'
if resp.status_code == exp_code:
try:
body = resp.json()
if len(body) == 0:
return None
else:
return body
except ValueError:
# For the requests with 'optional' body
# that can return 201, for example
return None
resp.raise_for_status()
| def remove_none_entries(dictionary):
keys = [k for k in dictionary if dictionary[k] is None]
for k in keys:
del dictionary[k]
def make_dict_body(object):
if object is None:
return dict()
if hasattr(object, 'to_dict'):
return object.to_dict()
return object
def get_body_or_raise_error(resp, exp_code):
if resp.status_code == exp_code and exp_code == 204:
return None
if resp.status_code == exp_code:
try:
body = resp.json()
if len(body) == 0:
return None
else:
return body
except ValueError:
return None
resp.raise_for_status() |
class Environment(object):
def __init__(self, fl_server):
self.fl_server = fl_server
self.fl_server.boot()
# Run federated learning
self.fl_server.run()
def reset(self):
pass
# Delete global model
os.remove(self.fl_server.paths.model + '/global')
def step(self, action):
pass
def get_reward(self):
pass
def plot_state(self):
pass
def observe(self):
pass | class Environment(object):
def __init__(self, fl_server):
self.fl_server = fl_server
self.fl_server.boot()
self.fl_server.run()
def reset(self):
pass
os.remove(self.fl_server.paths.model + '/global')
def step(self, action):
pass
def get_reward(self):
pass
def plot_state(self):
pass
def observe(self):
pass |
#
# PySNMP MIB module SWL2MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SWL2MGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:13:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Unsigned32, Counter32, Gauge32, iso, NotificationType, Integer32, Bits, NotificationType, ObjectIdentity, Counter64, TimeTicks, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Counter32", "Gauge32", "iso", "NotificationType", "Integer32", "Bits", "NotificationType", "ObjectIdentity", "Counter64", "TimeTicks", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "IpAddress")
MacAddress, TextualConvention, TruthValue, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TextualConvention", "TruthValue", "RowStatus", "DisplayString")
privateMgmt, = mibBuilder.importSymbols("SWPRIMGMT-MIB", "privateMgmt")
swL2MgmtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2))
if mibBuilder.loadTexts: swL2MgmtMIB.setLastUpdated('0007150000Z')
if mibBuilder.loadTexts: swL2MgmtMIB.setOrganization('enterprise, Inc.')
if mibBuilder.loadTexts: swL2MgmtMIB.setContactInfo(' Customer Service Postal: Tel: E-mail: ')
if mibBuilder.loadTexts: swL2MgmtMIB.setDescription('The Structure of Layer 2 Network Management Information for the proprietary enterprise.')
class PortList(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 127)
class VlanIndex(Unsigned32):
pass
swL2DevMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1))
swL2UnitMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 2))
swL2ModuleMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 3))
swL2PortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4))
swL2FilterMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6))
swL2VlanMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7))
swL2TrunkMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8))
swL2MirrorMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9))
swL2IGMPMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10))
swL2TrafficMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12))
swL2QosMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13))
swL2MgmtMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 14))
swL2StormCtrlMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15))
swL2ACLQosMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16))
swL2MgmtPortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17))
swL2DevInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1))
swDevInfoSystemUpTime = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 1), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoSystemUpTime.setStatus('current')
if mibBuilder.loadTexts: swDevInfoSystemUpTime.setDescription('The value of sysUpTime at the time the switch entered its current operational state. If the current state was entered prior to the last re-initialization, then this object contains a zero value. This value is in units of seconds.')
swDevInfoTotalNumOfPort = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoTotalNumOfPort.setStatus('current')
if mibBuilder.loadTexts: swDevInfoTotalNumOfPort.setDescription('The number of ports within this switch. This value is the sum of the ports within this switch.')
swDevInfoNumOfPortInUse = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoNumOfPortInUse.setStatus('current')
if mibBuilder.loadTexts: swDevInfoNumOfPortInUse.setDescription('The number of ports in this switch connected to the segment or the end stations.')
swDevInfoConsoleInUse = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("in-use", 2), ("not-in-use", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoConsoleInUse.setStatus('current')
if mibBuilder.loadTexts: swDevInfoConsoleInUse.setDescription('This usage indication of console system.')
swDevInfoFrontPanelLedStatus = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 324))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoFrontPanelLedStatus.setStatus('current')
if mibBuilder.loadTexts: swDevInfoFrontPanelLedStatus.setDescription('This object is a set of system LED indications. The first three octets is defined as system LED. The first LED is primary power LED. The second LED is redundant power LED. The third LED is console LED. The other octets following the second octets are the logical port LED (following dot1dBasePort ordering). Every two bytes are presented to a port. The first byte is presentd to the Link/Activity LED. The second byte is presented to the Speed LED. Link/Activity LED : The most significant bit is used for blink/solid: 8 = The LED blinks. The second significant bit is used for link status: 1 = link fail. 2 = link pass. Speed LED : 01 = 10Mbps. 02 = 100Mbps. 03 = 1000Mbps. The four remaining bits are currently unused and must be 0.')
swL2DevCtrlUpDownloadState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("in-process", 2), ("invalid-file", 3), ("violation", 4), ("file-not-found", 5), ("disk-full", 6), ("complete", 7), ("time-out", 8), ("tftp-establish-fail", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadState.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadState.setDescription("status of upload/download control. If the value is 'other', means never firmware updated since device started up.")
swDevInfoSaveCfg = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("proceeding", 2), ("ready", 3), ("failed", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swDevInfoSaveCfg.setStatus('current')
if mibBuilder.loadTexts: swDevInfoSaveCfg.setDescription('This object indicates the status of the device configuration. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. proceeding(2) - the device configuration is saving into the NV-RAM. ready(3) V the device configuration has been ready to save into NV-RAM. failed(4) - The processing of saving device configuration is failed.')
swL2DevCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2))
swL2DevCtrlStpState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlStpState.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlStpState.setDescription('This object can be enabled or disabled spanning tree algorithm during runtime of the system.')
swL2DevCtrlIGMPSnooping = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlIGMPSnooping.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlIGMPSnooping.setDescription('This object indicates layer 2 Internet Group Management Protocol (IGMP) capture function is enabled or disabled.')
swL2DevCtrlRmonState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlRmonState.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlRmonState.setDescription('This object can be enabled or disabled RMON.')
swL2DevCtrlUpDownloadImageFileName = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImageFileName.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImageFileName.setDescription('The name of the image file to be uploaded/Downloaded from the device to TFTP server when enabling image upload/download function (by writing swL2DevCtrlUpDownloadImage).')
swL2DevCtrlUpDownloadImageSourceAddr = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImageSourceAddr.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImageSourceAddr.setDescription('The ip address where been uploaded/Downloaded image file.')
swL2DevCtrlUpDownloadImage = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("upload", 2), ("download", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImage.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlUpDownloadImage.setDescription("Image file upload/download control. After setting, it will immediately invoke image upload/download function. While retrieving the value of this object, it always returns 'other' normally.")
swL2DevCtrlSaveCfg = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("active", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlSaveCfg.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlSaveCfg.setDescription('As the object is set to active, the current device configuration is save into to NV-RAM.If set to normal, do nothing.')
swL2DevCtrlCleanAllStatisticCounter = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("active", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlCleanAllStatisticCounter.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlCleanAllStatisticCounter.setDescription('As the object is set to active, all the statistic counters will be cleared. If set to normal, do nothing.')
swL2DevCtrlStpForwardBPDU = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevCtrlStpForwardBPDU.setStatus('current')
if mibBuilder.loadTexts: swL2DevCtrlStpForwardBPDU.setDescription('This object allow the forwarding of STP BPDU packets from other network device or not when STP is disabled on the device.')
swL2DevAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3))
swL2DevAlarmNewRoot = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevAlarmNewRoot.setStatus('current')
if mibBuilder.loadTexts: swL2DevAlarmNewRoot.setDescription('When the device has become the new root of the Spanning Tree, this object decide whether to send a new root trap.')
swL2DevAlarmTopologyChange = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevAlarmTopologyChange.setStatus('current')
if mibBuilder.loadTexts: swL2DevAlarmTopologyChange.setDescription("This object determine to send a trap or not when the switch topology was changed. If the object is enabled(3), the topologyChange trap is sent by the device when any of its configured ports transitions from the Learning state to the Forwarding state, or from the Forwarding state to the Blocking state. For the same port tranition, the device doesn't send the trap if this object value is disabled or other.")
swL2DevAlarmLinkChange = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2DevAlarmLinkChange.setStatus('current')
if mibBuilder.loadTexts: swL2DevAlarmLinkChange.setDescription("This object determine to send a trap or not when the link was changed. If the object is enabled(3), the Link Change trap is sent by the device when any of its ports link change. The device doesn't send the trap if this object value is disabled or other.")
swL2UnitCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 2, 1))
swL2PortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1), )
if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoTable.setDescription('A table that contains information about every port.')
swL2PortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2PortInfoPortIndex"))
if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoEntry.setDescription('A list of information for each port of the device.')
swL2PortInfoPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
swL2PortInfoUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setDescription('Indicates ID of the unit in the device')
swL2PortInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("portType-100Base-TX", 2), ("portType-100Base-FX", 3), ("portType-100Base-FL", 4), ("portType-1000Base-T", 5), ("portType-1000Base-SX", 6), ("portType-1000Base-LX", 7), ("portType-1000Base-GBIC-SX", 8), ("portType-1000Base-GBIC-LX", 9), ("portType-1000Base-GBIC-CWDM", 10), ("portType-1000Base-GBIC-XD", 11), ("portType-1000Base-GBIC-ZX", 12), ("portType-1000Base-GBIC-COPPER", 13), ("portType-1000Base-GBIC-OTHER", 14)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoType.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoType.setDescription('This object indicates the connector type of this port.')
swL2PortInfoLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("link-pass", 2), ("link-fail", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setDescription('This object indicates the port link status.')
swL2PortInfoNwayStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("half-10Mbps", 3), ("full-10Mbps", 4), ("half-100Mbps", 5), ("full-100Mbps", 6), ("half-1Gigabps", 7), ("full-1Gigabps", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('current')
if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setDescription('This object indicates the port speed and duplex mode.')
swL2PortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2), )
if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlTable.setDescription('A table that contains control information about every port.')
swL2PortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2PortCtrlPortIndex"))
if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlEntry.setDescription('A list of control information for each port of the device.')
swL2PortCtrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortCtrlPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
swL2PortCtrlUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setDescription('Indicates ID of the unit in the device')
swL2PortCtrlAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlAdminState.setDescription('This object decide the port enabled or disabled.')
swL2PortCtrlNwayState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("nway-enabled", 2), ("nway-disabled-10Mbps-Half", 3), ("nway-disabled-10Mbps-Full", 4), ("nway-disabled-100Mbps-Half", 5), ("nway-disabled-100Mbps-Full", 6), ("nway-disabled-1Gigabps-Full", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlNwayState.setDescription('Chose the port speed, duplex mode, and N-Way function mode.')
swL2PortCtrlFlowCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setDescription('The flow control mechanism is different between full duplex mode and half duplex mode. For half duplex mode, the jamming signal is asserted. For full duplex mode, IEEE 802.3x flow control function sends PAUSE frames and receives PAUSE frames.')
swL2PortCtrlAddressLearningState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlAddressLearningState.setStatus('current')
if mibBuilder.loadTexts: swL2PortCtrlAddressLearningState.setDescription('This object decide the address learning state on this port is enabled or disabled.')
swL2PortUtilTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3), )
if mibBuilder.loadTexts: swL2PortUtilTable.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilTable.setDescription('A table that contains information of utilization about every port.')
swL2PortUtilEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2PortUtilPortIndex"))
if mibBuilder.loadTexts: swL2PortUtilEntry.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilEntry.setDescription('A list of information of utilization for each port of the device.')
swL2PortUtilPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortUtilPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
swL2PortUtilTxSec = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortUtilTxSec.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilTxSec.setDescription('Indicates how many packets transmitted per second.')
swL2PortUtilRxSec = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortUtilRxSec.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilRxSec.setDescription('Indicates how many packets received per second.')
swL2PortUtilUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortUtilUtilization.setStatus('current')
if mibBuilder.loadTexts: swL2PortUtilUtilization.setDescription('This object indicates the port utilization.')
swL2FilterAddrConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1))
swL2FilterAddrMaxSupportedEntries = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2FilterAddrMaxSupportedEntries.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrMaxSupportedEntries.setDescription('Maximum number of entries in the MAC address filtering table (swL2FilterAddrCtrlTable).')
swL2FilterAddrCurrentTotalEntries = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2FilterAddrCurrentTotalEntries.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrCurrentTotalEntries.setDescription('Current applied number of entries in the MAC address filtering table.')
swL2FilterAddrCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3), )
if mibBuilder.loadTexts: swL2FilterAddrCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrCtrlTable.setDescription('This table defines information for the device to filter packets with specific MAC address (either as the DA and/or as the SA). The MAC address can be a unicast address or a multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a MAC address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
swL2FilterAddrCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2FilterAddrMacIndex"))
if mibBuilder.loadTexts: swL2FilterAddrCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrCtrlEntry.setDescription('A list of information about a specific unicast/multicast MAC address for which the switch has filtering information.')
swL2FilterAddrMacIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2FilterAddrMacIndex.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrMacIndex.setDescription('This object indicates a unicast/multicast MAC address for which the switch has filtering information. But if the swL2FilterAddrState = src-addr then the object can not be a multicast MAC address.')
swL2FilterAddrState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("dst-addr", 2), ("src-addr", 3), ("dst-src-addr", 4), ("invalid", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2FilterAddrState.setStatus('current')
if mibBuilder.loadTexts: swL2FilterAddrState.setDescription("This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. dst-addr(2) - recieved frames's destination address are currently used to be filtered as it meets with the MAC address entry of the table. src-addr(3) - recieved frames's source address are currently used to be filtered as it meets with the MAC address entry of the table. dst-src-addr(4) - recieved frames's destination address or source address are currently used to be filtered as it meets with the MAC address entry of the table. invalid(5) - writing this value to the object, and then the corresponding entry will be removed from the table.")
swL2StaticVlanTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1), )
if mibBuilder.loadTexts: swL2StaticVlanTable.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanTable.setDescription('A table containing static configuration information for each VLAN configured into the device by (local or network) management.')
swL2StaticVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2StaticVlanIndex"))
if mibBuilder.loadTexts: swL2StaticVlanEntry.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanEntry.setDescription('Static information for a VLAN configured into the device by (local or network) management.')
swL2StaticVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2StaticVlanIndex.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanIndex.setDescription('A value that uniquely identifies the Virtual LAN associated with this entry.')
swL2StaticVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanName.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanName.setDescription('An administratively-assigned name for this VLAN.')
swL2StaticVlanType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("byport", 1), ("byIpSubnet", 2), ("byProtocolId", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanType.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanType.setDescription('The type of VLAN, distinguished according to the policy used to define its port membership.')
swL2StaticVlanProtocolId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("none", 0), ("ipEther2", 1), ("rarpEther2", 2), ("ipx802dot3", 3), ("ipx802dot2", 4), ("ipxSnap", 5), ("ipxEther2", 6), ("apltkEther2Snap", 7), ("decEther2", 8), ("decOtherEther2", 9), ("sna802dot2", 10), ("snaEther2", 11), ("netBios", 12), ("xnsEther2", 13), ("vinesEther2", 14), ("ipv6Ether2", 15), ("userDefined", 16), ("arpEther2", 17)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanProtocolId.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanProtocolId.setDescription('The protocol identifier of this VLAN. This value is meaningful only if swL2StaticVlanType is equal to byProtocolId(3). For other VLAN types it should have the value none(0).')
swL2StaticVlanIpSubnetAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetAddr.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetAddr.setDescription('The IP subnet address of this VLAN. This value is meaningful only if rcVlanType is equal to byIpSubnet(2). For other VLAN types it should have the value 0.0.0.0.')
swL2StaticVlanIpSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetMask.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetMask.setDescription('The IP subnet mask of this VLAN. This value is meaningful only if rcVlanType is equal to byIpSubnet(2). For other VLAN types it should have the value 0.0.0.0.')
swL2StaticVlanUserDefinedPid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanUserDefinedPid.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanUserDefinedPid.setDescription('When swL2StaticVlanProtocolId is set to userDefined(16) in a protocol-based VLAN, this field represents the 16-bit user defined protocol identifier. Otherwise, this object should be zero.')
swL2StaticVlanEncap = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("all", 1), ("ethernet2", 2), ("llc", 3), ("snap", 4), ("un-used", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanEncap.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanEncap.setDescription('This value is meaningful only if swL2StaticVlanProtocolId is set to userDefined(16). Otherwise, this object should be un-used(5). If If this set to ethernet2(2), the Detagged Frame uses Type-encapsulated 802.3 format. If this set to llc(3), the Detagged Frame contains both a DSAP and an SSAP address field in the positions. If this set to snap(4), the Detagged Frame is of the format specified by IEEE Std. 802.1H for the encoding of an IEEE 802.3 Type Field in an 802.2/SNAP header.')
swL2StaticVlanUserPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4, 4), ValueRangeConstraint(6, 6), ValueRangeConstraint(7, 7), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanUserPriority.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanUserPriority.setDescription('User priority level. This value is meaningful only if swL2StaticVlanType is set to byIpSubnet(2) or byProtocolId(3).')
swL2StaticVlanEgressPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 10), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanEgressPorts.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanEgressPorts.setDescription('The set of ports which are permanently assigned to the egress list for this VLAN by management. The default value of this object is a string of zeros of appropriate length.')
swL2StaticVlanUntaggedPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 11), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanUntaggedPorts.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanUntaggedPorts.setDescription('The set of ports which should transmit egress packets for this VLAN as untagged. The default value of this object for the default VLAN is a string of appropriate length including all ports. There is no specified default for other VLANs.')
swL2StaticVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 12), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanStatus.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanStatus.setDescription('This object indicates the status of this entry.')
swL2StaticVlanIpSubnetArpClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetArpClassId.setStatus('current')
if mibBuilder.loadTexts: swL2StaticVlanIpSubnetArpClassId.setDescription('This object indicates the ARP classification ID. If the swL2StaticVlanType is not byIpSubnet(2), this value must be 0. If the swL2StaticVlanType is byIpSubnet(2), the range of this object is 1 to 4094. This object is useful when create the first IpSubnet entry, and not allow to modify.')
swL2VlanPortTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2), )
if mibBuilder.loadTexts: swL2VlanPortTable.setStatus('current')
if mibBuilder.loadTexts: swL2VlanPortTable.setDescription('A table containing per port control and status information for VLAN configuration in the device.')
swL2VlanPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2VlanPortIndex"))
if mibBuilder.loadTexts: swL2VlanPortEntry.setStatus('current')
if mibBuilder.loadTexts: swL2VlanPortEntry.setDescription('Information controlling VLAN configuration for a port on the device.')
swL2VlanPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2VlanPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2VlanPortIndex.setDescription('An unique index used to identify a particular port in the system.')
swL2VlanPortPvid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2VlanPortPvid.setStatus('current')
if mibBuilder.loadTexts: swL2VlanPortPvid.setDescription('The PVID, the VLAN ID assigned to untagged frames or Priority- Tagged frames received on this port.')
swL2VlanPortIngressChecking = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2VlanPortIngressChecking.setStatus('current')
if mibBuilder.loadTexts: swL2VlanPortIngressChecking.setDescription('When this is enabled(3) the device will discard incoming frames for VLANs which do not include this Port in its Member set. When disabled(2), the port will accept all incoming frames.')
swL2TrunkMaxSupportedEntries = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrunkMaxSupportedEntries.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkMaxSupportedEntries.setDescription('Maximum number of entries in the trunk configuration table (swL2TrunkCtrlTable).')
swL2TrunkCurrentNumEntries = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrunkCurrentNumEntries.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkCurrentNumEntries.setDescription('Current actived number of entries in the trunk configuration table.')
swL2TrunkCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3), )
if mibBuilder.loadTexts: swL2TrunkCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkCtrlTable.setDescription('This table specifys which ports group a set of ports(up to 8) into a single logical link.')
swL2TrunkCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2TrunkIndex"))
if mibBuilder.loadTexts: swL2TrunkCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkCtrlEntry.setDescription('A list of information specifies which ports group a set of ports(up to 8) into a single logical link.')
swL2TrunkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrunkIndex.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkIndex.setDescription('The index of logical port trunk. The trunk group number depend on the existence of unit and module.')
swL2TrunkName = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 12))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkName.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkName.setDescription('The name of logical port trunk.')
swL2TrunkMasterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkMasterPort.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkMasterPort.setDescription('The object indicates the master port number of the port trunk entry. When using Port Trunk, you can not configure the other ports of the group except the master port. Their configuration must be same as the master port (e.g. speed, duplex, enabled/disabled, flow control, and so on).')
swL2TrunkMember = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 4), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkMember.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkMember.setDescription('Indicate how many number of ports is included in this Trunk. The trunk port number depend on the existence of module. The maximum number of ports is 4 for one trunks.')
swL2TrunkFloodingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrunkFloodingPort.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkFloodingPort.setDescription('The object indicates the flooding port number of the port trunk entry. The first port of the trunk is implicitly configured to be the flooding port.')
swL2TrunkState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("invalid", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkState.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the port trunk disabled. enabled(3) - the port trunk enabled. invalid(4) - writing this value to the object, and then the corresponding entry will be removed from the table.')
swL2TrunkBPDU8600InterState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkBPDU8600InterState.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkBPDU8600InterState.setDescription("This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the trunk member doesn't send BPDU. enabled(3) - the trunk member can send BPDU.")
swL2TrunkAlgorithm = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("mac-source", 2), ("mac-destination", 3), ("mac-source-dest", 4), ("ip-source", 5), ("ip-destination", 6), ("ip-source-dest", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrunkAlgorithm.setStatus('current')
if mibBuilder.loadTexts: swL2TrunkAlgorithm.setDescription('This object configures to part of the packet examined by the switch when selecting the egress port for transmitting load-sharing data. This feature is only available using the address-based load-sharing algorithm.')
swL2MirrorLogicTargetPort = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MirrorLogicTargetPort.setStatus('current')
if mibBuilder.loadTexts: swL2MirrorLogicTargetPort.setDescription('This object indicates switch which port will sniff another port. A trunk port member cannot be configured as a target Snooping port. The port number is the sequential (logical) number which is also applied to bridge MIB, etc.')
swL2MirrorPortSourceIngress = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MirrorPortSourceIngress.setStatus('current')
if mibBuilder.loadTexts: swL2MirrorPortSourceIngress.setDescription('The represent the ingress into the source port packet to sniffed.')
swL2MirrorPortSourceEgress = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 3), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MirrorPortSourceEgress.setStatus('current')
if mibBuilder.loadTexts: swL2MirrorPortSourceEgress.setDescription('The represent the egress from the source port packet to sniffed.')
swL2MirrorPortState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MirrorPortState.setStatus('current')
if mibBuilder.loadTexts: swL2MirrorPortState.setDescription('This object indicates the port mirroring state. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - writing this value to the object, and then the corresponding entry will be removed from the table. enabled(3) - this entry is reside in the table.')
swL2IGMPMaxSupportedVlans = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPMaxSupportedVlans.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMaxSupportedVlans.setDescription('Maximum number of Vlans in the layer 2 IGMP control table (swL2IGMPCtrlTable).')
swL2IGMPMaxIpGroupNumPerVlan = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPMaxIpGroupNumPerVlan.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMaxIpGroupNumPerVlan.setDescription('Maximum number of multicast ip group per Vlan in the layer 2 IGMP information table (swL2IGMPQueryInfoTable).')
swL2IGMPCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3), )
if mibBuilder.loadTexts: swL2IGMPCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPCtrlTable.setDescription("The table controls the Vlan's IGMP function. Its scale depends on current VLAN state (swL2VlanInfoStatus). If VLAN is disabled mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries can be up to 12, with index range from 1 to 12.")
swL2IGMPCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPCtrlVid"))
if mibBuilder.loadTexts: swL2IGMPCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPCtrlEntry.setDescription('The entry in IGMP control table (swL2IGMPCtrlTable). The entry is effective only when IGMP capture switch (swL2DevCtrlIGMPSnooping) is enabled.')
swL2IGMPCtrlVid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPCtrlVid.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPCtrlVid.setDescription("This object indicates the IGMP control entry's VLAN id. If VLAN is disabled, the Vid is always 0 and cannot be changed by management users. If VLAN is in Port-Base mode, the Vid is arranged from 1 to 12, fixed form. If VLAN is in 802.1q mode, the Vid setting can vary from 1 to 4094 by management user, and the Vid in each entry must be unique in the IGMP Control Table.")
swL2IGMPQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(125)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPQueryInterval.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPQueryInterval.setDescription('The frequency at which IGMP Host-Query packets are transmitted on this switch.')
swL2IGMPMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 25)).clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPMaxResponseTime.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMaxResponseTime.setDescription('The maximum query response time on this switch.')
swL2IGMPRobustness = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPRobustness.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRobustness.setDescription('The Robustness Variable allows tuning for the expected packet loss on a subnet. If a subnet is expected to be lossy, the Robustness Variable may be increased. IGMP is robust to (Robustness Variable-1) packet losses.')
swL2IGMPLastMemberQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPLastMemberQueryInterval.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPLastMemberQueryInterval.setDescription('The Last Member Query Interval is the Max Response Time inserted into Group-Specific Queries sent in response to Leave Group messages, and is also the amount of time between Group-Specific Query messages.')
swL2IGMPHostTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(260)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPHostTimeout.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPHostTimeout.setDescription('The timer value for sending IGMP query packet when none was sent by the host in the LAN. The timer works in per-VLAN basis. Our device will be activated to send the query message if the timer is expired. Please reference RFC2236-1997.')
swL2IGMPRouteTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(260)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPRouteTimeout.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRouteTimeout.setDescription('The Router Timeout is how long a host must wait after hearing a Query before it may send any IGMPv2 messages.')
swL2IGMPLeaveTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPLeaveTimer.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPLeaveTimer.setDescription('When a querier receives a Leave Group message for a group that has group members on the reception interface, it sends Group-Specific Queries every swL2IGMPLeaveTimer to the group being left.')
swL2IGMPQueryState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPQueryState.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPQueryState.setDescription('This object decide the IGMP query enabled or disabled.')
swL2IGMPCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("querier", 2), ("non-querier", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPCurrentState.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPCurrentState.setDescription('This object indicates the current IGMP query state.')
swL2IGMPCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPCtrlState.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPCtrlState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - IGMP funtion is disabled for this entry. enabled(3) - IGMP funtion is enabled for this entry.')
swL2IGMPQueryInfoTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4), )
if mibBuilder.loadTexts: swL2IGMPQueryInfoTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPQueryInfoTable.setDescription('The table contains the number current IGMP query packets which is captured by this device, as well as the IGMP query packets sent by the device.')
swL2IGMPQueryInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPInfoVid"))
if mibBuilder.loadTexts: swL2IGMPQueryInfoEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPQueryInfoEntry.setDescription('Information about current IGMP query information, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrState of associated VLAN entry are all enabled.')
swL2IGMPInfoVid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPInfoVid.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPInfoVid.setDescription('This object indicates the Vid of associated IGMP info table entry. It follows swL2IGMPCtrlVid in the associated entry of IGMP control table (swL2IGMPCtrlTable).')
swL2IGMPInfoQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPInfoQueryCount.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPInfoQueryCount.setDescription('This object indicates the number of query packets received since the IGMP function enabled, in per-VLAN basis.')
swL2IGMPInfoTxQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPInfoTxQueryCount.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPInfoTxQueryCount.setDescription('This object indicates the send count of IGMP query messages, in per-VLAN basis. In case of IGMP timer expiration, the switch sends IGMP query packets to related VLAN member ports and increment this object by 1.')
swL2IGMPGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5), )
if mibBuilder.loadTexts: swL2IGMPGroupTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPGroupTable.setDescription('The table containing current IGMP information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swL2FilterMgmt description also.')
swL2IGMPGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPVid"), (0, "SWL2MGMT-MIB", "swL2IGMPGroupIpAddr"))
if mibBuilder.loadTexts: swL2IGMPGroupEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPGroupEntry.setDescription('Information about current IGMP information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled.')
swL2IGMPVid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPVid.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report information captured on network.')
swL2IGMPGroupIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPGroupIpAddr.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
swL2IGMPMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 3), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPMacAddr.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMacAddr.setDescription('This object is identify mac address which is corresponding to swL2IGMPGroupIpAddr, in per-Vlan basis.')
swL2IGMPPortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPPortMap.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the switch is represented by a single bit within the value of this object. If that bit has a value of '1' then that port is included in the set of ports; the port is not included if its bit has a value of '0'(Note that the setting of the bit corresponding to the port from which a frame is received is irrelevant). The 4 octets is represent one unit port according its logic port. If the unit less 32 port, the other port don't care just fill zero.")
swL2IGMPIpGroupReportCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPIpGroupReportCount.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPIpGroupReportCount.setDescription('This object indicate how much report packet was receive by our device corresponding with this entry from IGMP function enabled, in per-Vlan basis.')
swL2IGMPForwardTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6), )
if mibBuilder.loadTexts: swL2IGMPForwardTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPForwardTable.setDescription('The table containing current IGMP forwarding information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swL2FilterMgmt description also.')
swL2IGMPForwardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPForwardVid"), (0, "SWL2MGMT-MIB", "swL2IGMPForwardGroupIpAddr"))
if mibBuilder.loadTexts: swL2IGMPForwardEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPForwardEntry.setDescription('Information about current IGMP forwarding information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled.')
swL2IGMPForwardVid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPForwardVid.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPForwardVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report forward information captured on network.')
swL2IGMPForwardGroupIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPForwardGroupIpAddr.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPForwardGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
swL2IGMPForwardPortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPForwardPortMap.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPForwardPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the switch is represented by a single bit within the value of this object. If that bit has a value of '1' then that port is included in the set of ports; the port is not included if its bit has a value of '0'(Note that the setting of the bit corresponding to the port from which a frame is received is irrelevant). The 4 octets is represent one unit port according its logic port. If the unit less 32 port, the other port don't care just fill zero.")
swL2IGMPRPTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7), )
if mibBuilder.loadTexts: swL2IGMPRPTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRPTable.setDescription('The table allows you to designate a range of ports as being connected to multicast-enabled routers. This will ensure that all packets with such a router as its destination will reach the multicast-enabled router, regardless of protocol, etc.')
swL2IGMPRPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPRPVid"))
if mibBuilder.loadTexts: swL2IGMPRPEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRPEntry.setDescription('A list of swL2IGMPRPTable.')
swL2IGMPRPVid = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPRPVid.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRPVid.setDescription('The Vid of the VLAN on which the router port resides.')
swL2IGMPRPStaticRouterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPRPStaticRouterPort.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRPStaticRouterPort.setDescription('Specifies a range of ports which will be configured as router ports.')
swL2IGMPRPDynamicRouterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 3), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPRPDynamicRouterPort.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPRPDynamicRouterPort.setDescription('Displays router ports that have been dynamically configued.')
swL2IGMPMulticastRouterOnly = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPMulticastRouterOnly.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMulticastRouterOnly.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the switch forwards all mulitcast traffic to any IP router. enabled(3) - the switch will forward all multicast traffic to the multicast router, only.')
swL2IGMPGroupPortTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9), )
if mibBuilder.loadTexts: swL2IGMPGroupPortTable.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPGroupPortTable.setDescription('This table describe the detail information of the member ports of the swL2IGMPGroupTable.')
swL2IGMPGroupPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2IGMPVid"), (0, "SWL2MGMT-MIB", "swL2IGMPGroupIpAddr"), (0, "SWL2MGMT-MIB", "swL2IGMPPortMember"))
if mibBuilder.loadTexts: swL2IGMPGroupPortEntry.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPGroupPortEntry.setDescription('Information about member ports of current swL2IGMPGroupTable.')
swL2IGMPPortMember = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPPortMember.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPPortMember.setDescription('This object indicates which ports are belong to the same multicast group, in per-Vlan basis, in swL2IGMPGroupTable.')
swL2IGMPPortAgingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16711450))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2IGMPPortAgingTime.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPPortAgingTime.setDescription('This object indicate the aging out timer. This value is in units of seconds.')
swL2IGMPMulticastFilter = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2IGMPMulticastFilter.setStatus('current')
if mibBuilder.loadTexts: swL2IGMPMulticastFilter.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the un-registered multicast traffic will be flooded. enabled(3) - the un-registered multicast traffic will be filtered.')
swL2TrafficCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1), )
if mibBuilder.loadTexts: swL2TrafficCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlTable.setDescription('This table specifys the storm traffic control configuration.')
swL2TrafficCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2TrafficCtrlGroupIndex"))
if mibBuilder.loadTexts: swL2TrafficCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlEntry.setDescription('A list of information specifies the storm traffic control configuration.')
swL2TrafficCtrlGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrafficCtrlGroupIndex.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlGroupIndex.setDescription('The index of logical port trunk. The trunk group number depend on the existence of unit and module.')
swL2TrafficCtrlUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2TrafficCtrlUnitIndex.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlUnitIndex.setDescription('Indicates ID of the unit in the device')
swL2TrafficCtrlBMStormthreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrafficCtrlBMStormthreshold.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlBMStormthreshold.setDescription('This object to decide how much thousand packets per second broadcast/multicast (depend on swL2TrafficCtrlBcastStormCtrl, swL2TrafficCtrlMcastStormCtrl or swL2TrafficCtrlDlfStormCtrl objects whether is enabled) will active storm control. Whenever a port reaches its configured amount of packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet.')
swL2TrafficCtrlBcastStormCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrafficCtrlBcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlBcastStormCtrl.setDescription('This object indicates broadcast storm control function is enabled or disabled.')
swL2TrafficCtrlMcastStormCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrafficCtrlMcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlMcastStormCtrl.setDescription('This object indicates multicast storm control function is enabled or disabled.')
swL2TrafficCtrlDlfStormCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2TrafficCtrlDlfStormCtrl.setStatus('current')
if mibBuilder.loadTexts: swL2TrafficCtrlDlfStormCtrl.setDescription('This object indicates destination lookup fail function is enabled or disabled.')
swL2QosSchedulingTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1), )
if mibBuilder.loadTexts: swL2QosSchedulingTable.setStatus('current')
if mibBuilder.loadTexts: swL2QosSchedulingTable.setDescription('The switch contains 4 hardware priority queues. Incoming packets must be mapped to one of these four queues. Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.')
swL2QosSchedulingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2QosSchedulingClassId"))
if mibBuilder.loadTexts: swL2QosSchedulingEntry.setStatus('current')
if mibBuilder.loadTexts: swL2QosSchedulingEntry.setDescription('A list of information specifies the Qos output scheduling Table.')
swL2QosSchedulingClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2QosSchedulingClassId.setStatus('current')
if mibBuilder.loadTexts: swL2QosSchedulingClassId.setDescription('This specifies which of the four hardware priority queues. The four hardware priority queues are identified by number, from 0 to 3, with the 0 queue being the lowest priority.')
swL2QosSchedulingMaxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosSchedulingMaxPkts.setStatus('current')
if mibBuilder.loadTexts: swL2QosSchedulingMaxPkts.setDescription('Specifies the maximium number of packets the above specified hardware priority queue will be allowed to transmit before allowing the next lowest priority queue to transmit its packets.')
swL2QosSchedulingMaxLatency = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosSchedulingMaxLatency.setStatus('current')
if mibBuilder.loadTexts: swL2QosSchedulingMaxLatency.setDescription('Specifies the maximum amount of time the above specified hardware priority queue will be allowed to transmit packets before allowing the next lowest hardware priority queue to begin transmitting its packets. A value between 0 and 255 can be specified. With this value multiplied by 16 ms to arrive at the total allowed time for the queue to transmit packets.')
swL2QosPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2), )
if mibBuilder.loadTexts: swL2QosPriorityTable.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityTable.setDescription('This table display the current priority settings on the switch.')
swL2QosPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2QosPriorityType"), (0, "SWL2MGMT-MIB", "swL2QosPriorityValue"))
if mibBuilder.loadTexts: swL2QosPriorityEntry.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityEntry.setDescription('A list of information display the current priority settings on the switch.')
swL2QosPriorityType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("type-dscp", 2), ("type-8021p", 3), ("type-tcp", 4), ("type-udp", 5), ("type-ip", 6), ("type-mac", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2QosPriorityType.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityType.setDescription('These parameters define what characteristics an incoming packet must meet. One or more of the above parameters must be defined.')
swL2QosPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 2), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(1, 1), ValueSizeConstraint(2, 2), ValueSizeConstraint(4, 4), ValueSizeConstraint(6, 6), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2QosPriorityValue.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityValue.setDescription('This object must match with swL2QosPriorityType. If the type is type-dscp(2), the range of this object is 0~63. If the type is type-8021p(3), the range of this object is 0~7. If the type is type-tcp(4) or type-udp(5), the range of this object is 1~65535.')
swL2QosPriorityPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityPriority.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityPriority.setDescription('Allows to specify a priority value to be written to the 802.1p priority field of an incoming packet that meets the criteria.')
swL2QosPriorityPriorityState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityPriorityState.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityPriorityState.setDescription('This object indicates 802.1p priority function is enabled or disabled.')
swL2QosPriorityReplaceDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityReplaceDscp.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityReplaceDscp.setDescription('Allows to specify a value to be written to the DSCP field of an incoming packet that meets the criteria.')
swL2QosPriorityReplaceDscpState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityReplaceDscpState.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityReplaceDscpState.setDescription('This object indicates DSCP function is enabled or disabled.')
swL2QosPriorityReplacePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityReplacePriority.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityReplacePriority.setDescription('This object indicates the 802.1p user priority with the priority specified above will be replaced or not.')
swL2QosPriorityState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2QosPriorityState.setStatus('current')
if mibBuilder.loadTexts: swL2QosPriorityState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
managementPortLinkUp = NotificationType((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2) + (0,1))
if mibBuilder.loadTexts: managementPortLinkUp.setDescription('The trap is sent whenever the management port is link up.')
managementPortLinkDown = NotificationType((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2) + (0,2))
if mibBuilder.loadTexts: managementPortLinkDown.setDescription('The trap is sent whenever the management port is link down.')
swL2StormCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1), )
if mibBuilder.loadTexts: swL2StormCtrlTable.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlTable.setDescription('This table specifys the storm traffic control configuration.')
swL2StormCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2StormCtrlPortIndex"))
if mibBuilder.loadTexts: swL2StormCtrlEntry.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlEntry.setDescription('A list of information specifies the storm traffic control configuration.')
swL2StormCtrlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2StormCtrlPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlPortIndex.setDescription('The index of logical port.')
swL2StormCtrlBcastStormCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StormCtrlBcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlBcastStormCtrl.setDescription('This object indicates broadcast storm control function is enabled or disabled.')
swL2StormCtrlMcastStormCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StormCtrlMcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlMcastStormCtrl.setDescription('This object indicates multicast storm control function is enabled or disabled.')
swL2StormCtrlBMStormThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StormCtrlBMStormThreshold.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlBMStormThreshold.setDescription('This object to decide how much percentage packets per second broadcast/multicast (depend on swL2StormCtrlBcastStormCtrl or swL2StormCtrlMcastStormCtrl objects whether is enabled) will active storm control. Whenever a port reaches its configured percent of packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet.')
swL2StormCtrlDlfState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StormCtrlDlfState.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlDlfState.setDescription('This object indicates destination lookup fail function is enabled or disabled.')
swL2StormCtrlDlfThreshold = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 148810))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2StormCtrlDlfThreshold.setStatus('current')
if mibBuilder.loadTexts: swL2StormCtrlDlfThreshold.setDescription('This object to decide how much packets per second destination lookup fail (depend on swL2StormCtrlDlfState objects whether is enabled) will active storm control. Whenever the device reaches its configured packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet. This value must be the multiples of 8192.')
swL2CpuRateLimitTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4), )
if mibBuilder.loadTexts: swL2CpuRateLimitTable.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitTable.setDescription('This table specifys the CPU rate limit per port. Once too much broadcast/multicast traffic, exceed CP-Limit, comes in from a port, the port state will be disabled.')
swL2CpuRateLimitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2CpuRateLimitPortIndex"))
if mibBuilder.loadTexts: swL2CpuRateLimitEntry.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitEntry.setDescription('A list of information specifies the CPU rate limit of the port configuration.')
swL2CpuRateLimitPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2CpuRateLimitPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitPortIndex.setDescription('The index of logical port.')
swL2CpuRateLimitState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2CpuRateLimitState.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitState.setDescription('This object indicates CPU rate limit function is enabled or disabled.')
swL2CpuRateLimitBcastThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1700))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2CpuRateLimitBcastThreshold.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitBcastThreshold.setDescription('This object to decide how much packets per second broadcast will active traffic control. Whenever a port reaches its configured packets in the one second time interval, the port will be disabled.')
swL2CpuRateLimitMcastThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2CpuRateLimitMcastThreshold.setStatus('current')
if mibBuilder.loadTexts: swL2CpuRateLimitMcastThreshold.setDescription('This object to decide how much packets per second multicast will active traffic control. Whenever a port reaches its configured packets in the one second time interval, the port will be disabled.')
swL2CpuUtilization = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2CpuUtilization.setStatus('current')
if mibBuilder.loadTexts: swL2CpuUtilization.setDescription('The utilization of CPU.')
swL2ACLQosTemplate1Mode = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("security", 2), ("qos", 3), ("l4-switch", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplate1Mode.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplate1Mode.setDescription('This object decide the operate mode of template_1.')
swL2ACLQosTemplate2Mode = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("security", 2), ("qos", 3), ("l4-switch", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplate2Mode.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplate2Mode.setDescription('This object decide the operate mode of template_2.')
swL2ACLQosFlowClassifierTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3), )
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierTable.setDescription('This table specifys the template of flow classifier.')
swL2ACLQosFlowClassifierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosFlowClassifierTemplateId"))
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierEntry.setDescription('A list of information specifies the template of flow classifier.')
swL2ACLQosFlowClassifierTemplateId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierTemplateId.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierTemplateId.setDescription('The index of template ID.')
swL2ACLQosFlowClassifierCurrentMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("security", 2), ("qos", 3), ("l4-switch", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierCurrentMode.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierCurrentMode.setDescription('The current operated mode of this template.')
swL2ACLQosFlowClassifierSecuritySrcMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierSecuritySrcMask.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierSecuritySrcMask.setDescription('This object indicates a source IP subnet rule for the switch. If the swL2ACLQosFlowClassifierCurrentMode is not security(2), then this object must be 0.0.0.0.')
swL2ACLQosFlowClassifierQosFlavor = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("flavor-8021p", 1), ("flavor-dscp", 2), ("flavor-ip", 3), ("flavor-tcp", 4), ("flavor-udp", 5), ("flavor-un-used", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierQosFlavor.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierQosFlavor.setDescription('These parameters define what characteristics an incoming packet must meet. One or more of the above parameters must be defined. If the swL2ACLQosFlowClassifierCurrentMode is not qos(3), then this object must be flavor-un-used(6).')
swL2ACLQosFlowClassifierL4SwitchTCPDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchTCPSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchTCPTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPTos.setDescription('This object indicate the type of service in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchTCPDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPDstPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPDstPort.setDescription('This object indicate the destination TCP port number in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchTCPSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPSrcPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPSrcPort.setDescription('This object indicate the source TCP port number in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchTCPFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPFlags.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchTCPFlags.setDescription('This object indicate the TCP flags in the configured L4 TCP- session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchUDPDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchUDPSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchUDPTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPTos.setDescription('This object indicate the type of service in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchUDPDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPDstPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPDstPort.setDescription('This object indicate the destination UDP port number in the configured L4 UDP session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchUDPSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPSrcPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchUDPSrcPort.setDescription('This object indicate the source UDP port number in the configured L4 UDP session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherTos.setDescription('This object indicate the type of service in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol.setDescription('This object indicate the l4_protocol in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage.setDescription('This object indicate the ICMP message in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierL4SwitchOtherIGMPType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherIGMPType.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierL4SwitchOtherIGMPType.setDescription('This object indicate the IGMP type in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosFlowClassifierActiveRuleNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierActiveRuleNumber.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierActiveRuleNumber.setDescription('This object indicates the number of active rule.')
swL2ACLQosFlowClassifierSecurityDstMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 23), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierSecurityDstMask.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierSecurityDstMask.setDescription('This object indicates a destination IP subnet rule for the switch. If the swL2ACLQosFlowClassifierCurrentMode is not security(2), then this object must be 0.0.0.0.')
swL2ACLQosFlowClassifierVlanTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4), )
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanTable.setDescription('This table specifys which vlan has been binded in the template.')
swL2ACLQosFlowClassifierVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosFlowClassifierVlanTemplateId"), (0, "SWL2MGMT-MIB", "swL2ACLQosFlowClassifierVlanVlanName"))
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanEntry.setDescription('A list of information which vlan has been binded in the template.')
swL2ACLQosFlowClassifierVlanTemplateId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanTemplateId.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanTemplateId.setDescription('The index of template ID.')
swL2ACLQosFlowClassifierVlanVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanVlanName.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanVlanName.setDescription('The existence of VLAN name.')
swL2ACLQosFlowClassifierVlanState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("attached", 2), ("detached", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFlowClassifierVlanState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. attached(2) - this entry is reside in the table. detached(3) - writing this value to the object, and then the corresponding entry will be removed from the table.')
swL2ACLQosTemplateRuleTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5), )
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleTable.setDescription('This table specifys the template-depend rules.')
swL2ACLQosTemplateRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosTemplateRuleTemplateId"), (0, "SWL2MGMT-MIB", "swL2ACLQosTemplateRuleIndex"))
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleEntry.setDescription('A list of information specifies the template-depend rules.')
swL2ACLQosTemplateRuleTemplateId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleTemplateId.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleTemplateId.setDescription('The index of template ID.')
swL2ACLQosTemplateRuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleIndex.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleIndex.setDescription('The index of template rule.')
swL2ACLQosTemplateRuleMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("security", 2), ("qos", 3), ("l4-switch", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleMode.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleMode.setDescription('This object indicates the rule type of the entry.')
swL2ACLQosTemplateRuleSecuritySrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleSecuritySrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleSecuritySrcIp.setDescription('This object indicates the source IP of flow template. If the swL2ACLQosTemplateRuleMode is not security(2), then this object will be display 0.0.0.0.')
swL2ACLQosTemplateRuleQosFlavor = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("flavor-8021p", 1), ("flavor-dscp", 2), ("flavor-ip", 3), ("flavor-tcp", 4), ("flavor-udp", 5), ("flavor-un-used", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosFlavor.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosFlavor.setDescription('This object indicates the rule type of the QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be flavor-un-used(6).')
swL2ACLQosTemplateRuleQosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 6), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(1, 1), ValueSizeConstraint(2, 2), ValueSizeConstraint(4, 4), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosValue.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosValue.setDescription('This object must match with swL2ACLQosTemplateRuleQosFlavor. If the type is flavor-8021p(1), the range of this object is 0~7. If the type is flavor-dscp(2), the range of this object is 0~63. If the type is flavor-tcp(4) or flavor-udp(5), the range of this object is 1~65535. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be NULL.')
swL2ACLQosTemplateRuleQosPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosPriority.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosPriority.setDescription('This object indicates the priority of ingress packets in QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be 0.')
swL2ACLQosTemplateRuleQosDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosDscp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleQosDscp.setDescription('This object indicates the Dscp of ingress packets in QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchSessionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("tcp", 1), ("udp", 2), ("other", 3), ("un-used", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionType.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionType.setDescription('This object indicates the rule type of the TCP-Session in L4-Switch mode. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(4).')
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 10), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 11), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp.setDescription('This object indicates the source ipaddress in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPTos.setDescription('This object indicates the type of service in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort.setDescription('This object indicates the destination TCP port number in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort.setDescription('This object indicates the source TCP port number in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("fin", 1), ("syn", 2), ("rst", 3), ("psh", 4), ("ack", 5), ("urg", 6), ("un-used", 7)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags.setStatus('deprecated')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags.setDescription('This object indicates the TCP flags in the configured L4 TCP- session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(7). This object is deprecated because it just can let user to choose one of these items.')
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 16), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 17), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp.setDescription('This object indicates the soruce ipaddress in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionUDPTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 18), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPTos.setDescription('This object indicates the type of service in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort.setDescription('This object indicates the destination UDP port number in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort.setDescription('This object indicates the source UDP port number in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 21), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 22), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp.setDescription('This object indicates the source ipaddress in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 23), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherTos.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherTos.setDescription('This object indicates the type of service in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("icmp", 1), ("igmp", 2), ("un-used", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol.setDescription('This object indicates the l4_protocol in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(3).')
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 25), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType.setDescription('This object indicates the type of ICMP message in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 26), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode.setDescription('This object indicates the code of ICMP message in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("query", 1), ("response-version-1", 2), ("response-version-2", 3), ("response-version-all", 4), ("un-used", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType.setDescription('This object indicates the IGMP type in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(5). If the object be set to response-version-all(4), it means to create two entries with response-version-1(2) and response-version-2(3).')
swL2ACLQosTemplateRuleL4SwitchActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("drop", 1), ("forward", 2), ("redirect", 3), ("un-used", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionType.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionType.setDescription('This object indicates the action when a packet matches an entry of l4_switch mode. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(4).')
swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("true", 2), ("false", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState.setDescription('This object decide to sending the packet to one of 8 hardware priority queues or not.')
swL2ACLQosTemplateRuleL4SwitchActionForwardPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardPriority.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardPriority.setDescription('This object indicates the priority related to one of 8 hardware priority queues. If the swL2ACLQosTemplateRuleMode is not l4-switch(4) or the swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState is not true(2), this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchActionForwardDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 31), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardDscp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionForwardDscp.setDescription('If the swL2ACLQosTemplateRuleMode is not l4-switch(4) or the swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState is not true(2),, this object must be 0.')
swL2ACLQosTemplateRuleL4SwitchActionRedirectIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 32), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionRedirectIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionRedirectIp.setDescription('This object indicates the redirected IP address that when a packet matches an entry of l4_switch mode. If the swL2ACLQosTemplateRuleL4SwitchActionType is not redirect(3), this object must be 0.0.0.0.')
swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("true", 2), ("false", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable.setDescription('This object indicates the action of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. false(2) - routing unreachable packet by using L2/IPv4 router forwarding table. true(3) - dropping unreachable packet')
swL2ACLQosTemplateRuleState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 35), Bits().clone(namedValues=NamedValues(("fin", 0), ("syn", 1), ("rst", 2), ("psh", 3), ("ack", 4), ("urg", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll.setDescription('This object indicates the TCP flags in the configured L4 TCP- session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
swL2ACLQosTemplateRuleSecurityDstIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 36), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleSecurityDstIp.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosTemplateRuleSecurityDstIp.setDescription('This object indicates the destination IP of flow template. If the swL2ACLQosTemplateRuleMode is not security(2), then this object will be display 0.0.0.0.')
swL2ACLQosDestinationIpFilterTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6), )
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterTable.setDescription('This table defines information for the device to filter packets with specific Destination IP address. The IP address can be a unicast address or multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a IP address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
swL2ACLQosDestinationIpFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosDestinationIpFilterIpAddr"))
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterEntry.setDescription('A list of information about a specific unicast/multicast IP address for which the switch has filtering information.')
swL2ACLQosDestinationIpFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterIndex.setStatus('obsolete')
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterIndex.setDescription('The index of this rule.')
swL2ACLQosDestinationIpFilterIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterIpAddr.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterIpAddr.setDescription('This object indicates a unicast IP address for which the switch has filtering information.')
swL2ACLQosDestinationIpFilterState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosDestinationIpFilterState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
swL2ACLQosFDBFilterTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7), )
if mibBuilder.loadTexts: swL2ACLQosFDBFilterTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterTable.setDescription('This table defines information for the device to filter packets with specific MAC address (either as the DA and/or as the SA). The MAC address can be a unicast address or a multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a MAC address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
swL2ACLQosFDBFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosFDBFilterVlanName"), (0, "SWL2MGMT-MIB", "swL2ACLQosFDBFilterMacAddress"))
if mibBuilder.loadTexts: swL2ACLQosFDBFilterEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterEntry.setDescription('A list of information about a specific unicast/multicast MAC address for which the switch has filtering information.')
swL2ACLQosFDBFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFDBFilterIndex.setStatus('obsolete')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterIndex.setDescription('The index of this rule.')
swL2ACLQosFDBFilterVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFDBFilterVlanName.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterVlanName.setDescription('The existence of VALN name.')
swL2ACLQosFDBFilterMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 3), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosFDBFilterMacAddress.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterMacAddress.setDescription('This object will filter on destination MAC address operates on bridged packets, but not on routed packets. And It will filter on source MAC operates on all packets.')
swL2ACLQosFDBFilterState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosFDBFilterState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosFDBFilterState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
swL2ACLQosIpFragmentFilterDropPkts = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosIpFragmentFilterDropPkts.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosIpFragmentFilterDropPkts.setDescription('This object decide to drop fragmented IP packets or not.')
swL2ACLQosSchedulingTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9), )
if mibBuilder.loadTexts: swL2ACLQosSchedulingTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosSchedulingTable.setDescription('The switch contains 4 hardware priority queues. Incoming packets must be mapped to one of these four queues. Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.')
swL2ACLQosSchedulingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosSchedulingPortIndex"), (0, "SWL2MGMT-MIB", "swL2ACLQosSchedulingClassId"))
if mibBuilder.loadTexts: swL2ACLQosSchedulingEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosSchedulingEntry.setDescription('A list of information specifies the Qos output scheduling Table.')
swL2ACLQosSchedulingPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosSchedulingPortIndex.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosSchedulingPortIndex.setDescription('The index of logical port.')
swL2ACLQosSchedulingClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosSchedulingClassId.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosSchedulingClassId.setDescription('This specifies which of the four hardware priority queues. The four hardware priority queues are identified by number, from 0 to 3, with the 0 queue being the lowest priority.')
swL2ACLQosSchedulingWRRValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosSchedulingWRRValue.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosSchedulingWRRValue.setDescription('Specifies the weighted round robin (WRR) the above specified hardware priority queue will be allowed to transmit before allowing the next lowest priority queue to transmit its packets.')
swL2ACLQosMacPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10), )
if mibBuilder.loadTexts: swL2ACLQosMacPriorityTable.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityTable.setDescription('This table indicates the destination mac priority in flow classifier.')
swL2ACLQosMacPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1), ).setIndexNames((0, "SWL2MGMT-MIB", "swL2ACLQosMacPriorityVlanName"), (0, "SWL2MGMT-MIB", "swL2ACLQosMacPriorityDstMacAddress"))
if mibBuilder.loadTexts: swL2ACLQosMacPriorityEntry.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityEntry.setDescription('A list of information specifies the destination mac priority in flow classifier.')
swL2ACLQosMacPriorityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosMacPriorityIndex.setStatus('obsolete')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityIndex.setDescription('The index of this rule.')
swL2ACLQosMacPriorityVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosMacPriorityVlanName.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityVlanName.setDescription('The existence VLAN name.')
swL2ACLQosMacPriorityDstMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 3), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2ACLQosMacPriorityDstMacAddress.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityDstMacAddress.setDescription('This object will filter on destination MAC address operates on bridged packets, but not on routed packets. And It will filter on source MAC operates on all packets.')
swL2ACLQosMacPriorityPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosMacPriorityPriorityValue.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityPriorityValue.setDescription('This object indicates the priority related to one of 8 hardware priority queues.')
swL2ACLQosMacPriorityState = MibTableColumn((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("valid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2ACLQosMacPriorityState.setStatus('current')
if mibBuilder.loadTexts: swL2ACLQosMacPriorityState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
swL2MgmtPortCurrentLinkStatus = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("link-pass", 2), ("link-fail", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2MgmtPortCurrentLinkStatus.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortCurrentLinkStatus.setDescription('This object indicates the current management port link status.')
swL2MgmtPortCurrentNwayStatus = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("half-10Mbps", 2), ("full-10Mbps", 3), ("half-100Mbps", 4), ("full-100Mbps", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2MgmtPortCurrentNwayStatus.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortCurrentNwayStatus.setDescription('This object indicates the current management port speed and duplex mode.')
swL2MgmtPortAdminState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MgmtPortAdminState.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortAdminState.setDescription('This object decide the management port enabled or disabled.')
swL2MgmtPortNwayState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("nway-enabled", 2), ("nway-disabled-10Mbps-Half", 3), ("nway-disabled-10Mbps-Full", 4), ("nway-disabled-100Mbps-Half", 5), ("nway-disabled-100Mbps-Full", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MgmtPortNwayState.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortNwayState.setDescription('Chose the management port speed, duplex mode, and N-Way function mode.')
swL2MgmtPortFlowCtrlState = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MgmtPortFlowCtrlState.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortFlowCtrlState.setDescription('The flow control mechanism is different between full duplex mode and half duplex mode. For half duplex mode, the jamming signal is asserted. For full duplex mode, IEEE 802.3x flow control function sends PAUSE frames and receives PAUSE frames.')
swL2MgmtPortLinkUpDownTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2MgmtPortLinkUpDownTrapEnable.setStatus('current')
if mibBuilder.loadTexts: swL2MgmtPortLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for the management port. By default, this object should have the value enabled(3).')
mibBuilder.exportSymbols("SWL2MGMT-MIB", swL2TrafficCtrlBMStormthreshold=swL2TrafficCtrlBMStormthreshold, swL2ACLQosFlowClassifierL4SwitchUDPDstIp=swL2ACLQosFlowClassifierL4SwitchUDPDstIp, swL2IGMPGroupTable=swL2IGMPGroupTable, swL2ACLQosTemplateRuleQosPriority=swL2ACLQosTemplateRuleQosPriority, swL2IGMPPortMap=swL2IGMPPortMap, swL2ACLQosFlowClassifierActiveRuleNumber=swL2ACLQosFlowClassifierActiveRuleNumber, swL2ACLQosIpFragmentFilterDropPkts=swL2ACLQosIpFragmentFilterDropPkts, swL2IGMPQueryInterval=swL2IGMPQueryInterval, swL2ACLQosFlowClassifierL4SwitchTCPSrcPort=swL2ACLQosFlowClassifierL4SwitchTCPSrcPort, swL2DevCtrlUpDownloadState=swL2DevCtrlUpDownloadState, swL2DevCtrlSaveCfg=swL2DevCtrlSaveCfg, swL2QosPriorityValue=swL2QosPriorityValue, swL2IGMPMgmt=swL2IGMPMgmt, swL2IGMPQueryInfoEntry=swL2IGMPQueryInfoEntry, swL2ACLQosFlowClassifierL4SwitchUDPDstPort=swL2ACLQosFlowClassifierL4SwitchUDPDstPort, swL2ACLQosMacPriorityEntry=swL2ACLQosMacPriorityEntry, swL2IGMPRPStaticRouterPort=swL2IGMPRPStaticRouterPort, swL2DevCtrlUpDownloadImageSourceAddr=swL2DevCtrlUpDownloadImageSourceAddr, swL2StaticVlanUserPriority=swL2StaticVlanUserPriority, swL2IGMPPortMember=swL2IGMPPortMember, swL2DevCtrlRmonState=swL2DevCtrlRmonState, swL2TrunkIndex=swL2TrunkIndex, swL2IGMPMaxResponseTime=swL2IGMPMaxResponseTime, swL2ACLQosFlowClassifierVlanState=swL2ACLQosFlowClassifierVlanState, swL2TrafficCtrlUnitIndex=swL2TrafficCtrlUnitIndex, swL2StormCtrlPortIndex=swL2StormCtrlPortIndex, swL2DevCtrlUpDownloadImageFileName=swL2DevCtrlUpDownloadImageFileName, swL2PortUtilPortIndex=swL2PortUtilPortIndex, swL2IGMPCurrentState=swL2IGMPCurrentState, swL2DevInfo=swL2DevInfo, swL2CpuRateLimitEntry=swL2CpuRateLimitEntry, swL2MgmtPortLinkUpDownTrapEnable=swL2MgmtPortLinkUpDownTrapEnable, swL2PortCtrlPortIndex=swL2PortCtrlPortIndex, swL2StaticVlanUntaggedPorts=swL2StaticVlanUntaggedPorts, swL2DevMgmt=swL2DevMgmt, swL2StaticVlanTable=swL2StaticVlanTable, swL2StaticVlanIndex=swL2StaticVlanIndex, swL2IGMPForwardGroupIpAddr=swL2IGMPForwardGroupIpAddr, swL2VlanPortIndex=swL2VlanPortIndex, swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage=swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage, swL2UnitMgmt=swL2UnitMgmt, swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable=swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable, swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol=swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol, swL2DevAlarmLinkChange=swL2DevAlarmLinkChange, swL2ACLQosFlowClassifierL4SwitchUDPTos=swL2ACLQosFlowClassifierL4SwitchUDPTos, swL2ACLQosMacPriorityVlanName=swL2ACLQosMacPriorityVlanName, swL2MgmtPortFlowCtrlState=swL2MgmtPortFlowCtrlState, swL2ACLQosFlowClassifierVlanVlanName=swL2ACLQosFlowClassifierVlanVlanName, swL2ACLQosFDBFilterIndex=swL2ACLQosFDBFilterIndex, swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState=swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState, swL2PortCtrlUnitIndex=swL2PortCtrlUnitIndex, swL2ACLQosDestinationIpFilterEntry=swL2ACLQosDestinationIpFilterEntry, swL2IGMPInfoVid=swL2IGMPInfoVid, swL2ACLQosMacPriorityDstMacAddress=swL2ACLQosMacPriorityDstMacAddress, swL2ACLQosFlowClassifierSecuritySrcMask=swL2ACLQosFlowClassifierSecuritySrcMask, swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort=swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort, PortList=PortList, swL2IGMPVid=swL2IGMPVid, swL2StaticVlanEntry=swL2StaticVlanEntry, swL2QosPriorityReplaceDscp=swL2QosPriorityReplaceDscp, swL2TrunkAlgorithm=swL2TrunkAlgorithm, swL2IGMPMaxSupportedVlans=swL2IGMPMaxSupportedVlans, swL2DevCtrlUpDownloadImage=swL2DevCtrlUpDownloadImage, swL2PortUtilTxSec=swL2PortUtilTxSec, swL2DevAlarmNewRoot=swL2DevAlarmNewRoot, swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort=swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort, swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode=swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode, swL2PortCtrlEntry=swL2PortCtrlEntry, swL2IGMPForwardEntry=swL2IGMPForwardEntry, swL2StormCtrlDlfThreshold=swL2StormCtrlDlfThreshold, swL2ACLQosDestinationIpFilterIpAddr=swL2ACLQosDestinationIpFilterIpAddr, swL2QosMgmt=swL2QosMgmt, swL2MirrorMgmt=swL2MirrorMgmt, swL2IGMPRobustness=swL2IGMPRobustness, swL2IGMPMacAddr=swL2IGMPMacAddr, swL2TrunkName=swL2TrunkName, swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort=swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort, swL2TrafficCtrlBcastStormCtrl=swL2TrafficCtrlBcastStormCtrl, swL2FilterAddrMacIndex=swL2FilterAddrMacIndex, swL2StaticVlanIpSubnetArpClassId=swL2StaticVlanIpSubnetArpClassId, swL2ACLQosTemplateRuleL4SwitchSessionUDPTos=swL2ACLQosTemplateRuleL4SwitchSessionUDPTos, swL2ACLQosTemplateRuleL4SwitchActionType=swL2ACLQosTemplateRuleL4SwitchActionType, swL2IGMPGroupPortEntry=swL2IGMPGroupPortEntry, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2TrafficCtrlTable=swL2TrafficCtrlTable, swL2MgmtPortCurrentLinkStatus=swL2MgmtPortCurrentLinkStatus, swDevInfoTotalNumOfPort=swDevInfoTotalNumOfPort, swL2ACLQosFDBFilterVlanName=swL2ACLQosFDBFilterVlanName, swL2ACLQosTemplateRuleMode=swL2ACLQosTemplateRuleMode, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2IGMPGroupEntry=swL2IGMPGroupEntry, swL2StormCtrlTable=swL2StormCtrlTable, swL2IGMPForwardVid=swL2IGMPForwardVid, swL2TrunkMember=swL2TrunkMember, swL2ACLQosFlowClassifierVlanEntry=swL2ACLQosFlowClassifierVlanEntry, swL2QosPriorityPriorityState=swL2QosPriorityPriorityState, swL2CpuUtilization=swL2CpuUtilization, swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp=swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp, swL2IGMPRPDynamicRouterPort=swL2IGMPRPDynamicRouterPort, swL2ACLQosTemplateRuleL4SwitchActionForwardPriority=swL2ACLQosTemplateRuleL4SwitchActionForwardPriority, swL2IGMPMulticastFilter=swL2IGMPMulticastFilter, swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType=swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType, swL2ACLQosFlowClassifierEntry=swL2ACLQosFlowClassifierEntry, swL2ACLQosFlowClassifierQosFlavor=swL2ACLQosFlowClassifierQosFlavor, swL2ACLQosMacPriorityIndex=swL2ACLQosMacPriorityIndex, swL2MirrorPortState=swL2MirrorPortState, swL2StaticVlanType=swL2StaticVlanType, swL2TrafficCtrlEntry=swL2TrafficCtrlEntry, swL2IGMPQueryInfoTable=swL2IGMPQueryInfoTable, swL2TrunkMaxSupportedEntries=swL2TrunkMaxSupportedEntries, swL2DevCtrlStpForwardBPDU=swL2DevCtrlStpForwardBPDU, swL2IGMPInfoTxQueryCount=swL2IGMPInfoTxQueryCount, swL2ACLQosMgmt=swL2ACLQosMgmt, swL2PortInfoPortIndex=swL2PortInfoPortIndex, swL2PortCtrlTable=swL2PortCtrlTable, managementPortLinkDown=managementPortLinkDown, swL2ACLQosTemplateRuleL4SwitchSessionOtherTos=swL2ACLQosTemplateRuleL4SwitchSessionOtherTos, swL2TrunkCtrlTable=swL2TrunkCtrlTable, swL2ACLQosTemplateRuleEntry=swL2ACLQosTemplateRuleEntry, swL2ACLQosTemplateRuleTemplateId=swL2ACLQosTemplateRuleTemplateId, swL2ACLQosFDBFilterTable=swL2ACLQosFDBFilterTable, swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp, swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp=swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp, swL2MgmtPortAdminState=swL2MgmtPortAdminState, swL2IGMPCtrlEntry=swL2IGMPCtrlEntry, swDevInfoSystemUpTime=swDevInfoSystemUpTime, swL2StaticVlanEncap=swL2StaticVlanEncap, swL2QosSchedulingClassId=swL2QosSchedulingClassId, swL2TrafficCtrlMcastStormCtrl=swL2TrafficCtrlMcastStormCtrl, swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType=swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType, swL2ACLQosTemplateRuleState=swL2ACLQosTemplateRuleState, swL2ACLQosDestinationIpFilterIndex=swL2ACLQosDestinationIpFilterIndex, swL2ACLQosTemplateRuleSecuritySrcIp=swL2ACLQosTemplateRuleSecuritySrcIp, swL2TrunkCurrentNumEntries=swL2TrunkCurrentNumEntries, swL2IGMPInfoQueryCount=swL2IGMPInfoQueryCount, swL2IGMPIpGroupReportCount=swL2IGMPIpGroupReportCount, swL2VlanMgmt=swL2VlanMgmt, swL2StaticVlanUserDefinedPid=swL2StaticVlanUserDefinedPid, swL2ACLQosTemplateRuleQosDscp=swL2ACLQosTemplateRuleQosDscp, swL2ACLQosFlowClassifierL4SwitchOtherIGMPType=swL2ACLQosFlowClassifierL4SwitchOtherIGMPType, swL2MirrorLogicTargetPort=swL2MirrorLogicTargetPort, swL2QosPriorityReplaceDscpState=swL2QosPriorityReplaceDscpState, swL2ACLQosFlowClassifierL4SwitchOtherSrcIp=swL2ACLQosFlowClassifierL4SwitchOtherSrcIp, swL2ACLQosTemplateRuleL4SwitchActionRedirectIp=swL2ACLQosTemplateRuleL4SwitchActionRedirectIp, swL2TrunkMasterPort=swL2TrunkMasterPort, swDevInfoNumOfPortInUse=swDevInfoNumOfPortInUse, swL2QosPriorityPriority=swL2QosPriorityPriority, swL2StaticVlanName=swL2StaticVlanName, swL2PortUtilRxSec=swL2PortUtilRxSec, swL2PortMgmt=swL2PortMgmt, swL2DevAlarm=swL2DevAlarm, swL2PortInfoEntry=swL2PortInfoEntry, swL2ACLQosTemplateRuleQosFlavor=swL2ACLQosTemplateRuleQosFlavor, swL2StaticVlanIpSubnetMask=swL2StaticVlanIpSubnetMask, swL2VlanPortEntry=swL2VlanPortEntry, swL2ACLQosFlowClassifierL4SwitchTCPDstPort=swL2ACLQosFlowClassifierL4SwitchTCPDstPort, swL2MgmtMIB=swL2MgmtMIB, swL2StormCtrlEntry=swL2StormCtrlEntry, swL2ACLQosFlowClassifierL4SwitchTCPFlags=swL2ACLQosFlowClassifierL4SwitchTCPFlags, swL2PortInfoTable=swL2PortInfoTable, swL2FilterAddrMaxSupportedEntries=swL2FilterAddrMaxSupportedEntries, swL2ACLQosDestinationIpFilterState=swL2ACLQosDestinationIpFilterState, swL2TrunkMgmt=swL2TrunkMgmt, swL2ACLQosDestinationIpFilterTable=swL2ACLQosDestinationIpFilterTable, swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags=swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags, swL2DevCtrlStpState=swL2DevCtrlStpState, swL2MirrorPortSourceIngress=swL2MirrorPortSourceIngress, swL2DevCtrlCleanAllStatisticCounter=swL2DevCtrlCleanAllStatisticCounter, swL2TrunkState=swL2TrunkState, swDevInfoConsoleInUse=swDevInfoConsoleInUse, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, swL2MirrorPortSourceEgress=swL2MirrorPortSourceEgress, swL2IGMPRPVid=swL2IGMPRPVid, swL2QosPriorityTable=swL2QosPriorityTable, swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp, swL2ACLQosFlowClassifierL4SwitchTCPSrcIp=swL2ACLQosFlowClassifierL4SwitchTCPSrcIp, swL2ACLQosFlowClassifierL4SwitchOtherTos=swL2ACLQosFlowClassifierL4SwitchOtherTos, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2StormCtrlBMStormThreshold=swL2StormCtrlBMStormThreshold, swL2QosSchedulingTable=swL2QosSchedulingTable, swL2ACLQosTemplateRuleQosValue=swL2ACLQosTemplateRuleQosValue, swL2PortUtilUtilization=swL2PortUtilUtilization, swL2IGMPCtrlVid=swL2IGMPCtrlVid, swL2PortUtilEntry=swL2PortUtilEntry, swL2IGMPForwardTable=swL2IGMPForwardTable, swL2MgmtMIBTraps=swL2MgmtMIBTraps, swL2TrafficMgmt=swL2TrafficMgmt, swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll=swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll, swL2ACLQosSchedulingWRRValue=swL2ACLQosSchedulingWRRValue, swL2StaticVlanIpSubnetAddr=swL2StaticVlanIpSubnetAddr, swL2IGMPRPTable=swL2IGMPRPTable, swL2IGMPRPEntry=swL2IGMPRPEntry, swL2ModuleMgmt=swL2ModuleMgmt, swL2QosSchedulingMaxPkts=swL2QosSchedulingMaxPkts, swL2FilterAddrState=swL2FilterAddrState, swL2ACLQosMacPriorityPriorityValue=swL2ACLQosMacPriorityPriorityValue, swL2UnitCtrl=swL2UnitCtrl, VlanIndex=VlanIndex, swL2ACLQosFlowClassifierCurrentMode=swL2ACLQosFlowClassifierCurrentMode, swL2ACLQosSchedulingTable=swL2ACLQosSchedulingTable, swL2MgmtPortMgmt=swL2MgmtPortMgmt, swL2MgmtPortNwayState=swL2MgmtPortNwayState, swL2IGMPRouteTimeout=swL2IGMPRouteTimeout, swL2StormCtrlMgmt=swL2StormCtrlMgmt, swL2ACLQosMacPriorityTable=swL2ACLQosMacPriorityTable, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swL2QosPriorityState=swL2QosPriorityState, swL2PortInfoType=swL2PortInfoType, swL2ACLQosTemplateRuleL4SwitchActionForwardDscp=swL2ACLQosTemplateRuleL4SwitchActionForwardDscp, swL2ACLQosFlowClassifierL4SwitchUDPSrcPort=swL2ACLQosFlowClassifierL4SwitchUDPSrcPort, swL2ACLQosSchedulingEntry=swL2ACLQosSchedulingEntry, swL2ACLQosFlowClassifierL4SwitchTCPDstIp=swL2ACLQosFlowClassifierL4SwitchTCPDstIp, swL2ACLQosTemplateRuleIndex=swL2ACLQosTemplateRuleIndex, swDevInfoFrontPanelLedStatus=swDevInfoFrontPanelLedStatus, swDevInfoSaveCfg=swDevInfoSaveCfg, swL2DevAlarmTopologyChange=swL2DevAlarmTopologyChange, swL2TrunkFloodingPort=swL2TrunkFloodingPort, swL2IGMPHostTimeout=swL2IGMPHostTimeout, swL2IGMPCtrlState=swL2IGMPCtrlState, swL2IGMPMulticastRouterOnly=swL2IGMPMulticastRouterOnly, swL2ACLQosFlowClassifierL4SwitchOtherDstIp=swL2ACLQosFlowClassifierL4SwitchOtherDstIp, swL2ACLQosFlowClassifierVlanTable=swL2ACLQosFlowClassifierVlanTable, swL2QosSchedulingMaxLatency=swL2QosSchedulingMaxLatency, swL2QosPriorityEntry=swL2QosPriorityEntry, swL2ACLQosTemplateRuleL4SwitchSessionType=swL2ACLQosTemplateRuleL4SwitchSessionType, PYSNMP_MODULE_ID=swL2MgmtMIB, swL2VlanPortTable=swL2VlanPortTable, swL2VlanPortIngressChecking=swL2VlanPortIngressChecking, swL2CpuRateLimitMcastThreshold=swL2CpuRateLimitMcastThreshold, swL2QosPriorityReplacePriority=swL2QosPriorityReplacePriority, swL2StormCtrlMcastStormCtrl=swL2StormCtrlMcastStormCtrl, swL2TrunkCtrlEntry=swL2TrunkCtrlEntry, swL2StaticVlanEgressPorts=swL2StaticVlanEgressPorts, swL2QosPriorityType=swL2QosPriorityType, swL2CpuRateLimitState=swL2CpuRateLimitState, swL2FilterAddrCtrlTable=swL2FilterAddrCtrlTable, swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp, swL2CpuRateLimitPortIndex=swL2CpuRateLimitPortIndex, swL2PortInfoUnitIndex=swL2PortInfoUnitIndex, swL2FilterMgmt=swL2FilterMgmt, swL2ACLQosTemplate1Mode=swL2ACLQosTemplate1Mode, swL2IGMPGroupIpAddr=swL2IGMPGroupIpAddr, swL2CpuRateLimitBcastThreshold=swL2CpuRateLimitBcastThreshold, swL2IGMPLeaveTimer=swL2IGMPLeaveTimer, swL2IGMPCtrlTable=swL2IGMPCtrlTable, swL2IGMPQueryState=swL2IGMPQueryState, swL2ACLQosFlowClassifierL4SwitchUDPSrcIp=swL2ACLQosFlowClassifierL4SwitchUDPSrcIp, swL2FilterAddrCtrlEntry=swL2FilterAddrCtrlEntry, swL2QosSchedulingEntry=swL2QosSchedulingEntry, swL2StormCtrlDlfState=swL2StormCtrlDlfState, swL2IGMPMaxIpGroupNumPerVlan=swL2IGMPMaxIpGroupNumPerVlan, swL2CpuRateLimitTable=swL2CpuRateLimitTable, swL2VlanPortPvid=swL2VlanPortPvid, swL2ACLQosTemplateRuleTable=swL2ACLQosTemplateRuleTable)
mibBuilder.exportSymbols("SWL2MGMT-MIB", swL2IGMPPortAgingTime=swL2IGMPPortAgingTime, swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort=swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort, swL2ACLQosSchedulingPortIndex=swL2ACLQosSchedulingPortIndex, swL2IGMPForwardPortMap=swL2IGMPForwardPortMap, swL2StaticVlanStatus=swL2StaticVlanStatus, swL2ACLQosTemplateRuleL4SwitchSessionTCPTos=swL2ACLQosTemplateRuleL4SwitchSessionTCPTos, swL2ACLQosFlowClassifierSecurityDstMask=swL2ACLQosFlowClassifierSecurityDstMask, swL2ACLQosFDBFilterEntry=swL2ACLQosFDBFilterEntry, swL2PortUtilTable=swL2PortUtilTable, swL2IGMPLastMemberQueryInterval=swL2IGMPLastMemberQueryInterval, swL2ACLQosSchedulingClassId=swL2ACLQosSchedulingClassId, swL2ACLQosMacPriorityState=swL2ACLQosMacPriorityState, swL2StaticVlanProtocolId=swL2StaticVlanProtocolId, swL2ACLQosFlowClassifierTemplateId=swL2ACLQosFlowClassifierTemplateId, swL2StormCtrlBcastStormCtrl=swL2StormCtrlBcastStormCtrl, swL2TrunkBPDU8600InterState=swL2TrunkBPDU8600InterState, swL2TrafficCtrlGroupIndex=swL2TrafficCtrlGroupIndex, swL2TrafficCtrlDlfStormCtrl=swL2TrafficCtrlDlfStormCtrl, swL2ACLQosFlowClassifierL4SwitchTCPTos=swL2ACLQosFlowClassifierL4SwitchTCPTos, swL2DevCtrlIGMPSnooping=swL2DevCtrlIGMPSnooping, swL2ACLQosTemplate2Mode=swL2ACLQosTemplate2Mode, swL2FilterAddrCurrentTotalEntries=swL2FilterAddrCurrentTotalEntries, swL2ACLQosTemplateRuleSecurityDstIp=swL2ACLQosTemplateRuleSecurityDstIp, swL2FilterAddrConfig=swL2FilterAddrConfig, swL2ACLQosFlowClassifierTable=swL2ACLQosFlowClassifierTable, swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp=swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp, swL2DevCtrl=swL2DevCtrl, swL2IGMPGroupPortTable=swL2IGMPGroupPortTable, swL2MgmtPortCurrentNwayStatus=swL2MgmtPortCurrentNwayStatus, swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol=swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol, swL2ACLQosFDBFilterMacAddress=swL2ACLQosFDBFilterMacAddress, swL2PortCtrlAddressLearningState=swL2PortCtrlAddressLearningState, swL2ACLQosFDBFilterState=swL2ACLQosFDBFilterState, swL2ACLQosFlowClassifierVlanTemplateId=swL2ACLQosFlowClassifierVlanTemplateId, managementPortLinkUp=managementPortLinkUp)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, single_value_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, counter32, gauge32, iso, notification_type, integer32, bits, notification_type, object_identity, counter64, time_ticks, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Counter32', 'Gauge32', 'iso', 'NotificationType', 'Integer32', 'Bits', 'NotificationType', 'ObjectIdentity', 'Counter64', 'TimeTicks', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'IpAddress')
(mac_address, textual_convention, truth_value, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TextualConvention', 'TruthValue', 'RowStatus', 'DisplayString')
(private_mgmt,) = mibBuilder.importSymbols('SWPRIMGMT-MIB', 'privateMgmt')
sw_l2_mgmt_mib = module_identity((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2))
if mibBuilder.loadTexts:
swL2MgmtMIB.setLastUpdated('0007150000Z')
if mibBuilder.loadTexts:
swL2MgmtMIB.setOrganization('enterprise, Inc.')
if mibBuilder.loadTexts:
swL2MgmtMIB.setContactInfo(' Customer Service Postal: Tel: E-mail: ')
if mibBuilder.loadTexts:
swL2MgmtMIB.setDescription('The Structure of Layer 2 Network Management Information for the proprietary enterprise.')
class Portlist(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 127)
class Vlanindex(Unsigned32):
pass
sw_l2_dev_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1))
sw_l2_unit_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 2))
sw_l2_module_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 3))
sw_l2_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4))
sw_l2_filter_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6))
sw_l2_vlan_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7))
sw_l2_trunk_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8))
sw_l2_mirror_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9))
sw_l2_igmp_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10))
sw_l2_traffic_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12))
sw_l2_qos_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13))
sw_l2_mgmt_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 14))
sw_l2_storm_ctrl_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15))
sw_l2_acl_qos_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16))
sw_l2_mgmt_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17))
sw_l2_dev_info = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1))
sw_dev_info_system_up_time = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 1), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoSystemUpTime.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoSystemUpTime.setDescription('The value of sysUpTime at the time the switch entered its current operational state. If the current state was entered prior to the last re-initialization, then this object contains a zero value. This value is in units of seconds.')
sw_dev_info_total_num_of_port = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoTotalNumOfPort.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoTotalNumOfPort.setDescription('The number of ports within this switch. This value is the sum of the ports within this switch.')
sw_dev_info_num_of_port_in_use = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoNumOfPortInUse.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoNumOfPortInUse.setDescription('The number of ports in this switch connected to the segment or the end stations.')
sw_dev_info_console_in_use = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('in-use', 2), ('not-in-use', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoConsoleInUse.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoConsoleInUse.setDescription('This usage indication of console system.')
sw_dev_info_front_panel_led_status = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 324))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoFrontPanelLedStatus.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoFrontPanelLedStatus.setDescription('This object is a set of system LED indications. The first three octets is defined as system LED. The first LED is primary power LED. The second LED is redundant power LED. The third LED is console LED. The other octets following the second octets are the logical port LED (following dot1dBasePort ordering). Every two bytes are presented to a port. The first byte is presentd to the Link/Activity LED. The second byte is presented to the Speed LED. Link/Activity LED : The most significant bit is used for blink/solid: 8 = The LED blinks. The second significant bit is used for link status: 1 = link fail. 2 = link pass. Speed LED : 01 = 10Mbps. 02 = 100Mbps. 03 = 1000Mbps. The four remaining bits are currently unused and must be 0.')
sw_l2_dev_ctrl_up_download_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('in-process', 2), ('invalid-file', 3), ('violation', 4), ('file-not-found', 5), ('disk-full', 6), ('complete', 7), ('time-out', 8), ('tftp-establish-fail', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadState.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadState.setDescription("status of upload/download control. If the value is 'other', means never firmware updated since device started up.")
sw_dev_info_save_cfg = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('proceeding', 2), ('ready', 3), ('failed', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swDevInfoSaveCfg.setStatus('current')
if mibBuilder.loadTexts:
swDevInfoSaveCfg.setDescription('This object indicates the status of the device configuration. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. proceeding(2) - the device configuration is saving into the NV-RAM. ready(3) V the device configuration has been ready to save into NV-RAM. failed(4) - The processing of saving device configuration is failed.')
sw_l2_dev_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2))
sw_l2_dev_ctrl_stp_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlStpState.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlStpState.setDescription('This object can be enabled or disabled spanning tree algorithm during runtime of the system.')
sw_l2_dev_ctrl_igmp_snooping = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlIGMPSnooping.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlIGMPSnooping.setDescription('This object indicates layer 2 Internet Group Management Protocol (IGMP) capture function is enabled or disabled.')
sw_l2_dev_ctrl_rmon_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlRmonState.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlRmonState.setDescription('This object can be enabled or disabled RMON.')
sw_l2_dev_ctrl_up_download_image_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImageFileName.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImageFileName.setDescription('The name of the image file to be uploaded/Downloaded from the device to TFTP server when enabling image upload/download function (by writing swL2DevCtrlUpDownloadImage).')
sw_l2_dev_ctrl_up_download_image_source_addr = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImageSourceAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImageSourceAddr.setDescription('The ip address where been uploaded/Downloaded image file.')
sw_l2_dev_ctrl_up_download_image = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('upload', 2), ('download', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImage.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlUpDownloadImage.setDescription("Image file upload/download control. After setting, it will immediately invoke image upload/download function. While retrieving the value of this object, it always returns 'other' normally.")
sw_l2_dev_ctrl_save_cfg = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('active', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlSaveCfg.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlSaveCfg.setDescription('As the object is set to active, the current device configuration is save into to NV-RAM.If set to normal, do nothing.')
sw_l2_dev_ctrl_clean_all_statistic_counter = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('active', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlCleanAllStatisticCounter.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlCleanAllStatisticCounter.setDescription('As the object is set to active, all the statistic counters will be cleared. If set to normal, do nothing.')
sw_l2_dev_ctrl_stp_forward_bpdu = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 2, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevCtrlStpForwardBPDU.setStatus('current')
if mibBuilder.loadTexts:
swL2DevCtrlStpForwardBPDU.setDescription('This object allow the forwarding of STP BPDU packets from other network device or not when STP is disabled on the device.')
sw_l2_dev_alarm = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3))
sw_l2_dev_alarm_new_root = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevAlarmNewRoot.setStatus('current')
if mibBuilder.loadTexts:
swL2DevAlarmNewRoot.setDescription('When the device has become the new root of the Spanning Tree, this object decide whether to send a new root trap.')
sw_l2_dev_alarm_topology_change = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevAlarmTopologyChange.setStatus('current')
if mibBuilder.loadTexts:
swL2DevAlarmTopologyChange.setDescription("This object determine to send a trap or not when the switch topology was changed. If the object is enabled(3), the topologyChange trap is sent by the device when any of its configured ports transitions from the Learning state to the Forwarding state, or from the Forwarding state to the Blocking state. For the same port tranition, the device doesn't send the trap if this object value is disabled or other.")
sw_l2_dev_alarm_link_change = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 1, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2DevAlarmLinkChange.setStatus('current')
if mibBuilder.loadTexts:
swL2DevAlarmLinkChange.setDescription("This object determine to send a trap or not when the link was changed. If the object is enabled(3), the Link Change trap is sent by the device when any of its ports link change. The device doesn't send the trap if this object value is disabled or other.")
sw_l2_unit_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 2, 1))
sw_l2_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1))
if mibBuilder.loadTexts:
swL2PortInfoTable.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoTable.setDescription('A table that contains information about every port.')
sw_l2_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2PortInfoPortIndex'))
if mibBuilder.loadTexts:
swL2PortInfoEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoEntry.setDescription('A list of information for each port of the device.')
sw_l2_port_info_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortInfoPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
sw_l2_port_info_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortInfoUnitIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoUnitIndex.setDescription('Indicates ID of the unit in the device')
sw_l2_port_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('other', 1), ('portType-100Base-TX', 2), ('portType-100Base-FX', 3), ('portType-100Base-FL', 4), ('portType-1000Base-T', 5), ('portType-1000Base-SX', 6), ('portType-1000Base-LX', 7), ('portType-1000Base-GBIC-SX', 8), ('portType-1000Base-GBIC-LX', 9), ('portType-1000Base-GBIC-CWDM', 10), ('portType-1000Base-GBIC-XD', 11), ('portType-1000Base-GBIC-ZX', 12), ('portType-1000Base-GBIC-COPPER', 13), ('portType-1000Base-GBIC-OTHER', 14)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortInfoType.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoType.setDescription('This object indicates the connector type of this port.')
sw_l2_port_info_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('link-pass', 2), ('link-fail', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortInfoLinkStatus.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoLinkStatus.setDescription('This object indicates the port link status.')
sw_l2_port_info_nway_status = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('auto', 2), ('half-10Mbps', 3), ('full-10Mbps', 4), ('half-100Mbps', 5), ('full-100Mbps', 6), ('half-1Gigabps', 7), ('full-1Gigabps', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortInfoNwayStatus.setStatus('current')
if mibBuilder.loadTexts:
swL2PortInfoNwayStatus.setDescription('This object indicates the port speed and duplex mode.')
sw_l2_port_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2))
if mibBuilder.loadTexts:
swL2PortCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlTable.setDescription('A table that contains control information about every port.')
sw_l2_port_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2PortCtrlPortIndex'))
if mibBuilder.loadTexts:
swL2PortCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlEntry.setDescription('A list of control information for each port of the device.')
sw_l2_port_ctrl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortCtrlPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
sw_l2_port_ctrl_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortCtrlUnitIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlUnitIndex.setDescription('Indicates ID of the unit in the device')
sw_l2_port_ctrl_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2PortCtrlAdminState.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlAdminState.setDescription('This object decide the port enabled or disabled.')
sw_l2_port_ctrl_nway_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('nway-enabled', 2), ('nway-disabled-10Mbps-Half', 3), ('nway-disabled-10Mbps-Full', 4), ('nway-disabled-100Mbps-Half', 5), ('nway-disabled-100Mbps-Full', 6), ('nway-disabled-1Gigabps-Full', 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2PortCtrlNwayState.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlNwayState.setDescription('Chose the port speed, duplex mode, and N-Way function mode.')
sw_l2_port_ctrl_flow_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2PortCtrlFlowCtrlState.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlFlowCtrlState.setDescription('The flow control mechanism is different between full duplex mode and half duplex mode. For half duplex mode, the jamming signal is asserted. For full duplex mode, IEEE 802.3x flow control function sends PAUSE frames and receives PAUSE frames.')
sw_l2_port_ctrl_address_learning_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2PortCtrlAddressLearningState.setStatus('current')
if mibBuilder.loadTexts:
swL2PortCtrlAddressLearningState.setDescription('This object decide the address learning state on this port is enabled or disabled.')
sw_l2_port_util_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3))
if mibBuilder.loadTexts:
swL2PortUtilTable.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilTable.setDescription('A table that contains information of utilization about every port.')
sw_l2_port_util_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2PortUtilPortIndex'))
if mibBuilder.loadTexts:
swL2PortUtilEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilEntry.setDescription('A list of information of utilization for each port of the device.')
sw_l2_port_util_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortUtilPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilPortIndex.setDescription("This object indicates the module's port number.(1..Max port number in the module)")
sw_l2_port_util_tx_sec = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortUtilTxSec.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilTxSec.setDescription('Indicates how many packets transmitted per second.')
sw_l2_port_util_rx_sec = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 3), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortUtilRxSec.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilRxSec.setDescription('Indicates how many packets received per second.')
sw_l2_port_util_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 4, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2PortUtilUtilization.setStatus('current')
if mibBuilder.loadTexts:
swL2PortUtilUtilization.setDescription('This object indicates the port utilization.')
sw_l2_filter_addr_config = mib_identifier((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1))
sw_l2_filter_addr_max_supported_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2FilterAddrMaxSupportedEntries.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrMaxSupportedEntries.setDescription('Maximum number of entries in the MAC address filtering table (swL2FilterAddrCtrlTable).')
sw_l2_filter_addr_current_total_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2FilterAddrCurrentTotalEntries.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrCurrentTotalEntries.setDescription('Current applied number of entries in the MAC address filtering table.')
sw_l2_filter_addr_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3))
if mibBuilder.loadTexts:
swL2FilterAddrCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrCtrlTable.setDescription('This table defines information for the device to filter packets with specific MAC address (either as the DA and/or as the SA). The MAC address can be a unicast address or a multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a MAC address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
sw_l2_filter_addr_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2FilterAddrMacIndex'))
if mibBuilder.loadTexts:
swL2FilterAddrCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrCtrlEntry.setDescription('A list of information about a specific unicast/multicast MAC address for which the switch has filtering information.')
sw_l2_filter_addr_mac_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2FilterAddrMacIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrMacIndex.setDescription('This object indicates a unicast/multicast MAC address for which the switch has filtering information. But if the swL2FilterAddrState = src-addr then the object can not be a multicast MAC address.')
sw_l2_filter_addr_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 6, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('dst-addr', 2), ('src-addr', 3), ('dst-src-addr', 4), ('invalid', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2FilterAddrState.setStatus('current')
if mibBuilder.loadTexts:
swL2FilterAddrState.setDescription("This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. dst-addr(2) - recieved frames's destination address are currently used to be filtered as it meets with the MAC address entry of the table. src-addr(3) - recieved frames's source address are currently used to be filtered as it meets with the MAC address entry of the table. dst-src-addr(4) - recieved frames's destination address or source address are currently used to be filtered as it meets with the MAC address entry of the table. invalid(5) - writing this value to the object, and then the corresponding entry will be removed from the table.")
sw_l2_static_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1))
if mibBuilder.loadTexts:
swL2StaticVlanTable.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanTable.setDescription('A table containing static configuration information for each VLAN configured into the device by (local or network) management.')
sw_l2_static_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2StaticVlanIndex'))
if mibBuilder.loadTexts:
swL2StaticVlanEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanEntry.setDescription('Static information for a VLAN configured into the device by (local or network) management.')
sw_l2_static_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2StaticVlanIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanIndex.setDescription('A value that uniquely identifies the Virtual LAN associated with this entry.')
sw_l2_static_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanName.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanName.setDescription('An administratively-assigned name for this VLAN.')
sw_l2_static_vlan_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('byport', 1), ('byIpSubnet', 2), ('byProtocolId', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanType.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanType.setDescription('The type of VLAN, distinguished according to the policy used to define its port membership.')
sw_l2_static_vlan_protocol_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('none', 0), ('ipEther2', 1), ('rarpEther2', 2), ('ipx802dot3', 3), ('ipx802dot2', 4), ('ipxSnap', 5), ('ipxEther2', 6), ('apltkEther2Snap', 7), ('decEther2', 8), ('decOtherEther2', 9), ('sna802dot2', 10), ('snaEther2', 11), ('netBios', 12), ('xnsEther2', 13), ('vinesEther2', 14), ('ipv6Ether2', 15), ('userDefined', 16), ('arpEther2', 17)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanProtocolId.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanProtocolId.setDescription('The protocol identifier of this VLAN. This value is meaningful only if swL2StaticVlanType is equal to byProtocolId(3). For other VLAN types it should have the value none(0).')
sw_l2_static_vlan_ip_subnet_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetAddr.setDescription('The IP subnet address of this VLAN. This value is meaningful only if rcVlanType is equal to byIpSubnet(2). For other VLAN types it should have the value 0.0.0.0.')
sw_l2_static_vlan_ip_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetMask.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetMask.setDescription('The IP subnet mask of this VLAN. This value is meaningful only if rcVlanType is equal to byIpSubnet(2). For other VLAN types it should have the value 0.0.0.0.')
sw_l2_static_vlan_user_defined_pid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanUserDefinedPid.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanUserDefinedPid.setDescription('When swL2StaticVlanProtocolId is set to userDefined(16) in a protocol-based VLAN, this field represents the 16-bit user defined protocol identifier. Otherwise, this object should be zero.')
sw_l2_static_vlan_encap = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('all', 1), ('ethernet2', 2), ('llc', 3), ('snap', 4), ('un-used', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanEncap.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanEncap.setDescription('This value is meaningful only if swL2StaticVlanProtocolId is set to userDefined(16). Otherwise, this object should be un-used(5). If If this set to ethernet2(2), the Detagged Frame uses Type-encapsulated 802.3 format. If this set to llc(3), the Detagged Frame contains both a DSAP and an SSAP address field in the positions. If this set to snap(4), the Detagged Frame is of the format specified by IEEE Std. 802.1H for the encoding of an IEEE 802.3 Type Field in an 802.2/SNAP header.')
sw_l2_static_vlan_user_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4, 4), value_range_constraint(6, 6), value_range_constraint(7, 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanUserPriority.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanUserPriority.setDescription('User priority level. This value is meaningful only if swL2StaticVlanType is set to byIpSubnet(2) or byProtocolId(3).')
sw_l2_static_vlan_egress_ports = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 10), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanEgressPorts.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanEgressPorts.setDescription('The set of ports which are permanently assigned to the egress list for this VLAN by management. The default value of this object is a string of zeros of appropriate length.')
sw_l2_static_vlan_untagged_ports = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 11), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanUntaggedPorts.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanUntaggedPorts.setDescription('The set of ports which should transmit egress packets for this VLAN as untagged. The default value of this object for the default VLAN is a string of appropriate length including all ports. There is no specified default for other VLANs.')
sw_l2_static_vlan_status = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 12), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanStatus.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanStatus.setDescription('This object indicates the status of this entry.')
sw_l2_static_vlan_ip_subnet_arp_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetArpClassId.setStatus('current')
if mibBuilder.loadTexts:
swL2StaticVlanIpSubnetArpClassId.setDescription('This object indicates the ARP classification ID. If the swL2StaticVlanType is not byIpSubnet(2), this value must be 0. If the swL2StaticVlanType is byIpSubnet(2), the range of this object is 1 to 4094. This object is useful when create the first IpSubnet entry, and not allow to modify.')
sw_l2_vlan_port_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2))
if mibBuilder.loadTexts:
swL2VlanPortTable.setStatus('current')
if mibBuilder.loadTexts:
swL2VlanPortTable.setDescription('A table containing per port control and status information for VLAN configuration in the device.')
sw_l2_vlan_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2VlanPortIndex'))
if mibBuilder.loadTexts:
swL2VlanPortEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2VlanPortEntry.setDescription('Information controlling VLAN configuration for a port on the device.')
sw_l2_vlan_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2VlanPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2VlanPortIndex.setDescription('An unique index used to identify a particular port in the system.')
sw_l2_vlan_port_pvid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2VlanPortPvid.setStatus('current')
if mibBuilder.loadTexts:
swL2VlanPortPvid.setDescription('The PVID, the VLAN ID assigned to untagged frames or Priority- Tagged frames received on this port.')
sw_l2_vlan_port_ingress_checking = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 7, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2VlanPortIngressChecking.setStatus('current')
if mibBuilder.loadTexts:
swL2VlanPortIngressChecking.setDescription('When this is enabled(3) the device will discard incoming frames for VLANs which do not include this Port in its Member set. When disabled(2), the port will accept all incoming frames.')
sw_l2_trunk_max_supported_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrunkMaxSupportedEntries.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkMaxSupportedEntries.setDescription('Maximum number of entries in the trunk configuration table (swL2TrunkCtrlTable).')
sw_l2_trunk_current_num_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrunkCurrentNumEntries.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkCurrentNumEntries.setDescription('Current actived number of entries in the trunk configuration table.')
sw_l2_trunk_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3))
if mibBuilder.loadTexts:
swL2TrunkCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkCtrlTable.setDescription('This table specifys which ports group a set of ports(up to 8) into a single logical link.')
sw_l2_trunk_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2TrunkIndex'))
if mibBuilder.loadTexts:
swL2TrunkCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkCtrlEntry.setDescription('A list of information specifies which ports group a set of ports(up to 8) into a single logical link.')
sw_l2_trunk_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrunkIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkIndex.setDescription('The index of logical port trunk. The trunk group number depend on the existence of unit and module.')
sw_l2_trunk_name = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 12))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkName.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkName.setDescription('The name of logical port trunk.')
sw_l2_trunk_master_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkMasterPort.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkMasterPort.setDescription('The object indicates the master port number of the port trunk entry. When using Port Trunk, you can not configure the other ports of the group except the master port. Their configuration must be same as the master port (e.g. speed, duplex, enabled/disabled, flow control, and so on).')
sw_l2_trunk_member = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 4), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkMember.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkMember.setDescription('Indicate how many number of ports is included in this Trunk. The trunk port number depend on the existence of module. The maximum number of ports is 4 for one trunks.')
sw_l2_trunk_flooding_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrunkFloodingPort.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkFloodingPort.setDescription('The object indicates the flooding port number of the port trunk entry. The first port of the trunk is implicitly configured to be the flooding port.')
sw_l2_trunk_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('invalid', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkState.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the port trunk disabled. enabled(3) - the port trunk enabled. invalid(4) - writing this value to the object, and then the corresponding entry will be removed from the table.')
sw_l2_trunk_bpdu8600_inter_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkBPDU8600InterState.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkBPDU8600InterState.setDescription("This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the trunk member doesn't send BPDU. enabled(3) - the trunk member can send BPDU.")
sw_l2_trunk_algorithm = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 8, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('mac-source', 2), ('mac-destination', 3), ('mac-source-dest', 4), ('ip-source', 5), ('ip-destination', 6), ('ip-source-dest', 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrunkAlgorithm.setStatus('current')
if mibBuilder.loadTexts:
swL2TrunkAlgorithm.setDescription('This object configures to part of the packet examined by the switch when selecting the egress port for transmitting load-sharing data. This feature is only available using the address-based load-sharing algorithm.')
sw_l2_mirror_logic_target_port = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MirrorLogicTargetPort.setStatus('current')
if mibBuilder.loadTexts:
swL2MirrorLogicTargetPort.setDescription('This object indicates switch which port will sniff another port. A trunk port member cannot be configured as a target Snooping port. The port number is the sequential (logical) number which is also applied to bridge MIB, etc.')
sw_l2_mirror_port_source_ingress = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 2), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MirrorPortSourceIngress.setStatus('current')
if mibBuilder.loadTexts:
swL2MirrorPortSourceIngress.setDescription('The represent the ingress into the source port packet to sniffed.')
sw_l2_mirror_port_source_egress = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 3), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MirrorPortSourceEgress.setStatus('current')
if mibBuilder.loadTexts:
swL2MirrorPortSourceEgress.setDescription('The represent the egress from the source port packet to sniffed.')
sw_l2_mirror_port_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 9, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MirrorPortState.setStatus('current')
if mibBuilder.loadTexts:
swL2MirrorPortState.setDescription('This object indicates the port mirroring state. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - writing this value to the object, and then the corresponding entry will be removed from the table. enabled(3) - this entry is reside in the table.')
sw_l2_igmp_max_supported_vlans = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPMaxSupportedVlans.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMaxSupportedVlans.setDescription('Maximum number of Vlans in the layer 2 IGMP control table (swL2IGMPCtrlTable).')
sw_l2_igmp_max_ip_group_num_per_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPMaxIpGroupNumPerVlan.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMaxIpGroupNumPerVlan.setDescription('Maximum number of multicast ip group per Vlan in the layer 2 IGMP information table (swL2IGMPQueryInfoTable).')
sw_l2_igmp_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3))
if mibBuilder.loadTexts:
swL2IGMPCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPCtrlTable.setDescription("The table controls the Vlan's IGMP function. Its scale depends on current VLAN state (swL2VlanInfoStatus). If VLAN is disabled mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries can be up to 12, with index range from 1 to 12.")
sw_l2_igmp_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPCtrlVid'))
if mibBuilder.loadTexts:
swL2IGMPCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPCtrlEntry.setDescription('The entry in IGMP control table (swL2IGMPCtrlTable). The entry is effective only when IGMP capture switch (swL2DevCtrlIGMPSnooping) is enabled.')
sw_l2_igmp_ctrl_vid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPCtrlVid.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPCtrlVid.setDescription("This object indicates the IGMP control entry's VLAN id. If VLAN is disabled, the Vid is always 0 and cannot be changed by management users. If VLAN is in Port-Base mode, the Vid is arranged from 1 to 12, fixed form. If VLAN is in 802.1q mode, the Vid setting can vary from 1 to 4094 by management user, and the Vid in each entry must be unique in the IGMP Control Table.")
sw_l2_igmp_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(125)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPQueryInterval.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPQueryInterval.setDescription('The frequency at which IGMP Host-Query packets are transmitted on this switch.')
sw_l2_igmp_max_response_time = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 25)).clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPMaxResponseTime.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMaxResponseTime.setDescription('The maximum query response time on this switch.')
sw_l2_igmp_robustness = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPRobustness.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRobustness.setDescription('The Robustness Variable allows tuning for the expected packet loss on a subnet. If a subnet is expected to be lossy, the Robustness Variable may be increased. IGMP is robust to (Robustness Variable-1) packet losses.')
sw_l2_igmp_last_member_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPLastMemberQueryInterval.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPLastMemberQueryInterval.setDescription('The Last Member Query Interval is the Max Response Time inserted into Group-Specific Queries sent in response to Leave Group messages, and is also the amount of time between Group-Specific Query messages.')
sw_l2_igmp_host_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(260)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPHostTimeout.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPHostTimeout.setDescription('The timer value for sending IGMP query packet when none was sent by the host in the LAN. The timer works in per-VLAN basis. Our device will be activated to send the query message if the timer is expired. Please reference RFC2236-1997.')
sw_l2_igmp_route_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(260)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPRouteTimeout.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRouteTimeout.setDescription('The Router Timeout is how long a host must wait after hearing a Query before it may send any IGMPv2 messages.')
sw_l2_igmp_leave_timer = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPLeaveTimer.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPLeaveTimer.setDescription('When a querier receives a Leave Group message for a group that has group members on the reception interface, it sends Group-Specific Queries every swL2IGMPLeaveTimer to the group being left.')
sw_l2_igmp_query_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPQueryState.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPQueryState.setDescription('This object decide the IGMP query enabled or disabled.')
sw_l2_igmp_current_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('querier', 2), ('non-querier', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPCurrentState.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPCurrentState.setDescription('This object indicates the current IGMP query state.')
sw_l2_igmp_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPCtrlState.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPCtrlState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - IGMP funtion is disabled for this entry. enabled(3) - IGMP funtion is enabled for this entry.')
sw_l2_igmp_query_info_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4))
if mibBuilder.loadTexts:
swL2IGMPQueryInfoTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPQueryInfoTable.setDescription('The table contains the number current IGMP query packets which is captured by this device, as well as the IGMP query packets sent by the device.')
sw_l2_igmp_query_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPInfoVid'))
if mibBuilder.loadTexts:
swL2IGMPQueryInfoEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPQueryInfoEntry.setDescription('Information about current IGMP query information, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrState of associated VLAN entry are all enabled.')
sw_l2_igmp_info_vid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPInfoVid.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPInfoVid.setDescription('This object indicates the Vid of associated IGMP info table entry. It follows swL2IGMPCtrlVid in the associated entry of IGMP control table (swL2IGMPCtrlTable).')
sw_l2_igmp_info_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPInfoQueryCount.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPInfoQueryCount.setDescription('This object indicates the number of query packets received since the IGMP function enabled, in per-VLAN basis.')
sw_l2_igmp_info_tx_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPInfoTxQueryCount.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPInfoTxQueryCount.setDescription('This object indicates the send count of IGMP query messages, in per-VLAN basis. In case of IGMP timer expiration, the switch sends IGMP query packets to related VLAN member ports and increment this object by 1.')
sw_l2_igmp_group_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5))
if mibBuilder.loadTexts:
swL2IGMPGroupTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPGroupTable.setDescription('The table containing current IGMP information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swL2FilterMgmt description also.')
sw_l2_igmp_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPVid'), (0, 'SWL2MGMT-MIB', 'swL2IGMPGroupIpAddr'))
if mibBuilder.loadTexts:
swL2IGMPGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPGroupEntry.setDescription('Information about current IGMP information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled.')
sw_l2_igmp_vid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPVid.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report information captured on network.')
sw_l2_igmp_group_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPGroupIpAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
sw_l2_igmp_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 3), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPMacAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMacAddr.setDescription('This object is identify mac address which is corresponding to swL2IGMPGroupIpAddr, in per-Vlan basis.')
sw_l2_igmp_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPPortMap.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the switch is represented by a single bit within the value of this object. If that bit has a value of '1' then that port is included in the set of ports; the port is not included if its bit has a value of '0'(Note that the setting of the bit corresponding to the port from which a frame is received is irrelevant). The 4 octets is represent one unit port according its logic port. If the unit less 32 port, the other port don't care just fill zero.")
sw_l2_igmp_ip_group_report_count = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPIpGroupReportCount.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPIpGroupReportCount.setDescription('This object indicate how much report packet was receive by our device corresponding with this entry from IGMP function enabled, in per-Vlan basis.')
sw_l2_igmp_forward_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6))
if mibBuilder.loadTexts:
swL2IGMPForwardTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPForwardTable.setDescription('The table containing current IGMP forwarding information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swL2FilterMgmt description also.')
sw_l2_igmp_forward_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPForwardVid'), (0, 'SWL2MGMT-MIB', 'swL2IGMPForwardGroupIpAddr'))
if mibBuilder.loadTexts:
swL2IGMPForwardEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPForwardEntry.setDescription('Information about current IGMP forwarding information which captured by this device, provided that swL2DevCtrlIGMPSnooping and swL2IGMPCtrlState of associated VLAN entry are all enabled.')
sw_l2_igmp_forward_vid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPForwardVid.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPForwardVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report forward information captured on network.')
sw_l2_igmp_forward_group_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPForwardGroupIpAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPForwardGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
sw_l2_igmp_forward_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 6, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPForwardPortMap.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPForwardPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. Thus, each port of the switch is represented by a single bit within the value of this object. If that bit has a value of '1' then that port is included in the set of ports; the port is not included if its bit has a value of '0'(Note that the setting of the bit corresponding to the port from which a frame is received is irrelevant). The 4 octets is represent one unit port according its logic port. If the unit less 32 port, the other port don't care just fill zero.")
sw_l2_igmprp_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7))
if mibBuilder.loadTexts:
swL2IGMPRPTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRPTable.setDescription('The table allows you to designate a range of ports as being connected to multicast-enabled routers. This will ensure that all packets with such a router as its destination will reach the multicast-enabled router, regardless of protocol, etc.')
sw_l2_igmprp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPRPVid'))
if mibBuilder.loadTexts:
swL2IGMPRPEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRPEntry.setDescription('A list of swL2IGMPRPTable.')
sw_l2_igmprp_vid = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPRPVid.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRPVid.setDescription('The Vid of the VLAN on which the router port resides.')
sw_l2_igmprp_static_router_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 2), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPRPStaticRouterPort.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRPStaticRouterPort.setDescription('Specifies a range of ports which will be configured as router ports.')
sw_l2_igmprp_dynamic_router_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 7, 1, 3), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPRPDynamicRouterPort.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPRPDynamicRouterPort.setDescription('Displays router ports that have been dynamically configued.')
sw_l2_igmp_multicast_router_only = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPMulticastRouterOnly.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMulticastRouterOnly.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the switch forwards all mulitcast traffic to any IP router. enabled(3) - the switch will forward all multicast traffic to the multicast router, only.')
sw_l2_igmp_group_port_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9))
if mibBuilder.loadTexts:
swL2IGMPGroupPortTable.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPGroupPortTable.setDescription('This table describe the detail information of the member ports of the swL2IGMPGroupTable.')
sw_l2_igmp_group_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2IGMPVid'), (0, 'SWL2MGMT-MIB', 'swL2IGMPGroupIpAddr'), (0, 'SWL2MGMT-MIB', 'swL2IGMPPortMember'))
if mibBuilder.loadTexts:
swL2IGMPGroupPortEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPGroupPortEntry.setDescription('Information about member ports of current swL2IGMPGroupTable.')
sw_l2_igmp_port_member = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPPortMember.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPPortMember.setDescription('This object indicates which ports are belong to the same multicast group, in per-Vlan basis, in swL2IGMPGroupTable.')
sw_l2_igmp_port_aging_time = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 9, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16711450))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2IGMPPortAgingTime.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPPortAgingTime.setDescription('This object indicate the aging out timer. This value is in units of seconds.')
sw_l2_igmp_multicast_filter = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 10, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2IGMPMulticastFilter.setStatus('current')
if mibBuilder.loadTexts:
swL2IGMPMulticastFilter.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - the un-registered multicast traffic will be flooded. enabled(3) - the un-registered multicast traffic will be filtered.')
sw_l2_traffic_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1))
if mibBuilder.loadTexts:
swL2TrafficCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlTable.setDescription('This table specifys the storm traffic control configuration.')
sw_l2_traffic_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2TrafficCtrlGroupIndex'))
if mibBuilder.loadTexts:
swL2TrafficCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlEntry.setDescription('A list of information specifies the storm traffic control configuration.')
sw_l2_traffic_ctrl_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrafficCtrlGroupIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlGroupIndex.setDescription('The index of logical port trunk. The trunk group number depend on the existence of unit and module.')
sw_l2_traffic_ctrl_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2TrafficCtrlUnitIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlUnitIndex.setDescription('Indicates ID of the unit in the device')
sw_l2_traffic_ctrl_bm_stormthreshold = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrafficCtrlBMStormthreshold.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlBMStormthreshold.setDescription('This object to decide how much thousand packets per second broadcast/multicast (depend on swL2TrafficCtrlBcastStormCtrl, swL2TrafficCtrlMcastStormCtrl or swL2TrafficCtrlDlfStormCtrl objects whether is enabled) will active storm control. Whenever a port reaches its configured amount of packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet.')
sw_l2_traffic_ctrl_bcast_storm_ctrl = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrafficCtrlBcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlBcastStormCtrl.setDescription('This object indicates broadcast storm control function is enabled or disabled.')
sw_l2_traffic_ctrl_mcast_storm_ctrl = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrafficCtrlMcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlMcastStormCtrl.setDescription('This object indicates multicast storm control function is enabled or disabled.')
sw_l2_traffic_ctrl_dlf_storm_ctrl = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 12, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2TrafficCtrlDlfStormCtrl.setStatus('current')
if mibBuilder.loadTexts:
swL2TrafficCtrlDlfStormCtrl.setDescription('This object indicates destination lookup fail function is enabled or disabled.')
sw_l2_qos_scheduling_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1))
if mibBuilder.loadTexts:
swL2QosSchedulingTable.setStatus('current')
if mibBuilder.loadTexts:
swL2QosSchedulingTable.setDescription('The switch contains 4 hardware priority queues. Incoming packets must be mapped to one of these four queues. Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.')
sw_l2_qos_scheduling_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2QosSchedulingClassId'))
if mibBuilder.loadTexts:
swL2QosSchedulingEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2QosSchedulingEntry.setDescription('A list of information specifies the Qos output scheduling Table.')
sw_l2_qos_scheduling_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2QosSchedulingClassId.setStatus('current')
if mibBuilder.loadTexts:
swL2QosSchedulingClassId.setDescription('This specifies which of the four hardware priority queues. The four hardware priority queues are identified by number, from 0 to 3, with the 0 queue being the lowest priority.')
sw_l2_qos_scheduling_max_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosSchedulingMaxPkts.setStatus('current')
if mibBuilder.loadTexts:
swL2QosSchedulingMaxPkts.setDescription('Specifies the maximium number of packets the above specified hardware priority queue will be allowed to transmit before allowing the next lowest priority queue to transmit its packets.')
sw_l2_qos_scheduling_max_latency = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosSchedulingMaxLatency.setStatus('current')
if mibBuilder.loadTexts:
swL2QosSchedulingMaxLatency.setDescription('Specifies the maximum amount of time the above specified hardware priority queue will be allowed to transmit packets before allowing the next lowest hardware priority queue to begin transmitting its packets. A value between 0 and 255 can be specified. With this value multiplied by 16 ms to arrive at the total allowed time for the queue to transmit packets.')
sw_l2_qos_priority_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2))
if mibBuilder.loadTexts:
swL2QosPriorityTable.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityTable.setDescription('This table display the current priority settings on the switch.')
sw_l2_qos_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2QosPriorityType'), (0, 'SWL2MGMT-MIB', 'swL2QosPriorityValue'))
if mibBuilder.loadTexts:
swL2QosPriorityEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityEntry.setDescription('A list of information display the current priority settings on the switch.')
sw_l2_qos_priority_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('type-dscp', 2), ('type-8021p', 3), ('type-tcp', 4), ('type-udp', 5), ('type-ip', 6), ('type-mac', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2QosPriorityType.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityType.setDescription('These parameters define what characteristics an incoming packet must meet. One or more of the above parameters must be defined.')
sw_l2_qos_priority_value = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 2), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(1, 1), value_size_constraint(2, 2), value_size_constraint(4, 4), value_size_constraint(6, 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2QosPriorityValue.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityValue.setDescription('This object must match with swL2QosPriorityType. If the type is type-dscp(2), the range of this object is 0~63. If the type is type-8021p(3), the range of this object is 0~7. If the type is type-tcp(4) or type-udp(5), the range of this object is 1~65535.')
sw_l2_qos_priority_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityPriority.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityPriority.setDescription('Allows to specify a priority value to be written to the 802.1p priority field of an incoming packet that meets the criteria.')
sw_l2_qos_priority_priority_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityPriorityState.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityPriorityState.setDescription('This object indicates 802.1p priority function is enabled or disabled.')
sw_l2_qos_priority_replace_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityReplaceDscp.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityReplaceDscp.setDescription('Allows to specify a value to be written to the DSCP field of an incoming packet that meets the criteria.')
sw_l2_qos_priority_replace_dscp_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityReplaceDscpState.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityReplaceDscpState.setDescription('This object indicates DSCP function is enabled or disabled.')
sw_l2_qos_priority_replace_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityReplacePriority.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityReplacePriority.setDescription('This object indicates the 802.1p user priority with the priority specified above will be replaced or not.')
sw_l2_qos_priority_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 13, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2QosPriorityState.setStatus('current')
if mibBuilder.loadTexts:
swL2QosPriorityState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
management_port_link_up = notification_type((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2) + (0, 1))
if mibBuilder.loadTexts:
managementPortLinkUp.setDescription('The trap is sent whenever the management port is link up.')
management_port_link_down = notification_type((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2) + (0, 2))
if mibBuilder.loadTexts:
managementPortLinkDown.setDescription('The trap is sent whenever the management port is link down.')
sw_l2_storm_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1))
if mibBuilder.loadTexts:
swL2StormCtrlTable.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlTable.setDescription('This table specifys the storm traffic control configuration.')
sw_l2_storm_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2StormCtrlPortIndex'))
if mibBuilder.loadTexts:
swL2StormCtrlEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlEntry.setDescription('A list of information specifies the storm traffic control configuration.')
sw_l2_storm_ctrl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2StormCtrlPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlPortIndex.setDescription('The index of logical port.')
sw_l2_storm_ctrl_bcast_storm_ctrl = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StormCtrlBcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlBcastStormCtrl.setDescription('This object indicates broadcast storm control function is enabled or disabled.')
sw_l2_storm_ctrl_mcast_storm_ctrl = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StormCtrlMcastStormCtrl.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlMcastStormCtrl.setDescription('This object indicates multicast storm control function is enabled or disabled.')
sw_l2_storm_ctrl_bm_storm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StormCtrlBMStormThreshold.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlBMStormThreshold.setDescription('This object to decide how much percentage packets per second broadcast/multicast (depend on swL2StormCtrlBcastStormCtrl or swL2StormCtrlMcastStormCtrl objects whether is enabled) will active storm control. Whenever a port reaches its configured percent of packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet.')
sw_l2_storm_ctrl_dlf_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StormCtrlDlfState.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlDlfState.setDescription('This object indicates destination lookup fail function is enabled or disabled.')
sw_l2_storm_ctrl_dlf_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 148810))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2StormCtrlDlfThreshold.setStatus('current')
if mibBuilder.loadTexts:
swL2StormCtrlDlfThreshold.setDescription('This object to decide how much packets per second destination lookup fail (depend on swL2StormCtrlDlfState objects whether is enabled) will active storm control. Whenever the device reaches its configured packets in the one second time interval, the device will start dropping that type of packet, until the time interval has expired. Once the time interval has expired, the device will start forwarding that type of packet. This value must be the multiples of 8192.')
sw_l2_cpu_rate_limit_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4))
if mibBuilder.loadTexts:
swL2CpuRateLimitTable.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitTable.setDescription('This table specifys the CPU rate limit per port. Once too much broadcast/multicast traffic, exceed CP-Limit, comes in from a port, the port state will be disabled.')
sw_l2_cpu_rate_limit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2CpuRateLimitPortIndex'))
if mibBuilder.loadTexts:
swL2CpuRateLimitEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitEntry.setDescription('A list of information specifies the CPU rate limit of the port configuration.')
sw_l2_cpu_rate_limit_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2CpuRateLimitPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitPortIndex.setDescription('The index of logical port.')
sw_l2_cpu_rate_limit_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2CpuRateLimitState.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitState.setDescription('This object indicates CPU rate limit function is enabled or disabled.')
sw_l2_cpu_rate_limit_bcast_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1700))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2CpuRateLimitBcastThreshold.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitBcastThreshold.setDescription('This object to decide how much packets per second broadcast will active traffic control. Whenever a port reaches its configured packets in the one second time interval, the port will be disabled.')
sw_l2_cpu_rate_limit_mcast_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 2000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2CpuRateLimitMcastThreshold.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuRateLimitMcastThreshold.setDescription('This object to decide how much packets per second multicast will active traffic control. Whenever a port reaches its configured packets in the one second time interval, the port will be disabled.')
sw_l2_cpu_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 15, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2CpuUtilization.setStatus('current')
if mibBuilder.loadTexts:
swL2CpuUtilization.setDescription('The utilization of CPU.')
sw_l2_acl_qos_template1_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('security', 2), ('qos', 3), ('l4-switch', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplate1Mode.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplate1Mode.setDescription('This object decide the operate mode of template_1.')
sw_l2_acl_qos_template2_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('security', 2), ('qos', 3), ('l4-switch', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplate2Mode.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplate2Mode.setDescription('This object decide the operate mode of template_2.')
sw_l2_acl_qos_flow_classifier_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3))
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierTable.setDescription('This table specifys the template of flow classifier.')
sw_l2_acl_qos_flow_classifier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosFlowClassifierTemplateId'))
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierEntry.setDescription('A list of information specifies the template of flow classifier.')
sw_l2_acl_qos_flow_classifier_template_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierTemplateId.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierTemplateId.setDescription('The index of template ID.')
sw_l2_acl_qos_flow_classifier_current_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('security', 2), ('qos', 3), ('l4-switch', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierCurrentMode.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierCurrentMode.setDescription('The current operated mode of this template.')
sw_l2_acl_qos_flow_classifier_security_src_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierSecuritySrcMask.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierSecuritySrcMask.setDescription('This object indicates a source IP subnet rule for the switch. If the swL2ACLQosFlowClassifierCurrentMode is not security(2), then this object must be 0.0.0.0.')
sw_l2_acl_qos_flow_classifier_qos_flavor = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('flavor-8021p', 1), ('flavor-dscp', 2), ('flavor-ip', 3), ('flavor-tcp', 4), ('flavor-udp', 5), ('flavor-un-used', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierQosFlavor.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierQosFlavor.setDescription('These parameters define what characteristics an incoming packet must meet. One or more of the above parameters must be defined. If the swL2ACLQosFlowClassifierCurrentMode is not qos(3), then this object must be flavor-un-used(6).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPTos.setDescription('This object indicate the type of service in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPDstPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPDstPort.setDescription('This object indicate the destination TCP port number in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPSrcPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPSrcPort.setDescription('This object indicate the source TCP port number in the configured L4 TCP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_tcp_flags = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPFlags.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchTCPFlags.setDescription('This object indicate the TCP flags in the configured L4 TCP- session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_udp_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_udp_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_udp_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPTos.setDescription('This object indicate the type of service in the configured L4 UDP-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_udp_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPDstPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPDstPort.setDescription('This object indicate the destination UDP port number in the configured L4 UDP session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_udp_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPSrcPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchUDPSrcPort.setDescription('This object indicate the source UDP port number in the configured L4 UDP session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherDstIp.setDescription('This object indicate the destination ipaddress in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherSrcIp.setDescription('This object indicate the source ipaddress in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherTos.setDescription('This object indicate the type of service in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_l4_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol.setDescription('This object indicate the l4_protocol in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_icmp_message = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage.setDescription('This object indicate the ICMP message in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_l4_switch_other_igmp_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherIGMPType.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierL4SwitchOtherIGMPType.setDescription('This object indicate the IGMP type in the configured L4 OTHER-session rule entries must be checked or not. If the swL2ACLQosFlowClassifierCurrentMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_flow_classifier_active_rule_number = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierActiveRuleNumber.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierActiveRuleNumber.setDescription('This object indicates the number of active rule.')
sw_l2_acl_qos_flow_classifier_security_dst_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 3, 1, 23), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierSecurityDstMask.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierSecurityDstMask.setDescription('This object indicates a destination IP subnet rule for the switch. If the swL2ACLQosFlowClassifierCurrentMode is not security(2), then this object must be 0.0.0.0.')
sw_l2_acl_qos_flow_classifier_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4))
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanTable.setDescription('This table specifys which vlan has been binded in the template.')
sw_l2_acl_qos_flow_classifier_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosFlowClassifierVlanTemplateId'), (0, 'SWL2MGMT-MIB', 'swL2ACLQosFlowClassifierVlanVlanName'))
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanEntry.setDescription('A list of information which vlan has been binded in the template.')
sw_l2_acl_qos_flow_classifier_vlan_template_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanTemplateId.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanTemplateId.setDescription('The index of template ID.')
sw_l2_acl_qos_flow_classifier_vlan_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanVlanName.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanVlanName.setDescription('The existence of VLAN name.')
sw_l2_acl_qos_flow_classifier_vlan_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('attached', 2), ('detached', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFlowClassifierVlanState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. attached(2) - this entry is reside in the table. detached(3) - writing this value to the object, and then the corresponding entry will be removed from the table.')
sw_l2_acl_qos_template_rule_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5))
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleTable.setDescription('This table specifys the template-depend rules.')
sw_l2_acl_qos_template_rule_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosTemplateRuleTemplateId'), (0, 'SWL2MGMT-MIB', 'swL2ACLQosTemplateRuleIndex'))
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleEntry.setDescription('A list of information specifies the template-depend rules.')
sw_l2_acl_qos_template_rule_template_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleTemplateId.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleTemplateId.setDescription('The index of template ID.')
sw_l2_acl_qos_template_rule_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleIndex.setDescription('The index of template rule.')
sw_l2_acl_qos_template_rule_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('security', 2), ('qos', 3), ('l4-switch', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleMode.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleMode.setDescription('This object indicates the rule type of the entry.')
sw_l2_acl_qos_template_rule_security_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleSecuritySrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleSecuritySrcIp.setDescription('This object indicates the source IP of flow template. If the swL2ACLQosTemplateRuleMode is not security(2), then this object will be display 0.0.0.0.')
sw_l2_acl_qos_template_rule_qos_flavor = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('flavor-8021p', 1), ('flavor-dscp', 2), ('flavor-ip', 3), ('flavor-tcp', 4), ('flavor-udp', 5), ('flavor-un-used', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosFlavor.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosFlavor.setDescription('This object indicates the rule type of the QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be flavor-un-used(6).')
sw_l2_acl_qos_template_rule_qos_value = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 6), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(1, 1), value_size_constraint(2, 2), value_size_constraint(4, 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosValue.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosValue.setDescription('This object must match with swL2ACLQosTemplateRuleQosFlavor. If the type is flavor-8021p(1), the range of this object is 0~7. If the type is flavor-dscp(2), the range of this object is 0~63. If the type is flavor-tcp(4) or flavor-udp(5), the range of this object is 1~65535. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be NULL.')
sw_l2_acl_qos_template_rule_qos_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosPriority.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosPriority.setDescription('This object indicates the priority of ingress packets in QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be 0.')
sw_l2_acl_qos_template_rule_qos_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosDscp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleQosDscp.setDescription('This object indicates the Dscp of ingress packets in QOS mode. If the swL2ACLQosTemplateRuleMode is not qos(3), then this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_session_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('tcp', 1), ('udp', 2), ('other', 3), ('un-used', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionType.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionType.setDescription('This object indicates the rule type of the TCP-Session in L4-Switch mode. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(4).')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 10), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 11), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp.setDescription('This object indicates the source ipaddress in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPTos.setDescription('This object indicates the type of service in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort.setDescription('This object indicates the destination TCP port number in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort.setDescription('This object indicates the source TCP port number in the configured L4 TCP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_flags = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('fin', 1), ('syn', 2), ('rst', 3), ('psh', 4), ('ack', 5), ('urg', 6), ('un-used', 7)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags.setStatus('deprecated')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags.setDescription('This object indicates the TCP flags in the configured L4 TCP- session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(7). This object is deprecated because it just can let user to choose one of these items.')
sw_l2_acl_qos_template_rule_l4_switch_session_udp_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 16), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_udp_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 17), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp.setDescription('This object indicates the soruce ipaddress in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_udp_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 18), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPTos.setDescription('This object indicates the type of service in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_l4_switch_session_udp_dst_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort.setDescription('This object indicates the destination UDP port number in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_session_udp_src_port = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort.setDescription('This object indicates the source UDP port number in the configured L4 UDP-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 21), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp.setDescription('This object indicates the destination ipaddress in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_src_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 22), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp.setDescription('This object indicates the source ipaddress in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 23), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherTos.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherTos.setDescription('This object indicates the type of service in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_l4_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('icmp', 1), ('igmp', 2), ('un-used', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol.setDescription('This object indicates the l4_protocol in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(3).')
sw_l2_acl_qos_template_rule_l4_switch_session_other_icmp_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 25), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType.setDescription('This object indicates the type of ICMP message in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_icmp_code = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 26), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode.setDescription('This object indicates the code of ICMP message in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_l4_switch_session_other_igmp_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('query', 1), ('response-version-1', 2), ('response-version-2', 3), ('response-version-all', 4), ('un-used', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType.setDescription('This object indicates the IGMP type in the configured L4 OTHER-session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(5). If the object be set to response-version-all(4), it means to create two entries with response-version-1(2) and response-version-2(3).')
sw_l2_acl_qos_template_rule_l4_switch_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('drop', 1), ('forward', 2), ('redirect', 3), ('un-used', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionType.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionType.setDescription('This object indicates the action when a packet matches an entry of l4_switch mode. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be un-used(4).')
sw_l2_acl_qos_template_rule_l4_switch_action_forward_priority_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('true', 2), ('false', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState.setDescription('This object decide to sending the packet to one of 8 hardware priority queues or not.')
sw_l2_acl_qos_template_rule_l4_switch_action_forward_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardPriority.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardPriority.setDescription('This object indicates the priority related to one of 8 hardware priority queues. If the swL2ACLQosTemplateRuleMode is not l4-switch(4) or the swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState is not true(2), this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_action_forward_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 31), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardDscp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionForwardDscp.setDescription('If the swL2ACLQosTemplateRuleMode is not l4-switch(4) or the swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState is not true(2),, this object must be 0.')
sw_l2_acl_qos_template_rule_l4_switch_action_redirect_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 32), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionRedirectIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionRedirectIp.setDescription('This object indicates the redirected IP address that when a packet matches an entry of l4_switch mode. If the swL2ACLQosTemplateRuleL4SwitchActionType is not redirect(3), this object must be 0.0.0.0.')
sw_l2_acl_qos_template_rule_l4_switch_action_redirect_drop_unreachable = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('true', 2), ('false', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable.setDescription('This object indicates the action of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. false(2) - routing unreachable packet by using L2/IPv4 router forwarding table. true(3) - dropping unreachable packet')
sw_l2_acl_qos_template_rule_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
sw_l2_acl_qos_template_rule_l4_switch_session_tcp_flags_all = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 35), bits().clone(namedValues=named_values(('fin', 0), ('syn', 1), ('rst', 2), ('psh', 3), ('ack', 4), ('urg', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll.setDescription('This object indicates the TCP flags in the configured L4 TCP- session rule entries. If the swL2ACLQosTemplateRuleMode is not l4-switch(4), then this object must be zero.')
sw_l2_acl_qos_template_rule_security_dst_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 5, 1, 36), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleSecurityDstIp.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosTemplateRuleSecurityDstIp.setDescription('This object indicates the destination IP of flow template. If the swL2ACLQosTemplateRuleMode is not security(2), then this object will be display 0.0.0.0.')
sw_l2_acl_qos_destination_ip_filter_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6))
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterTable.setDescription('This table defines information for the device to filter packets with specific Destination IP address. The IP address can be a unicast address or multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a IP address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
sw_l2_acl_qos_destination_ip_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosDestinationIpFilterIpAddr'))
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterEntry.setDescription('A list of information about a specific unicast/multicast IP address for which the switch has filtering information.')
sw_l2_acl_qos_destination_ip_filter_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterIndex.setStatus('obsolete')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterIndex.setDescription('The index of this rule.')
sw_l2_acl_qos_destination_ip_filter_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterIpAddr.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterIpAddr.setDescription('This object indicates a unicast IP address for which the switch has filtering information.')
sw_l2_acl_qos_destination_ip_filter_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosDestinationIpFilterState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
sw_l2_acl_qos_fdb_filter_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7))
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterTable.setDescription('This table defines information for the device to filter packets with specific MAC address (either as the DA and/or as the SA). The MAC address can be a unicast address or a multicast address. This table has higher priority than both static FDB table and IGMP table. It means that if a MAC address appears on this table also appears on the static FDB table, the device will use the information provide by this table to process the packet.')
sw_l2_acl_qos_fdb_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosFDBFilterVlanName'), (0, 'SWL2MGMT-MIB', 'swL2ACLQosFDBFilterMacAddress'))
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterEntry.setDescription('A list of information about a specific unicast/multicast MAC address for which the switch has filtering information.')
sw_l2_acl_qos_fdb_filter_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterIndex.setStatus('obsolete')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterIndex.setDescription('The index of this rule.')
sw_l2_acl_qos_fdb_filter_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterVlanName.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterVlanName.setDescription('The existence of VALN name.')
sw_l2_acl_qos_fdb_filter_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 3), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterMacAddress.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterMacAddress.setDescription('This object will filter on destination MAC address operates on bridged packets, but not on routed packets. And It will filter on source MAC operates on all packets.')
sw_l2_acl_qos_fdb_filter_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosFDBFilterState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
sw_l2_acl_qos_ip_fragment_filter_drop_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosIpFragmentFilterDropPkts.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosIpFragmentFilterDropPkts.setDescription('This object decide to drop fragmented IP packets or not.')
sw_l2_acl_qos_scheduling_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9))
if mibBuilder.loadTexts:
swL2ACLQosSchedulingTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingTable.setDescription('The switch contains 4 hardware priority queues. Incoming packets must be mapped to one of these four queues. Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.')
sw_l2_acl_qos_scheduling_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosSchedulingPortIndex'), (0, 'SWL2MGMT-MIB', 'swL2ACLQosSchedulingClassId'))
if mibBuilder.loadTexts:
swL2ACLQosSchedulingEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingEntry.setDescription('A list of information specifies the Qos output scheduling Table.')
sw_l2_acl_qos_scheduling_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingPortIndex.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingPortIndex.setDescription('The index of logical port.')
sw_l2_acl_qos_scheduling_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingClassId.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingClassId.setDescription('This specifies which of the four hardware priority queues. The four hardware priority queues are identified by number, from 0 to 3, with the 0 queue being the lowest priority.')
sw_l2_acl_qos_scheduling_wrr_value = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 9, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingWRRValue.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosSchedulingWRRValue.setDescription('Specifies the weighted round robin (WRR) the above specified hardware priority queue will be allowed to transmit before allowing the next lowest priority queue to transmit its packets.')
sw_l2_acl_qos_mac_priority_table = mib_table((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10))
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityTable.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityTable.setDescription('This table indicates the destination mac priority in flow classifier.')
sw_l2_acl_qos_mac_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1)).setIndexNames((0, 'SWL2MGMT-MIB', 'swL2ACLQosMacPriorityVlanName'), (0, 'SWL2MGMT-MIB', 'swL2ACLQosMacPriorityDstMacAddress'))
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityEntry.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityEntry.setDescription('A list of information specifies the destination mac priority in flow classifier.')
sw_l2_acl_qos_mac_priority_index = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityIndex.setStatus('obsolete')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityIndex.setDescription('The index of this rule.')
sw_l2_acl_qos_mac_priority_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityVlanName.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityVlanName.setDescription('The existence VLAN name.')
sw_l2_acl_qos_mac_priority_dst_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 3), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityDstMacAddress.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityDstMacAddress.setDescription('This object will filter on destination MAC address operates on bridged packets, but not on routed packets. And It will filter on source MAC operates on all packets.')
sw_l2_acl_qos_mac_priority_priority_value = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityPriorityValue.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityPriorityValue.setDescription('This object indicates the priority related to one of 8 hardware priority queues.')
sw_l2_acl_qos_mac_priority_state = mib_table_column((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 16, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('valid', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityState.setStatus('current')
if mibBuilder.loadTexts:
swL2ACLQosMacPriorityState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. invalid(2) - writing this value to the object, and then the corresponding entry will be removed from the table. valid(3) - this entry is reside in the table.')
sw_l2_mgmt_port_current_link_status = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('link-pass', 2), ('link-fail', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2MgmtPortCurrentLinkStatus.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortCurrentLinkStatus.setDescription('This object indicates the current management port link status.')
sw_l2_mgmt_port_current_nway_status = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('half-10Mbps', 2), ('full-10Mbps', 3), ('half-100Mbps', 4), ('full-100Mbps', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swL2MgmtPortCurrentNwayStatus.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortCurrentNwayStatus.setDescription('This object indicates the current management port speed and duplex mode.')
sw_l2_mgmt_port_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MgmtPortAdminState.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortAdminState.setDescription('This object decide the management port enabled or disabled.')
sw_l2_mgmt_port_nway_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('nway-enabled', 2), ('nway-disabled-10Mbps-Half', 3), ('nway-disabled-10Mbps-Full', 4), ('nway-disabled-100Mbps-Half', 5), ('nway-disabled-100Mbps-Full', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MgmtPortNwayState.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortNwayState.setDescription('Chose the management port speed, duplex mode, and N-Way function mode.')
sw_l2_mgmt_port_flow_ctrl_state = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MgmtPortFlowCtrlState.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortFlowCtrlState.setDescription('The flow control mechanism is different between full duplex mode and half duplex mode. For half duplex mode, the jamming signal is asserted. For full duplex mode, IEEE 802.3x flow control function sends PAUSE frames and receives PAUSE frames.')
sw_l2_mgmt_port_link_up_down_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2272, 1, 201, 1, 2, 17, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swL2MgmtPortLinkUpDownTrapEnable.setStatus('current')
if mibBuilder.loadTexts:
swL2MgmtPortLinkUpDownTrapEnable.setDescription('Indicates whether linkUp/linkDown traps should be generated for the management port. By default, this object should have the value enabled(3).')
mibBuilder.exportSymbols('SWL2MGMT-MIB', swL2TrafficCtrlBMStormthreshold=swL2TrafficCtrlBMStormthreshold, swL2ACLQosFlowClassifierL4SwitchUDPDstIp=swL2ACLQosFlowClassifierL4SwitchUDPDstIp, swL2IGMPGroupTable=swL2IGMPGroupTable, swL2ACLQosTemplateRuleQosPriority=swL2ACLQosTemplateRuleQosPriority, swL2IGMPPortMap=swL2IGMPPortMap, swL2ACLQosFlowClassifierActiveRuleNumber=swL2ACLQosFlowClassifierActiveRuleNumber, swL2ACLQosIpFragmentFilterDropPkts=swL2ACLQosIpFragmentFilterDropPkts, swL2IGMPQueryInterval=swL2IGMPQueryInterval, swL2ACLQosFlowClassifierL4SwitchTCPSrcPort=swL2ACLQosFlowClassifierL4SwitchTCPSrcPort, swL2DevCtrlUpDownloadState=swL2DevCtrlUpDownloadState, swL2DevCtrlSaveCfg=swL2DevCtrlSaveCfg, swL2QosPriorityValue=swL2QosPriorityValue, swL2IGMPMgmt=swL2IGMPMgmt, swL2IGMPQueryInfoEntry=swL2IGMPQueryInfoEntry, swL2ACLQosFlowClassifierL4SwitchUDPDstPort=swL2ACLQosFlowClassifierL4SwitchUDPDstPort, swL2ACLQosMacPriorityEntry=swL2ACLQosMacPriorityEntry, swL2IGMPRPStaticRouterPort=swL2IGMPRPStaticRouterPort, swL2DevCtrlUpDownloadImageSourceAddr=swL2DevCtrlUpDownloadImageSourceAddr, swL2StaticVlanUserPriority=swL2StaticVlanUserPriority, swL2IGMPPortMember=swL2IGMPPortMember, swL2DevCtrlRmonState=swL2DevCtrlRmonState, swL2TrunkIndex=swL2TrunkIndex, swL2IGMPMaxResponseTime=swL2IGMPMaxResponseTime, swL2ACLQosFlowClassifierVlanState=swL2ACLQosFlowClassifierVlanState, swL2TrafficCtrlUnitIndex=swL2TrafficCtrlUnitIndex, swL2StormCtrlPortIndex=swL2StormCtrlPortIndex, swL2DevCtrlUpDownloadImageFileName=swL2DevCtrlUpDownloadImageFileName, swL2PortUtilPortIndex=swL2PortUtilPortIndex, swL2IGMPCurrentState=swL2IGMPCurrentState, swL2DevInfo=swL2DevInfo, swL2CpuRateLimitEntry=swL2CpuRateLimitEntry, swL2MgmtPortLinkUpDownTrapEnable=swL2MgmtPortLinkUpDownTrapEnable, swL2PortCtrlPortIndex=swL2PortCtrlPortIndex, swL2StaticVlanUntaggedPorts=swL2StaticVlanUntaggedPorts, swL2DevMgmt=swL2DevMgmt, swL2StaticVlanTable=swL2StaticVlanTable, swL2StaticVlanIndex=swL2StaticVlanIndex, swL2IGMPForwardGroupIpAddr=swL2IGMPForwardGroupIpAddr, swL2VlanPortIndex=swL2VlanPortIndex, swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage=swL2ACLQosFlowClassifierL4SwitchOtherICMPMessage, swL2UnitMgmt=swL2UnitMgmt, swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable=swL2ACLQosTemplateRuleL4SwitchActionRedirectDropUnreachable, swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol=swL2ACLQosTemplateRuleL4SwitchSessionOtherL4Protocol, swL2DevAlarmLinkChange=swL2DevAlarmLinkChange, swL2ACLQosFlowClassifierL4SwitchUDPTos=swL2ACLQosFlowClassifierL4SwitchUDPTos, swL2ACLQosMacPriorityVlanName=swL2ACLQosMacPriorityVlanName, swL2MgmtPortFlowCtrlState=swL2MgmtPortFlowCtrlState, swL2ACLQosFlowClassifierVlanVlanName=swL2ACLQosFlowClassifierVlanVlanName, swL2ACLQosFDBFilterIndex=swL2ACLQosFDBFilterIndex, swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState=swL2ACLQosTemplateRuleL4SwitchActionForwardPriorityState, swL2PortCtrlUnitIndex=swL2PortCtrlUnitIndex, swL2ACLQosDestinationIpFilterEntry=swL2ACLQosDestinationIpFilterEntry, swL2IGMPInfoVid=swL2IGMPInfoVid, swL2ACLQosMacPriorityDstMacAddress=swL2ACLQosMacPriorityDstMacAddress, swL2ACLQosFlowClassifierSecuritySrcMask=swL2ACLQosFlowClassifierSecuritySrcMask, swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort=swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcPort, PortList=PortList, swL2IGMPVid=swL2IGMPVid, swL2StaticVlanEntry=swL2StaticVlanEntry, swL2QosPriorityReplaceDscp=swL2QosPriorityReplaceDscp, swL2TrunkAlgorithm=swL2TrunkAlgorithm, swL2IGMPMaxSupportedVlans=swL2IGMPMaxSupportedVlans, swL2DevCtrlUpDownloadImage=swL2DevCtrlUpDownloadImage, swL2PortUtilTxSec=swL2PortUtilTxSec, swL2DevAlarmNewRoot=swL2DevAlarmNewRoot, swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort=swL2ACLQosTemplateRuleL4SwitchSessionTCPDstPort, swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode=swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPCode, swL2PortCtrlEntry=swL2PortCtrlEntry, swL2IGMPForwardEntry=swL2IGMPForwardEntry, swL2StormCtrlDlfThreshold=swL2StormCtrlDlfThreshold, swL2ACLQosDestinationIpFilterIpAddr=swL2ACLQosDestinationIpFilterIpAddr, swL2QosMgmt=swL2QosMgmt, swL2MirrorMgmt=swL2MirrorMgmt, swL2IGMPRobustness=swL2IGMPRobustness, swL2IGMPMacAddr=swL2IGMPMacAddr, swL2TrunkName=swL2TrunkName, swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort=swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcPort, swL2TrafficCtrlBcastStormCtrl=swL2TrafficCtrlBcastStormCtrl, swL2FilterAddrMacIndex=swL2FilterAddrMacIndex, swL2StaticVlanIpSubnetArpClassId=swL2StaticVlanIpSubnetArpClassId, swL2ACLQosTemplateRuleL4SwitchSessionUDPTos=swL2ACLQosTemplateRuleL4SwitchSessionUDPTos, swL2ACLQosTemplateRuleL4SwitchActionType=swL2ACLQosTemplateRuleL4SwitchActionType, swL2IGMPGroupPortEntry=swL2IGMPGroupPortEntry, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2TrafficCtrlTable=swL2TrafficCtrlTable, swL2MgmtPortCurrentLinkStatus=swL2MgmtPortCurrentLinkStatus, swDevInfoTotalNumOfPort=swDevInfoTotalNumOfPort, swL2ACLQosFDBFilterVlanName=swL2ACLQosFDBFilterVlanName, swL2ACLQosTemplateRuleMode=swL2ACLQosTemplateRuleMode, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2IGMPGroupEntry=swL2IGMPGroupEntry, swL2StormCtrlTable=swL2StormCtrlTable, swL2IGMPForwardVid=swL2IGMPForwardVid, swL2TrunkMember=swL2TrunkMember, swL2ACLQosFlowClassifierVlanEntry=swL2ACLQosFlowClassifierVlanEntry, swL2QosPriorityPriorityState=swL2QosPriorityPriorityState, swL2CpuUtilization=swL2CpuUtilization, swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp=swL2ACLQosTemplateRuleL4SwitchSessionTCPDstIp, swL2IGMPRPDynamicRouterPort=swL2IGMPRPDynamicRouterPort, swL2ACLQosTemplateRuleL4SwitchActionForwardPriority=swL2ACLQosTemplateRuleL4SwitchActionForwardPriority, swL2IGMPMulticastFilter=swL2IGMPMulticastFilter, swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType=swL2ACLQosTemplateRuleL4SwitchSessionOtherIGMPType, swL2ACLQosFlowClassifierEntry=swL2ACLQosFlowClassifierEntry, swL2ACLQosFlowClassifierQosFlavor=swL2ACLQosFlowClassifierQosFlavor, swL2ACLQosMacPriorityIndex=swL2ACLQosMacPriorityIndex, swL2MirrorPortState=swL2MirrorPortState, swL2StaticVlanType=swL2StaticVlanType, swL2TrafficCtrlEntry=swL2TrafficCtrlEntry, swL2IGMPQueryInfoTable=swL2IGMPQueryInfoTable, swL2TrunkMaxSupportedEntries=swL2TrunkMaxSupportedEntries, swL2DevCtrlStpForwardBPDU=swL2DevCtrlStpForwardBPDU, swL2IGMPInfoTxQueryCount=swL2IGMPInfoTxQueryCount, swL2ACLQosMgmt=swL2ACLQosMgmt, swL2PortInfoPortIndex=swL2PortInfoPortIndex, swL2PortCtrlTable=swL2PortCtrlTable, managementPortLinkDown=managementPortLinkDown, swL2ACLQosTemplateRuleL4SwitchSessionOtherTos=swL2ACLQosTemplateRuleL4SwitchSessionOtherTos, swL2TrunkCtrlTable=swL2TrunkCtrlTable, swL2ACLQosTemplateRuleEntry=swL2ACLQosTemplateRuleEntry, swL2ACLQosTemplateRuleTemplateId=swL2ACLQosTemplateRuleTemplateId, swL2ACLQosFDBFilterTable=swL2ACLQosFDBFilterTable, swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionUDPSrcIp, swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp=swL2ACLQosTemplateRuleL4SwitchSessionOtherDstIp, swL2MgmtPortAdminState=swL2MgmtPortAdminState, swL2IGMPCtrlEntry=swL2IGMPCtrlEntry, swDevInfoSystemUpTime=swDevInfoSystemUpTime, swL2StaticVlanEncap=swL2StaticVlanEncap, swL2QosSchedulingClassId=swL2QosSchedulingClassId, swL2TrafficCtrlMcastStormCtrl=swL2TrafficCtrlMcastStormCtrl, swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType=swL2ACLQosTemplateRuleL4SwitchSessionOtherICMPType, swL2ACLQosTemplateRuleState=swL2ACLQosTemplateRuleState, swL2ACLQosDestinationIpFilterIndex=swL2ACLQosDestinationIpFilterIndex, swL2ACLQosTemplateRuleSecuritySrcIp=swL2ACLQosTemplateRuleSecuritySrcIp, swL2TrunkCurrentNumEntries=swL2TrunkCurrentNumEntries, swL2IGMPInfoQueryCount=swL2IGMPInfoQueryCount, swL2IGMPIpGroupReportCount=swL2IGMPIpGroupReportCount, swL2VlanMgmt=swL2VlanMgmt, swL2StaticVlanUserDefinedPid=swL2StaticVlanUserDefinedPid, swL2ACLQosTemplateRuleQosDscp=swL2ACLQosTemplateRuleQosDscp, swL2ACLQosFlowClassifierL4SwitchOtherIGMPType=swL2ACLQosFlowClassifierL4SwitchOtherIGMPType, swL2MirrorLogicTargetPort=swL2MirrorLogicTargetPort, swL2QosPriorityReplaceDscpState=swL2QosPriorityReplaceDscpState, swL2ACLQosFlowClassifierL4SwitchOtherSrcIp=swL2ACLQosFlowClassifierL4SwitchOtherSrcIp, swL2ACLQosTemplateRuleL4SwitchActionRedirectIp=swL2ACLQosTemplateRuleL4SwitchActionRedirectIp, swL2TrunkMasterPort=swL2TrunkMasterPort, swDevInfoNumOfPortInUse=swDevInfoNumOfPortInUse, swL2QosPriorityPriority=swL2QosPriorityPriority, swL2StaticVlanName=swL2StaticVlanName, swL2PortUtilRxSec=swL2PortUtilRxSec, swL2PortMgmt=swL2PortMgmt, swL2DevAlarm=swL2DevAlarm, swL2PortInfoEntry=swL2PortInfoEntry, swL2ACLQosTemplateRuleQosFlavor=swL2ACLQosTemplateRuleQosFlavor, swL2StaticVlanIpSubnetMask=swL2StaticVlanIpSubnetMask, swL2VlanPortEntry=swL2VlanPortEntry, swL2ACLQosFlowClassifierL4SwitchTCPDstPort=swL2ACLQosFlowClassifierL4SwitchTCPDstPort, swL2MgmtMIB=swL2MgmtMIB, swL2StormCtrlEntry=swL2StormCtrlEntry, swL2ACLQosFlowClassifierL4SwitchTCPFlags=swL2ACLQosFlowClassifierL4SwitchTCPFlags, swL2PortInfoTable=swL2PortInfoTable, swL2FilterAddrMaxSupportedEntries=swL2FilterAddrMaxSupportedEntries, swL2ACLQosDestinationIpFilterState=swL2ACLQosDestinationIpFilterState, swL2TrunkMgmt=swL2TrunkMgmt, swL2ACLQosDestinationIpFilterTable=swL2ACLQosDestinationIpFilterTable, swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags=swL2ACLQosTemplateRuleL4SwitchSessionTCPFlags, swL2DevCtrlStpState=swL2DevCtrlStpState, swL2MirrorPortSourceIngress=swL2MirrorPortSourceIngress, swL2DevCtrlCleanAllStatisticCounter=swL2DevCtrlCleanAllStatisticCounter, swL2TrunkState=swL2TrunkState, swDevInfoConsoleInUse=swDevInfoConsoleInUse, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, swL2MirrorPortSourceEgress=swL2MirrorPortSourceEgress, swL2IGMPRPVid=swL2IGMPRPVid, swL2QosPriorityTable=swL2QosPriorityTable, swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionOtherSrcIp, swL2ACLQosFlowClassifierL4SwitchTCPSrcIp=swL2ACLQosFlowClassifierL4SwitchTCPSrcIp, swL2ACLQosFlowClassifierL4SwitchOtherTos=swL2ACLQosFlowClassifierL4SwitchOtherTos, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2StormCtrlBMStormThreshold=swL2StormCtrlBMStormThreshold, swL2QosSchedulingTable=swL2QosSchedulingTable, swL2ACLQosTemplateRuleQosValue=swL2ACLQosTemplateRuleQosValue, swL2PortUtilUtilization=swL2PortUtilUtilization, swL2IGMPCtrlVid=swL2IGMPCtrlVid, swL2PortUtilEntry=swL2PortUtilEntry, swL2IGMPForwardTable=swL2IGMPForwardTable, swL2MgmtMIBTraps=swL2MgmtMIBTraps, swL2TrafficMgmt=swL2TrafficMgmt, swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll=swL2ACLQosTemplateRuleL4SwitchSessionTCPFlagsAll, swL2ACLQosSchedulingWRRValue=swL2ACLQosSchedulingWRRValue, swL2StaticVlanIpSubnetAddr=swL2StaticVlanIpSubnetAddr, swL2IGMPRPTable=swL2IGMPRPTable, swL2IGMPRPEntry=swL2IGMPRPEntry, swL2ModuleMgmt=swL2ModuleMgmt, swL2QosSchedulingMaxPkts=swL2QosSchedulingMaxPkts, swL2FilterAddrState=swL2FilterAddrState, swL2ACLQosMacPriorityPriorityValue=swL2ACLQosMacPriorityPriorityValue, swL2UnitCtrl=swL2UnitCtrl, VlanIndex=VlanIndex, swL2ACLQosFlowClassifierCurrentMode=swL2ACLQosFlowClassifierCurrentMode, swL2ACLQosSchedulingTable=swL2ACLQosSchedulingTable, swL2MgmtPortMgmt=swL2MgmtPortMgmt, swL2MgmtPortNwayState=swL2MgmtPortNwayState, swL2IGMPRouteTimeout=swL2IGMPRouteTimeout, swL2StormCtrlMgmt=swL2StormCtrlMgmt, swL2ACLQosMacPriorityTable=swL2ACLQosMacPriorityTable, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swL2QosPriorityState=swL2QosPriorityState, swL2PortInfoType=swL2PortInfoType, swL2ACLQosTemplateRuleL4SwitchActionForwardDscp=swL2ACLQosTemplateRuleL4SwitchActionForwardDscp, swL2ACLQosFlowClassifierL4SwitchUDPSrcPort=swL2ACLQosFlowClassifierL4SwitchUDPSrcPort, swL2ACLQosSchedulingEntry=swL2ACLQosSchedulingEntry, swL2ACLQosFlowClassifierL4SwitchTCPDstIp=swL2ACLQosFlowClassifierL4SwitchTCPDstIp, swL2ACLQosTemplateRuleIndex=swL2ACLQosTemplateRuleIndex, swDevInfoFrontPanelLedStatus=swDevInfoFrontPanelLedStatus, swDevInfoSaveCfg=swDevInfoSaveCfg, swL2DevAlarmTopologyChange=swL2DevAlarmTopologyChange, swL2TrunkFloodingPort=swL2TrunkFloodingPort, swL2IGMPHostTimeout=swL2IGMPHostTimeout, swL2IGMPCtrlState=swL2IGMPCtrlState, swL2IGMPMulticastRouterOnly=swL2IGMPMulticastRouterOnly, swL2ACLQosFlowClassifierL4SwitchOtherDstIp=swL2ACLQosFlowClassifierL4SwitchOtherDstIp, swL2ACLQosFlowClassifierVlanTable=swL2ACLQosFlowClassifierVlanTable, swL2QosSchedulingMaxLatency=swL2QosSchedulingMaxLatency, swL2QosPriorityEntry=swL2QosPriorityEntry, swL2ACLQosTemplateRuleL4SwitchSessionType=swL2ACLQosTemplateRuleL4SwitchSessionType, PYSNMP_MODULE_ID=swL2MgmtMIB, swL2VlanPortTable=swL2VlanPortTable, swL2VlanPortIngressChecking=swL2VlanPortIngressChecking, swL2CpuRateLimitMcastThreshold=swL2CpuRateLimitMcastThreshold, swL2QosPriorityReplacePriority=swL2QosPriorityReplacePriority, swL2StormCtrlMcastStormCtrl=swL2StormCtrlMcastStormCtrl, swL2TrunkCtrlEntry=swL2TrunkCtrlEntry, swL2StaticVlanEgressPorts=swL2StaticVlanEgressPorts, swL2QosPriorityType=swL2QosPriorityType, swL2CpuRateLimitState=swL2CpuRateLimitState, swL2FilterAddrCtrlTable=swL2FilterAddrCtrlTable, swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp=swL2ACLQosTemplateRuleL4SwitchSessionTCPSrcIp, swL2CpuRateLimitPortIndex=swL2CpuRateLimitPortIndex, swL2PortInfoUnitIndex=swL2PortInfoUnitIndex, swL2FilterMgmt=swL2FilterMgmt, swL2ACLQosTemplate1Mode=swL2ACLQosTemplate1Mode, swL2IGMPGroupIpAddr=swL2IGMPGroupIpAddr, swL2CpuRateLimitBcastThreshold=swL2CpuRateLimitBcastThreshold, swL2IGMPLeaveTimer=swL2IGMPLeaveTimer, swL2IGMPCtrlTable=swL2IGMPCtrlTable, swL2IGMPQueryState=swL2IGMPQueryState, swL2ACLQosFlowClassifierL4SwitchUDPSrcIp=swL2ACLQosFlowClassifierL4SwitchUDPSrcIp, swL2FilterAddrCtrlEntry=swL2FilterAddrCtrlEntry, swL2QosSchedulingEntry=swL2QosSchedulingEntry, swL2StormCtrlDlfState=swL2StormCtrlDlfState, swL2IGMPMaxIpGroupNumPerVlan=swL2IGMPMaxIpGroupNumPerVlan, swL2CpuRateLimitTable=swL2CpuRateLimitTable, swL2VlanPortPvid=swL2VlanPortPvid, swL2ACLQosTemplateRuleTable=swL2ACLQosTemplateRuleTable)
mibBuilder.exportSymbols('SWL2MGMT-MIB', swL2IGMPPortAgingTime=swL2IGMPPortAgingTime, swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort=swL2ACLQosTemplateRuleL4SwitchSessionUDPDstPort, swL2ACLQosSchedulingPortIndex=swL2ACLQosSchedulingPortIndex, swL2IGMPForwardPortMap=swL2IGMPForwardPortMap, swL2StaticVlanStatus=swL2StaticVlanStatus, swL2ACLQosTemplateRuleL4SwitchSessionTCPTos=swL2ACLQosTemplateRuleL4SwitchSessionTCPTos, swL2ACLQosFlowClassifierSecurityDstMask=swL2ACLQosFlowClassifierSecurityDstMask, swL2ACLQosFDBFilterEntry=swL2ACLQosFDBFilterEntry, swL2PortUtilTable=swL2PortUtilTable, swL2IGMPLastMemberQueryInterval=swL2IGMPLastMemberQueryInterval, swL2ACLQosSchedulingClassId=swL2ACLQosSchedulingClassId, swL2ACLQosMacPriorityState=swL2ACLQosMacPriorityState, swL2StaticVlanProtocolId=swL2StaticVlanProtocolId, swL2ACLQosFlowClassifierTemplateId=swL2ACLQosFlowClassifierTemplateId, swL2StormCtrlBcastStormCtrl=swL2StormCtrlBcastStormCtrl, swL2TrunkBPDU8600InterState=swL2TrunkBPDU8600InterState, swL2TrafficCtrlGroupIndex=swL2TrafficCtrlGroupIndex, swL2TrafficCtrlDlfStormCtrl=swL2TrafficCtrlDlfStormCtrl, swL2ACLQosFlowClassifierL4SwitchTCPTos=swL2ACLQosFlowClassifierL4SwitchTCPTos, swL2DevCtrlIGMPSnooping=swL2DevCtrlIGMPSnooping, swL2ACLQosTemplate2Mode=swL2ACLQosTemplate2Mode, swL2FilterAddrCurrentTotalEntries=swL2FilterAddrCurrentTotalEntries, swL2ACLQosTemplateRuleSecurityDstIp=swL2ACLQosTemplateRuleSecurityDstIp, swL2FilterAddrConfig=swL2FilterAddrConfig, swL2ACLQosFlowClassifierTable=swL2ACLQosFlowClassifierTable, swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp=swL2ACLQosTemplateRuleL4SwitchSessionUDPDstIp, swL2DevCtrl=swL2DevCtrl, swL2IGMPGroupPortTable=swL2IGMPGroupPortTable, swL2MgmtPortCurrentNwayStatus=swL2MgmtPortCurrentNwayStatus, swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol=swL2ACLQosFlowClassifierL4SwitchOtherL4Protocol, swL2ACLQosFDBFilterMacAddress=swL2ACLQosFDBFilterMacAddress, swL2PortCtrlAddressLearningState=swL2PortCtrlAddressLearningState, swL2ACLQosFDBFilterState=swL2ACLQosFDBFilterState, swL2ACLQosFlowClassifierVlanTemplateId=swL2ACLQosFlowClassifierVlanTemplateId, managementPortLinkUp=managementPortLinkUp) |
"""
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
def is_multiple(number, multiple):
return number % multiple == 0
def main():
i = 1
j = 0
while(i < 1000):
if(is_multiple(i, 3) or is_multiple(i, 5)):
j += i
i += 1
print(f"The sum of all the multiples of 3 or 5 below 1000 is {j}")
if __name__ == '__main__':
main() | """
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
def is_multiple(number, multiple):
return number % multiple == 0
def main():
i = 1
j = 0
while i < 1000:
if is_multiple(i, 3) or is_multiple(i, 5):
j += i
i += 1
print(f'The sum of all the multiples of 3 or 5 below 1000 is {j}')
if __name__ == '__main__':
main() |
#@title Train TUNIT Epoch
def train_TUNIT(data_loader, networks, opts, epoch, args, additional):
# avg meter
d_losses = AverageMeter()
d_advs = AverageMeter()
d_gps = AverageMeter()
g_losses = AverageMeter()
g_advs = AverageMeter()
g_imgrecs = AverageMeter()
g_styconts = AverageMeter()
c_losses = AverageMeter()
moco_losses = AverageMeter()
iic_losses = AverageMeter()
# set nets
D = networks['D']
G = networks['G']
C = networks['C']
G_EMA = networks['G_EMA']
C_EMA = networks['C_EMA']
# set opts
d_opt = opts['D']
g_opt = opts['G']
c_opt = opts['C']
# switch to train mode
D.train()
G.train()
C.train()
C_EMA.train()
G_EMA.train()
logger = additional['logger']
queue = additional['queue']
step = 0
# summary writer
train_it = iter(data_loader)
#t_train = tqdm.trange(0, args["iters"], initial=0, total=args["iters"])
with tqdm_notebook(total=args["iters"]*args["batch_size"],
unit='Images',
unit_scale=True,
unit_divisor=1,
desc="Samples") as pbar:
for i in range(0, args["iters"]):
try:
imgs = next(train_it)
except:
train_it = iter(data_loader)
imgs = next(train_it)
mapped_batch = map_batch(imgs)
x_org = mapped_batch[0]["result"]
x_tf = mapped_batch[1]["result"]
x_ref_idx = torch.randperm(x_org.size(0))
x_org = x_org.cuda(args["gpu"])
x_tf = x_tf.cuda(args["gpu"])
x_ref_idx = x_ref_idx.cuda(args["gpu"])
x_ref = x_org.clone()
x_ref = x_ref[x_ref_idx]
#################
# BEGIN Train C #
#################
training_mode = 'ONLYCLS'
q_cont = C.moco(x_org)
k_cont = C_EMA.moco(x_tf)
k_cont = k_cont.detach()
q_disc = C.iic(x_org)
k_disc = C.iic(x_tf)
q_disc = F.softmax(q_disc, 1)
k_disc = F.softmax(k_disc, 1)
iic_loss = calc_iic_loss(q_disc, k_disc)
moco_loss = calc_contrastive_loss(q_cont, k_cont, queue)
c_loss = moco_loss + 5.0 * iic_loss
if epoch >= args["separated"]:
c_loss = 0.1 * c_loss
c_opt.zero_grad()
c_loss.backward()
c_opt.step()
###############
# END Train C #
###############
####################
# BEGIN Train GANs #
####################
if epoch >= args["separated"]:
training_mode = 'C2GANs'
with torch.no_grad():
q_disc = C.iic(x_org)
y_org = torch.argmax(q_disc, 1)
y_ref = y_org.clone()
y_ref = y_ref[x_ref_idx]
s_ref = C.moco(x_ref)
c_src = G.cnt_encoder(x_org)
x_fake = G.decode(c_src, s_ref)
x_ref.requires_grad_()
d_real_logit, _ = D(x_ref, y_ref)
d_fake_logit, _ = D(x_fake.detach(), y_ref)
d_adv_real = calc_adv_loss(d_real_logit, 'd_real')
d_adv_fake = calc_adv_loss(d_fake_logit, 'd_fake')
d_adv = d_adv_real + d_adv_fake
d_gp = args["w_gp"] * compute_grad_gp(d_real_logit, x_ref, is_patch=False)
d_loss = d_adv + d_gp
d_opt.zero_grad()
d_adv_real.backward(retain_graph=True)
d_gp.backward()
d_adv_fake.backward()
d_opt.step()
# Train G
s_src = C.moco(x_org)
s_ref = C.moco(x_ref)
c_src = G.cnt_encoder(x_org)
x_fake = G.decode(c_src, s_ref)
x_rec = G.decode(c_src, s_src)
g_fake_logit, _ = D(x_fake, y_ref)
g_rec_logit, _ = D(x_rec, y_org)
g_adv_fake = calc_adv_loss(g_fake_logit, 'g')
g_adv_rec = calc_adv_loss(g_rec_logit, 'g')
g_adv = g_adv_fake + g_adv_rec
g_imgrec = calc_recon_loss(x_rec, x_org)
s_fake = C.moco(x_fake)
s_ref_ema = C_EMA.moco(x_ref)
g_sty_contrastive = calc_contrastive_loss(s_fake, s_ref_ema, queue)
g_loss = args["w_adv"] * g_adv + args["w_rec"] * g_imgrec + args["w_vec"] * g_sty_contrastive
g_opt.zero_grad()
c_opt.zero_grad()
g_loss.backward()
c_opt.step()
g_opt.step()
##################
# END Train GANs #
##################
queue = queue_data(queue, k_cont)
queue = dequeue_data(queue)
if epoch >= args["ema_start"]:
training_mode = training_mode + "_EMA"
update_average(G_EMA, G)
update_average(C_EMA, C)
torch.cuda.synchronize()
with torch.no_grad():
step += 1
increment_amount = x_org.shape[0]
pbar.update(increment_amount)
if epoch >= args["separated"]:
d_losses.update(d_loss.item(), x_org.size(0))
d_advs.update(d_adv.item(), x_org.size(0))
d_gps.update(d_gp.item(), x_org.size(0))
g_losses.update(g_loss.item(), x_org.size(0))
g_advs.update(g_adv.item(), x_org.size(0))
g_imgrecs.update(g_imgrec.item(), x_org.size(0))
g_styconts.update(g_sty_contrastive.item(), x_org.size(0))
c_losses.update(c_loss.item(), x_org.size(0))
moco_losses.update(moco_loss.item(), x_org.size(0))
iic_losses.update(iic_loss.item(), x_org.size(0))
pbar.set_postfix(d_loss=d_losses.avg, d_adv=d_advs.avg, d_gp=d_gps.avg,
g_loss=g_losses.avg, g_adv=g_advs.avg, g_imgrec=g_imgrecs.avg, g_stycont=g_styconts.avg,
c_loss=c_losses.avg, c_iid=iic_losses.avg, c_moco=moco_losses.avg,
step=step, refresh=False)
if (i + 1) % args["log_step"] == 0 and (args["gpu"] == 0 or args["gpu"] == '0'):
summary_step = epoch * args["iters"] + i
logger.add_scalar('D/LOSS', d_losses.avg, summary_step)
logger.add_scalar('D/ADV', d_advs.avg, summary_step)
logger.add_scalar('D/GP', d_gps.avg, summary_step)
logger.add_scalar('G/LOSS', g_losses.avg, summary_step)
logger.add_scalar('G/ADV', g_advs.avg, summary_step)
logger.add_scalar('G/IMGREC', g_imgrecs.avg, summary_step)
logger.add_scalar('G/STYCONT', g_styconts.avg, summary_step)
logger.add_scalar('C/LOSS', c_losses.avg, summary_step)
logger.add_scalar('C/IID', iic_losses.avg, summary_step)
logger.add_scalar('C/MOCO', moco_losses.avg, summary_step)
print('Epoch: [{}/{}] [{}/{}] MODE[{}] Avg Loss: D[{d_losses.avg:.2f}] '
'G[{g_losses.avg:.2f}] C[{c_losses.avg:.2f}]'
.format(epoch + 1, args["epochs"], i+1, args["iters"], training_mode,
d_losses=d_losses, g_losses=g_losses, c_losses=c_losses))
copy_norm_params(G_EMA, G)
copy_norm_params(C_EMA, C)
| def train_tunit(data_loader, networks, opts, epoch, args, additional):
d_losses = average_meter()
d_advs = average_meter()
d_gps = average_meter()
g_losses = average_meter()
g_advs = average_meter()
g_imgrecs = average_meter()
g_styconts = average_meter()
c_losses = average_meter()
moco_losses = average_meter()
iic_losses = average_meter()
d = networks['D']
g = networks['G']
c = networks['C']
g_ema = networks['G_EMA']
c_ema = networks['C_EMA']
d_opt = opts['D']
g_opt = opts['G']
c_opt = opts['C']
D.train()
G.train()
C.train()
C_EMA.train()
G_EMA.train()
logger = additional['logger']
queue = additional['queue']
step = 0
train_it = iter(data_loader)
with tqdm_notebook(total=args['iters'] * args['batch_size'], unit='Images', unit_scale=True, unit_divisor=1, desc='Samples') as pbar:
for i in range(0, args['iters']):
try:
imgs = next(train_it)
except:
train_it = iter(data_loader)
imgs = next(train_it)
mapped_batch = map_batch(imgs)
x_org = mapped_batch[0]['result']
x_tf = mapped_batch[1]['result']
x_ref_idx = torch.randperm(x_org.size(0))
x_org = x_org.cuda(args['gpu'])
x_tf = x_tf.cuda(args['gpu'])
x_ref_idx = x_ref_idx.cuda(args['gpu'])
x_ref = x_org.clone()
x_ref = x_ref[x_ref_idx]
training_mode = 'ONLYCLS'
q_cont = C.moco(x_org)
k_cont = C_EMA.moco(x_tf)
k_cont = k_cont.detach()
q_disc = C.iic(x_org)
k_disc = C.iic(x_tf)
q_disc = F.softmax(q_disc, 1)
k_disc = F.softmax(k_disc, 1)
iic_loss = calc_iic_loss(q_disc, k_disc)
moco_loss = calc_contrastive_loss(q_cont, k_cont, queue)
c_loss = moco_loss + 5.0 * iic_loss
if epoch >= args['separated']:
c_loss = 0.1 * c_loss
c_opt.zero_grad()
c_loss.backward()
c_opt.step()
if epoch >= args['separated']:
training_mode = 'C2GANs'
with torch.no_grad():
q_disc = C.iic(x_org)
y_org = torch.argmax(q_disc, 1)
y_ref = y_org.clone()
y_ref = y_ref[x_ref_idx]
s_ref = C.moco(x_ref)
c_src = G.cnt_encoder(x_org)
x_fake = G.decode(c_src, s_ref)
x_ref.requires_grad_()
(d_real_logit, _) = d(x_ref, y_ref)
(d_fake_logit, _) = d(x_fake.detach(), y_ref)
d_adv_real = calc_adv_loss(d_real_logit, 'd_real')
d_adv_fake = calc_adv_loss(d_fake_logit, 'd_fake')
d_adv = d_adv_real + d_adv_fake
d_gp = args['w_gp'] * compute_grad_gp(d_real_logit, x_ref, is_patch=False)
d_loss = d_adv + d_gp
d_opt.zero_grad()
d_adv_real.backward(retain_graph=True)
d_gp.backward()
d_adv_fake.backward()
d_opt.step()
s_src = C.moco(x_org)
s_ref = C.moco(x_ref)
c_src = G.cnt_encoder(x_org)
x_fake = G.decode(c_src, s_ref)
x_rec = G.decode(c_src, s_src)
(g_fake_logit, _) = d(x_fake, y_ref)
(g_rec_logit, _) = d(x_rec, y_org)
g_adv_fake = calc_adv_loss(g_fake_logit, 'g')
g_adv_rec = calc_adv_loss(g_rec_logit, 'g')
g_adv = g_adv_fake + g_adv_rec
g_imgrec = calc_recon_loss(x_rec, x_org)
s_fake = C.moco(x_fake)
s_ref_ema = C_EMA.moco(x_ref)
g_sty_contrastive = calc_contrastive_loss(s_fake, s_ref_ema, queue)
g_loss = args['w_adv'] * g_adv + args['w_rec'] * g_imgrec + args['w_vec'] * g_sty_contrastive
g_opt.zero_grad()
c_opt.zero_grad()
g_loss.backward()
c_opt.step()
g_opt.step()
queue = queue_data(queue, k_cont)
queue = dequeue_data(queue)
if epoch >= args['ema_start']:
training_mode = training_mode + '_EMA'
update_average(G_EMA, G)
update_average(C_EMA, C)
torch.cuda.synchronize()
with torch.no_grad():
step += 1
increment_amount = x_org.shape[0]
pbar.update(increment_amount)
if epoch >= args['separated']:
d_losses.update(d_loss.item(), x_org.size(0))
d_advs.update(d_adv.item(), x_org.size(0))
d_gps.update(d_gp.item(), x_org.size(0))
g_losses.update(g_loss.item(), x_org.size(0))
g_advs.update(g_adv.item(), x_org.size(0))
g_imgrecs.update(g_imgrec.item(), x_org.size(0))
g_styconts.update(g_sty_contrastive.item(), x_org.size(0))
c_losses.update(c_loss.item(), x_org.size(0))
moco_losses.update(moco_loss.item(), x_org.size(0))
iic_losses.update(iic_loss.item(), x_org.size(0))
pbar.set_postfix(d_loss=d_losses.avg, d_adv=d_advs.avg, d_gp=d_gps.avg, g_loss=g_losses.avg, g_adv=g_advs.avg, g_imgrec=g_imgrecs.avg, g_stycont=g_styconts.avg, c_loss=c_losses.avg, c_iid=iic_losses.avg, c_moco=moco_losses.avg, step=step, refresh=False)
if (i + 1) % args['log_step'] == 0 and (args['gpu'] == 0 or args['gpu'] == '0'):
summary_step = epoch * args['iters'] + i
logger.add_scalar('D/LOSS', d_losses.avg, summary_step)
logger.add_scalar('D/ADV', d_advs.avg, summary_step)
logger.add_scalar('D/GP', d_gps.avg, summary_step)
logger.add_scalar('G/LOSS', g_losses.avg, summary_step)
logger.add_scalar('G/ADV', g_advs.avg, summary_step)
logger.add_scalar('G/IMGREC', g_imgrecs.avg, summary_step)
logger.add_scalar('G/STYCONT', g_styconts.avg, summary_step)
logger.add_scalar('C/LOSS', c_losses.avg, summary_step)
logger.add_scalar('C/IID', iic_losses.avg, summary_step)
logger.add_scalar('C/MOCO', moco_losses.avg, summary_step)
print('Epoch: [{}/{}] [{}/{}] MODE[{}] Avg Loss: D[{d_losses.avg:.2f}] G[{g_losses.avg:.2f}] C[{c_losses.avg:.2f}]'.format(epoch + 1, args['epochs'], i + 1, args['iters'], training_mode, d_losses=d_losses, g_losses=g_losses, c_losses=c_losses))
copy_norm_params(G_EMA, G)
copy_norm_params(C_EMA, C) |
class BaseSave:
def file(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def csv(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def xml(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def json(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def excel(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def avro(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def parquet(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def orc(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def hdf5(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
| class Basesave:
def file(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def csv(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def xml(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def json(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def excel(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def avro(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def parquet(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def orc(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet')
def hdf5(self, path, *args, **kwargs):
raise not_implemented_error('Not implemented yet') |
#Number letter counts#
"""
If the numbers 1 to 5 are written out in words: one, two, three, four, five,
then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand)
inclusive were written out in words,
how many letters would be used?
NOTE: Do not count spaces or hyphens.
For example, 342 (three hundred and forty-two) contains 23 letters
and 115 (one hundred and fifteen) contains 20 letters.
The use of "and" when writing out numbers is in compliance
with British usage.
"""""
def letter_count(n):
units = [3, 3, 5, 4, 4, 3, 5, 5, 4]
teens = [3, 6, 6, 8, 8, 7, 7, 9, 8, 8]
tys = [6, 6, 5, 5, 5, 7, 6, 6]
cnt = 0
if n // 100 % 10 > 0:
cnt += units[n // 100 - 1] + 7
if n % 100 > 0:
if n // 100 > 0:
cnt += 3
if n % 100 // 10 == 1:
cnt += teens[n % 100 - 10]
if n % 100 // 10 != 1:
if n % 100 // 10 > 1:
cnt += tys[n % 100 // 10 - 2]
if n % 10 > 0:
cnt += units[n % 10 - 1]
if n == 1000:
cnt = 11
return cnt
if __name__ == '__main__':
print(sum(letter_count(i) for i in range(1, 1001))) | """
If the numbers 1 to 5 are written out in words: one, two, three, four, five,
then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand)
inclusive were written out in words,
how many letters would be used?
NOTE: Do not count spaces or hyphens.
For example, 342 (three hundred and forty-two) contains 23 letters
and 115 (one hundred and fifteen) contains 20 letters.
The use of "and" when writing out numbers is in compliance
with British usage.
"""
def letter_count(n):
units = [3, 3, 5, 4, 4, 3, 5, 5, 4]
teens = [3, 6, 6, 8, 8, 7, 7, 9, 8, 8]
tys = [6, 6, 5, 5, 5, 7, 6, 6]
cnt = 0
if n // 100 % 10 > 0:
cnt += units[n // 100 - 1] + 7
if n % 100 > 0:
if n // 100 > 0:
cnt += 3
if n % 100 // 10 == 1:
cnt += teens[n % 100 - 10]
if n % 100 // 10 != 1:
if n % 100 // 10 > 1:
cnt += tys[n % 100 // 10 - 2]
if n % 10 > 0:
cnt += units[n % 10 - 1]
if n == 1000:
cnt = 11
return cnt
if __name__ == '__main__':
print(sum((letter_count(i) for i in range(1, 1001)))) |
#!/usr/bin/env python
"""
_BossAir_
MySQL DAO libraries for BossAir
"""
__all__ = []
| """
_BossAir_
MySQL DAO libraries for BossAir
"""
__all__ = [] |
#!/usr/bin/python
class Toy():
"""
Toy definition
"""
# static class data
count = 1
def __init__(self,name):
"""
Constructor
"""
self.name = name
self.id = Toy.count
Toy.count += 1
| class Toy:
"""
Toy definition
"""
count = 1
def __init__(self, name):
"""
Constructor
"""
self.name = name
self.id = Toy.count
Toy.count += 1 |
#! /usr/bin/env python3
# -*- encoding: utf-8 -*-
# import os
# import sys
press_id_file = "/boot/PRESS_ID"
def get_press_id():
# Get the press_id from /boot/PRESS_ID file
try:
with open(press_id_file) as f:
PRESS_ID = f.read()
if PRESS_ID is not None:
return PRESS_ID
else:
raise ValueError("PRESS_ID is None!")
except IOError:
print(press_id_file + " Not Found!")
except BaseException as e:
print(e)
if __name__ == '__main__':
PRESS_ID = get_press_id()
print("Press ID: " + str(PRESS_ID))
| press_id_file = '/boot/PRESS_ID'
def get_press_id():
try:
with open(press_id_file) as f:
press_id = f.read()
if PRESS_ID is not None:
return PRESS_ID
else:
raise value_error('PRESS_ID is None!')
except IOError:
print(press_id_file + ' Not Found!')
except BaseException as e:
print(e)
if __name__ == '__main__':
press_id = get_press_id()
print('Press ID: ' + str(PRESS_ID)) |
class MemoryStorage:
def __init__(self) -> None:
self.data: dict[str, str] = {}
def set(self, key: str, value: str) -> None:
self.data[key] = value
def get(self, key: str) -> str:
return self.data.get(key, "")
def close(self) -> bool:
# NOTE: ideally, I would want this to have () -> None signature, but for some
# reason mypy complains about this:
#
# tests/test_memory_store.py:19: error: "close" of "MemoryStorage" does not
# return a value
#
# check here for more: https://github.com/python/mypy/issues/6549
return True
| class Memorystorage:
def __init__(self) -> None:
self.data: dict[str, str] = {}
def set(self, key: str, value: str) -> None:
self.data[key] = value
def get(self, key: str) -> str:
return self.data.get(key, '')
def close(self) -> bool:
return True |
'''
Run this file as is from cp,,and line as :
python file1.py
'''
print("File1 __name__ = %s" % __name__)
print("Full path/location for File1 __file__ = %s" % __file__)
if __name__ == "__main__":
print("File1 is being run directly")
else:
print("File1 is being imported")
# Output:
# File1 __name__ = __main__
# File1 is being run directly
| """
Run this file as is from cp,,and line as :
python file1.py
"""
print('File1 __name__ = %s' % __name__)
print('Full path/location for File1 __file__ = %s' % __file__)
if __name__ == '__main__':
print('File1 is being run directly')
else:
print('File1 is being imported') |
# Code generated by font_to_py.py.
# Font: Robotol.ttf
# Cmd: ./font_to_py.py -x Robotol.ttf 30 myfont.py
version = '0.33'
def height():
return 31
def baseline():
return 24
def max_width():
return 26
def hmap():
return True
def reverse():
return False
def monospaced():
return False
def min_ch():
return 32
def max_ch():
return 126
_font =\
b'\x0d\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf0\x1c\x38\x18\x18'\
b'\x10\x18\x20\x18\x00\x18\x00\x30\x00\x60\x00\xe0\x01\x80\x03\x00'\
b'\x02\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00'\
b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x06\x00\x00\x00\x00\x0c\x0c\x0c\x0c\x08\x18\x18\x18\x18\x10'\
b'\x10\x30\x30\x30\x30\x00\x00\x00\x00\x60\x60\x00\x00\x00\x00\x00'\
b'\x00\x00\x09\x00\x00\x00\x00\x00\x09\x80\x09\x00\x09\x00\x19\x00'\
b'\x1b\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x61\x80'\
b'\x00\x43\x00\x00\xc3\x00\x00\x82\x00\x00\x86\x00\x1f\xff\xc0\x1f'\
b'\xff\x80\x01\x0c\x00\x03\x08\x00\x02\x08\x00\x02\x18\x00\x06\x10'\
b'\x00\x04\x30\x00\x7f\xfe\x00\x7f\xfe\x00\x08\x20\x00\x08\x60\x00'\
b'\x18\x40\x00\x10\x40\x00\x10\xc0\x00\x30\x80\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x10\x00\x00\x20\x00\x20\x00\x20\x01\xf0\x03\xfc\x06\x0c\x0c'\
b'\x06\x08\x06\x08\x06\x08\x00\x0c\x00\x0e\x00\x07\x80\x01\xe0\x00'\
b'\x70\x00\x18\x00\x08\x00\x0c\x60\x0c\x60\x0c\x30\x18\x38\x78\x1f'\
b'\xf0\x0f\xc0\x03\x00\x02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x80\x00\x0f'\
b'\xc0\x00\x1c\x60\x80\x18\x61\x80\x10\x61\x00\x10\x62\x00\x10\x66'\
b'\x00\x18\xcc\x00\x0f\xd8\x00\x07\x10\x00\x00\x30\x00\x00\x67\x80'\
b'\x00\xcf\xc0\x00\x8c\x60\x01\x18\x60\x03\x10\x60\x06\x10\x60\x04'\
b'\x10\x60\x08\x18\xc0\x00\x0f\xc0\x00\x07\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xe0\x00\x03\xf8'\
b'\x00\x06\x18\x00\x06\x08\x00\x0c\x08\x00\x0c\x18\x00\x0c\x30\x00'\
b'\x06\x60\x00\x07\xc0\x00\x03\x00\x00\x0f\x00\x00\x19\x80\x00\x30'\
b'\xc3\x00\x60\x42\x00\x60\x66\x00\x60\x36\x00\x60\x1c\x00\x60\x18'\
b'\x00\x70\x7c\x00\x3f\xe4\x00\x0f\x86\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05'\
b'\x00\x00\x00\x08\x08\x18\x18\x10\x10\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x0b\x00\x00\x00\x00\x20\x00\xc0\x01\x80\x03\x00\x02\x00\x06\x00'\
b'\x04\x00\x0c\x00\x08\x00\x18\x00\x18\x00\x10\x00\x30\x00\x30\x00'\
b'\x30\x00\x30\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00\x20\x00'\
b'\x20\x00\x30\x00\x30\x00\x10\x00\x18\x00\x08\x00\x0c\x00\x04\x00'\
b'\x0b\x00\x00\x00\x04\x00\x0c\x00\x02\x00\x03\x00\x01\x00\x01\x00'\
b'\x01\x80\x01\x80\x01\x80\x00\x80\x00\x80\x01\x80\x01\x80\x01\x80'\
b'\x01\x80\x01\x80\x01\x80\x01\x00\x03\x00\x03\x00\x03\x00\x06\x00'\
b'\x06\x00\x04\x00\x0c\x00\x18\x00\x10\x00\x30\x00\x60\x00\x80\x00'\
b'\x0d\x00\x00\x00\x00\x00\x00\x00\x01\x80\x01\x80\x01\x00\x01\x08'\
b'\x39\x38\x1f\xe0\x03\x00\x07\x80\x0d\x80\x18\xc0\x30\xc0\x00\x80'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x80\x00\x80\x01\x80\x7f\xfe'\
b'\x7f\xfe\x01\x80\x01\x00\x01\x00\x03\x00\x03\x00\x03\x00\x03\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x30\x30\x20\x60\x60\xc0\x80\x00'\
b'\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x7f\x7e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x60\x00\x00\x00\x00'\
b'\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x18\x00'\
b'\x30\x00\x30\x00\x60\x00\x60\x00\xc0\x00\x80\x01\x80\x01\x00\x03'\
b'\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x08\x00\x18\x00\x30\x00\x30'\
b'\x00\x60\x00\x60\x00\xc0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x03\xf8\x06'\
b'\x0c\x0c\x04\x08\x06\x18\x06\x18\x06\x10\x06\x30\x06\x30\x06\x30'\
b'\x04\x30\x04\x20\x0c\x20\x0c\x20\x0c\x20\x08\x30\x18\x30\x30\x38'\
b'\x70\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\xe0\x07'\
b'\xe0\x0e\x60\x08\x60\x00\x60\x00\x60\x00\x40\x00\x40\x00\xc0\x00'\
b'\xc0\x00\xc0\x00\xc0\x00\x80\x00\x80\x01\x80\x01\x80\x01\x80\x01'\
b'\x80\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xf8\x0e'\
b'\x1c\x1c\x0c\x18\x06\x10\x06\x00\x04\x00\x0c\x00\x0c\x00\x18\x00'\
b'\x30\x00\x60\x00\xc0\x01\x80\x03\x00\x06\x00\x0c\x00\x18\x00\x30'\
b'\x00\x7f\xf8\x7f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xfc\x0e'\
b'\x0c\x0c\x06\x18\x06\x18\x06\x00\x06\x00\x0c\x00\x18\x03\xf0\x03'\
b'\xf0\x00\x38\x00\x18\x00\x0c\x00\x0c\x60\x0c\x60\x18\x30\x18\x38'\
b'\x70\x1f\xe0\x0f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x1c\x00'\
b'\x3c\x00\x6c\x00\x48\x00\xd8\x01\x98\x03\x18\x06\x18\x04\x10\x0c'\
b'\x10\x18\x30\x30\x30\x60\x30\x7f\xfe\xff\xfe\x00\x20\x00\x60\x00'\
b'\x60\x00\x60\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x03\xff\x03\xff\x06'\
b'\x00\x06\x00\x04\x00\x04\x00\x0c\x00\x0f\xe0\x0f\xf8\x0c\x18\x10'\
b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x30\x0c\x30\x0c\x30\x18\x18'\
b'\x38\x0f\xf0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x00\xfc\x03'\
b'\xc0\x07\x00\x06\x00\x0c\x00\x18\x00\x19\xe0\x17\xf8\x3c\x18\x38'\
b'\x0c\x30\x0c\x30\x0c\x20\x0c\x20\x0c\x30\x0c\x30\x08\x30\x18\x18'\
b'\x70\x0f\xe0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x1f\xff\x1f\xff\x00'\
b'\x02\x00\x06\x00\x04\x00\x0c\x00\x18\x00\x10\x00\x30\x00\x60\x00'\
b'\x60\x00\xc0\x00\x80\x01\x80\x03\x00\x03\x00\x06\x00\x04\x00\x0c'\
b'\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xfc\x0e'\
b'\x0e\x0c\x06\x08\x06\x18\x06\x18\x06\x08\x0c\x0e\x1c\x07\xf0\x07'\
b'\xf0\x1c\x38\x30\x08\x20\x0c\x60\x0c\x60\x0c\x60\x0c\x60\x18\x38'\
b'\x78\x1f\xf0\x0f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xf8\x0e'\
b'\x1c\x0c\x0c\x18\x06\x18\x06\x10\x06\x30\x06\x30\x06\x30\x04\x10'\
b'\x0c\x18\x14\x1c\x3c\x0f\xec\x07\x98\x00\x18\x00\x30\x00\x60\x01'\
b'\xc0\x1f\x80\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x60\x00\x00\x00'\
b'\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c'\
b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x30\x20\x60'\
b'\x60\xc0\x80\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x18\x00\xf0\x03\xc0\x0f'\
b'\x00\x38\x00\x60\x00\x38\x00\x1e\x00\x07\x80\x01\xe0\x00\x70\x00'\
b'\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfc\x1f'\
b'\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf8\x3f\xf8\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x10\x00\x1c\x00\x0f\x00\x03\x80\x00'\
b'\xe0\x00\x38\x00\x0c\x00\x78\x01\xe0\x07\x00\x3c\x00\x70\x00\x40'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f'\
b'\xf0\x1c\x38\x18\x18\x10\x18\x20\x18\x00\x18\x00\x30\x00\x60\x00'\
b'\xe0\x01\x80\x03\x00\x02\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xe0\x00\x00\x7f\xf8\x00\x00'\
b'\xf0\x1c\x00\x01\xc0\x06\x00\x03\x00\x02\x00\x06\x00\x03\x00\x0c'\
b'\x0f\x81\x00\x18\x1f\xc1\x00\x18\x30\xc1\x00\x30\x60\xc1\x00\x30'\
b'\x40\x81\x00\x20\xc0\x81\x00\x20\x80\x81\x00\x61\x81\x83\x00\x61'\
b'\x81\x02\x00\x61\x81\x02\x00\x61\x83\x06\x00\x61\x85\x0c\x00\x60'\
b'\xfd\xf8\x00\x60\x70\xf0\x00\x30\x00\x00\x00\x30\x00\x00\x00\x18'\
b'\x00\x00\x00\x0e\x06\x00\x00\x07\xfe\x00\x00\x01\xf8\x00\x00\x00'\
b'\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18'\
b'\x00\x00\x38\x00\x00\x38\x00\x00\x6c\x00\x00\x6c\x00\x00\xcc\x00'\
b'\x00\xcc\x00\x01\x84\x00\x01\x84\x00\x03\x06\x00\x03\x06\x00\x06'\
b'\x06\x00\x06\x06\x00\x0c\x02\x00\x1f\xff\x00\x1f\xff\x00\x38\x03'\
b'\x00\x30\x03\x00\x60\x01\x00\x60\x01\x80\xc0\x01\x80\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x00'\
b'\x0f\xfe\x00\x0c\x06\x00\x0c\x03\x00\x08\x03\x00\x18\x03\x00\x18'\
b'\x03\x00\x18\x06\x00\x18\x0c\x00\x1f\xf8\x00\x1f\xf8\x00\x30\x0c'\
b'\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x20\x06\x00\x20\x06\x00'\
b'\x60\x0c\x00\x60\x3c\x00\x7f\xf8\x00\x7f\xe0\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x03'\
b'\xfe\x00\x07\x07\x00\x0e\x01\x80\x0c\x01\x80\x18\x00\x80\x18\x00'\
b'\x80\x30\x00\x00\x30\x00\x00\x30\x00\x00\x30\x00\x00\x20\x00\x00'\
b'\x20\x00\x00\x20\x00\x00\x20\x03\x00\x30\x03\x00\x30\x06\x00\x38'\
b'\x0e\x00\x1c\x1c\x00\x0f\xf8\x00\x07\xe0\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf8\x00\x07\xfe'\
b'\x00\x0c\x07\x00\x0c\x03\x00\x0c\x01\x80\x0c\x01\x80\x0c\x00\x80'\
b'\x08\x00\x80\x18\x00\x80\x18\x00\x80\x18\x01\x80\x18\x01\x80\x10'\
b'\x01\x80\x10\x01\x80\x30\x03\x00\x30\x03\x00\x30\x06\x00\x30\x0c'\
b'\x00\x20\x38\x00\x7f\xf0\x00\x7f\xc0\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x80\x0f\xff\x80'\
b'\x0c\x00\x00\x0c\x00\x00\x0c\x00\x00\x08\x00\x00\x18\x00\x00\x18'\
b'\x00\x00\x18\x00\x00\x1f\xfc\x00\x1f\xfc\x00\x10\x00\x00\x30\x00'\
b'\x00\x30\x00\x00\x30\x00\x00\x30\x00\x00\x20\x00\x00\x20\x00\x00'\
b'\x60\x00\x00\x7f\xfc\x00\x7f\xfc\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x80\x0f\xff\x80\x0c'\
b'\x00\x00\x0c\x00\x00\x0c\x00\x00\x08\x00\x00\x18\x00\x00\x18\x00'\
b'\x00\x18\x00\x00\x1f\xfc\x00\x1f\xfc\x00\x10\x00\x00\x30\x00\x00'\
b'\x30\x00\x00\x30\x00\x00\x30\x00\x00\x30\x00\x00\x20\x00\x00\x60'\
b'\x00\x00\x60\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x01\xff\x00\x07\x83'\
b'\x80\x06\x01\x80\x0c\x00\xc0\x18\x00\xc0\x18\x00\xc0\x10\x00\x00'\
b'\x30\x00\x00\x30\x00\x00\x30\x00\x00\x30\x3f\x80\x30\x3f\x80\x30'\
b'\x01\x80\x30\x01\x00\x30\x03\x00\x30\x03\x00\x18\x03\x00\x1c\x0f'\
b'\x00\x0f\xfe\x00\x03\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x04\x00\x20\x0c\x00\x60\x0c\x00\x60'\
b'\x0c\x00\x60\x0c\x00\x60\x08\x00\x60\x18\x00\x40\x18\x00\xc0\x18'\
b'\x00\xc0\x1f\xff\xc0\x1f\xff\xc0\x10\x00\xc0\x30\x00\x80\x30\x01'\
b'\x80\x30\x01\x80\x30\x01\x80\x30\x01\x80\x20\x01\x80\x60\x01\x00'\
b'\x60\x03\x00\x60\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00'\
b'\x06\x04\x04\x0c\x0c\x0c\x0c\x08\x08\x18\x18\x18\x18\x10\x30\x30'\
b'\x30\x30\x30\x20\x60\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06'\
b'\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18'\
b'\x40\x18\x40\x18\x60\x30\x60\x30\x70\xe0\x3f\xc0\x0f\x80\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x04\x00\xe0\x0c\x01\x80\x0c\x03\x00'\
b'\x0c\x06\x00\x0c\x0c\x00\x08\x18\x00\x08\x30\x00\x18\xe0\x00\x19'\
b'\xc0\x00\x1b\x80\x00\x1f\x80\x00\x1c\xc0\x00\x18\x60\x00\x30\x60'\
b'\x00\x30\x30\x00\x30\x30\x00\x30\x18\x00\x20\x0c\x00\x60\x0c\x00'\
b'\x60\x06\x00\x60\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00'\
b'\x00\x00\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18'\
b'\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x00\x30\x00\x30\x00\x30'\
b'\x00\x30\x00\x20\x00\x20\x00\x60\x00\x7f\xf8\x7f\xf8\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x06\x00\x07\x0e\x00\x07\x0e\x00\x0f\x0f'\
b'\x00\x0a\x0b\x00\x1a\x0b\x00\x36\x19\x00\x36\x19\x80\x66\x19\x80'\
b'\x66\x19\x80\xc4\x18\x80\x8c\x10\x81\x8c\x30\xc3\x0c\x30\xc3\x0c'\
b'\x30\x46\x08\x30\x46\x08\x30\x6c\x18\x20\x68\x18\x60\x78\x18\x60'\
b'\x30\x18\x60\x30\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x00\x20\x0e\x00\x60\x0e\x00\x60\x0f\x00'\
b'\x60\x0f\x00\x60\x09\x80\x60\x19\x80\x40\x18\xc0\xc0\x18\xc0\xc0'\
b'\x18\x60\xc0\x18\x60\xc0\x10\x30\xc0\x30\x30\x80\x30\x19\x80\x30'\
b'\x19\x80\x30\x09\x80\x20\x0d\x80\x20\x05\x80\x60\x07\x00\x60\x03'\
b'\x00\x60\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xfc\x00\x03\xfe\x00\x07\x87\x00\x0e\x01\x80'\
b'\x0c\x01\x80\x18\x00\xc0\x18\x00\xc0\x10\x00\xc0\x30\x00\xc0\x30'\
b'\x00\xc0\x30\x00\xc0\x30\x00\x80\x20\x01\x80\x20\x01\x80\x20\x01'\
b'\x80\x30\x03\x00\x30\x03\x00\x38\x06\x00\x1c\x1c\x00\x0f\xf8\x00'\
b'\x03\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0f\xfc\x00\x0f\xfe\x00\x0c\x07\x00\x0c\x03\x80\x08'\
b'\x01\x80\x18\x01\x80\x18\x01\x80\x18\x01\x80\x18\x03\x00\x18\x03'\
b'\x00\x10\x0e\x00\x3f\xfc\x00\x3f\xf0\x00\x30\x00\x00\x30\x00\x00'\
b'\x30\x00\x00\x20\x00\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\x60'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\xfc\x00\x03\xfe\x00\x07\x87\x00\x0e\x01\x80\x0c\x01'\
b'\x80\x18\x00\xc0\x18\x00\xc0\x30\x00\xc0\x30\x00\xc0\x30\x00\xc0'\
b'\x30\x00\xc0\x20\x00\x80\x20\x01\x80\x20\x01\x80\x20\x01\x80\x30'\
b'\x03\x00\x30\x07\x00\x38\x06\x00\x1c\x1c\x00\x0f\xf8\x00\x07\xf0'\
b'\x00\x00\x18\x00\x00\x0c\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0f\xfc\x00\x0f\xfe\x00\x0c\x07\x00\x0c\x03\x80\x0c\x01\x80'\
b'\x08\x01\x80\x18\x01\x80\x18\x01\x80\x18\x03\x00\x18\x03\x00\x18'\
b'\x0e\x00\x1f\xfc\x00\x3f\xf0\x00\x30\x30\x00\x30\x18\x00\x30\x18'\
b'\x00\x30\x08\x00\x20\x0c\x00\x60\x0c\x00\x60\x06\x00\x60\x06\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\xf8\x00\x07\xfe\x00\x0f\x07\x00\x0c\x03\x00\x18\x01\x80\x18'\
b'\x01\x80\x18\x00\x00\x1c\x00\x00\x0f\x00\x00\x07\xc0\x00\x01\xf0'\
b'\x00\x00\x3c\x00\x00\x0e\x00\x00\x06\x00\x00\x06\x00\x60\x06\x00'\
b'\x60\x06\x00\x60\x0c\x00\x38\x1c\x00\x1f\xf8\x00\x07\xe0\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f'\
b'\xff\xc0\x1f\xff\xc0\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\x60'\
b'\x00\x00\x40\x00\x00\xc0\x00\x00\xc0\x00\x00\xc0\x00\x00\xc0\x00'\
b'\x00\x80\x00\x00\x80\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01'\
b'\x80\x00\x01\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00'\
b'\x60\x0c\x00\x40\x0c\x00\x40\x0c\x00\xc0\x0c\x00\xc0\x08\x00\xc0'\
b'\x18\x00\xc0\x18\x00\x80\x18\x01\x80\x18\x01\x80\x10\x01\x80\x10'\
b'\x01\x80\x30\x01\x80\x30\x01\x00\x30\x03\x00\x30\x03\x00\x30\x07'\
b'\x00\x18\x06\x00\x1c\x1c\x00\x0f\xf8\x00\x03\xe0\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\x60'\
b'\x10\x00\xc0\x18\x00\xc0\x18\x01\x80\x18\x01\x80\x18\x03\x00\x08'\
b'\x03\x00\x0c\x06\x00\x0c\x06\x00\x0c\x0c\x00\x0c\x0c\x00\x04\x18'\
b'\x00\x04\x18\x00\x06\x30\x00\x06\x30\x00\x06\x60\x00\x02\x60\x00'\
b'\x02\xc0\x00\x03\xc0\x00\x03\x80\x00\x03\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18'\
b'\x02\x00\xc0\x18\x07\x00\xc0\x18\x07\x00\x80\x18\x0f\x01\x80\x18'\
b'\x0b\x01\x80\x18\x19\x03\x00\x18\x19\x03\x00\x18\x11\x02\x00\x18'\
b'\x31\x06\x00\x08\x21\x86\x00\x08\x61\x84\x00\x08\x41\x8c\x00\x0c'\
b'\xc1\x88\x00\x0c\xc0\x98\x00\x0d\x80\x98\x00\x0d\x80\x90\x00\x0d'\
b'\x00\xb0\x00\x0f\x00\xa0\x00\x0e\x00\xe0\x00\x0e\x00\xe0\x00\x06'\
b'\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x60\x06\x00\xc0'\
b'\x06\x01\x80\x03\x03\x00\x03\x03\x00\x01\x06\x00\x01\x8c\x00\x00'\
b'\x98\x00\x00\xf8\x00\x00\x70\x00\x00\x60\x00\x00\xe0\x00\x01\xb0'\
b'\x00\x03\x10\x00\x03\x18\x00\x06\x08\x00\x0c\x0c\x00\x18\x0c\x00'\
b'\x30\x06\x00\x30\x06\x00\xe0\x03\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\xe0\x18\x01\xc0\x18'\
b'\x01\x80\x0c\x03\x00\x0c\x06\x00\x04\x06\x00\x06\x0c\x00\x06\x18'\
b'\x00\x02\x18\x00\x03\x30\x00\x03\x60\x00\x01\xc0\x00\x01\xc0\x00'\
b'\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x00\x00\x03'\
b'\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xff\x80\x1f\xff\x80\x00\x03'\
b'\x00\x00\x03\x00\x00\x06\x00\x00\x0c\x00\x00\x18\x00\x00\x30\x00'\
b'\x00\x60\x00\x00\xc0\x00\x01\xc0\x00\x01\x80\x00\x03\x00\x00\x06'\
b'\x00\x00\x0c\x00\x00\x18\x00\x00\x30\x00\x00\x60\x00\x00\xe0\x00'\
b'\x00\xff\xfc\x00\xff\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x0f\x80'\
b'\x0f\x80\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\x18\x00\x18\x00'\
b'\x18\x00\x18\x00\x18\x00\x10\x00\x30\x00\x30\x00\x30\x00\x30\x00'\
b'\x30\x00\x20\x00\x20\x00\x60\x00\x60\x00\x60\x00\x60\x00\x40\x00'\
b'\x40\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00'\
b'\x00\x00\x00\x00\x10\x00\x18\x00\x18\x00\x18\x00\x08\x00\x08\x00'\
b'\x0c\x00\x0c\x00\x0c\x00\x04\x00\x04\x00\x06\x00\x06\x00\x06\x00'\
b'\x02\x00\x02\x00\x03\x00\x03\x00\x03\x00\x01\x00\x01\x00\x01\x80'\
b'\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x0f\x80'\
b'\x0f\x80\x01\x80\x01\x00\x01\x00\x03\x00\x03\x00\x03\x00\x03\x00'\
b'\x02\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x04\x00'\
b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x00\x18\x00'\
b'\x18\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\
b'\x00\x00\x00\x00\x01\x80\x03\x80\x02\x80\x06\x80\x04\xc0\x0c\xc0'\
b'\x18\x40\x18\x40\x30\x60\x60\x60\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf8'\
b'\xff\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00'\
b'\x0c\x0c\x06\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe0\x0f\xf0\x1c\x38\x18\x18\x30\x18\x00\x18\x00\x18\x07\xf8\x3f'\
b'\xf8\x78\x10\x60\x10\x40\x30\x40\x30\x60\xf0\x7f\xb0\x1e\x30\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\x19'\
b'\xf0\x1b\xf8\x1e\x18\x18\x0c\x18\x0c\x10\x0c\x30\x04\x30\x0c\x30'\
b'\x0c\x30\x0c\x20\x0c\x20\x18\x70\x18\x78\x70\x7f\xe0\x47\xc0\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe0\x0f\xf0\x1c\x18\x18\x0c\x30\x0c\x30\x04\x20\x00\x60\x00\x60'\
b'\x00\x60\x00\x60\x00\x20\x18\x30\x18\x38\x70\x1f\xe0\x0f\x80\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x03\x00\x03\x00\x02\x00\x02\x00\x06\x00\x06\x03'\
b'\xe6\x0f\xf6\x1c\x1c\x18\x0c\x30\x0c\x30\x0c\x20\x0c\x60\x0c\x60'\
b'\x08\x60\x18\x60\x18\x60\x18\x30\x38\x38\x78\x1f\xd0\x0f\x90\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe0\x07\xf0\x0c\x38\x18\x18\x30\x0c\x30\x0c\x20\x0c\x7f\xfc\x7f'\
b'\xfc\x60\x00\x60\x00\x60\x00\x30\x20\x38\x30\x1f\xe0\x07\xc0\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00'\
b'\x00\x00\x00\x01\xe0\x03\xe0\x07\x00\x06\x00\x0c\x00\x0c\x00\x3f'\
b'\x80\x3f\x80\x4c\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18'\
b'\x00\x10\x00\x30\x00\x30\x00\x30\x00\x30\x00\x20\x00\x60\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe6\x0f\xf6\x1c\x1c\x18\x0c\x30\x0c\x30\x0c\x30\x0c\x20\x0c\x60'\
b'\x08\x60\x18\x60\x18\x60\x18\x30\x38\x38\x78\x1f\xd0\x0f\xb0\x00'\
b'\x30\x00\x30\x40\x60\xe0\xe0\x7f\xc0\x1f\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\x09'\
b'\xf0\x1b\xf8\x1e\x18\x1c\x0c\x18\x0c\x10\x0c\x30\x0c\x30\x08\x30'\
b'\x08\x30\x18\x30\x18\x20\x18\x60\x18\x60\x18\x60\x10\x60\x30\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00'\
b'\x00\x00\x0c\x0c\x00\x00\x00\x18\x18\x18\x18\x10\x10\x30\x30\x30'\
b'\x30\x20\x20\x60\x60\x60\x60\x00\x00\x00\x00\x00\x00\x00\x0b\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00'\
b'\x00\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x00\x01\x00\x03\x00'\
b'\x03\x00\x03\x00\x03\x00\x02\x00\x02\x00\x06\x00\x06\x00\x06\x00'\
b'\x06\x00\x04\x00\x0c\x00\x1c\x00\xf8\x00\xf0\x00\x00\x00\x0e\x00'\
b'\x00\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x00'\
b'\x18\x0c\x18\x38\x18\x70\x10\xe0\x11\x80\x33\x00\x36\x00\x3e\x00'\
b'\x3b\x00\x31\x00\x21\x80\x60\xc0\x60\xc0\x60\x60\x60\x60\x40\x30'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00'\
b'\x00\x00\x04\x0c\x0c\x0c\x0c\x08\x18\x18\x18\x18\x18\x10\x30\x30'\
b'\x30\x30\x20\x20\x60\x60\x60\x60\x00\x00\x00\x00\x00\x00\x00\x19'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x19\xf0\x78\x00\x1b\xf9\xfc\x00\x16\x1b\x0e\x00\x18\x0e\x06'\
b'\x00\x30\x0c\x06\x00\x30\x0c\x06\x00\x30\x08\x06\x00\x30\x08\x06'\
b'\x00\x30\x18\x06\x00\x20\x18\x04\x00\x60\x18\x04\x00\x60\x18\x0c'\
b'\x00\x60\x10\x0c\x00\x60\x10\x0c\x00\x40\x30\x0c\x00\x40\x30\x0c'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19'\
b'\xf0\x1b\xf8\x1e\x18\x1c\x0c\x18\x0c\x10\x0c\x30\x0c\x30\x08\x30'\
b'\x08\x30\x18\x30\x18\x20\x18\x60\x18\x60\x18\x60\x10\x60\x30\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe0\x0f\xf8\x1c\x18\x18\x0c\x30\x0c\x20\x04\x60\x04\x60\x04\x60'\
b'\x04\x60\x0c\x60\x0c\x60\x18\x30\x18\x38\x70\x1f\xe0\x0f\x80\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19'\
b'\xf0\x1b\xf8\x1e\x18\x18\x0c\x18\x0c\x30\x0c\x30\x0c\x30\x0c\x30'\
b'\x0c\x30\x0c\x20\x0c\x60\x18\x70\x38\x78\x70\x7f\xe0\x67\xc0\x40'\
b'\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03'\
b'\xe6\x0f\xf6\x1c\x1c\x18\x0c\x30\x0c\x30\x0c\x20\x0c\x60\x0c\x60'\
b'\x08\x60\x18\x60\x18\x60\x18\x30\x38\x38\x78\x1f\xd0\x0f\x90\x00'\
b'\x30\x00\x30\x00\x30\x00\x30\x00\x20\x00\x60\x00\x00\x0a\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19'\
b'\xc0\x1b\xc0\x1e\x00\x1c\x00\x18\x00\x10\x00\x30\x00\x30\x00\x30'\
b'\x00\x30\x00\x20\x00\x20\x00\x60\x00\x60\x00\x60\x00\x60\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07'\
b'\xc0\x0f\xf0\x18\x30\x30\x18\x30\x18\x38\x00\x1e\x00\x0f\xc0\x01'\
b'\xe0\x00\x70\x00\x30\x40\x30\x60\x30\x70\xe0\x3f\xc0\x1f\x80\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x04\x00\x04\x00\x0c\x00\x0c\x00\x7f'\
b'\x80\x7f\x80\x08\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10'\
b'\x00\x10\x00\x30\x00\x30\x00\x30\x00\x30\x00\x3e\x00\x1e\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08'\
b'\x06\x18\x06\x18\x06\x18\x04\x18\x0c\x10\x0c\x10\x0c\x30\x0c\x30'\
b'\x0c\x30\x08\x30\x18\x30\x18\x30\x38\x38\x78\x1f\xd8\x0f\x90\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30'\
b'\x0c\x30\x0c\x30\x18\x30\x18\x10\x30\x10\x30\x18\x60\x18\x60\x18'\
b'\xc0\x08\xc0\x09\x80\x0d\x80\x0f\x00\x0f\x00\x06\x00\x06\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x30\x18\x18\x30\x38\x18\x30\x38\x10'\
b'\x30\x78\x30\x10\x48\x30\x10\xc8\x60\x10\xc8\x60\x10\x88\x40\x11'\
b'\x88\xc0\x19\x0c\x80\x1b\x0d\x80\x1a\x0d\x00\x1e\x07\x00\x1c\x07'\
b'\x00\x0c\x06\x00\x08\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x0e'\
b'\x0c\x0c\x0c\x18\x04\x30\x06\x60\x02\x60\x03\xc0\x01\x80\x03\x80'\
b'\x06\x80\x06\xc0\x0c\x40\x18\x60\x30\x20\x70\x30\xe0\x18\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x06'\
b'\x18\x06\x18\x0c\x08\x0c\x08\x18\x0c\x18\x0c\x30\x0c\x30\x04\x60'\
b'\x04\x60\x06\xc0\x06\xc0\x07\x80\x03\x00\x03\x00\x02\x00\x06\x00'\
b'\x04\x00\x0c\x00\x18\x00\xf8\x00\xe0\x00\x00\x00\x0e\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfc'\
b'\x3f\xf8\x00\x18\x00\x30\x00\x60\x00\xc0\x01\x80\x03\x00\x06\x00'\
b'\x0c\x00\x18\x00\x30\x00\x60\x00\x60\x00\xff\xf0\xff\xf0\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00'\
b'\x00\x60\x00\xc0\x01\x80\x03\x00\x02\x00\x06\x00\x06\x00\x06\x00'\
b'\x06\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00\x70\x00\x70\x00'\
b'\x30\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x00\x10\x00'\
b'\x10\x00\x18\x00\x18\x00\x0c\x00\x06\x00\x00\x00\x06\x00\x00\x00'\
b'\x00\x0c\x0c\x08\x08\x08\x18\x18\x18\x10\x10\x10\x10\x30\x30\x30'\
b'\x20\x20\x20\x60\x60\x60\x40\x40\x40\xc0\x00\x00\x00\x0b\x00\x00'\
b'\x00\x08\x00\x06\x00\x02\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x80\x01\xc0\x01'\
b'\xc0\x03\x00\x06\x00\x04\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c'\
b'\x00\x08\x00\x18\x00\x30\x00\x60\x00\x80\x00\x00\x00\x13\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x0f\x00\x80\x1f\xc0\x80\x30\xe1\x80\x20'\
b'\x7f\x00\x60\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
_index =\
b'\x00\x00\x40\x00\x61\x00\x82\x00\xc2\x00\x21\x01\x61\x01\xc0\x01'\
b'\x1f\x02\x40\x02\x80\x02\xc0\x02\x00\x03\x40\x03\x61\x03\x82\x03'\
b'\xa3\x03\xe3\x03\x23\x04\x63\x04\xa3\x04\xe3\x04\x23\x05\x63\x05'\
b'\xa3\x05\xe3\x05\x23\x06\x63\x06\x84\x06\xa5\x06\xe5\x06\x25\x07'\
b'\x65\x07\xa5\x07\x23\x08\x82\x08\xe1\x08\x40\x09\x9f\x09\xfe\x09'\
b'\x5d\x0a\xbc\x0a\x1b\x0b\x3c\x0b\x7c\x0b\xdb\x0b\x1b\x0c\x7a\x0c'\
b'\xd9\x0c\x38\x0d\x97\x0d\xf6\x0d\x55\x0e\xb4\x0e\x13\x0f\x72\x0f'\
b'\xd1\x0f\x4f\x10\xae\x10\x0d\x11\x6c\x11\xac\x11\xec\x11\x2c\x12'\
b'\x6c\x12\xac\x12\xcd\x12\x0d\x13\x4d\x13\x8d\x13\xcd\x13\x0d\x14'\
b'\x4d\x14\x8d\x14\xcd\x14\xee\x14\x2e\x15\x6e\x15\x8f\x15\x0d\x16'\
b'\x4d\x16\x8d\x16\xcd\x16\x0d\x17\x4d\x17\x8d\x17\xcd\x17\x0d\x18'\
b'\x4d\x18\xac\x18\xec\x18\x2c\x19\x6c\x19\xac\x19\xcd\x19\x0d\x1a'\
b'\x6c\x1a'
_mvfont = memoryview(_font)
_mvi = memoryview(_index)
ifb = lambda l : l[0] | (l[1] << 8)
def get_ch(ch):
oc = ord(ch)
ioff = 2 * (oc - 32 + 1) if oc >= 32 and oc <= 126 else 0
doff = ifb(_mvi[ioff : ])
width = ifb(_mvfont[doff : ])
next_offs = doff + 2 + ((width - 1)//8 + 1) * 31
return _mvfont[doff + 2:next_offs], 31, width
| version = '0.33'
def height():
return 31
def baseline():
return 24
def max_width():
return 26
def hmap():
return True
def reverse():
return False
def monospaced():
return False
def min_ch():
return 32
def max_ch():
return 126
_font = b'\r\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf0\x1c8\x18\x18\x10\x18 \x18\x00\x18\x000\x00`\x00\xe0\x01\x80\x03\x00\x02\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x0c\x0c\x0c\x0c\x08\x18\x18\x18\x18\x10\x100000\x00\x00\x00\x00``\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00\x00\x00\t\x80\t\x00\t\x00\x19\x00\x1b\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00a\x80\x00C\x00\x00\xc3\x00\x00\x82\x00\x00\x86\x00\x1f\xff\xc0\x1f\xff\x80\x01\x0c\x00\x03\x08\x00\x02\x08\x00\x02\x18\x00\x06\x10\x00\x040\x00\x7f\xfe\x00\x7f\xfe\x00\x08 \x00\x08`\x00\x18@\x00\x10@\x00\x10\xc0\x000\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00 \x00 \x00 \x01\xf0\x03\xfc\x06\x0c\x0c\x06\x08\x06\x08\x06\x08\x00\x0c\x00\x0e\x00\x07\x80\x01\xe0\x00p\x00\x18\x00\x08\x00\x0c`\x0c`\x0c0\x188x\x1f\xf0\x0f\xc0\x03\x00\x02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x80\x00\x0f\xc0\x00\x1c`\x80\x18a\x80\x10a\x00\x10b\x00\x10f\x00\x18\xcc\x00\x0f\xd8\x00\x07\x10\x00\x000\x00\x00g\x80\x00\xcf\xc0\x00\x8c`\x01\x18`\x03\x10`\x06\x10`\x04\x10`\x08\x18\xc0\x00\x0f\xc0\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xe0\x00\x03\xf8\x00\x06\x18\x00\x06\x08\x00\x0c\x08\x00\x0c\x18\x00\x0c0\x00\x06`\x00\x07\xc0\x00\x03\x00\x00\x0f\x00\x00\x19\x80\x000\xc3\x00`B\x00`f\x00`6\x00`\x1c\x00`\x18\x00p|\x00?\xe4\x00\x0f\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x08\x08\x18\x18\x10\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00 \x00\xc0\x01\x80\x03\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x08\x00\x18\x00\x18\x00\x10\x000\x000\x000\x000\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x000\x000\x00\x10\x00\x18\x00\x08\x00\x0c\x00\x04\x00\x0b\x00\x00\x00\x04\x00\x0c\x00\x02\x00\x03\x00\x01\x00\x01\x00\x01\x80\x01\x80\x01\x80\x00\x80\x00\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x00\x03\x00\x03\x00\x03\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x18\x00\x10\x000\x00`\x00\x80\x00\r\x00\x00\x00\x00\x00\x00\x00\x01\x80\x01\x80\x01\x00\x01\x0898\x1f\xe0\x03\x00\x07\x80\r\x80\x18\xc00\xc0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x80\x00\x80\x01\x80\x7f\xfe\x7f\xfe\x01\x80\x01\x00\x01\x00\x03\x00\x03\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0000 ``\xc0\x80\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00``\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x18\x000\x000\x00`\x00`\x00\xc0\x00\x80\x01\x80\x01\x00\x03\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x08\x00\x18\x000\x000\x00`\x00`\x00\xc0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x03\xf8\x06\x0c\x0c\x04\x08\x06\x18\x06\x18\x06\x10\x060\x060\x060\x040\x04 \x0c \x0c \x0c \x080\x18008p\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x000\x00\xe0\x07\xe0\x0e`\x08`\x00`\x00`\x00@\x00@\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x80\x00\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xf8\x0e\x1c\x1c\x0c\x18\x06\x10\x06\x00\x04\x00\x0c\x00\x0c\x00\x18\x000\x00`\x00\xc0\x01\x80\x03\x00\x06\x00\x0c\x00\x18\x000\x00\x7f\xf8\x7f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xfc\x0e\x0c\x0c\x06\x18\x06\x18\x06\x00\x06\x00\x0c\x00\x18\x03\xf0\x03\xf0\x008\x00\x18\x00\x0c\x00\x0c`\x0c`\x180\x188p\x1f\xe0\x0f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x1c\x00<\x00l\x00H\x00\xd8\x01\x98\x03\x18\x06\x18\x04\x10\x0c\x10\x18000`0\x7f\xfe\xff\xfe\x00 \x00`\x00`\x00`\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x03\xff\x03\xff\x06\x00\x06\x00\x04\x00\x04\x00\x0c\x00\x0f\xe0\x0f\xf8\x0c\x18\x10\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c0\x0c0\x0c0\x18\x188\x0f\xf0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00<\x00\xfc\x03\xc0\x07\x00\x06\x00\x0c\x00\x18\x00\x19\xe0\x17\xf8<\x188\x0c0\x0c0\x0c \x0c \x0c0\x0c0\x080\x18\x18p\x0f\xe0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x1f\xff\x1f\xff\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x18\x00\x10\x000\x00`\x00`\x00\xc0\x00\x80\x01\x80\x03\x00\x03\x00\x06\x00\x04\x00\x0c\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xfc\x0e\x0e\x0c\x06\x08\x06\x18\x06\x18\x06\x08\x0c\x0e\x1c\x07\xf0\x07\xf0\x1c80\x08 \x0c`\x0c`\x0c`\x0c`\x188x\x1f\xf0\x0f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x01\xf0\x07\xf8\x0e\x1c\x0c\x0c\x18\x06\x18\x06\x10\x060\x060\x060\x04\x10\x0c\x18\x14\x1c<\x0f\xec\x07\x98\x00\x18\x000\x00`\x01\xc0\x1f\x80\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00``\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0000 ``\xc0\x80\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x18\x00\xf0\x03\xc0\x0f\x008\x00`\x008\x00\x1e\x00\x07\x80\x01\xe0\x00p\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfc\x1f\xfc\x00\x00\x00\x00\x00\x00\x00\x00?\xf8?\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x1c\x00\x0f\x00\x03\x80\x00\xe0\x008\x00\x0c\x00x\x01\xe0\x07\x00<\x00p\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf0\x1c8\x18\x18\x10\x18 \x18\x00\x18\x000\x00`\x00\xe0\x01\x80\x03\x00\x02\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xe0\x00\x00\x7f\xf8\x00\x00\xf0\x1c\x00\x01\xc0\x06\x00\x03\x00\x02\x00\x06\x00\x03\x00\x0c\x0f\x81\x00\x18\x1f\xc1\x00\x180\xc1\x000`\xc1\x000@\x81\x00 \xc0\x81\x00 \x80\x81\x00a\x81\x83\x00a\x81\x02\x00a\x81\x02\x00a\x83\x06\x00a\x85\x0c\x00`\xfd\xf8\x00`p\xf0\x000\x00\x00\x000\x00\x00\x00\x18\x00\x00\x00\x0e\x06\x00\x00\x07\xfe\x00\x00\x01\xf8\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x008\x00\x008\x00\x00l\x00\x00l\x00\x00\xcc\x00\x00\xcc\x00\x01\x84\x00\x01\x84\x00\x03\x06\x00\x03\x06\x00\x06\x06\x00\x06\x06\x00\x0c\x02\x00\x1f\xff\x00\x1f\xff\x008\x03\x000\x03\x00`\x01\x00`\x01\x80\xc0\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xf8\x00\x0f\xfe\x00\x0c\x06\x00\x0c\x03\x00\x08\x03\x00\x18\x03\x00\x18\x03\x00\x18\x06\x00\x18\x0c\x00\x1f\xf8\x00\x1f\xf8\x000\x0c\x000\x06\x000\x06\x000\x06\x00 \x06\x00 \x06\x00`\x0c\x00`<\x00\x7f\xf8\x00\x7f\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x03\xfe\x00\x07\x07\x00\x0e\x01\x80\x0c\x01\x80\x18\x00\x80\x18\x00\x800\x00\x000\x00\x000\x00\x000\x00\x00 \x00\x00 \x00\x00 \x00\x00 \x03\x000\x03\x000\x06\x008\x0e\x00\x1c\x1c\x00\x0f\xf8\x00\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xf8\x00\x07\xfe\x00\x0c\x07\x00\x0c\x03\x00\x0c\x01\x80\x0c\x01\x80\x0c\x00\x80\x08\x00\x80\x18\x00\x80\x18\x00\x80\x18\x01\x80\x18\x01\x80\x10\x01\x80\x10\x01\x800\x03\x000\x03\x000\x06\x000\x0c\x00 8\x00\x7f\xf0\x00\x7f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x80\x0f\xff\x80\x0c\x00\x00\x0c\x00\x00\x0c\x00\x00\x08\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x1f\xfc\x00\x1f\xfc\x00\x10\x00\x000\x00\x000\x00\x000\x00\x000\x00\x00 \x00\x00 \x00\x00`\x00\x00\x7f\xfc\x00\x7f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xff\x80\x0f\xff\x80\x0c\x00\x00\x0c\x00\x00\x0c\x00\x00\x08\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x1f\xfc\x00\x1f\xfc\x00\x10\x00\x000\x00\x000\x00\x000\x00\x000\x00\x000\x00\x00 \x00\x00`\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x01\xff\x00\x07\x83\x80\x06\x01\x80\x0c\x00\xc0\x18\x00\xc0\x18\x00\xc0\x10\x00\x000\x00\x000\x00\x000\x00\x000?\x800?\x800\x01\x800\x01\x000\x03\x000\x03\x00\x18\x03\x00\x1c\x0f\x00\x0f\xfe\x00\x03\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00 \x0c\x00`\x0c\x00`\x0c\x00`\x0c\x00`\x08\x00`\x18\x00@\x18\x00\xc0\x18\x00\xc0\x1f\xff\xc0\x1f\xff\xc0\x10\x00\xc00\x00\x800\x01\x800\x01\x800\x01\x800\x01\x80 \x01\x80`\x01\x00`\x03\x00`\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x06\x04\x04\x0c\x0c\x0c\x0c\x08\x08\x18\x18\x18\x18\x1000000 `\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18@\x18@\x18`0`0p\xe0?\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\xe0\x0c\x01\x80\x0c\x03\x00\x0c\x06\x00\x0c\x0c\x00\x08\x18\x00\x080\x00\x18\xe0\x00\x19\xc0\x00\x1b\x80\x00\x1f\x80\x00\x1c\xc0\x00\x18`\x000`\x0000\x0000\x000\x18\x00 \x0c\x00`\x0c\x00`\x06\x00`\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x000\x000\x000\x000\x00 \x00 \x00`\x00\x7f\xf8\x7f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x07\x0e\x00\x07\x0e\x00\x0f\x0f\x00\n\x0b\x00\x1a\x0b\x006\x19\x006\x19\x80f\x19\x80f\x19\x80\xc4\x18\x80\x8c\x10\x81\x8c0\xc3\x0c0\xc3\x0c0F\x080F\x080l\x18 h\x18`x\x18`0\x18`0\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00 \x0e\x00`\x0e\x00`\x0f\x00`\x0f\x00`\t\x80`\x19\x80@\x18\xc0\xc0\x18\xc0\xc0\x18`\xc0\x18`\xc0\x100\xc000\x800\x19\x800\x19\x800\t\x80 \r\x80 \x05\x80`\x07\x00`\x03\x00`\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x03\xfe\x00\x07\x87\x00\x0e\x01\x80\x0c\x01\x80\x18\x00\xc0\x18\x00\xc0\x10\x00\xc00\x00\xc00\x00\xc00\x00\xc00\x00\x80 \x01\x80 \x01\x80 \x01\x800\x03\x000\x03\x008\x06\x00\x1c\x1c\x00\x0f\xf8\x00\x03\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xfc\x00\x0f\xfe\x00\x0c\x07\x00\x0c\x03\x80\x08\x01\x80\x18\x01\x80\x18\x01\x80\x18\x01\x80\x18\x03\x00\x18\x03\x00\x10\x0e\x00?\xfc\x00?\xf0\x000\x00\x000\x00\x000\x00\x00 \x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x03\xfe\x00\x07\x87\x00\x0e\x01\x80\x0c\x01\x80\x18\x00\xc0\x18\x00\xc00\x00\xc00\x00\xc00\x00\xc00\x00\xc0 \x00\x80 \x01\x80 \x01\x80 \x01\x800\x03\x000\x07\x008\x06\x00\x1c\x1c\x00\x0f\xf8\x00\x07\xf0\x00\x00\x18\x00\x00\x0c\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xfc\x00\x0f\xfe\x00\x0c\x07\x00\x0c\x03\x80\x0c\x01\x80\x08\x01\x80\x18\x01\x80\x18\x01\x80\x18\x03\x00\x18\x03\x00\x18\x0e\x00\x1f\xfc\x00?\xf0\x0000\x000\x18\x000\x18\x000\x08\x00 \x0c\x00`\x0c\x00`\x06\x00`\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x07\xfe\x00\x0f\x07\x00\x0c\x03\x00\x18\x01\x80\x18\x01\x80\x18\x00\x00\x1c\x00\x00\x0f\x00\x00\x07\xc0\x00\x01\xf0\x00\x00<\x00\x00\x0e\x00\x00\x06\x00\x00\x06\x00`\x06\x00`\x06\x00`\x0c\x008\x1c\x00\x1f\xf8\x00\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xff\xc0\x1f\xff\xc0\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00@\x00\x00\xc0\x00\x00\xc0\x00\x00\xc0\x00\x00\xc0\x00\x00\x80\x00\x00\x80\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00`\x0c\x00@\x0c\x00@\x0c\x00\xc0\x0c\x00\xc0\x08\x00\xc0\x18\x00\xc0\x18\x00\x80\x18\x01\x80\x18\x01\x80\x10\x01\x80\x10\x01\x800\x01\x800\x01\x000\x03\x000\x03\x000\x07\x00\x18\x06\x00\x1c\x1c\x00\x0f\xf8\x00\x03\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00`\x10\x00\xc0\x18\x00\xc0\x18\x01\x80\x18\x01\x80\x18\x03\x00\x08\x03\x00\x0c\x06\x00\x0c\x06\x00\x0c\x0c\x00\x0c\x0c\x00\x04\x18\x00\x04\x18\x00\x060\x00\x060\x00\x06`\x00\x02`\x00\x02\xc0\x00\x03\xc0\x00\x03\x80\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x02\x00\xc0\x18\x07\x00\xc0\x18\x07\x00\x80\x18\x0f\x01\x80\x18\x0b\x01\x80\x18\x19\x03\x00\x18\x19\x03\x00\x18\x11\x02\x00\x181\x06\x00\x08!\x86\x00\x08a\x84\x00\x08A\x8c\x00\x0c\xc1\x88\x00\x0c\xc0\x98\x00\r\x80\x98\x00\r\x80\x90\x00\r\x00\xb0\x00\x0f\x00\xa0\x00\x0e\x00\xe0\x00\x0e\x00\xe0\x00\x06\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00`\x06\x00\xc0\x06\x01\x80\x03\x03\x00\x03\x03\x00\x01\x06\x00\x01\x8c\x00\x00\x98\x00\x00\xf8\x00\x00p\x00\x00`\x00\x00\xe0\x00\x01\xb0\x00\x03\x10\x00\x03\x18\x00\x06\x08\x00\x0c\x0c\x00\x18\x0c\x000\x06\x000\x06\x00\xe0\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x008\x00\xe0\x18\x01\xc0\x18\x01\x80\x0c\x03\x00\x0c\x06\x00\x04\x06\x00\x06\x0c\x00\x06\x18\x00\x02\x18\x00\x030\x00\x03`\x00\x01\xc0\x00\x01\xc0\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x80\x00\x01\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xff\x80\x1f\xff\x80\x00\x03\x00\x00\x03\x00\x00\x06\x00\x00\x0c\x00\x00\x18\x00\x000\x00\x00`\x00\x00\xc0\x00\x01\xc0\x00\x01\x80\x00\x03\x00\x00\x06\x00\x00\x0c\x00\x00\x18\x00\x000\x00\x00`\x00\x00\xe0\x00\x00\xff\xfc\x00\xff\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x0f\x80\x0f\x80\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x000\x000\x000\x000\x000\x00 \x00 \x00`\x00`\x00`\x00`\x00@\x00@\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x10\x00\x18\x00\x18\x00\x18\x00\x08\x00\x08\x00\x0c\x00\x0c\x00\x0c\x00\x04\x00\x04\x00\x06\x00\x06\x00\x06\x00\x02\x00\x02\x00\x03\x00\x03\x00\x03\x00\x01\x00\x01\x00\x01\x80\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x0f\x80\x0f\x80\x01\x80\x01\x00\x01\x00\x03\x00\x03\x00\x03\x00\x03\x00\x02\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x00\x18\x00\x18\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x01\x80\x03\x80\x02\x80\x06\x80\x04\xc0\x0c\xc0\x18@\x18@0```\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf8\xff\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x0c\x0c\x06\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf0\x1c8\x18\x180\x18\x00\x18\x00\x18\x07\xf8?\xf8x\x10`\x10@0@0`\xf0\x7f\xb0\x1e0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\x19\xf0\x1b\xf8\x1e\x18\x18\x0c\x18\x0c\x10\x0c0\x040\x0c0\x0c0\x0c \x0c \x18p\x18xp\x7f\xe0G\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf0\x1c\x18\x18\x0c0\x0c0\x04 \x00`\x00`\x00`\x00`\x00 \x180\x188p\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x02\x00\x02\x00\x06\x00\x06\x03\xe6\x0f\xf6\x1c\x1c\x18\x0c0\x0c0\x0c \x0c`\x0c`\x08`\x18`\x18`\x18088x\x1f\xd0\x0f\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x07\xf0\x0c8\x18\x180\x0c0\x0c \x0c\x7f\xfc\x7f\xfc`\x00`\x00`\x000 80\x1f\xe0\x07\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x01\xe0\x03\xe0\x07\x00\x06\x00\x0c\x00\x0c\x00?\x80?\x80L\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x000\x000\x000\x000\x00 \x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe6\x0f\xf6\x1c\x1c\x18\x0c0\x0c0\x0c0\x0c \x0c`\x08`\x18`\x18`\x18088x\x1f\xd0\x0f\xb0\x000\x000@`\xe0\xe0\x7f\xc0\x1f\x00\x00\x00\x10\x00\x00\x00\x00\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x08\x00\t\xf0\x1b\xf8\x1e\x18\x1c\x0c\x18\x0c\x10\x0c0\x0c0\x080\x080\x180\x18 \x18`\x18`\x18`\x10`0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x0c\x0c\x00\x00\x00\x18\x18\x18\x18\x10\x100000 ````\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x00\x01\x00\x03\x00\x03\x00\x03\x00\x03\x00\x02\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x1c\x00\xf8\x00\xf0\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x00\x18\x0c\x188\x18p\x10\xe0\x11\x803\x006\x00>\x00;\x001\x00!\x80`\xc0`\xc0````@0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x04\x0c\x0c\x0c\x0c\x08\x18\x18\x18\x18\x18\x100000 ````\x00\x00\x00\x00\x00\x00\x00\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\xf0x\x00\x1b\xf9\xfc\x00\x16\x1b\x0e\x00\x18\x0e\x06\x000\x0c\x06\x000\x0c\x06\x000\x08\x06\x000\x08\x06\x000\x18\x06\x00 \x18\x04\x00`\x18\x04\x00`\x18\x0c\x00`\x10\x0c\x00`\x10\x0c\x00@0\x0c\x00@0\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\xf0\x1b\xf8\x1e\x18\x1c\x0c\x18\x0c\x10\x0c0\x0c0\x080\x080\x180\x18 \x18`\x18`\x18`\x10`0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe0\x0f\xf8\x1c\x18\x18\x0c0\x0c \x04`\x04`\x04`\x04`\x0c`\x0c`\x180\x188p\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\xf0\x1b\xf8\x1e\x18\x18\x0c\x18\x0c0\x0c0\x0c0\x0c0\x0c0\x0c \x0c`\x18p8xp\x7f\xe0g\xc0@\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xe6\x0f\xf6\x1c\x1c\x18\x0c0\x0c0\x0c \x0c`\x0c`\x08`\x18`\x18`\x18088x\x1f\xd0\x0f\x90\x000\x000\x000\x000\x00 \x00`\x00\x00\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\xc0\x1b\xc0\x1e\x00\x1c\x00\x18\x00\x10\x000\x000\x000\x000\x00 \x00 \x00`\x00`\x00`\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xc0\x0f\xf0\x1800\x180\x188\x00\x1e\x00\x0f\xc0\x01\xe0\x00p\x000@0`0p\xe0?\xc0\x1f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x04\x00\x0c\x00\x0c\x00\x7f\x80\x7f\x80\x08\x00\x08\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x00\x10\x000\x000\x000\x000\x00>\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x06\x18\x06\x18\x06\x18\x04\x18\x0c\x10\x0c\x10\x0c0\x0c0\x0c0\x080\x180\x18088x\x1f\xd8\x0f\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x0c0\x0c0\x180\x18\x100\x100\x18`\x18`\x18\xc0\x08\xc0\t\x80\r\x80\x0f\x00\x0f\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x18\x1808\x1808\x100x0\x10H0\x10\xc8`\x10\xc8`\x10\x88@\x11\x88\xc0\x19\x0c\x80\x1b\r\x80\x1a\r\x00\x1e\x07\x00\x1c\x07\x00\x0c\x06\x00\x08\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x0e\x0c\x0c\x0c\x18\x040\x06`\x02`\x03\xc0\x01\x80\x03\x80\x06\x80\x06\xc0\x0c@\x18`0 p0\xe0\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x06\x18\x06\x18\x0c\x08\x0c\x08\x18\x0c\x18\x0c0\x0c0\x04`\x04`\x06\xc0\x06\xc0\x07\x80\x03\x00\x03\x00\x02\x00\x06\x00\x04\x00\x0c\x00\x18\x00\xf8\x00\xe0\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xfc?\xf8\x00\x18\x000\x00`\x00\xc0\x01\x80\x03\x00\x06\x00\x0c\x00\x18\x000\x00`\x00`\x00\xff\xf0\xff\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00`\x00\xc0\x01\x80\x03\x00\x02\x00\x06\x00\x06\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00p\x00p\x000\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x10\x00\x10\x00\x10\x00\x18\x00\x18\x00\x0c\x00\x06\x00\x00\x00\x06\x00\x00\x00\x00\x0c\x0c\x08\x08\x08\x18\x18\x18\x10\x10\x10\x10000 ```@@@\xc0\x00\x00\x00\x0b\x00\x00\x00\x08\x00\x06\x00\x02\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x80\x01\xc0\x01\xc0\x03\x00\x06\x00\x04\x00\x04\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x08\x00\x18\x000\x00`\x00\x80\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x80\x1f\xc0\x800\xe1\x80 \x7f\x00`\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
_index = b'\x00\x00@\x00a\x00\x82\x00\xc2\x00!\x01a\x01\xc0\x01\x1f\x02@\x02\x80\x02\xc0\x02\x00\x03@\x03a\x03\x82\x03\xa3\x03\xe3\x03#\x04c\x04\xa3\x04\xe3\x04#\x05c\x05\xa3\x05\xe3\x05#\x06c\x06\x84\x06\xa5\x06\xe5\x06%\x07e\x07\xa5\x07#\x08\x82\x08\xe1\x08@\t\x9f\t\xfe\t]\n\xbc\n\x1b\x0b<\x0b|\x0b\xdb\x0b\x1b\x0cz\x0c\xd9\x0c8\r\x97\r\xf6\rU\x0e\xb4\x0e\x13\x0fr\x0f\xd1\x0fO\x10\xae\x10\r\x11l\x11\xac\x11\xec\x11,\x12l\x12\xac\x12\xcd\x12\r\x13M\x13\x8d\x13\xcd\x13\r\x14M\x14\x8d\x14\xcd\x14\xee\x14.\x15n\x15\x8f\x15\r\x16M\x16\x8d\x16\xcd\x16\r\x17M\x17\x8d\x17\xcd\x17\r\x18M\x18\xac\x18\xec\x18,\x19l\x19\xac\x19\xcd\x19\r\x1al\x1a'
_mvfont = memoryview(_font)
_mvi = memoryview(_index)
ifb = lambda l: l[0] | l[1] << 8
def get_ch(ch):
oc = ord(ch)
ioff = 2 * (oc - 32 + 1) if oc >= 32 and oc <= 126 else 0
doff = ifb(_mvi[ioff:])
width = ifb(_mvfont[doff:])
next_offs = doff + 2 + ((width - 1) // 8 + 1) * 31
return (_mvfont[doff + 2:next_offs], 31, width) |
# Declaracion de operaciones
def swap(a, b):
''' Recibe dos elementos y los intercambia '''
aux = a
a = b
b = aux
return (a, b)
def main():
''' Cuerpo principal '''
# Entrada
a = input('Ingrese el valor de a: ')
b = input('Ingrese el valor de b: ')
# Proceso
print('Antes: a = {}, b = {}'.format(a, b))
a, b = swap(a, b)
# Salida
print('Antes: a = {}, b = {}'.format(a, b))
if __name__ == '__main__':
main() | def swap(a, b):
""" Recibe dos elementos y los intercambia """
aux = a
a = b
b = aux
return (a, b)
def main():
""" Cuerpo principal """
a = input('Ingrese el valor de a: ')
b = input('Ingrese el valor de b: ')
print('Antes: a = {}, b = {}'.format(a, b))
(a, b) = swap(a, b)
print('Antes: a = {}, b = {}'.format(a, b))
if __name__ == '__main__':
main() |
# El * se usa para indicarle una cantidad indefinida
def devuelveSubElementos(*elementos):
for iterador in elementos:
# Devuelve un subelemento del elemento elemento dado
yield from iterador
nombres = devuelveSubElementos("John", "Doe")
# Imprime los sub elementos del primer elemento
print(next(nombres))
| def devuelve_sub_elementos(*elementos):
for iterador in elementos:
yield from iterador
nombres = devuelve_sub_elementos('John', 'Doe')
print(next(nombres)) |
sample_rate = 16000
content_factor = 5 * 1e-9
loudness_factor = 0
style_factor = 1
variation_factor = 0
zero_factor = 0
fft_size = 1024
| sample_rate = 16000
content_factor = 5 * 1e-09
loudness_factor = 0
style_factor = 1
variation_factor = 0
zero_factor = 0
fft_size = 1024 |
# The if and else blocks allow us to branch execution depending on
# whether a condition is true or false. But what if there are more conditions
# to take into account? This is where the elif statement, which is short for
# else if, comes into play. But before we jump into how to use it, let's take a
# look at why we need it in the first place. Let's go back to our trusty
# username validation example. Now, what if your company also had a rule
# that usernames longer than 15 characters aren't allowed? How could we
# let the user know if their chosen username was too long? We could do it
# like this. In this case, we're adding an extra if block inside the else block.
# This work, but the way the code is nested makes it kind of hard to read. To
# avoid unnecessary nesting and make the code clearer. Python gives us the
# elif keyword, which lets us handle more than two comparison cases. Take a
# look. The elif statement looks very similar to the if statement. It's followed
# by a condition and a colon, and a block of code indented to the right that
# forms the body. The condition must be true for the body of the elif block to
# be executed. The main difference between elif and if statements is we can
# only write an elif block as a companion to an if block. That's because the
# condition of the elif statement will only be checked if the condition of the if
# statement wasn't true. So in this example, the program first checks
# whether the username is less than three characters long, and prints a
# message if that's the case. If the username has at least three characters,
# the program then checks if it's longer than 15 characters. If it is, we get a
# message to tell us that. Finally, if none of the above conditions were met,
# the program prints a message indicating that the username is valid.
# There's no limit to how many conditions we can add, and it's easy to
# include new ones. For example, say the company decided that the
# username shouldn't include numbers. We could easily add an extra elif
# condition to check for this. Cool, right?
# You now know how to compare things and use those comparisons for your
# if, elif, else statements. And you are using all of them inside functions.
# Using branching to determine your program's flow opens up a whole new
# realm of possibilities in your scripts. You can use comparisons to pick
# between executing different pieces of code, which makes your script pretty
# flexible. Branching also helps you do all kind of practical things like only
# backing up files with a certain extension, or only allowing login access to a
# server during certain times of the day. Any time your program needs to
# make a decision, you can specify its behavior with a branching statement.
# Are you starting to notice tasks in your day-to-day that could be made
# more efficient with scripting? There's so many possibilities, and we're only
# just getting started will all the cool stuff programming can help you do.
# Wow, we've covered a lot in these last few videos. Remembering all these
# concepts can take some time, and the best way to learn them is to use
# them. So we've put together a cheat sheet for you in the next reading.
# You'll find all the these operators and branching blocks listed there in one
# handy resource. It's super useful when you need a quick refresher. So no
# skipping the reading.
# The number_group function should return "Positive" if the number received is positive,
# "Negative" if it's a negative, and "Zero" if it's 0. Can you fill in the gaps to make
# that happen?
def number_group(number):
if number > 0:
return "Positive"
elif number < 0:
return "Negative"
else:
return "Zero"
| def number_group(number):
if number > 0:
return 'Positive'
elif number < 0:
return 'Negative'
else:
return 'Zero' |
class NoClassificationError (Exception):
"""
When a ClassificationElement has no mapping yet set, but an operation
required it.
"""
class MissingLabelError(Exception):
"""
Raised by ClassifierCollection.classify when requested classifier labels
are missing from collection.
"""
def __init__(self, labels):
"""
:param labels: The labels missing from the collection
:type labels: set[str]
"""
super(MissingLabelError, self).__init__(labels)
self.labels = labels
| class Noclassificationerror(Exception):
"""
When a ClassificationElement has no mapping yet set, but an operation
required it.
"""
class Missinglabelerror(Exception):
"""
Raised by ClassifierCollection.classify when requested classifier labels
are missing from collection.
"""
def __init__(self, labels):
"""
:param labels: The labels missing from the collection
:type labels: set[str]
"""
super(MissingLabelError, self).__init__(labels)
self.labels = labels |
"""939. Binary Tree Kth Floor Node
"""
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param root: the root node
@param k: an integer
@return: the number of nodes in the k-th layer of the binary tree
"""
def kthfloorNode(self, root, k):
# Write your code here
## Practice:
if not root:
return 0
queue = collections.deque([root])
level_num_nodes = 1
level = 0
while queue:
level += 1
if level == k:
return level_num_nodes
level_num_nodes = 0
for _ in range(len(queue)):
node = queue.popleft()
if node.left:
queue.append(node.left)
level_num_nodes += 1
if node.right:
queue.append(node.right)
level_num_nodes += 1
return 0
#######
if not root:
return 0
queue = collections.deque([root])
level = 0
level_num_nodes = 1
while queue:
level += 1
if level == k:
return level_num_nodes
level_num_nodes = 0
for _ in range(len(queue)):
node = queue.popleft()
if node.left:
queue.append(node.left)
level_num_nodes += 1
if node.right:
queue.append(node.right)
level_num_nodes += 1
| """939. Binary Tree Kth Floor Node
"""
'\nDefinition of TreeNode:\nclass TreeNode:\n def __init__(self, val):\n self.val = val\n self.left, self.right = None, None\n'
class Solution:
"""
@param root: the root node
@param k: an integer
@return: the number of nodes in the k-th layer of the binary tree
"""
def kthfloor_node(self, root, k):
if not root:
return 0
queue = collections.deque([root])
level_num_nodes = 1
level = 0
while queue:
level += 1
if level == k:
return level_num_nodes
level_num_nodes = 0
for _ in range(len(queue)):
node = queue.popleft()
if node.left:
queue.append(node.left)
level_num_nodes += 1
if node.right:
queue.append(node.right)
level_num_nodes += 1
return 0
if not root:
return 0
queue = collections.deque([root])
level = 0
level_num_nodes = 1
while queue:
level += 1
if level == k:
return level_num_nodes
level_num_nodes = 0
for _ in range(len(queue)):
node = queue.popleft()
if node.left:
queue.append(node.left)
level_num_nodes += 1
if node.right:
queue.append(node.right)
level_num_nodes += 1 |
N,x=map(int,input().split())
A=list(map(int,input().split()))+[0]
ans=0
for i in range(N):
eated=max(0,A[i]+A[i-1]-x)
ans+=eated
A[i]-=eated
print(ans) | (n, x) = map(int, input().split())
a = list(map(int, input().split())) + [0]
ans = 0
for i in range(N):
eated = max(0, A[i] + A[i - 1] - x)
ans += eated
A[i] -= eated
print(ans) |
# 5. Pounds to Dollars
# Write a program that converts British pounds to US dollars formatted to the 3th decimal point.
# 1 British Pound = 1.31 Dollars
pound = int(input())
dollars = pound * 1.31
print(f'{dollars:.3f}')
| pound = int(input())
dollars = pound * 1.31
print(f'{dollars:.3f}') |
class I2C():
def __init__(self, interfaceNo):
self.interfaceNo = interfaceNo
self._read_result = {}
self._read_arguments = {}
self._write_arguments = {}
def set_readfrom_mem_result(self, register, result_bytes):
self._read_result[register] = result_bytes
def readfrom_mem(self, address, register, bytes):
self._read_arguments[register] = [address, register, bytes]
return self._read_result[register]
def get_readfrom_mem_arguments(self, register):
return self._read_arguments[register]
def writeto_mem(self, address, register, register_bytes):
self._write_arguments[register] = [address, register_bytes]
def get_writeto_mem_arguments(self, register):
return self._write_arguments[register]
| class I2C:
def __init__(self, interfaceNo):
self.interfaceNo = interfaceNo
self._read_result = {}
self._read_arguments = {}
self._write_arguments = {}
def set_readfrom_mem_result(self, register, result_bytes):
self._read_result[register] = result_bytes
def readfrom_mem(self, address, register, bytes):
self._read_arguments[register] = [address, register, bytes]
return self._read_result[register]
def get_readfrom_mem_arguments(self, register):
return self._read_arguments[register]
def writeto_mem(self, address, register, register_bytes):
self._write_arguments[register] = [address, register_bytes]
def get_writeto_mem_arguments(self, register):
return self._write_arguments[register] |
# encoding: utf-8
# module Tekla.Structures.Plugins calls itself Plugins
# from Tekla.Structures.Plugins,Version=2017.0.0.0,Culture=neutral,PublicKeyToken=2f04dbe497b71114
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class AutoDirectionTypeAttribute(Attribute):
"""
AutoDirectionTypeAttribute(Type: AutoDirectionTypeEnum)
AutoDirectionTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: AutoDirectionTypeEnum)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: AutoDirectionTypeAttribute) -> AutoDirectionTypeEnum
"""
class ConnectionBase(MarshalByRefObject):
# no doc
def InitializeLifetimeService(self):
""" InitializeLifetimeService(self: ConnectionBase) -> object """
pass
def IsDefaultValue(self,Value):
"""
IsDefaultValue(self: ConnectionBase,Value: str) -> bool
IsDefaultValue(self: ConnectionBase,Value: float) -> bool
IsDefaultValue(self: ConnectionBase,Value: int) -> bool
"""
pass
def Run(self):
""" Run(self: ConnectionBase) -> bool """
pass
Code=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Code(self: ConnectionBase) -> str
Set: Code(self: ConnectionBase)=value
"""
Identifier=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Identifier(self: ConnectionBase) -> Identifier
"""
Positions=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Positions(self: ConnectionBase) -> List[Point]
"""
Primary=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Primary(self: ConnectionBase) -> Identifier
"""
Secondaries=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Secondaries(self: ConnectionBase) -> List[Identifier]
"""
InputObjectType=None
SeamInputType=None
SecondaryType=None
class CustomPartBase(MarshalByRefObject):
# no doc
def InitializeLifetimeService(self):
""" InitializeLifetimeService(self: CustomPartBase) -> object """
pass
def IsDefaultValue(self,Value):
"""
IsDefaultValue(self: CustomPartBase,Value: str) -> bool
IsDefaultValue(self: CustomPartBase,Value: float) -> bool
IsDefaultValue(self: CustomPartBase,Value: int) -> bool
"""
pass
def Run(self):
""" Run(self: CustomPartBase) -> bool """
pass
Identifier=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Identifier(self: CustomPartBase) -> Identifier
"""
Positions=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Positions(self: CustomPartBase) -> List[Point]
"""
class DetailTypeAttribute(Attribute):
"""
DetailTypeAttribute(Type: DetailTypeEnum)
DetailTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: DetailTypeEnum)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: DetailTypeAttribute) -> DetailTypeEnum
"""
class DrawingPluginBase(MarshalByRefObject):
# no doc
def DefineInput(self):
""" DefineInput(self: DrawingPluginBase) -> List[InputDefinition] """
pass
def InitializeLifetimeService(self):
""" InitializeLifetimeService(self: DrawingPluginBase) -> object """
pass
def IsDefaultValue(self,Value):
"""
IsDefaultValue(self: DrawingPluginBase,Value: str) -> bool
IsDefaultValue(self: DrawingPluginBase,Value: float) -> bool
IsDefaultValue(self: DrawingPluginBase,Value: int) -> bool
"""
pass
def Run(self,Input):
""" Run(self: DrawingPluginBase,Input: List[InputDefinition]) -> bool """
pass
InputDefinition=None
UpdateMode=None
class InputObjectDependencyAttribute(Attribute):
"""
InputObjectDependencyAttribute(Type: InputObjectDependency)
InputObjectDependencyAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: InputObjectDependency)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: InputObjectDependencyAttribute) -> InputObjectDependency
"""
class InputObjectTypeAttribute(Attribute):
"""
InputObjectTypeAttribute(Type: InputObjectType)
InputObjectTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: InputObjectType)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: InputObjectTypeAttribute) -> InputObjectType
"""
class PluginAttribute(Attribute):
""" PluginAttribute(name: str) """
@staticmethod
def __new__(self,name):
""" __new__(cls: type,name: str) """
pass
Name=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Name(self: PluginAttribute) -> str
"""
class PluginBase(MarshalByRefObject):
# no doc
def DefineInput(self):
""" DefineInput(self: PluginBase) -> List[InputDefinition] """
pass
def InitializeLifetimeService(self):
""" InitializeLifetimeService(self: PluginBase) -> object """
pass
def IsDefaultValue(self,Value):
"""
IsDefaultValue(self: PluginBase,Value: str) -> bool
IsDefaultValue(self: PluginBase,Value: float) -> bool
IsDefaultValue(self: PluginBase,Value: int) -> bool
"""
pass
def Run(self,Input):
""" Run(self: PluginBase,Input: List[InputDefinition]) -> bool """
pass
Identifier=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Identifier(self: PluginBase) -> Identifier
"""
CoordinateSystemType=None
InputDefinition=None
InputObjectDependency=None
class PluginCoordinateSystemAttribute(Attribute):
"""
PluginCoordinateSystemAttribute(Type: CoordinateSystemType)
PluginCoordinateSystemAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: CoordinateSystemType)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: PluginCoordinateSystemAttribute) -> CoordinateSystemType
"""
class PluginDescriptionAttribute(Attribute):
""" PluginDescriptionAttribute(language: str,description: str) """
@staticmethod
def __new__(self,language,description):
""" __new__(cls: type,language: str,description: str) """
pass
Description=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Description(self: PluginDescriptionAttribute) -> str
"""
Language=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Language(self: PluginDescriptionAttribute) -> str
"""
class PluginNameAttribute(Attribute):
""" PluginNameAttribute(language: str,name: str) """
@staticmethod
def __new__(self,language,name):
""" __new__(cls: type,language: str,name: str) """
pass
Language=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Language(self: PluginNameAttribute) -> str
"""
Name=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Name(self: PluginNameAttribute) -> str
"""
class PluginUserInterfaceAttribute(Attribute):
""" PluginUserInterfaceAttribute(description: str) """
@staticmethod
def __new__(self,description):
""" __new__(cls: type,description: str) """
pass
Description=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Description(self: PluginUserInterfaceAttribute) -> str
"""
class PositionTypeAttribute(Attribute):
"""
PositionTypeAttribute(Type: PositionTypeEnum)
PositionTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: PositionTypeEnum)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: PositionTypeAttribute) -> PositionTypeEnum
"""
class SeamInputTypeAttribute(Attribute):
"""
SeamInputTypeAttribute(Type: SeamInputType)
SeamInputTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: SeamInputType)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: SeamInputTypeAttribute) -> SeamInputType
"""
class SecondaryTypeAttribute(Attribute):
"""
SecondaryTypeAttribute(Type: SecondaryType)
SecondaryTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: SecondaryType)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: SecondaryTypeAttribute) -> SecondaryType
"""
class StructuresFieldAttribute(Attribute):
""" StructuresFieldAttribute(attributeName: str) """
@staticmethod
def __new__(self,attributeName):
""" __new__(cls: type,attributeName: str) """
pass
AttributeName=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: AttributeName(self: StructuresFieldAttribute) -> str
"""
class UpdateModeAttribute(Attribute):
"""
UpdateModeAttribute(Type: UpdateMode)
UpdateModeAttribute(Type: int)
"""
@staticmethod
def __new__(self,Type):
"""
__new__(cls: type,Type: UpdateMode)
__new__(cls: type,Type: int)
"""
pass
Type=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Type(self: UpdateModeAttribute) -> UpdateMode
"""
| class Autodirectiontypeattribute(Attribute):
"""
AutoDirectionTypeAttribute(Type: AutoDirectionTypeEnum)
AutoDirectionTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: AutoDirectionTypeEnum)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: AutoDirectionTypeAttribute) -> AutoDirectionTypeEnum\n\n\n\n'
class Connectionbase(MarshalByRefObject):
def initialize_lifetime_service(self):
""" InitializeLifetimeService(self: ConnectionBase) -> object """
pass
def is_default_value(self, Value):
"""
IsDefaultValue(self: ConnectionBase,Value: str) -> bool
IsDefaultValue(self: ConnectionBase,Value: float) -> bool
IsDefaultValue(self: ConnectionBase,Value: int) -> bool
"""
pass
def run(self):
""" Run(self: ConnectionBase) -> bool """
pass
code = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Code(self: ConnectionBase) -> str\n\n\n\nSet: Code(self: ConnectionBase)=value\n\n'
identifier = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Identifier(self: ConnectionBase) -> Identifier\n\n\n\n'
positions = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Positions(self: ConnectionBase) -> List[Point]\n\n\n\n'
primary = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Primary(self: ConnectionBase) -> Identifier\n\n\n\n'
secondaries = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Secondaries(self: ConnectionBase) -> List[Identifier]\n\n\n\n'
input_object_type = None
seam_input_type = None
secondary_type = None
class Custompartbase(MarshalByRefObject):
def initialize_lifetime_service(self):
""" InitializeLifetimeService(self: CustomPartBase) -> object """
pass
def is_default_value(self, Value):
"""
IsDefaultValue(self: CustomPartBase,Value: str) -> bool
IsDefaultValue(self: CustomPartBase,Value: float) -> bool
IsDefaultValue(self: CustomPartBase,Value: int) -> bool
"""
pass
def run(self):
""" Run(self: CustomPartBase) -> bool """
pass
identifier = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Identifier(self: CustomPartBase) -> Identifier\n\n\n\n'
positions = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Positions(self: CustomPartBase) -> List[Point]\n\n\n\n'
class Detailtypeattribute(Attribute):
"""
DetailTypeAttribute(Type: DetailTypeEnum)
DetailTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: DetailTypeEnum)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: DetailTypeAttribute) -> DetailTypeEnum\n\n\n\n'
class Drawingpluginbase(MarshalByRefObject):
def define_input(self):
""" DefineInput(self: DrawingPluginBase) -> List[InputDefinition] """
pass
def initialize_lifetime_service(self):
""" InitializeLifetimeService(self: DrawingPluginBase) -> object """
pass
def is_default_value(self, Value):
"""
IsDefaultValue(self: DrawingPluginBase,Value: str) -> bool
IsDefaultValue(self: DrawingPluginBase,Value: float) -> bool
IsDefaultValue(self: DrawingPluginBase,Value: int) -> bool
"""
pass
def run(self, Input):
""" Run(self: DrawingPluginBase,Input: List[InputDefinition]) -> bool """
pass
input_definition = None
update_mode = None
class Inputobjectdependencyattribute(Attribute):
"""
InputObjectDependencyAttribute(Type: InputObjectDependency)
InputObjectDependencyAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: InputObjectDependency)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: InputObjectDependencyAttribute) -> InputObjectDependency\n\n\n\n'
class Inputobjecttypeattribute(Attribute):
"""
InputObjectTypeAttribute(Type: InputObjectType)
InputObjectTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: InputObjectType)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: InputObjectTypeAttribute) -> InputObjectType\n\n\n\n'
class Pluginattribute(Attribute):
""" PluginAttribute(name: str) """
@staticmethod
def __new__(self, name):
""" __new__(cls: type,name: str) """
pass
name = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Name(self: PluginAttribute) -> str\n\n\n\n'
class Pluginbase(MarshalByRefObject):
def define_input(self):
""" DefineInput(self: PluginBase) -> List[InputDefinition] """
pass
def initialize_lifetime_service(self):
""" InitializeLifetimeService(self: PluginBase) -> object """
pass
def is_default_value(self, Value):
"""
IsDefaultValue(self: PluginBase,Value: str) -> bool
IsDefaultValue(self: PluginBase,Value: float) -> bool
IsDefaultValue(self: PluginBase,Value: int) -> bool
"""
pass
def run(self, Input):
""" Run(self: PluginBase,Input: List[InputDefinition]) -> bool """
pass
identifier = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Identifier(self: PluginBase) -> Identifier\n\n\n\n'
coordinate_system_type = None
input_definition = None
input_object_dependency = None
class Plugincoordinatesystemattribute(Attribute):
"""
PluginCoordinateSystemAttribute(Type: CoordinateSystemType)
PluginCoordinateSystemAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: CoordinateSystemType)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: PluginCoordinateSystemAttribute) -> CoordinateSystemType\n\n\n\n'
class Plugindescriptionattribute(Attribute):
""" PluginDescriptionAttribute(language: str,description: str) """
@staticmethod
def __new__(self, language, description):
""" __new__(cls: type,language: str,description: str) """
pass
description = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Description(self: PluginDescriptionAttribute) -> str\n\n\n\n'
language = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Language(self: PluginDescriptionAttribute) -> str\n\n\n\n'
class Pluginnameattribute(Attribute):
""" PluginNameAttribute(language: str,name: str) """
@staticmethod
def __new__(self, language, name):
""" __new__(cls: type,language: str,name: str) """
pass
language = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Language(self: PluginNameAttribute) -> str\n\n\n\n'
name = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Name(self: PluginNameAttribute) -> str\n\n\n\n'
class Pluginuserinterfaceattribute(Attribute):
""" PluginUserInterfaceAttribute(description: str) """
@staticmethod
def __new__(self, description):
""" __new__(cls: type,description: str) """
pass
description = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Description(self: PluginUserInterfaceAttribute) -> str\n\n\n\n'
class Positiontypeattribute(Attribute):
"""
PositionTypeAttribute(Type: PositionTypeEnum)
PositionTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: PositionTypeEnum)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: PositionTypeAttribute) -> PositionTypeEnum\n\n\n\n'
class Seaminputtypeattribute(Attribute):
"""
SeamInputTypeAttribute(Type: SeamInputType)
SeamInputTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: SeamInputType)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: SeamInputTypeAttribute) -> SeamInputType\n\n\n\n'
class Secondarytypeattribute(Attribute):
"""
SecondaryTypeAttribute(Type: SecondaryType)
SecondaryTypeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: SecondaryType)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: SecondaryTypeAttribute) -> SecondaryType\n\n\n\n'
class Structuresfieldattribute(Attribute):
""" StructuresFieldAttribute(attributeName: str) """
@staticmethod
def __new__(self, attributeName):
""" __new__(cls: type,attributeName: str) """
pass
attribute_name = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: AttributeName(self: StructuresFieldAttribute) -> str\n\n\n\n'
class Updatemodeattribute(Attribute):
"""
UpdateModeAttribute(Type: UpdateMode)
UpdateModeAttribute(Type: int)
"""
@staticmethod
def __new__(self, Type):
"""
__new__(cls: type,Type: UpdateMode)
__new__(cls: type,Type: int)
"""
pass
type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Type(self: UpdateModeAttribute) -> UpdateMode\n\n\n\n' |
# List variables are iterable and hold elements in series
shopping_list = ["Tomatoes", "Bananas", "Crackers",
"Sugar", "Icecream", "Bread", "Bananas", "Chocolate"]
print(f"Here's the shopping list:\n{shopping_list}.\n")
# You can count the number of items in a list
num_items = len(shopping_list)
print(f"There are {num_items} things on it.")
# You can also count the number of times a given string appears
# This is case-sensitive, so "bananas" with a lowercase "b" won't work
bananas_count = shopping_list.count('Bananas')
print(f"\"Bananas\" is there {bananas_count} times, for some reason.\n")
# Use sort() to re-order the list. Note that you don't need a new variable
# to store the result in; the sort() method modifies the existing variable.
# Good explanation here: http://opensask.ca/Python/Lists/ListMethods.html#id1
shopping_list.sort()
print("Now the list is in alphabetical order:")
print(shopping_list)
# There's also an append() method:
shopping_list.append("Milk")
print("\nAfter adding milk, the list looks like this:")
print(shopping_list)
| shopping_list = ['Tomatoes', 'Bananas', 'Crackers', 'Sugar', 'Icecream', 'Bread', 'Bananas', 'Chocolate']
print(f"Here's the shopping list:\n{shopping_list}.\n")
num_items = len(shopping_list)
print(f'There are {num_items} things on it.')
bananas_count = shopping_list.count('Bananas')
print(f'"Bananas" is there {bananas_count} times, for some reason.\n')
shopping_list.sort()
print('Now the list is in alphabetical order:')
print(shopping_list)
shopping_list.append('Milk')
print('\nAfter adding milk, the list looks like this:')
print(shopping_list) |
# -*- coding: utf-8 -*-
"""
Copyright (c) 2018, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
# Stubs for commonly-mocked classes
class StubConfig(object):
image_build_method = None
release_env_var = None
class StubSource(object):
dockerfile_path = None
path = ''
config = StubConfig()
def get_vcs_info(self):
return None
class StubTagConf(object):
def __init__(self):
self.primary_images = []
self.unique_images = []
self.images = []
def set_images(self, images):
self.images = images
return self
| """
Copyright (c) 2018, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
class Stubconfig(object):
image_build_method = None
release_env_var = None
class Stubsource(object):
dockerfile_path = None
path = ''
config = stub_config()
def get_vcs_info(self):
return None
class Stubtagconf(object):
def __init__(self):
self.primary_images = []
self.unique_images = []
self.images = []
def set_images(self, images):
self.images = images
return self |
class HaydiException(BaseException):
pass
class TimeoutException(HaydiException):
pass
| class Haydiexception(BaseException):
pass
class Timeoutexception(HaydiException):
pass |
"""
SimPy's monitoring capabilities will be added in version 3.1.
"""
| """
SimPy's monitoring capabilities will be added in version 3.1.
""" |
#map(funcao, *sequencia de args) --> Object map
def qua(x): return x**2
mapa = map(qua, [1, 2, 3, 4, 5])
listmap = list(map(qua, [1, 2, 3, 4, 5]))
ran = tuple(map(qua, range(10)))
lamb = list(map(lambda x: x**3, range(10)))
print(f'''
map(...) = {mapa}\n
list(map(...)) = {listmap}\n
tuple(map(..., range(10))) = {ran}\n
map(funcao lambda, ...) = {lamb}\n
''')
| def qua(x):
return x ** 2
mapa = map(qua, [1, 2, 3, 4, 5])
listmap = list(map(qua, [1, 2, 3, 4, 5]))
ran = tuple(map(qua, range(10)))
lamb = list(map(lambda x: x ** 3, range(10)))
print(f'\nmap(...) = {mapa}\n\nlist(map(...)) = {listmap}\n\ntuple(map(..., range(10))) = {ran}\n\nmap(funcao lambda, ...) = {lamb}\n\n ') |
# Your Romeo API key, required for accessing the FACT API
# override this in your local config
ROMEO_API_KEY = ""
# Base URL for requests against the FACT API
FACT_BASE_URL = "http://www.sherpa.ac.uk/fact/api-beta"
CLIENTJS_FACT_PROXY_ENDPOINT = "/fact"
| romeo_api_key = ''
fact_base_url = 'http://www.sherpa.ac.uk/fact/api-beta'
clientjs_fact_proxy_endpoint = '/fact' |
class AssignmentCode:
def __init__(self,var,left,op=None,right=None):
self.var = var
self.left = left
self.op = op
self.right = right
def __str__(self):
if(self.op==None):
return f'{self.var} = {self.left}'
return f'{self.var} = {self.left}{self.op}{self.right}'
class ChangeCode:
def __init__(self,var,op,right):
self.var = var
self.op = op
self.right = right
def __str__(self):
return f'{self.var} {self.op}= {self.right}'
class JumbCode:
def __init__(self,dist):
self.dist = dist
def __str__(self):
return f"GOTO({self.dist})"
class LabelCode:
def __init__(self,label):
self.label = label
def __str__(self):
return f'{self.label} : '
class DeclareCode:
def __init__(self,name,bytes):
self.name=name
self.bytes = bytes
def __str__(self):
return f'Declare {self.name} {self.bytes} bytes'
class CompareCode:
def __init__(self,left,operation,right,jump):
self.left = left
self.operation = operation
self.right = right
self.jump = jump
def __str__(self):
return f"if {self.left}{self.operation}{self.right} GOTO({self.jump})"
class PrintCode:
def __init__(self,type,value):
self.type=type
self.value=value
def __str__(self):
return f'print_{self.type} {self.value}'
class InterCodeArray:
def __init__(self):
self.code=[]
def append(self,n):
self.code.append(n)
def push(self):
pass
def print_extra(self):
for i in self.code:
print(i)
def combine_next(self,i):
if(i+1<len(self.code)):
s = self.code.pop(i+1)
self.code[i].str_rep += s.str_rep
self.code[i].type = s.type
| class Assignmentcode:
def __init__(self, var, left, op=None, right=None):
self.var = var
self.left = left
self.op = op
self.right = right
def __str__(self):
if self.op == None:
return f'{self.var} = {self.left}'
return f'{self.var} = {self.left}{self.op}{self.right}'
class Changecode:
def __init__(self, var, op, right):
self.var = var
self.op = op
self.right = right
def __str__(self):
return f'{self.var} {self.op}= {self.right}'
class Jumbcode:
def __init__(self, dist):
self.dist = dist
def __str__(self):
return f'GOTO({self.dist})'
class Labelcode:
def __init__(self, label):
self.label = label
def __str__(self):
return f'{self.label} : '
class Declarecode:
def __init__(self, name, bytes):
self.name = name
self.bytes = bytes
def __str__(self):
return f'Declare {self.name} {self.bytes} bytes'
class Comparecode:
def __init__(self, left, operation, right, jump):
self.left = left
self.operation = operation
self.right = right
self.jump = jump
def __str__(self):
return f'if {self.left}{self.operation}{self.right} GOTO({self.jump})'
class Printcode:
def __init__(self, type, value):
self.type = type
self.value = value
def __str__(self):
return f'print_{self.type} {self.value}'
class Intercodearray:
def __init__(self):
self.code = []
def append(self, n):
self.code.append(n)
def push(self):
pass
def print_extra(self):
for i in self.code:
print(i)
def combine_next(self, i):
if i + 1 < len(self.code):
s = self.code.pop(i + 1)
self.code[i].str_rep += s.str_rep
self.code[i].type = s.type |
# -*- coding: utf-8 -*-
class Animal:
pass
class Dog(Animal):
def __init__(self,name):
self.name=name
class Cat(Animal):
def __init__(self,name):
self.name=name
class Person:
def __init__(self,name):
self.name=name
self.pet=None
class Employee(Person):
def __init__(self,name,salary):
super(Employee, self).__init__(name)
self.salary=salary
if __name__=="__main__":
dog_rover=Dog("Rover")
cat_satan=Cat("Satan")
mary=Person("Mary")
mary.pet=cat_satan
frank=Employee("Frank",200000) | class Animal:
pass
class Dog(Animal):
def __init__(self, name):
self.name = name
class Cat(Animal):
def __init__(self, name):
self.name = name
class Person:
def __init__(self, name):
self.name = name
self.pet = None
class Employee(Person):
def __init__(self, name, salary):
super(Employee, self).__init__(name)
self.salary = salary
if __name__ == '__main__':
dog_rover = dog('Rover')
cat_satan = cat('Satan')
mary = person('Mary')
mary.pet = cat_satan
frank = employee('Frank', 200000) |
SEARCH_PARAMS = {
"Sect1": "PTO2",
"Sect2": "HITOFF",
"u": "/netahtml/PTO/search-adv.htm",
"r": "0",
"p": "1",
"f": "S",
"l": "50",
"Query": "",
"d": "PTXT",
}
SEARCH_FIELDS = {
"patent_number": "PN",
"issue_date": "ISD",
"title": "TTL",
"abstract": "ABST",
"claims": "ACLM",
"specification": "SPEC",
"current_us_classification": "CCL",
"current_cpc_classification": "CPC",
"current_cpc_classification_class": "CPCL",
"international_classification": "ICL",
"application_serial_number": "APN",
"application_date": "APD",
"application_type": "APT",
"government_interest": "GOVT",
"patent_family_id": "FMID",
"parent_case_information": "PARN",
"related_us_app._data": "RLAP",
"related_application_filing_date": "RLFD",
"foreign_priority": "PRIR",
"priority_filing_date": "PRAD",
"pct_information": "PCT",
"pct_filing_date": "PTAD",
"pct_national_stage_filing_date": "PT3D",
"prior_published_document_date": "PPPD",
"reissue_data": "REIS",
"reissued_patent_application_filing_date": "RPAF",
"130_b_affirmation_flag": "AFFF",
"130_b_affirmation_statement": "AFFT",
"inventor_name": "IN",
"inventor_city": "IC",
"inventor_state": "IS",
"inventor_country": "ICN",
"applicant_name": "AANM",
"applicant_city": "AACI",
"applicant_state": "AAST",
"applicant_country": "AACO",
"applicant_type": "AAAT",
"attorney_or_agent": "LREP",
"assignee_name": "AN",
"assignee_city": "AC",
"assignee_state": "AS",
"assignee_country": "ACN",
"primary_examiner": "EXP",
"assistant_examiner": "EXA",
"referenced_by": "REF",
"foreign_references": "FREF",
"other_references": "OREF",
"certificate_of_correction": "COFC",
"reexamination_certificate": "REEX",
"ptab_trial_certificate": "PTAB",
"supplemental_exam_certificate": "SEC",
"international_registration_number": "ILRN",
"international_registration_date": "ILRD",
"international_registration_publication_date": "ILPD",
"hague_international_filing_date": "ILFD",
}
SEARCH_PARAMS = {
"Sect1": "PTO2",
"Sect2": "HITOFF",
"u": "/netahtml/PTO/search-adv.htm",
"r": "0",
"p": "1",
"f": "S",
"l": "50",
"Query": "",
"d": "PTXT",
}
SEARCH_URL = "https://patft.uspto.gov/netacgi/nph-Parser"
PUBLICATION_URL = (
"https://patft.uspto.gov/netacgi/nph-Parser?"
"Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&"
"u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1={publication_number}.PN.&"
"OS=PN/{publication_number}&RS=PN/{publication_number}"
)
| search_params = {'Sect1': 'PTO2', 'Sect2': 'HITOFF', 'u': '/netahtml/PTO/search-adv.htm', 'r': '0', 'p': '1', 'f': 'S', 'l': '50', 'Query': '', 'd': 'PTXT'}
search_fields = {'patent_number': 'PN', 'issue_date': 'ISD', 'title': 'TTL', 'abstract': 'ABST', 'claims': 'ACLM', 'specification': 'SPEC', 'current_us_classification': 'CCL', 'current_cpc_classification': 'CPC', 'current_cpc_classification_class': 'CPCL', 'international_classification': 'ICL', 'application_serial_number': 'APN', 'application_date': 'APD', 'application_type': 'APT', 'government_interest': 'GOVT', 'patent_family_id': 'FMID', 'parent_case_information': 'PARN', 'related_us_app._data': 'RLAP', 'related_application_filing_date': 'RLFD', 'foreign_priority': 'PRIR', 'priority_filing_date': 'PRAD', 'pct_information': 'PCT', 'pct_filing_date': 'PTAD', 'pct_national_stage_filing_date': 'PT3D', 'prior_published_document_date': 'PPPD', 'reissue_data': 'REIS', 'reissued_patent_application_filing_date': 'RPAF', '130_b_affirmation_flag': 'AFFF', '130_b_affirmation_statement': 'AFFT', 'inventor_name': 'IN', 'inventor_city': 'IC', 'inventor_state': 'IS', 'inventor_country': 'ICN', 'applicant_name': 'AANM', 'applicant_city': 'AACI', 'applicant_state': 'AAST', 'applicant_country': 'AACO', 'applicant_type': 'AAAT', 'attorney_or_agent': 'LREP', 'assignee_name': 'AN', 'assignee_city': 'AC', 'assignee_state': 'AS', 'assignee_country': 'ACN', 'primary_examiner': 'EXP', 'assistant_examiner': 'EXA', 'referenced_by': 'REF', 'foreign_references': 'FREF', 'other_references': 'OREF', 'certificate_of_correction': 'COFC', 'reexamination_certificate': 'REEX', 'ptab_trial_certificate': 'PTAB', 'supplemental_exam_certificate': 'SEC', 'international_registration_number': 'ILRN', 'international_registration_date': 'ILRD', 'international_registration_publication_date': 'ILPD', 'hague_international_filing_date': 'ILFD'}
search_params = {'Sect1': 'PTO2', 'Sect2': 'HITOFF', 'u': '/netahtml/PTO/search-adv.htm', 'r': '0', 'p': '1', 'f': 'S', 'l': '50', 'Query': '', 'd': 'PTXT'}
search_url = 'https://patft.uspto.gov/netacgi/nph-Parser'
publication_url = 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1={publication_number}.PN.&OS=PN/{publication_number}&RS=PN/{publication_number}' |
class Params:
DATA_PATH = '../data/mimic-iii-clinical-database-1.4/NOTEEVENTS.csv'
# Table attributes
HADM_ID_STR = 'HADM_ID'
CATEGORY_STR = 'CATEGORY'
DESCRIPTION_STR = 'DESCRIPTION'
TEXT_STR = 'TEXT'
STORETIME_STR = 'STORETIME'
# Category attribute - table values
DISCHARGE_SUMMARY_CATEGORY_VALUE_STR = 'Discharge summary'
ECHO_CATEGORY_VALUE_STR = 'Echo'
ECG_CATEGORY_VALUE_STR = 'ECG'
NURSING_CATEGORY_VALUE_STR = 'Nursing'
PHYSICIAN_CATEGORY_VALUE_STR = 'Physician '
REHAB_SERVICES_CATEGORY_VALUE_STR = 'Rehab Services'
CASE_MANAGEMENT_CATEGORY_VALUE_STR = 'Case Management '
RESPIRATORY_CATEGORY_VALUE_STR = 'Respiratory '
NUTRITION_CATEGORY_VALUE_STR = 'Nutrition'
GENERAL_CATEGORY_VALUE_STR = 'General'
SOCIAL_WORK_CATEGORY_VALUE_STR = 'Social Work'
PHARMACY_CATEGORY_VALUE_STR = 'Pharmacy'
CONSULT_CATEGORY_VALUE_STR = 'Consult'
RADIOLOGY_CATEGORY_VALUE_STR = 'Radiology'
NURSING_OTHER_CATEGORY_VALUE_STR = 'Nursing/other'
OTHER_VALUES_CATEGORY_STR_LIST = ['Echo', 'ECG', 'Nursing', 'Physician ', 'Rehab Services',
'Case Management ', 'Respiratory ', 'Nutrition', 'General', 'Social Work',
'Pharmacy', 'Consult', 'Radiology', 'Nursing/other']
| class Params:
data_path = '../data/mimic-iii-clinical-database-1.4/NOTEEVENTS.csv'
hadm_id_str = 'HADM_ID'
category_str = 'CATEGORY'
description_str = 'DESCRIPTION'
text_str = 'TEXT'
storetime_str = 'STORETIME'
discharge_summary_category_value_str = 'Discharge summary'
echo_category_value_str = 'Echo'
ecg_category_value_str = 'ECG'
nursing_category_value_str = 'Nursing'
physician_category_value_str = 'Physician '
rehab_services_category_value_str = 'Rehab Services'
case_management_category_value_str = 'Case Management '
respiratory_category_value_str = 'Respiratory '
nutrition_category_value_str = 'Nutrition'
general_category_value_str = 'General'
social_work_category_value_str = 'Social Work'
pharmacy_category_value_str = 'Pharmacy'
consult_category_value_str = 'Consult'
radiology_category_value_str = 'Radiology'
nursing_other_category_value_str = 'Nursing/other'
other_values_category_str_list = ['Echo', 'ECG', 'Nursing', 'Physician ', 'Rehab Services', 'Case Management ', 'Respiratory ', 'Nutrition', 'General', 'Social Work', 'Pharmacy', 'Consult', 'Radiology', 'Nursing/other'] |
class MockError(object):
def __init__(self, status, reason):
self.status = status
self.reason = reason
self.extra = {'retry_after': 9, 'retry_limit': 10}
def resolve_submitted(error_message, name):
return MockError('submitted', 'a reason')
def resolve_unavailable(error_message, name):
return MockError('unavailable', 'a reason')
def resolve_retry(error_message, name):
return MockError('retry', 'a reason')
| class Mockerror(object):
def __init__(self, status, reason):
self.status = status
self.reason = reason
self.extra = {'retry_after': 9, 'retry_limit': 10}
def resolve_submitted(error_message, name):
return mock_error('submitted', 'a reason')
def resolve_unavailable(error_message, name):
return mock_error('unavailable', 'a reason')
def resolve_retry(error_message, name):
return mock_error('retry', 'a reason') |
"""
Module to allow for the details on the extension to be encapsulated.
"""
# pylint: disable=too-many-instance-attributes
class ExtensionDetails:
"""
Class to allow for the details on the extension to be encapsulated.
"""
# pylint: disable=too-many-arguments
def __init__(
self,
extension_id,
extension_name,
extension_description,
extension_enabled_by_default,
extension_version,
extension_interface_version,
extension_url=None,
extension_configuration=None,
):
(
self.__extension_id,
self.__extension_name,
self.__extension_description,
self.__extension_enabled_by_default,
self.__extension_version,
self.__extension_interface_version,
self.__extension_url,
self.__extension_configuration,
) = (
extension_id,
extension_name,
extension_description,
extension_enabled_by_default,
extension_version,
extension_interface_version,
extension_url,
extension_configuration,
)
# pylint: enable=too-many-arguments
@property
def extension_id(self):
"""
Property to get the id of the extension.
"""
return self.__extension_id
@property
def extension_name(self):
"""
Property to get the name of the extension.
"""
return self.__extension_name
@property
def extension_description(self):
"""
Property to get the short description of the extension.
"""
return self.__extension_description
@property
def extension_enabled_by_default(self):
"""
Property to get whether the extension is enabled by default.
"""
return self.__extension_enabled_by_default
@property
def extension_version(self):
"""
Property to get the version of the extension.
"""
return self.__extension_version
@property
def extension_interface_version(self):
"""
Property to get the interface version of the extension.
"""
return self.__extension_interface_version
@property
def extension_url(self):
"""
Property to get the optional url for the extension.
"""
return self.__extension_url
@property
def extension_configuration(self):
"""
Property to get the optional configuration items for the extension.
"""
return self.__extension_configuration
# pylint: enable=too-many-instance-attributes
| """
Module to allow for the details on the extension to be encapsulated.
"""
class Extensiondetails:
"""
Class to allow for the details on the extension to be encapsulated.
"""
def __init__(self, extension_id, extension_name, extension_description, extension_enabled_by_default, extension_version, extension_interface_version, extension_url=None, extension_configuration=None):
(self.__extension_id, self.__extension_name, self.__extension_description, self.__extension_enabled_by_default, self.__extension_version, self.__extension_interface_version, self.__extension_url, self.__extension_configuration) = (extension_id, extension_name, extension_description, extension_enabled_by_default, extension_version, extension_interface_version, extension_url, extension_configuration)
@property
def extension_id(self):
"""
Property to get the id of the extension.
"""
return self.__extension_id
@property
def extension_name(self):
"""
Property to get the name of the extension.
"""
return self.__extension_name
@property
def extension_description(self):
"""
Property to get the short description of the extension.
"""
return self.__extension_description
@property
def extension_enabled_by_default(self):
"""
Property to get whether the extension is enabled by default.
"""
return self.__extension_enabled_by_default
@property
def extension_version(self):
"""
Property to get the version of the extension.
"""
return self.__extension_version
@property
def extension_interface_version(self):
"""
Property to get the interface version of the extension.
"""
return self.__extension_interface_version
@property
def extension_url(self):
"""
Property to get the optional url for the extension.
"""
return self.__extension_url
@property
def extension_configuration(self):
"""
Property to get the optional configuration items for the extension.
"""
return self.__extension_configuration |
with open("data.txt", 'w') as f:
f.write("2 10 1 2 10\n")
f.writelines(["1 2 1\n" for i in range(5)] + ["2 1 1\n" for i in range(5)])
# f.write("1 2 2\n")
| with open('data.txt', 'w') as f:
f.write('2 10 1 2 10\n')
f.writelines(['1 2 1\n' for i in range(5)] + ['2 1 1\n' for i in range(5)]) |
test = {
'name': 'Problem 1',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> ps = ['short', 'really long', 'tiny']
>>> s = lambda p: len(p) <= 5
>>> choose(ps, s, 0)
'short'
>>> choose(ps, s, 1)
'tiny'
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
>>> from typing import choose
""",
'teardown': '',
'type': 'doctest'
},
{
'cases': [
{
'code': r"""
>>> ps = ['d', 'Njtv', 'Kxg', 'ym6bMNxUy', 'Lz']
>>> s = lambda p: p == 'Kxg' or p == 'Lz' or p == 'd'
>>> choose(ps, s, 0)
'd'
>>> choose(ps, s, 1)
'Kxg'
>>> choose(ps, s, 2)
'Lz'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['pVasJy', 'ZD', 'toNG']
>>> s = lambda p: p == 'ZD' or p == 'pVasJy' or p == 'toNG'
>>> choose(ps, s, 0)
'pVasJy'
>>> choose(ps, s, 1)
'ZD'
>>> choose(ps, s, 2)
'toNG'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['JlY3CIaa', '1fMO0', 'pe', 'Q6F4bbNP5J']
>>> s = lambda p: p == '1fMO0' or p == 'pe'
>>> choose(ps, s, 0)
'1fMO0'
>>> choose(ps, s, 1)
'pe'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['o', '1m5Q']
>>> s = lambda p: p == '1m5Q'
>>> choose(ps, s, 0)
'1m5Q'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['eV0dmK0', 'opuJ6xpn1', 'WXfPJa', 'EaXYKI']
>>> s = lambda p: p == 'WXfPJa' or p == 'opuJ6xpn1'
>>> choose(ps, s, 0)
'opuJ6xpn1'
>>> choose(ps, s, 1)
'WXfPJa'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['jakYR6', '7c5IJE7d', 'UJu', 'YB', '6bKkwROlcZ', 'G', 'aMtUQZ4']
>>> s = lambda p: p == 'G' or p == 'UJu'
>>> choose(ps, s, 0)
'UJu'
>>> choose(ps, s, 1)
'G'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['RnW', 'itFiAc40d', 'e']
>>> s = lambda p: p == 'RnW' or p == 'e' or p == 'itFiAc40d'
>>> choose(ps, s, 0)
'RnW'
>>> choose(ps, s, 1)
'itFiAc40d'
>>> choose(ps, s, 2)
'e'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Tl4qyDvUzq', '219tHOGK77', 'gvFnh4ypPs', '2plMVD5bF', 'Sy9ydsV', 'QmMJ']
>>> s = lambda p: p == '2plMVD5bF' or p == 'QmMJ' or p == 'Sy9ydsV' or p == 'gvFnh4ypPs'
>>> choose(ps, s, 0)
'gvFnh4ypPs'
>>> choose(ps, s, 1)
'2plMVD5bF'
>>> choose(ps, s, 2)
'Sy9ydsV'
>>> choose(ps, s, 3)
'QmMJ'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['k2RL9', 'cBtzx1ZUu', 'DdJNjj', 'xdUAYSdFjk', 'N9vHSIIy', 'fO', 'alIf1', 'i']
>>> s = lambda p: p == 'DdJNjj' or p == 'N9vHSIIy' or p == 'alIf1' or p == 'cBtzx1ZUu' or p == 'k2RL9'
>>> choose(ps, s, 0)
'k2RL9'
>>> choose(ps, s, 1)
'cBtzx1ZUu'
>>> choose(ps, s, 2)
'DdJNjj'
>>> choose(ps, s, 3)
'N9vHSIIy'
>>> choose(ps, s, 4)
'alIf1'
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['WzdN8', 'YEDX', 'sr', '9cfLm']
>>> s = lambda p: p == 'YEDX' or p == 'sr'
>>> choose(ps, s, 0)
'YEDX'
>>> choose(ps, s, 1)
'sr'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['NlwErghs', 'XPDU', 'jzYGBj', 'P6', 'w']
>>> s = lambda p: p == 'NlwErghs'
>>> choose(ps, s, 0)
'NlwErghs'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['dZi4B', 'Gtihxn6r', '03alCKzGQ', 'CusewJ6', 'hi9n', 'aipp1l', 'NCTAk', 'UXBZJ']
>>> s = lambda p: p == '03alCKzGQ' or p == 'NCTAk' or p == 'dZi4B' or p == 'hi9n'
>>> choose(ps, s, 0)
'dZi4B'
>>> choose(ps, s, 1)
'03alCKzGQ'
>>> choose(ps, s, 2)
'hi9n'
>>> choose(ps, s, 3)
'NCTAk'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Txb', 'Q1WE7qA', '6XQj', 'gMNin4hq4w', 'pziJgrhuz', '8q4', 'Txy']
>>> s = lambda p: p == 'gMNin4hq4w' or p == 'pziJgrhuz'
>>> choose(ps, s, 0)
'gMNin4hq4w'
>>> choose(ps, s, 1)
'pziJgrhuz'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['HL5xB', 'Z1', 'Zw2hPXj2', 't', 'Kru1WdQbu', 'eqWVk', 'EBRFugj8B', 'tmsX', 'HRd']
>>> s = lambda p: p == 'EBRFugj8B' or p == 'Kru1WdQbu' or p == 't'
>>> choose(ps, s, 0)
't'
>>> choose(ps, s, 1)
'Kru1WdQbu'
>>> choose(ps, s, 2)
'EBRFugj8B'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['fgdI', 'O8HCeAG4TZ', '1fHh9Ei2uh', 'vBSd']
>>> s = lambda p: p == '1fHh9Ei2uh' or p == 'vBSd'
>>> choose(ps, s, 0)
'1fHh9Ei2uh'
>>> choose(ps, s, 1)
'vBSd'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['thvLCiRUaO', 'MzkZ', '7xG', 'AoGZ', 'HS75YTP']
>>> s = lambda p: p == '7xG' or p == 'AoGZ' or p == 'HS75YTP' or p == 'MzkZ'
>>> choose(ps, s, 0)
'MzkZ'
>>> choose(ps, s, 1)
'7xG'
>>> choose(ps, s, 2)
'AoGZ'
>>> choose(ps, s, 3)
'HS75YTP'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['uT5', 'KPeXYnET', 'IJjA3A2w']
>>> s = lambda p: p == 'KPeXYnET'
>>> choose(ps, s, 0)
'KPeXYnET'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Uq98V6O', 'k', 'EgT1EpPM']
>>> s = lambda p: p == 'Uq98V6O' or p == 'k'
>>> choose(ps, s, 0)
'Uq98V6O'
>>> choose(ps, s, 1)
'k'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Pc', 'CoL', 'KFDY8UD', 'HmG', 'qciZ9kWAB4', 'bafyIpd8U', 'Rtygug']
>>> s = lambda p: p == 'CoL'
>>> choose(ps, s, 0)
'CoL'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['TjK2nv', 'JT', '6izv', 'wqzU3L', 'fg']
>>> s = lambda p: p == 'wqzU3L'
>>> choose(ps, s, 0)
'wqzU3L'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['TfV7QdkY', 'Bzd9osf6er', 'EydfOK', '3y', 'sH', 'h1', '0', 'rD']
>>> s = lambda p: p == '0' or p == 'rD'
>>> choose(ps, s, 0)
'0'
>>> choose(ps, s, 1)
'rD'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['R0P', 'm', 'jsehdWm', '0TWTsZ', 'hA', 'UD', 'kuQb', 'uqQYCAx0', 'c']
>>> s = lambda p: p == 'UD' or p == 'c' or p == 'kuQb' or p == 'm'
>>> choose(ps, s, 0)
'm'
>>> choose(ps, s, 1)
'UD'
>>> choose(ps, s, 2)
'kuQb'
>>> choose(ps, s, 3)
'c'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['PkmOH', 'NG6HAJ', 'YysuECiszy', 'Q7CysdSt']
>>> s = lambda p: p == 'PkmOH'
>>> choose(ps, s, 0)
'PkmOH'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['BJ5gtIY', 'MuR', 'aKTPcHm']
>>> s = lambda p: p == 'BJ5gtIY' or p == 'aKTPcHm'
>>> choose(ps, s, 0)
'BJ5gtIY'
>>> choose(ps, s, 1)
'aKTPcHm'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Mbkg9g', 'MlYvYYZ', 'mDj', 'if01', 'Rp', '4sznEC', 'vgKWOAEfpL']
>>> s = lambda p: p == 'Mbkg9g' or p == 'MlYvYYZ' or p == 'if01' or p == 'mDj'
>>> choose(ps, s, 0)
'Mbkg9g'
>>> choose(ps, s, 1)
'MlYvYYZ'
>>> choose(ps, s, 2)
'mDj'
>>> choose(ps, s, 3)
'if01'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['tfKtKfC', 'tm', 'h0qDaxp', '9dqW', 'u0L44Wr15j', 'oHeqKhx', '9wIE2qBV']
>>> s = lambda p: p == '9dqW' or p == 'h0qDaxp' or p == 'oHeqKhx' or p == 'tfKtKfC'
>>> choose(ps, s, 0)
'tfKtKfC'
>>> choose(ps, s, 1)
'h0qDaxp'
>>> choose(ps, s, 2)
'9dqW'
>>> choose(ps, s, 3)
'oHeqKhx'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['rJhT7WL', '1nLtR']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['8Kb9Df']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['OwEteuQk7', 'w8L6', 'O8rZO7QEDH', 'yqJND8', 'xi', 'x']
>>> s = lambda p: p == 'O8rZO7QEDH' or p == 'OwEteuQk7' or p == 'w8L6' or p == 'x' or p == 'xi'
>>> choose(ps, s, 0)
'OwEteuQk7'
>>> choose(ps, s, 1)
'w8L6'
>>> choose(ps, s, 2)
'O8rZO7QEDH'
>>> choose(ps, s, 3)
'xi'
>>> choose(ps, s, 4)
'x'
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['3pLPrqWRU', '2tVwTl', 'h3', 'h', 'GKsxvci', 'MMKb17']
>>> s = lambda p: p == '2tVwTl' or p == 'GKsxvci' or p == 'h3'
>>> choose(ps, s, 0)
'2tVwTl'
>>> choose(ps, s, 1)
'h3'
>>> choose(ps, s, 2)
'GKsxvci'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Yj3eX']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['dnln', 'rAgVI']
>>> s = lambda p: p == 'dnln'
>>> choose(ps, s, 0)
'dnln'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Lz', 'v3KeV', 'lIH', 'WlHz', 'FT', 'zyTMZqx', 'AU6D', 'f5h', '0N2h']
>>> s = lambda p: p == '0N2h' or p == 'AU6D' or p == 'FT' or p == 'Lz' or p == 'WlHz' or p == 'f5h' or p == 'lIH' or p == 'zyTMZqx'
>>> choose(ps, s, 0)
'Lz'
>>> choose(ps, s, 1)
'lIH'
>>> choose(ps, s, 2)
'WlHz'
>>> choose(ps, s, 3)
'FT'
>>> choose(ps, s, 4)
'zyTMZqx'
>>> choose(ps, s, 5)
'AU6D'
>>> choose(ps, s, 6)
'f5h'
>>> choose(ps, s, 7)
'0N2h'
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['784e1Zw5D', 'loszSdL', 'Doljlq87', '7bs1Cavy', 'islC1Zr3pd', 'vC6voVbml', 'NlATIbqbqH']
>>> s = lambda p: p == '784e1Zw5D' or p == 'vC6voVbml'
>>> choose(ps, s, 0)
'784e1Zw5D'
>>> choose(ps, s, 1)
'vC6voVbml'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Gxe', 'aLFptpZ', 'mTk0PqgvEd']
>>> s = lambda p: p == 'mTk0PqgvEd'
>>> choose(ps, s, 0)
'mTk0PqgvEd'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['R', 's5w']
>>> s = lambda p: p == 'R' or p == 's5w'
>>> choose(ps, s, 0)
'R'
>>> choose(ps, s, 1)
's5w'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['56ymnsoou', '3SR1BSp9', 'lnDFUseC', 'XX', '5qPAWcVr', 'MagSw', 'OM2']
>>> s = lambda p: p == '56ymnsoou' or p == 'MagSw' or p == 'lnDFUseC'
>>> choose(ps, s, 0)
'56ymnsoou'
>>> choose(ps, s, 1)
'lnDFUseC'
>>> choose(ps, s, 2)
'MagSw'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['5NB7WkerdL', 'DM7ElcD8', 'Z0jxaWrO']
>>> s = lambda p: p == '5NB7WkerdL' or p == 'DM7ElcD8'
>>> choose(ps, s, 0)
'5NB7WkerdL'
>>> choose(ps, s, 1)
'DM7ElcD8'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['dN']
>>> s = lambda p: p == 'dN'
>>> choose(ps, s, 0)
'dN'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['qIe9AKgG', '32', 'L3BZo7']
>>> s = lambda p: p == '32'
>>> choose(ps, s, 0)
'32'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['6rC', 'i', 'ShmGuRlD', 'auTCnLV9N', 'eUm', '3LWePKqsLE', 'UJWaX5', 'YHWXmg8ZKJ']
>>> s = lambda p: p == 'YHWXmg8ZKJ' or p == 'eUm'
>>> choose(ps, s, 0)
'eUm'
>>> choose(ps, s, 1)
'YHWXmg8ZKJ'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['rdDBdH1Z2', '4vNQk', 'D9']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['7nb', 'ct0', 'vnXAZmXa', 'Kk']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['nt', 'Kh']
>>> s = lambda p: p == 'nt'
>>> choose(ps, s, 0)
'nt'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['D18', 'cDr', '4tqx', 'T4cu', 'rSMQ', 'QOVBeZ', 'LJEhyyV', 'nN4L', 'sh8yGSN0']
>>> s = lambda p: p == '4tqx'
>>> choose(ps, s, 0)
'4tqx'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['U', 'E', 'xpSt3', 'IBTIrxBn', 'x', '5NHXIC', 'bevi8', 'H2J']
>>> s = lambda p: p == '5NHXIC' or p == 'E' or p == 'H2J' or p == 'IBTIrxBn' or p == 'bevi8' or p == 'x' or p == 'xpSt3'
>>> choose(ps, s, 0)
'E'
>>> choose(ps, s, 1)
'xpSt3'
>>> choose(ps, s, 2)
'IBTIrxBn'
>>> choose(ps, s, 3)
'x'
>>> choose(ps, s, 4)
'5NHXIC'
>>> choose(ps, s, 5)
'bevi8'
>>> choose(ps, s, 6)
'H2J'
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['zKnSYBGR']
>>> s = lambda p: p == 'zKnSYBGR'
>>> choose(ps, s, 0)
'zKnSYBGR'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['qWQ5R', 'itUa']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['vyc99h', 'C2Fb']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['VVfHQc', '3tphSDJHW']
>>> s = lambda p: p == 'VVfHQc'
>>> choose(ps, s, 0)
'VVfHQc'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['6fZ69QtrT', 'w', 'Mj', 'm9Q3q7', 'e8', 'oT91rDgCkf', 'Ku3YY', '1kR7E7o']
>>> s = lambda p: p == '1kR7E7o' or p == '6fZ69QtrT' or p == 'm9Q3q7' or p == 'oT91rDgCkf'
>>> choose(ps, s, 0)
'6fZ69QtrT'
>>> choose(ps, s, 1)
'm9Q3q7'
>>> choose(ps, s, 2)
'oT91rDgCkf'
>>> choose(ps, s, 3)
'1kR7E7o'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['P0GxoIDZ', '1ea7Auf6yr', '4GXri', 'KFEjSWJGo9', 'G4CRHYUS']
>>> s = lambda p: p == '1ea7Auf6yr' or p == 'G4CRHYUS'
>>> choose(ps, s, 0)
'1ea7Auf6yr'
>>> choose(ps, s, 1)
'G4CRHYUS'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['WYDL4w', 'h3X', 'eTzA8ZVto']
>>> s = lambda p: p == 'h3X'
>>> choose(ps, s, 0)
'h3X'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['uSdsnZX', 'sm', 'IhETqbyq', 'YyWmeW']
>>> s = lambda p: p == 'uSdsnZX'
>>> choose(ps, s, 0)
'uSdsnZX'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['newpDoQ']
>>> s = lambda p: p == 'newpDoQ'
>>> choose(ps, s, 0)
'newpDoQ'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['39cz9', 'aF4UgswU7', 'nmLtF3C74t', 'O5zVDC0Qk', 'raNMI', 'Ww']
>>> s = lambda p: p == '39cz9' or p == 'nmLtF3C74t' or p == 'raNMI'
>>> choose(ps, s, 0)
'39cz9'
>>> choose(ps, s, 1)
'nmLtF3C74t'
>>> choose(ps, s, 2)
'raNMI'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['cGYgMJ']
>>> s = lambda p: p == 'cGYgMJ'
>>> choose(ps, s, 0)
'cGYgMJ'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Z6sMzUpX', 'bjZrla', 'd592KutV', 'u9ePqq']
>>> s = lambda p: p == 'Z6sMzUpX' or p == 'bjZrla'
>>> choose(ps, s, 0)
'Z6sMzUpX'
>>> choose(ps, s, 1)
'bjZrla'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['CPkMCFSlI', 'hN', '36fjymO']
>>> s = lambda p: p == 'CPkMCFSlI' or p == 'hN'
>>> choose(ps, s, 0)
'CPkMCFSlI'
>>> choose(ps, s, 1)
'hN'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['0chTifN', 'zwzztDjl9J', 'sibJYXU3', 'FRBno3fxQ']
>>> s = lambda p: p == '0chTifN' or p == 'sibJYXU3' or p == 'zwzztDjl9J'
>>> choose(ps, s, 0)
'0chTifN'
>>> choose(ps, s, 1)
'zwzztDjl9J'
>>> choose(ps, s, 2)
'sibJYXU3'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['RyrvEszDL', 'OX', 'l41oGb51', 'K6', 'miYmytdkh0']
>>> s = lambda p: p == 'miYmytdkh0'
>>> choose(ps, s, 0)
'miYmytdkh0'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['x9', '1mTh6V', 'EtQTYbRs']
>>> s = lambda p: p == '1mTh6V' or p == 'EtQTYbRs'
>>> choose(ps, s, 0)
'1mTh6V'
>>> choose(ps, s, 1)
'EtQTYbRs'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['4iYIAlSlO', 'XmrFk', 'k', 'kmX', 'Wkc5VlUZ']
>>> s = lambda p: p == 'Wkc5VlUZ' or p == 'XmrFk' or p == 'kmX'
>>> choose(ps, s, 0)
'XmrFk'
>>> choose(ps, s, 1)
'kmX'
>>> choose(ps, s, 2)
'Wkc5VlUZ'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['dtrqh', 'lw8BciizM', 'HyveF', 'lLhw', 'jZZsxtz', 'fzTVyZ7SA4']
>>> s = lambda p: p == 'HyveF' or p == 'dtrqh' or p == 'lw8BciizM'
>>> choose(ps, s, 0)
'dtrqh'
>>> choose(ps, s, 1)
'lw8BciizM'
>>> choose(ps, s, 2)
'HyveF'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['9', '2V', 'RApekvN', 'ar6mBR2', 'F0IIQe6', 'tSrWV', 'gWjCn4j']
>>> s = lambda p: p == '9' or p == 'RApekvN'
>>> choose(ps, s, 0)
'9'
>>> choose(ps, s, 1)
'RApekvN'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['k', 'Lhx', 'dV', 'qZs']
>>> s = lambda p: p == 'Lhx'
>>> choose(ps, s, 0)
'Lhx'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['AXNQUf', 'kkjB', 'lGMF']
>>> s = lambda p: p == 'AXNQUf'
>>> choose(ps, s, 0)
'AXNQUf'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['H9SPZR', 'P6x9', '0x6iPT8Vp', 'bELQa', 'gDdF', 'd', 'PLlr39R', 'uB3C', 'J']
>>> s = lambda p: p == 'H9SPZR' or p == 'J' or p == 'P6x9' or p == 'PLlr39R' or p == 'bELQa' or p == 'gDdF'
>>> choose(ps, s, 0)
'H9SPZR'
>>> choose(ps, s, 1)
'P6x9'
>>> choose(ps, s, 2)
'bELQa'
>>> choose(ps, s, 3)
'gDdF'
>>> choose(ps, s, 4)
'PLlr39R'
>>> choose(ps, s, 5)
'J'
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Gbw', '5eTONy', 'r0AifHw', 'kDl', '6EQvhzS2', 'tzT5Qd0', 'Xt5LH']
>>> s = lambda p: p == 'kDl' or p == 'r0AifHw' or p == 'tzT5Qd0'
>>> choose(ps, s, 0)
'r0AifHw'
>>> choose(ps, s, 1)
'kDl'
>>> choose(ps, s, 2)
'tzT5Qd0'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['T', 'NHHbjxeyg']
>>> s = lambda p: p == 'T'
>>> choose(ps, s, 0)
'T'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['735kD', 'Cydsvguv3', 'aUd1Lh4qll', '2fr', 'orPUSE', 'daD', '9arD', 'YZK']
>>> s = lambda p: p == '735kD' or p == '9arD' or p == 'Cydsvguv3' or p == 'aUd1Lh4qll' or p == 'daD'
>>> choose(ps, s, 0)
'735kD'
>>> choose(ps, s, 1)
'Cydsvguv3'
>>> choose(ps, s, 2)
'aUd1Lh4qll'
>>> choose(ps, s, 3)
'daD'
>>> choose(ps, s, 4)
'9arD'
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['wTrS1wnYVc']
>>> s = lambda p: p == 'wTrS1wnYVc'
>>> choose(ps, s, 0)
'wTrS1wnYVc'
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['O2Z', 'kXg2S', 'iiSLscfD5', 'KQDBr6', 'iy', 'Wl5Y', 'd2K8NvD1d4', 'pTApHl3f', '7GLR9']
>>> s = lambda p: p == 'Wl5Y' or p == 'd2K8NvD1d4' or p == 'iiSLscfD5' or p == 'iy' or p == 'kXg2S' or p == 'pTApHl3f'
>>> choose(ps, s, 0)
'kXg2S'
>>> choose(ps, s, 1)
'iiSLscfD5'
>>> choose(ps, s, 2)
'iy'
>>> choose(ps, s, 3)
'Wl5Y'
>>> choose(ps, s, 4)
'd2K8NvD1d4'
>>> choose(ps, s, 5)
'pTApHl3f'
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
>>> choose(ps, s, 10)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['oM', 'zGYOgEw', 'ueeX', 'D9BVt', 'AAjYFErh4', 'JjCV', '3', '1d7hiLfH']
>>> s = lambda p: p == '1d7hiLfH' or p == 'AAjYFErh4' or p == 'oM'
>>> choose(ps, s, 0)
'oM'
>>> choose(ps, s, 1)
'AAjYFErh4'
>>> choose(ps, s, 2)
'1d7hiLfH'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['9', 'lFk']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['hDfoY', 'Gx5B', 'j4blx8g', '8KmJf6msa', 'un', 'R', 'onOdPr', 'ABRTPn']
>>> s = lambda p: p == 'ABRTPn' or p == 'hDfoY' or p == 'onOdPr' or p == 'un'
>>> choose(ps, s, 0)
'hDfoY'
>>> choose(ps, s, 1)
'un'
>>> choose(ps, s, 2)
'onOdPr'
>>> choose(ps, s, 3)
'ABRTPn'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['eR', 'i6Bgh134A7', 'DXuD34', 'Cx5jaMth', 'Md8', '4Pf7qA', 'zlrFFuA']
>>> s = lambda p: p == 'eR' or p == 'i6Bgh134A7' or p == 'zlrFFuA'
>>> choose(ps, s, 0)
'eR'
>>> choose(ps, s, 1)
'i6Bgh134A7'
>>> choose(ps, s, 2)
'zlrFFuA'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['M7lN', '2', 'slZI6', 'C', 'LirWSCzE7L', '76smbBkd9q', 'ahzd740']
>>> s = lambda p: p == 'C' or p == 'LirWSCzE7L' or p == 'M7lN' or p == 'ahzd740'
>>> choose(ps, s, 0)
'M7lN'
>>> choose(ps, s, 1)
'C'
>>> choose(ps, s, 2)
'LirWSCzE7L'
>>> choose(ps, s, 3)
'ahzd740'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['QHKeBnn', 'igEmIdOqfO', 'D1wLx76K', 'ggy', 'FW', 'akXSeF', 'PW', 'PmSZ']
>>> s = lambda p: p == 'QHKeBnn' or p == 'akXSeF'
>>> choose(ps, s, 0)
'QHKeBnn'
>>> choose(ps, s, 1)
'akXSeF'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
>>> choose(ps, s, 9)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['YVaXL', 'OUqqkf']
>>> s = lambda p: p == 'OUqqkf' or p == 'YVaXL'
>>> choose(ps, s, 0)
'YVaXL'
>>> choose(ps, s, 1)
'OUqqkf'
>>> choose(ps, s, 2)
''
>>> choose(ps, s, 3)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['WsEqFQV', 'H3kSFt', 'tFY']
>>> s = lambda p: p == 'H3kSFt' or p == 'WsEqFQV' or p == 'tFY'
>>> choose(ps, s, 0)
'WsEqFQV'
>>> choose(ps, s, 1)
'H3kSFt'
>>> choose(ps, s, 2)
'tFY'
>>> choose(ps, s, 3)
''
>>> choose(ps, s, 4)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['S2E6N']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = []
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['Tu6Em', 'HAsg4c', 'nB5LTvR4f5', 'zm', 'gV9jk', 'AqFELMW8g']
>>> s = lambda p: p == 'AqFELMW8g' or p == 'gV9jk' or p == 'nB5LTvR4f5' or p == 'zm'
>>> choose(ps, s, 0)
'nB5LTvR4f5'
>>> choose(ps, s, 1)
'zm'
>>> choose(ps, s, 2)
'gV9jk'
>>> choose(ps, s, 3)
'AqFELMW8g'
>>> choose(ps, s, 4)
''
>>> choose(ps, s, 5)
''
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['UawKAu']
>>> s = lambda p: False
>>> choose(ps, s, 0)
''
>>> choose(ps, s, 1)
''
>>> choose(ps, s, 2)
''
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> ps = ['XU9', 'ji0ux', 'N', 'V5jBALIgP', 'g6vdlQ', 'ARqJ', 'rqk58']
>>> s = lambda p: p == 'ARqJ' or p == 'N' or p == 'V5jBALIgP' or p == 'XU9' or p == 'ji0ux' or p == 'rqk58'
>>> choose(ps, s, 0)
'XU9'
>>> choose(ps, s, 1)
'ji0ux'
>>> choose(ps, s, 2)
'N'
>>> choose(ps, s, 3)
'V5jBALIgP'
>>> choose(ps, s, 4)
'ARqJ'
>>> choose(ps, s, 5)
'rqk58'
>>> choose(ps, s, 6)
''
>>> choose(ps, s, 7)
''
>>> choose(ps, s, 8)
''
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
>>> from typing import choose
""",
'teardown': '',
'type': 'doctest'
}
]
}
| test = {'name': 'Problem 1', 'points': 1, 'suites': [{'cases': [{'code': "\n >>> ps = ['short', 'really long', 'tiny']\n >>> s = lambda p: len(p) <= 5\n >>> choose(ps, s, 0)\n 'short'\n >>> choose(ps, s, 1)\n 'tiny'\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '\n >>> from typing import choose\n ', 'teardown': '', 'type': 'doctest'}, {'cases': [{'code': "\n >>> ps = ['d', 'Njtv', 'Kxg', 'ym6bMNxUy', 'Lz']\n >>> s = lambda p: p == 'Kxg' or p == 'Lz' or p == 'd'\n >>> choose(ps, s, 0)\n 'd'\n >>> choose(ps, s, 1)\n 'Kxg'\n >>> choose(ps, s, 2)\n 'Lz'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['pVasJy', 'ZD', 'toNG']\n >>> s = lambda p: p == 'ZD' or p == 'pVasJy' or p == 'toNG'\n >>> choose(ps, s, 0)\n 'pVasJy'\n >>> choose(ps, s, 1)\n 'ZD'\n >>> choose(ps, s, 2)\n 'toNG'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['JlY3CIaa', '1fMO0', 'pe', 'Q6F4bbNP5J']\n >>> s = lambda p: p == '1fMO0' or p == 'pe'\n >>> choose(ps, s, 0)\n '1fMO0'\n >>> choose(ps, s, 1)\n 'pe'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['o', '1m5Q']\n >>> s = lambda p: p == '1m5Q'\n >>> choose(ps, s, 0)\n '1m5Q'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['eV0dmK0', 'opuJ6xpn1', 'WXfPJa', 'EaXYKI']\n >>> s = lambda p: p == 'WXfPJa' or p == 'opuJ6xpn1'\n >>> choose(ps, s, 0)\n 'opuJ6xpn1'\n >>> choose(ps, s, 1)\n 'WXfPJa'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['jakYR6', '7c5IJE7d', 'UJu', 'YB', '6bKkwROlcZ', 'G', 'aMtUQZ4']\n >>> s = lambda p: p == 'G' or p == 'UJu'\n >>> choose(ps, s, 0)\n 'UJu'\n >>> choose(ps, s, 1)\n 'G'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['RnW', 'itFiAc40d', 'e']\n >>> s = lambda p: p == 'RnW' or p == 'e' or p == 'itFiAc40d'\n >>> choose(ps, s, 0)\n 'RnW'\n >>> choose(ps, s, 1)\n 'itFiAc40d'\n >>> choose(ps, s, 2)\n 'e'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Tl4qyDvUzq', '219tHOGK77', 'gvFnh4ypPs', '2plMVD5bF', 'Sy9ydsV', 'QmMJ']\n >>> s = lambda p: p == '2plMVD5bF' or p == 'QmMJ' or p == 'Sy9ydsV' or p == 'gvFnh4ypPs'\n >>> choose(ps, s, 0)\n 'gvFnh4ypPs'\n >>> choose(ps, s, 1)\n '2plMVD5bF'\n >>> choose(ps, s, 2)\n 'Sy9ydsV'\n >>> choose(ps, s, 3)\n 'QmMJ'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['k2RL9', 'cBtzx1ZUu', 'DdJNjj', 'xdUAYSdFjk', 'N9vHSIIy', 'fO', 'alIf1', 'i']\n >>> s = lambda p: p == 'DdJNjj' or p == 'N9vHSIIy' or p == 'alIf1' or p == 'cBtzx1ZUu' or p == 'k2RL9'\n >>> choose(ps, s, 0)\n 'k2RL9'\n >>> choose(ps, s, 1)\n 'cBtzx1ZUu'\n >>> choose(ps, s, 2)\n 'DdJNjj'\n >>> choose(ps, s, 3)\n 'N9vHSIIy'\n >>> choose(ps, s, 4)\n 'alIf1'\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['WzdN8', 'YEDX', 'sr', '9cfLm']\n >>> s = lambda p: p == 'YEDX' or p == 'sr'\n >>> choose(ps, s, 0)\n 'YEDX'\n >>> choose(ps, s, 1)\n 'sr'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['NlwErghs', 'XPDU', 'jzYGBj', 'P6', 'w']\n >>> s = lambda p: p == 'NlwErghs'\n >>> choose(ps, s, 0)\n 'NlwErghs'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['dZi4B', 'Gtihxn6r', '03alCKzGQ', 'CusewJ6', 'hi9n', 'aipp1l', 'NCTAk', 'UXBZJ']\n >>> s = lambda p: p == '03alCKzGQ' or p == 'NCTAk' or p == 'dZi4B' or p == 'hi9n'\n >>> choose(ps, s, 0)\n 'dZi4B'\n >>> choose(ps, s, 1)\n '03alCKzGQ'\n >>> choose(ps, s, 2)\n 'hi9n'\n >>> choose(ps, s, 3)\n 'NCTAk'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Txb', 'Q1WE7qA', '6XQj', 'gMNin4hq4w', 'pziJgrhuz', '8q4', 'Txy']\n >>> s = lambda p: p == 'gMNin4hq4w' or p == 'pziJgrhuz'\n >>> choose(ps, s, 0)\n 'gMNin4hq4w'\n >>> choose(ps, s, 1)\n 'pziJgrhuz'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['HL5xB', 'Z1', 'Zw2hPXj2', 't', 'Kru1WdQbu', 'eqWVk', 'EBRFugj8B', 'tmsX', 'HRd']\n >>> s = lambda p: p == 'EBRFugj8B' or p == 'Kru1WdQbu' or p == 't'\n >>> choose(ps, s, 0)\n 't'\n >>> choose(ps, s, 1)\n 'Kru1WdQbu'\n >>> choose(ps, s, 2)\n 'EBRFugj8B'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['fgdI', 'O8HCeAG4TZ', '1fHh9Ei2uh', 'vBSd']\n >>> s = lambda p: p == '1fHh9Ei2uh' or p == 'vBSd'\n >>> choose(ps, s, 0)\n '1fHh9Ei2uh'\n >>> choose(ps, s, 1)\n 'vBSd'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['thvLCiRUaO', 'MzkZ', '7xG', 'AoGZ', 'HS75YTP']\n >>> s = lambda p: p == '7xG' or p == 'AoGZ' or p == 'HS75YTP' or p == 'MzkZ'\n >>> choose(ps, s, 0)\n 'MzkZ'\n >>> choose(ps, s, 1)\n '7xG'\n >>> choose(ps, s, 2)\n 'AoGZ'\n >>> choose(ps, s, 3)\n 'HS75YTP'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['uT5', 'KPeXYnET', 'IJjA3A2w']\n >>> s = lambda p: p == 'KPeXYnET'\n >>> choose(ps, s, 0)\n 'KPeXYnET'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Uq98V6O', 'k', 'EgT1EpPM']\n >>> s = lambda p: p == 'Uq98V6O' or p == 'k'\n >>> choose(ps, s, 0)\n 'Uq98V6O'\n >>> choose(ps, s, 1)\n 'k'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Pc', 'CoL', 'KFDY8UD', 'HmG', 'qciZ9kWAB4', 'bafyIpd8U', 'Rtygug']\n >>> s = lambda p: p == 'CoL'\n >>> choose(ps, s, 0)\n 'CoL'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['TjK2nv', 'JT', '6izv', 'wqzU3L', 'fg']\n >>> s = lambda p: p == 'wqzU3L'\n >>> choose(ps, s, 0)\n 'wqzU3L'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['TfV7QdkY', 'Bzd9osf6er', 'EydfOK', '3y', 'sH', 'h1', '0', 'rD']\n >>> s = lambda p: p == '0' or p == 'rD'\n >>> choose(ps, s, 0)\n '0'\n >>> choose(ps, s, 1)\n 'rD'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['R0P', 'm', 'jsehdWm', '0TWTsZ', 'hA', 'UD', 'kuQb', 'uqQYCAx0', 'c']\n >>> s = lambda p: p == 'UD' or p == 'c' or p == 'kuQb' or p == 'm'\n >>> choose(ps, s, 0)\n 'm'\n >>> choose(ps, s, 1)\n 'UD'\n >>> choose(ps, s, 2)\n 'kuQb'\n >>> choose(ps, s, 3)\n 'c'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['PkmOH', 'NG6HAJ', 'YysuECiszy', 'Q7CysdSt']\n >>> s = lambda p: p == 'PkmOH'\n >>> choose(ps, s, 0)\n 'PkmOH'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['BJ5gtIY', 'MuR', 'aKTPcHm']\n >>> s = lambda p: p == 'BJ5gtIY' or p == 'aKTPcHm'\n >>> choose(ps, s, 0)\n 'BJ5gtIY'\n >>> choose(ps, s, 1)\n 'aKTPcHm'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Mbkg9g', 'MlYvYYZ', 'mDj', 'if01', 'Rp', '4sznEC', 'vgKWOAEfpL']\n >>> s = lambda p: p == 'Mbkg9g' or p == 'MlYvYYZ' or p == 'if01' or p == 'mDj'\n >>> choose(ps, s, 0)\n 'Mbkg9g'\n >>> choose(ps, s, 1)\n 'MlYvYYZ'\n >>> choose(ps, s, 2)\n 'mDj'\n >>> choose(ps, s, 3)\n 'if01'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['tfKtKfC', 'tm', 'h0qDaxp', '9dqW', 'u0L44Wr15j', 'oHeqKhx', '9wIE2qBV']\n >>> s = lambda p: p == '9dqW' or p == 'h0qDaxp' or p == 'oHeqKhx' or p == 'tfKtKfC'\n >>> choose(ps, s, 0)\n 'tfKtKfC'\n >>> choose(ps, s, 1)\n 'h0qDaxp'\n >>> choose(ps, s, 2)\n '9dqW'\n >>> choose(ps, s, 3)\n 'oHeqKhx'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['rJhT7WL', '1nLtR']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['8Kb9Df']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['OwEteuQk7', 'w8L6', 'O8rZO7QEDH', 'yqJND8', 'xi', 'x']\n >>> s = lambda p: p == 'O8rZO7QEDH' or p == 'OwEteuQk7' or p == 'w8L6' or p == 'x' or p == 'xi'\n >>> choose(ps, s, 0)\n 'OwEteuQk7'\n >>> choose(ps, s, 1)\n 'w8L6'\n >>> choose(ps, s, 2)\n 'O8rZO7QEDH'\n >>> choose(ps, s, 3)\n 'xi'\n >>> choose(ps, s, 4)\n 'x'\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['3pLPrqWRU', '2tVwTl', 'h3', 'h', 'GKsxvci', 'MMKb17']\n >>> s = lambda p: p == '2tVwTl' or p == 'GKsxvci' or p == 'h3'\n >>> choose(ps, s, 0)\n '2tVwTl'\n >>> choose(ps, s, 1)\n 'h3'\n >>> choose(ps, s, 2)\n 'GKsxvci'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Yj3eX']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['dnln', 'rAgVI']\n >>> s = lambda p: p == 'dnln'\n >>> choose(ps, s, 0)\n 'dnln'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Lz', 'v3KeV', 'lIH', 'WlHz', 'FT', 'zyTMZqx', 'AU6D', 'f5h', '0N2h']\n >>> s = lambda p: p == '0N2h' or p == 'AU6D' or p == 'FT' or p == 'Lz' or p == 'WlHz' or p == 'f5h' or p == 'lIH' or p == 'zyTMZqx'\n >>> choose(ps, s, 0)\n 'Lz'\n >>> choose(ps, s, 1)\n 'lIH'\n >>> choose(ps, s, 2)\n 'WlHz'\n >>> choose(ps, s, 3)\n 'FT'\n >>> choose(ps, s, 4)\n 'zyTMZqx'\n >>> choose(ps, s, 5)\n 'AU6D'\n >>> choose(ps, s, 6)\n 'f5h'\n >>> choose(ps, s, 7)\n '0N2h'\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['784e1Zw5D', 'loszSdL', 'Doljlq87', '7bs1Cavy', 'islC1Zr3pd', 'vC6voVbml', 'NlATIbqbqH']\n >>> s = lambda p: p == '784e1Zw5D' or p == 'vC6voVbml'\n >>> choose(ps, s, 0)\n '784e1Zw5D'\n >>> choose(ps, s, 1)\n 'vC6voVbml'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Gxe', 'aLFptpZ', 'mTk0PqgvEd']\n >>> s = lambda p: p == 'mTk0PqgvEd'\n >>> choose(ps, s, 0)\n 'mTk0PqgvEd'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['R', 's5w']\n >>> s = lambda p: p == 'R' or p == 's5w'\n >>> choose(ps, s, 0)\n 'R'\n >>> choose(ps, s, 1)\n 's5w'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['56ymnsoou', '3SR1BSp9', 'lnDFUseC', 'XX', '5qPAWcVr', 'MagSw', 'OM2']\n >>> s = lambda p: p == '56ymnsoou' or p == 'MagSw' or p == 'lnDFUseC'\n >>> choose(ps, s, 0)\n '56ymnsoou'\n >>> choose(ps, s, 1)\n 'lnDFUseC'\n >>> choose(ps, s, 2)\n 'MagSw'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['5NB7WkerdL', 'DM7ElcD8', 'Z0jxaWrO']\n >>> s = lambda p: p == '5NB7WkerdL' or p == 'DM7ElcD8'\n >>> choose(ps, s, 0)\n '5NB7WkerdL'\n >>> choose(ps, s, 1)\n 'DM7ElcD8'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['dN']\n >>> s = lambda p: p == 'dN'\n >>> choose(ps, s, 0)\n 'dN'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['qIe9AKgG', '32', 'L3BZo7']\n >>> s = lambda p: p == '32'\n >>> choose(ps, s, 0)\n '32'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['6rC', 'i', 'ShmGuRlD', 'auTCnLV9N', 'eUm', '3LWePKqsLE', 'UJWaX5', 'YHWXmg8ZKJ']\n >>> s = lambda p: p == 'YHWXmg8ZKJ' or p == 'eUm'\n >>> choose(ps, s, 0)\n 'eUm'\n >>> choose(ps, s, 1)\n 'YHWXmg8ZKJ'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['rdDBdH1Z2', '4vNQk', 'D9']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['7nb', 'ct0', 'vnXAZmXa', 'Kk']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['nt', 'Kh']\n >>> s = lambda p: p == 'nt'\n >>> choose(ps, s, 0)\n 'nt'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['D18', 'cDr', '4tqx', 'T4cu', 'rSMQ', 'QOVBeZ', 'LJEhyyV', 'nN4L', 'sh8yGSN0']\n >>> s = lambda p: p == '4tqx'\n >>> choose(ps, s, 0)\n '4tqx'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['U', 'E', 'xpSt3', 'IBTIrxBn', 'x', '5NHXIC', 'bevi8', 'H2J']\n >>> s = lambda p: p == '5NHXIC' or p == 'E' or p == 'H2J' or p == 'IBTIrxBn' or p == 'bevi8' or p == 'x' or p == 'xpSt3'\n >>> choose(ps, s, 0)\n 'E'\n >>> choose(ps, s, 1)\n 'xpSt3'\n >>> choose(ps, s, 2)\n 'IBTIrxBn'\n >>> choose(ps, s, 3)\n 'x'\n >>> choose(ps, s, 4)\n '5NHXIC'\n >>> choose(ps, s, 5)\n 'bevi8'\n >>> choose(ps, s, 6)\n 'H2J'\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['zKnSYBGR']\n >>> s = lambda p: p == 'zKnSYBGR'\n >>> choose(ps, s, 0)\n 'zKnSYBGR'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['qWQ5R', 'itUa']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['vyc99h', 'C2Fb']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['VVfHQc', '3tphSDJHW']\n >>> s = lambda p: p == 'VVfHQc'\n >>> choose(ps, s, 0)\n 'VVfHQc'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['6fZ69QtrT', 'w', 'Mj', 'm9Q3q7', 'e8', 'oT91rDgCkf', 'Ku3YY', '1kR7E7o']\n >>> s = lambda p: p == '1kR7E7o' or p == '6fZ69QtrT' or p == 'm9Q3q7' or p == 'oT91rDgCkf'\n >>> choose(ps, s, 0)\n '6fZ69QtrT'\n >>> choose(ps, s, 1)\n 'm9Q3q7'\n >>> choose(ps, s, 2)\n 'oT91rDgCkf'\n >>> choose(ps, s, 3)\n '1kR7E7o'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['P0GxoIDZ', '1ea7Auf6yr', '4GXri', 'KFEjSWJGo9', 'G4CRHYUS']\n >>> s = lambda p: p == '1ea7Auf6yr' or p == 'G4CRHYUS'\n >>> choose(ps, s, 0)\n '1ea7Auf6yr'\n >>> choose(ps, s, 1)\n 'G4CRHYUS'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['WYDL4w', 'h3X', 'eTzA8ZVto']\n >>> s = lambda p: p == 'h3X'\n >>> choose(ps, s, 0)\n 'h3X'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['uSdsnZX', 'sm', 'IhETqbyq', 'YyWmeW']\n >>> s = lambda p: p == 'uSdsnZX'\n >>> choose(ps, s, 0)\n 'uSdsnZX'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['newpDoQ']\n >>> s = lambda p: p == 'newpDoQ'\n >>> choose(ps, s, 0)\n 'newpDoQ'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['39cz9', 'aF4UgswU7', 'nmLtF3C74t', 'O5zVDC0Qk', 'raNMI', 'Ww']\n >>> s = lambda p: p == '39cz9' or p == 'nmLtF3C74t' or p == 'raNMI'\n >>> choose(ps, s, 0)\n '39cz9'\n >>> choose(ps, s, 1)\n 'nmLtF3C74t'\n >>> choose(ps, s, 2)\n 'raNMI'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['cGYgMJ']\n >>> s = lambda p: p == 'cGYgMJ'\n >>> choose(ps, s, 0)\n 'cGYgMJ'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Z6sMzUpX', 'bjZrla', 'd592KutV', 'u9ePqq']\n >>> s = lambda p: p == 'Z6sMzUpX' or p == 'bjZrla'\n >>> choose(ps, s, 0)\n 'Z6sMzUpX'\n >>> choose(ps, s, 1)\n 'bjZrla'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['CPkMCFSlI', 'hN', '36fjymO']\n >>> s = lambda p: p == 'CPkMCFSlI' or p == 'hN'\n >>> choose(ps, s, 0)\n 'CPkMCFSlI'\n >>> choose(ps, s, 1)\n 'hN'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['0chTifN', 'zwzztDjl9J', 'sibJYXU3', 'FRBno3fxQ']\n >>> s = lambda p: p == '0chTifN' or p == 'sibJYXU3' or p == 'zwzztDjl9J'\n >>> choose(ps, s, 0)\n '0chTifN'\n >>> choose(ps, s, 1)\n 'zwzztDjl9J'\n >>> choose(ps, s, 2)\n 'sibJYXU3'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['RyrvEszDL', 'OX', 'l41oGb51', 'K6', 'miYmytdkh0']\n >>> s = lambda p: p == 'miYmytdkh0'\n >>> choose(ps, s, 0)\n 'miYmytdkh0'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['x9', '1mTh6V', 'EtQTYbRs']\n >>> s = lambda p: p == '1mTh6V' or p == 'EtQTYbRs'\n >>> choose(ps, s, 0)\n '1mTh6V'\n >>> choose(ps, s, 1)\n 'EtQTYbRs'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['4iYIAlSlO', 'XmrFk', 'k', 'kmX', 'Wkc5VlUZ']\n >>> s = lambda p: p == 'Wkc5VlUZ' or p == 'XmrFk' or p == 'kmX'\n >>> choose(ps, s, 0)\n 'XmrFk'\n >>> choose(ps, s, 1)\n 'kmX'\n >>> choose(ps, s, 2)\n 'Wkc5VlUZ'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['dtrqh', 'lw8BciizM', 'HyveF', 'lLhw', 'jZZsxtz', 'fzTVyZ7SA4']\n >>> s = lambda p: p == 'HyveF' or p == 'dtrqh' or p == 'lw8BciizM'\n >>> choose(ps, s, 0)\n 'dtrqh'\n >>> choose(ps, s, 1)\n 'lw8BciizM'\n >>> choose(ps, s, 2)\n 'HyveF'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['9', '2V', 'RApekvN', 'ar6mBR2', 'F0IIQe6', 'tSrWV', 'gWjCn4j']\n >>> s = lambda p: p == '9' or p == 'RApekvN'\n >>> choose(ps, s, 0)\n '9'\n >>> choose(ps, s, 1)\n 'RApekvN'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['k', 'Lhx', 'dV', 'qZs']\n >>> s = lambda p: p == 'Lhx'\n >>> choose(ps, s, 0)\n 'Lhx'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['AXNQUf', 'kkjB', 'lGMF']\n >>> s = lambda p: p == 'AXNQUf'\n >>> choose(ps, s, 0)\n 'AXNQUf'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['H9SPZR', 'P6x9', '0x6iPT8Vp', 'bELQa', 'gDdF', 'd', 'PLlr39R', 'uB3C', 'J']\n >>> s = lambda p: p == 'H9SPZR' or p == 'J' or p == 'P6x9' or p == 'PLlr39R' or p == 'bELQa' or p == 'gDdF'\n >>> choose(ps, s, 0)\n 'H9SPZR'\n >>> choose(ps, s, 1)\n 'P6x9'\n >>> choose(ps, s, 2)\n 'bELQa'\n >>> choose(ps, s, 3)\n 'gDdF'\n >>> choose(ps, s, 4)\n 'PLlr39R'\n >>> choose(ps, s, 5)\n 'J'\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Gbw', '5eTONy', 'r0AifHw', 'kDl', '6EQvhzS2', 'tzT5Qd0', 'Xt5LH']\n >>> s = lambda p: p == 'kDl' or p == 'r0AifHw' or p == 'tzT5Qd0'\n >>> choose(ps, s, 0)\n 'r0AifHw'\n >>> choose(ps, s, 1)\n 'kDl'\n >>> choose(ps, s, 2)\n 'tzT5Qd0'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['T', 'NHHbjxeyg']\n >>> s = lambda p: p == 'T'\n >>> choose(ps, s, 0)\n 'T'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['735kD', 'Cydsvguv3', 'aUd1Lh4qll', '2fr', 'orPUSE', 'daD', '9arD', 'YZK']\n >>> s = lambda p: p == '735kD' or p == '9arD' or p == 'Cydsvguv3' or p == 'aUd1Lh4qll' or p == 'daD'\n >>> choose(ps, s, 0)\n '735kD'\n >>> choose(ps, s, 1)\n 'Cydsvguv3'\n >>> choose(ps, s, 2)\n 'aUd1Lh4qll'\n >>> choose(ps, s, 3)\n 'daD'\n >>> choose(ps, s, 4)\n '9arD'\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['wTrS1wnYVc']\n >>> s = lambda p: p == 'wTrS1wnYVc'\n >>> choose(ps, s, 0)\n 'wTrS1wnYVc'\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['O2Z', 'kXg2S', 'iiSLscfD5', 'KQDBr6', 'iy', 'Wl5Y', 'd2K8NvD1d4', 'pTApHl3f', '7GLR9']\n >>> s = lambda p: p == 'Wl5Y' or p == 'd2K8NvD1d4' or p == 'iiSLscfD5' or p == 'iy' or p == 'kXg2S' or p == 'pTApHl3f'\n >>> choose(ps, s, 0)\n 'kXg2S'\n >>> choose(ps, s, 1)\n 'iiSLscfD5'\n >>> choose(ps, s, 2)\n 'iy'\n >>> choose(ps, s, 3)\n 'Wl5Y'\n >>> choose(ps, s, 4)\n 'd2K8NvD1d4'\n >>> choose(ps, s, 5)\n 'pTApHl3f'\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n >>> choose(ps, s, 10)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['oM', 'zGYOgEw', 'ueeX', 'D9BVt', 'AAjYFErh4', 'JjCV', '3', '1d7hiLfH']\n >>> s = lambda p: p == '1d7hiLfH' or p == 'AAjYFErh4' or p == 'oM'\n >>> choose(ps, s, 0)\n 'oM'\n >>> choose(ps, s, 1)\n 'AAjYFErh4'\n >>> choose(ps, s, 2)\n '1d7hiLfH'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['9', 'lFk']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['hDfoY', 'Gx5B', 'j4blx8g', '8KmJf6msa', 'un', 'R', 'onOdPr', 'ABRTPn']\n >>> s = lambda p: p == 'ABRTPn' or p == 'hDfoY' or p == 'onOdPr' or p == 'un'\n >>> choose(ps, s, 0)\n 'hDfoY'\n >>> choose(ps, s, 1)\n 'un'\n >>> choose(ps, s, 2)\n 'onOdPr'\n >>> choose(ps, s, 3)\n 'ABRTPn'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['eR', 'i6Bgh134A7', 'DXuD34', 'Cx5jaMth', 'Md8', '4Pf7qA', 'zlrFFuA']\n >>> s = lambda p: p == 'eR' or p == 'i6Bgh134A7' or p == 'zlrFFuA'\n >>> choose(ps, s, 0)\n 'eR'\n >>> choose(ps, s, 1)\n 'i6Bgh134A7'\n >>> choose(ps, s, 2)\n 'zlrFFuA'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['M7lN', '2', 'slZI6', 'C', 'LirWSCzE7L', '76smbBkd9q', 'ahzd740']\n >>> s = lambda p: p == 'C' or p == 'LirWSCzE7L' or p == 'M7lN' or p == 'ahzd740'\n >>> choose(ps, s, 0)\n 'M7lN'\n >>> choose(ps, s, 1)\n 'C'\n >>> choose(ps, s, 2)\n 'LirWSCzE7L'\n >>> choose(ps, s, 3)\n 'ahzd740'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['QHKeBnn', 'igEmIdOqfO', 'D1wLx76K', 'ggy', 'FW', 'akXSeF', 'PW', 'PmSZ']\n >>> s = lambda p: p == 'QHKeBnn' or p == 'akXSeF'\n >>> choose(ps, s, 0)\n 'QHKeBnn'\n >>> choose(ps, s, 1)\n 'akXSeF'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n >>> choose(ps, s, 9)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['YVaXL', 'OUqqkf']\n >>> s = lambda p: p == 'OUqqkf' or p == 'YVaXL'\n >>> choose(ps, s, 0)\n 'YVaXL'\n >>> choose(ps, s, 1)\n 'OUqqkf'\n >>> choose(ps, s, 2)\n ''\n >>> choose(ps, s, 3)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['WsEqFQV', 'H3kSFt', 'tFY']\n >>> s = lambda p: p == 'H3kSFt' or p == 'WsEqFQV' or p == 'tFY'\n >>> choose(ps, s, 0)\n 'WsEqFQV'\n >>> choose(ps, s, 1)\n 'H3kSFt'\n >>> choose(ps, s, 2)\n 'tFY'\n >>> choose(ps, s, 3)\n ''\n >>> choose(ps, s, 4)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['S2E6N']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = []\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['Tu6Em', 'HAsg4c', 'nB5LTvR4f5', 'zm', 'gV9jk', 'AqFELMW8g']\n >>> s = lambda p: p == 'AqFELMW8g' or p == 'gV9jk' or p == 'nB5LTvR4f5' or p == 'zm'\n >>> choose(ps, s, 0)\n 'nB5LTvR4f5'\n >>> choose(ps, s, 1)\n 'zm'\n >>> choose(ps, s, 2)\n 'gV9jk'\n >>> choose(ps, s, 3)\n 'AqFELMW8g'\n >>> choose(ps, s, 4)\n ''\n >>> choose(ps, s, 5)\n ''\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['UawKAu']\n >>> s = lambda p: False\n >>> choose(ps, s, 0)\n ''\n >>> choose(ps, s, 1)\n ''\n >>> choose(ps, s, 2)\n ''\n ", 'hidden': False, 'locked': False}, {'code': "\n >>> ps = ['XU9', 'ji0ux', 'N', 'V5jBALIgP', 'g6vdlQ', 'ARqJ', 'rqk58']\n >>> s = lambda p: p == 'ARqJ' or p == 'N' or p == 'V5jBALIgP' or p == 'XU9' or p == 'ji0ux' or p == 'rqk58'\n >>> choose(ps, s, 0)\n 'XU9'\n >>> choose(ps, s, 1)\n 'ji0ux'\n >>> choose(ps, s, 2)\n 'N'\n >>> choose(ps, s, 3)\n 'V5jBALIgP'\n >>> choose(ps, s, 4)\n 'ARqJ'\n >>> choose(ps, s, 5)\n 'rqk58'\n >>> choose(ps, s, 6)\n ''\n >>> choose(ps, s, 7)\n ''\n >>> choose(ps, s, 8)\n ''\n ", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '\n >>> from typing import choose\n ', 'teardown': '', 'type': 'doctest'}]} |
def str_to_bool(x):
x = str(x)
return x.lower() in ('true', 't', 'yes', 'y', '1')
| def str_to_bool(x):
x = str(x)
return x.lower() in ('true', 't', 'yes', 'y', '1') |
DEFAULT_ENDPOINTS_PATH = "endpoints.yml"
DEFAULT_CREDENTIALS_PATH = "credentials.yml"
DEFAULT_CONFIG_PATH = "config.yml"
DEFAULT_DOMAIN_PATH = "domain.yml"
DEFAULT_ACTIONS_PATH = "actions"
DEFAULT_MODELS_PATH = "models"
DEFAULT_DATA_PATH = "data"
DEFAULT_RESULTS_PATH = "results"
| default_endpoints_path = 'endpoints.yml'
default_credentials_path = 'credentials.yml'
default_config_path = 'config.yml'
default_domain_path = 'domain.yml'
default_actions_path = 'actions'
default_models_path = 'models'
default_data_path = 'data'
default_results_path = 'results' |
#grid setup
path = 'out'
Nx = 20
Ny = 20
NxCell = 2
NyCell = 2
xmin = ymin = 0.0
xmax = ymax = 1.0
| path = 'out'
nx = 20
ny = 20
nx_cell = 2
ny_cell = 2
xmin = ymin = 0.0
xmax = ymax = 1.0 |
def calcular_itbms(valor):
"""
Calcualr el ITBMS (7%)
Admite un valor subtotal para calcular el total (incluyendo el 7% del ITBMS)
Parameters
-----------
valor : float
subtotal a aplicar ITBMS
Returns
-------
float
Total con el ITBMS aplicado
"""
return valor * 0.07 | def calcular_itbms(valor):
"""
Calcualr el ITBMS (7%)
Admite un valor subtotal para calcular el total (incluyendo el 7% del ITBMS)
Parameters
-----------
valor : float
subtotal a aplicar ITBMS
Returns
-------
float
Total con el ITBMS aplicado
"""
return valor * 0.07 |
a=str(input("Enter the string:"))
b=a.split()
b.sort()
print("The sorted words are:")
for i in b:
print(i)
| a = str(input('Enter the string:'))
b = a.split()
b.sort()
print('The sorted words are:')
for i in b:
print(i) |
# pull an actual user out of the db to associate with these ideas
ideas =[
{
'users_id': 1,
'title':'My color pallete for my home',
"description":'Here is the color pallete for my apartment',
'image_url':'https://i.pinimg.com/564x/8c/f0/60/8cf06020e82ca94ddd8f65b990e84621.jpg',
'label':'public',
'vote': 1
},
{
'users_id': 2,
'title':'My next house',
"description":'this is the plan for the next house i am going to build',
'image_url':'https://i.pinimg.com/564x/d2/f6/06/d2f606c5bd27ef8ee95c1252da7cd6f4.jpg',
'label':'public',
'vote': 1
},
{
'users_id': 3,
'title':'My new project',
"description":'I want to write a book',
'image_url':'https://i.pinimg.com/564x/c9/99/3c/c9993c6c4093d50745f8cbc5335196ac.jpg',
'label':'public',
'vote':1
},
{
'users_id': 1,
'title':'My new project',
"description":'Oxygen',
'image_url':'https://i.pinimg.com/564x/41/c8/d7/41c8d7be885cd2821a0c43a2dfe07fa4.jpg',
'label':'public',
'vote': 1
},
{
'users_id': 1,
'title':'My new Robot',
"description":'My sketch for my new robot',
'image_url':'https://i.pinimg.com/564x/4a/4f/13/4a4f1309e25ec0608d6bbab6866c9f6b.jpg',
'label':'public',
'vote': 1
},
{
'users_id': 1,
'title':'My new sketch for my new Robots',
"description":'My sketch for my new robot',
'image_url':'https://i.pinimg.com/564x/48/6f/1c/486f1cd842253e8e085adf5410683e8f.jpg',
'label':'public',
'vote': 1
},
{
'users_id': 1,
'title':'My new jacket design',
"description":'My sketch for my new jacket',
'image_url':'https://i.pinimg.com/564x/13/fc/8e/13fc8ee5b5a697ac547faa29f36fa0b1.jpg',
'label':'public',
'vote':1
},
{
'users_id': 2,
'title':'Shelter on Mars',
"description":'this is the design of a shelter on Marse',
'image_url':'https://i.pinimg.com/564x/a0/45/cf/a045cf3d2a55055469c2dc2781ffd8f9.jpg',
'label':'public',
'vote':1
},
{
'users_id': 3,
'title':'Shelter on Mars',
"description":'this is the design of a shelter on Marse',
'image_url':'https://i.pinimg.com/564x/a0/45/cf/a045cf3d2a55055469c2dc2781ffd8f9.jpg',
'label':'public',
'vote':1
}
]
| ideas = [{'users_id': 1, 'title': 'My color pallete for my home', 'description': 'Here is the color pallete for my apartment', 'image_url': 'https://i.pinimg.com/564x/8c/f0/60/8cf06020e82ca94ddd8f65b990e84621.jpg', 'label': 'public', 'vote': 1}, {'users_id': 2, 'title': 'My next house', 'description': 'this is the plan for the next house i am going to build', 'image_url': 'https://i.pinimg.com/564x/d2/f6/06/d2f606c5bd27ef8ee95c1252da7cd6f4.jpg', 'label': 'public', 'vote': 1}, {'users_id': 3, 'title': 'My new project', 'description': 'I want to write a book', 'image_url': 'https://i.pinimg.com/564x/c9/99/3c/c9993c6c4093d50745f8cbc5335196ac.jpg', 'label': 'public', 'vote': 1}, {'users_id': 1, 'title': 'My new project', 'description': 'Oxygen', 'image_url': 'https://i.pinimg.com/564x/41/c8/d7/41c8d7be885cd2821a0c43a2dfe07fa4.jpg', 'label': 'public', 'vote': 1}, {'users_id': 1, 'title': 'My new Robot', 'description': 'My sketch for my new robot', 'image_url': 'https://i.pinimg.com/564x/4a/4f/13/4a4f1309e25ec0608d6bbab6866c9f6b.jpg', 'label': 'public', 'vote': 1}, {'users_id': 1, 'title': 'My new sketch for my new Robots', 'description': 'My sketch for my new robot', 'image_url': 'https://i.pinimg.com/564x/48/6f/1c/486f1cd842253e8e085adf5410683e8f.jpg', 'label': 'public', 'vote': 1}, {'users_id': 1, 'title': 'My new jacket design', 'description': 'My sketch for my new jacket', 'image_url': 'https://i.pinimg.com/564x/13/fc/8e/13fc8ee5b5a697ac547faa29f36fa0b1.jpg', 'label': 'public', 'vote': 1}, {'users_id': 2, 'title': 'Shelter on Mars', 'description': 'this is the design of a shelter on Marse', 'image_url': 'https://i.pinimg.com/564x/a0/45/cf/a045cf3d2a55055469c2dc2781ffd8f9.jpg', 'label': 'public', 'vote': 1}, {'users_id': 3, 'title': 'Shelter on Mars', 'description': 'this is the design of a shelter on Marse', 'image_url': 'https://i.pinimg.com/564x/a0/45/cf/a045cf3d2a55055469c2dc2781ffd8f9.jpg', 'label': 'public', 'vote': 1}] |
word = input()
word_list = list(word)
reduce = []
pattern = int(input())
for index, letter in enumerate(word):
counter = 0
oindex=index
for i in range(pattern):
if index > (len(word)-1):
counter = 1
break
if letter == word[index]:
counter == 0
else:
counter = 1
index+=1
if not(index > len(word)-1):
if letter == word[index]:
counter == 1
print('break{}'.format(oindex))
if counter == 0:
print('check{}'.format(oindex))
for j in range(pattern):
reduce.append(oindex)
oindex+=1
for i in reduce[::-1]:
word_list.pop(i)
print(''.join(word_list))
| word = input()
word_list = list(word)
reduce = []
pattern = int(input())
for (index, letter) in enumerate(word):
counter = 0
oindex = index
for i in range(pattern):
if index > len(word) - 1:
counter = 1
break
if letter == word[index]:
counter == 0
else:
counter = 1
index += 1
if not index > len(word) - 1:
if letter == word[index]:
counter == 1
print('break{}'.format(oindex))
if counter == 0:
print('check{}'.format(oindex))
for j in range(pattern):
reduce.append(oindex)
oindex += 1
for i in reduce[::-1]:
word_list.pop(i)
print(''.join(word_list)) |
with open('somefile.txt', 'a') as the_file:
with open("wider_face_train_bbx_gt.txt") as fp:
currentFileName = ""
nextFileName = 0
nextBoundry = 1
boundryStart = 0
isValidBoundry = False
wroteFileName = False
for i, line in enumerate(fp):
noBoundries = 0
if i == nextFileName:
# Get file name
currentFileName = line
wroteFileName = False
if i == nextBoundry:
# Process boundries
noBoundries = int(line)
if noBoundries == 0:
noBoundries = 1
isValidBoundry = False
elif noBoundries == 1:
isValidBoundry = True
else:
isValidBoundry = False
nextBoundry = i+2+noBoundries
nextFileName = i+1+noBoundries
# if isValidBoundry:
# the_file.write(currentFileName + "\n")
# the_file.write(str(noBoundries) + "\n")
if i+1< nextBoundry:
# Write boundries
if isValidBoundry:
if wroteFileName == False:
the_file.write(currentFileName)
wroteFileName = True
the_file.write(line)
| with open('somefile.txt', 'a') as the_file:
with open('wider_face_train_bbx_gt.txt') as fp:
current_file_name = ''
next_file_name = 0
next_boundry = 1
boundry_start = 0
is_valid_boundry = False
wrote_file_name = False
for (i, line) in enumerate(fp):
no_boundries = 0
if i == nextFileName:
current_file_name = line
wrote_file_name = False
if i == nextBoundry:
no_boundries = int(line)
if noBoundries == 0:
no_boundries = 1
is_valid_boundry = False
elif noBoundries == 1:
is_valid_boundry = True
else:
is_valid_boundry = False
next_boundry = i + 2 + noBoundries
next_file_name = i + 1 + noBoundries
if i + 1 < nextBoundry:
if isValidBoundry:
if wroteFileName == False:
the_file.write(currentFileName)
wrote_file_name = True
the_file.write(line) |
class Cat:
def __init__(self, new_name, new_age):
self.name = new_name
self.age = new_age
def __str__(self):
return "name: %s, age: %d." % (self.name, self.age)
def eat(self):
print("%s eat fish." % self.name)
def drink(self):
print("%s is drinking Cola..." % self.name)
def introduce(self):
print("name: %s, age: %d.." % (self.name, self.age))
tom = Cat("Tom", 30)
print(tom)
| class Cat:
def __init__(self, new_name, new_age):
self.name = new_name
self.age = new_age
def __str__(self):
return 'name: %s, age: %d.' % (self.name, self.age)
def eat(self):
print('%s eat fish.' % self.name)
def drink(self):
print('%s is drinking Cola...' % self.name)
def introduce(self):
print('name: %s, age: %d..' % (self.name, self.age))
tom = cat('Tom', 30)
print(tom) |
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
head = now = ListNode(0)
d = {}
for l in lists:
while l:
if not d.get(l.val, None):
d[l.val] = [l]
else:
d[l.val].append(l)
l = l.next
for key in sorted(d.iterkeys()):
for l in d[key]:
now.next = l
now = now.next
return head.next
def mergeKListsV2(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
count = len(lists)
if not count:
return lists
p = 1
while p < count:
for i in range(0, count - p, p * 2):
lists[i] = self.merge2list(lists[i], lists[i + p])
p *= 2
return lists[0]
def merge2list(self, l1, l2):
head = now = ListNode(0)
while l1 and l2:
if l1.val < l2.val:
now.next = l1
l1 = l1.next
else:
now.next = l2
l2 = l2.next
now = now.next
now.next = l1 if l1 else l2
return head.next
| class Solution(object):
def merge_k_lists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
head = now = list_node(0)
d = {}
for l in lists:
while l:
if not d.get(l.val, None):
d[l.val] = [l]
else:
d[l.val].append(l)
l = l.next
for key in sorted(d.iterkeys()):
for l in d[key]:
now.next = l
now = now.next
return head.next
def merge_k_lists_v2(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
count = len(lists)
if not count:
return lists
p = 1
while p < count:
for i in range(0, count - p, p * 2):
lists[i] = self.merge2list(lists[i], lists[i + p])
p *= 2
return lists[0]
def merge2list(self, l1, l2):
head = now = list_node(0)
while l1 and l2:
if l1.val < l2.val:
now.next = l1
l1 = l1.next
else:
now.next = l2
l2 = l2.next
now = now.next
now.next = l1 if l1 else l2
return head.next |
def abc(base,powe):
result = 1
for index in range(powe):
result = result * base
return result
def add(a,b):
sumb = a + b
return sumb
print(abc( int(input("Enter the base num : ")),int(input("Enter the power num : "))))
print(add( int(input("Enter num1 : ")),int(input("Enter num2 : ")))) | def abc(base, powe):
result = 1
for index in range(powe):
result = result * base
return result
def add(a, b):
sumb = a + b
return sumb
print(abc(int(input('Enter the base num : ')), int(input('Enter the power num : '))))
print(add(int(input('Enter num1 : ')), int(input('Enter num2 : ')))) |
description = 'Stanford SR-850 lock-in amplifier, for susceptibility measurements'
group = 'optional'
includes = ['base']
tango_base = 'tango://miractrl.mira.frm2:10000/mira/'
devices = dict(
M = device('nicos_mlz.mira.devices.sr850.Amplifier',
description = 'SR850 lock-in amplifier',
tangodevice = tango_base + 'sr850/io',
),
M2 = device('nicos_mlz.mira.devices.sr850.Amplifier',
description = 'SR850 lock-in amplifier',
tangodevice = tango_base + 'sr850/io2',
),
)
startupcode = '''
SetDetectors(M, M2)
'''
| description = 'Stanford SR-850 lock-in amplifier, for susceptibility measurements'
group = 'optional'
includes = ['base']
tango_base = 'tango://miractrl.mira.frm2:10000/mira/'
devices = dict(M=device('nicos_mlz.mira.devices.sr850.Amplifier', description='SR850 lock-in amplifier', tangodevice=tango_base + 'sr850/io'), M2=device('nicos_mlz.mira.devices.sr850.Amplifier', description='SR850 lock-in amplifier', tangodevice=tango_base + 'sr850/io2'))
startupcode = '\nSetDetectors(M, M2)\n' |
def getsidelen(num: int):
i = 3
while True:
if i*i > num:
return i
i += 2
# inp = 44
inp = 361527
steps = 0
field = getsidelen(inp)
print(field) # we need 603x603 fields = 363609
steps += field // 2 # steps to the center of 1 of the axis
diff = 0
mid1 = (field * field) - field // 2
diff = abs(inp - mid1)
for i in range(3): # which center is the nearest one?
mid1 -= (field - 1)
if abs(inp - mid1) < diff:
diff = abs(inp - mid1)
steps += diff # steps to center 2nd axis
print(steps)
| def getsidelen(num: int):
i = 3
while True:
if i * i > num:
return i
i += 2
inp = 361527
steps = 0
field = getsidelen(inp)
print(field)
steps += field // 2
diff = 0
mid1 = field * field - field // 2
diff = abs(inp - mid1)
for i in range(3):
mid1 -= field - 1
if abs(inp - mid1) < diff:
diff = abs(inp - mid1)
steps += diff
print(steps) |
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
hashTable = dict()
for i in range(len(nums)):
delta = target - nums[i]
if delta in hashTable:
return (i, hashTable[delta])
else:
hashTable[nums[i]] = i
return None
| class Solution:
def two_sum(self, nums: List[int], target: int) -> List[int]:
hash_table = dict()
for i in range(len(nums)):
delta = target - nums[i]
if delta in hashTable:
return (i, hashTable[delta])
else:
hashTable[nums[i]] = i
return None |
class Bar: pass
def func(foo):
"""
Parameters:
foo (Bar): ignored
"""
pass
| class Bar:
pass
def func(foo):
"""
Parameters:
foo (Bar): ignored
"""
pass |
class Solution:
# @param {integer[]} nums
# @return {integer[][]}
def permuteUnique(self, nums):
if len(nums) == 1:
return [nums]
nums.sort()
res = []
i = 0
while i < len(nums):
sym = nums[i]
tmp = nums[:i] + nums[i + 1:]
sub = self.permuteUnique(tmp)
res.extend([[nums[i]] + s for s in sub])
while i < len(nums):
if nums[i] != sym:
break
i += 1
return res
| class Solution:
def permute_unique(self, nums):
if len(nums) == 1:
return [nums]
nums.sort()
res = []
i = 0
while i < len(nums):
sym = nums[i]
tmp = nums[:i] + nums[i + 1:]
sub = self.permuteUnique(tmp)
res.extend([[nums[i]] + s for s in sub])
while i < len(nums):
if nums[i] != sym:
break
i += 1
return res |
def sumOfDigit(n):
if (n==0):
return 0
return(n%10+sumOfDigit(int(n/10)))
num=int(input("Enter number: "))
result=sumOfDigit(num)
print("Output:",result) | def sum_of_digit(n):
if n == 0:
return 0
return n % 10 + sum_of_digit(int(n / 10))
num = int(input('Enter number: '))
result = sum_of_digit(num)
print('Output:', result) |
#-*- coding: utf-8 -*-
# Release details for package
name = "PyWavelets"
version = "0.1.7"
#revision = "$Revision: 118 $".split()[1]
author = "Filip Wasilewski"
author_email = "filip.wasilewski@gmail.com"
url = "http://www.pybytes.com/pywavelets/"
download_url = "http://pypi.python.org/pypi/PyWavelets/"
license = "MIT"
description = "PyWavelets, wavelet transform module."
keywords = ['wavelets', 'wavelet transform', 'DWT', 'SWT', 'scientific', 'NumPy']
platforms = ['Linux', 'Mac OSX', 'Windows XP/2000/NT']
svn = "http://wavelets.scipy.org/svn/multiresolution/pywt/trunk"
long_description = \
"""
PyWavelets is a Python wavelet transforms module that can do:
* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
* 1D and 2D Wavelet Packet decomposition and reconstruction
* Computing Approximations of wavelet and scaling functions
* Over seventy built-in wavelet filters and support for custom wavelets
* Single and double precision calculations
* Results compatibility with Matlab Wavelet Toolbox (tm)
"""
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: C',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
| name = 'PyWavelets'
version = '0.1.7'
author = 'Filip Wasilewski'
author_email = 'filip.wasilewski@gmail.com'
url = 'http://www.pybytes.com/pywavelets/'
download_url = 'http://pypi.python.org/pypi/PyWavelets/'
license = 'MIT'
description = 'PyWavelets, wavelet transform module.'
keywords = ['wavelets', 'wavelet transform', 'DWT', 'SWT', 'scientific', 'NumPy']
platforms = ['Linux', 'Mac OSX', 'Windows XP/2000/NT']
svn = 'http://wavelets.scipy.org/svn/multiresolution/pywt/trunk'
long_description = '\nPyWavelets is a Python wavelet transforms module that can do:\n\n * 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)\n * 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)\n * 1D and 2D Wavelet Packet decomposition and reconstruction\n * Computing Approximations of wavelet and scaling functions\n * Over seventy built-in wavelet filters and support for custom wavelets\n * Single and double precision calculations\n * Results compatibility with Matlab Wavelet Toolbox (tm)\n'
classifiers = ['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: C', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules'] |
"""
Python 3 Object-Oriented Programming Case Study
Chapter 10. The iterator pattern
"""
def test_placeholder():
pass
| """
Python 3 Object-Oriented Programming Case Study
Chapter 10. The iterator pattern
"""
def test_placeholder():
pass |
valores = [334, 567, 435, 678]
print( max(valores) )#exibe valor mais alto
print( min(valores) )#exibe valor mais baixo
pares = list(range(0,100, 2))#listando pares
impar = list(range(1,101, 2))#listyando impares
print(pares)
print(impar)
for valor in pares:#iterando valores range
print(valor) | valores = [334, 567, 435, 678]
print(max(valores))
print(min(valores))
pares = list(range(0, 100, 2))
impar = list(range(1, 101, 2))
print(pares)
print(impar)
for valor in pares:
print(valor) |
# https://leetcode.com/problems/maximum-product-subarray/
class Solution(object):
def maxProduct(self, nums):
"""
Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product. It is guaranteed that the answer will fit in a 32-bit integer. A subarray is a contiguous subsequence of the array.
:type nums: List[int]
:rtype: int
"""
| class Solution(object):
def max_product(self, nums):
"""
Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product. It is guaranteed that the answer will fit in a 32-bit integer. A subarray is a contiguous subsequence of the array.
:type nums: List[int]
:rtype: int
""" |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given a 2D binary matrix filled with 0's and 1's, find the largest square
containing only 1's and return its area.
For example, given the following matrix:
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0
Return 4.
>>> s = Solution()
>>> s.maximalSquare([['1', '1'], ['1', '1']])
4
>>> s.maximalSquare([])
0
>>> s.maximalSquare([[]])
0
>>> s.maximalSquare([['1']])
1
>>> s.maximalSquare([['0', '0']])
0
>>> s.maximalSquare([['1', '0']])
1
>>> s.maximalSquare([['1', '1']])
1
>>> s.maximalSquare([['0', '1'], ['1', '1']])
1
>>> matrix = [['1', '0', '1', '0', '0'], ['1', '0', '1', '1', '1'], ['1', '1', '1', '1', '1'], ['1', '0', '0', '1', '0']] # noqa
>>> s.maximalSquare(matrix)
4
"""
class Solution(object):
def maximalSquare(self, matrix):
"""
:type matrix: List[List[str]]
:rtype: int
"""
if not matrix:
return 0
rows, cols = len(matrix), len(matrix[0])
max_size = 0
dp = [[0] * cols for _ in range(rows)]
for i in range(rows):
for j in range(cols):
if matrix[i][j] == '1':
if i > 0 and j > 0:
dp[i][j] = min(
dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1],
) + 1
else: # on the edge of the matrix
dp[i][j] = 1
if dp[i][j] > max_size:
max_size = dp[i][j]
return max_size * max_size
| """
Given a 2D binary matrix filled with 0's and 1's, find the largest square
containing only 1's and return its area.
For example, given the following matrix:
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0
Return 4.
>>> s = Solution()
>>> s.maximalSquare([['1', '1'], ['1', '1']])
4
>>> s.maximalSquare([])
0
>>> s.maximalSquare([[]])
0
>>> s.maximalSquare([['1']])
1
>>> s.maximalSquare([['0', '0']])
0
>>> s.maximalSquare([['1', '0']])
1
>>> s.maximalSquare([['1', '1']])
1
>>> s.maximalSquare([['0', '1'], ['1', '1']])
1
>>> matrix = [['1', '0', '1', '0', '0'], ['1', '0', '1', '1', '1'], ['1', '1', '1', '1', '1'], ['1', '0', '0', '1', '0']] # noqa
>>> s.maximalSquare(matrix)
4
"""
class Solution(object):
def maximal_square(self, matrix):
"""
:type matrix: List[List[str]]
:rtype: int
"""
if not matrix:
return 0
(rows, cols) = (len(matrix), len(matrix[0]))
max_size = 0
dp = [[0] * cols for _ in range(rows)]
for i in range(rows):
for j in range(cols):
if matrix[i][j] == '1':
if i > 0 and j > 0:
dp[i][j] = min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]) + 1
else:
dp[i][j] = 1
if dp[i][j] > max_size:
max_size = dp[i][j]
return max_size * max_size |
#
# PySNMP MIB module REDLINE-AN80I-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/REDLINE-AN80I-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:46:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint")
redlineTransmission, = mibBuilder.importSymbols("REDLINE-MIB", "redlineTransmission")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32, MibIdentifier, ObjectIdentity, Counter32, Bits, iso, IpAddress, ModuleIdentity, NotificationType, Counter64, TimeTicks, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32", "MibIdentifier", "ObjectIdentity", "Counter32", "Bits", "iso", "IpAddress", "ModuleIdentity", "NotificationType", "Counter64", "TimeTicks", "Gauge32")
DisplayString, RowStatus, TextualConvention, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention", "MacAddress")
redlineAn80iIfMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2))
redlineAn80iIfMib.setRevisions(('2005-11-28 15:43',))
if mibBuilder.loadTexts: redlineAn80iIfMib.setLastUpdated('200511281543Z')
if mibBuilder.loadTexts: redlineAn80iIfMib.setOrganization('Redline Communications Inc.')
redlineAn80iIfPtpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1))
redlineAn80iIfPtpLinkConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1))
an80iIfEncryptionControl = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("off", 1), ("redline", 2), ("aes128", 3), ("aes192", 4), ("aes256", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfEncryptionControl.setStatus('current')
an80iIfModReduction = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfModReduction.setStatus('current')
an80iIfAdaptiveMod = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfAdaptiveMod.setStatus('current')
an80iIfUncodedBurstRate = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setUnits('').setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfUncodedBurstRate.setStatus('current')
an80iIfEncryptionKey = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 5), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfEncryptionKey.setStatus('current')
an80iIfPacketRetransControl = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfPacketRetransControl.setStatus('current')
an80iIfLinkLenMode = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auto", 1), ("manual", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfLinkLenMode.setStatus('current')
an80iIfLinkLength = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 8), Integer32()).setUnits('Km').setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfLinkLength.setStatus('current')
an80iIfCalcLinkDst = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 9), Integer32()).setUnits('Km').setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfCalcLinkDst.setStatus('current')
an80iIfLinkName = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfLinkName.setStatus('current')
redlineAn80iIfPtpLinkStats = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2))
an80iIfCurrUncodedBurstRate = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 1), Unsigned32()).setUnits('').setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfCurrUncodedBurstRate.setStatus('current')
an80iIfPtpLinkStatus = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPtpLinkStatus.setStatus('current')
an80iIfRxPackets = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRxPackets.setStatus('current')
an80iIfRxPacketsReTx = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRxPacketsReTx.setStatus('current')
an80iIfRxPacketsDisc = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRxPacketsDisc.setStatus('current')
an80iIfTxPackets = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfTxPackets.setStatus('current')
an80iIfTxPacketsReTx = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 7), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfTxPacketsReTx.setStatus('current')
an80iIfTxPacketsDisc = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 8), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfTxPacketsDisc.setStatus('current')
an80iIfRssiMin = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRssiMin.setStatus('current')
an80iIfRssiMean = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRssiMean.setStatus('current')
an80iIfRssiMax = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRssiMax.setStatus('current')
an80iIfAvrSinAdr = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfAvrSinAdr.setStatus('current')
redlineAn80iIfPmpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2))
redlineAn80iIfPmpSsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1))
an80iIfLastMissedMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfLastMissedMacAddress.setStatus('current')
an80iIfLastRegistMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfLastRegistMacAddress.setStatus('current')
an80iIfDenyMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 3), MacAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: an80iIfDenyMacAddress.setStatus('current')
an80iIfLastRegistLinkId = MibScalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1023))).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfLastRegistLinkId.setStatus('current')
an80iIfPmpLinkConfigTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2), )
if mibBuilder.loadTexts: an80iIfPmpLinkConfigTable.setStatus('current')
an80iIfPmpLinkConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkId"))
if mibBuilder.loadTexts: an80iIfPmpLinkConfigEntry.setStatus('current')
an80iIfPmpLinkId = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 1023)))
if mibBuilder.loadTexts: an80iIfPmpLinkId.setStatus('current')
an80iIfPmpLinkName = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpLinkName.setStatus('current')
an80iIfPmpLinkPeerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 3), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpLinkPeerMacAddress.setStatus('current')
an80iIfPmpLinkULBurstRate = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 4), Unsigned32()).setUnits('').setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpLinkULBurstRate.setStatus('current')
an80iIfPmpLinkDLBurstRate = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 5), Unsigned32()).setUnits('').setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpLinkDLBurstRate.setStatus('current')
an80iIfPmpLinkConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 6), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpLinkConfigStatus.setStatus('current')
an80iIfPmpLinkStatsTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3), )
if mibBuilder.loadTexts: an80iIfPmpLinkStatsTable.setStatus('current')
an80iIfPmpLinkStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkId"))
if mibBuilder.loadTexts: an80iIfPmpLinkStatsEntry.setStatus('current')
an80iIfPmpLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkStatus.setStatus('current')
an80iIfPmpLinkStatusCode = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkStatusCode.setStatus('current')
an80iIfRegPmpLinkConns = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfRegPmpLinkConns.setStatus('current')
an80iIfPmpLinkUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkUpTime.setStatus('current')
an80iIfPmpLinkLostCount = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkLostCount.setStatus('current')
an80iIfPmpLinkCurrDLUncBurstRate = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 6), Unsigned32()).setUnits('').setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkCurrDLUncBurstRate.setStatus('current')
an80iIfPmpLinkDLRssi = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLRssi.setStatus('current')
an80iIfPmpLinkDLSinAdr = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLSinAdr.setStatus('current')
an80iIfPmpLinkDLLostFrm = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 9), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLLostFrm.setStatus('current')
an80iIfPmpLinkDLBlksTot = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 10), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLBlksTot.setStatus('current')
an80iIfPmpLinkDLBlksRetr = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLBlksRetr.setStatus('current')
an80iIfPmpLinkDLBlksDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 12), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkDLBlksDisc.setStatus('current')
an80iIfPmpLinkCurrULUncBurstRate = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 13), Unsigned32()).setUnits('Mb/s').setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkCurrULUncBurstRate.setStatus('current')
an80iIfPmpLinkULRssi = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULRssi.setStatus('current')
an80iIfPmpLinkULSinAdr = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULSinAdr.setStatus('current')
an80iIfPmpLinkULLostFrm = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 16), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULLostFrm.setStatus('current')
an80iIfPmpLinkULBlksTot = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 17), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULBlksTot.setStatus('current')
an80iIfPmpLinkULBlksRetr = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 18), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULBlksRetr.setStatus('current')
an80iIfPmpLinkULBlksDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 19), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkULBlksDisc.setStatus('current')
an80iIfPmpLinkStatsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 20), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpLinkStatsStatus.setStatus('current')
an80iIfPmpGroupConfigTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4), )
if mibBuilder.loadTexts: an80iIfPmpGroupConfigTable.setStatus('current')
an80iIfPmpGroupConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupId"))
if mibBuilder.loadTexts: an80iIfPmpGroupConfigEntry.setStatus('current')
an80iIfPmpGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 1023)))
if mibBuilder.loadTexts: an80iIfPmpGroupId.setStatus('current')
an80iIfPmpGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupName.setStatus('current')
an80iIfPmpGroupTaggingControl = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("passThrough", 1), ("tagged", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupTaggingControl.setStatus('current')
an80iIfPmpGroupVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupVlanId.setStatus('current')
an80iIfPmpGroupDefPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupDefPriority.setStatus('current')
an80iIfPmpGroupSCEtherControl = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupSCEtherControl.setStatus('current')
an80iIfPmpGroupQosLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 53))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupQosLevel.setStatus('current')
an80iIfPmpGroupConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 8), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupConfigStatus.setStatus('current')
an80iIfPmpGroupRate = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setUnits('').setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupRate.setStatus('current')
an80iIfPmpGroupSStoSSMulticast = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setUnits('').setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpGroupSStoSSMulticast.setStatus('current')
an80iIfPmpGroupStatsTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5), )
if mibBuilder.loadTexts: an80iIfPmpGroupStatsTable.setStatus('current')
an80iIfPmpGroupStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupId"))
if mibBuilder.loadTexts: an80iIfPmpGroupStatsEntry.setStatus('current')
an80iIfPmpGroupPacketsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpGroupPacketsTx.setStatus('current')
an80iIfPmpGroupPacketDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpGroupPacketDisc.setStatus('current')
an80iIfPmpGroupStatsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 3), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpGroupStatsStatus.setStatus('current')
an80iIfPmpConnConfigTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6), )
if mibBuilder.loadTexts: an80iIfPmpConnConfigTable.setStatus('current')
an80iIfPmpConnConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpConnId"))
if mibBuilder.loadTexts: an80iIfPmpConnConfigEntry.setStatus('current')
an80iIfPmpConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 1023)))
if mibBuilder.loadTexts: an80iIfPmpConnId.setStatus('current')
an80iIfPmpConnName = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnName.setStatus('current')
an80iIfPmpConnTaggingControl = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("passThrough", 1), ("tagged", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnTaggingControl.setStatus('current')
an80iIfPmpConnVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnVlanId.setStatus('current')
an80iIfPmpConnDefPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnDefPriority.setStatus('current')
an80iIfPmpConnDefParentLink = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 1023))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnDefParentLink.setStatus('current')
an80iIfPmpConnDefParenGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 1023))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnDefParenGroup.setStatus('current')
an80iIfPmpConnDLQos = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 53))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnDLQos.setStatus('current')
an80iIfPmpConnULQos = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 53))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnULQos.setStatus('current')
an80iIfPmpConnConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 10), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: an80iIfPmpConnConfigStatus.setStatus('current')
an80iIfPmpConnStatsTable = MibTable((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7), )
if mibBuilder.loadTexts: an80iIfPmpConnStatsTable.setStatus('current')
an80iIfPmpConnStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1), ).setIndexNames((0, "REDLINE-AN80I-IF-MIB", "an80iIfPmpConnId"))
if mibBuilder.loadTexts: an80iIfPmpConnStatsEntry.setStatus('current')
an80iIfPmpConnDLPacketsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnDLPacketsTx.setStatus('current')
an80iIfPmpConnDLPacketsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnDLPacketsRx.setStatus('current')
an80iIfPmpConnDLPacketsDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnDLPacketsDisc.setStatus('current')
an80iIfPmpConnULPacketsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnULPacketsTx.setStatus('current')
an80iIfPmpConnULPacketsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnULPacketsRx.setStatus('current')
an80iIfPmpConnULPacketsDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnULPacketsDisc.setStatus('current')
an80iIfPmpConnStatsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 7), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: an80iIfPmpConnStatsStatus.setStatus('current')
redlineAn80iIfTrapDefinitions = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0))
an80iIfRegistrationFailedTrap = NotificationType((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0, 1)).setObjects(("REDLINE-AN80I-IF-MIB", "an80iIfLastMissedMacAddress"))
if mibBuilder.loadTexts: an80iIfRegistrationFailedTrap.setStatus('current')
an80iIfRegistrationOKTrap = NotificationType((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0, 2)).setObjects(("REDLINE-AN80I-IF-MIB", "an80iIfLastRegistMacAddress"))
if mibBuilder.loadTexts: an80iIfRegistrationOKTrap.setStatus('current')
redlineAn80iIfConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4))
redlineAn80iIfGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1))
redlineAn80iIfCompls = MibIdentifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 2))
redlineAn80iIfPtpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 1)).setObjects(("REDLINE-AN80I-IF-MIB", "an80iIfEncryptionControl"), ("REDLINE-AN80I-IF-MIB", "an80iIfModReduction"), ("REDLINE-AN80I-IF-MIB", "an80iIfAdaptiveMod"), ("REDLINE-AN80I-IF-MIB", "an80iIfUncodedBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfEncryptionKey"), ("REDLINE-AN80I-IF-MIB", "an80iIfPacketRetransControl"), ("REDLINE-AN80I-IF-MIB", "an80iIfLinkLenMode"), ("REDLINE-AN80I-IF-MIB", "an80iIfLinkLength"), ("REDLINE-AN80I-IF-MIB", "an80iIfCurrUncodedBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfPtpLinkStatus"), ("REDLINE-AN80I-IF-MIB", "an80iIfRxPackets"), ("REDLINE-AN80I-IF-MIB", "an80iIfRxPacketsReTx"), ("REDLINE-AN80I-IF-MIB", "an80iIfRxPacketsDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfTxPackets"), ("REDLINE-AN80I-IF-MIB", "an80iIfTxPacketsReTx"), ("REDLINE-AN80I-IF-MIB", "an80iIfTxPacketsDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfRssiMin"), ("REDLINE-AN80I-IF-MIB", "an80iIfRssiMean"), ("REDLINE-AN80I-IF-MIB", "an80iIfRssiMax"), ("REDLINE-AN80I-IF-MIB", "an80iIfAvrSinAdr"), ("REDLINE-AN80I-IF-MIB", "an80iIfCalcLinkDst"), ("REDLINE-AN80I-IF-MIB", "an80iIfLinkName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redlineAn80iIfPtpGroup = redlineAn80iIfPtpGroup.setStatus('current')
redlineAn80iIfPmpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 2)).setObjects(("REDLINE-AN80I-IF-MIB", "an80iIfLastMissedMacAddress"), ("REDLINE-AN80I-IF-MIB", "an80iIfLastRegistMacAddress"), ("REDLINE-AN80I-IF-MIB", "an80iIfDenyMacAddress"), ("REDLINE-AN80I-IF-MIB", "an80iIfLastRegistLinkId"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkName"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkPeerMacAddress"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkStatus"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkStatusCode"), ("REDLINE-AN80I-IF-MIB", "an80iIfRegPmpLinkConns"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkLostCount"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkUpTime"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkLostCount"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkCurrDLUncBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkLostCount"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLSinAdr"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLLostFrm"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLBlksTot"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLBlksRetr"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkDLBlksDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkCurrULUncBurstRate"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULRssi"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULSinAdr"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULLostFrm"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULBlksTot"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULBlksRetr"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpLinkULBlksDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupName"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupTaggingControl"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupVlanId"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupDefPriority"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupSCEtherControl"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupQosLevel"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupPacketsTx"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpGroupPacketDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnName"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnTaggingControl"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnVlanId"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDefPriority"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDefParentLink"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDefParenGroup"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDLQos"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnULQos"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDLPacketsTx"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDLPacketsRx"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnDLPacketsDisc"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnULPacketsTx"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnULPacketsRx"), ("REDLINE-AN80I-IF-MIB", "an80iIfPmpConnULPacketsDisc"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redlineAn80iIfPmpGroup = redlineAn80iIfPmpGroup.setStatus('current')
redlineAn80iIfNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 3)).setObjects(("REDLINE-AN80I-IF-MIB", "an80iIfRegistrationFailedTrap"), ("REDLINE-AN80I-IF-MIB", "an80iIfRegistrationOKTrap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redlineAn80iIfNotificationGroup = redlineAn80iIfNotificationGroup.setStatus('current')
redlineAn80iIfCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 2, 1)).setObjects(("REDLINE-AN80I-IF-MIB", "redlineAn80iIfPtpGroup"), ("REDLINE-AN80I-IF-MIB", "redlineAn80iIfPmpGroup"), ("REDLINE-AN80I-IF-MIB", "redlineAn80iIfNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redlineAn80iIfCompliance = redlineAn80iIfCompliance.setStatus('current')
mibBuilder.exportSymbols("REDLINE-AN80I-IF-MIB", redlineAn80iIfTrapDefinitions=redlineAn80iIfTrapDefinitions, an80iIfPmpConnVlanId=an80iIfPmpConnVlanId, an80iIfPtpLinkStatus=an80iIfPtpLinkStatus, an80iIfPmpConnTaggingControl=an80iIfPmpConnTaggingControl, an80iIfPmpLinkULBlksRetr=an80iIfPmpLinkULBlksRetr, an80iIfPmpGroupConfigTable=an80iIfPmpGroupConfigTable, an80iIfCalcLinkDst=an80iIfCalcLinkDst, an80iIfPmpGroupStatsTable=an80iIfPmpGroupStatsTable, an80iIfPmpLinkULBlksTot=an80iIfPmpLinkULBlksTot, an80iIfPmpGroupSCEtherControl=an80iIfPmpGroupSCEtherControl, an80iIfPmpLinkULLostFrm=an80iIfPmpLinkULLostFrm, an80iIfPmpConnConfigEntry=an80iIfPmpConnConfigEntry, an80iIfPmpConnULQos=an80iIfPmpConnULQos, PYSNMP_MODULE_ID=redlineAn80iIfMib, an80iIfEncryptionKey=an80iIfEncryptionKey, an80iIfPmpGroupName=an80iIfPmpGroupName, an80iIfPmpConnDLPacketsRx=an80iIfPmpConnDLPacketsRx, an80iIfPmpLinkConfigTable=an80iIfPmpLinkConfigTable, an80iIfPmpLinkCurrULUncBurstRate=an80iIfPmpLinkCurrULUncBurstRate, an80iIfTxPackets=an80iIfTxPackets, an80iIfCurrUncodedBurstRate=an80iIfCurrUncodedBurstRate, an80iIfRssiMin=an80iIfRssiMin, an80iIfAvrSinAdr=an80iIfAvrSinAdr, an80iIfPmpGroupTaggingControl=an80iIfPmpGroupTaggingControl, an80iIfPmpConnStatsTable=an80iIfPmpConnStatsTable, an80iIfPmpConnStatsStatus=an80iIfPmpConnStatsStatus, an80iIfPmpLinkULBurstRate=an80iIfPmpLinkULBurstRate, an80iIfPmpGroupQosLevel=an80iIfPmpGroupQosLevel, redlineAn80iIfPmpSsObjects=redlineAn80iIfPmpSsObjects, an80iIfPmpConnId=an80iIfPmpConnId, an80iIfLastRegistLinkId=an80iIfLastRegistLinkId, an80iIfPacketRetransControl=an80iIfPacketRetransControl, an80iIfPmpConnULPacketsTx=an80iIfPmpConnULPacketsTx, an80iIfAdaptiveMod=an80iIfAdaptiveMod, an80iIfLastMissedMacAddress=an80iIfLastMissedMacAddress, an80iIfRegistrationFailedTrap=an80iIfRegistrationFailedTrap, an80iIfPmpGroupId=an80iIfPmpGroupId, an80iIfPmpLinkId=an80iIfPmpLinkId, an80iIfPmpGroupVlanId=an80iIfPmpGroupVlanId, redlineAn80iIfCompls=redlineAn80iIfCompls, an80iIfPmpLinkStatsTable=an80iIfPmpLinkStatsTable, an80iIfPmpLinkStatusCode=an80iIfPmpLinkStatusCode, an80iIfPmpConnConfigStatus=an80iIfPmpConnConfigStatus, an80iIfPmpConnDLPacketsDisc=an80iIfPmpConnDLPacketsDisc, an80iIfRegPmpLinkConns=an80iIfRegPmpLinkConns, an80iIfPmpConnDLQos=an80iIfPmpConnDLQos, an80iIfTxPacketsDisc=an80iIfTxPacketsDisc, an80iIfDenyMacAddress=an80iIfDenyMacAddress, an80iIfPmpGroupRate=an80iIfPmpGroupRate, an80iIfPmpLinkCurrDLUncBurstRate=an80iIfPmpLinkCurrDLUncBurstRate, redlineAn80iIfNotificationGroup=redlineAn80iIfNotificationGroup, an80iIfPmpGroupStatsEntry=an80iIfPmpGroupStatsEntry, an80iIfTxPacketsReTx=an80iIfTxPacketsReTx, an80iIfPmpLinkName=an80iIfPmpLinkName, an80iIfPmpLinkDLBlksTot=an80iIfPmpLinkDLBlksTot, redlineAn80iIfMib=redlineAn80iIfMib, an80iIfPmpConnName=an80iIfPmpConnName, redlineAn80iIfPtpGroup=redlineAn80iIfPtpGroup, an80iIfEncryptionControl=an80iIfEncryptionControl, an80iIfPmpGroupConfigEntry=an80iIfPmpGroupConfigEntry, an80iIfPmpConnDefParenGroup=an80iIfPmpConnDefParenGroup, an80iIfPmpLinkStatus=an80iIfPmpLinkStatus, an80iIfPmpLinkStatsEntry=an80iIfPmpLinkStatsEntry, an80iIfPmpLinkDLSinAdr=an80iIfPmpLinkDLSinAdr, an80iIfPmpGroupPacketsTx=an80iIfPmpGroupPacketsTx, an80iIfPmpLinkDLBlksDisc=an80iIfPmpLinkDLBlksDisc, an80iIfPmpLinkLostCount=an80iIfPmpLinkLostCount, redlineAn80iIfConformance=redlineAn80iIfConformance, an80iIfPmpLinkStatsStatus=an80iIfPmpLinkStatsStatus, an80iIfPmpLinkPeerMacAddress=an80iIfPmpLinkPeerMacAddress, an80iIfLinkName=an80iIfLinkName, an80iIfPmpConnConfigTable=an80iIfPmpConnConfigTable, an80iIfPmpGroupDefPriority=an80iIfPmpGroupDefPriority, an80iIfPmpLinkULSinAdr=an80iIfPmpLinkULSinAdr, an80iIfPmpGroupPacketDisc=an80iIfPmpGroupPacketDisc, an80iIfPmpConnULPacketsDisc=an80iIfPmpConnULPacketsDisc, an80iIfPmpLinkULBlksDisc=an80iIfPmpLinkULBlksDisc, redlineAn80iIfPtpLinkStats=redlineAn80iIfPtpLinkStats, an80iIfLastRegistMacAddress=an80iIfLastRegistMacAddress, redlineAn80iIfPtpLinkConfig=redlineAn80iIfPtpLinkConfig, an80iIfPmpConnDefParentLink=an80iIfPmpConnDefParentLink, an80iIfPmpGroupStatsStatus=an80iIfPmpGroupStatsStatus, an80iIfPmpLinkDLLostFrm=an80iIfPmpLinkDLLostFrm, an80iIfUncodedBurstRate=an80iIfUncodedBurstRate, an80iIfPmpLinkUpTime=an80iIfPmpLinkUpTime, an80iIfLinkLength=an80iIfLinkLength, an80iIfPmpConnULPacketsRx=an80iIfPmpConnULPacketsRx, an80iIfRxPackets=an80iIfRxPackets, an80iIfPmpGroupSStoSSMulticast=an80iIfPmpGroupSStoSSMulticast, an80iIfRxPacketsDisc=an80iIfRxPacketsDisc, an80iIfPmpLinkConfigStatus=an80iIfPmpLinkConfigStatus, an80iIfPmpLinkConfigEntry=an80iIfPmpLinkConfigEntry, redlineAn80iIfCompliance=redlineAn80iIfCompliance, an80iIfPmpLinkDLBlksRetr=an80iIfPmpLinkDLBlksRetr, an80iIfPmpConnDefPriority=an80iIfPmpConnDefPriority, an80iIfPmpConnStatsEntry=an80iIfPmpConnStatsEntry, redlineAn80iIfPmpGroup=redlineAn80iIfPmpGroup, an80iIfModReduction=an80iIfModReduction, an80iIfPmpGroupConfigStatus=an80iIfPmpGroupConfigStatus, an80iIfRegistrationOKTrap=an80iIfRegistrationOKTrap, an80iIfRxPacketsReTx=an80iIfRxPacketsReTx, redlineAn80iIfPmpObjects=redlineAn80iIfPmpObjects, an80iIfPmpLinkULRssi=an80iIfPmpLinkULRssi, an80iIfPmpLinkDLBurstRate=an80iIfPmpLinkDLBurstRate, an80iIfPmpLinkDLRssi=an80iIfPmpLinkDLRssi, an80iIfPmpConnDLPacketsTx=an80iIfPmpConnDLPacketsTx, redlineAn80iIfGroups=redlineAn80iIfGroups, redlineAn80iIfPtpObjects=redlineAn80iIfPtpObjects, an80iIfLinkLenMode=an80iIfLinkLenMode, an80iIfRssiMax=an80iIfRssiMax, an80iIfRssiMean=an80iIfRssiMean)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, value_range_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint')
(redline_transmission,) = mibBuilder.importSymbols('REDLINE-MIB', 'redlineTransmission')
(notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, unsigned32, mib_identifier, object_identity, counter32, bits, iso, ip_address, module_identity, notification_type, counter64, time_ticks, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Unsigned32', 'MibIdentifier', 'ObjectIdentity', 'Counter32', 'Bits', 'iso', 'IpAddress', 'ModuleIdentity', 'NotificationType', 'Counter64', 'TimeTicks', 'Gauge32')
(display_string, row_status, textual_convention, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention', 'MacAddress')
redline_an80i_if_mib = module_identity((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2))
redlineAn80iIfMib.setRevisions(('2005-11-28 15:43',))
if mibBuilder.loadTexts:
redlineAn80iIfMib.setLastUpdated('200511281543Z')
if mibBuilder.loadTexts:
redlineAn80iIfMib.setOrganization('Redline Communications Inc.')
redline_an80i_if_ptp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1))
redline_an80i_if_ptp_link_config = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1))
an80i_if_encryption_control = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('off', 1), ('redline', 2), ('aes128', 3), ('aes192', 4), ('aes256', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfEncryptionControl.setStatus('current')
an80i_if_mod_reduction = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfModReduction.setStatus('current')
an80i_if_adaptive_mod = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfAdaptiveMod.setStatus('current')
an80i_if_uncoded_burst_rate = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setUnits('').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfUncodedBurstRate.setStatus('current')
an80i_if_encryption_key = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 5), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfEncryptionKey.setStatus('current')
an80i_if_packet_retrans_control = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfPacketRetransControl.setStatus('current')
an80i_if_link_len_mode = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('auto', 1), ('manual', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfLinkLenMode.setStatus('current')
an80i_if_link_length = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 8), integer32()).setUnits('Km').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfLinkLength.setStatus('current')
an80i_if_calc_link_dst = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 9), integer32()).setUnits('Km').setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfCalcLinkDst.setStatus('current')
an80i_if_link_name = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfLinkName.setStatus('current')
redline_an80i_if_ptp_link_stats = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2))
an80i_if_curr_uncoded_burst_rate = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 1), unsigned32()).setUnits('').setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfCurrUncodedBurstRate.setStatus('current')
an80i_if_ptp_link_status = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPtpLinkStatus.setStatus('current')
an80i_if_rx_packets = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRxPackets.setStatus('current')
an80i_if_rx_packets_re_tx = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRxPacketsReTx.setStatus('current')
an80i_if_rx_packets_disc = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRxPacketsDisc.setStatus('current')
an80i_if_tx_packets = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfTxPackets.setStatus('current')
an80i_if_tx_packets_re_tx = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 7), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfTxPacketsReTx.setStatus('current')
an80i_if_tx_packets_disc = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 8), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfTxPacketsDisc.setStatus('current')
an80i_if_rssi_min = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRssiMin.setStatus('current')
an80i_if_rssi_mean = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRssiMean.setStatus('current')
an80i_if_rssi_max = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRssiMax.setStatus('current')
an80i_if_avr_sin_adr = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 1, 2, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfAvrSinAdr.setStatus('current')
redline_an80i_if_pmp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2))
redline_an80i_if_pmp_ss_objects = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1))
an80i_if_last_missed_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfLastMissedMacAddress.setStatus('current')
an80i_if_last_regist_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 2), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfLastRegistMacAddress.setStatus('current')
an80i_if_deny_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 3), mac_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
an80iIfDenyMacAddress.setStatus('current')
an80i_if_last_regist_link_id = mib_scalar((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 1023))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfLastRegistLinkId.setStatus('current')
an80i_if_pmp_link_config_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2))
if mibBuilder.loadTexts:
an80iIfPmpLinkConfigTable.setStatus('current')
an80i_if_pmp_link_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkId'))
if mibBuilder.loadTexts:
an80iIfPmpLinkConfigEntry.setStatus('current')
an80i_if_pmp_link_id = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(4, 1023)))
if mibBuilder.loadTexts:
an80iIfPmpLinkId.setStatus('current')
an80i_if_pmp_link_name = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpLinkName.setStatus('current')
an80i_if_pmp_link_peer_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 3), mac_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpLinkPeerMacAddress.setStatus('current')
an80i_if_pmp_link_ul_burst_rate = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 4), unsigned32()).setUnits('').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpLinkULBurstRate.setStatus('current')
an80i_if_pmp_link_dl_burst_rate = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 5), unsigned32()).setUnits('').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLBurstRate.setStatus('current')
an80i_if_pmp_link_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 2, 1, 6), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpLinkConfigStatus.setStatus('current')
an80i_if_pmp_link_stats_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3))
if mibBuilder.loadTexts:
an80iIfPmpLinkStatsTable.setStatus('current')
an80i_if_pmp_link_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkId'))
if mibBuilder.loadTexts:
an80iIfPmpLinkStatsEntry.setStatus('current')
an80i_if_pmp_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkStatus.setStatus('current')
an80i_if_pmp_link_status_code = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkStatusCode.setStatus('current')
an80i_if_reg_pmp_link_conns = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfRegPmpLinkConns.setStatus('current')
an80i_if_pmp_link_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkUpTime.setStatus('current')
an80i_if_pmp_link_lost_count = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkLostCount.setStatus('current')
an80i_if_pmp_link_curr_dl_unc_burst_rate = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 6), unsigned32()).setUnits('').setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkCurrDLUncBurstRate.setStatus('current')
an80i_if_pmp_link_dl_rssi = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLRssi.setStatus('current')
an80i_if_pmp_link_dl_sin_adr = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLSinAdr.setStatus('current')
an80i_if_pmp_link_dl_lost_frm = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 9), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLLostFrm.setStatus('current')
an80i_if_pmp_link_dl_blks_tot = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 10), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLBlksTot.setStatus('current')
an80i_if_pmp_link_dl_blks_retr = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 11), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLBlksRetr.setStatus('current')
an80i_if_pmp_link_dl_blks_disc = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 12), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkDLBlksDisc.setStatus('current')
an80i_if_pmp_link_curr_ul_unc_burst_rate = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 13), unsigned32()).setUnits('Mb/s').setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkCurrULUncBurstRate.setStatus('current')
an80i_if_pmp_link_ul_rssi = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULRssi.setStatus('current')
an80i_if_pmp_link_ul_sin_adr = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULSinAdr.setStatus('current')
an80i_if_pmp_link_ul_lost_frm = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 16), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULLostFrm.setStatus('current')
an80i_if_pmp_link_ul_blks_tot = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 17), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULBlksTot.setStatus('current')
an80i_if_pmp_link_ul_blks_retr = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 18), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULBlksRetr.setStatus('current')
an80i_if_pmp_link_ul_blks_disc = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 19), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkULBlksDisc.setStatus('current')
an80i_if_pmp_link_stats_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 3, 1, 20), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpLinkStatsStatus.setStatus('current')
an80i_if_pmp_group_config_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4))
if mibBuilder.loadTexts:
an80iIfPmpGroupConfigTable.setStatus('current')
an80i_if_pmp_group_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupId'))
if mibBuilder.loadTexts:
an80iIfPmpGroupConfigEntry.setStatus('current')
an80i_if_pmp_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(4, 1023)))
if mibBuilder.loadTexts:
an80iIfPmpGroupId.setStatus('current')
an80i_if_pmp_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupName.setStatus('current')
an80i_if_pmp_group_tagging_control = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('passThrough', 1), ('tagged', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupTaggingControl.setStatus('current')
an80i_if_pmp_group_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupVlanId.setStatus('current')
an80i_if_pmp_group_def_priority = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupDefPriority.setStatus('current')
an80i_if_pmp_group_sc_ether_control = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupSCEtherControl.setStatus('current')
an80i_if_pmp_group_qos_level = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 53))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupQosLevel.setStatus('current')
an80i_if_pmp_group_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 8), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupConfigStatus.setStatus('current')
an80i_if_pmp_group_rate = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setUnits('').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupRate.setStatus('current')
an80i_if_pmp_group_s_sto_ss_multicast = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setUnits('').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpGroupSStoSSMulticast.setStatus('current')
an80i_if_pmp_group_stats_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5))
if mibBuilder.loadTexts:
an80iIfPmpGroupStatsTable.setStatus('current')
an80i_if_pmp_group_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupId'))
if mibBuilder.loadTexts:
an80iIfPmpGroupStatsEntry.setStatus('current')
an80i_if_pmp_group_packets_tx = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpGroupPacketsTx.setStatus('current')
an80i_if_pmp_group_packet_disc = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpGroupPacketDisc.setStatus('current')
an80i_if_pmp_group_stats_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 5, 1, 3), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpGroupStatsStatus.setStatus('current')
an80i_if_pmp_conn_config_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6))
if mibBuilder.loadTexts:
an80iIfPmpConnConfigTable.setStatus('current')
an80i_if_pmp_conn_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnId'))
if mibBuilder.loadTexts:
an80iIfPmpConnConfigEntry.setStatus('current')
an80i_if_pmp_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(4, 1023)))
if mibBuilder.loadTexts:
an80iIfPmpConnId.setStatus('current')
an80i_if_pmp_conn_name = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnName.setStatus('current')
an80i_if_pmp_conn_tagging_control = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('passThrough', 1), ('tagged', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnTaggingControl.setStatus('current')
an80i_if_pmp_conn_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnVlanId.setStatus('current')
an80i_if_pmp_conn_def_priority = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnDefPriority.setStatus('current')
an80i_if_pmp_conn_def_parent_link = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(4, 1023))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnDefParentLink.setStatus('current')
an80i_if_pmp_conn_def_paren_group = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(4, 1023))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnDefParenGroup.setStatus('current')
an80i_if_pmp_conn_dl_qos = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 53))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnDLQos.setStatus('current')
an80i_if_pmp_conn_ul_qos = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 53))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnULQos.setStatus('current')
an80i_if_pmp_conn_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 6, 1, 10), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
an80iIfPmpConnConfigStatus.setStatus('current')
an80i_if_pmp_conn_stats_table = mib_table((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7))
if mibBuilder.loadTexts:
an80iIfPmpConnStatsTable.setStatus('current')
an80i_if_pmp_conn_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1)).setIndexNames((0, 'REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnId'))
if mibBuilder.loadTexts:
an80iIfPmpConnStatsEntry.setStatus('current')
an80i_if_pmp_conn_dl_packets_tx = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnDLPacketsTx.setStatus('current')
an80i_if_pmp_conn_dl_packets_rx = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnDLPacketsRx.setStatus('current')
an80i_if_pmp_conn_dl_packets_disc = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnDLPacketsDisc.setStatus('current')
an80i_if_pmp_conn_ul_packets_tx = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnULPacketsTx.setStatus('current')
an80i_if_pmp_conn_ul_packets_rx = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnULPacketsRx.setStatus('current')
an80i_if_pmp_conn_ul_packets_disc = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnULPacketsDisc.setStatus('current')
an80i_if_pmp_conn_stats_status = mib_table_column((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 2, 7, 1, 7), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
an80iIfPmpConnStatsStatus.setStatus('current')
redline_an80i_if_trap_definitions = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0))
an80i_if_registration_failed_trap = notification_type((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0, 1)).setObjects(('REDLINE-AN80I-IF-MIB', 'an80iIfLastMissedMacAddress'))
if mibBuilder.loadTexts:
an80iIfRegistrationFailedTrap.setStatus('current')
an80i_if_registration_ok_trap = notification_type((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 0, 2)).setObjects(('REDLINE-AN80I-IF-MIB', 'an80iIfLastRegistMacAddress'))
if mibBuilder.loadTexts:
an80iIfRegistrationOKTrap.setStatus('current')
redline_an80i_if_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4))
redline_an80i_if_groups = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1))
redline_an80i_if_compls = mib_identifier((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 2))
redline_an80i_if_ptp_group = object_group((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 1)).setObjects(('REDLINE-AN80I-IF-MIB', 'an80iIfEncryptionControl'), ('REDLINE-AN80I-IF-MIB', 'an80iIfModReduction'), ('REDLINE-AN80I-IF-MIB', 'an80iIfAdaptiveMod'), ('REDLINE-AN80I-IF-MIB', 'an80iIfUncodedBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfEncryptionKey'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPacketRetransControl'), ('REDLINE-AN80I-IF-MIB', 'an80iIfLinkLenMode'), ('REDLINE-AN80I-IF-MIB', 'an80iIfLinkLength'), ('REDLINE-AN80I-IF-MIB', 'an80iIfCurrUncodedBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPtpLinkStatus'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRxPackets'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRxPacketsReTx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRxPacketsDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfTxPackets'), ('REDLINE-AN80I-IF-MIB', 'an80iIfTxPacketsReTx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfTxPacketsDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRssiMin'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRssiMean'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRssiMax'), ('REDLINE-AN80I-IF-MIB', 'an80iIfAvrSinAdr'), ('REDLINE-AN80I-IF-MIB', 'an80iIfCalcLinkDst'), ('REDLINE-AN80I-IF-MIB', 'an80iIfLinkName'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redline_an80i_if_ptp_group = redlineAn80iIfPtpGroup.setStatus('current')
redline_an80i_if_pmp_group = object_group((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 2)).setObjects(('REDLINE-AN80I-IF-MIB', 'an80iIfLastMissedMacAddress'), ('REDLINE-AN80I-IF-MIB', 'an80iIfLastRegistMacAddress'), ('REDLINE-AN80I-IF-MIB', 'an80iIfDenyMacAddress'), ('REDLINE-AN80I-IF-MIB', 'an80iIfLastRegistLinkId'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkName'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkPeerMacAddress'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkStatus'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkStatusCode'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRegPmpLinkConns'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkLostCount'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkUpTime'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkLostCount'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkCurrDLUncBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkLostCount'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLSinAdr'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLLostFrm'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLBlksTot'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLBlksRetr'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkDLBlksDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkCurrULUncBurstRate'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULRssi'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULSinAdr'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULLostFrm'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULBlksTot'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULBlksRetr'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpLinkULBlksDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupName'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupTaggingControl'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupVlanId'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupDefPriority'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupSCEtherControl'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupQosLevel'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupPacketsTx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpGroupPacketDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnName'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnTaggingControl'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnVlanId'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDefPriority'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDefParentLink'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDefParenGroup'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDLQos'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnULQos'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDLPacketsTx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDLPacketsRx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnDLPacketsDisc'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnULPacketsTx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnULPacketsRx'), ('REDLINE-AN80I-IF-MIB', 'an80iIfPmpConnULPacketsDisc'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redline_an80i_if_pmp_group = redlineAn80iIfPmpGroup.setStatus('current')
redline_an80i_if_notification_group = notification_group((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 1, 3)).setObjects(('REDLINE-AN80I-IF-MIB', 'an80iIfRegistrationFailedTrap'), ('REDLINE-AN80I-IF-MIB', 'an80iIfRegistrationOKTrap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redline_an80i_if_notification_group = redlineAn80iIfNotificationGroup.setStatus('current')
redline_an80i_if_compliance = module_compliance((1, 3, 6, 1, 4, 1, 10728, 2, 10, 2, 4, 2, 1)).setObjects(('REDLINE-AN80I-IF-MIB', 'redlineAn80iIfPtpGroup'), ('REDLINE-AN80I-IF-MIB', 'redlineAn80iIfPmpGroup'), ('REDLINE-AN80I-IF-MIB', 'redlineAn80iIfNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
redline_an80i_if_compliance = redlineAn80iIfCompliance.setStatus('current')
mibBuilder.exportSymbols('REDLINE-AN80I-IF-MIB', redlineAn80iIfTrapDefinitions=redlineAn80iIfTrapDefinitions, an80iIfPmpConnVlanId=an80iIfPmpConnVlanId, an80iIfPtpLinkStatus=an80iIfPtpLinkStatus, an80iIfPmpConnTaggingControl=an80iIfPmpConnTaggingControl, an80iIfPmpLinkULBlksRetr=an80iIfPmpLinkULBlksRetr, an80iIfPmpGroupConfigTable=an80iIfPmpGroupConfigTable, an80iIfCalcLinkDst=an80iIfCalcLinkDst, an80iIfPmpGroupStatsTable=an80iIfPmpGroupStatsTable, an80iIfPmpLinkULBlksTot=an80iIfPmpLinkULBlksTot, an80iIfPmpGroupSCEtherControl=an80iIfPmpGroupSCEtherControl, an80iIfPmpLinkULLostFrm=an80iIfPmpLinkULLostFrm, an80iIfPmpConnConfigEntry=an80iIfPmpConnConfigEntry, an80iIfPmpConnULQos=an80iIfPmpConnULQos, PYSNMP_MODULE_ID=redlineAn80iIfMib, an80iIfEncryptionKey=an80iIfEncryptionKey, an80iIfPmpGroupName=an80iIfPmpGroupName, an80iIfPmpConnDLPacketsRx=an80iIfPmpConnDLPacketsRx, an80iIfPmpLinkConfigTable=an80iIfPmpLinkConfigTable, an80iIfPmpLinkCurrULUncBurstRate=an80iIfPmpLinkCurrULUncBurstRate, an80iIfTxPackets=an80iIfTxPackets, an80iIfCurrUncodedBurstRate=an80iIfCurrUncodedBurstRate, an80iIfRssiMin=an80iIfRssiMin, an80iIfAvrSinAdr=an80iIfAvrSinAdr, an80iIfPmpGroupTaggingControl=an80iIfPmpGroupTaggingControl, an80iIfPmpConnStatsTable=an80iIfPmpConnStatsTable, an80iIfPmpConnStatsStatus=an80iIfPmpConnStatsStatus, an80iIfPmpLinkULBurstRate=an80iIfPmpLinkULBurstRate, an80iIfPmpGroupQosLevel=an80iIfPmpGroupQosLevel, redlineAn80iIfPmpSsObjects=redlineAn80iIfPmpSsObjects, an80iIfPmpConnId=an80iIfPmpConnId, an80iIfLastRegistLinkId=an80iIfLastRegistLinkId, an80iIfPacketRetransControl=an80iIfPacketRetransControl, an80iIfPmpConnULPacketsTx=an80iIfPmpConnULPacketsTx, an80iIfAdaptiveMod=an80iIfAdaptiveMod, an80iIfLastMissedMacAddress=an80iIfLastMissedMacAddress, an80iIfRegistrationFailedTrap=an80iIfRegistrationFailedTrap, an80iIfPmpGroupId=an80iIfPmpGroupId, an80iIfPmpLinkId=an80iIfPmpLinkId, an80iIfPmpGroupVlanId=an80iIfPmpGroupVlanId, redlineAn80iIfCompls=redlineAn80iIfCompls, an80iIfPmpLinkStatsTable=an80iIfPmpLinkStatsTable, an80iIfPmpLinkStatusCode=an80iIfPmpLinkStatusCode, an80iIfPmpConnConfigStatus=an80iIfPmpConnConfigStatus, an80iIfPmpConnDLPacketsDisc=an80iIfPmpConnDLPacketsDisc, an80iIfRegPmpLinkConns=an80iIfRegPmpLinkConns, an80iIfPmpConnDLQos=an80iIfPmpConnDLQos, an80iIfTxPacketsDisc=an80iIfTxPacketsDisc, an80iIfDenyMacAddress=an80iIfDenyMacAddress, an80iIfPmpGroupRate=an80iIfPmpGroupRate, an80iIfPmpLinkCurrDLUncBurstRate=an80iIfPmpLinkCurrDLUncBurstRate, redlineAn80iIfNotificationGroup=redlineAn80iIfNotificationGroup, an80iIfPmpGroupStatsEntry=an80iIfPmpGroupStatsEntry, an80iIfTxPacketsReTx=an80iIfTxPacketsReTx, an80iIfPmpLinkName=an80iIfPmpLinkName, an80iIfPmpLinkDLBlksTot=an80iIfPmpLinkDLBlksTot, redlineAn80iIfMib=redlineAn80iIfMib, an80iIfPmpConnName=an80iIfPmpConnName, redlineAn80iIfPtpGroup=redlineAn80iIfPtpGroup, an80iIfEncryptionControl=an80iIfEncryptionControl, an80iIfPmpGroupConfigEntry=an80iIfPmpGroupConfigEntry, an80iIfPmpConnDefParenGroup=an80iIfPmpConnDefParenGroup, an80iIfPmpLinkStatus=an80iIfPmpLinkStatus, an80iIfPmpLinkStatsEntry=an80iIfPmpLinkStatsEntry, an80iIfPmpLinkDLSinAdr=an80iIfPmpLinkDLSinAdr, an80iIfPmpGroupPacketsTx=an80iIfPmpGroupPacketsTx, an80iIfPmpLinkDLBlksDisc=an80iIfPmpLinkDLBlksDisc, an80iIfPmpLinkLostCount=an80iIfPmpLinkLostCount, redlineAn80iIfConformance=redlineAn80iIfConformance, an80iIfPmpLinkStatsStatus=an80iIfPmpLinkStatsStatus, an80iIfPmpLinkPeerMacAddress=an80iIfPmpLinkPeerMacAddress, an80iIfLinkName=an80iIfLinkName, an80iIfPmpConnConfigTable=an80iIfPmpConnConfigTable, an80iIfPmpGroupDefPriority=an80iIfPmpGroupDefPriority, an80iIfPmpLinkULSinAdr=an80iIfPmpLinkULSinAdr, an80iIfPmpGroupPacketDisc=an80iIfPmpGroupPacketDisc, an80iIfPmpConnULPacketsDisc=an80iIfPmpConnULPacketsDisc, an80iIfPmpLinkULBlksDisc=an80iIfPmpLinkULBlksDisc, redlineAn80iIfPtpLinkStats=redlineAn80iIfPtpLinkStats, an80iIfLastRegistMacAddress=an80iIfLastRegistMacAddress, redlineAn80iIfPtpLinkConfig=redlineAn80iIfPtpLinkConfig, an80iIfPmpConnDefParentLink=an80iIfPmpConnDefParentLink, an80iIfPmpGroupStatsStatus=an80iIfPmpGroupStatsStatus, an80iIfPmpLinkDLLostFrm=an80iIfPmpLinkDLLostFrm, an80iIfUncodedBurstRate=an80iIfUncodedBurstRate, an80iIfPmpLinkUpTime=an80iIfPmpLinkUpTime, an80iIfLinkLength=an80iIfLinkLength, an80iIfPmpConnULPacketsRx=an80iIfPmpConnULPacketsRx, an80iIfRxPackets=an80iIfRxPackets, an80iIfPmpGroupSStoSSMulticast=an80iIfPmpGroupSStoSSMulticast, an80iIfRxPacketsDisc=an80iIfRxPacketsDisc, an80iIfPmpLinkConfigStatus=an80iIfPmpLinkConfigStatus, an80iIfPmpLinkConfigEntry=an80iIfPmpLinkConfigEntry, redlineAn80iIfCompliance=redlineAn80iIfCompliance, an80iIfPmpLinkDLBlksRetr=an80iIfPmpLinkDLBlksRetr, an80iIfPmpConnDefPriority=an80iIfPmpConnDefPriority, an80iIfPmpConnStatsEntry=an80iIfPmpConnStatsEntry, redlineAn80iIfPmpGroup=redlineAn80iIfPmpGroup, an80iIfModReduction=an80iIfModReduction, an80iIfPmpGroupConfigStatus=an80iIfPmpGroupConfigStatus, an80iIfRegistrationOKTrap=an80iIfRegistrationOKTrap, an80iIfRxPacketsReTx=an80iIfRxPacketsReTx, redlineAn80iIfPmpObjects=redlineAn80iIfPmpObjects, an80iIfPmpLinkULRssi=an80iIfPmpLinkULRssi, an80iIfPmpLinkDLBurstRate=an80iIfPmpLinkDLBurstRate, an80iIfPmpLinkDLRssi=an80iIfPmpLinkDLRssi, an80iIfPmpConnDLPacketsTx=an80iIfPmpConnDLPacketsTx, redlineAn80iIfGroups=redlineAn80iIfGroups, redlineAn80iIfPtpObjects=redlineAn80iIfPtpObjects, an80iIfLinkLenMode=an80iIfLinkLenMode, an80iIfRssiMax=an80iIfRssiMax, an80iIfRssiMean=an80iIfRssiMean) |
class Solution:
def permuteUnique(self, nums):
dic = set()
for p in itertools.permutations(nums):
if p not in dic:
dic.add(p)
return list(dic) | class Solution:
def permute_unique(self, nums):
dic = set()
for p in itertools.permutations(nums):
if p not in dic:
dic.add(p)
return list(dic) |
def plot_series(time, series, format="-", start=0, end=None):
plt.plot(time[start:end], series[start:end], format)
plt.xlabel("Time")
plt.ylabel("Value")
plt.grid(True) | def plot_series(time, series, format='-', start=0, end=None):
plt.plot(time[start:end], series[start:end], format)
plt.xlabel('Time')
plt.ylabel('Value')
plt.grid(True) |
# the drivers that can be used to create thumbnails
drivers = ["gee", "planet"]
# the file types that can be digested by the app
types = ["points", "shapes"]
# define the extrems size of the thumbnails
min_image = 500
max_image = 10000
# define the extreme size of the square
min_square = 10
max_square = 500
# the color and size wich will be used for the display of the polygon
polygon_colors = {
"Red, Green, Blue": "blue",
"Nir, Red, Green": "yellow",
"Nir, Swir1, Red": "yellow",
"Swir2, Nir, Red": "yellow",
"Swir2, Swir1, Red": "yellow",
"Swir2, Nir, Green": "yellow",
"rgb": "blue",
"cir": "yellow",
}
polygon_width = 2
# the basemap used in the file tile
basemap = "Google Satellite"
| drivers = ['gee', 'planet']
types = ['points', 'shapes']
min_image = 500
max_image = 10000
min_square = 10
max_square = 500
polygon_colors = {'Red, Green, Blue': 'blue', 'Nir, Red, Green': 'yellow', 'Nir, Swir1, Red': 'yellow', 'Swir2, Nir, Red': 'yellow', 'Swir2, Swir1, Red': 'yellow', 'Swir2, Nir, Green': 'yellow', 'rgb': 'blue', 'cir': 'yellow'}
polygon_width = 2
basemap = 'Google Satellite' |
kbm_text_map = {
'ConceptMouseRecenter':'Mouse Recenter',
'ConceptContextualInteraction':'Contextual Interaction',
'ConceptPitch_P':'Pitch Up',
'ConceptPitch_N':'Pitch Down',
'ConceptYaw_P':'Yaw Right',
'ConceptYaw_N':'Yaw Left',
'ConceptRoll_P':'Roll Right',
'ConceptRoll_N':'Roll Left',
'ConceptThrottle_P':'Throttle Increase',
'ConceptThrottle_N':'Throttle Decrease',
'ConceptAfterburner':'Boost',
'ConceptDrift':'Drift (While Boosting)',
'ConceptFire':'Fire',
'ConceptFireAuxiliaryWeaponOneMain':'Fire Left Auxiliary',
'ConceptFireAuxiliaryWeaponOneDoubleTap':'Dumb-Fire Left Auxiliary',
'ConceptFireAuxiliaryWeaponTwoMain':'Fire Right Auxiliary',
'ConceptFireAuxiliaryWeaponTwoDoubleTap':'Dumb-Fire Right Auxiliary',
'ConceptFireCountermeasure':'Deploy Countermeasures',
'ConceptScoreboard':'Show Loadout',
'ConceptIncreaseEnginePower':'Increase Engine Power',
'ConceptMaximizeEnginePower':'Maximize Engine Power',
'ConceptIncreaseWeaponPower':'Increase Weapon Power',
'ConceptMaximizeWeaponPower':'Maximize Weapon Power',
'ConceptIncreaseShieldPower':'Increase Shield Power',
'ConceptMaximizeShieldPower':'Maximize Shield Power',
'ConceptResetSystemsPower':'Balance Power',
'ConceptShieldFront':'Focus Shields (Front)',
'ConceptShieldBack':'Focus Shields (Rear)',
'ConceptShieldBalance':'Focus Shields (Balanced)',
'ConceptEmergencyPowerTransferEngine':'Convert Power (Engines)',
'ConceptEmergencyPowerTransferWeapon':'Convert Power (Weapons)',
'ConceptEmergencyPowerTransferBalance':'Convert Power (Balanced)',
'ConceptPowerTransfer':'Focus Shields / Convert Power',
'ConceptPowerTransferMenuSelect':'Shield / Power Menu Select',
'ConceptPowerTransferMenuX_P':'Shield / Power Menu Right',
'ConceptPowerTransferMenuX_N':'Shield / Power Menu Left',
'ConceptPowerTransferMenuY_P':'Shield / Power Menu Up',
'ConceptPowerTransferMenuY_N':'Shield / Power Menu Down',
'ConceptTargetSelect':'Select Target Ahead',
'ConceptTargetCycleNext':'Cycle Targets',
'ConceptTargetHighestThreat':'Target My Attacker',
'ConceptTargetingMenu':'Targeting Wheel',
'ConceptTargetingMenuSelectTargetingMethod':'Targeting Wheel (Toggle Mode) - Select',
'ConceptTargetingMenuX_P':'Targeting Wheel X- Right',
'ConceptTargetingMenuX_N':'Targeting Wheel X - Left',
'ConceptTargetingMenuY_P':'Targeting Wheel Y - Up',
'ConceptTargetingMenuY_N':'Targeting Wheel Y - Down',
'ConceptTargetingMenuCycleAllEnemies':'Targeting Wheel Shortcut - All Enemies',
'ConceptTargetingMenuCycleEnemySquadron':'Targeting Wheel Shortcut - Enemy Squadron',
'ConceptTargetingMenuCycleEnemyAI':'Targeting Wheel Shortcut - Enemy AI',
'ConceptTargetingMenuCycleFlagshipSystems':'Targeting Wheel Shortcut - Flagship Systems',
'ConceptTargetingMenuCycleAllAllies':'Targeting Wheel Shortcut - All Allies',
'ConceptTargetingMenuCycleMySquadron':'Targeting Wheel Shortcut - My Squadron',
'ConceptTargetingMenuCycleTargetAttackers':'Targeting Wheel Shortcut - Target\'s Attackers',
'ConceptTargetingMenuCycleLastAttackers':'Targeting Wheel Shortcut - Last Attackers',
'ConceptTargetingMenuCycleObjectives':'Targeting Wheel Shortcut - Objectives',
'ConceptTargetingMenuCycleMissiles':'Targeting Wheel Shortcut - Missiles',
'ConceptTargetPing':'Ping Target',
'ConceptPingSelf':'Acknowledge Ping',
'ConceptCommMenu':'Comms Wheel',
'ConceptCommMenuSelect':'Comms Wheel (Toggle Mode) - Select',
'ConceptCommMenuX_P':'Comms Wheel - Navigate Right',
'ConceptCommMenuX_N':'Comms Wheel - Navigate Left',
'ConceptCommMenuY_P':'Comms Wheel - Navigate Up',
'ConceptCommMenuY_N':'Comms Wheel - Navigate Down',
'ConceptFreeLookTrigger':'Recalibrate VR',
'ConceptFreeLook':'Free Look',
'ConceptFreeLookCameraUp':'Free Look - Camera Pitch Up',
'ConceptFreeLookCameraDown':'Free Look - Camera Pitch Down',
'ConceptFreeLookCameraLeft':'Free Look - Camera Yaw Left',
'ConceptFreeLookCameraRight':'Free Look - Camera Yaw Right',
'ConceptCameraPitch_P':'Quick Look - Camera Pitch Up',
'ConceptCameraPitch_N':'Quick Look - Camera Pitch Down',
'ConceptCameraYaw_P':'Quick Look - Camera Yaw Left',
'ConceptCameraYaw_N':'Quick Look - Camera Yaw Right',
'ConceptCommMenuHelpMe':'Comms Wheel Shortcut - Help Me',
'ConceptCommMenuCheer':'Comms Wheel Shortcut - Cheer',
'ConceptCommMenuBrag':'Comms Wheel Shortcut - Brag',
'ConceptCommMenuBoo':'Comms Wheel Shortcut - Boo',
'ConceptCommMenuRegroup':'Comms Wheel Shortcut - Regroup',
'ConceptCommMenuBattleCry':'Comms Wheel Shortcut - Battle Cry',
'ConceptCommMenuThank':'Comms Wheel Shortcut - Thank',
'ConceptCommMenuPraise':'Comms Wheel Shortcut - Praise'
}
joystick_text_map = {
'ConceptMouseRecenter':'Mouse Recenter',
'ConceptContextualInteraction':'Contextual Interaction',
'ConceptPitch_P':'Pitch Up',
'ConceptPitch_N':'Pitch Down',
'ConceptYaw_P':'Yaw Right',
'ConceptYaw_N':'Yaw Left',
'ConceptRoll_P':'Roll Right',
'ConceptRoll_N':'Roll Left',
'ConceptThrottle_P':'Throttle Increase',
'ConceptThrottle_N':'Throttle Decrease',
'ConceptAfterburner':'Combo - Boost / Drift',
'ConceptDrift':'Drift',
'ConceptFire':'Fire',
'ConceptFireAuxiliaryWeaponOneMain':'Combo - Left Aux / Dumb-Fire',
'ConceptFireAuxiliaryWeaponOneDoubleTap':'Dumb-Fire Left Auxiliary',
'ConceptFireAuxiliaryWeaponTwoMain':'Combo - Right Aux / Dumb-Fire',
'ConceptFireAuxiliaryWeaponTwoDoubleTap':'Dumb-Fire Right Auxiliary',
'ConceptFireCountermeasure':'Deploy Countermeasures',
'ConceptScoreboard':'Show Loadout',
'ConceptControlEnginePower':'Combo - Power to Engines / Max',
'ConceptIncreaseEnginePower':'Increase Engine Power',
'ConceptMaximizeEnginePower':'Maximize Engine Power',
'ConceptControlWeaponPower':'Combo - Power to Weapons / Max',
'ConceptIncreaseWeaponPower':'Increase Weapon Power',
'ConceptMaximizeWeaponPower':'Maximize Weapon Power',
'ConceptControlShieldPower':'Combo - Power to Shields / Max',
'ConceptIncreaseShieldPower':'Increase Shield Power',
'ConceptMaximizeShieldPower':'Maximize Shield Power',
'ConceptControlBalancePower':'Balance Power',
'ConceptShieldFront':'Focus Shields (Front)',
'ConceptShieldBack':'Focus Shields (Rear)',
'ConceptShieldBalance':'Focus Shields (Balanced)',
'ConceptEmergencyPowerTransferEngine':'Convert Power (Engines)',
'ConceptEmergencyPowerTransferWeapon':'Convert Power (Weapons)',
'ConceptEmergencyPowerTransferBalance':'Convert Power (Balanced)',
'ConceptPowerTransfer':'Focus Shields / Convert Power',
'ConceptPowerTransferMenuSelect':'Shield / Power Menu Select',
'ConceptPowerTransferMenuX_P':'Shield / Power Menu Right',
'ConceptPowerTransferMenuX_N':'Shield / Power Menu Left',
'ConceptPowerTransferMenuY_P':'Shield / Power Menu Up',
'ConceptPowerTransferMenuY_N':'Shield / Power Menu Down',
'ConceptTargeting':'Combo - Select Target Ahead / Targeting Wheel',
'ConceptTargetSelect':'Select Target Ahead',
'ConceptTargetCycle':'Combo - Cycle Targets / Target My Attacker',
'ConceptTargetCycleNext':'Cycle Targets',
'ConceptTargetHighestThreat':'Target My Attacker',
'ConceptTargetingMenu':'Targeting Wheel',
'ConceptTargetingMenuSelectTargetingMethod':'Targeting Wheel (Toggle Mode) - Select',
'ConceptTargetingMenuX_P':'Targeting Wheel X - Right',
'ConceptTargetingMenuX_N':'Targeting Wheel X - Left',
'ConceptTargetingMenuY_P':'Targeting Wheel Y - Up',
'ConceptTargetingMenuY_N':'Targeting Wheel Y - Down',
'ConceptTargetingMenuCycleAllEnemies':'Targeting Wheel Shortcut - All Enemies',
'ConceptTargetingMenuCycleEnemySquadron':'Targeting Wheel Shortcut - Enemy Squadron',
'ConceptTargetingMenuCycleEnemyAI':'Targeting Wheel Shortcut - Enemy AI',
'ConceptTargetingMenuCycleFlagshipSystems':'Targeting Wheel Shortcut - Flagship Systems',
'ConceptTargetingMenuCycleAllAllies':'Targeting Wheel Shortcut - All Allies',
'ConceptTargetingMenuCycleMySquadron':'Targeting Wheel Shortcut - My Squadron',
'ConceptTargetingMenuCycleTargetAttackers':'Targeting Wheel Shortcut - Target\'s Attackers',
'ConceptTargetingMenuCycleLastAttackers':'Targeting Wheel Shortcut - Last Attackers',
'ConceptTargetingMenuCycleObjectives':'Targeting Wheel Shortcut - Objectives',
'ConceptTargetingMenuCycleMissiles':'Targeting Wheel Shortcut - Missiles',
'ConceptCommunication':'Combo - Ping / Ack / Comms Wheel',
'ConceptTargetPing':'Ping Target',
'ConceptPingSelf':'Acknowledge Ping',
'ConceptCommMenu':'Comms Wheel',
'ConceptCommMenuSelect':'Comms Wheel (Toggle Mode) - Select',
'ConceptCommMenuX_P':'Comms Wheel - Navigate Right',
'ConceptCommMenuX_N':'Comms Wheel - Navigate Left',
'ConceptCommMenuY_P':'Comms Wheel - Navigate Up',
'ConceptCommMenuY_N':'Comms Wheel - Navigate Down',
'ConceptFreeLookTrigger':'Recalibrate VR',
'ConceptFreeLook':'Free Look',
'ConceptFreeLookCameraUp':'Free Look - Camera Pitch Up',
'ConceptFreeLookCameraDown':'Free Look - Camera Pitch Down',
'ConceptFreeLookCameraLeft':'Free Look - Camera Yaw Left',
'ConceptFreeLookCameraRight':'Free Look - Camera Yaw Right',
'ConceptCameraPitch_P':'Quick Look - Camera Pitch Up',
'ConceptCameraPitch_N':'Quick Look - Camera Pitch Down',
'ConceptCameraYaw_P':'Quick Look - Camera Yaw Left',
'ConceptCameraYaw_N':'Quick Look - Camera Yaw Right',
'ConceptCommMenuHelpMe':'Comms Wheel Shortcut - Help Me',
'ConceptCommMenuCheer':'Comms Wheel Shortcut - Cheer',
'ConceptCommMenuBrag':'Comms Wheel Shortcut - Brag',
'ConceptCommMenuBoo':'Comms Wheel Shortcut - Boo',
'ConceptCommMenuRegroup':'Comms Wheel Shortcut - Regroup',
'ConceptCommMenuBattleCry':'Comms Wheel Shortcut - Battle Cry',
'ConceptCommMenuThank':'Comms Wheel Shortcut - Thank',
'ConceptCommMenuPraise':'Comms Wheel Shortcut - Praise'
} | kbm_text_map = {'ConceptMouseRecenter': 'Mouse Recenter', 'ConceptContextualInteraction': 'Contextual Interaction', 'ConceptPitch_P': 'Pitch Up', 'ConceptPitch_N': 'Pitch Down', 'ConceptYaw_P': 'Yaw Right', 'ConceptYaw_N': 'Yaw Left', 'ConceptRoll_P': 'Roll Right', 'ConceptRoll_N': 'Roll Left', 'ConceptThrottle_P': 'Throttle Increase', 'ConceptThrottle_N': 'Throttle Decrease', 'ConceptAfterburner': 'Boost', 'ConceptDrift': 'Drift (While Boosting)', 'ConceptFire': 'Fire', 'ConceptFireAuxiliaryWeaponOneMain': 'Fire Left Auxiliary', 'ConceptFireAuxiliaryWeaponOneDoubleTap': 'Dumb-Fire Left Auxiliary', 'ConceptFireAuxiliaryWeaponTwoMain': 'Fire Right Auxiliary', 'ConceptFireAuxiliaryWeaponTwoDoubleTap': 'Dumb-Fire Right Auxiliary', 'ConceptFireCountermeasure': 'Deploy Countermeasures', 'ConceptScoreboard': 'Show Loadout', 'ConceptIncreaseEnginePower': 'Increase Engine Power', 'ConceptMaximizeEnginePower': 'Maximize Engine Power', 'ConceptIncreaseWeaponPower': 'Increase Weapon Power', 'ConceptMaximizeWeaponPower': 'Maximize Weapon Power', 'ConceptIncreaseShieldPower': 'Increase Shield Power', 'ConceptMaximizeShieldPower': 'Maximize Shield Power', 'ConceptResetSystemsPower': 'Balance Power', 'ConceptShieldFront': 'Focus Shields (Front)', 'ConceptShieldBack': 'Focus Shields (Rear)', 'ConceptShieldBalance': 'Focus Shields (Balanced)', 'ConceptEmergencyPowerTransferEngine': 'Convert Power (Engines)', 'ConceptEmergencyPowerTransferWeapon': 'Convert Power (Weapons)', 'ConceptEmergencyPowerTransferBalance': 'Convert Power (Balanced)', 'ConceptPowerTransfer': 'Focus Shields / Convert Power', 'ConceptPowerTransferMenuSelect': 'Shield / Power Menu Select', 'ConceptPowerTransferMenuX_P': 'Shield / Power Menu Right', 'ConceptPowerTransferMenuX_N': 'Shield / Power Menu Left', 'ConceptPowerTransferMenuY_P': 'Shield / Power Menu Up', 'ConceptPowerTransferMenuY_N': 'Shield / Power Menu Down', 'ConceptTargetSelect': 'Select Target Ahead', 'ConceptTargetCycleNext': 'Cycle Targets', 'ConceptTargetHighestThreat': 'Target My Attacker', 'ConceptTargetingMenu': 'Targeting Wheel', 'ConceptTargetingMenuSelectTargetingMethod': 'Targeting Wheel (Toggle Mode) - Select', 'ConceptTargetingMenuX_P': 'Targeting Wheel X- Right', 'ConceptTargetingMenuX_N': 'Targeting Wheel X - Left', 'ConceptTargetingMenuY_P': 'Targeting Wheel Y - Up', 'ConceptTargetingMenuY_N': 'Targeting Wheel Y - Down', 'ConceptTargetingMenuCycleAllEnemies': 'Targeting Wheel Shortcut - All Enemies', 'ConceptTargetingMenuCycleEnemySquadron': 'Targeting Wheel Shortcut - Enemy Squadron', 'ConceptTargetingMenuCycleEnemyAI': 'Targeting Wheel Shortcut - Enemy AI', 'ConceptTargetingMenuCycleFlagshipSystems': 'Targeting Wheel Shortcut - Flagship Systems', 'ConceptTargetingMenuCycleAllAllies': 'Targeting Wheel Shortcut - All Allies', 'ConceptTargetingMenuCycleMySquadron': 'Targeting Wheel Shortcut - My Squadron', 'ConceptTargetingMenuCycleTargetAttackers': "Targeting Wheel Shortcut - Target's Attackers", 'ConceptTargetingMenuCycleLastAttackers': 'Targeting Wheel Shortcut - Last Attackers', 'ConceptTargetingMenuCycleObjectives': 'Targeting Wheel Shortcut - Objectives', 'ConceptTargetingMenuCycleMissiles': 'Targeting Wheel Shortcut - Missiles', 'ConceptTargetPing': 'Ping Target', 'ConceptPingSelf': 'Acknowledge Ping', 'ConceptCommMenu': 'Comms Wheel', 'ConceptCommMenuSelect': 'Comms Wheel (Toggle Mode) - Select', 'ConceptCommMenuX_P': 'Comms Wheel - Navigate Right', 'ConceptCommMenuX_N': 'Comms Wheel - Navigate Left', 'ConceptCommMenuY_P': 'Comms Wheel - Navigate Up', 'ConceptCommMenuY_N': 'Comms Wheel - Navigate Down', 'ConceptFreeLookTrigger': 'Recalibrate VR', 'ConceptFreeLook': 'Free Look', 'ConceptFreeLookCameraUp': 'Free Look - Camera Pitch Up', 'ConceptFreeLookCameraDown': 'Free Look - Camera Pitch Down', 'ConceptFreeLookCameraLeft': 'Free Look - Camera Yaw Left', 'ConceptFreeLookCameraRight': 'Free Look - Camera Yaw Right', 'ConceptCameraPitch_P': 'Quick Look - Camera Pitch Up', 'ConceptCameraPitch_N': 'Quick Look - Camera Pitch Down', 'ConceptCameraYaw_P': 'Quick Look - Camera Yaw Left', 'ConceptCameraYaw_N': 'Quick Look - Camera Yaw Right', 'ConceptCommMenuHelpMe': 'Comms Wheel Shortcut - Help Me', 'ConceptCommMenuCheer': 'Comms Wheel Shortcut - Cheer', 'ConceptCommMenuBrag': 'Comms Wheel Shortcut - Brag', 'ConceptCommMenuBoo': 'Comms Wheel Shortcut - Boo', 'ConceptCommMenuRegroup': 'Comms Wheel Shortcut - Regroup', 'ConceptCommMenuBattleCry': 'Comms Wheel Shortcut - Battle Cry', 'ConceptCommMenuThank': 'Comms Wheel Shortcut - Thank', 'ConceptCommMenuPraise': 'Comms Wheel Shortcut - Praise'}
joystick_text_map = {'ConceptMouseRecenter': 'Mouse Recenter', 'ConceptContextualInteraction': 'Contextual Interaction', 'ConceptPitch_P': 'Pitch Up', 'ConceptPitch_N': 'Pitch Down', 'ConceptYaw_P': 'Yaw Right', 'ConceptYaw_N': 'Yaw Left', 'ConceptRoll_P': 'Roll Right', 'ConceptRoll_N': 'Roll Left', 'ConceptThrottle_P': 'Throttle Increase', 'ConceptThrottle_N': 'Throttle Decrease', 'ConceptAfterburner': 'Combo - Boost / Drift', 'ConceptDrift': 'Drift', 'ConceptFire': 'Fire', 'ConceptFireAuxiliaryWeaponOneMain': 'Combo - Left Aux / Dumb-Fire', 'ConceptFireAuxiliaryWeaponOneDoubleTap': 'Dumb-Fire Left Auxiliary', 'ConceptFireAuxiliaryWeaponTwoMain': 'Combo - Right Aux / Dumb-Fire', 'ConceptFireAuxiliaryWeaponTwoDoubleTap': 'Dumb-Fire Right Auxiliary', 'ConceptFireCountermeasure': 'Deploy Countermeasures', 'ConceptScoreboard': 'Show Loadout', 'ConceptControlEnginePower': 'Combo - Power to Engines / Max', 'ConceptIncreaseEnginePower': 'Increase Engine Power', 'ConceptMaximizeEnginePower': 'Maximize Engine Power', 'ConceptControlWeaponPower': 'Combo - Power to Weapons / Max', 'ConceptIncreaseWeaponPower': 'Increase Weapon Power', 'ConceptMaximizeWeaponPower': 'Maximize Weapon Power', 'ConceptControlShieldPower': 'Combo - Power to Shields / Max', 'ConceptIncreaseShieldPower': 'Increase Shield Power', 'ConceptMaximizeShieldPower': 'Maximize Shield Power', 'ConceptControlBalancePower': 'Balance Power', 'ConceptShieldFront': 'Focus Shields (Front)', 'ConceptShieldBack': 'Focus Shields (Rear)', 'ConceptShieldBalance': 'Focus Shields (Balanced)', 'ConceptEmergencyPowerTransferEngine': 'Convert Power (Engines)', 'ConceptEmergencyPowerTransferWeapon': 'Convert Power (Weapons)', 'ConceptEmergencyPowerTransferBalance': 'Convert Power (Balanced)', 'ConceptPowerTransfer': 'Focus Shields / Convert Power', 'ConceptPowerTransferMenuSelect': 'Shield / Power Menu Select', 'ConceptPowerTransferMenuX_P': 'Shield / Power Menu Right', 'ConceptPowerTransferMenuX_N': 'Shield / Power Menu Left', 'ConceptPowerTransferMenuY_P': 'Shield / Power Menu Up', 'ConceptPowerTransferMenuY_N': 'Shield / Power Menu Down', 'ConceptTargeting': 'Combo - Select Target Ahead / Targeting Wheel', 'ConceptTargetSelect': 'Select Target Ahead', 'ConceptTargetCycle': 'Combo - Cycle Targets / Target My Attacker', 'ConceptTargetCycleNext': 'Cycle Targets', 'ConceptTargetHighestThreat': 'Target My Attacker', 'ConceptTargetingMenu': 'Targeting Wheel', 'ConceptTargetingMenuSelectTargetingMethod': 'Targeting Wheel (Toggle Mode) - Select', 'ConceptTargetingMenuX_P': 'Targeting Wheel X - Right', 'ConceptTargetingMenuX_N': 'Targeting Wheel X - Left', 'ConceptTargetingMenuY_P': 'Targeting Wheel Y - Up', 'ConceptTargetingMenuY_N': 'Targeting Wheel Y - Down', 'ConceptTargetingMenuCycleAllEnemies': 'Targeting Wheel Shortcut - All Enemies', 'ConceptTargetingMenuCycleEnemySquadron': 'Targeting Wheel Shortcut - Enemy Squadron', 'ConceptTargetingMenuCycleEnemyAI': 'Targeting Wheel Shortcut - Enemy AI', 'ConceptTargetingMenuCycleFlagshipSystems': 'Targeting Wheel Shortcut - Flagship Systems', 'ConceptTargetingMenuCycleAllAllies': 'Targeting Wheel Shortcut - All Allies', 'ConceptTargetingMenuCycleMySquadron': 'Targeting Wheel Shortcut - My Squadron', 'ConceptTargetingMenuCycleTargetAttackers': "Targeting Wheel Shortcut - Target's Attackers", 'ConceptTargetingMenuCycleLastAttackers': 'Targeting Wheel Shortcut - Last Attackers', 'ConceptTargetingMenuCycleObjectives': 'Targeting Wheel Shortcut - Objectives', 'ConceptTargetingMenuCycleMissiles': 'Targeting Wheel Shortcut - Missiles', 'ConceptCommunication': 'Combo - Ping / Ack / Comms Wheel', 'ConceptTargetPing': 'Ping Target', 'ConceptPingSelf': 'Acknowledge Ping', 'ConceptCommMenu': 'Comms Wheel', 'ConceptCommMenuSelect': 'Comms Wheel (Toggle Mode) - Select', 'ConceptCommMenuX_P': 'Comms Wheel - Navigate Right', 'ConceptCommMenuX_N': 'Comms Wheel - Navigate Left', 'ConceptCommMenuY_P': 'Comms Wheel - Navigate Up', 'ConceptCommMenuY_N': 'Comms Wheel - Navigate Down', 'ConceptFreeLookTrigger': 'Recalibrate VR', 'ConceptFreeLook': 'Free Look', 'ConceptFreeLookCameraUp': 'Free Look - Camera Pitch Up', 'ConceptFreeLookCameraDown': 'Free Look - Camera Pitch Down', 'ConceptFreeLookCameraLeft': 'Free Look - Camera Yaw Left', 'ConceptFreeLookCameraRight': 'Free Look - Camera Yaw Right', 'ConceptCameraPitch_P': 'Quick Look - Camera Pitch Up', 'ConceptCameraPitch_N': 'Quick Look - Camera Pitch Down', 'ConceptCameraYaw_P': 'Quick Look - Camera Yaw Left', 'ConceptCameraYaw_N': 'Quick Look - Camera Yaw Right', 'ConceptCommMenuHelpMe': 'Comms Wheel Shortcut - Help Me', 'ConceptCommMenuCheer': 'Comms Wheel Shortcut - Cheer', 'ConceptCommMenuBrag': 'Comms Wheel Shortcut - Brag', 'ConceptCommMenuBoo': 'Comms Wheel Shortcut - Boo', 'ConceptCommMenuRegroup': 'Comms Wheel Shortcut - Regroup', 'ConceptCommMenuBattleCry': 'Comms Wheel Shortcut - Battle Cry', 'ConceptCommMenuThank': 'Comms Wheel Shortcut - Thank', 'ConceptCommMenuPraise': 'Comms Wheel Shortcut - Praise'} |
# *************************** LISTS FUNCTIONS *******************************
evenNum = [16, 4, 6, 8, 10, 12, 2 , 13]
animalsPet = ["Cow","Rat","Cat","Goat","Goat"]
animalsWild = ["Lion", "Tiger" , "Elephant"]
print(evenNum)
print(animalsPet)
print(animalsWild)
#Extend Function = it is use to extend or merge two lists we will use.
animalsPet.extend(animalsWild)
print(animalsPet)
#Append Function = it is use to add a data in a list it will add data in last
animalsPet.append("Rabbit")
print(animalsPet)
#Insert Function = it is use to insert data in any position by passing parameter of Index position where you want to add data in list
animalsWild.insert(2, "Jackal")
print(animalsWild)
#Remove Function = It is use to remove any element from data set list
evenNum.remove(13)
print(evenNum)
#Clear function = It is use to clear all the elements from data set list
evenNum.clear()
print(evenNum)
#Pop function = It is use to remove last element from the data set list
animalsPet.pop()
print(animalsPet)
#index function inside print command tells about at which index searched data is stored
print(animalsPet.index("Goat"))
#count function used to count the number of repeating elements inside the list
print(animalsPet.count("Goat"))
#sort function is used to sort data in assending order/alphabetical order
animalsPet.sort()
print(animalsPet)
evenNum = [16, 4, 6, 8, 10, 12, 2 , 13]
evenNum.sort()
print(evenNum)
#Reverse Function it is use to reverse the data element listing
evenNum.reverse()
print(evenNum)
#Copy function it is used to create a clone/copy of the data from list
animals = animalsWild.copy()
print(animals)
| even_num = [16, 4, 6, 8, 10, 12, 2, 13]
animals_pet = ['Cow', 'Rat', 'Cat', 'Goat', 'Goat']
animals_wild = ['Lion', 'Tiger', 'Elephant']
print(evenNum)
print(animalsPet)
print(animalsWild)
animalsPet.extend(animalsWild)
print(animalsPet)
animalsPet.append('Rabbit')
print(animalsPet)
animalsWild.insert(2, 'Jackal')
print(animalsWild)
evenNum.remove(13)
print(evenNum)
evenNum.clear()
print(evenNum)
animalsPet.pop()
print(animalsPet)
print(animalsPet.index('Goat'))
print(animalsPet.count('Goat'))
animalsPet.sort()
print(animalsPet)
even_num = [16, 4, 6, 8, 10, 12, 2, 13]
evenNum.sort()
print(evenNum)
evenNum.reverse()
print(evenNum)
animals = animalsWild.copy()
print(animals) |
class Solution:
def isPowerOfThree(self, n: int) -> bool:
if n<=0:
return False
while(n>1):
if n%3==0:
n/=3
else:
return False
return True
| class Solution:
def is_power_of_three(self, n: int) -> bool:
if n <= 0:
return False
while n > 1:
if n % 3 == 0:
n /= 3
else:
return False
return True |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.