content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
class FindSumPairs:
def __init__(self, nums1: List[int], nums2: List[int]):
self.nums1 = nums1
self.nums2 = nums2
self.count2 = Counter(nums2)
def add(self, index: int, val: int) -> None:
self.count2[self.nums2[index]] -= 1
self.nums2[index] += val
self.count2[self.nums2[index]] += 1
def count(self, tot: int) -> int:
ans = 0
for num in self.nums1:
ans += self.count2[tot - num]
return ans
| class Findsumpairs:
def __init__(self, nums1: List[int], nums2: List[int]):
self.nums1 = nums1
self.nums2 = nums2
self.count2 = counter(nums2)
def add(self, index: int, val: int) -> None:
self.count2[self.nums2[index]] -= 1
self.nums2[index] += val
self.count2[self.nums2[index]] += 1
def count(self, tot: int) -> int:
ans = 0
for num in self.nums1:
ans += self.count2[tot - num]
return ans |
def main(request, response):
name = request.GET.first("name")
source_origin = request.headers.get("origin", None);
response.headers.set("Set-Cookie", name + "=value")
response.headers.set("Access-Control-Allow-Origin", source_origin)
response.headers.set("Access-Control-Allow-Credentials", "true")
| def main(request, response):
name = request.GET.first('name')
source_origin = request.headers.get('origin', None)
response.headers.set('Set-Cookie', name + '=value')
response.headers.set('Access-Control-Allow-Origin', source_origin)
response.headers.set('Access-Control-Allow-Credentials', 'true') |
__all__ = ("InputDataError",)
class InputDataError(ValueError):
pass
| __all__ = ('InputDataError',)
class Inputdataerror(ValueError):
pass |
# 04. Forum Topics
line = input()
forum_dict = {}
# def unique(sequence):
# seen = set()
# return [x for x in sequence if not(x in seen or seen.add(x))]
while not line == "filter":
words = line.split(" -> ")
topic = words[0]
hashtags = words[1].split(", ")
if topic not in forum_dict.keys():
forum_dict[topic] = hashtags
else:
forum_dict[topic].extend(hashtags)
line = input()
sequence = set(input().split(', '))
for topic, hashtags in forum_dict.items():
ht_set = sorted(set(hashtags), key= hashtags.index)
if sequence.issubset(ht_set):
print(f"{topic} | {', '.join(map(lambda x: '#' + x, ht_set))}")
| line = input()
forum_dict = {}
while not line == 'filter':
words = line.split(' -> ')
topic = words[0]
hashtags = words[1].split(', ')
if topic not in forum_dict.keys():
forum_dict[topic] = hashtags
else:
forum_dict[topic].extend(hashtags)
line = input()
sequence = set(input().split(', '))
for (topic, hashtags) in forum_dict.items():
ht_set = sorted(set(hashtags), key=hashtags.index)
if sequence.issubset(ht_set):
print(f"{topic} | {', '.join(map(lambda x: '#' + x, ht_set))}") |
n=int(input())%2
if n==0:
print("White")
else:
print("Black") | n = int(input()) % 2
if n == 0:
print('White')
else:
print('Black') |
{
'targets' : [
{
'target_name' : 'hdfs3_bindings',
'sources' : [
'src/addon.cc',
'src/HDFileSystem.cc',
'src/HDFile.cc'
],
'xcode_settings': {
'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unused-result']
},
'cflags' : ['-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-result'],
'include_dirs': [
"<!(node -e \"require('nan')\")"
],
'conditions' : [
[ 'OS == "linux"', { 'libraries' : [ '-lhdfs3' ], 'cflags' : [ '-g' ] }],
[ 'OS == "mac"', { 'libraries' : [ '-lhdfs3' ] }
]
]
}
]
} | {'targets': [{'target_name': 'hdfs3_bindings', 'sources': ['src/addon.cc', 'src/HDFileSystem.cc', 'src/HDFile.cc'], 'xcode_settings': {'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unused-result']}, 'cflags': ['-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-result'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'conditions': [['OS == "linux"', {'libraries': ['-lhdfs3'], 'cflags': ['-g']}], ['OS == "mac"', {'libraries': ['-lhdfs3']}]]}]} |
expected_output = {
"max_num_of_service_instances": 32768,
"service_instance": {
2051: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2052: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2053: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2054: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2055: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2056: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2057: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2058: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2059: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2060: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2061: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2062: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2063: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2064: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2065: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2066: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2067: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2068: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2069: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2070: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2071: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2072: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2073: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2074: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2075: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2076: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2077: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2078: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2079: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2080: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2081: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2082: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2083: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2084: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2085: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2086: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2087: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2088: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2089: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2090: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2091: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
},
}
| expected_output = {'max_num_of_service_instances': 32768, 'service_instance': {2051: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2052: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2053: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2054: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2055: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2056: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2057: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2058: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2059: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2060: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2061: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2062: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2063: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2064: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2065: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2066: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2067: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2068: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2069: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2070: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2071: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2072: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2073: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2074: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2075: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2076: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2077: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2078: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2079: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2080: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2081: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2082: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2083: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2084: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2085: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2086: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2087: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2088: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2089: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2090: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2091: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}}} |
# Generated by h2py from /usr/include/sys/socket.h
NC_TPI_CLTS = 1
NC_TPI_COTS = 2
NC_TPI_COTS_ORD = 3
NC_TPI_RAW = 4
SOCK_STREAM = NC_TPI_COTS
SOCK_DGRAM = NC_TPI_CLTS
SOCK_RAW = NC_TPI_RAW
SOCK_RDM = 5
SOCK_SEQPACKET = 6
SO_DEBUG = 0x0001
SO_ACCEPTCONN = 0x0002
SO_REUSEADDR = 0x0004
SO_KEEPALIVE = 0x0008
SO_DONTROUTE = 0x0010
SO_BROADCAST = 0x0020
SO_USELOOPBACK = 0x0040
SO_LINGER = 0x0080
SO_OOBINLINE = 0x0100
SO_DONTLINGER = (~SO_LINGER)
SO_SNDBUF = 0x1001
SO_RCVBUF = 0x1002
SO_SNDLOWAT = 0x1003
SO_RCVLOWAT = 0x1004
SO_SNDTIMEO = 0x1005
SO_RCVTIMEO = 0x1006
SO_ERROR = 0x1007
SO_TYPE = 0x1008
SO_PROTOTYPE = 0x1009
SOL_SOCKET = 0xffff
AF_UNSPEC = 0
AF_UNIX = 1
AF_INET = 2
AF_IMPLINK = 3
AF_PUP = 4
AF_CHAOS = 5
AF_NS = 6
AF_NBS = 7
AF_ECMA = 8
AF_DATAKIT = 9
AF_CCITT = 10
AF_SNA = 11
AF_DECnet = 12
AF_DLI = 13
AF_LAT = 14
AF_HYLINK = 15
AF_APPLETALK = 16
AF_NIT = 17
AF_802 = 18
AF_OSI = 19
AF_X25 = 20
AF_OSINET = 21
AF_GOSIP = 22
AF_MAX = 22
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
PF_IMPLINK = AF_IMPLINK
PF_PUP = AF_PUP
PF_CHAOS = AF_CHAOS
PF_NS = AF_NS
PF_NBS = AF_NBS
PF_ECMA = AF_ECMA
PF_DATAKIT = AF_DATAKIT
PF_CCITT = AF_CCITT
PF_SNA = AF_SNA
PF_DECnet = AF_DECnet
PF_DLI = AF_DLI
PF_LAT = AF_LAT
PF_HYLINK = AF_HYLINK
PF_APPLETALK = AF_APPLETALK
PF_NIT = AF_NIT
PF_802 = AF_802
PF_OSI = AF_OSI
PF_X25 = AF_X25
PF_OSINET = AF_OSINET
PF_GOSIP = AF_GOSIP
PF_MAX = AF_MAX
SOMAXCONN = 5
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_MAXIOVLEN = 16
SOCKETSYS = 88
SOCKETSYS = 83
SO_ACCEPT = 1
SO_BIND = 2
SO_CONNECT = 3
SO_GETPEERNAME = 4
SO_GETSOCKNAME = 5
SO_GETSOCKOPT = 6
SO_LISTEN = 7
SO_RECV = 8
SO_RECVFROM = 9
SO_SEND = 10
SO_SENDTO = 11
SO_SETSOCKOPT = 12
SO_SHUTDOWN = 13
SO_SOCKET = 14
SO_SOCKPOLL = 15
SO_GETIPDOMAIN = 16
SO_SETIPDOMAIN = 17
SO_ADJTIME = 18
| nc_tpi_clts = 1
nc_tpi_cots = 2
nc_tpi_cots_ord = 3
nc_tpi_raw = 4
sock_stream = NC_TPI_COTS
sock_dgram = NC_TPI_CLTS
sock_raw = NC_TPI_RAW
sock_rdm = 5
sock_seqpacket = 6
so_debug = 1
so_acceptconn = 2
so_reuseaddr = 4
so_keepalive = 8
so_dontroute = 16
so_broadcast = 32
so_useloopback = 64
so_linger = 128
so_oobinline = 256
so_dontlinger = ~SO_LINGER
so_sndbuf = 4097
so_rcvbuf = 4098
so_sndlowat = 4099
so_rcvlowat = 4100
so_sndtimeo = 4101
so_rcvtimeo = 4102
so_error = 4103
so_type = 4104
so_prototype = 4105
sol_socket = 65535
af_unspec = 0
af_unix = 1
af_inet = 2
af_implink = 3
af_pup = 4
af_chaos = 5
af_ns = 6
af_nbs = 7
af_ecma = 8
af_datakit = 9
af_ccitt = 10
af_sna = 11
af_de_cnet = 12
af_dli = 13
af_lat = 14
af_hylink = 15
af_appletalk = 16
af_nit = 17
af_802 = 18
af_osi = 19
af_x25 = 20
af_osinet = 21
af_gosip = 22
af_max = 22
pf_unspec = AF_UNSPEC
pf_unix = AF_UNIX
pf_inet = AF_INET
pf_implink = AF_IMPLINK
pf_pup = AF_PUP
pf_chaos = AF_CHAOS
pf_ns = AF_NS
pf_nbs = AF_NBS
pf_ecma = AF_ECMA
pf_datakit = AF_DATAKIT
pf_ccitt = AF_CCITT
pf_sna = AF_SNA
pf_de_cnet = AF_DECnet
pf_dli = AF_DLI
pf_lat = AF_LAT
pf_hylink = AF_HYLINK
pf_appletalk = AF_APPLETALK
pf_nit = AF_NIT
pf_802 = AF_802
pf_osi = AF_OSI
pf_x25 = AF_X25
pf_osinet = AF_OSINET
pf_gosip = AF_GOSIP
pf_max = AF_MAX
somaxconn = 5
msg_oob = 1
msg_peek = 2
msg_dontroute = 4
msg_maxiovlen = 16
socketsys = 88
socketsys = 83
so_accept = 1
so_bind = 2
so_connect = 3
so_getpeername = 4
so_getsockname = 5
so_getsockopt = 6
so_listen = 7
so_recv = 8
so_recvfrom = 9
so_send = 10
so_sendto = 11
so_setsockopt = 12
so_shutdown = 13
so_socket = 14
so_sockpoll = 15
so_getipdomain = 16
so_setipdomain = 17
so_adjtime = 18 |
pkgname = "xev"
pkgver = "1.2.4"
pkgrel = 0
build_style = "gnu_configure"
hostmakedepends = ["pkgconf"]
makedepends = ["libxrandr-devel"]
pkgdesc = "Display X events"
maintainer = "q66 <[email protected]>"
license = "MIT"
url = "https://xorg.freedesktop.org"
source = f"$(XORG_SITE)/app/{pkgname}-{pkgver}.tar.bz2"
sha256 = "d700e08bfe751ed2dbf802baa204b056d0e49348b6eb3c6f9cb035d8ae4885e2"
def post_install(self):
self.install_license("COPYING")
| pkgname = 'xev'
pkgver = '1.2.4'
pkgrel = 0
build_style = 'gnu_configure'
hostmakedepends = ['pkgconf']
makedepends = ['libxrandr-devel']
pkgdesc = 'Display X events'
maintainer = 'q66 <[email protected]>'
license = 'MIT'
url = 'https://xorg.freedesktop.org'
source = f'$(XORG_SITE)/app/{pkgname}-{pkgver}.tar.bz2'
sha256 = 'd700e08bfe751ed2dbf802baa204b056d0e49348b6eb3c6f9cb035d8ae4885e2'
def post_install(self):
self.install_license('COPYING') |
class SectionModel(Query):
def __init__(self, db):
self.db = db
self.table_name = "section"
super(SectionModel, self).__init__() | class Sectionmodel(Query):
def __init__(self, db):
self.db = db
self.table_name = 'section'
super(SectionModel, self).__init__() |
funcs = [
"abs", "all", "any", "ascii", "bin", "callable", "chr", "compile",
"delattr", "dir", "divmod", "eval", "exec", "exit", "format", "getattr",
"globals", "hasattr", "hash", "help", "hex", "id", "input", "isinstance",
"issubclass", "iter", "len", "locals", "max", "min", "next", "oct",
"open", "ord", "pow", "print", "quit", "repr", "round", "setattr",
"sorted", "sum", "vars"
]
classes = [
"bool", "bytearray", "bytes", "classmethod", "complex", "dict", "enumerate",
"filter", "float", "frozenset", "int", "list", "map", "memoryview",
"object", "property", "range", "reversed", "set", "slice", "staticmethod",
"str", "super", "tuple", "type", "zip"
]
special_cases = "exit", "quit", "help"
for func in funcs:
if func in special_cases:
continue
assert str(getattr(__builtins__, func)) == f"<built-in function {func}>"
for kl in classes:
obj = getattr(__builtins__, kl)
assert str(obj) == f"<class '{kl}'>", f"erreur pour {kl} : {obj}" | funcs = ['abs', 'all', 'any', 'ascii', 'bin', 'callable', 'chr', 'compile', 'delattr', 'dir', 'divmod', 'eval', 'exec', 'exit', 'format', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'isinstance', 'issubclass', 'iter', 'len', 'locals', 'max', 'min', 'next', 'oct', 'open', 'ord', 'pow', 'print', 'quit', 'repr', 'round', 'setattr', 'sorted', 'sum', 'vars']
classes = ['bool', 'bytearray', 'bytes', 'classmethod', 'complex', 'dict', 'enumerate', 'filter', 'float', 'frozenset', 'int', 'list', 'map', 'memoryview', 'object', 'property', 'range', 'reversed', 'set', 'slice', 'staticmethod', 'str', 'super', 'tuple', 'type', 'zip']
special_cases = ('exit', 'quit', 'help')
for func in funcs:
if func in special_cases:
continue
assert str(getattr(__builtins__, func)) == f'<built-in function {func}>'
for kl in classes:
obj = getattr(__builtins__, kl)
assert str(obj) == f"<class '{kl}'>", f'erreur pour {kl} : {obj}' |
#
# PySNMP MIB module CISCO-STP-EXTENSIONS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STP-EXTENSIONS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:56:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection")
dot1dStpPortEntry, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dStpPortEntry")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
VlanIndex, vlanTrunkPortEntry, vtpVlanEditEntry, vtpVlanEntry = mibBuilder.importSymbols("CISCO-VTP-MIB", "VlanIndex", "vlanTrunkPortEntry", "vtpVlanEditEntry", "vtpVlanEntry")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibIdentifier, Counter64, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, TimeTicks, Gauge32, IpAddress, Integer32, Bits, Counter32, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter64", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "IpAddress", "Integer32", "Bits", "Counter32", "iso", "ObjectIdentity")
DisplayString, TimeStamp, RowStatus, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "RowStatus", "TruthValue", "TextualConvention")
ciscoStpExtensionsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 82))
ciscoStpExtensionsMIB.setRevisions(('2013-03-07 00:00', '2005-12-20 00:00', '2005-04-12 00:00', '2004-07-21 00:00', '2004-04-08 00:00', '2004-01-14 00:00', '2003-10-23 00:00', '2002-07-11 00:00', '2001-12-06 00:00', '2001-09-14 00:00', '2001-06-20 00:00', '2001-04-12 00:00', '2000-05-23 00:00', '2000-03-21 00:00', '1997-11-10 12:00', '1997-08-19 12:00',))
if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setLastUpdated('201303070000Z')
if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setOrganization('Cisco Systems, Inc.')
stpxObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1))
stpxUplinkFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1))
stpxVlanObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2))
stpxInconsistencyObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3))
stpxBackboneFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4))
stpxRootGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5))
stpxSpanningTreeObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6))
stpxMISTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7))
stpxLoopGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8))
stpxFastStartObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9))
stpxBpduSkewingObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10))
stpxMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11))
stpxRSTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12))
stpxRPVSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13))
stpxSMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14))
stpxNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2))
class StpxMSTConfigurationDigest(TextualConvention, OctetString):
status = 'current'
displayHint = '1x'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16)
fixedLength = 16
stpxUplinkFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxUplinkFastEnabled.setStatus('current')
stpxUplinkFastTransitions = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 2), Counter32()).setUnits('transitions').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkFastTransitions.setStatus('current')
stpxUplinkStationLearningGenRate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setUnits('frames').setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxUplinkStationLearningGenRate.setStatus('current')
stpxUplinkStationLearningFrames = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkStationLearningFrames.setStatus('current')
stpxUplinkFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxUplinkFastOperEnabled.setStatus('current')
stpxPreferredVlansTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1), )
if mibBuilder.loadTexts: stpxPreferredVlansTable.setStatus('current')
stpxPreferredVlansEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansEntry"))
stpxPreferredVlansEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredVlansEntry.setStatus('current')
stpxPreferredVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap.setStatus('current')
stpxPreferredVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap2k.setStatus('current')
stpxPreferredVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap3k.setStatus('current')
stpxPreferredVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredVlansMap4k.setStatus('current')
stpxPVSTVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2), )
if mibBuilder.loadTexts: stpxPVSTVlanTable.setStatus('current')
stpxPVSTVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanIndex"))
if mibBuilder.loadTexts: stpxPVSTVlanEntry.setStatus('current')
stpxPVSTVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxPVSTVlanIndex.setStatus('current')
stpxPVSTVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("notApplicable", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPVSTVlanEnable.setStatus('current')
stpxInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1), )
if mibBuilder.loadTexts: stpxInconsistencyTable.setStatus('current')
stpxInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxPortIndex"))
if mibBuilder.loadTexts: stpxInconsistencyEntry.setStatus('current')
stpxVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxVlanIndex.setStatus('current')
stpxPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxPortIndex.setStatus('current')
stpxInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 3), Bits().clone(namedValues=NamedValues(("typeInconsistent", 0), ("pvidInconsistent", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxInconsistentState.setStatus('current')
stpxBackboneFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxBackboneFastEnabled.setStatus('current')
stpxBackboneFastInInferiorBPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInInferiorBPDUs.setStatus('current')
stpxBackboneFastInRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInRLQRequestPDUs.setStatus('current')
stpxBackboneFastInRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastInRLQResponsePDUs.setStatus('current')
stpxBackboneFastOutRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOutRLQRequestPDUs.setStatus('current')
stpxBackboneFastOutRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOutRLQResponsePDUs.setStatus('current')
stpxBackboneFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBackboneFastOperEnabled.setStatus('current')
stpxRootGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1), )
if mibBuilder.loadTexts: stpxRootGuardConfigTable.setStatus('current')
stpxRootGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigPortIndex"))
if mibBuilder.loadTexts: stpxRootGuardConfigEntry.setStatus('current')
stpxRootGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRootGuardConfigPortIndex.setStatus('current')
stpxRootGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRootGuardConfigEnabled.setStatus('current')
stpxRootInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2), )
if mibBuilder.loadTexts: stpxRootInconsistencyTable.setStatus('current')
stpxRootInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyPortIndex"))
if mibBuilder.loadTexts: stpxRootInconsistencyEntry.setStatus('current')
stpxRootInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxRootInconsistencyIndex.setStatus('current')
stpxRootInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRootInconsistencyPortIndex.setStatus('current')
stpxRootInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRootInconsistencyState.setStatus('current')
stpxSpanningTreeType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("pvstPlus", 1), ("mistp", 2), ("mistpPvstPlus", 3), ("mst", 4), ("rapidPvstPlus", 5))).clone('pvstPlus')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSpanningTreeType.setStatus('current')
stpxSpanningTreePathCostMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2))).clone('short')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSpanningTreePathCostMode.setStatus('current')
stpxLongStpPortPathCostTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3), )
if mibBuilder.loadTexts: stpxLongStpPortPathCostTable.setStatus('current')
stpxLongStpPortPathCostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1), )
dot1dStpPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCostEntry"))
stpxLongStpPortPathCostEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxLongStpPortPathCostEntry.setStatus('current')
stpxLongStpPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1, 1), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLongStpPortPathCost.setStatus('current')
stpxExtendedSysIDAdminEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxExtendedSysIDAdminEnabled.setStatus('current')
stpxExtendedSysIDOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxExtendedSysIDOperEnabled.setStatus('current')
stpxNotificationEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 6), Bits().clone(namedValues=NamedValues(("newRoot", 0), ("topologyChange", 1), ("inconsistency", 2), ("rootInconsistency", 3), ("loopInconsistency", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxNotificationEnable.setStatus('current')
stpxSpanningTreePathCostOperMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSpanningTreePathCostOperMode.setStatus('current')
stpxMISTPInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceNumber.setStatus('current')
stpxMISTPInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2), )
if mibBuilder.loadTexts: stpxMISTPInstanceTable.setStatus('current')
stpxMISTPInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceIndex"))
if mibBuilder.loadTexts: stpxMISTPInstanceEntry.setStatus('current')
stpxMISTPInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256)))
if mibBuilder.loadTexts: stpxMISTPInstanceIndex.setStatus('current')
stpxMISTPInstanceEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMISTPInstanceEnable.setStatus('current')
stpxMISTPInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped.setStatus('current')
stpxMISTPInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped2k.setStatus('current')
stpxMISTPInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped3k.setStatus('current')
stpxMISTPInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped4k.setStatus('current')
stpxVlanMISTPInstMapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3), )
if mibBuilder.loadTexts: stpxVlanMISTPInstMapTable.setStatus('current')
stpxVlanMISTPInstMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1), )
vtpVlanEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEntry"))
stpxVlanMISTPInstMapEntry.setIndexNames(*vtpVlanEntry.getIndexNames())
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEntry.setStatus('current')
stpxVlanMISTPInstMapInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxVlanMISTPInstMapInstIndex.setStatus('current')
stpxVlanMISTPInstMapEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4), )
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditTable.setStatus('current')
stpxVlanMISTPInstMapEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1), )
vtpVlanEditEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditEntry"))
stpxVlanMISTPInstMapEditEntry.setIndexNames(*vtpVlanEditEntry.getIndexNames())
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditEntry.setStatus('current')
stpxVlanMISTPInstMapEditInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditInstIndex.setStatus('current')
stpxPreferredMISTPInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5), )
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesTable.setStatus('current')
stpxPreferredMISTPInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesEntry"))
stpxPreferredMISTPInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesEntry.setStatus('current')
stpxPreferredMISTPInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredMISTPInstancesMap.setStatus('current')
stpxLoopGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1), )
if mibBuilder.loadTexts: stpxLoopGuardConfigTable.setStatus('current')
stpxLoopGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigPortIndex"))
if mibBuilder.loadTexts: stpxLoopGuardConfigEntry.setStatus('current')
stpxLoopGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxLoopGuardConfigPortIndex.setStatus('current')
stpxLoopGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardConfigEnabled.setStatus('deprecated')
stpxLoopGuardConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardConfigMode.setStatus('current')
stpxLoopInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2), )
if mibBuilder.loadTexts: stpxLoopInconsistencyTable.setStatus('current')
stpxLoopInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyPortIndex"))
if mibBuilder.loadTexts: stpxLoopInconsistencyEntry.setStatus('current')
stpxLoopInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxLoopInconsistencyIndex.setStatus('current')
stpxLoopInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxLoopInconsistencyPortIndex.setStatus('current')
stpxLoopInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxLoopInconsistencyState.setStatus('current')
stpxLoopGuardGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxLoopGuardGlobalDefaultMode.setStatus('current')
stpxFastStartBpduGuardEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartBpduGuardEnable.setStatus('current')
stpxFastStartBpduFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartBpduFilterEnable.setStatus('current')
stpxFastStartPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3), )
if mibBuilder.loadTexts: stpxFastStartPortTable.setStatus('current')
stpxFastStartPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortIndex"))
if mibBuilder.loadTexts: stpxFastStartPortEntry.setStatus('current')
stpxFastStartPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxFastStartPortIndex.setStatus('current')
stpxFastStartPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortEnable.setStatus('deprecated')
stpxFastStartPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("enableForTrunk", 3), ("default", 4), ("network", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortMode.setStatus('current')
stpxFastStartPortBpduGuardMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortBpduGuardMode.setStatus('current')
stpxFastStartPortBpduFilterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartPortBpduFilterMode.setStatus('current')
stpxFastStartGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxFastStartGlobalDefaultMode.setStatus('current')
stpxFastStartOperModeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5), )
if mibBuilder.loadTexts: stpxFastStartOperModeTable.setStatus('current')
stpxFastStartOperModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeInstIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModePortIndex"))
if mibBuilder.loadTexts: stpxFastStartOperModeEntry.setStatus('current')
stpxFastStartOperModeInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxFastStartOperModeInstIndex.setStatus('current')
stpxFastStartOperModePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxFastStartOperModePortIndex.setStatus('current')
stpxFastStartOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxFastStartOperMode.setStatus('current')
stpxBpduSkewingDetectionEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxBpduSkewingDetectionEnable.setStatus('current')
stpxBpduSkewingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2), )
if mibBuilder.loadTexts: stpxBpduSkewingTable.setStatus('current')
stpxBpduSkewingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingPortIndex"))
if mibBuilder.loadTexts: stpxBpduSkewingEntry.setStatus('current')
stpxBpduSkewingInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)))
if mibBuilder.loadTexts: stpxBpduSkewingInstanceIndex.setStatus('current')
stpxBpduSkewingPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxBpduSkewingPortIndex.setStatus('current')
stpxBpduSkewingLastSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 3), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingLastSkewDuration.setStatus('current')
stpxBpduSkewingWorstSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 4), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewDuration.setStatus('current')
stpxBpduSkewingWorstSkewTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 5), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewTime.setStatus('current')
stpxMSTMaxInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTMaxInstanceNumber.setStatus('deprecated')
stpxMSTRegionName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionName.setStatus('current')
stpxMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionRevision.setStatus('deprecated')
stpxMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4), )
if mibBuilder.loadTexts: stpxMSTInstanceTable.setStatus('deprecated')
stpxMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceIndex"))
if mibBuilder.loadTexts: stpxMSTInstanceEntry.setStatus('deprecated')
stpxMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTInstanceIndex.setStatus('deprecated')
stpxMSTInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped.setStatus('deprecated')
stpxMSTInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped2k.setStatus('deprecated')
stpxMSTInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped3k.setStatus('deprecated')
stpxMSTInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped4k.setStatus('deprecated')
stpxMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTInstanceRemainingHopCount.setStatus('deprecated')
stpxMSTRegionEditBufferStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("released", 1), ("acquiredBySnmp", 2), ("acquiredByNonSnmp", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTRegionEditBufferStatus.setStatus('current')
stpxMSTRegionEditBufferOperation = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("acquire", 2), ("releaseWithForce", 3), ("commit", 4), ("rollBack", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditBufferOperation.setStatus('current')
stpxMSTRegionEditName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditName.setStatus('current')
stpxMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTRegionEditRevision.setStatus('deprecated')
stpxMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9), )
if mibBuilder.loadTexts: stpxMSTInstanceEditTable.setStatus('deprecated')
stpxMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditIndex"))
if mibBuilder.loadTexts: stpxMSTInstanceEditEntry.setStatus('deprecated')
stpxMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTInstanceEditIndex.setStatus('deprecated')
stpxMSTInstanceEditVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap.setStatus('deprecated')
stpxMSTInstanceEditVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap2k.setStatus('deprecated')
stpxMSTInstanceEditVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap3k.setStatus('deprecated')
stpxMSTInstanceEditVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap4k.setStatus('deprecated')
stpxPreferredMSTInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10), )
if mibBuilder.loadTexts: stpxPreferredMSTInstancesTable.setStatus('deprecated')
stpxPreferredMSTInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1), )
vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesEntry"))
stpxPreferredMSTInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts: stpxPreferredMSTInstancesEntry.setStatus('deprecated')
stpxPreferredMSTInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxPreferredMSTInstancesMap.setStatus('deprecated')
stpxMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11), )
if mibBuilder.loadTexts: stpxMSTPortTable.setStatus('deprecated')
stpxMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortIndex"))
if mibBuilder.loadTexts: stpxMSTPortEntry.setStatus('deprecated')
stpxMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxMSTPortIndex.setStatus('deprecated')
stpxMSTPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTPortAdminLinkType.setStatus('deprecated')
stpxMSTPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortOperLinkType.setStatus('deprecated')
stpxMSTPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTPortProtocolMigration.setStatus('deprecated')
stpxMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 5), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortStatus.setStatus('deprecated')
stpxMSTPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12), )
if mibBuilder.loadTexts: stpxMSTPortRoleTable.setStatus('deprecated')
stpxMSTPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRolePortIndex"))
if mibBuilder.loadTexts: stpxMSTPortRoleEntry.setStatus('deprecated')
stpxMSTPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256)))
if mibBuilder.loadTexts: stpxMSTPortRoleInstanceIndex.setStatus('deprecated')
stpxMSTPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxMSTPortRolePortIndex.setStatus('deprecated')
stpxMSTPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxMSTPortRoleValue.setStatus('deprecated')
stpxMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 40)).clone(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxMSTMaxHopCount.setStatus('deprecated')
stpxRSTPPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1), )
if mibBuilder.loadTexts: stpxRSTPPortTable.setStatus('current')
stpxRSTPPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortIndex"))
if mibBuilder.loadTexts: stpxRSTPPortEntry.setStatus('current')
stpxRSTPPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRSTPPortIndex.setStatus('current')
stpxRSTPPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPPortAdminLinkType.setStatus('current')
stpxRSTPPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRSTPPortOperLinkType.setStatus('current')
stpxRSTPPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPPortProtocolMigration.setStatus('current')
stpxRSTPPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2), )
if mibBuilder.loadTexts: stpxRSTPPortRoleTable.setStatus('current')
stpxRSTPPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRolePortIndex"))
if mibBuilder.loadTexts: stpxRSTPPortRoleEntry.setStatus('current')
stpxRSTPPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095)))
if mibBuilder.loadTexts: stpxRSTPPortRoleInstanceIndex.setStatus('current')
stpxRSTPPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRSTPPortRolePortIndex.setStatus('current')
stpxRSTPPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRSTPPortRoleValue.setStatus('current')
stpxRSTPTransmitHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 3), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxRSTPTransmitHoldCount.setStatus('current')
stpxRPVSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1), )
if mibBuilder.loadTexts: stpxRPVSTPortTable.setStatus('current')
stpxRPVSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortIndex"))
if mibBuilder.loadTexts: stpxRPVSTPortEntry.setStatus('current')
stpxRPVSTPortVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 1), VlanIndex())
if mibBuilder.loadTexts: stpxRPVSTPortVlanIndex.setStatus('current')
stpxRPVSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxRPVSTPortIndex.setStatus('current')
stpxRPVSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 3), Bits().clone(namedValues=NamedValues(("edge", 0), ("unused1", 1), ("unused2", 2), ("stp", 3), ("dispute", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxRPVSTPortStatus.setStatus('current')
stpxSMSTMaxInstances = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTMaxInstances.setStatus('current')
stpxSMSTMaxInstanceID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTMaxInstanceID.setStatus('current')
stpxSMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTRegionRevision.setStatus('current')
stpxSMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTRegionEditRevision.setStatus('current')
stpxSMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5), )
if mibBuilder.loadTexts: stpxSMSTInstanceTable.setStatus('current')
stpxSMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceIndex"))
if mibBuilder.loadTexts: stpxSMSTInstanceEntry.setStatus('current')
stpxSMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 1), Unsigned32())
if mibBuilder.loadTexts: stpxSMSTInstanceIndex.setStatus('current')
stpxSMSTInstanceVlansMapped1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped1k2k.setStatus('current')
stpxSMSTInstanceVlansMapped3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped3k4k.setStatus('current')
stpxSMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceRemainingHopCount.setStatus('current')
stpxSMSTInstanceCISTRegionalRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceCISTRegionalRoot.setStatus('current')
stpxSMSTInstanceCISTIntRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTInstanceCISTIntRootCost.setStatus('current')
stpxSMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6), )
if mibBuilder.loadTexts: stpxSMSTInstanceEditTable.setStatus('current')
stpxSMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditIndex"))
if mibBuilder.loadTexts: stpxSMSTInstanceEditEntry.setStatus('current')
stpxSMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 1), Unsigned32())
if mibBuilder.loadTexts: stpxSMSTInstanceEditIndex.setStatus('current')
stpxSMSTInstanceEditVlansMap1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap1k2k.setStatus('current')
stpxSMSTInstanceEditVlansMap3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap3k4k.setStatus('current')
stpxSMSTInstanceEditRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: stpxSMSTInstanceEditRowStatus.setStatus('current')
stpxSMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7), )
if mibBuilder.loadTexts: stpxSMSTPortTable.setStatus('current')
stpxSMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortIndex"))
if mibBuilder.loadTexts: stpxSMSTPortEntry.setStatus('current')
stpxSMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: stpxSMSTPortIndex.setStatus('current')
stpxSMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 2), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3), ("dispute", 4), ("rstp", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortStatus.setStatus('current')
stpxSMSTPortAdminHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 3), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTPortAdminHelloTime.setStatus('current')
stpxSMSTPortConfigedHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 4), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortConfigedHelloTime.setStatus('current')
stpxSMSTPortOperHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('hundredth of seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortOperHelloTime.setStatus('current')
stpxSMSTPortAdminMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("preStandard", 1), ("auto", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTPortAdminMSTMode.setStatus('current')
stpxSMSTPortOperMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("preStandard", 2), ("standard", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTPortOperMSTMode.setStatus('current')
stpxSMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 8), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: stpxSMSTMaxHopCount.setStatus('current')
stpxSMSTConfigDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 9), StpxMSTConfigurationDigest()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTConfigDigest.setStatus('current')
stpxSMSTConfigPreStandardDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 10), StpxMSTConfigurationDigest()).setMaxAccess("readonly")
if mibBuilder.loadTexts: stpxSMSTConfigPreStandardDigest.setStatus('current')
stpxNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0))
stpxInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState"))
if mibBuilder.loadTexts: stpxInconsistencyUpdate.setStatus('current')
stpxRootInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if mibBuilder.loadTexts: stpxRootInconsistencyUpdate.setStatus('current')
stpxLoopInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if mibBuilder.loadTexts: stpxLoopInconsistencyUpdate.setStatus('current')
stpxMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3))
stpxMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1))
stpxMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2))
stpxMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance = stpxMIBCompliance.setStatus('deprecated')
stpxMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance2 = stpxMIBCompliance2.setStatus('deprecated')
stpxMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance3 = stpxMIBCompliance3.setStatus('deprecated')
stpxMIBCompliance4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance4 = stpxMIBCompliance4.setStatus('deprecated')
stpxMIBCompliance5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance5 = stpxMIBCompliance5.setStatus('deprecated')
stpxMIBCompliance6 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance6 = stpxMIBCompliance6.setStatus('deprecated')
stpxMIBCompliance7 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance7 = stpxMIBCompliance7.setStatus('deprecated')
stpxMIBCompliance8 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance8 = stpxMIBCompliance8.setStatus('deprecated')
stpxMIBCompliance9 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance9 = stpxMIBCompliance9.setStatus('deprecated')
stpxMIBCompliance10 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance10 = stpxMIBCompliance10.setStatus('deprecated')
stpxMIBCompliance11 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance11 = stpxMIBCompliance11.setStatus('deprecated')
stpxMIBCompliance12 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup4"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortMSTModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigestGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMIBCompliance12 = stpxMIBCompliance12.setStatus('current')
stpxUplinkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastTransitions"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningGenRate"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningFrames"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxUplinkGroup = stpxUplinkGroup.setStatus('current')
stpxPreferredVlansGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPreferredVlansGroup = stpxPreferredVlansGroup.setStatus('current')
stpxSstpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSstpGroup = stpxSstpGroup.setStatus('current')
stpxNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxNotificationsGroup = stpxNotificationsGroup.setStatus('current')
stpxBackboneGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInInferiorBPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQResponsePDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQResponsePDUs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBackboneGroup = stpxBackboneGroup.setStatus('current')
stpxRootGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRootGuardGroup = stpxRootGuardGroup.setStatus('current')
stpxRootInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRootInconsistencyNotificationsGroup = stpxRootInconsistencyNotificationsGroup.setStatus('current')
stpx4kVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap4k"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx4kVlanGroup = stpx4kVlanGroup.setStatus('current')
stpxSpanningTreeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSpanningTreeGroup = stpxSpanningTreeGroup.setStatus('current')
stpxMISTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMISTPGroup = stpxMISTPGroup.setStatus('current')
stpxLongPathCostModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCost"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLongPathCostModeGroup = stpxLongPathCostModeGroup.setStatus('current')
stpxPVSTVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPVSTVlanGroup = stpxPVSTVlanGroup.setStatus('current')
stpxMISTPGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 13)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped4k"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMISTPGroup2 = stpxMISTPGroup2.setStatus('current')
stpxLoopGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 14)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopGuardGroup = stpxLoopGuardGroup.setStatus('deprecated')
stpxLoopInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 15)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyUpdate"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopInconsistencyNotificationsGroup = stpxLoopInconsistencyNotificationsGroup.setStatus('current')
stpxFastStartGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 16)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup = stpxFastStartGroup.setStatus('deprecated')
stpxBpduSkewingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 17)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingDetectionEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingLastSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBpduSkewingGroup = stpxBpduSkewingGroup.setStatus('current')
stpxFastStartGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 18)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGlobalDefaultMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup2 = stpxFastStartGroup2.setStatus('current')
stpxLoopGuardGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 19)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGlobalDefaultMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxLoopGuardGroup2 = stpxLoopGuardGroup2.setStatus('current')
stpxMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 20)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleValue"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup = stpxMSTGroup.setStatus('deprecated')
stpxPreferredMSTInstancesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 21)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesMap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPreferredMSTInstancesGroup = stpxPreferredMSTInstancesGroup.setStatus('deprecated')
stpxFastStartGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 22)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduGuardMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduFilterMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartGroup3 = stpxFastStartGroup3.setStatus('current')
stpxUplinkGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 23)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxUplinkGroup2 = stpxUplinkGroup2.setStatus('current')
stpxBackboneGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 24)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxBackboneGroup2 = stpxBackboneGroup2.setStatus('current')
stpxMSTGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 25)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup2 = stpxMSTGroup2.setStatus('deprecated')
stpxRSTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 26)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleValue"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRSTPGroup = stpxRSTPGroup.setStatus('current')
stpxRPVSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 27)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRPVSTGroup = stpxRPVSTGroup.setStatus('current')
stpxExtendedSysIDGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 28)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDAdminEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDOperEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxExtendedSysIDGroup = stpxExtendedSysIDGroup.setStatus('current')
stpxNotificationEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 29)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxNotificationEnableGroup = stpxNotificationEnableGroup.setStatus('current')
stpxFastStartOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 30)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxFastStartOperModeGroup = stpxFastStartOperModeGroup.setStatus('current')
stpxMSTGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 31)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup3 = stpxMSTGroup3.setStatus('deprecated')
stpxSMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 32)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstances"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstanceID"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionEditRevision"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTGroup = stpxSMSTGroup.setStatus('current')
stpxSMSTInstanceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 33)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceRemainingHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceGroup = stpxSMSTInstanceGroup.setStatus('current')
stpxSMSTInstanceEditGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 34)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceEditGroup = stpxSMSTInstanceEditGroup.setStatus('current')
stpxSMSTPortStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 35)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortStatusGroup = stpxSMSTPortStatusGroup.setStatus('current')
stpxSMSTPortHelloTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 36)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortConfigedHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperHelloTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortHelloTimeGroup = stpxSMSTPortHelloTimeGroup.setStatus('current')
stpxSMSTInstanceCISTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 37)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTRegionalRoot"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTIntRootCost"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTInstanceCISTGroup = stpxSMSTInstanceCISTGroup.setStatus('current')
stpxPathCostOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 38)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostOperMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxPathCostOperModeGroup = stpxPathCostOperModeGroup.setStatus('current')
stpxRSTPTransmitHoldCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 39)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxRSTPTransmitHoldCountGroup = stpxRSTPTransmitHoldCountGroup.setStatus('current')
stpxSMSTPortMSTModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 40)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminMSTMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperMSTMode"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTPortMSTModeGroup = stpxSMSTPortMSTModeGroup.setStatus('current')
stpxSMSTMaxHopCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 41)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTMaxHopCountGroup = stpxSMSTMaxHopCountGroup.setStatus('current')
stpxSMSTConfigDigestGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 42)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigest"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigPreStandardDigest"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxSMSTConfigDigestGroup = stpxSMSTConfigDigestGroup.setStatus('current')
stpxMSTGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 43)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpxMSTGroup4 = stpxMSTGroup4.setStatus('current')
mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxMIBCompliance2=stpxMIBCompliance2, stpxBackboneFastInRLQRequestPDUs=stpxBackboneFastInRLQRequestPDUs, stpxFastStartOperModeInstIndex=stpxFastStartOperModeInstIndex, stpxPathCostOperModeGroup=stpxPathCostOperModeGroup, stpxRootGuardConfigEntry=stpxRootGuardConfigEntry, stpxSMSTInstanceEditVlansMap3k4k=stpxSMSTInstanceEditVlansMap3k4k, stpxSMSTConfigDigest=stpxSMSTConfigDigest, stpxFastStartGroup3=stpxFastStartGroup3, stpxVlanMISTPInstMapTable=stpxVlanMISTPInstMapTable, stpxFastStartPortMode=stpxFastStartPortMode, stpxRSTPPortIndex=stpxRSTPPortIndex, stpxSpanningTreeGroup=stpxSpanningTreeGroup, stpxSMSTInstanceEditTable=stpxSMSTInstanceEditTable, PYSNMP_MODULE_ID=ciscoStpExtensionsMIB, stpxPreferredVlansMap4k=stpxPreferredVlansMap4k, stpxUplinkFastTransitions=stpxUplinkFastTransitions, stpxRSTPPortRolePortIndex=stpxRSTPPortRolePortIndex, stpxSMSTInstanceCISTGroup=stpxSMSTInstanceCISTGroup, stpxRSTPPortEntry=stpxRSTPPortEntry, stpxFastStartGroup=stpxFastStartGroup, stpxFastStartOperMode=stpxFastStartOperMode, stpxMIBCompliance8=stpxMIBCompliance8, stpxBackboneFastInInferiorBPDUs=stpxBackboneFastInInferiorBPDUs, stpxBpduSkewingWorstSkewTime=stpxBpduSkewingWorstSkewTime, stpxSstpGroup=stpxSstpGroup, stpxPreferredMSTInstancesMap=stpxPreferredMSTInstancesMap, stpxSMSTPortAdminMSTMode=stpxSMSTPortAdminMSTMode, stpxRootInconsistencyUpdate=stpxRootInconsistencyUpdate, stpxPreferredVlansEntry=stpxPreferredVlansEntry, stpxBpduSkewingWorstSkewDuration=stpxBpduSkewingWorstSkewDuration, stpxRSTPPortProtocolMigration=stpxRSTPPortProtocolMigration, stpxPreferredVlansMap3k=stpxPreferredVlansMap3k, stpxMSTGroup4=stpxMSTGroup4, stpxMSTPortRoleTable=stpxMSTPortRoleTable, stpxLoopGuardConfigEnabled=stpxLoopGuardConfigEnabled, stpxFastStartPortIndex=stpxFastStartPortIndex, stpxVlanMISTPInstMapEditEntry=stpxVlanMISTPInstMapEditEntry, stpxRootInconsistencyPortIndex=stpxRootInconsistencyPortIndex, stpxMSTInstanceVlansMapped3k=stpxMSTInstanceVlansMapped3k, stpxFastStartGroup2=stpxFastStartGroup2, stpxUplinkFastEnabled=stpxUplinkFastEnabled, stpxRootInconsistencyIndex=stpxRootInconsistencyIndex, stpxMSTPortAdminLinkType=stpxMSTPortAdminLinkType, stpxMSTPortRoleInstanceIndex=stpxMSTPortRoleInstanceIndex, stpxSMSTMaxHopCountGroup=stpxSMSTMaxHopCountGroup, stpxRootGuardObjects=stpxRootGuardObjects, stpxLoopGuardGlobalDefaultMode=stpxLoopGuardGlobalDefaultMode, stpxMSTInstanceEditVlansMap2k=stpxMSTInstanceEditVlansMap2k, stpxObjects=stpxObjects, stpxSMSTPortConfigedHelloTime=stpxSMSTPortConfigedHelloTime, stpxMSTInstanceTable=stpxMSTInstanceTable, stpxMSTRegionEditBufferOperation=stpxMSTRegionEditBufferOperation, stpxMSTPortProtocolMigration=stpxMSTPortProtocolMigration, stpxMSTRegionEditRevision=stpxMSTRegionEditRevision, stpxSMSTObjects=stpxSMSTObjects, stpxMISTPInstanceVlansMapped3k=stpxMISTPInstanceVlansMapped3k, stpxRootGuardGroup=stpxRootGuardGroup, stpxMIBCompliances=stpxMIBCompliances, stpxUplinkStationLearningGenRate=stpxUplinkStationLearningGenRate, stpxSMSTInstanceRemainingHopCount=stpxSMSTInstanceRemainingHopCount, stpxBackboneFastEnabled=stpxBackboneFastEnabled, stpxMSTInstanceEditEntry=stpxMSTInstanceEditEntry, stpxSMSTPortOperHelloTime=stpxSMSTPortOperHelloTime, stpxMSTGroup2=stpxMSTGroup2, stpxVlanMISTPInstMapInstIndex=stpxVlanMISTPInstMapInstIndex, stpxSMSTPortIndex=stpxSMSTPortIndex, stpxFastStartObjects=stpxFastStartObjects, stpxRPVSTPortEntry=stpxRPVSTPortEntry, stpxInconsistencyObjects=stpxInconsistencyObjects, stpxUplinkStationLearningFrames=stpxUplinkStationLearningFrames, stpxNotificationEnableGroup=stpxNotificationEnableGroup, stpxBackboneFastOperEnabled=stpxBackboneFastOperEnabled, stpxLongStpPortPathCostEntry=stpxLongStpPortPathCostEntry, stpxMISTPInstanceEntry=stpxMISTPInstanceEntry, stpxMSTPortRoleValue=stpxMSTPortRoleValue, stpxMISTPGroup=stpxMISTPGroup, stpxRootGuardConfigTable=stpxRootGuardConfigTable, stpxMISTPInstanceVlansMapped=stpxMISTPInstanceVlansMapped, stpxMSTInstanceEntry=stpxMSTInstanceEntry, stpxMSTInstanceVlansMapped=stpxMSTInstanceVlansMapped, stpxSMSTInstanceVlansMapped1k2k=stpxSMSTInstanceVlansMapped1k2k, stpxPortIndex=stpxPortIndex, stpxRootGuardConfigPortIndex=stpxRootGuardConfigPortIndex, stpxLoopGuardConfigMode=stpxLoopGuardConfigMode, stpxSMSTInstanceCISTRegionalRoot=stpxSMSTInstanceCISTRegionalRoot, stpxSMSTPortEntry=stpxSMSTPortEntry, stpxSMSTPortStatus=stpxSMSTPortStatus, stpxSMSTMaxHopCount=stpxSMSTMaxHopCount, stpxLoopInconsistencyNotificationsGroup=stpxLoopInconsistencyNotificationsGroup, stpxLoopInconsistencyPortIndex=stpxLoopInconsistencyPortIndex, stpxSMSTPortOperMSTMode=stpxSMSTPortOperMSTMode, stpxLoopGuardConfigTable=stpxLoopGuardConfigTable, stpxLoopGuardGroup2=stpxLoopGuardGroup2, stpxSMSTConfigPreStandardDigest=stpxSMSTConfigPreStandardDigest, stpxFastStartPortTable=stpxFastStartPortTable, stpxRSTPTransmitHoldCount=stpxRSTPTransmitHoldCount, stpxMIBCompliance5=stpxMIBCompliance5, stpxMSTInstanceVlansMapped2k=stpxMSTInstanceVlansMapped2k, stpxUplinkFastOperEnabled=stpxUplinkFastOperEnabled, stpxSMSTInstanceEditIndex=stpxSMSTInstanceEditIndex, stpxBackboneFastOutRLQRequestPDUs=stpxBackboneFastOutRLQRequestPDUs, stpxBackboneFastOutRLQResponsePDUs=stpxBackboneFastOutRLQResponsePDUs, stpxMSTRegionEditName=stpxMSTRegionEditName, stpxMISTPInstanceVlansMapped2k=stpxMISTPInstanceVlansMapped2k, stpxMSTInstanceEditVlansMap3k=stpxMSTInstanceEditVlansMap3k, stpxSMSTInstanceCISTIntRootCost=stpxSMSTInstanceCISTIntRootCost, stpxFastStartBpduFilterEnable=stpxFastStartBpduFilterEnable, stpxFastStartPortEntry=stpxFastStartPortEntry, stpxLoopInconsistencyUpdate=stpxLoopInconsistencyUpdate, stpxRootInconsistencyNotificationsGroup=stpxRootInconsistencyNotificationsGroup, stpxMSTGroup=stpxMSTGroup, stpxMISTPInstanceIndex=stpxMISTPInstanceIndex, stpxMSTPortOperLinkType=stpxMSTPortOperLinkType, stpxPreferredVlansGroup=stpxPreferredVlansGroup, stpxSMSTInstanceEditVlansMap1k2k=stpxSMSTInstanceEditVlansMap1k2k, stpxVlanMISTPInstMapEditInstIndex=stpxVlanMISTPInstMapEditInstIndex, stpxFastStartPortEnable=stpxFastStartPortEnable, stpxPreferredVlansMap=stpxPreferredVlansMap, stpxLoopInconsistencyIndex=stpxLoopInconsistencyIndex, stpxRSTPPortRoleEntry=stpxRSTPPortRoleEntry, stpxNotificationsGroup=stpxNotificationsGroup, stpxExtendedSysIDOperEnabled=stpxExtendedSysIDOperEnabled, stpxMIBCompliance4=stpxMIBCompliance4, stpxMSTRegionEditBufferStatus=stpxMSTRegionEditBufferStatus, stpxMSTPortIndex=stpxMSTPortIndex, stpxMSTPortRoleEntry=stpxMSTPortRoleEntry, stpxPVSTVlanTable=stpxPVSTVlanTable, stpxSMSTPortStatusGroup=stpxSMSTPortStatusGroup, stpxBpduSkewingTable=stpxBpduSkewingTable, stpxRPVSTPortTable=stpxRPVSTPortTable, stpxPreferredVlansMap2k=stpxPreferredVlansMap2k, stpxMSTInstanceRemainingHopCount=stpxMSTInstanceRemainingHopCount, stpxBpduSkewingInstanceIndex=stpxBpduSkewingInstanceIndex, stpxVlanMISTPInstMapEditTable=stpxVlanMISTPInstMapEditTable, stpxMSTPortStatus=stpxMSTPortStatus, stpxPVSTVlanEntry=stpxPVSTVlanEntry, stpxFastStartOperModePortIndex=stpxFastStartOperModePortIndex, stpxMSTInstanceEditTable=stpxMSTInstanceEditTable, stpxFastStartBpduGuardEnable=stpxFastStartBpduGuardEnable, stpxSMSTPortTable=stpxSMSTPortTable, stpxSMSTPortHelloTimeGroup=stpxSMSTPortHelloTimeGroup, stpxPVSTVlanGroup=stpxPVSTVlanGroup, stpx4kVlanGroup=stpx4kVlanGroup, stpxSpanningTreeType=stpxSpanningTreeType, stpxMSTPortTable=stpxMSTPortTable, stpxMSTMaxInstanceNumber=stpxMSTMaxInstanceNumber, stpxPreferredMSTInstancesEntry=stpxPreferredMSTInstancesEntry, stpxMISTPObjects=stpxMISTPObjects, stpxMISTPInstanceVlansMapped4k=stpxMISTPInstanceVlansMapped4k, stpxNotifications=stpxNotifications, stpxMISTPInstanceNumber=stpxMISTPInstanceNumber, stpxMSTInstanceIndex=stpxMSTInstanceIndex, stpxSMSTInstanceGroup=stpxSMSTInstanceGroup, stpxSMSTInstanceEditEntry=stpxSMSTInstanceEditEntry, ciscoStpExtensionsMIB=ciscoStpExtensionsMIB, stpxLoopGuardObjects=stpxLoopGuardObjects, stpxRPVSTPortStatus=stpxRPVSTPortStatus, stpxMIBCompliance3=stpxMIBCompliance3, stpxLongPathCostModeGroup=stpxLongPathCostModeGroup, stpxMISTPGroup2=stpxMISTPGroup2, stpxLoopInconsistencyTable=stpxLoopInconsistencyTable, stpxSMSTInstanceEditGroup=stpxSMSTInstanceEditGroup, stpxMSTInstanceVlansMapped4k=stpxMSTInstanceVlansMapped4k, stpxSMSTInstanceTable=stpxSMSTInstanceTable, stpxRootInconsistencyTable=stpxRootInconsistencyTable, stpxPVSTVlanIndex=stpxPVSTVlanIndex, stpxMISTPInstanceTable=stpxMISTPInstanceTable, stpxMSTInstanceEditVlansMap4k=stpxMSTInstanceEditVlansMap4k, stpxRSTPPortTable=stpxRSTPPortTable, stpxBpduSkewingPortIndex=stpxBpduSkewingPortIndex, stpxRSTPGroup=stpxRSTPGroup, stpxMIBCompliance11=stpxMIBCompliance11, stpxRSTPPortRoleInstanceIndex=stpxRSTPPortRoleInstanceIndex, stpxSpanningTreeObjects=stpxSpanningTreeObjects, stpxSMSTMaxInstances=stpxSMSTMaxInstances, stpxSMSTConfigDigestGroup=stpxSMSTConfigDigestGroup, stpxSMSTRegionEditRevision=stpxSMSTRegionEditRevision, stpxRSTPPortOperLinkType=stpxRSTPPortOperLinkType, stpxRPVSTObjects=stpxRPVSTObjects, stpxPreferredMSTInstancesTable=stpxPreferredMSTInstancesTable, stpxUplinkFastObjects=stpxUplinkFastObjects, stpxRPVSTGroup=stpxRPVSTGroup, stpxSMSTInstanceVlansMapped3k4k=stpxSMSTInstanceVlansMapped3k4k, stpxMIBConformance=stpxMIBConformance, stpxMIBCompliance=stpxMIBCompliance, stpxFastStartOperModeEntry=stpxFastStartOperModeEntry, stpxRSTPPortRoleTable=stpxRSTPPortRoleTable, stpxRSTPPortAdminLinkType=stpxRSTPPortAdminLinkType, stpxMIBCompliance9=stpxMIBCompliance9, stpxLoopGuardConfigPortIndex=stpxLoopGuardConfigPortIndex, stpxSMSTInstanceEditRowStatus=stpxSMSTInstanceEditRowStatus, stpxFastStartOperModeGroup=stpxFastStartOperModeGroup, stpxLoopGuardGroup=stpxLoopGuardGroup, stpxExtendedSysIDAdminEnabled=stpxExtendedSysIDAdminEnabled, stpxLoopGuardConfigEntry=stpxLoopGuardConfigEntry, stpxUplinkGroup2=stpxUplinkGroup2, stpxNotificationsPrefix=stpxNotificationsPrefix, stpxLongStpPortPathCost=stpxLongStpPortPathCost, stpxRootInconsistencyState=stpxRootInconsistencyState, stpxRootGuardConfigEnabled=stpxRootGuardConfigEnabled, stpxMIBCompliance6=stpxMIBCompliance6, stpxMIBCompliance10=stpxMIBCompliance10, stpxMIBCompliance12=stpxMIBCompliance12, stpxSMSTPortMSTModeGroup=stpxSMSTPortMSTModeGroup, stpxRSTPObjects=stpxRSTPObjects, stpxMSTPortRolePortIndex=stpxMSTPortRolePortIndex, stpxSpanningTreePathCostMode=stpxSpanningTreePathCostMode, stpxVlanIndex=stpxVlanIndex, stpxBpduSkewingObjects=stpxBpduSkewingObjects, stpxNotificationEnable=stpxNotificationEnable, stpxFastStartPortBpduFilterMode=stpxFastStartPortBpduFilterMode, stpxBpduSkewingDetectionEnable=stpxBpduSkewingDetectionEnable, stpxBackboneFastInRLQResponsePDUs=stpxBackboneFastInRLQResponsePDUs, stpxBackboneGroup2=stpxBackboneGroup2, stpxMSTPortEntry=stpxMSTPortEntry, stpxBackboneGroup=stpxBackboneGroup, stpxMSTInstanceEditVlansMap=stpxMSTInstanceEditVlansMap, stpxMSTInstanceEditIndex=stpxMSTInstanceEditIndex, stpxInconsistencyEntry=stpxInconsistencyEntry, stpxInconsistencyUpdate=stpxInconsistencyUpdate, stpxRPVSTPortIndex=stpxRPVSTPortIndex, stpxBackboneFastObjects=stpxBackboneFastObjects, stpxPreferredMISTPInstancesTable=stpxPreferredMISTPInstancesTable, stpxMSTRegionRevision=stpxMSTRegionRevision, stpxFastStartPortBpduGuardMode=stpxFastStartPortBpduGuardMode, stpxPreferredMISTPInstancesEntry=stpxPreferredMISTPInstancesEntry, stpxSMSTInstanceIndex=stpxSMSTInstanceIndex, stpxInconsistentState=stpxInconsistentState, stpxLongStpPortPathCostTable=stpxLongStpPortPathCostTable, stpxFastStartGlobalDefaultMode=stpxFastStartGlobalDefaultMode, stpxBpduSkewingEntry=stpxBpduSkewingEntry, stpxSMSTPortAdminHelloTime=stpxSMSTPortAdminHelloTime, stpxSMSTGroup=stpxSMSTGroup, stpxVlanObjects=stpxVlanObjects, stpxMISTPInstanceEnable=stpxMISTPInstanceEnable, stpxMIBCompliance7=stpxMIBCompliance7, stpxLoopInconsistencyEntry=stpxLoopInconsistencyEntry, stpxRPVSTPortVlanIndex=stpxRPVSTPortVlanIndex, stpxMSTGroup3=stpxMSTGroup3, StpxMSTConfigurationDigest=StpxMSTConfigurationDigest, stpxBpduSkewingLastSkewDuration=stpxBpduSkewingLastSkewDuration, stpxMSTRegionName=stpxMSTRegionName, stpxPreferredMISTPInstancesMap=stpxPreferredMISTPInstancesMap, stpxMSTObjects=stpxMSTObjects, stpxPreferredMSTInstancesGroup=stpxPreferredMSTInstancesGroup, stpxInconsistencyTable=stpxInconsistencyTable, stpxMSTMaxHopCount=stpxMSTMaxHopCount, stpxExtendedSysIDGroup=stpxExtendedSysIDGroup, stpxRootInconsistencyEntry=stpxRootInconsistencyEntry, stpxRSTPPortRoleValue=stpxRSTPPortRoleValue, stpxRSTPTransmitHoldCountGroup=stpxRSTPTransmitHoldCountGroup, stpxLoopInconsistencyState=stpxLoopInconsistencyState, stpxFastStartOperModeTable=stpxFastStartOperModeTable, stpxPVSTVlanEnable=stpxPVSTVlanEnable)
mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxSMSTRegionRevision=stpxSMSTRegionRevision, stpxBpduSkewingGroup=stpxBpduSkewingGroup, stpxPreferredVlansTable=stpxPreferredVlansTable, stpxMIBGroups=stpxMIBGroups, stpxSpanningTreePathCostOperMode=stpxSpanningTreePathCostOperMode, stpxVlanMISTPInstMapEntry=stpxVlanMISTPInstMapEntry, stpxUplinkGroup=stpxUplinkGroup, stpxSMSTMaxInstanceID=stpxSMSTMaxInstanceID, stpxSMSTInstanceEntry=stpxSMSTInstanceEntry)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection')
(dot1d_stp_port_entry,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dStpPortEntry')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(vlan_index, vlan_trunk_port_entry, vtp_vlan_edit_entry, vtp_vlan_entry) = mibBuilder.importSymbols('CISCO-VTP-MIB', 'VlanIndex', 'vlanTrunkPortEntry', 'vtpVlanEditEntry', 'vtpVlanEntry')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(mib_identifier, counter64, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, module_identity, time_ticks, gauge32, ip_address, integer32, bits, counter32, iso, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter64', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'IpAddress', 'Integer32', 'Bits', 'Counter32', 'iso', 'ObjectIdentity')
(display_string, time_stamp, row_status, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'RowStatus', 'TruthValue', 'TextualConvention')
cisco_stp_extensions_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 82))
ciscoStpExtensionsMIB.setRevisions(('2013-03-07 00:00', '2005-12-20 00:00', '2005-04-12 00:00', '2004-07-21 00:00', '2004-04-08 00:00', '2004-01-14 00:00', '2003-10-23 00:00', '2002-07-11 00:00', '2001-12-06 00:00', '2001-09-14 00:00', '2001-06-20 00:00', '2001-04-12 00:00', '2000-05-23 00:00', '2000-03-21 00:00', '1997-11-10 12:00', '1997-08-19 12:00'))
if mibBuilder.loadTexts:
ciscoStpExtensionsMIB.setLastUpdated('201303070000Z')
if mibBuilder.loadTexts:
ciscoStpExtensionsMIB.setOrganization('Cisco Systems, Inc.')
stpx_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1))
stpx_uplink_fast_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1))
stpx_vlan_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2))
stpx_inconsistency_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3))
stpx_backbone_fast_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4))
stpx_root_guard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5))
stpx_spanning_tree_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6))
stpx_mistp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7))
stpx_loop_guard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8))
stpx_fast_start_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9))
stpx_bpdu_skewing_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10))
stpx_mst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11))
stpx_rstp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12))
stpx_rpvst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13))
stpx_smst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14))
stpx_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2))
class Stpxmstconfigurationdigest(TextualConvention, OctetString):
status = 'current'
display_hint = '1x'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(16, 16)
fixed_length = 16
stpx_uplink_fast_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxUplinkFastEnabled.setStatus('current')
stpx_uplink_fast_transitions = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 2), counter32()).setUnits('transitions').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxUplinkFastTransitions.setStatus('current')
stpx_uplink_station_learning_gen_rate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 32000))).setUnits('frames').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxUplinkStationLearningGenRate.setStatus('current')
stpx_uplink_station_learning_frames = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxUplinkStationLearningFrames.setStatus('current')
stpx_uplink_fast_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxUplinkFastOperEnabled.setStatus('current')
stpx_preferred_vlans_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1))
if mibBuilder.loadTexts:
stpxPreferredVlansTable.setStatus('current')
stpx_preferred_vlans_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1))
vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansEntry'))
stpxPreferredVlansEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxPreferredVlansEntry.setStatus('current')
stpx_preferred_vlans_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(128, 128)).setFixedLength(128)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredVlansMap.setStatus('current')
stpx_preferred_vlans_map2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredVlansMap2k.setStatus('current')
stpx_preferred_vlans_map3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredVlansMap3k.setStatus('current')
stpx_preferred_vlans_map4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredVlansMap4k.setStatus('current')
stpx_pvst_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2))
if mibBuilder.loadTexts:
stpxPVSTVlanTable.setStatus('current')
stpx_pvst_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanIndex'))
if mibBuilder.loadTexts:
stpxPVSTVlanEntry.setStatus('current')
stpx_pvst_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 1), vlan_index())
if mibBuilder.loadTexts:
stpxPVSTVlanIndex.setStatus('current')
stpx_pvst_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('notApplicable', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPVSTVlanEnable.setStatus('current')
stpx_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1))
if mibBuilder.loadTexts:
stpxInconsistencyTable.setStatus('current')
stpx_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxVlanIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxPortIndex'))
if mibBuilder.loadTexts:
stpxInconsistencyEntry.setStatus('current')
stpx_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 1), vlan_index())
if mibBuilder.loadTexts:
stpxVlanIndex.setStatus('current')
stpx_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxPortIndex.setStatus('current')
stpx_inconsistent_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 3), bits().clone(namedValues=named_values(('typeInconsistent', 0), ('pvidInconsistent', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxInconsistentState.setStatus('current')
stpx_backbone_fast_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxBackboneFastEnabled.setStatus('current')
stpx_backbone_fast_in_inferior_bpd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastInInferiorBPDUs.setStatus('current')
stpx_backbone_fast_in_rlq_request_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastInRLQRequestPDUs.setStatus('current')
stpx_backbone_fast_in_rlq_response_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastInRLQResponsePDUs.setStatus('current')
stpx_backbone_fast_out_rlq_request_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastOutRLQRequestPDUs.setStatus('current')
stpx_backbone_fast_out_rlq_response_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastOutRLQResponsePDUs.setStatus('current')
stpx_backbone_fast_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 7), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBackboneFastOperEnabled.setStatus('current')
stpx_root_guard_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1))
if mibBuilder.loadTexts:
stpxRootGuardConfigTable.setStatus('current')
stpx_root_guard_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardConfigPortIndex'))
if mibBuilder.loadTexts:
stpxRootGuardConfigEntry.setStatus('current')
stpx_root_guard_config_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxRootGuardConfigPortIndex.setStatus('current')
stpx_root_guard_config_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxRootGuardConfigEnabled.setStatus('current')
stpx_root_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2))
if mibBuilder.loadTexts:
stpxRootInconsistencyTable.setStatus('current')
stpx_root_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyPortIndex'))
if mibBuilder.loadTexts:
stpxRootInconsistencyEntry.setStatus('current')
stpx_root_inconsistency_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
stpxRootInconsistencyIndex.setStatus('current')
stpx_root_inconsistency_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxRootInconsistencyPortIndex.setStatus('current')
stpx_root_inconsistency_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 3), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxRootInconsistencyState.setStatus('current')
stpx_spanning_tree_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('pvstPlus', 1), ('mistp', 2), ('mistpPvstPlus', 3), ('mst', 4), ('rapidPvstPlus', 5))).clone('pvstPlus')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSpanningTreeType.setStatus('current')
stpx_spanning_tree_path_cost_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2))).clone('short')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSpanningTreePathCostMode.setStatus('current')
stpx_long_stp_port_path_cost_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3))
if mibBuilder.loadTexts:
stpxLongStpPortPathCostTable.setStatus('current')
stpx_long_stp_port_path_cost_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1))
dot1dStpPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxLongStpPortPathCostEntry'))
stpxLongStpPortPathCostEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxLongStpPortPathCostEntry.setStatus('current')
stpx_long_stp_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1, 1), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxLongStpPortPathCost.setStatus('current')
stpx_extended_sys_id_admin_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxExtendedSysIDAdminEnabled.setStatus('current')
stpx_extended_sys_id_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 5), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxExtendedSysIDOperEnabled.setStatus('current')
stpx_notification_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 6), bits().clone(namedValues=named_values(('newRoot', 0), ('topologyChange', 1), ('inconsistency', 2), ('rootInconsistency', 3), ('loopInconsistency', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxNotificationEnable.setStatus('current')
stpx_spanning_tree_path_cost_oper_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSpanningTreePathCostOperMode.setStatus('current')
stpx_mistp_instance_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMISTPInstanceNumber.setStatus('current')
stpx_mistp_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2))
if mibBuilder.loadTexts:
stpxMISTPInstanceTable.setStatus('current')
stpx_mistp_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceIndex'))
if mibBuilder.loadTexts:
stpxMISTPInstanceEntry.setStatus('current')
stpx_mistp_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256)))
if mibBuilder.loadTexts:
stpxMISTPInstanceIndex.setStatus('current')
stpx_mistp_instance_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 2), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMISTPInstanceEnable.setStatus('current')
stpx_mistp_instance_vlans_mapped = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMISTPInstanceVlansMapped.setStatus('current')
stpx_mistp_instance_vlans_mapped2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMISTPInstanceVlansMapped2k.setStatus('current')
stpx_mistp_instance_vlans_mapped3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMISTPInstanceVlansMapped3k.setStatus('current')
stpx_mistp_instance_vlans_mapped4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMISTPInstanceVlansMapped4k.setStatus('current')
stpx_vlan_mistp_inst_map_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3))
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapTable.setStatus('current')
stpx_vlan_mistp_inst_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1))
vtpVlanEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEntry'))
stpxVlanMISTPInstMapEntry.setIndexNames(*vtpVlanEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapEntry.setStatus('current')
stpx_vlan_mistp_inst_map_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapInstIndex.setStatus('current')
stpx_vlan_mistp_inst_map_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4))
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapEditTable.setStatus('current')
stpx_vlan_mistp_inst_map_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1))
vtpVlanEditEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEditEntry'))
stpxVlanMISTPInstMapEditEntry.setIndexNames(*vtpVlanEditEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapEditEntry.setStatus('current')
stpx_vlan_mistp_inst_map_edit_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
stpxVlanMISTPInstMapEditInstIndex.setStatus('current')
stpx_preferred_mistp_instances_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5))
if mibBuilder.loadTexts:
stpxPreferredMISTPInstancesTable.setStatus('current')
stpx_preferred_mistp_instances_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1))
vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMISTPInstancesEntry'))
stpxPreferredMISTPInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxPreferredMISTPInstancesEntry.setStatus('current')
stpx_preferred_mistp_instances_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredMISTPInstancesMap.setStatus('current')
stpx_loop_guard_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1))
if mibBuilder.loadTexts:
stpxLoopGuardConfigTable.setStatus('current')
stpx_loop_guard_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigPortIndex'))
if mibBuilder.loadTexts:
stpxLoopGuardConfigEntry.setStatus('current')
stpx_loop_guard_config_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxLoopGuardConfigPortIndex.setStatus('current')
stpx_loop_guard_config_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxLoopGuardConfigEnabled.setStatus('deprecated')
stpx_loop_guard_config_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxLoopGuardConfigMode.setStatus('current')
stpx_loop_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2))
if mibBuilder.loadTexts:
stpxLoopInconsistencyTable.setStatus('current')
stpx_loop_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyPortIndex'))
if mibBuilder.loadTexts:
stpxLoopInconsistencyEntry.setStatus('current')
stpx_loop_inconsistency_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
stpxLoopInconsistencyIndex.setStatus('current')
stpx_loop_inconsistency_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxLoopInconsistencyPortIndex.setStatus('current')
stpx_loop_inconsistency_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 3), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxLoopInconsistencyState.setStatus('current')
stpx_loop_guard_global_default_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxLoopGuardGlobalDefaultMode.setStatus('current')
stpx_fast_start_bpdu_guard_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 1), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartBpduGuardEnable.setStatus('current')
stpx_fast_start_bpdu_filter_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 2), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartBpduFilterEnable.setStatus('current')
stpx_fast_start_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3))
if mibBuilder.loadTexts:
stpxFastStartPortTable.setStatus('current')
stpx_fast_start_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortIndex'))
if mibBuilder.loadTexts:
stpxFastStartPortEntry.setStatus('current')
stpx_fast_start_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxFastStartPortIndex.setStatus('current')
stpx_fast_start_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartPortEnable.setStatus('deprecated')
stpx_fast_start_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('enableForTrunk', 3), ('default', 4), ('network', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartPortMode.setStatus('current')
stpx_fast_start_port_bpdu_guard_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartPortBpduGuardMode.setStatus('current')
stpx_fast_start_port_bpdu_filter_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartPortBpduFilterMode.setStatus('current')
stpx_fast_start_global_default_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxFastStartGlobalDefaultMode.setStatus('current')
stpx_fast_start_oper_mode_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5))
if mibBuilder.loadTexts:
stpxFastStartOperModeTable.setStatus('current')
stpx_fast_start_oper_mode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeInstIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModePortIndex'))
if mibBuilder.loadTexts:
stpxFastStartOperModeEntry.setStatus('current')
stpx_fast_start_oper_mode_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
stpxFastStartOperModeInstIndex.setStatus('current')
stpx_fast_start_oper_mode_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxFastStartOperModePortIndex.setStatus('current')
stpx_fast_start_oper_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxFastStartOperMode.setStatus('current')
stpx_bpdu_skewing_detection_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 1), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxBpduSkewingDetectionEnable.setStatus('current')
stpx_bpdu_skewing_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2))
if mibBuilder.loadTexts:
stpxBpduSkewingTable.setStatus('current')
stpx_bpdu_skewing_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingPortIndex'))
if mibBuilder.loadTexts:
stpxBpduSkewingEntry.setStatus('current')
stpx_bpdu_skewing_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)))
if mibBuilder.loadTexts:
stpxBpduSkewingInstanceIndex.setStatus('current')
stpx_bpdu_skewing_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxBpduSkewingPortIndex.setStatus('current')
stpx_bpdu_skewing_last_skew_duration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 3), unsigned32()).setUnits('milliseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBpduSkewingLastSkewDuration.setStatus('current')
stpx_bpdu_skewing_worst_skew_duration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 4), unsigned32()).setUnits('milliseconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBpduSkewingWorstSkewDuration.setStatus('current')
stpx_bpdu_skewing_worst_skew_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 5), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxBpduSkewingWorstSkewTime.setStatus('current')
stpx_mst_max_instance_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTMaxInstanceNumber.setStatus('deprecated')
stpx_mst_region_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTRegionName.setStatus('current')
stpx_mst_region_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTRegionRevision.setStatus('deprecated')
stpx_mst_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4))
if mibBuilder.loadTexts:
stpxMSTInstanceTable.setStatus('deprecated')
stpx_mst_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceIndex'))
if mibBuilder.loadTexts:
stpxMSTInstanceEntry.setStatus('deprecated')
stpx_mst_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256)))
if mibBuilder.loadTexts:
stpxMSTInstanceIndex.setStatus('deprecated')
stpx_mst_instance_vlans_mapped = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTInstanceVlansMapped.setStatus('deprecated')
stpx_mst_instance_vlans_mapped2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTInstanceVlansMapped2k.setStatus('deprecated')
stpx_mst_instance_vlans_mapped3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTInstanceVlansMapped3k.setStatus('deprecated')
stpx_mst_instance_vlans_mapped4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTInstanceVlansMapped4k.setStatus('deprecated')
stpx_mst_instance_remaining_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTInstanceRemainingHopCount.setStatus('deprecated')
stpx_mst_region_edit_buffer_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('released', 1), ('acquiredBySnmp', 2), ('acquiredByNonSnmp', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTRegionEditBufferStatus.setStatus('current')
stpx_mst_region_edit_buffer_operation = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('acquire', 2), ('releaseWithForce', 3), ('commit', 4), ('rollBack', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTRegionEditBufferOperation.setStatus('current')
stpx_mst_region_edit_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTRegionEditName.setStatus('current')
stpx_mst_region_edit_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTRegionEditRevision.setStatus('deprecated')
stpx_mst_instance_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9))
if mibBuilder.loadTexts:
stpxMSTInstanceEditTable.setStatus('deprecated')
stpx_mst_instance_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditIndex'))
if mibBuilder.loadTexts:
stpxMSTInstanceEditEntry.setStatus('deprecated')
stpx_mst_instance_edit_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256)))
if mibBuilder.loadTexts:
stpxMSTInstanceEditIndex.setStatus('deprecated')
stpx_mst_instance_edit_vlans_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTInstanceEditVlansMap.setStatus('deprecated')
stpx_mst_instance_edit_vlans_map2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTInstanceEditVlansMap2k.setStatus('deprecated')
stpx_mst_instance_edit_vlans_map3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTInstanceEditVlansMap3k.setStatus('deprecated')
stpx_mst_instance_edit_vlans_map4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTInstanceEditVlansMap4k.setStatus('deprecated')
stpx_preferred_mst_instances_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10))
if mibBuilder.loadTexts:
stpxPreferredMSTInstancesTable.setStatus('deprecated')
stpx_preferred_mst_instances_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1))
vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesEntry'))
stpxPreferredMSTInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames())
if mibBuilder.loadTexts:
stpxPreferredMSTInstancesEntry.setStatus('deprecated')
stpx_preferred_mst_instances_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxPreferredMSTInstancesMap.setStatus('deprecated')
stpx_mst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11))
if mibBuilder.loadTexts:
stpxMSTPortTable.setStatus('deprecated')
stpx_mst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortIndex'))
if mibBuilder.loadTexts:
stpxMSTPortEntry.setStatus('deprecated')
stpx_mst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxMSTPortIndex.setStatus('deprecated')
stpx_mst_port_admin_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('auto', 3))).clone('auto')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTPortAdminLinkType.setStatus('deprecated')
stpx_mst_port_oper_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('other', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTPortOperLinkType.setStatus('deprecated')
stpx_mst_port_protocol_migration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTPortProtocolMigration.setStatus('deprecated')
stpx_mst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 5), bits().clone(namedValues=named_values(('edge', 0), ('boundary', 1), ('pvst', 2), ('stp', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTPortStatus.setStatus('deprecated')
stpx_mst_port_role_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12))
if mibBuilder.loadTexts:
stpxMSTPortRoleTable.setStatus('deprecated')
stpx_mst_port_role_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRoleInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRolePortIndex'))
if mibBuilder.loadTexts:
stpxMSTPortRoleEntry.setStatus('deprecated')
stpx_mst_port_role_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256)))
if mibBuilder.loadTexts:
stpxMSTPortRoleInstanceIndex.setStatus('deprecated')
stpx_mst_port_role_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxMSTPortRolePortIndex.setStatus('deprecated')
stpx_mst_port_role_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disabled', 1), ('root', 2), ('designated', 3), ('alternate', 4), ('backUp', 5), ('boundary', 6), ('master', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxMSTPortRoleValue.setStatus('deprecated')
stpx_mst_max_hop_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 40)).clone(20)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxMSTMaxHopCount.setStatus('deprecated')
stpx_rstp_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1))
if mibBuilder.loadTexts:
stpxRSTPPortTable.setStatus('current')
stpx_rstp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortIndex'))
if mibBuilder.loadTexts:
stpxRSTPPortEntry.setStatus('current')
stpx_rstp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxRSTPPortIndex.setStatus('current')
stpx_rstp_port_admin_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('auto', 3))).clone('auto')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxRSTPPortAdminLinkType.setStatus('current')
stpx_rstp_port_oper_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('other', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxRSTPPortOperLinkType.setStatus('current')
stpx_rstp_port_protocol_migration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxRSTPPortProtocolMigration.setStatus('current')
stpx_rstp_port_role_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2))
if mibBuilder.loadTexts:
stpxRSTPPortRoleTable.setStatus('current')
stpx_rstp_port_role_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRoleInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRolePortIndex'))
if mibBuilder.loadTexts:
stpxRSTPPortRoleEntry.setStatus('current')
stpx_rstp_port_role_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095)))
if mibBuilder.loadTexts:
stpxRSTPPortRoleInstanceIndex.setStatus('current')
stpx_rstp_port_role_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxRSTPPortRolePortIndex.setStatus('current')
stpx_rstp_port_role_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disabled', 1), ('root', 2), ('designated', 3), ('alternate', 4), ('backUp', 5), ('boundary', 6), ('master', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxRSTPPortRoleValue.setStatus('current')
stpx_rstp_transmit_hold_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 3), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxRSTPTransmitHoldCount.setStatus('current')
stpx_rpvst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1))
if mibBuilder.loadTexts:
stpxRPVSTPortTable.setStatus('current')
stpx_rpvst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortVlanIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortIndex'))
if mibBuilder.loadTexts:
stpxRPVSTPortEntry.setStatus('current')
stpx_rpvst_port_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 1), vlan_index())
if mibBuilder.loadTexts:
stpxRPVSTPortVlanIndex.setStatus('current')
stpx_rpvst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxRPVSTPortIndex.setStatus('current')
stpx_rpvst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 3), bits().clone(namedValues=named_values(('edge', 0), ('unused1', 1), ('unused2', 2), ('stp', 3), ('dispute', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxRPVSTPortStatus.setStatus('current')
stpx_smst_max_instances = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTMaxInstances.setStatus('current')
stpx_smst_max_instance_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTMaxInstanceID.setStatus('current')
stpx_smst_region_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTRegionRevision.setStatus('current')
stpx_smst_region_edit_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 4), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSMSTRegionEditRevision.setStatus('current')
stpx_smst_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5))
if mibBuilder.loadTexts:
stpxSMSTInstanceTable.setStatus('current')
stpx_smst_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceIndex'))
if mibBuilder.loadTexts:
stpxSMSTInstanceEntry.setStatus('current')
stpx_smst_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 1), unsigned32())
if mibBuilder.loadTexts:
stpxSMSTInstanceIndex.setStatus('current')
stpx_smst_instance_vlans_mapped1k2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTInstanceVlansMapped1k2k.setStatus('current')
stpx_smst_instance_vlans_mapped3k4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTInstanceVlansMapped3k4k.setStatus('current')
stpx_smst_instance_remaining_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTInstanceRemainingHopCount.setStatus('current')
stpx_smst_instance_cist_regional_root = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTInstanceCISTRegionalRoot.setStatus('current')
stpx_smst_instance_cist_int_root_cost = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTInstanceCISTIntRootCost.setStatus('current')
stpx_smst_instance_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6))
if mibBuilder.loadTexts:
stpxSMSTInstanceEditTable.setStatus('current')
stpx_smst_instance_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditIndex'))
if mibBuilder.loadTexts:
stpxSMSTInstanceEditEntry.setStatus('current')
stpx_smst_instance_edit_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 1), unsigned32())
if mibBuilder.loadTexts:
stpxSMSTInstanceEditIndex.setStatus('current')
stpx_smst_instance_edit_vlans_map1k2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
stpxSMSTInstanceEditVlansMap1k2k.setStatus('current')
stpx_smst_instance_edit_vlans_map3k4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
stpxSMSTInstanceEditVlansMap3k4k.setStatus('current')
stpx_smst_instance_edit_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
stpxSMSTInstanceEditRowStatus.setStatus('current')
stpx_smst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7))
if mibBuilder.loadTexts:
stpxSMSTPortTable.setStatus('current')
stpx_smst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortIndex'))
if mibBuilder.loadTexts:
stpxSMSTPortEntry.setStatus('current')
stpx_smst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
stpxSMSTPortIndex.setStatus('current')
stpx_smst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 2), bits().clone(namedValues=named_values(('edge', 0), ('boundary', 1), ('pvst', 2), ('stp', 3), ('dispute', 4), ('rstp', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTPortStatus.setStatus('current')
stpx_smst_port_admin_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 3), unsigned32()).setUnits('hundredth of seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSMSTPortAdminHelloTime.setStatus('current')
stpx_smst_port_configed_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 4), unsigned32()).setUnits('hundredth of seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTPortConfigedHelloTime.setStatus('current')
stpx_smst_port_oper_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setUnits('hundredth of seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTPortOperHelloTime.setStatus('current')
stpx_smst_port_admin_mst_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('preStandard', 1), ('auto', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSMSTPortAdminMSTMode.setStatus('current')
stpx_smst_port_oper_mst_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('preStandard', 2), ('standard', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTPortOperMSTMode.setStatus('current')
stpx_smst_max_hop_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 8), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
stpxSMSTMaxHopCount.setStatus('current')
stpx_smst_config_digest = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 9), stpx_mst_configuration_digest()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTConfigDigest.setStatus('current')
stpx_smst_config_pre_standard_digest = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 10), stpx_mst_configuration_digest()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
stpxSMSTConfigPreStandardDigest.setStatus('current')
stpx_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0))
stpx_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistentState'))
if mibBuilder.loadTexts:
stpxInconsistencyUpdate.setStatus('current')
stpx_root_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType'))
if mibBuilder.loadTexts:
stpxRootInconsistencyUpdate.setStatus('current')
stpx_loop_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType'))
if mibBuilder.loadTexts:
stpxLoopInconsistencyUpdate.setStatus('current')
stpx_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3))
stpx_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1))
stpx_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2))
stpx_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance = stpxMIBCompliance.setStatus('deprecated')
stpx_mib_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance2 = stpxMIBCompliance2.setStatus('deprecated')
stpx_mib_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance3 = stpxMIBCompliance3.setStatus('deprecated')
stpx_mib_compliance4 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 4)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance4 = stpxMIBCompliance4.setStatus('deprecated')
stpx_mib_compliance5 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 5)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance5 = stpxMIBCompliance5.setStatus('deprecated')
stpx_mib_compliance6 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 6)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance6 = stpxMIBCompliance6.setStatus('deprecated')
stpx_mib_compliance7 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 7)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance7 = stpxMIBCompliance7.setStatus('deprecated')
stpx_mib_compliance8 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 8)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance8 = stpxMIBCompliance8.setStatus('deprecated')
stpx_mib_compliance9 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 9)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance9 = stpxMIBCompliance9.setStatus('deprecated')
stpx_mib_compliance10 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 10)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance10 = stpxMIBCompliance10.setStatus('deprecated')
stpx_mib_compliance11 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 11)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPathCostOperModeGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance11 = stpxMIBCompliance11.setStatus('deprecated')
stpx_mib_compliance12 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 12)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPTransmitHoldCountGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup4'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxHopCountGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPathCostOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortMSTModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigDigestGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mib_compliance12 = stpxMIBCompliance12.setStatus('current')
stpx_uplink_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastTransitions'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkStationLearningGenRate'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkStationLearningFrames'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_uplink_group = stpxUplinkGroup.setStatus('current')
stpx_preferred_vlans_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_preferred_vlans_group = stpxPreferredVlansGroup.setStatus('current')
stpx_sstp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistentState'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_sstp_group = stpxSstpGroup.setStatus('current')
stpx_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 4)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistencyUpdate'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_notifications_group = stpxNotificationsGroup.setStatus('current')
stpx_backbone_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 5)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInInferiorBPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInRLQRequestPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInRLQResponsePDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOutRLQRequestPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOutRLQResponsePDUs'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_backbone_group = stpxBackboneGroup.setStatus('current')
stpx_root_guard_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 6)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardConfigEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyState'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_root_guard_group = stpxRootGuardGroup.setStatus('current')
stpx_root_inconsistency_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 7)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyUpdate'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_root_inconsistency_notifications_group = stpxRootInconsistencyNotificationsGroup.setStatus('current')
stpx4k_vlan_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 8)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap4k'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx4k_vlan_group = stpx4kVlanGroup.setStatus('current')
stpx_spanning_tree_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 9)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_spanning_tree_group = stpxSpanningTreeGroup.setStatus('current')
stpx_mistp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 10)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapInstIndex'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEditInstIndex'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMISTPInstancesMap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mistp_group = stpxMISTPGroup.setStatus('current')
stpx_long_path_cost_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 11)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreePathCostMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongStpPortPathCost'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_long_path_cost_mode_group = stpxLongPathCostModeGroup.setStatus('current')
stpx_pvst_vlan_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 12)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_pvst_vlan_group = stpxPVSTVlanGroup.setStatus('current')
stpx_mistp_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 13)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped4k'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mistp_group2 = stpxMISTPGroup2.setStatus('current')
stpx_loop_guard_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 14)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_loop_guard_group = stpxLoopGuardGroup.setStatus('deprecated')
stpx_loop_inconsistency_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 15)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyUpdate'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_loop_inconsistency_notifications_group = stpxLoopInconsistencyNotificationsGroup.setStatus('current')
stpx_fast_start_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 16)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduGuardEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduFilterEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_fast_start_group = stpxFastStartGroup.setStatus('deprecated')
stpx_bpdu_skewing_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 17)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingDetectionEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingLastSkewDuration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingWorstSkewDuration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingWorstSkewTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_bpdu_skewing_group = stpxBpduSkewingGroup.setStatus('current')
stpx_fast_start_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 18)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduGuardEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduFilterEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGlobalDefaultMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_fast_start_group2 = stpxFastStartGroup2.setStatus('current')
stpx_loop_guard_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 19)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGlobalDefaultMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_loop_guard_group2 = stpxLoopGuardGroup2.setStatus('current')
stpx_mst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 20)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceRemainingHopCount'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortAdminLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortOperLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortProtocolMigration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRoleValue'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mst_group = stpxMSTGroup.setStatus('deprecated')
stpx_preferred_mst_instances_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 21)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesMap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_preferred_mst_instances_group = stpxPreferredMSTInstancesGroup.setStatus('deprecated')
stpx_fast_start_group3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 22)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortBpduGuardMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortBpduFilterMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_fast_start_group3 = stpxFastStartGroup3.setStatus('current')
stpx_uplink_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 23)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastOperEnabled'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_uplink_group2 = stpxUplinkGroup2.setStatus('current')
stpx_backbone_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 24)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOperEnabled'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_backbone_group2 = stpxBackboneGroup2.setStatus('current')
stpx_mst_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 25)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceRemainingHopCount'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mst_group2 = stpxMSTGroup2.setStatus('deprecated')
stpx_rstp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 26)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortAdminLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortOperLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortProtocolMigration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRoleValue'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_rstp_group = stpxRSTPGroup.setStatus('current')
stpx_rpvst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 27)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_rpvst_group = stpxRPVSTGroup.setStatus('current')
stpx_extended_sys_id_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 28)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDAdminEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDOperEnabled'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_extended_sys_id_group = stpxExtendedSysIDGroup.setStatus('current')
stpx_notification_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 29)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_notification_enable_group = stpxNotificationEnableGroup.setStatus('current')
stpx_fast_start_oper_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 30)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_fast_start_oper_mode_group = stpxFastStartOperModeGroup.setStatus('current')
stpx_mst_group3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 31)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mst_group3 = stpxMSTGroup3.setStatus('deprecated')
stpx_smst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 32)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxInstances'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxInstanceID'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTRegionEditRevision'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_group = stpxSMSTGroup.setStatus('current')
stpx_smst_instance_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 33)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceVlansMapped1k2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceVlansMapped3k4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceRemainingHopCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_instance_group = stpxSMSTInstanceGroup.setStatus('current')
stpx_smst_instance_edit_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 34)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditVlansMap1k2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditVlansMap3k4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_instance_edit_group = stpxSMSTInstanceEditGroup.setStatus('current')
stpx_smst_port_status_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 35)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_port_status_group = stpxSMSTPortStatusGroup.setStatus('current')
stpx_smst_port_hello_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 36)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortAdminHelloTime'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortConfigedHelloTime'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortOperHelloTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_port_hello_time_group = stpxSMSTPortHelloTimeGroup.setStatus('current')
stpx_smst_instance_cist_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 37)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTRegionalRoot'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTIntRootCost'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_instance_cist_group = stpxSMSTInstanceCISTGroup.setStatus('current')
stpx_path_cost_oper_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 38)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreePathCostOperMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_path_cost_oper_mode_group = stpxPathCostOperModeGroup.setStatus('current')
stpx_rstp_transmit_hold_count_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 39)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPTransmitHoldCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_rstp_transmit_hold_count_group = stpxRSTPTransmitHoldCountGroup.setStatus('current')
stpx_smst_port_mst_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 40)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortAdminMSTMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortOperMSTMode'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_port_mst_mode_group = stpxSMSTPortMSTModeGroup.setStatus('current')
stpx_smst_max_hop_count_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 41)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxHopCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_max_hop_count_group = stpxSMSTMaxHopCountGroup.setStatus('current')
stpx_smst_config_digest_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 42)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigDigest'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigPreStandardDigest'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_smst_config_digest_group = stpxSMSTConfigDigestGroup.setStatus('current')
stpx_mst_group4 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 43)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
stpx_mst_group4 = stpxMSTGroup4.setStatus('current')
mibBuilder.exportSymbols('CISCO-STP-EXTENSIONS-MIB', stpxMIBCompliance2=stpxMIBCompliance2, stpxBackboneFastInRLQRequestPDUs=stpxBackboneFastInRLQRequestPDUs, stpxFastStartOperModeInstIndex=stpxFastStartOperModeInstIndex, stpxPathCostOperModeGroup=stpxPathCostOperModeGroup, stpxRootGuardConfigEntry=stpxRootGuardConfigEntry, stpxSMSTInstanceEditVlansMap3k4k=stpxSMSTInstanceEditVlansMap3k4k, stpxSMSTConfigDigest=stpxSMSTConfigDigest, stpxFastStartGroup3=stpxFastStartGroup3, stpxVlanMISTPInstMapTable=stpxVlanMISTPInstMapTable, stpxFastStartPortMode=stpxFastStartPortMode, stpxRSTPPortIndex=stpxRSTPPortIndex, stpxSpanningTreeGroup=stpxSpanningTreeGroup, stpxSMSTInstanceEditTable=stpxSMSTInstanceEditTable, PYSNMP_MODULE_ID=ciscoStpExtensionsMIB, stpxPreferredVlansMap4k=stpxPreferredVlansMap4k, stpxUplinkFastTransitions=stpxUplinkFastTransitions, stpxRSTPPortRolePortIndex=stpxRSTPPortRolePortIndex, stpxSMSTInstanceCISTGroup=stpxSMSTInstanceCISTGroup, stpxRSTPPortEntry=stpxRSTPPortEntry, stpxFastStartGroup=stpxFastStartGroup, stpxFastStartOperMode=stpxFastStartOperMode, stpxMIBCompliance8=stpxMIBCompliance8, stpxBackboneFastInInferiorBPDUs=stpxBackboneFastInInferiorBPDUs, stpxBpduSkewingWorstSkewTime=stpxBpduSkewingWorstSkewTime, stpxSstpGroup=stpxSstpGroup, stpxPreferredMSTInstancesMap=stpxPreferredMSTInstancesMap, stpxSMSTPortAdminMSTMode=stpxSMSTPortAdminMSTMode, stpxRootInconsistencyUpdate=stpxRootInconsistencyUpdate, stpxPreferredVlansEntry=stpxPreferredVlansEntry, stpxBpduSkewingWorstSkewDuration=stpxBpduSkewingWorstSkewDuration, stpxRSTPPortProtocolMigration=stpxRSTPPortProtocolMigration, stpxPreferredVlansMap3k=stpxPreferredVlansMap3k, stpxMSTGroup4=stpxMSTGroup4, stpxMSTPortRoleTable=stpxMSTPortRoleTable, stpxLoopGuardConfigEnabled=stpxLoopGuardConfigEnabled, stpxFastStartPortIndex=stpxFastStartPortIndex, stpxVlanMISTPInstMapEditEntry=stpxVlanMISTPInstMapEditEntry, stpxRootInconsistencyPortIndex=stpxRootInconsistencyPortIndex, stpxMSTInstanceVlansMapped3k=stpxMSTInstanceVlansMapped3k, stpxFastStartGroup2=stpxFastStartGroup2, stpxUplinkFastEnabled=stpxUplinkFastEnabled, stpxRootInconsistencyIndex=stpxRootInconsistencyIndex, stpxMSTPortAdminLinkType=stpxMSTPortAdminLinkType, stpxMSTPortRoleInstanceIndex=stpxMSTPortRoleInstanceIndex, stpxSMSTMaxHopCountGroup=stpxSMSTMaxHopCountGroup, stpxRootGuardObjects=stpxRootGuardObjects, stpxLoopGuardGlobalDefaultMode=stpxLoopGuardGlobalDefaultMode, stpxMSTInstanceEditVlansMap2k=stpxMSTInstanceEditVlansMap2k, stpxObjects=stpxObjects, stpxSMSTPortConfigedHelloTime=stpxSMSTPortConfigedHelloTime, stpxMSTInstanceTable=stpxMSTInstanceTable, stpxMSTRegionEditBufferOperation=stpxMSTRegionEditBufferOperation, stpxMSTPortProtocolMigration=stpxMSTPortProtocolMigration, stpxMSTRegionEditRevision=stpxMSTRegionEditRevision, stpxSMSTObjects=stpxSMSTObjects, stpxMISTPInstanceVlansMapped3k=stpxMISTPInstanceVlansMapped3k, stpxRootGuardGroup=stpxRootGuardGroup, stpxMIBCompliances=stpxMIBCompliances, stpxUplinkStationLearningGenRate=stpxUplinkStationLearningGenRate, stpxSMSTInstanceRemainingHopCount=stpxSMSTInstanceRemainingHopCount, stpxBackboneFastEnabled=stpxBackboneFastEnabled, stpxMSTInstanceEditEntry=stpxMSTInstanceEditEntry, stpxSMSTPortOperHelloTime=stpxSMSTPortOperHelloTime, stpxMSTGroup2=stpxMSTGroup2, stpxVlanMISTPInstMapInstIndex=stpxVlanMISTPInstMapInstIndex, stpxSMSTPortIndex=stpxSMSTPortIndex, stpxFastStartObjects=stpxFastStartObjects, stpxRPVSTPortEntry=stpxRPVSTPortEntry, stpxInconsistencyObjects=stpxInconsistencyObjects, stpxUplinkStationLearningFrames=stpxUplinkStationLearningFrames, stpxNotificationEnableGroup=stpxNotificationEnableGroup, stpxBackboneFastOperEnabled=stpxBackboneFastOperEnabled, stpxLongStpPortPathCostEntry=stpxLongStpPortPathCostEntry, stpxMISTPInstanceEntry=stpxMISTPInstanceEntry, stpxMSTPortRoleValue=stpxMSTPortRoleValue, stpxMISTPGroup=stpxMISTPGroup, stpxRootGuardConfigTable=stpxRootGuardConfigTable, stpxMISTPInstanceVlansMapped=stpxMISTPInstanceVlansMapped, stpxMSTInstanceEntry=stpxMSTInstanceEntry, stpxMSTInstanceVlansMapped=stpxMSTInstanceVlansMapped, stpxSMSTInstanceVlansMapped1k2k=stpxSMSTInstanceVlansMapped1k2k, stpxPortIndex=stpxPortIndex, stpxRootGuardConfigPortIndex=stpxRootGuardConfigPortIndex, stpxLoopGuardConfigMode=stpxLoopGuardConfigMode, stpxSMSTInstanceCISTRegionalRoot=stpxSMSTInstanceCISTRegionalRoot, stpxSMSTPortEntry=stpxSMSTPortEntry, stpxSMSTPortStatus=stpxSMSTPortStatus, stpxSMSTMaxHopCount=stpxSMSTMaxHopCount, stpxLoopInconsistencyNotificationsGroup=stpxLoopInconsistencyNotificationsGroup, stpxLoopInconsistencyPortIndex=stpxLoopInconsistencyPortIndex, stpxSMSTPortOperMSTMode=stpxSMSTPortOperMSTMode, stpxLoopGuardConfigTable=stpxLoopGuardConfigTable, stpxLoopGuardGroup2=stpxLoopGuardGroup2, stpxSMSTConfigPreStandardDigest=stpxSMSTConfigPreStandardDigest, stpxFastStartPortTable=stpxFastStartPortTable, stpxRSTPTransmitHoldCount=stpxRSTPTransmitHoldCount, stpxMIBCompliance5=stpxMIBCompliance5, stpxMSTInstanceVlansMapped2k=stpxMSTInstanceVlansMapped2k, stpxUplinkFastOperEnabled=stpxUplinkFastOperEnabled, stpxSMSTInstanceEditIndex=stpxSMSTInstanceEditIndex, stpxBackboneFastOutRLQRequestPDUs=stpxBackboneFastOutRLQRequestPDUs, stpxBackboneFastOutRLQResponsePDUs=stpxBackboneFastOutRLQResponsePDUs, stpxMSTRegionEditName=stpxMSTRegionEditName, stpxMISTPInstanceVlansMapped2k=stpxMISTPInstanceVlansMapped2k, stpxMSTInstanceEditVlansMap3k=stpxMSTInstanceEditVlansMap3k, stpxSMSTInstanceCISTIntRootCost=stpxSMSTInstanceCISTIntRootCost, stpxFastStartBpduFilterEnable=stpxFastStartBpduFilterEnable, stpxFastStartPortEntry=stpxFastStartPortEntry, stpxLoopInconsistencyUpdate=stpxLoopInconsistencyUpdate, stpxRootInconsistencyNotificationsGroup=stpxRootInconsistencyNotificationsGroup, stpxMSTGroup=stpxMSTGroup, stpxMISTPInstanceIndex=stpxMISTPInstanceIndex, stpxMSTPortOperLinkType=stpxMSTPortOperLinkType, stpxPreferredVlansGroup=stpxPreferredVlansGroup, stpxSMSTInstanceEditVlansMap1k2k=stpxSMSTInstanceEditVlansMap1k2k, stpxVlanMISTPInstMapEditInstIndex=stpxVlanMISTPInstMapEditInstIndex, stpxFastStartPortEnable=stpxFastStartPortEnable, stpxPreferredVlansMap=stpxPreferredVlansMap, stpxLoopInconsistencyIndex=stpxLoopInconsistencyIndex, stpxRSTPPortRoleEntry=stpxRSTPPortRoleEntry, stpxNotificationsGroup=stpxNotificationsGroup, stpxExtendedSysIDOperEnabled=stpxExtendedSysIDOperEnabled, stpxMIBCompliance4=stpxMIBCompliance4, stpxMSTRegionEditBufferStatus=stpxMSTRegionEditBufferStatus, stpxMSTPortIndex=stpxMSTPortIndex, stpxMSTPortRoleEntry=stpxMSTPortRoleEntry, stpxPVSTVlanTable=stpxPVSTVlanTable, stpxSMSTPortStatusGroup=stpxSMSTPortStatusGroup, stpxBpduSkewingTable=stpxBpduSkewingTable, stpxRPVSTPortTable=stpxRPVSTPortTable, stpxPreferredVlansMap2k=stpxPreferredVlansMap2k, stpxMSTInstanceRemainingHopCount=stpxMSTInstanceRemainingHopCount, stpxBpduSkewingInstanceIndex=stpxBpduSkewingInstanceIndex, stpxVlanMISTPInstMapEditTable=stpxVlanMISTPInstMapEditTable, stpxMSTPortStatus=stpxMSTPortStatus, stpxPVSTVlanEntry=stpxPVSTVlanEntry, stpxFastStartOperModePortIndex=stpxFastStartOperModePortIndex, stpxMSTInstanceEditTable=stpxMSTInstanceEditTable, stpxFastStartBpduGuardEnable=stpxFastStartBpduGuardEnable, stpxSMSTPortTable=stpxSMSTPortTable, stpxSMSTPortHelloTimeGroup=stpxSMSTPortHelloTimeGroup, stpxPVSTVlanGroup=stpxPVSTVlanGroup, stpx4kVlanGroup=stpx4kVlanGroup, stpxSpanningTreeType=stpxSpanningTreeType, stpxMSTPortTable=stpxMSTPortTable, stpxMSTMaxInstanceNumber=stpxMSTMaxInstanceNumber, stpxPreferredMSTInstancesEntry=stpxPreferredMSTInstancesEntry, stpxMISTPObjects=stpxMISTPObjects, stpxMISTPInstanceVlansMapped4k=stpxMISTPInstanceVlansMapped4k, stpxNotifications=stpxNotifications, stpxMISTPInstanceNumber=stpxMISTPInstanceNumber, stpxMSTInstanceIndex=stpxMSTInstanceIndex, stpxSMSTInstanceGroup=stpxSMSTInstanceGroup, stpxSMSTInstanceEditEntry=stpxSMSTInstanceEditEntry, ciscoStpExtensionsMIB=ciscoStpExtensionsMIB, stpxLoopGuardObjects=stpxLoopGuardObjects, stpxRPVSTPortStatus=stpxRPVSTPortStatus, stpxMIBCompliance3=stpxMIBCompliance3, stpxLongPathCostModeGroup=stpxLongPathCostModeGroup, stpxMISTPGroup2=stpxMISTPGroup2, stpxLoopInconsistencyTable=stpxLoopInconsistencyTable, stpxSMSTInstanceEditGroup=stpxSMSTInstanceEditGroup, stpxMSTInstanceVlansMapped4k=stpxMSTInstanceVlansMapped4k, stpxSMSTInstanceTable=stpxSMSTInstanceTable, stpxRootInconsistencyTable=stpxRootInconsistencyTable, stpxPVSTVlanIndex=stpxPVSTVlanIndex, stpxMISTPInstanceTable=stpxMISTPInstanceTable, stpxMSTInstanceEditVlansMap4k=stpxMSTInstanceEditVlansMap4k, stpxRSTPPortTable=stpxRSTPPortTable, stpxBpduSkewingPortIndex=stpxBpduSkewingPortIndex, stpxRSTPGroup=stpxRSTPGroup, stpxMIBCompliance11=stpxMIBCompliance11, stpxRSTPPortRoleInstanceIndex=stpxRSTPPortRoleInstanceIndex, stpxSpanningTreeObjects=stpxSpanningTreeObjects, stpxSMSTMaxInstances=stpxSMSTMaxInstances, stpxSMSTConfigDigestGroup=stpxSMSTConfigDigestGroup, stpxSMSTRegionEditRevision=stpxSMSTRegionEditRevision, stpxRSTPPortOperLinkType=stpxRSTPPortOperLinkType, stpxRPVSTObjects=stpxRPVSTObjects, stpxPreferredMSTInstancesTable=stpxPreferredMSTInstancesTable, stpxUplinkFastObjects=stpxUplinkFastObjects, stpxRPVSTGroup=stpxRPVSTGroup, stpxSMSTInstanceVlansMapped3k4k=stpxSMSTInstanceVlansMapped3k4k, stpxMIBConformance=stpxMIBConformance, stpxMIBCompliance=stpxMIBCompliance, stpxFastStartOperModeEntry=stpxFastStartOperModeEntry, stpxRSTPPortRoleTable=stpxRSTPPortRoleTable, stpxRSTPPortAdminLinkType=stpxRSTPPortAdminLinkType, stpxMIBCompliance9=stpxMIBCompliance9, stpxLoopGuardConfigPortIndex=stpxLoopGuardConfigPortIndex, stpxSMSTInstanceEditRowStatus=stpxSMSTInstanceEditRowStatus, stpxFastStartOperModeGroup=stpxFastStartOperModeGroup, stpxLoopGuardGroup=stpxLoopGuardGroup, stpxExtendedSysIDAdminEnabled=stpxExtendedSysIDAdminEnabled, stpxLoopGuardConfigEntry=stpxLoopGuardConfigEntry, stpxUplinkGroup2=stpxUplinkGroup2, stpxNotificationsPrefix=stpxNotificationsPrefix, stpxLongStpPortPathCost=stpxLongStpPortPathCost, stpxRootInconsistencyState=stpxRootInconsistencyState, stpxRootGuardConfigEnabled=stpxRootGuardConfigEnabled, stpxMIBCompliance6=stpxMIBCompliance6, stpxMIBCompliance10=stpxMIBCompliance10, stpxMIBCompliance12=stpxMIBCompliance12, stpxSMSTPortMSTModeGroup=stpxSMSTPortMSTModeGroup, stpxRSTPObjects=stpxRSTPObjects, stpxMSTPortRolePortIndex=stpxMSTPortRolePortIndex, stpxSpanningTreePathCostMode=stpxSpanningTreePathCostMode, stpxVlanIndex=stpxVlanIndex, stpxBpduSkewingObjects=stpxBpduSkewingObjects, stpxNotificationEnable=stpxNotificationEnable, stpxFastStartPortBpduFilterMode=stpxFastStartPortBpduFilterMode, stpxBpduSkewingDetectionEnable=stpxBpduSkewingDetectionEnable, stpxBackboneFastInRLQResponsePDUs=stpxBackboneFastInRLQResponsePDUs, stpxBackboneGroup2=stpxBackboneGroup2, stpxMSTPortEntry=stpxMSTPortEntry, stpxBackboneGroup=stpxBackboneGroup, stpxMSTInstanceEditVlansMap=stpxMSTInstanceEditVlansMap, stpxMSTInstanceEditIndex=stpxMSTInstanceEditIndex, stpxInconsistencyEntry=stpxInconsistencyEntry, stpxInconsistencyUpdate=stpxInconsistencyUpdate, stpxRPVSTPortIndex=stpxRPVSTPortIndex, stpxBackboneFastObjects=stpxBackboneFastObjects, stpxPreferredMISTPInstancesTable=stpxPreferredMISTPInstancesTable, stpxMSTRegionRevision=stpxMSTRegionRevision, stpxFastStartPortBpduGuardMode=stpxFastStartPortBpduGuardMode, stpxPreferredMISTPInstancesEntry=stpxPreferredMISTPInstancesEntry, stpxSMSTInstanceIndex=stpxSMSTInstanceIndex, stpxInconsistentState=stpxInconsistentState, stpxLongStpPortPathCostTable=stpxLongStpPortPathCostTable, stpxFastStartGlobalDefaultMode=stpxFastStartGlobalDefaultMode, stpxBpduSkewingEntry=stpxBpduSkewingEntry, stpxSMSTPortAdminHelloTime=stpxSMSTPortAdminHelloTime, stpxSMSTGroup=stpxSMSTGroup, stpxVlanObjects=stpxVlanObjects, stpxMISTPInstanceEnable=stpxMISTPInstanceEnable, stpxMIBCompliance7=stpxMIBCompliance7, stpxLoopInconsistencyEntry=stpxLoopInconsistencyEntry, stpxRPVSTPortVlanIndex=stpxRPVSTPortVlanIndex, stpxMSTGroup3=stpxMSTGroup3, StpxMSTConfigurationDigest=StpxMSTConfigurationDigest, stpxBpduSkewingLastSkewDuration=stpxBpduSkewingLastSkewDuration, stpxMSTRegionName=stpxMSTRegionName, stpxPreferredMISTPInstancesMap=stpxPreferredMISTPInstancesMap, stpxMSTObjects=stpxMSTObjects, stpxPreferredMSTInstancesGroup=stpxPreferredMSTInstancesGroup, stpxInconsistencyTable=stpxInconsistencyTable, stpxMSTMaxHopCount=stpxMSTMaxHopCount, stpxExtendedSysIDGroup=stpxExtendedSysIDGroup, stpxRootInconsistencyEntry=stpxRootInconsistencyEntry, stpxRSTPPortRoleValue=stpxRSTPPortRoleValue, stpxRSTPTransmitHoldCountGroup=stpxRSTPTransmitHoldCountGroup, stpxLoopInconsistencyState=stpxLoopInconsistencyState, stpxFastStartOperModeTable=stpxFastStartOperModeTable, stpxPVSTVlanEnable=stpxPVSTVlanEnable)
mibBuilder.exportSymbols('CISCO-STP-EXTENSIONS-MIB', stpxSMSTRegionRevision=stpxSMSTRegionRevision, stpxBpduSkewingGroup=stpxBpduSkewingGroup, stpxPreferredVlansTable=stpxPreferredVlansTable, stpxMIBGroups=stpxMIBGroups, stpxSpanningTreePathCostOperMode=stpxSpanningTreePathCostOperMode, stpxVlanMISTPInstMapEntry=stpxVlanMISTPInstMapEntry, stpxUplinkGroup=stpxUplinkGroup, stpxSMSTMaxInstanceID=stpxSMSTMaxInstanceID, stpxSMSTInstanceEntry=stpxSMSTInstanceEntry) |
class ParseException(Exception):
pass
class RollbackException(Exception):
pass
| class Parseexception(Exception):
pass
class Rollbackexception(Exception):
pass |
lista=[]
datos=int(input("Ingrese numero de datos: "))
for i in range(0,datos):
alt=float(input("Ingrese las alturas: "))
lista.append(alt)
print("La altura maxima es: ", max(lista)) | lista = []
datos = int(input('Ingrese numero de datos: '))
for i in range(0, datos):
alt = float(input('Ingrese las alturas: '))
lista.append(alt)
print('La altura maxima es: ', max(lista)) |
#
# Building script for ipcamera application
#
{
'includes': ['build/common.gypi'],
'targets' : [
{
'target_name': 'camerartc',
'type': 'executable',
'include_dirs': [
'../third_party/webrtc/modules/interface',
],
'dependencies': [
'libjingle.gyp:libjingle_peerconnection',
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
],
'sources': [
'camerartc/main.cpp',
'camerartc/peer.h',
'camerartc/peer.cpp',
'camerartc/camerartc.h',
'camerartc/camerartc.cpp',
'camerartc/rtcstream.h',
'camerartc/rtcstream.cpp',
'camerartc/attendee.h',
'camerartc/attendee.cpp',
'camerartc/mediabuffer.h',
'camerartc/mediabuffer.cpp',
'camerartc/raptor/numberdb.h',
'camerartc/raptor/numberdb.cpp',
'camerartc/raptor/rprandom.h',
'camerartc/raptor/rprandom.cpp',
'camerartc/raptor/raptor.h',
'camerartc/raptor/aaptor.cpp',
'camerartc/g72x/g726_32.c',
'camerartc/g72x/g711.c',
'camerartc/g72x/g72x.c',
],
},
],
}
| {'includes': ['build/common.gypi'], 'targets': [{'target_name': 'camerartc', 'type': 'executable', 'include_dirs': ['../third_party/webrtc/modules/interface'], 'dependencies': ['libjingle.gyp:libjingle_peerconnection', '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp'], 'sources': ['camerartc/main.cpp', 'camerartc/peer.h', 'camerartc/peer.cpp', 'camerartc/camerartc.h', 'camerartc/camerartc.cpp', 'camerartc/rtcstream.h', 'camerartc/rtcstream.cpp', 'camerartc/attendee.h', 'camerartc/attendee.cpp', 'camerartc/mediabuffer.h', 'camerartc/mediabuffer.cpp', 'camerartc/raptor/numberdb.h', 'camerartc/raptor/numberdb.cpp', 'camerartc/raptor/rprandom.h', 'camerartc/raptor/rprandom.cpp', 'camerartc/raptor/raptor.h', 'camerartc/raptor/aaptor.cpp', 'camerartc/g72x/g726_32.c', 'camerartc/g72x/g711.c', 'camerartc/g72x/g72x.c']}]} |
# -*- coding: utf-8 -*-
def test_del_first_group(app):
app.session.login(username = "admin", password = "secret")
app.group.delete_first_group()
app.session.logout() | def test_del_first_group(app):
app.session.login(username='admin', password='secret')
app.group.delete_first_group()
app.session.logout() |
class DataNotFound(RuntimeError):
pass
class DataError(RuntimeError):
pass
class InvalidAge(RuntimeError):
pass
class InvalidMeasurement(RuntimeError):
pass | class Datanotfound(RuntimeError):
pass
class Dataerror(RuntimeError):
pass
class Invalidage(RuntimeError):
pass
class Invalidmeasurement(RuntimeError):
pass |
# check modulo matches python definition
# this tests compiler constant folding
print(123 % 7)
print(-123 % 7)
print(123 % -7)
print(-123 % -7)
a = 321
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
a = 987654321987987987987987987987
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
| print(123 % 7)
print(-123 % 7)
print(123 % -7)
print(-123 % -7)
a = 321
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b)
a = 987654321987987987987987987987
b = 19
print(a % b)
print(a % -b)
print(-a % b)
print(-a % -b) |
class Judge:
def __init__(self, trial, comparator):
self.trial = trial
self.comparator = comparator
def judge(self, inputs, default):
results = {input: self.trial(input) for input in inputs}
eligible = {input: result for input, result in results.items() if result is not None}
champion = default
for challenger in eligible.items():
champion = self.comparator(champion, challenger)
return champion
| class Judge:
def __init__(self, trial, comparator):
self.trial = trial
self.comparator = comparator
def judge(self, inputs, default):
results = {input: self.trial(input) for input in inputs}
eligible = {input: result for (input, result) in results.items() if result is not None}
champion = default
for challenger in eligible.items():
champion = self.comparator(champion, challenger)
return champion |
class Solution:
def rob(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
elif len(nums) == 1:
return nums[0]
elif len(nums) == 2:
return max(nums[0], nums[1])
scores = [0] * len(nums)
scores[0] = nums[0]
scores[1] = nums[1]
for i in range(2, len(nums)):
if i > 2:
m = max(scores[:i-2+1])
else:
m = scores[0]
scores[i] = max(m + nums[i], scores[i-1])
return scores[-1]
| class Solution:
def rob(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
elif len(nums) == 1:
return nums[0]
elif len(nums) == 2:
return max(nums[0], nums[1])
scores = [0] * len(nums)
scores[0] = nums[0]
scores[1] = nums[1]
for i in range(2, len(nums)):
if i > 2:
m = max(scores[:i - 2 + 1])
else:
m = scores[0]
scores[i] = max(m + nums[i], scores[i - 1])
return scores[-1] |
class BinarySearchTree:
class Node:
def __init__(self, value):
self.left = None
self.right = None
self.value = value
def __init__(self):
self.root = None
def add(self, value):
if self.root:
self._add(value, self.root)
else:
self.root = self.Node(value)
def _add(self, value, node):
if value < node.value:
if node.left:
self._add(value, node.left)
else:
node.left = self.Node(value)
if value > node.value:
if node.right:
self._add(value, node.right)
else:
node.right = self.Node(value)
def preorder_left(self):
return self._preorder_left(self.root)
def _preorder_left(self, node):
if node:
result = str(node.value)+'\n'
result += self._preorder_left(node.left)
result += self._preorder_left(node.right)
return result
else:
return ''
def main():
bst = BinarySearchTree()
for vertex in open('input.txt'):
bst.add(int(vertex))
open('output.txt', 'w').write(bst.preorder_left())
main()
| class Binarysearchtree:
class Node:
def __init__(self, value):
self.left = None
self.right = None
self.value = value
def __init__(self):
self.root = None
def add(self, value):
if self.root:
self._add(value, self.root)
else:
self.root = self.Node(value)
def _add(self, value, node):
if value < node.value:
if node.left:
self._add(value, node.left)
else:
node.left = self.Node(value)
if value > node.value:
if node.right:
self._add(value, node.right)
else:
node.right = self.Node(value)
def preorder_left(self):
return self._preorder_left(self.root)
def _preorder_left(self, node):
if node:
result = str(node.value) + '\n'
result += self._preorder_left(node.left)
result += self._preorder_left(node.right)
return result
else:
return ''
def main():
bst = binary_search_tree()
for vertex in open('input.txt'):
bst.add(int(vertex))
open('output.txt', 'w').write(bst.preorder_left())
main() |
# program to find whether it contains an additive sequence or not.
class Solution(object):
# DFS: iterative implement.
def is_additive_number(self, num):
length = len(num)
for i in range(1, int(length/2+1)):
for j in range(1, int((length-i)/2 + 1)):
first, second, others = num[:i], num[i:i+j], num[i+j:]
if self.isValid(first, second, others):
return True
return False
def isValid(self, first, second, others):
if ((len(first) > 1 and first[0] == "0") or
(len(second) > 1 and second[0] == "0")):
return False
sum_str = str(int(first) + int(second))
if sum_str == others:
return True
elif others.startswith(sum_str):
return self.isValid(second, sum_str, others[len(sum_str):])
else:
return False
if __name__ == "__main__":
print(Solution().is_additive_number('66121830'))
print(Solution().is_additive_number('51123'))
print(Solution().is_additive_number('235813'))
| class Solution(object):
def is_additive_number(self, num):
length = len(num)
for i in range(1, int(length / 2 + 1)):
for j in range(1, int((length - i) / 2 + 1)):
(first, second, others) = (num[:i], num[i:i + j], num[i + j:])
if self.isValid(first, second, others):
return True
return False
def is_valid(self, first, second, others):
if len(first) > 1 and first[0] == '0' or (len(second) > 1 and second[0] == '0'):
return False
sum_str = str(int(first) + int(second))
if sum_str == others:
return True
elif others.startswith(sum_str):
return self.isValid(second, sum_str, others[len(sum_str):])
else:
return False
if __name__ == '__main__':
print(solution().is_additive_number('66121830'))
print(solution().is_additive_number('51123'))
print(solution().is_additive_number('235813')) |
class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
s = []; t = []
for i in range(len(S)):
if S[i] == "#":
if len(s) > 0:
s.pop(-1)
else:
s.append(S[i])
for i in range(len(T)):
if T[i] == "#":
if len(t) > 0:
t.pop(-1)
else:
t.append(T[i])
return s == t
| class Solution:
def backspace_compare(self, S: str, T: str) -> bool:
s = []
t = []
for i in range(len(S)):
if S[i] == '#':
if len(s) > 0:
s.pop(-1)
else:
s.append(S[i])
for i in range(len(T)):
if T[i] == '#':
if len(t) > 0:
t.pop(-1)
else:
t.append(T[i])
return s == t |
N = int(input())
before = input()
after = input()
if N % 2 == 0:
print("Deletion succeeded" if before == after else "Deletion failed")
else:
find = True
for i in range(len(before)):
if before[i] == after[i]:
find = False
break
print("Deletion succeeded" if find else "Deletion failed") | n = int(input())
before = input()
after = input()
if N % 2 == 0:
print('Deletion succeeded' if before == after else 'Deletion failed')
else:
find = True
for i in range(len(before)):
if before[i] == after[i]:
find = False
break
print('Deletion succeeded' if find else 'Deletion failed') |
class Actor:
def __init__(self, sess, learning_rate,action_dim,action_bound):
self.sess = sess
self.action_dim = action_dim
self.action_bound = action_bound
self.learning_rate = learning_rate
# input current state, output action to be taken
self.a = self.build_neural_network(S, scope='eval_nn', trainable=True)
self.a_ = self.build_neural_network(S_, scope='target_nn', trainable=False)
self.eval_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/eval_nn')
self.target_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/target_nn')
def act(self, s):
s = s[np.newaxis, :]
return self.sess.run(self.a, feed_dict={s: state})[0]
def learn(self, state): # update parameters
self.sess.run(self.train_op, feed_dict={s: state})
if self.t_replace_counter % self.t_replace_iter == 0:
self.sess.run([tf.assign(t, e) for t, e in zip(self.target_parameters, self.eval_parameters)])
self.t_replace_counter += 1
def build_neural_network(self, s, scope, trainable):
init_weights = tf.random_normal_initializer(0., 0.1)
init_bias = tf.constant_initializer(0.01)
# three dense layer networks
nn = tf.layers.dense(s, 500, activation=tf.nn.relu,
kernel_initializer=init_weights, bias_initializer=init_bias, name='l1', trainable=trainable)
nn = tf.layers.dense(nn, 200, activation=tf.nn.relu,
kernel_initializer=init_weights, bias_initializer=init_bias, name='l2', trainable=trainable)
actions = tf.layers.dense(nn, self.action_dim, activation=tf.nn.tanh, kernel_initializer=init_weights,
bias_initializer=init_bias, name='a', trainable=trainable)
scaled_actions = tf.multiply(actions, self.action_bound, name='scaled_actions')
return scaled_actions
def add_gradient(self, a_gradients):
self.policy_gradients_and_vars = tf.gradients(ys=self.a, xs=self.eval_parameters, grad_ys=a_gradients)
opt = tf.train.RMSPropOptimizer(-self.learning_rate) # gradient ascent
self.train_op = opt.apply_gradients(zip(self.policy_gradients_and_vars, self.eval_parameters), global_step=GLOBAL_STEP)
| class Actor:
def __init__(self, sess, learning_rate, action_dim, action_bound):
self.sess = sess
self.action_dim = action_dim
self.action_bound = action_bound
self.learning_rate = learning_rate
self.a = self.build_neural_network(S, scope='eval_nn', trainable=True)
self.a_ = self.build_neural_network(S_, scope='target_nn', trainable=False)
self.eval_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/eval_nn')
self.target_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/target_nn')
def act(self, s):
s = s[np.newaxis, :]
return self.sess.run(self.a, feed_dict={s: state})[0]
def learn(self, state):
self.sess.run(self.train_op, feed_dict={s: state})
if self.t_replace_counter % self.t_replace_iter == 0:
self.sess.run([tf.assign(t, e) for (t, e) in zip(self.target_parameters, self.eval_parameters)])
self.t_replace_counter += 1
def build_neural_network(self, s, scope, trainable):
init_weights = tf.random_normal_initializer(0.0, 0.1)
init_bias = tf.constant_initializer(0.01)
nn = tf.layers.dense(s, 500, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l1', trainable=trainable)
nn = tf.layers.dense(nn, 200, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l2', trainable=trainable)
actions = tf.layers.dense(nn, self.action_dim, activation=tf.nn.tanh, kernel_initializer=init_weights, bias_initializer=init_bias, name='a', trainable=trainable)
scaled_actions = tf.multiply(actions, self.action_bound, name='scaled_actions')
return scaled_actions
def add_gradient(self, a_gradients):
self.policy_gradients_and_vars = tf.gradients(ys=self.a, xs=self.eval_parameters, grad_ys=a_gradients)
opt = tf.train.RMSPropOptimizer(-self.learning_rate)
self.train_op = opt.apply_gradients(zip(self.policy_gradients_and_vars, self.eval_parameters), global_step=GLOBAL_STEP) |
class ParserError(Exception):
pass
| class Parsererror(Exception):
pass |
r = int(input())
w = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
m = [0]
for i in range(1, r + 1):
m.append(max([x[0] + m[i - x[1]] for x in zip(c, w) if x[1] <= i], default = 0))
print(m)
| r = int(input())
w = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
m = [0]
for i in range(1, r + 1):
m.append(max([x[0] + m[i - x[1]] for x in zip(c, w) if x[1] <= i], default=0))
print(m) |
'''"Template" day module for AoC 2015'''
def run(args):
print(f'day0: {args}')
| """"Template" day module for AoC 2015"""
def run(args):
print(f'day0: {args}') |
'''
@Author: Hata
@Date: 2020-07-26 03:41:32
@LastEditors: Hata
@LastEditTime: 2020-07-28 21:31:17
@FilePath: \LeetCode\116.py
@Description: https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/
'''
class Solution:
def connect(self, root: 'Node') -> 'Node':
if root is None:
return root
node_queue = [root]
while node_queue:
curr = None
for _ in range(len(node_queue)):
node = node_queue.pop(0)
if curr is None:
curr = node
else:
curr.next = node
curr = curr.next
if curr.left:
node_queue.append(curr.left)
if curr.right:
node_queue.append(curr.right)
return root
| """
@Author: Hata
@Date: 2020-07-26 03:41:32
@LastEditors: Hata
@LastEditTime: 2020-07-28 21:31:17
@FilePath: \\LeetCodeN.py
@Description: https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
if root is None:
return root
node_queue = [root]
while node_queue:
curr = None
for _ in range(len(node_queue)):
node = node_queue.pop(0)
if curr is None:
curr = node
else:
curr.next = node
curr = curr.next
if curr.left:
node_queue.append(curr.left)
if curr.right:
node_queue.append(curr.right)
return root |
class Solution:
# Iterative
def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if not root:
return None
stack = [root]
while len(stack) > 0:
currentNode = stack.pop()
currentNode.left, currentNode.right = currentNode.right, currentNode.left
if currentNode.left is not None:
stack.append(currentNode.left)
if currentNode.right is not None:
stack.append(currentNode.right)
return root
# Recursive
def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if not root:
return None
root.left, root.right = root.right, root.left
self.invertTree(root.left)
self.invertTree(root.right)
return root | class Solution:
def invert_tree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if not root:
return None
stack = [root]
while len(stack) > 0:
current_node = stack.pop()
(currentNode.left, currentNode.right) = (currentNode.right, currentNode.left)
if currentNode.left is not None:
stack.append(currentNode.left)
if currentNode.right is not None:
stack.append(currentNode.right)
return root
def invert_tree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if not root:
return None
(root.left, root.right) = (root.right, root.left)
self.invertTree(root.left)
self.invertTree(root.right)
return root |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number.
# A number n is called deficient if the sum of its proper divisors is less than n and it is called abundant if this sum exceeds n.
# As 12 is the smallest abundant number, 1 + 2 + 3 + 4 + 6 = 16, the smallest number that can be written as the sum of two abundant numbers is 24. By mathematical analysis, it can be shown that all integers greater than 28123 can be written as the sum of two abundant numbers. However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is less than this limit.
# Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers.
class Abundant():
def __init__(self):
self.abundants = []
def generateAbindantNumbers(self, maxValue):
for number in range(maxValue):
if number % 1000 == 0:
print('GEN: itt jarunk:', number)
total = 0
for divisor in range(1, (number/2)+1):
if number % divisor == 0:
total += divisor
if total > number:
self.abundants.append(number)
#print(self.abundants)
print('Count: ', len(self.abundants))
def sumOfToAbundant(self, maxValue):
total = 0
for number in range(maxValue):
if number % 1000 == 0:
print('SUM: itt jarunk:', number, total)
for i in self.abundants:
if number < i * 2:
total += number
break
if (number - i) in self.abundants:
break
print(total)
def main():
generator = Abundant()
maxval = 28124
generator.generateAbindantNumbers(maxval)
generator.sumOfToAbundant(maxval)
if __name__ == '__main__':
main()
| class Abundant:
def __init__(self):
self.abundants = []
def generate_abindant_numbers(self, maxValue):
for number in range(maxValue):
if number % 1000 == 0:
print('GEN: itt jarunk:', number)
total = 0
for divisor in range(1, number / 2 + 1):
if number % divisor == 0:
total += divisor
if total > number:
self.abundants.append(number)
print('Count: ', len(self.abundants))
def sum_of_to_abundant(self, maxValue):
total = 0
for number in range(maxValue):
if number % 1000 == 0:
print('SUM: itt jarunk:', number, total)
for i in self.abundants:
if number < i * 2:
total += number
break
if number - i in self.abundants:
break
print(total)
def main():
generator = abundant()
maxval = 28124
generator.generateAbindantNumbers(maxval)
generator.sumOfToAbundant(maxval)
if __name__ == '__main__':
main() |
def returnHazards(map):
hazards = []
for x_index, x in enumerate(map):
for y_index, y in enumerate(x):
if y == 'x':
hazards.append({"x":x_index,"y":y_index})
return hazards | def return_hazards(map):
hazards = []
for (x_index, x) in enumerate(map):
for (y_index, y) in enumerate(x):
if y == 'x':
hazards.append({'x': x_index, 'y': y_index})
return hazards |
result = 0
boxIds = []
with open("input.txt", "r") as input:
for line in input:
line = line.strip()
boxIds.append(line)
count2 = 0
count3 = 0
for boxId in boxIds:
flag2 = True
flag3 = True
for c in set(boxId):
n = boxId.count(c)
if n == 2 and flag2:
count2 += 1
flag2 = False
elif n == 3 and flag3:
count3 += 1
flag3 = False
result = count2 * count3
with open("output1.txt", "w") as output:
output.write(str(result))
print(str(result))
| result = 0
box_ids = []
with open('input.txt', 'r') as input:
for line in input:
line = line.strip()
boxIds.append(line)
count2 = 0
count3 = 0
for box_id in boxIds:
flag2 = True
flag3 = True
for c in set(boxId):
n = boxId.count(c)
if n == 2 and flag2:
count2 += 1
flag2 = False
elif n == 3 and flag3:
count3 += 1
flag3 = False
result = count2 * count3
with open('output1.txt', 'w') as output:
output.write(str(result))
print(str(result)) |
class Solution(object):
def XXX(self, n):
g5=5**0.5
b=(((1+g5)/2)**(n+1)-((1-g5)/2)**(n+1))/g5
return int(round(b))
| class Solution(object):
def xxx(self, n):
g5 = 5 ** 0.5
b = (((1 + g5) / 2) ** (n + 1) - ((1 - g5) / 2) ** (n + 1)) / g5
return int(round(b)) |
names = []
addr = 0x148 + 0x4E4
while addr <= 0x148 + 0x7FC:
names.append('\t' + Name(Dword(addr)) + ' = ')
addr += 8
with open('names.txt', 'w') as f:
f.write('\n'.join(names))
| names = []
addr = 328 + 1252
while addr <= 328 + 2044:
names.append('\t' + name(dword(addr)) + ' = ')
addr += 8
with open('names.txt', 'w') as f:
f.write('\n'.join(names)) |
prenom = input("Votre prenom svp ")
langue = input("Votre langue: ") # Langue devait etre "francais" ou "anglais"
if langue == "francais":
print("Bonjour %s" % prenom)
elif langue == "anglais":
print("Hello %s" % prenom)
else:
print("ERREUR")
| prenom = input('Votre prenom svp ')
langue = input('Votre langue: ')
if langue == 'francais':
print('Bonjour %s' % prenom)
elif langue == 'anglais':
print('Hello %s' % prenom)
else:
print('ERREUR') |
class Solution:
# @param A : list of list of integers
# @return an integer
def cnt(self, A, mid):
l = 0
r = len(A)-1
while l <= r:
m = (l+r)//2
if A[m] <= mid:
l = m+1
else:
r = m-1
return l
def findMedian(self, A):
l = 1
r = 1000000000
n = len(A)
m = len(A[0])
while l <= r:
mid = (l+r)//2
ct = 0
for i in range(n):
ct += self.cnt(A[i], mid)
if ct <= (n*m)//2:
l = mid+1
else:
r = mid-1
return l
| class Solution:
def cnt(self, A, mid):
l = 0
r = len(A) - 1
while l <= r:
m = (l + r) // 2
if A[m] <= mid:
l = m + 1
else:
r = m - 1
return l
def find_median(self, A):
l = 1
r = 1000000000
n = len(A)
m = len(A[0])
while l <= r:
mid = (l + r) // 2
ct = 0
for i in range(n):
ct += self.cnt(A[i], mid)
if ct <= n * m // 2:
l = mid + 1
else:
r = mid - 1
return l |
# raider.io api configuration
RIO_MAX_PAGE = 5
# need to update in templates/stats_table.html
# need to update in templates/compositions.html
# need to update in templates/navbar.html
RIO_SEASON = "season-sl-3"
WCL_SEASON = 3
WCL_PARTITION = 1
# config
RAID_NAME = "Sepulcher of the First Ones"
# for heroic week, set this to 10
# after that in the season, set this at 16
MIN_KEY_LEVEL = 16
# to generate a tier list based on heroic week data
# have to manually toggle this
MAX_RAID_DIFFICULTY = "Mythic"
#MAX_RAID_DIFFICULTY = "Heroic"
| rio_max_page = 5
rio_season = 'season-sl-3'
wcl_season = 3
wcl_partition = 1
raid_name = 'Sepulcher of the First Ones'
min_key_level = 16
max_raid_difficulty = 'Mythic' |
__all__ = [
'plotting',
'misc',
'colors',
'tables',
'nodes',
'containers',
'values',
'basic',
'textures',
'drawing',
]
__version__ = '1.1.1'
| __all__ = ['plotting', 'misc', 'colors', 'tables', 'nodes', 'containers', 'values', 'basic', 'textures', 'drawing']
__version__ = '1.1.1' |
'''
Q: Popular star patterns
Pattern 1:
*
**
***
****
*****
******
Pattern 2:
* * * * * *
* * * * *
* * * *
* * *
* *
*
Pattern 3:
*
***
*****
*******
*********
Pattern 4:
*
* *
* *
* *
* *
* * * * * *
Notes:
------
Usually the outer for loop determines the height of the pattern
Output screenshot: https://github.com/Ranjul-Arumadi/Coding-Problems/blob/main/Output%20Screenshots/patterns.jpg
'''
'''*-------------------------Solution in python-------------------------'''
#pattern 1
for i in range(0,7):
for j in range(i):
print('*', end="")
print()
#pattern 2
for i in range(6, 0, -1):
for j in range(i):
print('*', end=" ")
print()
#pattern 3
print('Enter tree height: ',end='')
height = int(input())
count=1
for i in range(height, 0, -1):
for j in range(i):
print(' ', end="")
for k in range(count):
print('*', end="")
count = count+2
print()
#pattern 4
print('Enter tree height: ',end='')
height = int(input())
count=1
lineOne = True
for i in range(height, 0, -1):
for j in range(i):
print(' ', end="")
print('*',end="")
if i==1:
for x in range(height-1):
print(' *',end='')
exit()
else:
if lineOne==False:
for k in range(count):
print(' ',end="")
print('*',end="")
count = count+2
print()
lineOne = False
| """
Q: Popular star patterns
Pattern 1:
*
**
***
****
*****
******
Pattern 2:
* * * * * *
* * * * *
* * * *
* * *
* *
*
Pattern 3:
*
***
*****
*******
*********
Pattern 4:
*
* *
* *
* *
* *
* * * * * *
Notes:
------
Usually the outer for loop determines the height of the pattern
Output screenshot: https://github.com/Ranjul-Arumadi/Coding-Problems/blob/main/Output%20Screenshots/patterns.jpg
"""
'*-------------------------Solution in python-------------------------'
for i in range(0, 7):
for j in range(i):
print('*', end='')
print()
for i in range(6, 0, -1):
for j in range(i):
print('*', end=' ')
print()
print('Enter tree height: ', end='')
height = int(input())
count = 1
for i in range(height, 0, -1):
for j in range(i):
print(' ', end='')
for k in range(count):
print('*', end='')
count = count + 2
print()
print('Enter tree height: ', end='')
height = int(input())
count = 1
line_one = True
for i in range(height, 0, -1):
for j in range(i):
print(' ', end='')
print('*', end='')
if i == 1:
for x in range(height - 1):
print(' *', end='')
exit()
elif lineOne == False:
for k in range(count):
print(' ', end='')
print('*', end='')
count = count + 2
print()
line_one = False |
class Guild:
__slots__ = ('id', 'name', 'icon', 'owner', 'client_is_owner', 'permissions', 'region', 'afk_channel',
'afk_timeout', 'verification_level', 'roles', 'emojis', 'system_channel', 'features',
'mfa_level', 'created', 'large', 'member_count', 'voice_states', 'members', 'channels',
'max_members', 'vanity_url_code', 'description', 'banner',
'premium_tier', 'premium_subscription_count')
def __new__(cls):
raise Exception('Guilds should not be created manually.')
@classmethod
def _create_guild(cls, data: dict):
guild = object.__new__(cls)
guild.id = data.get('id')
guild.name = data.get('name')
guild.icon = data.get('icon')
guild.owner = data.get('owner_id')
guild.client_is_owner = data.get('owner')
guild.permissions = data.get('permissions')
guild.members = data.get('members')
guild.region = data.get('region')
guild.afk_channel = data.get('afk_channel_id')
guild.afk_timeout = data.get('afk_timeout')
guild.verification_level = data.get('verification_level')
guild.roles = data.get('roles')
guild.emojis = data.get('emojis')
guild.features = data.get('features')
guild.mfa_level = data.get('mfa_level')
guild.created = data.get('joined_at')
guild.large = data.get('large')
guild.member_count = data.get('member_count')
guild.voice_states = data.get('voice_states')
guild.channels = data.get('channels')
guild.max_members = data.get('max_members')
guild.vanity_url_code = data.get('vanity_code_url')
guild.description = data.get('description')
guild.banner = data.get('banner')
guild.premium_tier = data.get('premium_tier')
guild.premium_subscription_count = data.get('premium_subscription_count')
return guild
| class Guild:
__slots__ = ('id', 'name', 'icon', 'owner', 'client_is_owner', 'permissions', 'region', 'afk_channel', 'afk_timeout', 'verification_level', 'roles', 'emojis', 'system_channel', 'features', 'mfa_level', 'created', 'large', 'member_count', 'voice_states', 'members', 'channels', 'max_members', 'vanity_url_code', 'description', 'banner', 'premium_tier', 'premium_subscription_count')
def __new__(cls):
raise exception('Guilds should not be created manually.')
@classmethod
def _create_guild(cls, data: dict):
guild = object.__new__(cls)
guild.id = data.get('id')
guild.name = data.get('name')
guild.icon = data.get('icon')
guild.owner = data.get('owner_id')
guild.client_is_owner = data.get('owner')
guild.permissions = data.get('permissions')
guild.members = data.get('members')
guild.region = data.get('region')
guild.afk_channel = data.get('afk_channel_id')
guild.afk_timeout = data.get('afk_timeout')
guild.verification_level = data.get('verification_level')
guild.roles = data.get('roles')
guild.emojis = data.get('emojis')
guild.features = data.get('features')
guild.mfa_level = data.get('mfa_level')
guild.created = data.get('joined_at')
guild.large = data.get('large')
guild.member_count = data.get('member_count')
guild.voice_states = data.get('voice_states')
guild.channels = data.get('channels')
guild.max_members = data.get('max_members')
guild.vanity_url_code = data.get('vanity_code_url')
guild.description = data.get('description')
guild.banner = data.get('banner')
guild.premium_tier = data.get('premium_tier')
guild.premium_subscription_count = data.get('premium_subscription_count')
return guild |
q_data = [
{"question": "Japan was part of the Allied Powers during World War I.", "correct_answer": "True",
"incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy",
"question": "The Tiananmen Square protests of 1989 were held in Hong Kong.",
"correct_answer": "False", "incorrect_answers": ["True"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "In World War II, Hawker Typhoons served in the Pacific theater.", "correct_answer": "False",
"incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium",
"question": "The M41 Walker Bulldog remains in service in some countries to this day.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "hard",
"question": "The Kingdom of Prussia briefly held land in Estonia.", "correct_answer": "False",
"incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Assyrian king Sennacherib's destruction of Babylon in 689 BCE was viewed as a triumph by other Assyrian citizens.",
"correct_answer": "False", "incorrect_answers": ["True"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Brezhnev was the 5th leader of the USSR.", "correct_answer": "True",
"incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "hard",
"question": "The fourth funnel of the RMS Titanic was fake designed to make the ship look more powerful and symmetrical.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Theodore Roosevelt Jr. was the only General involved in the initial assault on D-Day.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "easy",
"question": "The United States of America declared their independence from the British Empire on July 4th, 1776.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Abraham Lincoln was the first U.S. President to be born outside the borders of the thirteen original states. ",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "United States President Ronald Reagan was the first president to appoint a woman to the Supreme Court. ",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "hard",
"question": "The Battle of Trafalgar took place on October 23rd, 1805", "correct_answer": "False",
"incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Martin Luther King Jr. and Anne Frank were born the same year. ",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "easy",
"question": "Adolf Hitler was tried at the Nuremberg trials.", "correct_answer": "False",
"incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Adolf Hitler was accepted into the Vienna Academy of Fine Arts.",
"correct_answer": "False", "incorrect_answers": ["True"]},
{"category": "History", "type": "boolean", "difficulty": "hard",
"question": "During the Winter War, the amount of Soviet Union soliders that died or went missing was five times more than Finland's.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "easy",
"question": "The United States of America was the first country to launch a man into space.",
"correct_answer": "False", "incorrect_answers": ["True"]},
{"category": "History", "type": "boolean", "difficulty": "medium",
"question": "Sir Issac Newton served as a Member of Parliament, but the only recorded time he spoke was to complain about a draft in the chambers.",
"correct_answer": "True", "incorrect_answers": ["False"]},
{"category": "History", "type": "boolean", "difficulty": "hard",
"question": "The man that shot Alexander Hamilton was named Aaron Burr.", "correct_answer": "True",
"incorrect_answers": ["False"]}]
| q_data = [{'question': 'Japan was part of the Allied Powers during World War I.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The Tiananmen Square protests of 1989 were held in Hong Kong.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'In World War II, Hawker Typhoons served in the Pacific theater.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'The M41 Walker Bulldog remains in service in some countries to this day.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The Kingdom of Prussia briefly held land in Estonia.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Assyrian king Sennacherib's destruction of Babylon in 689 BCE was viewed as a triumph by other Assyrian citizens.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Brezhnev was the 5th leader of the USSR.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The fourth funnel of the RMS Titanic was fake designed to make the ship look more powerful and symmetrical.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Theodore Roosevelt Jr. was the only General involved in the initial assault on D-Day.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The United States of America declared their independence from the British Empire on July 4th, 1776.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Abraham Lincoln was the first U.S. President to be born outside the borders of the thirteen original states. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'United States President Ronald Reagan was the first president to appoint a woman to the Supreme Court. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The Battle of Trafalgar took place on October 23rd, 1805', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Martin Luther King Jr. and Anne Frank were born the same year. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'Adolf Hitler was tried at the Nuremberg trials.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Adolf Hitler was accepted into the Vienna Academy of Fine Arts.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'During the Winter War, the amount of Soviet Union soliders that died or went missing was five times more than Finland's.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The United States of America was the first country to launch a man into space.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Sir Issac Newton served as a Member of Parliament, but the only recorded time he spoke was to complain about a draft in the chambers.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The man that shot Alexander Hamilton was named Aaron Burr.', 'correct_answer': 'True', 'incorrect_answers': ['False']}] |
def func(s):
one = 0
zero = 0
for i in range(len(s)):
if i > 0 and s[i] == s[i-1] : continue
if s[i] == "1":
one += 1
else :
zero += 1
return min(one,zero)
s = input()
print(func(s))
| def func(s):
one = 0
zero = 0
for i in range(len(s)):
if i > 0 and s[i] == s[i - 1]:
continue
if s[i] == '1':
one += 1
else:
zero += 1
return min(one, zero)
s = input()
print(func(s)) |
# n points
def lerp_line(pt0, pt1, n):
pts = []
for i in range(n + 1):
t = i / float(n)
pt = pt0 * t + pt1 * (1.0 - t)
pts.append(pt)
return pts
def pole_to_lines(pt0, pt1, color=[0, 255, 0], n=20):
lines = []
pts = lerp_line(pt0, pt1, n)
for pt in pts:
lines.append([pt[0], pt[1], pt[2], color[0], color[1], color[2]])
return lines
def frame_to_lines(Tcw, n=5):
Twc = inv_T(Tcw)
p000 = np.array([0.0, 0.0, 0.0])
p100 = np.array([1.0, 0.0, 0.0])
p010 = np.array([0.0, 1.0, 0.0])
p001 = np.array([0.0, 0.0, 1.0])
p100 /= 10.0
p010 /= 10.0
p001 /= 10.0
xs = lerp_line(p000, p100, n)
ys = lerp_line(p000, p010, n)
zs = lerp_line(p000, p001, n)
wxs = [apply_T(Twc, p) for p in xs]
wys = [apply_T(Twc, p) for p in ys]
wzs = [apply_T(Twc, p) for p in zs]
lines = []
Ow = apply_T(Twc, p000)
lines.append([Ow[0], Ow[1], Ow[2], 255, 255, 255])
for p in wxs[1:]:
lines.append([p[0], p[1], p[2], 255, 0, 0])
for p in wys[1:]:
lines.append([p[0], p[1], p[2], 0, 255, 0])
for p in wzs[1:]:
lines.append([p[0], p[1], p[2], 0, 0, 255])
return lines
| def lerp_line(pt0, pt1, n):
pts = []
for i in range(n + 1):
t = i / float(n)
pt = pt0 * t + pt1 * (1.0 - t)
pts.append(pt)
return pts
def pole_to_lines(pt0, pt1, color=[0, 255, 0], n=20):
lines = []
pts = lerp_line(pt0, pt1, n)
for pt in pts:
lines.append([pt[0], pt[1], pt[2], color[0], color[1], color[2]])
return lines
def frame_to_lines(Tcw, n=5):
twc = inv_t(Tcw)
p000 = np.array([0.0, 0.0, 0.0])
p100 = np.array([1.0, 0.0, 0.0])
p010 = np.array([0.0, 1.0, 0.0])
p001 = np.array([0.0, 0.0, 1.0])
p100 /= 10.0
p010 /= 10.0
p001 /= 10.0
xs = lerp_line(p000, p100, n)
ys = lerp_line(p000, p010, n)
zs = lerp_line(p000, p001, n)
wxs = [apply_t(Twc, p) for p in xs]
wys = [apply_t(Twc, p) for p in ys]
wzs = [apply_t(Twc, p) for p in zs]
lines = []
ow = apply_t(Twc, p000)
lines.append([Ow[0], Ow[1], Ow[2], 255, 255, 255])
for p in wxs[1:]:
lines.append([p[0], p[1], p[2], 255, 0, 0])
for p in wys[1:]:
lines.append([p[0], p[1], p[2], 0, 255, 0])
for p in wzs[1:]:
lines.append([p[0], p[1], p[2], 0, 0, 255])
return lines |
class MetaData:
'''
convert to dynamically adding attributes by passing in **kwargs and
setting each key value pair
attention will need to be given for when this class is used in other processes
to make sure they know the attributes that exists with each class
however, not necessary just now
'''
def __init__(self):
self.data_raw = None
self.file_type = None
self.metadata_type = None
self.origin_date = None
self.author = None
self.location = None
self.compression_alg = None
self.metadata_dict = None
self.metadata_dict_indexlst = None
def get_metadata_dict(self):
return self.metadata_dict
def get_file_type(self):
return self.file_type
def get_type_md(self):
return self.metadata_type
def get_origin_date(self):
return self.origin_date
def get_author(self):
return self.author
def get_compression_alg(self):
return self.compression_alg
def get_location_taken(self):
return self.location
| class Metadata:
"""
convert to dynamically adding attributes by passing in **kwargs and
setting each key value pair
attention will need to be given for when this class is used in other processes
to make sure they know the attributes that exists with each class
however, not necessary just now
"""
def __init__(self):
self.data_raw = None
self.file_type = None
self.metadata_type = None
self.origin_date = None
self.author = None
self.location = None
self.compression_alg = None
self.metadata_dict = None
self.metadata_dict_indexlst = None
def get_metadata_dict(self):
return self.metadata_dict
def get_file_type(self):
return self.file_type
def get_type_md(self):
return self.metadata_type
def get_origin_date(self):
return self.origin_date
def get_author(self):
return self.author
def get_compression_alg(self):
return self.compression_alg
def get_location_taken(self):
return self.location |
# A non-empty zero-indexed array A consisting of N integers is given.
#
# A permutation is a sequence containing each element from 1 to N once, and
# only once.
#
# For example, array A such that:
# A = [4, 1, 3, 2]
# is a permutation, but array A such that:
# A = [4, 1, 3]
# is not a permutation, because value 2 is missing.
#
# The goal is to check whether array A is a permutation.
#
# Write a function:
# def solution(A)
# that, given a zero-indexed array A, returns 1 if array A is a permutation
# and 0 if it is not.
#
# For example, given array A such that:
# A = [4, 1, 3, 2]
# the function should return 1.
#
# Given array A such that:
# A = [4, 1, 3]
# the function should return 0.
#
# Assume that:
# * N is an integer within the range [1..100,000];
# * each element of array A is an integer within the range [1..1,000,000,000].
#
# Complexity:
# * expected worst-case time complexity is O(N);
# * expected worst-case space complexity is O(N), beyond input storage (not
# counting the storage required for input arguments).
def solution(A):
N = len(A)
if N == 1:
if A[0] == 1:
return 1
else:
return 0
count = {}
for i in range(N):
if A[i] not in count:
count[A[i]] = 0
count[A[i]] += 1
if count[A[i]] > 1:
return 0
# print(count)
values = count.keys()
# print(values)
if max(values) == N:
return 1
return 0
| def solution(A):
n = len(A)
if N == 1:
if A[0] == 1:
return 1
else:
return 0
count = {}
for i in range(N):
if A[i] not in count:
count[A[i]] = 0
count[A[i]] += 1
if count[A[i]] > 1:
return 0
values = count.keys()
if max(values) == N:
return 1
return 0 |
while(True):
jars = [int(x) for x in input().split()]
if sum(jars) == 0:
break
if sum(jars) == 13:
print("Never speak again.")
elif jars[0] > jars[1]:
print("To the convention.")
elif jars[1] > jars[0]:
print("Left beehind.")
elif jars[1] == jars[0]:
print("Undecided.") | while True:
jars = [int(x) for x in input().split()]
if sum(jars) == 0:
break
if sum(jars) == 13:
print('Never speak again.')
elif jars[0] > jars[1]:
print('To the convention.')
elif jars[1] > jars[0]:
print('Left beehind.')
elif jars[1] == jars[0]:
print('Undecided.') |
DATE_PATTERNS = ["%d.%m.%Y", "%Y-%m-%d", "%y-%m-%d", "%Y-%m-%dT%H:%M:%S",
"%Y-%m-%d %H:%M:%S",
"%d.%m.%Y %H:%M"]
DEFAULT_DICT_SHARE = 70
SUPPORTED_FILE_TYPES = ['xls', 'xlsx', 'csv', 'xml', 'json', 'jsonl', 'yaml', 'tsv', 'sql', 'bson']
DEFAULT_OPTIONS = {'encoding' : 'utf8',
'delimiter' : ',',
'limit' : 1000
} | date_patterns = ['%d.%m.%Y', '%Y-%m-%d', '%y-%m-%d', '%Y-%m-%dT%H:%M:%S', '%Y-%m-%d %H:%M:%S', '%d.%m.%Y %H:%M']
default_dict_share = 70
supported_file_types = ['xls', 'xlsx', 'csv', 'xml', 'json', 'jsonl', 'yaml', 'tsv', 'sql', 'bson']
default_options = {'encoding': 'utf8', 'delimiter': ',', 'limit': 1000} |
'''
This solution was submitted by Team: eyeCoders_UOP
during ACES Coders v8 2020
Team lead: Rusiru Thushara [email protected]
The solution runs in O(n)
'''
def getline():return [float(x) for x in input().strip().split(' ')]
c,e,n,s0 = getline()
arr, lst = [], []
m = c/s0
for i in range(int(n)):
x,s = getline()
arr.append((x,s))
if x<c and s>=0:
m = max(m,(c-x)/s)
elif s<0:
lst.append((x,s))
count = 0
for x,s in lst:
if x+s*m <= c:
count+=1
print(round(m),count)
| """
This solution was submitted by Team: eyeCoders_UOP
during ACES Coders v8 2020
Team lead: Rusiru Thushara [email protected]
The solution runs in O(n)
"""
def getline():
return [float(x) for x in input().strip().split(' ')]
(c, e, n, s0) = getline()
(arr, lst) = ([], [])
m = c / s0
for i in range(int(n)):
(x, s) = getline()
arr.append((x, s))
if x < c and s >= 0:
m = max(m, (c - x) / s)
elif s < 0:
lst.append((x, s))
count = 0
for (x, s) in lst:
if x + s * m <= c:
count += 1
print(round(m), count) |
# TODO: Make this a relative path
local_url = "/home/garrison/Code/blogengine/output"
remote_url = "http://www.example.com"
site_title = "My Vanilla Blog"
site_description = "The really cool blog in which I write about stuff"
copy_rst = False
disqus_shortname = "mydisqusshortname"
| local_url = '/home/garrison/Code/blogengine/output'
remote_url = 'http://www.example.com'
site_title = 'My Vanilla Blog'
site_description = 'The really cool blog in which I write about stuff'
copy_rst = False
disqus_shortname = 'mydisqusshortname' |
in_code = 'abcdefghijklmnopqrstuvwxyz'
out_code = '9128645!@#$%^&*()/.,;:~|[]'
code = str.maketrans(in_code, out_code)
print('this is encrypted!'.translate(code))
| in_code = 'abcdefghijklmnopqrstuvwxyz'
out_code = '9128645!@#$%^&*()/.,;:~|[]'
code = str.maketrans(in_code, out_code)
print('this is encrypted!'.translate(code)) |
# Question:5
countNumber = input("Enter the string ")
print ("Original string is : " + countNumber)
res = len(countNumber.split())
print ("Number of words in string is : " + str(res))
| count_number = input('Enter the string ')
print('Original string is : ' + countNumber)
res = len(countNumber.split())
print('Number of words in string is : ' + str(res)) |
class Solution:
def __init__(self):
self.result = None
def findMax(self, root):
if root == None:
return 0
# find max for left and right node
left = self.findMax(root.left)
right = self.findMax(root.right)
# can either go straight down i.e. from root to one of the children and downwards
maxStraight = max(max(left, right) + root.val, root.val)
# or can come to root from either of the child nodes and go to other child node
maxCurved = max(left + right + root.val, maxStraight)
# update the result
self.result = max(self.result, maxCurved)
# can only return max straight, since we're going upwards
return maxStraight
def maxPathSum(self, root):
if root == None:
return 0
self.result = float('-inf')
self.findMax(root)
return self.result
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def main():
root = TreeNode(5)
root.left = TreeNode(2)
root.right = TreeNode(7)
root.left.left = TreeNode(1)
root.left.right = TreeNode(3)
root.right.left = TreeNode(5)
root.right.right = TreeNode(9)
mySol = Solution()
print("The max path sum in the binary tree is " + str(mySol.maxPathSum(root)))
if __name__ == "__main__":
main()
| class Solution:
def __init__(self):
self.result = None
def find_max(self, root):
if root == None:
return 0
left = self.findMax(root.left)
right = self.findMax(root.right)
max_straight = max(max(left, right) + root.val, root.val)
max_curved = max(left + right + root.val, maxStraight)
self.result = max(self.result, maxCurved)
return maxStraight
def max_path_sum(self, root):
if root == None:
return 0
self.result = float('-inf')
self.findMax(root)
return self.result
class Treenode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def main():
root = tree_node(5)
root.left = tree_node(2)
root.right = tree_node(7)
root.left.left = tree_node(1)
root.left.right = tree_node(3)
root.right.left = tree_node(5)
root.right.right = tree_node(9)
my_sol = solution()
print('The max path sum in the binary tree is ' + str(mySol.maxPathSum(root)))
if __name__ == '__main__':
main() |
class DatasetVO:
def __init__(self):
self._id = None
self._name = ""
self._folder = ""
self._description = ""
self._data_type = ""
self._size = 0
self._count = 0
@property
def count(self):
return self._count
@count.setter
def count(self, value):
if self._size and self._size > 0:
self._count = value
else:
self._count = 0
@property
def size(self):
return self._size
@size.setter
def size(self, value):
self._size = value
@property
def folder(self):
return self._folder
@folder.setter
def folder(self, value):
self._folder = value
@property
def id(self):
return self._id
@id.setter
def id(self, value):
self._id = value
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self._name = value
@property
def description(self):
return self._description
@description.setter
def description(self, value):
self._description = value
@property
def data_type(self):
return self._data_type
@data_type.setter
def data_type(self, value):
self._data_type = value
| class Datasetvo:
def __init__(self):
self._id = None
self._name = ''
self._folder = ''
self._description = ''
self._data_type = ''
self._size = 0
self._count = 0
@property
def count(self):
return self._count
@count.setter
def count(self, value):
if self._size and self._size > 0:
self._count = value
else:
self._count = 0
@property
def size(self):
return self._size
@size.setter
def size(self, value):
self._size = value
@property
def folder(self):
return self._folder
@folder.setter
def folder(self, value):
self._folder = value
@property
def id(self):
return self._id
@id.setter
def id(self, value):
self._id = value
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self._name = value
@property
def description(self):
return self._description
@description.setter
def description(self, value):
self._description = value
@property
def data_type(self):
return self._data_type
@data_type.setter
def data_type(self, value):
self._data_type = value |
class TembaException(Exception):
def __str__(self):
return self.message
class TembaConnectionError(TembaException):
message = "Unable to connect to host"
class TembaBadRequestError(TembaException):
def __init__(self, errors):
self.errors = errors
def __str__(self):
msgs = []
if isinstance(self.errors, dict):
for field, field_errors in self.errors.items():
if isinstance(field_errors, str): # e.g. {"detail": "message..."}
msgs.append(field_errors)
else:
for error in field_errors: # e.g. {"field1": ["msg1...", "msg2..."]}
msgs.append(error)
elif isinstance(self.errors, list):
msgs = self.errors
return msgs[0] if len(msgs) == 1 else ". ".join(msgs)
class TembaTokenError(TembaException):
message = "Authentication with provided token failed"
class TembaNoSuchObjectError(TembaException):
message = "No such object exists"
class TembaRateExceededError(TembaException):
message = (
"You have exceeded the number of requests allowed per org in a given time window. "
"Please wait %d seconds before making further requests"
)
def __init__(self, retry_after):
self.retry_after = retry_after
def __str__(self):
return self.message % self.retry_after
class TembaHttpError(TembaException):
def __init__(self, caused_by):
self.caused_by = caused_by
def __str__(self):
return str(self.caused_by)
class TembaSerializationException(TembaException):
pass
class TembaMultipleResultsError(TembaException):
message = "Request for single object returned multiple objects"
| class Tembaexception(Exception):
def __str__(self):
return self.message
class Tembaconnectionerror(TembaException):
message = 'Unable to connect to host'
class Tembabadrequesterror(TembaException):
def __init__(self, errors):
self.errors = errors
def __str__(self):
msgs = []
if isinstance(self.errors, dict):
for (field, field_errors) in self.errors.items():
if isinstance(field_errors, str):
msgs.append(field_errors)
else:
for error in field_errors:
msgs.append(error)
elif isinstance(self.errors, list):
msgs = self.errors
return msgs[0] if len(msgs) == 1 else '. '.join(msgs)
class Tembatokenerror(TembaException):
message = 'Authentication with provided token failed'
class Tembanosuchobjecterror(TembaException):
message = 'No such object exists'
class Tembarateexceedederror(TembaException):
message = 'You have exceeded the number of requests allowed per org in a given time window. Please wait %d seconds before making further requests'
def __init__(self, retry_after):
self.retry_after = retry_after
def __str__(self):
return self.message % self.retry_after
class Tembahttperror(TembaException):
def __init__(self, caused_by):
self.caused_by = caused_by
def __str__(self):
return str(self.caused_by)
class Tembaserializationexception(TembaException):
pass
class Tembamultipleresultserror(TembaException):
message = 'Request for single object returned multiple objects' |
DEFAULT_WINDOW_SIZE = 32
DEFAULT_THRESHOLD_MIN_BASIC = 45.39
DEFAULT_THRESHOLD_MAX_BASIC = 46.0
DEFAULT_THRESHOLD_MIN_ABS = 50.32
DEFAULT_THRESHOLD_MAX_ABS = 52.96
DEFAULT_THRESHOLD_MIN_WITHOUT_GC = 11.28
DEFAULT_THRESHOLD_MAX_WITHOUT_GC = 11.42
DEFAULT_MEAN_GC = 0.46354823199323626
DEFAULT_MAX_EVALUE = 0.00445
DEFAULT_PENALTY_BLACK = 2.2
DEFAULT_PENALTY_WHITE = 0.7
DEFAULT_BLACK_LIST = [
'VOG0496',
'VOG5264',
'VOG4730',
'VOG5818',
'VOG7281',
'VOG6063',
'VOG6030',
'VOG1710',
'VOG0996',
'VOG4524',
'VOG8021',
'VOG8536',
'VOG2368',
'VOG1850',
'VOG1031',
'VOG0985',
'VOG0274',
'VOG4344',
'VOG1844',
'VOG0088',
'VOG8607',
'VOG4615',
'VOG8992',
'VOG3235',
'VOG0092',
'VOG4155',
'VOG3532',
'VOG1045',
'VOG4149',
'VOG8062',
'VOG4562',
'VOG7442',
'VOG7446',
'VOG0419',
'VOG4319',
'VOG8429',
'VOG4409',
'VOG1422',
'VOG10018',
'VOG3101',
'VOG5441',
'VOG4469',
'VOG6988',
'VOG4678',
'VOG3722',
]
DEFAULT_WHITE_LIST = [
"VOG0568",
"VOG0569",
"VOG0565",
"VOG0566",
"VOG0567",
"VOG0562",
"VOG2703",
"VOG0968",
"VOG0700",
"VOG0701",
"VOG0703",
"VOG0704",
"VOG8223",
"VOG9502",
"VOG5046",
"VOG5260",
"VOG4643",
"VOG4645",
"VOG4647",
"VOG9348",
"VOG3606",
"VOG9762",
"VOG4736",
"VOG3424",
"VOG9962",
"VOG8568",
"VOG7616",
"VOG7615",
"VOG6418",
"VOG7437",
"VOG10916",
"VOG6520",
"VOG9667",
"VOG0825",
"VOG0824",
"VOG0827",
"VOG0559",
"VOG0557",
"VOG2779",
"VOG4545",
"VOG0953",
"VOG1159",
"VOG0602",
"VOG5254",
"VOG0044",
"VOG4652",
"VOG4659",
"VOG3309",
"VOG4438",
"VOG2545",
"VOG10850",
"VOG1942",
"VOG1319",
"VOG3891",
"VOG3890",
"VOG2388",
"VOG3892",
"VOG3894",
"VOG3897",
"VOG2166",
"VOG1837",
"VOG0541",
"VOG0947",
"VOG0945",
"VOG0723",
"VOG0720",
"VOG0727",
"VOG0724",
"VOG0725",
"VOG0837",
"VOG0835",
"VOG0832",
"VOG0833",
"VOG0830",
"VOG0831",
"VOG0838",
"VOG0839",
"VOG0618",
"VOG0614",
"VOG0615",
"VOG5060",
"VOG0583",
"VOG0051",
"VOG0054",
"VOG5660",
"VOG4829",
"VOG4828",
"VOG4820",
"VOG8497",
"VOG0588",
"VOG3622",
"VOG3396",
"VOG4757",
"VOG3401",
"VOG3406",
"VOG3409",
"VOG2119",
"VOG1956",
"VOG0536",
"VOG0534",
"VOG0539",
"VOG0283",
"VOG0843",
"VOG0842",
"VOG0847",
"VOG0848",
"VOG0198",
"VOG0195",
"VOG10933",
"VOG9374",
"VOG4630",
"VOG4632",
"VOG4633",
"VOG4634",
"VOG10054",
"VOG10059",
"VOG5621",
"VOG8445",
"VOG6866",
"VOG0524",
"VOG0526",
"VOG6440",
"VOG0840",
"VOG0298",
"VOG0299",
"VOG0292",
"VOG0296",
"VOG0850",
"VOG0855",
"VOG0186",
"VOG0181",
"VOG0189",
"VOG9547",
"VOG0275",
"VOG5357",
"VOG10608",
"VOG5734",
"VOG4609",
"VOG4606",
"VOG4600",
"VOG4602",
"VOG3379",
"VOG4171",
"VOG4994",
"VOG4999",
"VOG8520",
"VOG4771",
"VOG4772",
"VOG8855",
"VOG6876",
"VOG0519",
"VOG0518",
"VOG0514",
"VOG2644",
"VOG0641",
"VOG5994",
"VOG4618",
"VOG4619",
"VOG4612",
"VOG3699",
"VOG9474",
"VOG4986",
"VOG7882",
"VOG4763",
"VOG2341",
"VOG10969",
"VOG2124",
"VOG2125",
"VOG6600",
"VOG1900",
"VOG2015",
"VOG0650",
"VOG0651",
"VOG0655",
"VOG5023",
"VOG5027",
"VOG10898",
"VOG0254",
"VOG1309",
"VOG9583",
"VOG8509",
"VOG4573",
"VOG4572",
"VOG0952",
"VOG4888",
"VOG4799",
"VOG2337",
"VOG2336",
"VOG2339",
"VOG2338",
"VOG7693",
"VOG1912",
"VOG1915",
"VOG1047",
"VOG1049",
"VOG2790",
"VOG2793",
"VOG2086",
"VOG2795",
"VOG2794",
"VOG0790",
"VOG0796",
"VOG0799",
"VOG0221",
"VOG0227",
"VOG0226",
"VOG4364",
"VOG4361",
"VOG9227",
"VOG5942",
"VOG4563",
"VOG4564",
"VOG4565",
"VOG4566",
"VOG4567",
"VOG4568",
"VOG4890",
"VOG3327",
"VOG3328",
"VOG6138",
"VOG7440",
"VOG7686",
"VOG6001",
"VOG2788",
"VOG0800",
"VOG1320",
"VOG1329",
"VOG9609",
"VOG9857",
"VOG4555",
"VOG4557",
"VOG4556",
"VOG4550",
"VOG4553",
"VOG4552",
"VOG3798",
"VOG8306",
"VOG7238",
"VOG6545",
"VOG6495",
"VOG0939",
"VOG4559",
"VOG1887",
"VOG5029",
"VOG5092",
"VOG5096",
"VOG5095",
"VOG0753",
"VOG1333",
"VOG4544",
"VOG2791",
"VOG3498",
"VOG10343",
"VOG3304",
"VOG3652",
"VOG3651",
"VOG3477",
"VOG3478",
"VOG8337",
"VOG8336",
"VOG10230",
"VOG0251",
"VOG6153",
"VOG6154",
"VOG1433",
"VOG0327",
"VOG0322",
"VOG0321",
"VOG6203",
"VOG0528",
"VOG5084",
"VOG4672",
"VOG1348",
"VOG9470",
"VOG0696",
"VOG0697",
"VOG0695",
"VOG0692",
"VOG0691",
"VOG0698",
"VOG0107",
"VOG4684",
"VOG9305",
"VOG4593",
"VOG4596",
"VOG4599",
"VOG4598",
"VOG4845",
"VOG4841",
"VOG3480",
"VOG3648",
"VOG3649",
"VOG3644",
"VOG3313",
"VOG3461",
"VOG3462",
"VOG3468",
"VOG8923",
"VOG10227",
"VOG7569",
"VOG0356",
"VOG0355",
"VOG1350",
"VOG1352",
"VOG1353",
"VOG1356",
"VOG5155",
"VOG4693",
"VOG4690",
"VOG4691",
"VOG4694",
"VOG4699",
"VOG2165",
"VOG2163",
"VOG9315",
"VOG9317",
"VOG4589",
"VOG4586",
"VOG4581",
"VOG8134",
"VOG8354",
"VOG2215",
"VOG3298",
"VOG11077",
"VOG1637",
"VOG1638",
"VOG7483",
"VOG2186",
"VOG2188",
"VOG1183",
"VOG0582",
"VOG1298",
"VOG0584",
"VOG0585",
"VOG1563",
"VOG0901",
"VOG0764",
"VOG0765",
"VOG5443",
"VOG0010",
"VOG4002",
"VOG4005",
"VOG4862",
"VOG4865",
"VOG5996",
"VOG4716",
"VOG4713",
"VOG4711",
"VOG8340",
"VOG8904",
"VOG3287",
"VOG4605",
"VOG6163",
"VOG2154",
"VOG2153",
"VOG6181",
"VOG0801",
"VOG0577",
"VOG0574",
"VOG0573",
"VOG0572",
"VOG0571",
"VOG0977",
"VOG0976",
"VOG0152",
"VOG0397",
"VOG0204",
"VOG0021",
"VOG0025",
"VOG0026",
"VOG3616",
"VOG4705",
"VOG4701",
"VOG3434",
"VOG2792",
"VOG3721",
"VOG3549",
"VOG2142",
"VOG10904",
"VOG2149",
"VOG2096",
"VOG9438",
]
| default_window_size = 32
default_threshold_min_basic = 45.39
default_threshold_max_basic = 46.0
default_threshold_min_abs = 50.32
default_threshold_max_abs = 52.96
default_threshold_min_without_gc = 11.28
default_threshold_max_without_gc = 11.42
default_mean_gc = 0.46354823199323625
default_max_evalue = 0.00445
default_penalty_black = 2.2
default_penalty_white = 0.7
default_black_list = ['VOG0496', 'VOG5264', 'VOG4730', 'VOG5818', 'VOG7281', 'VOG6063', 'VOG6030', 'VOG1710', 'VOG0996', 'VOG4524', 'VOG8021', 'VOG8536', 'VOG2368', 'VOG1850', 'VOG1031', 'VOG0985', 'VOG0274', 'VOG4344', 'VOG1844', 'VOG0088', 'VOG8607', 'VOG4615', 'VOG8992', 'VOG3235', 'VOG0092', 'VOG4155', 'VOG3532', 'VOG1045', 'VOG4149', 'VOG8062', 'VOG4562', 'VOG7442', 'VOG7446', 'VOG0419', 'VOG4319', 'VOG8429', 'VOG4409', 'VOG1422', 'VOG10018', 'VOG3101', 'VOG5441', 'VOG4469', 'VOG6988', 'VOG4678', 'VOG3722']
default_white_list = ['VOG0568', 'VOG0569', 'VOG0565', 'VOG0566', 'VOG0567', 'VOG0562', 'VOG2703', 'VOG0968', 'VOG0700', 'VOG0701', 'VOG0703', 'VOG0704', 'VOG8223', 'VOG9502', 'VOG5046', 'VOG5260', 'VOG4643', 'VOG4645', 'VOG4647', 'VOG9348', 'VOG3606', 'VOG9762', 'VOG4736', 'VOG3424', 'VOG9962', 'VOG8568', 'VOG7616', 'VOG7615', 'VOG6418', 'VOG7437', 'VOG10916', 'VOG6520', 'VOG9667', 'VOG0825', 'VOG0824', 'VOG0827', 'VOG0559', 'VOG0557', 'VOG2779', 'VOG4545', 'VOG0953', 'VOG1159', 'VOG0602', 'VOG5254', 'VOG0044', 'VOG4652', 'VOG4659', 'VOG3309', 'VOG4438', 'VOG2545', 'VOG10850', 'VOG1942', 'VOG1319', 'VOG3891', 'VOG3890', 'VOG2388', 'VOG3892', 'VOG3894', 'VOG3897', 'VOG2166', 'VOG1837', 'VOG0541', 'VOG0947', 'VOG0945', 'VOG0723', 'VOG0720', 'VOG0727', 'VOG0724', 'VOG0725', 'VOG0837', 'VOG0835', 'VOG0832', 'VOG0833', 'VOG0830', 'VOG0831', 'VOG0838', 'VOG0839', 'VOG0618', 'VOG0614', 'VOG0615', 'VOG5060', 'VOG0583', 'VOG0051', 'VOG0054', 'VOG5660', 'VOG4829', 'VOG4828', 'VOG4820', 'VOG8497', 'VOG0588', 'VOG3622', 'VOG3396', 'VOG4757', 'VOG3401', 'VOG3406', 'VOG3409', 'VOG2119', 'VOG1956', 'VOG0536', 'VOG0534', 'VOG0539', 'VOG0283', 'VOG0843', 'VOG0842', 'VOG0847', 'VOG0848', 'VOG0198', 'VOG0195', 'VOG10933', 'VOG9374', 'VOG4630', 'VOG4632', 'VOG4633', 'VOG4634', 'VOG10054', 'VOG10059', 'VOG5621', 'VOG8445', 'VOG6866', 'VOG0524', 'VOG0526', 'VOG6440', 'VOG0840', 'VOG0298', 'VOG0299', 'VOG0292', 'VOG0296', 'VOG0850', 'VOG0855', 'VOG0186', 'VOG0181', 'VOG0189', 'VOG9547', 'VOG0275', 'VOG5357', 'VOG10608', 'VOG5734', 'VOG4609', 'VOG4606', 'VOG4600', 'VOG4602', 'VOG3379', 'VOG4171', 'VOG4994', 'VOG4999', 'VOG8520', 'VOG4771', 'VOG4772', 'VOG8855', 'VOG6876', 'VOG0519', 'VOG0518', 'VOG0514', 'VOG2644', 'VOG0641', 'VOG5994', 'VOG4618', 'VOG4619', 'VOG4612', 'VOG3699', 'VOG9474', 'VOG4986', 'VOG7882', 'VOG4763', 'VOG2341', 'VOG10969', 'VOG2124', 'VOG2125', 'VOG6600', 'VOG1900', 'VOG2015', 'VOG0650', 'VOG0651', 'VOG0655', 'VOG5023', 'VOG5027', 'VOG10898', 'VOG0254', 'VOG1309', 'VOG9583', 'VOG8509', 'VOG4573', 'VOG4572', 'VOG0952', 'VOG4888', 'VOG4799', 'VOG2337', 'VOG2336', 'VOG2339', 'VOG2338', 'VOG7693', 'VOG1912', 'VOG1915', 'VOG1047', 'VOG1049', 'VOG2790', 'VOG2793', 'VOG2086', 'VOG2795', 'VOG2794', 'VOG0790', 'VOG0796', 'VOG0799', 'VOG0221', 'VOG0227', 'VOG0226', 'VOG4364', 'VOG4361', 'VOG9227', 'VOG5942', 'VOG4563', 'VOG4564', 'VOG4565', 'VOG4566', 'VOG4567', 'VOG4568', 'VOG4890', 'VOG3327', 'VOG3328', 'VOG6138', 'VOG7440', 'VOG7686', 'VOG6001', 'VOG2788', 'VOG0800', 'VOG1320', 'VOG1329', 'VOG9609', 'VOG9857', 'VOG4555', 'VOG4557', 'VOG4556', 'VOG4550', 'VOG4553', 'VOG4552', 'VOG3798', 'VOG8306', 'VOG7238', 'VOG6545', 'VOG6495', 'VOG0939', 'VOG4559', 'VOG1887', 'VOG5029', 'VOG5092', 'VOG5096', 'VOG5095', 'VOG0753', 'VOG1333', 'VOG4544', 'VOG2791', 'VOG3498', 'VOG10343', 'VOG3304', 'VOG3652', 'VOG3651', 'VOG3477', 'VOG3478', 'VOG8337', 'VOG8336', 'VOG10230', 'VOG0251', 'VOG6153', 'VOG6154', 'VOG1433', 'VOG0327', 'VOG0322', 'VOG0321', 'VOG6203', 'VOG0528', 'VOG5084', 'VOG4672', 'VOG1348', 'VOG9470', 'VOG0696', 'VOG0697', 'VOG0695', 'VOG0692', 'VOG0691', 'VOG0698', 'VOG0107', 'VOG4684', 'VOG9305', 'VOG4593', 'VOG4596', 'VOG4599', 'VOG4598', 'VOG4845', 'VOG4841', 'VOG3480', 'VOG3648', 'VOG3649', 'VOG3644', 'VOG3313', 'VOG3461', 'VOG3462', 'VOG3468', 'VOG8923', 'VOG10227', 'VOG7569', 'VOG0356', 'VOG0355', 'VOG1350', 'VOG1352', 'VOG1353', 'VOG1356', 'VOG5155', 'VOG4693', 'VOG4690', 'VOG4691', 'VOG4694', 'VOG4699', 'VOG2165', 'VOG2163', 'VOG9315', 'VOG9317', 'VOG4589', 'VOG4586', 'VOG4581', 'VOG8134', 'VOG8354', 'VOG2215', 'VOG3298', 'VOG11077', 'VOG1637', 'VOG1638', 'VOG7483', 'VOG2186', 'VOG2188', 'VOG1183', 'VOG0582', 'VOG1298', 'VOG0584', 'VOG0585', 'VOG1563', 'VOG0901', 'VOG0764', 'VOG0765', 'VOG5443', 'VOG0010', 'VOG4002', 'VOG4005', 'VOG4862', 'VOG4865', 'VOG5996', 'VOG4716', 'VOG4713', 'VOG4711', 'VOG8340', 'VOG8904', 'VOG3287', 'VOG4605', 'VOG6163', 'VOG2154', 'VOG2153', 'VOG6181', 'VOG0801', 'VOG0577', 'VOG0574', 'VOG0573', 'VOG0572', 'VOG0571', 'VOG0977', 'VOG0976', 'VOG0152', 'VOG0397', 'VOG0204', 'VOG0021', 'VOG0025', 'VOG0026', 'VOG3616', 'VOG4705', 'VOG4701', 'VOG3434', 'VOG2792', 'VOG3721', 'VOG3549', 'VOG2142', 'VOG10904', 'VOG2149', 'VOG2096', 'VOG9438'] |
# @desc Add a short description or instruction here. This will show up at the top of the exercise.
def function_name(parameter): # give your function a name and parameter(s)
# have it do stuff
return # what does it return? This will be what the user types when they predict the result.
def main():
print(function_name(parameter1))
print(function_name(parameter2))
print(function_name(parameter3))
print(function_name(parameter4))
if __name__ == '__main__':
main()
| def function_name(parameter):
return
def main():
print(function_name(parameter1))
print(function_name(parameter2))
print(function_name(parameter3))
print(function_name(parameter4))
if __name__ == '__main__':
main() |
s = input()
g1 = {}
for i in range(1, len(s)):
g1[s[i-1: i+1]] = g1.get(s[i-1: i+1], 0) + 1
s = input()
g2 = set()
for i in range(1, len(s)):
g2.add(s[i-1: i+1])
print(sum([g1[g] for g in frozenset(g1.keys()) & g2]))
| s = input()
g1 = {}
for i in range(1, len(s)):
g1[s[i - 1:i + 1]] = g1.get(s[i - 1:i + 1], 0) + 1
s = input()
g2 = set()
for i in range(1, len(s)):
g2.add(s[i - 1:i + 1])
print(sum([g1[g] for g in frozenset(g1.keys()) & g2])) |
# Code Demo for 13 Lecture
# Working with Python Strings
# CIS 135 - Code Demo File
# Lecture example showing string contatenation
firstName = "Peter"
lastName = "Parker"
print("\nString Contcatenation in Pyton uses the + operator")
print(f'First Name = {firstName}')
print(f'Last Name = {lastName}')
print("Peter Parker can be concatenated as 'firstName' + ' ' + 'lastName'")
print("Hello,", firstName + ' ' + lastName)
# Example slicing JJC
JJC = "Joliet Junior College"
print('\nJJC = "Joliet Junior College"')
print("\nExtract 'Joliet' from the variable JJC")
print(JJC[0:6]) # this returns the first six characters
print("\nExtract 'College' from the variable JJC")
print(JJC[-7:]) # this returns the final seven characters
print("\nExtract 'Junior' from the variable JJC")
print(JJC[7:-7]) # this returns the final seven characters
alphas = 'abcdefghi'
print(f'\nThe variable alphas = {alphas}')
print('alphas[1:3] extract characters ', alphas[4:8])
print('alphas[:3] = will extract characters ', alphas[:3])
print('alphas[-2:] = will extract characters ', alphas[-2:])
print('alphas[-3:-2] = will extract characters ', alphas[-3:-2])
this_string = " some text "
print(this_string.lstrip())
print(this_string.rstrip()) | first_name = 'Peter'
last_name = 'Parker'
print('\nString Contcatenation in Pyton uses the + operator')
print(f'First Name = {firstName}')
print(f'Last Name = {lastName}')
print("Peter Parker can be concatenated as 'firstName' + ' ' + 'lastName'")
print('Hello,', firstName + ' ' + lastName)
jjc = 'Joliet Junior College'
print('\nJJC = "Joliet Junior College"')
print("\nExtract 'Joliet' from the variable JJC")
print(JJC[0:6])
print("\nExtract 'College' from the variable JJC")
print(JJC[-7:])
print("\nExtract 'Junior' from the variable JJC")
print(JJC[7:-7])
alphas = 'abcdefghi'
print(f'\nThe variable alphas = {alphas}')
print('alphas[1:3] extract characters ', alphas[4:8])
print('alphas[:3] = will extract characters ', alphas[:3])
print('alphas[-2:] = will extract characters ', alphas[-2:])
print('alphas[-3:-2] = will extract characters ', alphas[-3:-2])
this_string = ' some text '
print(this_string.lstrip())
print(this_string.rstrip()) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/10/17 21:35
# @Author : jacson
# @FileName: file_from_pycharm.py
print("hello world!!!") | print('hello world!!!') |
def percentual(qtde, total):
return (100 * qtde) / total
n = int(input())
c = r = s = 0
for i in range(n):
val, tipo = input().split()
qtde = int(val)
if tipo == 'C':
c += qtde
if tipo == 'R':
r += qtde
if tipo == 'S':
s += qtde
total = c + r + s
print('Total: {} cobaias'.format(total))
print('Total de coelhos: {}\nTotal de ratos: {}\nTotal de sapos: {}'.format(c, r, s))
print('Percentual de coelhos: {:.2f} %'.format(percentual(c, total)))
print('Percentual de ratos: {:.2f} %'.format(percentual(r, total)))
print('Percentual de sapos: {:.2f} %'.format(percentual(s, total)))
| def percentual(qtde, total):
return 100 * qtde / total
n = int(input())
c = r = s = 0
for i in range(n):
(val, tipo) = input().split()
qtde = int(val)
if tipo == 'C':
c += qtde
if tipo == 'R':
r += qtde
if tipo == 'S':
s += qtde
total = c + r + s
print('Total: {} cobaias'.format(total))
print('Total de coelhos: {}\nTotal de ratos: {}\nTotal de sapos: {}'.format(c, r, s))
print('Percentual de coelhos: {:.2f} %'.format(percentual(c, total)))
print('Percentual de ratos: {:.2f} %'.format(percentual(r, total)))
print('Percentual de sapos: {:.2f} %'.format(percentual(s, total))) |
# See: http://django-suit.readthedocs.org/en/develop/
SUIT_CONFIG = {
# header
'ADMIN_NAME': 'Augeo',
# 'HEADER_DATE_FORMAT': 'l, j. F Y',
# 'HEADER_TIME_FORMAT': 'H:i',
} | suit_config = {'ADMIN_NAME': 'Augeo'} |
def convert(my_str):
my_list = list(my_str.split(' '))
return my_list
values = {}
times = {}
weights = {}
ids = []
f = open('crime_scene.txt')
my_lines = f.readlines()
stripped_lines = [line.strip() for line in my_lines]
f.close()
N = int(stripped_lines[1])
w = int(convert(stripped_lines[0])[0])
t = int(convert(stripped_lines[0])[1])
if N != 1:
for n in range(2,N+2):
content = convert(stripped_lines[n])
values[content[0]] = content[3]
times[content[0]] = content[2]
weights[content[0]] = content[1]
ids.append(content[0])
else:
n = 2
content = convert(stripped_lines[n])
values[content[0]] = content[3]
times[content[0]] = content[2]
weights[content[0]] = content[1]
ids.append(content[0])
def list_sum(my_lst,wanted = None):
if wanted == None:
wanted = 0
if len(my_lst) == 0:
return wanted
wanted = wanted + int(my_lst[0])
return list_sum(my_lst[1:],wanted)
def my_weights(my_lst,wanted = None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(weights[my_lst[0]])
return my_weights(my_lst[1:],wanted)
def my_times(my_lst,wanted = None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(times[my_lst[0]])
return my_times(my_lst[1:],wanted)
def my_values(my_lst,wanted = None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(values[my_lst[0]])
return my_values(my_lst[1:],wanted)
def control1(my_lst): # output 1
if list_sum(my_weights(my_lst)) <= w:
return True
else:
return False
def control2(my_lst): # output 2
if list_sum(my_times(my_lst)) <= t:
return True
else:
return False
def control3(my_lst): # output 3
if list_sum(my_weights(my_lst)) <= w and list_sum(my_times(my_lst)) <= t:
return True
else:
return False
def creating_lst(my_lst,for_lst,wanted = None):
if wanted == None:
wanted = []
if len(for_lst) == 0:
return wanted
wanted.append([my_lst[-1]]+for_lst[0])
return creating_lst(my_lst,for_lst[1:],wanted)
def combinations(my_lst):
if my_lst:
sonuc = combinations(my_lst[:-1])
wanted = sonuc + creating_lst(my_lst,sonuc)
return wanted
else:
return [[]]
def comb_control1(my_lst,i = None,wanted = None): # output 1
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control1(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control1(my_lst,i,wanted)
def comb_control2(my_lst,i = None,wanted = None): # output 2
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control2(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control2(my_lst,i,wanted)
def comb_control3(my_lst,i = None,wanted = None): # output 3
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control3(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control3(my_lst,i,wanted)
def biggest_subset(my_lst,max = None,wanted_lst = None):
if len(my_lst) == 0:
return wanted_lst
if max == None:
max = 0
if wanted_lst == None:
wanted_lst = []
if list_sum(my_values(my_lst[0])) > max:
max = list_sum(my_values(my_lst[0]))
wanted_lst = my_lst[0]
else:
pass
return biggest_subset(my_lst[1:],max,wanted_lst)
ideal_list1 = biggest_subset(comb_control1(ids))
ideal_list2 = biggest_subset(comb_control2(ids))
ideal_list3 = biggest_subset(comb_control3(ids))
sorted_output1 = [] # w
sorted_output2 = [] # t
sorted_output3 = [] # t and w
while ideal_list1:
my_min = ideal_list1[0]
for evidence in ideal_list1:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output1.append(my_min)
ideal_list1.remove(my_min)
while ideal_list2:
my_min = ideal_list2[0]
for evidence in ideal_list2:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output2.append(my_min)
ideal_list2.remove(my_min)
while ideal_list3:
my_min = ideal_list3[0]
for evidence in ideal_list3:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output3.append(my_min)
ideal_list3.remove(my_min)
def _output1(my_lst):
f1 = open('solution_part1.txt','w+')
f1.write(str(list_sum(my_values(my_lst)))+'\n')
for evidence in my_lst:
f1.write(str(evidence)+' ')
f1.close()
def _output2(my_lst):
f2 = open('solution_part2.txt','w+')
f2.write(str(list_sum(my_values(my_lst)))+'\n')
for evidence in my_lst:
f2.write(str(evidence)+' ')
f2.close()
def _output3(my_lst):
f3 = open('solution_part3.txt','w+')
f3.write(str(list_sum(my_values(my_lst)))+'\n')
for evidence in my_lst:
f3.write(str(evidence)+' ')
f3.close()
_output1(sorted_output1)
_output2(sorted_output2)
_output3(sorted_output3)
| def convert(my_str):
my_list = list(my_str.split(' '))
return my_list
values = {}
times = {}
weights = {}
ids = []
f = open('crime_scene.txt')
my_lines = f.readlines()
stripped_lines = [line.strip() for line in my_lines]
f.close()
n = int(stripped_lines[1])
w = int(convert(stripped_lines[0])[0])
t = int(convert(stripped_lines[0])[1])
if N != 1:
for n in range(2, N + 2):
content = convert(stripped_lines[n])
values[content[0]] = content[3]
times[content[0]] = content[2]
weights[content[0]] = content[1]
ids.append(content[0])
else:
n = 2
content = convert(stripped_lines[n])
values[content[0]] = content[3]
times[content[0]] = content[2]
weights[content[0]] = content[1]
ids.append(content[0])
def list_sum(my_lst, wanted=None):
if wanted == None:
wanted = 0
if len(my_lst) == 0:
return wanted
wanted = wanted + int(my_lst[0])
return list_sum(my_lst[1:], wanted)
def my_weights(my_lst, wanted=None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(weights[my_lst[0]])
return my_weights(my_lst[1:], wanted)
def my_times(my_lst, wanted=None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(times[my_lst[0]])
return my_times(my_lst[1:], wanted)
def my_values(my_lst, wanted=None):
if wanted == None:
wanted = []
if len(my_lst) == 0:
return wanted
wanted.append(values[my_lst[0]])
return my_values(my_lst[1:], wanted)
def control1(my_lst):
if list_sum(my_weights(my_lst)) <= w:
return True
else:
return False
def control2(my_lst):
if list_sum(my_times(my_lst)) <= t:
return True
else:
return False
def control3(my_lst):
if list_sum(my_weights(my_lst)) <= w and list_sum(my_times(my_lst)) <= t:
return True
else:
return False
def creating_lst(my_lst, for_lst, wanted=None):
if wanted == None:
wanted = []
if len(for_lst) == 0:
return wanted
wanted.append([my_lst[-1]] + for_lst[0])
return creating_lst(my_lst, for_lst[1:], wanted)
def combinations(my_lst):
if my_lst:
sonuc = combinations(my_lst[:-1])
wanted = sonuc + creating_lst(my_lst, sonuc)
return wanted
else:
return [[]]
def comb_control1(my_lst, i=None, wanted=None):
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control1(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control1(my_lst, i, wanted)
def comb_control2(my_lst, i=None, wanted=None):
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control2(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control2(my_lst, i, wanted)
def comb_control3(my_lst, i=None, wanted=None):
if i == len(combinations(my_lst)):
return wanted
if i == None:
i = 0
if wanted == None:
wanted = []
if control3(combinations(my_lst)[i]):
wanted.append(combinations(my_lst)[i])
else:
pass
i += 1
return comb_control3(my_lst, i, wanted)
def biggest_subset(my_lst, max=None, wanted_lst=None):
if len(my_lst) == 0:
return wanted_lst
if max == None:
max = 0
if wanted_lst == None:
wanted_lst = []
if list_sum(my_values(my_lst[0])) > max:
max = list_sum(my_values(my_lst[0]))
wanted_lst = my_lst[0]
else:
pass
return biggest_subset(my_lst[1:], max, wanted_lst)
ideal_list1 = biggest_subset(comb_control1(ids))
ideal_list2 = biggest_subset(comb_control2(ids))
ideal_list3 = biggest_subset(comb_control3(ids))
sorted_output1 = []
sorted_output2 = []
sorted_output3 = []
while ideal_list1:
my_min = ideal_list1[0]
for evidence in ideal_list1:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output1.append(my_min)
ideal_list1.remove(my_min)
while ideal_list2:
my_min = ideal_list2[0]
for evidence in ideal_list2:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output2.append(my_min)
ideal_list2.remove(my_min)
while ideal_list3:
my_min = ideal_list3[0]
for evidence in ideal_list3:
if int(evidence) < int(my_min):
my_min = evidence
sorted_output3.append(my_min)
ideal_list3.remove(my_min)
def _output1(my_lst):
f1 = open('solution_part1.txt', 'w+')
f1.write(str(list_sum(my_values(my_lst))) + '\n')
for evidence in my_lst:
f1.write(str(evidence) + ' ')
f1.close()
def _output2(my_lst):
f2 = open('solution_part2.txt', 'w+')
f2.write(str(list_sum(my_values(my_lst))) + '\n')
for evidence in my_lst:
f2.write(str(evidence) + ' ')
f2.close()
def _output3(my_lst):
f3 = open('solution_part3.txt', 'w+')
f3.write(str(list_sum(my_values(my_lst))) + '\n')
for evidence in my_lst:
f3.write(str(evidence) + ' ')
f3.close()
_output1(sorted_output1)
_output2(sorted_output2)
_output3(sorted_output3) |
class Command:
def exec(self, ob):
met = getattr(self, "on"+type(ob).__name__)
return met(ob)
def onNode(self, a):
pass
def onConnection(self, a):
pass
def onGenome(self, a):
pass
| class Command:
def exec(self, ob):
met = getattr(self, 'on' + type(ob).__name__)
return met(ob)
def on_node(self, a):
pass
def on_connection(self, a):
pass
def on_genome(self, a):
pass |
FILTER_ACTION_ON_CHOICES = (
('entry', 'On Entry'),
('exit', 'On Exit'),
)
FILTER_ACTION_TYPE_CHOICES = (
('eml', 'Send Email Notification'),
('sms', 'Send SMS Notification'),
('slk', 'Send Slack Notification'),
('cus', 'Custom Action'),
('drv', 'Derive Stream Action'),
('rpt', 'Report Generation Action'),
('smry', 'Summary Report Generation Action'),
)
| filter_action_on_choices = (('entry', 'On Entry'), ('exit', 'On Exit'))
filter_action_type_choices = (('eml', 'Send Email Notification'), ('sms', 'Send SMS Notification'), ('slk', 'Send Slack Notification'), ('cus', 'Custom Action'), ('drv', 'Derive Stream Action'), ('rpt', 'Report Generation Action'), ('smry', 'Summary Report Generation Action')) |
# countup.py
# http://asu-compmethodsphysics-phy494.github.io/ASU-PHY494//2017/01/19/03_Introduction_to_Python_2/#the-while-loop
tmax = 10.
t, dt = 0, 2.
while t <= tmax:
print("time " + str(t))
t += dt
print("Finished")
| tmax = 10.0
(t, dt) = (0, 2.0)
while t <= tmax:
print('time ' + str(t))
t += dt
print('Finished') |
'''
Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Created on Apr 9, 2014
@author: dfleck
'''
class MessageCache(list):
'''
Holds a list of tuples (envelope, message)
'''
def __contains__(self, otherEnvelope):
#print("\n-- Message Cache Check -- ")
for value in self:
(envelope, message) = value
#print("MessageCache comparing: [%s][%s]" % (otherEnvelope['msgID'], envelope['msgID']))
if envelope['msgID'] == otherEnvelope['msgID']:
#print("Message Cache: TRUE\n -- ")
return True
#print("Message Cache: FALSE\n -- ")
return False
| """
Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Created on Apr 9, 2014
@author: dfleck
"""
class Messagecache(list):
"""
Holds a list of tuples (envelope, message)
"""
def __contains__(self, otherEnvelope):
for value in self:
(envelope, message) = value
if envelope['msgID'] == otherEnvelope['msgID']:
return True
return False |
class Request:
def __init__(self):
self.timeout = 5000
def get_params(self):
return {}
def get_body(self):
return {}
| class Request:
def __init__(self):
self.timeout = 5000
def get_params(self):
return {}
def get_body(self):
return {} |
a = ['a', 'b', 'c', 'd']
print("This is a list", a)
print("It is", len(a), "elements length.")
print("Let's check if element 'd' is in the list:", 'd' in a)
print("This should be the maximun value of the list", max(a))
print("This should be the minnimun value of the list", min(a))
print("This is a list, item by item: ", end=' ')
for item in a:
print(item, end=' ')
print("\r\nThis is the first element of the list: ", a[0])
a.remove('b')
print("This is the list after removing the 'b' ", a)
del a[0]
print("This is the list after removing the first element", a) | a = ['a', 'b', 'c', 'd']
print('This is a list', a)
print('It is', len(a), 'elements length.')
print("Let's check if element 'd' is in the list:", 'd' in a)
print('This should be the maximun value of the list', max(a))
print('This should be the minnimun value of the list', min(a))
print('This is a list, item by item: ', end=' ')
for item in a:
print(item, end=' ')
print('\r\nThis is the first element of the list: ', a[0])
a.remove('b')
print("This is the list after removing the 'b' ", a)
del a[0]
print('This is the list after removing the first element', a) |
def soft_update_network(target, source, tau):
for target_param, source_param in zip(target.parameters(), source.parameters()):
target_param.data.copy_(
target_param.data * (1 - tau) + source_param.data * tau
)
def hard_update_network(target, source):
target.load_state_dict(source.state_dict()) | def soft_update_network(target, source, tau):
for (target_param, source_param) in zip(target.parameters(), source.parameters()):
target_param.data.copy_(target_param.data * (1 - tau) + source_param.data * tau)
def hard_update_network(target, source):
target.load_state_dict(source.state_dict()) |
words = {
'i': 520,
'am': 100,
'batman': 20,
'hello': 100
}
# iterate over keys
# for key in words.keys():
# print(key)
# for key in words:
# print(key)
# iterate over values
# words_keys = words.keys()
# print(words_keys)
# words_values = words.values()
# print(words_values)
# for value in words.values():
# print(value)
# print(list(map(str, words.values())))
# iterate over items
for key, value in words.items():
print(key, value)
| words = {'i': 520, 'am': 100, 'batman': 20, 'hello': 100}
for (key, value) in words.items():
print(key, value) |
SECRET = "very secret key"
DEBUG = False
LOG_FILE = "log"
LOG_FORMAT = '''
Message type: %(levelname)s
Location: %(pathname)s:%(lineno)d
Module: %(module)s
Function: %(funcName)s
Time: %(asctime)s
Message:
%(message)s
'''
SENDGRID_APIKEY = "BLAABLAA"
RECEIPTS_FOLDER = '/tmp/'
TMP_FOLDER = '/tmp/'
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/dev.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
| secret = 'very secret key'
debug = False
log_file = 'log'
log_format = '\nMessage type: %(levelname)s\nLocation: %(pathname)s:%(lineno)d\nModule: %(module)s\nFunction: %(funcName)s\nTime: %(asctime)s\n\nMessage:\n\n%(message)s\n'
sendgrid_apikey = 'BLAABLAA'
receipts_folder = '/tmp/'
tmp_folder = '/tmp/'
sqlalchemy_database_uri = 'sqlite:////tmp/dev.db'
sqlalchemy_track_modifications = False |
CONTAINERS_DISCOVERY_LOCK_KEY = 'containers_discovery.lock'
CONTAINERS_DISCOVERY_LAST_UPDATE_KEY = 'containers_discovery.last_update'
CONTAINERS_DISCOVERY_DATA_KEY = 'containers_discovery.data'
RESOURCES_DISCOVERY_LOCK_KEY = 'resources_discovery.lock'
RESOURCES_DISCOVERY_LAST_UPDATE_KEY = 'resources_discovery.last_update'
RESOURCES_DISCOVERY_DATA_KEY = 'resources_discovery.data' | containers_discovery_lock_key = 'containers_discovery.lock'
containers_discovery_last_update_key = 'containers_discovery.last_update'
containers_discovery_data_key = 'containers_discovery.data'
resources_discovery_lock_key = 'resources_discovery.lock'
resources_discovery_last_update_key = 'resources_discovery.last_update'
resources_discovery_data_key = 'resources_discovery.data' |
class ScraperFactoryException(Exception):
pass
class SpiderNotFoundError(ScraperFactoryException):
pass
class InvalidUrlError(ScraperFactoryException):
pass
| class Scraperfactoryexception(Exception):
pass
class Spidernotfounderror(ScraperFactoryException):
pass
class Invalidurlerror(ScraperFactoryException):
pass |
class Solution:
def findRelativeRanks(self, score: List[int]) -> List[str]:
sorted_score = sorted(score,reverse=True)
rankings = {}
for i in range(len(sorted_score)):
if i == 0: rankings[sorted_score[i]] = 'Gold Medal'
elif i == 1: rankings[sorted_score[i]] = 'Silver Medal'
elif i == 2: rankings[sorted_score[i]] = 'Bronze Medal'
else: rankings[sorted_score[i]] = str(i+1)
return [rankings[points] for points in score]
| class Solution:
def find_relative_ranks(self, score: List[int]) -> List[str]:
sorted_score = sorted(score, reverse=True)
rankings = {}
for i in range(len(sorted_score)):
if i == 0:
rankings[sorted_score[i]] = 'Gold Medal'
elif i == 1:
rankings[sorted_score[i]] = 'Silver Medal'
elif i == 2:
rankings[sorted_score[i]] = 'Bronze Medal'
else:
rankings[sorted_score[i]] = str(i + 1)
return [rankings[points] for points in score] |
for j in range(1, 9):
for i in range(1,j+1):
print("%d * %d = %d" % (i,j,i*j),end="\t")
print()
| for j in range(1, 9):
for i in range(1, j + 1):
print('%d * %d = %d' % (i, j, i * j), end='\t')
print() |
# Relationship instance name
JSON_RELATIONSHIP_INTERACT_WITH = "interaction"
JSON_RUN_TIME = "runtime"
JSON_DEPLOYMENT_TIME = "deploymenttime"
JSON_NODE_DATABASE = "datastore"
JSON_NODE_SERVICE= "service"
JSON_NODE_MESSAGE_BROKER = "messagebroker"
JSON_NODE_MESSAGE_ROUTER = "messagerouter"
JSON_NODE_MESSAGE_ROUTER_KSERVICE = "kservice"
JSON_NODE_MESSAGE_ROUTER_KPROXY = "kproxy"
JSON_NODE_MESSAGE_ROUTER_KINGRESS = "kingress"
JSON_GROUPS_EDGE = "edgegroup"
JSON_GROUPS_TEAM = "squadgroup"
| json_relationship_interact_with = 'interaction'
json_run_time = 'runtime'
json_deployment_time = 'deploymenttime'
json_node_database = 'datastore'
json_node_service = 'service'
json_node_message_broker = 'messagebroker'
json_node_message_router = 'messagerouter'
json_node_message_router_kservice = 'kservice'
json_node_message_router_kproxy = 'kproxy'
json_node_message_router_kingress = 'kingress'
json_groups_edge = 'edgegroup'
json_groups_team = 'squadgroup' |
'''
06 - Binning data
When the data on the x axis is a continuous value, it can
be useful to break it into different bins in order to get
a better visualization of the changes in the data.
For this exercise, we will look at the relationship between
tuition and the Undergraduate population abbreviated as UG in
this data. We will start by looking at a scatter plot of the
data and examining the impact of different bin sizes on the
visualization.
'''
# 1 - Create a regplot of Tuition and UG and set the fit_reg parameter to False to disable the regression line.
sns.regplot(data=df,
y='Tuition',
x="UG",
fit_reg=False)
plt.show()
plt.clf()
# 2 - Create another plot with the UG data divided into 5 bins.
sns.regplot(data=df,
y='Tuition',
x="UG",
x_bins=5)
plt.show()
plt.clf()
# 3 - Create a regplot() with the data divided into 8 bins.
sns.regplot(data=df,
y='Tuition',
x="UG",
x_bins=8)
plt.show()
plt.clf()
| """
06 - Binning data
When the data on the x axis is a continuous value, it can
be useful to break it into different bins in order to get
a better visualization of the changes in the data.
For this exercise, we will look at the relationship between
tuition and the Undergraduate population abbreviated as UG in
this data. We will start by looking at a scatter plot of the
data and examining the impact of different bin sizes on the
visualization.
"""
sns.regplot(data=df, y='Tuition', x='UG', fit_reg=False)
plt.show()
plt.clf()
sns.regplot(data=df, y='Tuition', x='UG', x_bins=5)
plt.show()
plt.clf()
sns.regplot(data=df, y='Tuition', x='UG', x_bins=8)
plt.show()
plt.clf() |
N = int(input())
c=1
res=[]
for i in range (1,int((N+2)/2)):
if N%i == 0:
res.append(i)
c+=1
res.append(N)
print(c)
print(*res)
| n = int(input())
c = 1
res = []
for i in range(1, int((N + 2) / 2)):
if N % i == 0:
res.append(i)
c += 1
res.append(N)
print(c)
print(*res) |
#program to get string which is n
word = input('Enter numbers \n')
texts = list(word)
print(f'{texts}')
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
integer = ""
for i in texts:
if i in numbers:
integer += i
print(integer)
| word = input('Enter numbers \n')
texts = list(word)
print(f'{texts}')
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
integer = ''
for i in texts:
if i in numbers:
integer += i
print(integer) |
#Programming I
#######################
# Mission 6.1 #
# Task List #
#######################
#Background
#==========
#After his success in the driverless vehicle, Tom
#ventures into private investigation services. To keep
#track of his progress on the cases, he like to
#create a task list dynamically according to the
#number of days.
#
#Write a Python program that prompts Tom to enter
#the number of days, and print the day number in
#first column, and spaces for him to fill up his
#task in second column. After every 7 days, there
#should be a heading inserted.
#Important Notes
#===============
#1) Comment out ALL input prompts before submitting.
#2) You MUST use the following variables
# - num
#START CODING FROM HERE
#======================
#Prompt user to enter the number of days
#num = input('Enter number of day: ')
#Generate task list
def generate_tasklist(num):
#Modify to display the task list
for i in range(1, num+1):
if i % 7 == 1:
print("Day | Task(s)")
print(str(i) + ' | ')
else:
print(str(i) + ' | ')
#Do not remove the next line
generate_tasklist(num)
#generate_tasklist(15)
| def generate_tasklist(num):
for i in range(1, num + 1):
if i % 7 == 1:
print('Day | Task(s)')
print(str(i) + ' | ')
else:
print(str(i) + ' | ')
generate_tasklist(num) |
class Node:
def __init__(self,data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head=None
def print_llist(self):
temp = self.head
while temp:
print(temp.data)
temp=temp.next
llist = LinkedList()
llist.head = Node(1)
second = Node(2)
third = Node(3)
llist.head.next = second # Link first node with second
second.next = third # Link second node with the third node
llist.print_llist() | class Node:
def __init__(self, data):
self.data = data
self.next = None
class Linkedlist:
def __init__(self):
self.head = None
def print_llist(self):
temp = self.head
while temp:
print(temp.data)
temp = temp.next
llist = linked_list()
llist.head = node(1)
second = node(2)
third = node(3)
llist.head.next = second
second.next = third
llist.print_llist() |
input_repository = '/home/alog0/taeha/Spark/Count_caching/input/All_uncache_1'
count = 0
with open(input_repository, 'r', encoding='utf-8-sig') as data_file:
while True:
line = data_file.readline()
if not line:
break
line_split = line.split(':')
path = line_split[0]
num = line_split[1]
count += int(num)
if int(num) != 0:
print(line)
print("\nAll : ",count)
| input_repository = '/home/alog0/taeha/Spark/Count_caching/input/All_uncache_1'
count = 0
with open(input_repository, 'r', encoding='utf-8-sig') as data_file:
while True:
line = data_file.readline()
if not line:
break
line_split = line.split(':')
path = line_split[0]
num = line_split[1]
count += int(num)
if int(num) != 0:
print(line)
print('\nAll : ', count) |
# Distribute Candy
# https://www.interviewbit.com/problems/distribute-candy/
#
# There are N children standing in a line. Each child is assigned a rating value.
#
# You are giving candies to these children subjected to the following requirements:
# Each child must have at least one candy.
# Children with a higher rating get more candies than their neighbors.
# What is the minimum candies you must give?
#
# Sample Input :
#
# Ratings : [1 2]
# Sample Output :
#
# 3
# The candidate with 1 rating gets 1 candy and candidate with rating cannot get 1 candy as 1 is
# its neighbor. So rating 2 candidate gets 2 candies. In total, 2+1 = 3 candies need to be given out.
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class Solution:
# @param A : list of integers
# @return an integer
def candy(self, A):
candies = [1]
for i in range(1, len(A)):
candies.append(candies[-1] + 1 if A[i] > A[i - 1] else 1)
result = candies[-1]
for i in range(len(A) - 2, -1, -1):
curr = candies[i + 1] + 1 if A[i] > A[i + 1] else 1
result += max(curr, candies[i])
candies[i] = curr
return result
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
if __name__ == "__main__":
s = Solution()
print(s.candy([1, 2]))
| class Solution:
def candy(self, A):
candies = [1]
for i in range(1, len(A)):
candies.append(candies[-1] + 1 if A[i] > A[i - 1] else 1)
result = candies[-1]
for i in range(len(A) - 2, -1, -1):
curr = candies[i + 1] + 1 if A[i] > A[i + 1] else 1
result += max(curr, candies[i])
candies[i] = curr
return result
if __name__ == '__main__':
s = solution()
print(s.candy([1, 2])) |
# coding: utf-8
##############################################################################
# Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
#
# Subject to your compliance with these terms, you may use Microchip software
# and any derivatives exclusively with Microchip products. It is your
# responsibility to comply with third party license terms applicable to your
# use of third party software (including open source software) that may
# accompany Microchip software.
#
# THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
# EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
# WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
# PARTICULAR PURPOSE.
#
# IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
# INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
# WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
# BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
# FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
# ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
# THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
##############################################################################
# generate code files
projectPath = "config/" + Variables.get("__CONFIGURATION_NAME") + "/gfx/driver/ili9488"
# common gfx driver header
GFX_DRIVER_H = comp.createFileSymbol("GFX_DRIVER_H", None)
GFX_DRIVER_H.setSourcePath("../../templates/gfx_driver.h.ftl")
GFX_DRIVER_H.setDestPath("gfx/driver/")
GFX_DRIVER_H.setOutputName("gfx_driver.h")
GFX_DRIVER_H.setProjectPath(projectPath)
GFX_DRIVER_H.setType("HEADER")
GFX_DRIVER_H.setMarkup(True)
GFX_DRIVER_C = comp.createFileSymbol("GFX_DRIVER_C", None)
GFX_DRIVER_C.setSourcePath("../../templates/gfx_driver.c.ftl")
GFX_DRIVER_C.setDestPath("gfx/driver/")
GFX_DRIVER_C.setOutputName("gfx_driver.c")
GFX_DRIVER_C.setProjectPath(projectPath)
GFX_DRIVER_C.setType("SOURCE")
GFX_DRIVER_C.setMarkup(True)
GFX_ILI9488_C = comp.createFileSymbol("GFX_ILI9488_C", None)
GFX_ILI9488_C.setDestPath("gfx/driver/controller/ili9488/")
GFX_ILI9488_C.setSourcePath("templates/drv_gfx_ili9488.c.ftl")
GFX_ILI9488_C.setOutputName("drv_gfx_ili9488.c")
GFX_ILI9488_C.setProjectPath(projectPath)
GFX_ILI9488_C.setType("SOURCE")
GFX_ILI9488_C.setMarkup(True)
GFX_ILI9488_H = comp.createFileSymbol("GFX_ILI9488_H", None)
GFX_ILI9488_H.setDestPath("gfx/driver/controller/ili9488/")
GFX_ILI9488_H.setSourcePath("inc/drv_gfx_ili9488.h")
GFX_ILI9488_H.setOutputName("drv_gfx_ili9488.h")
GFX_ILI9488_H.setProjectPath(projectPath)
GFX_ILI9488_H.setType("HEADER")
GFX_ILI9488_CMD_DEFS_H = comp.createFileSymbol("GFX_ILI9488_CMD_DEFS_H", None)
GFX_ILI9488_CMD_DEFS_H.setDestPath("gfx/driver/controller/ili9488/")
GFX_ILI9488_CMD_DEFS_H.setSourcePath("inc/drv_gfx_ili9488_cmd_defs.h")
GFX_ILI9488_CMD_DEFS_H.setOutputName("drv_gfx_ili9488_cmd_defs.h")
GFX_ILI9488_CMD_DEFS_H.setProjectPath(projectPath)
GFX_ILI9488_CMD_DEFS_H.setType("HEADER") | project_path = 'config/' + Variables.get('__CONFIGURATION_NAME') + '/gfx/driver/ili9488'
gfx_driver_h = comp.createFileSymbol('GFX_DRIVER_H', None)
GFX_DRIVER_H.setSourcePath('../../templates/gfx_driver.h.ftl')
GFX_DRIVER_H.setDestPath('gfx/driver/')
GFX_DRIVER_H.setOutputName('gfx_driver.h')
GFX_DRIVER_H.setProjectPath(projectPath)
GFX_DRIVER_H.setType('HEADER')
GFX_DRIVER_H.setMarkup(True)
gfx_driver_c = comp.createFileSymbol('GFX_DRIVER_C', None)
GFX_DRIVER_C.setSourcePath('../../templates/gfx_driver.c.ftl')
GFX_DRIVER_C.setDestPath('gfx/driver/')
GFX_DRIVER_C.setOutputName('gfx_driver.c')
GFX_DRIVER_C.setProjectPath(projectPath)
GFX_DRIVER_C.setType('SOURCE')
GFX_DRIVER_C.setMarkup(True)
gfx_ili9488_c = comp.createFileSymbol('GFX_ILI9488_C', None)
GFX_ILI9488_C.setDestPath('gfx/driver/controller/ili9488/')
GFX_ILI9488_C.setSourcePath('templates/drv_gfx_ili9488.c.ftl')
GFX_ILI9488_C.setOutputName('drv_gfx_ili9488.c')
GFX_ILI9488_C.setProjectPath(projectPath)
GFX_ILI9488_C.setType('SOURCE')
GFX_ILI9488_C.setMarkup(True)
gfx_ili9488_h = comp.createFileSymbol('GFX_ILI9488_H', None)
GFX_ILI9488_H.setDestPath('gfx/driver/controller/ili9488/')
GFX_ILI9488_H.setSourcePath('inc/drv_gfx_ili9488.h')
GFX_ILI9488_H.setOutputName('drv_gfx_ili9488.h')
GFX_ILI9488_H.setProjectPath(projectPath)
GFX_ILI9488_H.setType('HEADER')
gfx_ili9488_cmd_defs_h = comp.createFileSymbol('GFX_ILI9488_CMD_DEFS_H', None)
GFX_ILI9488_CMD_DEFS_H.setDestPath('gfx/driver/controller/ili9488/')
GFX_ILI9488_CMD_DEFS_H.setSourcePath('inc/drv_gfx_ili9488_cmd_defs.h')
GFX_ILI9488_CMD_DEFS_H.setOutputName('drv_gfx_ili9488_cmd_defs.h')
GFX_ILI9488_CMD_DEFS_H.setProjectPath(projectPath)
GFX_ILI9488_CMD_DEFS_H.setType('HEADER') |
class DiskQueueLength(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_disk_queue_length(idx_name)
class DiskQueueLengthColumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_disks()
| class Diskqueuelength(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_disk_queue_length(idx_name)
class Diskqueuelengthcolumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_disks() |
#3-1
# names = ['will', 'jess', 'jacob', 'adam']
# for name in names:
# print(name.title())
#3-2
names = ['will', 'jess', 'jacob', 'adam']
for name in names:
print(f"Hello, {name.title()}")
| names = ['will', 'jess', 'jacob', 'adam']
for name in names:
print(f'Hello, {name.title()}') |
class Student:
def __init__(self):
self.name = 'Mohan'
self.age = 10
self.country = 'India'
def mydelete(self):
del self.age
myobj1 = Student()
print("Before deleting: ")
print(myobj1.__dict__)
del myobj1.country # deleting outside of the class
print("After deleting outside of the class: ")
print(myobj1.__dict__)
print("After deleting from inside of the class")
myobj1.mydelete()
print(myobj1.__dict__) | class Student:
def __init__(self):
self.name = 'Mohan'
self.age = 10
self.country = 'India'
def mydelete(self):
del self.age
myobj1 = student()
print('Before deleting: ')
print(myobj1.__dict__)
del myobj1.country
print('After deleting outside of the class: ')
print(myobj1.__dict__)
print('After deleting from inside of the class')
myobj1.mydelete()
print(myobj1.__dict__) |
# Multiple Comparisons
# the way vs. the better way
# simplify chained comparison
# Manas Dash
# Raksha Bhandhan day of 2020
time_of_the_day = 6
day_of_the_week = 'mon'
# this way
if time_of_the_day < 12 and time_of_the_day > 6:
print('Good morning')
# a better way
if 6 < time_of_the_day < 12:
print('Good morning')
# this way
if day_of_the_week == "Mon" or day_of_the_week == "Wed" or day_of_the_week == "Fri" or day_of_the_week == "Sun":
print('its just a week day')
# a better way
if day_of_the_week in "Mon Wed Fri Sun".split(): # you can also specify a tuple ("Mon", "Wed", "Fri", "Sun")
print('its just a week day')
# this way
if time_of_the_day < 17 and time_of_the_day > 10 and day_of_the_week == 'mon':
print('its a working day')
# a better way
if all(time_of_the_day < 17, time_of_the_day > 10, day_of_the_week == 'mon'):
print('its a working day')
# similar way use 'any' for logical operator 'or'
# The way is on the way | time_of_the_day = 6
day_of_the_week = 'mon'
if time_of_the_day < 12 and time_of_the_day > 6:
print('Good morning')
if 6 < time_of_the_day < 12:
print('Good morning')
if day_of_the_week == 'Mon' or day_of_the_week == 'Wed' or day_of_the_week == 'Fri' or (day_of_the_week == 'Sun'):
print('its just a week day')
if day_of_the_week in 'Mon Wed Fri Sun'.split():
print('its just a week day')
if time_of_the_day < 17 and time_of_the_day > 10 and (day_of_the_week == 'mon'):
print('its a working day')
if all(time_of_the_day < 17, time_of_the_day > 10, day_of_the_week == 'mon'):
print('its a working day') |
app.stepsPerSecond = 60
s = 5; d = Circle(200, 200, 25, fill='purple')
def onKeyHold(keys):
# Movement Control
if ('right' in keys): d.centerX += s
if ('left' in keys): d.centerX -= s
if ('up' in keys): d.centerY -= s
if ('down' in keys): d.centerY += s
# Edge Movement
if (d.left >= app.right): d.right = app.left
elif (d.right <= app.left): d.left = app.right
if (d.top >= app.bottom): d.bottom = app.top
elif (d.bottom <= app.top): d.top = app.bottom
| app.stepsPerSecond = 60
s = 5
d = circle(200, 200, 25, fill='purple')
def on_key_hold(keys):
if 'right' in keys:
d.centerX += s
if 'left' in keys:
d.centerX -= s
if 'up' in keys:
d.centerY -= s
if 'down' in keys:
d.centerY += s
if d.left >= app.right:
d.right = app.left
elif d.right <= app.left:
d.left = app.right
if d.top >= app.bottom:
d.bottom = app.top
elif d.bottom <= app.top:
d.top = app.bottom |
# Q1
def is_Empty(stack):
if stack == []:
return True
else:
return False
def pop(stack):
if is_Empty(stack):
print("Underflow")
else:
item = stack.pop()
print(item, 'is popped')
if len(stack) == 0:
top = None
else:
top = len(stack)-1
return item
def display(stack):
if is_Empty(stack):
print("Stack is empty")
else:
top = len(stack)-1
print(stack[top], 'is the top of stack')
if len(stack) == 1:
print("it is the only element")
else:
for a in range(top-1, -1, -1):
print(stack[a])
def push(stack):
l = int(len(stack))+1
name = input("enter employee name: ")
kr = [l, name]
stack.append(kr)
stack = []
while True:
print('-------------------------------------STACK OPERATIONS-------------------------------------')
print('1. PUSH', '2. POP', '3. DISPLAY', '4. EXIT', sep='\n')
try:
choice = int(input("make your choice: "))
except:
print('enter valid data type ')
continue
if choice == 1:
push(stack)
elif choice == 2:
pop(stack)
elif choice == 3:
display(stack)
elif choice == 4:
print("program terminated ")
break
else:
print("Wrong input, enter a number from 1-4 ")
print('\n')
| def is__empty(stack):
if stack == []:
return True
else:
return False
def pop(stack):
if is__empty(stack):
print('Underflow')
else:
item = stack.pop()
print(item, 'is popped')
if len(stack) == 0:
top = None
else:
top = len(stack) - 1
return item
def display(stack):
if is__empty(stack):
print('Stack is empty')
else:
top = len(stack) - 1
print(stack[top], 'is the top of stack')
if len(stack) == 1:
print('it is the only element')
else:
for a in range(top - 1, -1, -1):
print(stack[a])
def push(stack):
l = int(len(stack)) + 1
name = input('enter employee name: ')
kr = [l, name]
stack.append(kr)
stack = []
while True:
print('-------------------------------------STACK OPERATIONS-------------------------------------')
print('1. PUSH', '2. POP', '3. DISPLAY', '4. EXIT', sep='\n')
try:
choice = int(input('make your choice: '))
except:
print('enter valid data type ')
continue
if choice == 1:
push(stack)
elif choice == 2:
pop(stack)
elif choice == 3:
display(stack)
elif choice == 4:
print('program terminated ')
break
else:
print('Wrong input, enter a number from 1-4 ')
print('\n') |
class LinkedListNode:
def __init__(self, val):
self.val = val
self.next = None
def intersection(a, b):
nodes = set()
while a is not None:
nodes.add(a.val)
a = a.next
while b is not None:
if b.val in nodes:
return b.val
b = b.next
return None
| class Linkedlistnode:
def __init__(self, val):
self.val = val
self.next = None
def intersection(a, b):
nodes = set()
while a is not None:
nodes.add(a.val)
a = a.next
while b is not None:
if b.val in nodes:
return b.val
b = b.next
return None |
# TODO
class A:
def __init__(self, value):
self.value = value
def __matmul__(self, other):
print('__matmul__')
return A(self.value * other.value)
def __imatmul__(self, other):
print('__imatmul__')
self.value *= other.value
return self
a = A(1)
b = A(2)
print((a @ b).value)
a @= b
print(a.value) | class A:
def __init__(self, value):
self.value = value
def __matmul__(self, other):
print('__matmul__')
return a(self.value * other.value)
def __imatmul__(self, other):
print('__imatmul__')
self.value *= other.value
return self
a = a(1)
b = a(2)
print((a @ b).value)
a @= b
print(a.value) |
__author__ = 'Tierprot'
class MutGen():
AA_voc = ["G", "A", "V", "L", "I", "P", "F", "Y", "W", "S",
"T", "C", "M", "N", "Q", "K", "R", "H", "D", "E"]
def __init__(self, input_file, vocabulary=None, positions=None):
try:
main_name, main_sequence = MutGen.load_seq(input_file)
self.main_name = main_name
self.sequences = {main_name: main_sequence}
except Exception as exp:
print(exp)
# restricting AA mutation variations
if vocabulary:
self.AA_voc = vocabulary
# restriction of positions to mutate
if positions:
self.positions = positions
else:
main_name = ''.join(list(self.sequences.keys()))
self.positions = list(range(len(self.sequences[main_name])))
@staticmethod
def load_seq(input_file):
# loading of a base sequence
name, sequence = '', ''
with open(input_file, 'r') as base:
for line in base:
if '>' in line:
name = line.strip()
else:
sequence += line.strip()
return name, sequence
def gen_mut(self):
# generation of provided mutations
try:
for position in self.positions:
for mutation in self.AA_voc:
if mutation != self.sequences[self.main_name][position]:
name = self.main_name + '_' + str(position) + self.sequences[self.main_name][position] \
+ '_to_' + str(position) + mutation
seq = self.sequences[self.main_name]
seq = seq[:position] + mutation + seq[position+1:]
self.sequences.update({name: seq})
except Exception as exp:
print(exp)
def get_titles(self):
try:
return list(self.sequences.keys())
except Exception:
print("Object is empty")
return None
def get_sequnce(self, key):
try:
return self.sequences[key]
except Exception:
print("No record with key {} was found!".format(key))
def save_fasta(self):
# saving sequences to a file in a fasta format
sorted_seqs = sorted(self.sequences.items())
with open(self.main_name[1:] + '.fasta', "w") as output:
for record, sequence in sorted_seqs:
output.write(record + '\n')
output.write(sequence + '\n') | __author__ = 'Tierprot'
class Mutgen:
aa_voc = ['G', 'A', 'V', 'L', 'I', 'P', 'F', 'Y', 'W', 'S', 'T', 'C', 'M', 'N', 'Q', 'K', 'R', 'H', 'D', 'E']
def __init__(self, input_file, vocabulary=None, positions=None):
try:
(main_name, main_sequence) = MutGen.load_seq(input_file)
self.main_name = main_name
self.sequences = {main_name: main_sequence}
except Exception as exp:
print(exp)
if vocabulary:
self.AA_voc = vocabulary
if positions:
self.positions = positions
else:
main_name = ''.join(list(self.sequences.keys()))
self.positions = list(range(len(self.sequences[main_name])))
@staticmethod
def load_seq(input_file):
(name, sequence) = ('', '')
with open(input_file, 'r') as base:
for line in base:
if '>' in line:
name = line.strip()
else:
sequence += line.strip()
return (name, sequence)
def gen_mut(self):
try:
for position in self.positions:
for mutation in self.AA_voc:
if mutation != self.sequences[self.main_name][position]:
name = self.main_name + '_' + str(position) + self.sequences[self.main_name][position] + '_to_' + str(position) + mutation
seq = self.sequences[self.main_name]
seq = seq[:position] + mutation + seq[position + 1:]
self.sequences.update({name: seq})
except Exception as exp:
print(exp)
def get_titles(self):
try:
return list(self.sequences.keys())
except Exception:
print('Object is empty')
return None
def get_sequnce(self, key):
try:
return self.sequences[key]
except Exception:
print('No record with key {} was found!'.format(key))
def save_fasta(self):
sorted_seqs = sorted(self.sequences.items())
with open(self.main_name[1:] + '.fasta', 'w') as output:
for (record, sequence) in sorted_seqs:
output.write(record + '\n')
output.write(sequence + '\n') |
for _ in range(int(input())):
k, q = map(int, input().split())
mot = sorted(list(map(int, input().split())))
sat = sorted(list(map(int, input().split())))
qs = []
for i in range(q):
qs.append(int(input()))
gen = [mot[i]+sat[j] for i in range(k) for j in range(min(k, 10001//(i+1)))]
gen.sort()
res = [gen[e-1] for e in qs]
print(*res)
| for _ in range(int(input())):
(k, q) = map(int, input().split())
mot = sorted(list(map(int, input().split())))
sat = sorted(list(map(int, input().split())))
qs = []
for i in range(q):
qs.append(int(input()))
gen = [mot[i] + sat[j] for i in range(k) for j in range(min(k, 10001 // (i + 1)))]
gen.sort()
res = [gen[e - 1] for e in qs]
print(*res) |
# This example uses python classes for addition
class Numbers(object):
def __init__(self):
self.sum = 0
def add(self,x):
# Addtion funciton
self.sum += x
def total(self):
# Returns the total of the sum
return self.sum
if __name__ == "__main__":
# Prints 12 on the terminal when the file is run,
# you can even use input() to get numbers from
# users.
add = Numbers()
add.add(5)
add.add(7)
y = add.total()
print("Total Sum : " , y)
| class Numbers(object):
def __init__(self):
self.sum = 0
def add(self, x):
self.sum += x
def total(self):
return self.sum
if __name__ == '__main__':
add = numbers()
add.add(5)
add.add(7)
y = add.total()
print('Total Sum : ', y) |
class CheckFileGenerationEnum:
GENERATED_SUCCESS = "generated_success"
GENERATED_EMPTY = "generated_empty"
NOT_GENERATED = "not_generated"
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")
class JSONSchemasEnum:
WORKFLOW_SCHEMA = "workflow"
# sub-schemas
HEADER_SCHEMA = "header"
STEPS_SCHEMA = "steps"
STEP_SCHEMA = "step"
# try to find the internal value and return
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
# prohibit any attempt to set any values
def __setattr__(self, key, value):
raise ValueError("No changes allowed.")
| class Checkfilegenerationenum:
generated_success = 'generated_success'
generated_empty = 'generated_empty'
not_generated = 'not_generated'
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
def __setattr__(self, key, value):
raise value_error('No changes allowed.')
class Jsonschemasenum:
workflow_schema = 'workflow'
header_schema = 'header'
steps_schema = 'steps'
step_schema = 'step'
def __getattr__(self, name):
if name in self:
return name
raise AttributeError
def __setattr__(self, key, value):
raise value_error('No changes allowed.') |
value = '6'
if value == '7':
print('The value is 7')
elif value == '8':
print('The value is 8')
else:
print('The value is not one we are looking for')
print('Finished!')
| value = '6'
if value == '7':
print('The value is 7')
elif value == '8':
print('The value is 8')
else:
print('The value is not one we are looking for')
print('Finished!') |
def json_dates_handler(obj):
if hasattr(obj, 'isoformat'):
return obj.isoformat()
return str(obj)
| def json_dates_handler(obj):
if hasattr(obj, 'isoformat'):
return obj.isoformat()
return str(obj) |
#Dock download & install
def getDocker():
run('sudo apt-get update')
run('sudo apt-get install -y docker.io')
run('sudo docker pull sn1k/submodulo-alberto')
#Ejecucion de docker
def runDocker():
run('sudo docker run -p 80:80 -i -t sn1k/submodulo-alberto')
| def get_docker():
run('sudo apt-get update')
run('sudo apt-get install -y docker.io')
run('sudo docker pull sn1k/submodulo-alberto')
def run_docker():
run('sudo docker run -p 80:80 -i -t sn1k/submodulo-alberto') |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.